@mui-toolpad-extended-tuni/calendar 3.0.0 → 3.0.1

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Gs=Object.defineProperty;var qs=(e,t,n)=>t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>qs(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const oe=require("react"),Y=require("@mui/material"),Ks=require("@emotion/styled"),ct=require("@emotion/react"),Pt=require("mui-toolpad-extended-tuni"),dn=require("react-dom"),Xs=require("@fullcalendar/react"),Js=require("@fullcalendar/daygrid"),Qs=require("@fullcalendar/timegrid"),Zs=require("@fullcalendar/interaction");function ei(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const x=ei(oe);function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}},Ut={};/**
1
+ "use strict";var Kf=Object.defineProperty;var Xf=(t,e,n)=>e in t?Kf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Gn=(t,e,n)=>Xf(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const oe=require("react"),q=require("@mui/material"),Jf=require("@emotion/styled"),zt=require("@emotion/react"),Dn=require("mui-toolpad-extended-tuni"),en=require("react-dom");function ep(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=ep(oe);function Mc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr={exports:{}},Yn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.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 so;function ti(){if(so)return Ut;so=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return Ut.Fragment=t,Ut.jsx=n,Ut.jsxs=n,Ut}var Ht={};/**
9
+ */var pa;function tp(){if(pa)return Yn;pa=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:t,type:r,key:s,ref:o!==void 0?o:null,props:i}}return Yn.Fragment=e,Yn.jsx=n,Yn.jsxs=n,Yn}var qn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,31 +14,31 @@
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 io;function ni(){return io||(io=1,process.env.NODE_ENV!=="production"&&function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===_?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case v:return"Fragment";case T:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case M:return"SuspenseList";case U:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case f:return"Portal";case w:return C.displayName||"Context";case k:return(C._context.displayName||"Context")+".Consumer";case O:var j=C.render;return C=C.displayName,C||(C=j.displayName||j.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case V:return j=C.displayName||null,j!==null?j:e(C.type)||"Memo";case B:j=C._payload,C=C._init;try{return e(C(j))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var j=!1}catch{j=!0}if(j){j=console;var K=j.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return K.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(C)}}function r(C){if(C===v)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===B)return"<...>";try{var j=e(C);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function o(){var C=h.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function i(C){if(P.call(C,"key")){var j=Object.getOwnPropertyDescriptor(C,"key").get;if(j&&j.isReactWarning)return!1}return C.key!==void 0}function l(C,j){function K(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",j))}K.isReactWarning=!0,Object.defineProperty(C,"key",{get:K,configurable:!0})}function c(){var C=e(this.type);return L[C]||(L[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,j,K,G,Q,F){var H=K.ref;return C={$$typeof:g,type:C,key:j,props:K,_owner:G},(H!==void 0?H:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function d(C,j,K,G,Q,F){var H=j.children;if(H!==void 0)if(G)if(E(H)){for(G=0;G<H.length;G++)p(H[G]);Object.freeze&&Object.freeze(H)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(H);if(P.call(j,"key")){H=e(C);var q=Object.keys(j).filter(function(X){return X!=="key"});G=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",N[H+G]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ha;function np(){return ha||(ha=1,process.env.NODE_ENV!=="production"&&function(){function t(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===$?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case v:return"Fragment";case S:return"Profiler";case b:return"StrictMode";case T:return"Suspense";case k:return"SuspenseList";case W:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case g:return"Portal";case C:return D.displayName||"Context";case R:return(D._context.displayName||"Context")+".Consumer";case A:var L=D.render;return D=D.displayName,D||(D=L.displayName||L.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case P:return L=D.displayName||null,L!==null?L:t(D.type)||"Memo";case H:L=D._payload,D=D._init;try{return t(D(L))}catch{}}return null}function e(D){return""+D}function n(D){try{e(D);var L=!1}catch{L=!0}if(L){L=console;var K=L.error,Q=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return K.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q),e(D)}}function r(D){if(D===v)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===H)return"<...>";try{var L=t(D);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var D=y.A;return D===null?null:D.getOwner()}function i(){return Error("react-stack-top-frame")}function s(D){if(I.call(D,"key")){var L=Object.getOwnPropertyDescriptor(D,"key").get;if(L&&L.isReactWarning)return!1}return D.key!==void 0}function a(D,L){function K(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}K.isReactWarning=!0,Object.defineProperty(D,"key",{get:K,configurable:!0})}function l(){var D=t(this.type);return z[D]||(z[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function c(D,L,K,Q,ee,U){var Y=K.ref;return D={$$typeof:m,type:D,key:L,props:K,_owner:Q},(Y!==void 0?Y:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:l}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function u(D,L,K,Q,ee,U){var Y=L.children;if(Y!==void 0)if(Q)if(_(Y)){for(Q=0;Q<Y.length;Q++)f(Y[Q]);Object.freeze&&Object.freeze(Y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(Y);if(I.call(L,"key")){Y=t(D);var Z=Object.keys(L).filter(function(X){return X!=="key"});Q=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",V[Y+Q]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,G,H,q,H),N[H+G]=!0)}if(H=null,K!==void 0&&(n(K),H=""+K),i(j)&&(n(j.key),H=""+j.key),"key"in j){K={};for(var z in j)z!=="key"&&(K[z]=j[z])}else K=j;return H&&l(K,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,H,K,o(),Q,F)}function p(C){m(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===B&&(C._payload.status==="fulfilled"?m(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function m(C){return typeof C=="object"&&C!==null&&C.$$typeof===g}var y=oe,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),w=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),h=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,E=Array.isArray,R=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(C){return C()}};var $,L={},J=y.react_stack_bottom_frame.bind(y,a)(),ee=R(r(a)),N={};Ht.Fragment=v,Ht.jsx=function(C,j,K){var G=1e4>h.recentlyCreatedOwnerStacks++;return d(C,j,K,!1,G?Error("react-stack-top-frame"):J,G?R(r(C)):ee)},Ht.jsxs=function(C,j,K){var G=1e4>h.recentlyCreatedOwnerStacks++;return d(C,j,K,!0,G?Error("react-stack-top-frame"):J,G?R(r(C)):ee)}}()),Ht}var lo;function ri(){return lo||(lo=1,process.env.NODE_ENV==="production"?fn.exports=ti():fn.exports=ni()),fn.exports}var b=ri();const co=e=>e,oi=()=>{let e=co;return{configure(t){e=t},generate(t){return e(t)},reset(){e=co}}},ai=oi();function nn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":nn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var pn={exports:{}},hn={exports:{}},he={};/** @license React v16.13.1
22
+ <%s key={someKey} {...props} />`,Q,Y,Z,Y),V[Y+Q]=!0)}if(Y=null,K!==void 0&&(n(K),Y=""+K),s(L)&&(n(L.key),Y=""+L.key),"key"in L){K={};for(var F in L)F!=="key"&&(K[F]=L[F])}else K=L;return Y&&a(K,typeof D=="function"?D.displayName||D.name||"Unknown":D),c(D,Y,K,o(),ee,U)}function f(D){p(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===H&&(D._payload.status==="fulfilled"?p(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function p(D){return typeof D=="object"&&D!==null&&D.$$typeof===m}var h=oe,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),C=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),y=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,_=Array.isArray,O=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(D){return D()}};var N,z={},J=h.react_stack_bottom_frame.bind(h,i)(),ne=O(r(i)),V={};qn.Fragment=v,qn.jsx=function(D,L,K){var Q=1e4>y.recentlyCreatedOwnerStacks++;return u(D,L,K,!1,Q?Error("react-stack-top-frame"):J,Q?O(r(D)):ne)},qn.jsxs=function(D,L,K){var Q=1e4>y.recentlyCreatedOwnerStacks++;return u(D,L,K,!0,Q?Error("react-stack-top-frame"):J,Q?O(r(D)):ne)}}()),qn}var ga;function rp(){return ga||(ga=1,process.env.NODE_ENV==="production"?wr.exports=tp():wr.exports=np()),wr.exports}var E=rp();const ma=t=>t,op=()=>{let t=ma;return{configure(e){t=e},generate(e){return t(e)},reset(){t=ma}}},ip=op();function cr(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function se(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":cr(7));return t.charAt(0).toUpperCase()+t.slice(1)}var xr={exports:{}},Dr={exports:{}},be={};/** @license React v16.13.1
23
23
  * react-is.production.min.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var uo;function si(){if(uo)return he;uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(O){if(typeof O=="object"&&O!==null){var D=O.$$typeof;switch(D){case t:switch(O=O.type,O){case c:case u:case r:case a:case o:case p:return O;default:switch(O=O&&O.$$typeof,O){case l:case d:case g:case y:case i:return O;default:return D}}case n:return D}}}function w(O){return k(O)===u}return he.AsyncMode=c,he.ConcurrentMode=u,he.ContextConsumer=l,he.ContextProvider=i,he.Element=t,he.ForwardRef=d,he.Fragment=r,he.Lazy=g,he.Memo=y,he.Portal=n,he.Profiler=a,he.StrictMode=o,he.Suspense=p,he.isAsyncMode=function(O){return w(O)||k(O)===c},he.isConcurrentMode=w,he.isContextConsumer=function(O){return k(O)===l},he.isContextProvider=function(O){return k(O)===i},he.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},he.isForwardRef=function(O){return k(O)===d},he.isFragment=function(O){return k(O)===r},he.isLazy=function(O){return k(O)===g},he.isMemo=function(O){return k(O)===y},he.isPortal=function(O){return k(O)===n},he.isProfiler=function(O){return k(O)===a},he.isStrictMode=function(O){return k(O)===o},he.isSuspense=function(O){return k(O)===p},he.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===u||O===a||O===o||O===p||O===m||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===y||O.$$typeof===i||O.$$typeof===l||O.$$typeof===d||O.$$typeof===v||O.$$typeof===S||O.$$typeof===T||O.$$typeof===f)},he.typeOf=k,he}var me={};/** @license React v16.13.1
29
+ */var va;function sp(){if(va)return be;va=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function R(A){if(typeof A=="object"&&A!==null){var T=A.$$typeof;switch(T){case e:switch(A=A.type,A){case l:case c:case r:case i:case o:case f:return A;default:switch(A=A&&A.$$typeof,A){case a:case u:case m:case h:case s:return A;default:return T}}case n:return T}}}function C(A){return R(A)===c}return be.AsyncMode=l,be.ConcurrentMode=c,be.ContextConsumer=a,be.ContextProvider=s,be.Element=e,be.ForwardRef=u,be.Fragment=r,be.Lazy=m,be.Memo=h,be.Portal=n,be.Profiler=i,be.StrictMode=o,be.Suspense=f,be.isAsyncMode=function(A){return C(A)||R(A)===l},be.isConcurrentMode=C,be.isContextConsumer=function(A){return R(A)===a},be.isContextProvider=function(A){return R(A)===s},be.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},be.isForwardRef=function(A){return R(A)===u},be.isFragment=function(A){return R(A)===r},be.isLazy=function(A){return R(A)===m},be.isMemo=function(A){return R(A)===h},be.isPortal=function(A){return R(A)===n},be.isProfiler=function(A){return R(A)===i},be.isStrictMode=function(A){return R(A)===o},be.isSuspense=function(A){return R(A)===f},be.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===i||A===o||A===f||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===h||A.$$typeof===s||A.$$typeof===a||A.$$typeof===u||A.$$typeof===v||A.$$typeof===b||A.$$typeof===S||A.$$typeof===g)},be.typeOf=R,be}var Ee={};/** @license React v16.13.1
30
30
  * react-is.development.js
31
31
  *
32
32
  * Copyright (c) Facebook, Inc. and its affiliates.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var fo;function ii(){return fo||(fo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===a||A===o||A===p||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===y||A.$$typeof===i||A.$$typeof===l||A.$$typeof===d||A.$$typeof===v||A.$$typeof===S||A.$$typeof===T||A.$$typeof===f)}function w(A){if(typeof A=="object"&&A!==null){var ie=A.$$typeof;switch(ie){case t:var pe=A.type;switch(pe){case c:case u:case r:case a:case o:case p:return pe;default:var xe=pe&&pe.$$typeof;switch(xe){case l:case d:case g:case y:case i:return xe;default:return ie}}case n:return ie}}}var O=c,D=u,M=l,V=i,B=t,U=d,_=r,h=g,P=y,E=n,R=a,$=o,L=p,J=!1;function ee(A){return J||(J=!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.")),N(A)||w(A)===c}function N(A){return w(A)===u}function C(A){return w(A)===l}function j(A){return w(A)===i}function K(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function G(A){return w(A)===d}function Q(A){return w(A)===r}function F(A){return w(A)===g}function H(A){return w(A)===y}function q(A){return w(A)===n}function z(A){return w(A)===a}function X(A){return w(A)===o}function le(A){return w(A)===p}me.AsyncMode=O,me.ConcurrentMode=D,me.ContextConsumer=M,me.ContextProvider=V,me.Element=B,me.ForwardRef=U,me.Fragment=_,me.Lazy=h,me.Memo=P,me.Portal=E,me.Profiler=R,me.StrictMode=$,me.Suspense=L,me.isAsyncMode=ee,me.isConcurrentMode=N,me.isContextConsumer=C,me.isContextProvider=j,me.isElement=K,me.isForwardRef=G,me.isFragment=Q,me.isLazy=F,me.isMemo=H,me.isPortal=q,me.isProfiler=z,me.isStrictMode=X,me.isSuspense=le,me.isValidElementType=k,me.typeOf=w}()),me}var po;function Ea(){return po||(po=1,process.env.NODE_ENV==="production"?hn.exports=si():hn.exports=ii()),hn.exports}/*
36
+ */var ya;function ap(){return ya||(ya=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function R(B){return typeof B=="string"||typeof B=="function"||B===r||B===c||B===i||B===o||B===f||B===p||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===h||B.$$typeof===s||B.$$typeof===a||B.$$typeof===u||B.$$typeof===v||B.$$typeof===b||B.$$typeof===S||B.$$typeof===g)}function C(B){if(typeof B=="object"&&B!==null){var de=B.$$typeof;switch(de){case e:var ye=B.type;switch(ye){case l:case c:case r:case i:case o:case f:return ye;default:var Te=ye&&ye.$$typeof;switch(Te){case a:case u:case m:case h:case s:return Te;default:return de}}case n:return de}}}var A=l,T=c,k=a,P=s,H=e,W=u,$=r,y=m,I=h,_=n,O=i,N=o,z=f,J=!1;function ne(B){return J||(J=!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(B)||C(B)===l}function V(B){return C(B)===c}function D(B){return C(B)===a}function L(B){return C(B)===s}function K(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Q(B){return C(B)===u}function ee(B){return C(B)===r}function U(B){return C(B)===m}function Y(B){return C(B)===h}function Z(B){return C(B)===n}function F(B){return C(B)===i}function X(B){return C(B)===o}function fe(B){return C(B)===f}Ee.AsyncMode=A,Ee.ConcurrentMode=T,Ee.ContextConsumer=k,Ee.ContextProvider=P,Ee.Element=H,Ee.ForwardRef=W,Ee.Fragment=$,Ee.Lazy=y,Ee.Memo=I,Ee.Portal=_,Ee.Profiler=O,Ee.StrictMode=N,Ee.Suspense=z,Ee.isAsyncMode=ne,Ee.isConcurrentMode=V,Ee.isContextConsumer=D,Ee.isContextProvider=L,Ee.isElement=K,Ee.isForwardRef=Q,Ee.isFragment=ee,Ee.isLazy=U,Ee.isMemo=Y,Ee.isPortal=Z,Ee.isProfiler=F,Ee.isStrictMode=X,Ee.isSuspense=fe,Ee.isValidElementType=R,Ee.typeOf=C}()),Ee}var ba;function Oc(){return ba||(ba=1,process.env.NODE_ENV==="production"?Dr.exports=sp():Dr.exports=ap()),Dr.exports}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var sr,ho;function li(){if(ho)return sr;ho=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return sr=o()?Object.assign:function(a,i){for(var l,c=r(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){u=e(l);for(var m=0;m<u.length;m++)n.call(l,u[m])&&(c[u[m]]=l[u[m]])}}return c},sr}var ir,mo;function Ar(){if(mo)return ir;mo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ir=e,ir}var lr,go;function Ta(){return go||(go=1,lr=Function.call.bind(Object.prototype.hasOwnProperty)),lr}var cr,yo;function ci(){if(yo)return cr;yo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ar(),n={},r=Ta();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var p;try{if(typeof a[d]!="function"){var m=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=a[d](i,d,c,l,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var y=u?u():"";e("Failed "+l+" type: "+p.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cr=o,cr}var ur,bo;function ui(){if(bo)return ur;bo=1;var e=Ea(),t=li(),n=Ar(),r=Ta(),o=ci(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return ur=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(N){var C=N&&(u&&N[u]||N[d]);if(typeof C=="function")return C}var m="<<anonymous>>",y={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:T(),arrayOf:k,element:w(),elementType:O(),instanceOf:D,node:U(),objectOf:V,oneOf:M,oneOfType:B,shape:h,exact:P};function g(N,C){return N===C?N!==0||1/N===1/C:N!==N&&C!==C}function f(N,C){this.message=N,this.data=C&&typeof C=="object"?C:{},this.stack=""}f.prototype=Error.prototype;function v(N){if(process.env.NODE_ENV!=="production")var C={},j=0;function K(Q,F,H,q,z,X,le){if(q=q||m,X=X||H,le!==n){if(c){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=q+":"+H;!C[ie]&&j<3&&(a("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),C[ie]=!0,j++)}}return F[H]==null?Q?F[H]===null?new f("The "+z+" `"+X+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new f("The "+z+" `"+X+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:N(F,H,q,z,X)}var G=K.bind(null,!1);return G.isRequired=K.bind(null,!0),G}function S(N){function C(j,K,G,Q,F,H){var q=j[K],z=$(q);if(z!==N){var X=L(q);return new f("Invalid "+Q+" `"+F+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return v(C)}function T(){return v(i)}function k(N){function C(j,K,G,Q,F){if(typeof N!="function")return new f("Property `"+F+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var H=j[K];if(!Array.isArray(H)){var q=$(H);return new f("Invalid "+Q+" `"+F+"` of type "+("`"+q+"` supplied to `"+G+"`, expected an array."))}for(var z=0;z<H.length;z++){var X=N(H,z,G,Q,F+"["+z+"]",n);if(X instanceof Error)return X}return null}return v(C)}function w(){function N(C,j,K,G,Q){var F=C[j];if(!l(F)){var H=$(F);return new f("Invalid "+G+" `"+Q+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return v(N)}function O(){function N(C,j,K,G,Q){var F=C[j];if(!e.isValidElementType(F)){var H=$(F);return new f("Invalid "+G+" `"+Q+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return v(N)}function D(N){function C(j,K,G,Q,F){if(!(j[K]instanceof N)){var H=N.name||m,q=ee(j[K]);return new f("Invalid "+Q+" `"+F+"` of type "+("`"+q+"` supplied to `"+G+"`, expected ")+("instance of `"+H+"`."))}return null}return v(C)}function M(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function C(j,K,G,Q,F){for(var H=j[K],q=0;q<N.length;q++)if(g(H,N[q]))return null;var z=JSON.stringify(N,function(le,A){var ie=L(A);return ie==="symbol"?String(A):A});return new f("Invalid "+Q+" `"+F+"` of value `"+String(H)+"` "+("supplied to `"+G+"`, expected one of "+z+"."))}return v(C)}function V(N){function C(j,K,G,Q,F){if(typeof N!="function")return new f("Property `"+F+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var H=j[K],q=$(H);if(q!=="object")return new f("Invalid "+Q+" `"+F+"` of type "+("`"+q+"` supplied to `"+G+"`, expected an object."));for(var z in H)if(r(H,z)){var X=N(H,z,G,Q,F+"."+z,n);if(X instanceof Error)return X}return null}return v(C)}function B(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var C=0;C<N.length;C++){var j=N[C];if(typeof j!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(j)+" at index "+C+"."),i}function K(G,Q,F,H,q){for(var z=[],X=0;X<N.length;X++){var le=N[X],A=le(G,Q,F,H,q,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&z.push(A.data.expectedType)}var ie=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new f("Invalid "+H+" `"+q+"` supplied to "+("`"+F+"`"+ie+"."))}return v(K)}function U(){function N(C,j,K,G,Q){return E(C[j])?null:new f("Invalid "+G+" `"+Q+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return v(N)}function _(N,C,j,K,G){return new f((N||"React class")+": "+C+" type `"+j+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function h(N){function C(j,K,G,Q,F){var H=j[K],q=$(H);if(q!=="object")return new f("Invalid "+Q+" `"+F+"` of type `"+q+"` "+("supplied to `"+G+"`, expected `object`."));for(var z in N){var X=N[z];if(typeof X!="function")return _(G,Q,F,z,L(X));var le=X(H,z,G,Q,F+"."+z,n);if(le)return le}return null}return v(C)}function P(N){function C(j,K,G,Q,F){var H=j[K],q=$(H);if(q!=="object")return new f("Invalid "+Q+" `"+F+"` of type `"+q+"` "+("supplied to `"+G+"`, expected `object`."));var z=t({},j[K],N);for(var X in z){var le=N[X];if(r(N,X)&&typeof le!="function")return _(G,Q,F,X,L(le));if(!le)return new f("Invalid "+Q+" `"+F+"` key `"+X+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(j[K],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(N),null," "));var A=le(H,X,G,Q,F+"."+X,n);if(A)return A}return null}return v(C)}function E(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(E);if(N===null||l(N))return!0;var C=p(N);if(C){var j=C.call(N),K;if(C!==N.entries){for(;!(K=j.next()).done;)if(!E(K.value))return!1}else for(;!(K=j.next()).done;){var G=K.value;if(G&&!E(G[1]))return!1}}else return!1;return!0;default:return!1}}function R(N,C){return N==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function $(N){var C=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":R(C,N)?"symbol":C}function L(N){if(typeof N>"u"||N===null)return""+N;var C=$(N);if(C==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return C}function J(N){var C=L(N);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function ee(N){return!N.constructor||!N.constructor.name?m:N.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},ur}var dr,vo;function di(){if(vo)return dr;vo=1;var e=Ar();function t(){}function n(){}return n.resetWarningCache=t,dr=function(){function r(i,l,c,u,d,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},dr}var xo;function fi(){if(xo)return pn.exports;if(xo=1,process.env.NODE_ENV!=="production"){var e=Ea(),t=!0;pn.exports=ui()(e.isElement,t)}else pn.exports=di()();return pn.exports}var pi=fi();const s=wa(pi);function Oa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Oa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ae(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Oa(e))&&(r&&(r+=" "),r+=t);return r}function Ue(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(i+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(i+=" "+n[u]))}r[o]=i}return r}function Tn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function _r(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var mn={exports:{}},be={};/**
40
+ */var ti,Ea;function lp(){if(Ea)return ti;Ea=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ti=o()?Object.assign:function(i,s){for(var a,l=r(i),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var f in a)e.call(a,f)&&(l[f]=a[f]);if(t){c=t(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(l[c[p]]=a[c[p]])}}return l},ti}var ni,Sa;function ls(){if(Sa)return ni;Sa=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ni=t,ni}var ri,Ca;function Ic(){return Ca||(Ca=1,ri=Function.call.bind(Object.prototype.hasOwnProperty)),ri}var oi,wa;function cp(){if(wa)return oi;wa=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=ls(),n={},r=Ic();t=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var f;try{if(typeof i[u]!="function"){var p=Error((l||"React class")+": "+a+" 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 p.name="Invariant Violation",p}f=i[u](s,u,l,a,null,e)}catch(m){f=m}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=c?c():"";t("Failed "+a+" type: "+f.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},oi=o,oi}var ii,xa;function up(){if(xa)return ii;xa=1;var t=Oc(),e=lp(),n=ls(),r=Ic(),o=cp(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return ii=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(V){var D=V&&(c&&V[c]||V[u]);if(typeof D=="function")return D}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:R,element:C(),elementType:A(),instanceOf:T,node:W(),objectOf:P,oneOf:k,oneOfType:H,shape:y,exact:I};function m(V,D){return V===D?V!==0||1/V===1/D:V!==V&&D!==D}function g(V,D){this.message=V,this.data=D&&typeof D=="object"?D:{},this.stack=""}g.prototype=Error.prototype;function v(V){if(process.env.NODE_ENV!=="production")var D={},L=0;function K(ee,U,Y,Z,F,X,fe){if(Z=Z||p,X=X||Y,fe!==n){if(l){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 de=Z+":"+Y;!D[de]&&L<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+Z+"`. 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."),D[de]=!0,L++)}}return U[Y]==null?ee?U[Y]===null?new g("The "+F+" `"+X+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new g("The "+F+" `"+X+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:V(U,Y,Z,F,X)}var Q=K.bind(null,!1);return Q.isRequired=K.bind(null,!0),Q}function b(V){function D(L,K,Q,ee,U,Y){var Z=L[K],F=N(Z);if(F!==V){var X=z(Z);return new g("Invalid "+ee+" `"+U+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return v(D)}function S(){return v(s)}function R(V){function D(L,K,Q,ee,U){if(typeof V!="function")return new g("Property `"+U+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var Y=L[K];if(!Array.isArray(Y)){var Z=N(Y);return new g("Invalid "+ee+" `"+U+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected an array."))}for(var F=0;F<Y.length;F++){var X=V(Y,F,Q,ee,U+"["+F+"]",n);if(X instanceof Error)return X}return null}return v(D)}function C(){function V(D,L,K,Q,ee){var U=D[L];if(!a(U)){var Y=N(U);return new g("Invalid "+Q+" `"+ee+"` of type "+("`"+Y+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return v(V)}function A(){function V(D,L,K,Q,ee){var U=D[L];if(!t.isValidElementType(U)){var Y=N(U);return new g("Invalid "+Q+" `"+ee+"` of type "+("`"+Y+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return v(V)}function T(V){function D(L,K,Q,ee,U){if(!(L[K]instanceof V)){var Y=V.name||p,Z=ne(L[K]);return new g("Invalid "+ee+" `"+U+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected ")+("instance of `"+Y+"`."))}return null}return v(D)}function k(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.")),s;function D(L,K,Q,ee,U){for(var Y=L[K],Z=0;Z<V.length;Z++)if(m(Y,V[Z]))return null;var F=JSON.stringify(V,function(fe,B){var de=z(B);return de==="symbol"?String(B):B});return new g("Invalid "+ee+" `"+U+"` of value `"+String(Y)+"` "+("supplied to `"+Q+"`, expected one of "+F+"."))}return v(D)}function P(V){function D(L,K,Q,ee,U){if(typeof V!="function")return new g("Property `"+U+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var Y=L[K],Z=N(Y);if(Z!=="object")return new g("Invalid "+ee+" `"+U+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected an object."));for(var F in Y)if(r(Y,F)){var X=V(Y,F,Q,ee,U+"."+F,n);if(X instanceof Error)return X}return null}return v(D)}function H(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<V.length;D++){var L=V[D];if(typeof L!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(L)+" at index "+D+"."),s}function K(Q,ee,U,Y,Z){for(var F=[],X=0;X<V.length;X++){var fe=V[X],B=fe(Q,ee,U,Y,Z,n);if(B==null)return null;B.data&&r(B.data,"expectedType")&&F.push(B.data.expectedType)}var de=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new g("Invalid "+Y+" `"+Z+"` supplied to "+("`"+U+"`"+de+"."))}return v(K)}function W(){function V(D,L,K,Q,ee){return _(D[L])?null:new g("Invalid "+Q+" `"+ee+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return v(V)}function $(V,D,L,K,Q){return new g((V||"React class")+": "+D+" type `"+L+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function y(V){function D(L,K,Q,ee,U){var Y=L[K],Z=N(Y);if(Z!=="object")return new g("Invalid "+ee+" `"+U+"` of type `"+Z+"` "+("supplied to `"+Q+"`, expected `object`."));for(var F in V){var X=V[F];if(typeof X!="function")return $(Q,ee,U,F,z(X));var fe=X(Y,F,Q,ee,U+"."+F,n);if(fe)return fe}return null}return v(D)}function I(V){function D(L,K,Q,ee,U){var Y=L[K],Z=N(Y);if(Z!=="object")return new g("Invalid "+ee+" `"+U+"` of type `"+Z+"` "+("supplied to `"+Q+"`, expected `object`."));var F=e({},L[K],V);for(var X in F){var fe=V[X];if(r(V,X)&&typeof fe!="function")return $(Q,ee,U,X,z(fe));if(!fe)return new g("Invalid "+ee+" `"+U+"` key `"+X+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(L[K],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var B=fe(Y,X,Q,ee,U+"."+X,n);if(B)return B}return null}return v(D)}function _(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(_);if(V===null||a(V))return!0;var D=f(V);if(D){var L=D.call(V),K;if(D!==V.entries){for(;!(K=L.next()).done;)if(!_(K.value))return!1}else for(;!(K=L.next()).done;){var Q=K.value;if(Q&&!_(Q[1]))return!1}}else return!1;return!0;default:return!1}}function O(V,D){return V==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function N(V){var D=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":O(D,V)?"symbol":D}function z(V){if(typeof V>"u"||V===null)return""+V;var D=N(V);if(D==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return D}function J(V){var D=z(V);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function ne(V){return!V.constructor||!V.constructor.name?p:V.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},ii}var si,Da;function dp(){if(Da)return si;Da=1;var t=ls();function e(){}function n(){}return n.resetWarningCache=e,si=function(){function r(s,a,l,c,u,f){if(f!==t){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}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},si}var Ta;function fp(){if(Ta)return xr.exports;if(Ta=1,process.env.NODE_ENV!=="production"){var t=Oc(),e=!0;xr.exports=up()(t.isElement,e)}else xr.exports=dp()();return xr.exports}var pp=fp();const d=Mc(pp);function Pc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Pc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ce(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Pc(t))&&(r&&(r+=" "),r+=e);return r}function ct(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+e(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}function Qr(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function cs(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qr(7));return t.charAt(0).toUpperCase()+t.slice(1)}var Tr={exports:{}},xe={};/**
42
42
  * @license React
43
43
  * react-is.production.js
44
44
  *
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var A=le(H,X,G,Q,F+"."+X
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Co;function hi(){if(Co)return be;Co=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case e:switch(f=f.type,f){case n:case o:case r:case c:case u:case m:return f;default:switch(f=f&&f.$$typeof,f){case i:case l:case p:case d:return f;case a:return f;default:return v}}case t:return v}}}return be.ContextConsumer=a,be.ContextProvider=i,be.Element=e,be.ForwardRef=l,be.Fragment=n,be.Lazy=p,be.Memo=d,be.Portal=t,be.Profiler=o,be.StrictMode=r,be.Suspense=c,be.SuspenseList=u,be.isContextConsumer=function(f){return g(f)===a},be.isContextProvider=function(f){return g(f)===i},be.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},be.isForwardRef=function(f){return g(f)===l},be.isFragment=function(f){return g(f)===n},be.isLazy=function(f){return g(f)===p},be.isMemo=function(f){return g(f)===d},be.isPortal=function(f){return g(f)===t},be.isProfiler=function(f){return g(f)===o},be.isStrictMode=function(f){return g(f)===r},be.isSuspense=function(f){return g(f)===c},be.isSuspenseList=function(f){return g(f)===u},be.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===i||f.$$typeof===a||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},be.typeOf=g,be}var ve={};/**
49
+ */var Aa;function hp(){if(Aa)return xe;Aa=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case n:case o:case r:case l:case c:case p:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case f:case u:return g;case i:return g;default:return v}}case e:return v}}}return xe.ContextConsumer=i,xe.ContextProvider=s,xe.Element=t,xe.ForwardRef=a,xe.Fragment=n,xe.Lazy=f,xe.Memo=u,xe.Portal=e,xe.Profiler=o,xe.StrictMode=r,xe.Suspense=l,xe.SuspenseList=c,xe.isContextConsumer=function(g){return m(g)===i},xe.isContextProvider=function(g){return m(g)===s},xe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},xe.isForwardRef=function(g){return m(g)===a},xe.isFragment=function(g){return m(g)===n},xe.isLazy=function(g){return m(g)===f},xe.isMemo=function(g){return m(g)===u},xe.isPortal=function(g){return m(g)===e},xe.isProfiler=function(g){return m(g)===o},xe.isStrictMode=function(g){return m(g)===r},xe.isSuspense=function(g){return m(g)===l},xe.isSuspenseList=function(g){return m(g)===c},xe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===l||g===c||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===u||g.$$typeof===s||g.$$typeof===i||g.$$typeof===a||g.$$typeof===h||g.getModuleId!==void 0)},xe.typeOf=m,xe}var De={};/**
50
50
  * @license React
51
51
  * react-is.development.js
52
52
  *
@@ -54,24 +54,24 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var A=le(H,X,G,Q,F+"."+X
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 So;function mi(){return So||(So=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case t:switch(f=f.type,f){case r:case a:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case m:case p:return f;case i:return f;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ve.ContextConsumer=i,ve.ContextProvider=l,ve.Element=t,ve.ForwardRef=c,ve.Fragment=r,ve.Lazy=m,ve.Memo=p,ve.Portal=n,ve.Profiler=a,ve.StrictMode=o,ve.Suspense=u,ve.SuspenseList=d,ve.isContextConsumer=function(f){return e(f)===i},ve.isContextProvider=function(f){return e(f)===l},ve.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},ve.isForwardRef=function(f){return e(f)===c},ve.isFragment=function(f){return e(f)===r},ve.isLazy=function(f){return e(f)===m},ve.isMemo=function(f){return e(f)===p},ve.isPortal=function(f){return e(f)===n},ve.isProfiler=function(f){return e(f)===a},ve.isStrictMode=function(f){return e(f)===o},ve.isSuspense=function(f){return e(f)===u},ve.isSuspenseList=function(f){return e(f)===d},ve.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===a||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===p||f.$$typeof===l||f.$$typeof===i||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},ve.typeOf=e}()),ve}var wo;function gi(){return wo||(wo=1,process.env.NODE_ENV==="production"?mn.exports=hi():mn.exports=mi()),mn.exports}var At=gi();function rt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Da(e){if(x.isValidElement(e)||At.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Da(e[n])}),t}function vt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])||At.isValidElementType(t[o])?r[o]=t[o]:rt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rt(e[o])?r[o]=vt(e[o],t[o],n):n.clone?r[o]=rt(t[o])?Da(t[o]):t[o]:r[o]=t[o]}),r}function en(e,t){return t?vt(e,t,{clone:!1}):e}const ut=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Eo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function yi(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function bi(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
58
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Tn(18,`(${t})`));return null}const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function vi(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const _n={xs:0,sm:600,md:900,lg:1200,xl:1536},To={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_n[e]}px)`},xi={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:_n[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function tt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||To;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||To;return Object.keys(t).reduce((i,l)=>{if(yi(a.keys,l)){const c=bi(r.containerQueries?r:xi,l);c&&(i[c]=n(t[l],l))}else if(Object.keys(a.values||_n).includes(l)){const c=a.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function Ci(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function Oo(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function jn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function On(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=jn(e,n)||r,t&&(o=t(o,r,e)),o}function Oe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=jn(c,r)||{};return tt(i,l,p=>{let m=On(u,o,p);return p===m&&typeof p=="string"&&(m=On(u,o,`${t}${p==="default"?"":_r(p)}`,p)),n===!1?m:{[n]:m}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:ut}:{},a.filterProps=[t],a}function Si(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const wi={m:"margin",p:"padding"},Ei={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Do={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ti=Si(e=>{if(e.length>2)if(Do[e])e=Do[e];else return[e];const[t,n]=e.split(""),r=wi[t],o=Ei[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ln=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Oi=[...Vn,...Ln];function an(e,t,n,r){const o=jn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a):Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
59
- `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
60
- `)));const l=o[i];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
61
- `)),()=>{})}function jr(e){return an(e,"spacing",8,"spacing")}function sn(e,t){return typeof t=="string"||t==null?t:e(t)}function Di(e,t){return n=>e.reduce((r,o)=>(r[o]=sn(t,n),r),{})}function ki(e,t,n,r){if(!t.includes(n))return null;const o=Ti(n),a=Di(o,r),i=e[n];return tt(e,i,a)}function ka(e,t){const n=jr(e.theme);return Object.keys(e).map(r=>ki(e,t,r,n)).reduce(en,{})}function Ee(e){return ka(e,Vn)}Ee.propTypes=process.env.NODE_ENV!=="production"?Vn.reduce((e,t)=>(e[t]=ut,e),{}):{};Ee.filterProps=Vn;function Te(e){return ka(e,Ln)}Te.propTypes=process.env.NODE_ENV!=="production"?Ln.reduce((e,t)=>(e[t]=ut,e),{}):{};Te.filterProps=Ln;process.env.NODE_ENV!=="production"&&Oi.reduce((e,t)=>(e[t]=ut,e),{});function Bn(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?en(o,t[a](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Be(e){return typeof e!="number"?e:`${e}px solid`}function ze(e,t){return Oe({prop:e,themeKey:"borders",transform:t})}const Ri=ze("border",Be),Mi=ze("borderTop",Be),Pi=ze("borderRight",Be),$i=ze("borderBottom",Be),Ii=ze("borderLeft",Be),Ni=ze("borderColor"),Ai=ze("borderTopColor"),_i=ze("borderRightColor"),ji=ze("borderBottomColor"),Vi=ze("borderLeftColor"),Li=ze("outline",Be),Bi=ze("outlineColor"),zn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=an(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:sn(t,r)});return tt(e,e.borderRadius,n)}return null};zn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ut}:{};zn.filterProps=["borderRadius"];Bn(Ri,Mi,Pi,$i,Ii,Ni,Ai,_i,ji,Vi,zn,Li,Bi);const Fn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=an(e.theme,"spacing",8,"gap"),n=r=>({gap:sn(t,r)});return tt(e,e.gap,n)}return null};Fn.propTypes=process.env.NODE_ENV!=="production"?{gap:ut}:{};Fn.filterProps=["gap"];const Wn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=an(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:sn(t,r)});return tt(e,e.columnGap,n)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ut}:{};Wn.filterProps=["columnGap"];const Un=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=an(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:sn(t,r)});return tt(e,e.rowGap,n)}return null};Un.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ut}:{};Un.filterProps=["rowGap"];const zi=Oe({prop:"gridColumn"}),Fi=Oe({prop:"gridRow"}),Wi=Oe({prop:"gridAutoFlow"}),Ui=Oe({prop:"gridAutoColumns"}),Hi=Oe({prop:"gridAutoRows"}),Yi=Oe({prop:"gridTemplateColumns"}),Gi=Oe({prop:"gridTemplateRows"}),qi=Oe({prop:"gridTemplateAreas"}),Ki=Oe({prop:"gridArea"});Bn(Fn,Wn,Un,zi,Fi,Wi,Ui,Hi,Yi,Gi,qi,Ki);function $t(e,t){return t==="grey"?t:e}const Xi=Oe({prop:"color",themeKey:"palette",transform:$t}),Ji=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$t}),Qi=Oe({prop:"backgroundColor",themeKey:"palette",transform:$t});Bn(Xi,Ji,Qi);function Ne(e){return e<=1&&e!==0?`${e*100}%`:e}const Zi=Oe({prop:"width",transform:Ne}),Vr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,l,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||_n[n];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ne(n)}};return tt(e,e.maxWidth,t)}return null};Vr.filterProps=["maxWidth"];const el=Oe({prop:"minWidth",transform:Ne}),tl=Oe({prop:"height",transform:Ne}),nl=Oe({prop:"maxHeight",transform:Ne}),rl=Oe({prop:"minHeight",transform:Ne});Oe({prop:"size",cssProperty:"width",transform:Ne});Oe({prop:"size",cssProperty:"height",transform:Ne});const ol=Oe({prop:"boxSizing"});Bn(Zi,Vr,el,tl,nl,rl,ol);const ln={border:{themeKey:"borders",transform:Be},borderTop:{themeKey:"borders",transform:Be},borderRight:{themeKey:"borders",transform:Be},borderBottom:{themeKey:"borders",transform:Be},borderLeft:{themeKey:"borders",transform:Be},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Be},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zn},color:{themeKey:"palette",transform:$t},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$t},backgroundColor:{themeKey:"palette",transform:$t},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:Fn},rowGap:{style:Un},columnGap:{style:Wn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ne},maxWidth:{style:Vr},minWidth:{transform:Ne},height:{transform:Ne},maxHeight:{transform:Ne},minHeight:{transform:Ne},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 al(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function sl(e,t){return typeof e=="function"?e(t):e}function il(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=jn(o,u)||{};return p?p(i):tt(i,r,g=>{let f=On(m,d,g);return g===f&&typeof g=="string"&&(f=On(m,d,`${n}${g==="default"?"":_r(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??ln;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=Ci(o.breakpoints),p=Object.keys(d);let m=d;return Object.keys(u).forEach(y=>{const g=sl(u[y],o);if(g!=null)if(typeof g=="object")if(i[y])m=en(m,e(y,g,o,i));else{const f=tt({theme:o},g,v=>({[y]:v}));al(f,g)?m[y]=t({sx:g,theme:o,nested:!0}):m=en(m,f)}else m=en(m,e(y,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Eo(o,Oo(p,m))}:Eo(o,Oo(p,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const _t=il();_t.filterProps=["sx"];const ll=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??ln;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function cl(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=ll(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return rt(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function ul(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var dl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function fl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var pl=/[A-Z]|^ms/g,hl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ra=function(t){return t.charCodeAt(1)===45},ko=function(t){return t!=null&&typeof t!="boolean"},fr=fl(function(e){return Ra(e)?e:e.replace(pl,"-$&").toLowerCase()}),Ro=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hl,function(r,o,a){return at={name:o,styles:a,next:at},o})}return dl[t]!==1&&!Ra(t)&&typeof n=="number"&&n!==0?n+"px":n};function Dn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return at={name:o.name,styles:o.styles,next:at},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)at={name:i.name,styles:i.styles,next:at},i=i.next;var l=a.styles+";";return l}return ml(e,t,n)}}var c=n;return c}function ml(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Dn(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var l=i;ko(l)&&(r+=fr(a)+":"+Ro(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var c=0;c<i.length;c++)ko(i[c])&&(r+=fr(a)+":"+Ro(a,i[c])+";");else{var u=Dn(e,t,i);switch(a){case"animation":case"animationName":{r+=fr(a)+":"+u+";";break}default:r+=a+"{"+u+"}"}}}return r}var Mo=/label:\s*([^\s;{]+)\s*(;|$)/g,at;function gl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";at=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Dn(n,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Dn(n,t,e[l]),r){var c=a;o+=c[l]}Mo.lastIndex=0;for(var u="",d;(d=Mo.exec(o))!==null;)u+="-"+d[1];var p=ul(o)+u;return{name:p,styles:o,next:at}}/**
57
+ */var Ra;function gp(){return Ra||(Ra=1,process.env.NODE_ENV!=="production"&&function(){function t(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case i:case o:case c:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case p:case f:return g;case s:return g;default:return v}}case n:return v}}}var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");De.ContextConsumer=s,De.ContextProvider=a,De.Element=e,De.ForwardRef=l,De.Fragment=r,De.Lazy=p,De.Memo=f,De.Portal=n,De.Profiler=i,De.StrictMode=o,De.Suspense=c,De.SuspenseList=u,De.isContextConsumer=function(g){return t(g)===s},De.isContextProvider=function(g){return t(g)===a},De.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},De.isForwardRef=function(g){return t(g)===l},De.isFragment=function(g){return t(g)===r},De.isLazy=function(g){return t(g)===p},De.isMemo=function(g){return t(g)===f},De.isPortal=function(g){return t(g)===n},De.isProfiler=function(g){return t(g)===i},De.isStrictMode=function(g){return t(g)===o},De.isSuspense=function(g){return t(g)===c},De.isSuspenseList=function(g){return t(g)===u},De.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===a||g.$$typeof===s||g.$$typeof===l||g.$$typeof===m||g.getModuleId!==void 0)},De.typeOf=t}()),De}var _a;function mp(){return _a||(_a=1,process.env.NODE_ENV==="production"?Tr.exports=hp():Tr.exports=gp()),Tr.exports}var In=mp();function kt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Nc(t){if(x.isValidElement(t)||In.isValidElementType(t)||!kt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=Nc(t[n])}),e}function rn(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return kt(t)&&kt(e)&&Object.keys(e).forEach(o=>{x.isValidElement(e[o])||In.isValidElementType(e[o])?r[o]=e[o]:kt(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&kt(t[o])?r[o]=rn(t[o],e[o],n):n.clone?r[o]=kt(e[o])?Nc(e[o]):e[o]:r[o]=e[o]}),r}function or(t,e){return e?rn(t,e,{clone:!1}):t}const Ft=process.env.NODE_ENV!=="production"?d.oneOfType([d.number,d.string,d.object,d.array]):{};function ka(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function vp(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function yp(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
58
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Qr(18,`(${e})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return t.containerQueries(o).up(i)}function bp(t){const e=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>e(t.breakpoints.up(...a),s),i.down=(...a)=>e(t.breakpoints.down(...a),s),i.between=(...a)=>e(t.breakpoints.between(...a),s),i.only=(...a)=>e(t.breakpoints.only(...a),s),i.not=(...a)=>{const l=e(t.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...t,containerQueries:o}}const wo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ma={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${wo[t]}px)`},Ep={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:wo[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Dt(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const i=r.breakpoints||Ma;return e.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(e[l]),s),{})}if(typeof e=="object"){const i=r.breakpoints||Ma;return Object.keys(e).reduce((s,a)=>{if(vp(i.keys,a)){const l=yp(r.containerQueries?r:Ep,a);l&&(s[l]=n(e[a],a))}else if(Object.keys(i.values||wo).includes(a)){const l=i.up(a);s[l]=n(e[a],a)}else{const l=a;s[l]=e[l]}return s},{})}return n(e)}function Sp(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,o)=>{const i=t.up(o);return r[i]={},r},{}))||{}}function Oa(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function xo(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function Zr(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=xo(t,n)||r,e&&(o=e(o,r,t)),o}function je(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=s=>{if(s[e]==null)return null;const a=s[e],l=s.theme,c=xo(l,r)||{};return Dt(s,a,f=>{let p=Zr(c,o,f);return f===p&&typeof f=="string"&&(p=Zr(c,o,`${e}${f==="default"?"":cs(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:Ft}:{},i.filterProps=[e],i}function Cp(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const wp={m:"margin",p:"padding"},xp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ia={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dp=Cp(t=>{if(t.length>2)if(Ia[t])t=Ia[t];else return[t];const[e,n]=t.split(""),r=wp[e],o=xp[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Do=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],To=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Tp=[...Do,...To];function gr(t,e,n,r){const o=xo(t,e,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof 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 s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
59
+ `)):console.error([`MUI: The \`theme.${e}\` 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.${e}\` as a number.`].join(`
60
+ `)));const a=o[s];return i>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${e}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
61
+ `)),()=>{})}function us(t){return gr(t,"spacing",8,"spacing")}function mr(t,e){return typeof e=="string"||e==null?e:t(e)}function Ap(t,e){return n=>t.reduce((r,o)=>(r[o]=mr(e,n),r),{})}function Rp(t,e,n,r){if(!e.includes(n))return null;const o=Dp(n),i=Ap(o,r),s=t[n];return Dt(t,s,i)}function jc(t,e){const n=us(t.theme);return Object.keys(t).map(r=>Rp(t,e,r,n)).reduce(or,{})}function Pe(t){return jc(t,Do)}Pe.propTypes=process.env.NODE_ENV!=="production"?Do.reduce((t,e)=>(t[e]=Ft,t),{}):{};Pe.filterProps=Do;function Ne(t){return jc(t,To)}Ne.propTypes=process.env.NODE_ENV!=="production"?To.reduce((t,e)=>(t[e]=Ft,t),{}):{};Ne.filterProps=To;process.env.NODE_ENV!=="production"&&Tp.reduce((t,e)=>(t[e]=Ft,t),{});function Ao(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?or(o,e[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?t.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function rt(t){return typeof t!="number"?t:`${t}px solid`}function ot(t,e){return je({prop:t,themeKey:"borders",transform:e})}const _p=ot("border",rt),kp=ot("borderTop",rt),Mp=ot("borderRight",rt),Op=ot("borderBottom",rt),Ip=ot("borderLeft",rt),Pp=ot("borderColor"),Np=ot("borderTopColor"),jp=ot("borderRightColor"),Vp=ot("borderBottomColor"),$p=ot("borderLeftColor"),Bp=ot("outline",rt),Lp=ot("outlineColor"),Ro=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=gr(t.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:mr(e,r)});return Dt(t,t.borderRadius,n)}return null};Ro.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ft}:{};Ro.filterProps=["borderRadius"];Ao(_p,kp,Mp,Op,Ip,Pp,Np,jp,Vp,$p,Ro,Bp,Lp);const _o=t=>{if(t.gap!==void 0&&t.gap!==null){const e=gr(t.theme,"spacing",8,"gap"),n=r=>({gap:mr(e,r)});return Dt(t,t.gap,n)}return null};_o.propTypes=process.env.NODE_ENV!=="production"?{gap:Ft}:{};_o.filterProps=["gap"];const ko=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=gr(t.theme,"spacing",8,"columnGap"),n=r=>({columnGap:mr(e,r)});return Dt(t,t.columnGap,n)}return null};ko.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ft}:{};ko.filterProps=["columnGap"];const Mo=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=gr(t.theme,"spacing",8,"rowGap"),n=r=>({rowGap:mr(e,r)});return Dt(t,t.rowGap,n)}return null};Mo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ft}:{};Mo.filterProps=["rowGap"];const Hp=je({prop:"gridColumn"}),zp=je({prop:"gridRow"}),Fp=je({prop:"gridAutoFlow"}),Wp=je({prop:"gridAutoColumns"}),Up=je({prop:"gridAutoRows"}),Gp=je({prop:"gridTemplateColumns"}),Yp=je({prop:"gridTemplateRows"}),qp=je({prop:"gridTemplateAreas"}),Qp=je({prop:"gridArea"});Ao(_o,ko,Mo,Hp,zp,Fp,Wp,Up,Gp,Yp,qp,Qp);function An(t,e){return e==="grey"?e:t}const Zp=je({prop:"color",themeKey:"palette",transform:An}),Kp=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:An}),Xp=je({prop:"backgroundColor",themeKey:"palette",transform:An});Ao(Zp,Kp,Xp);function qe(t){return t<=1&&t!==0?`${t*100}%`:t}const Jp=je({prop:"width",transform:qe}),ds=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var o,i,s,a,l;const r=((s=(i=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||wo[n];return r?((l=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:qe(n)}};return Dt(t,t.maxWidth,e)}return null};ds.filterProps=["maxWidth"];const eh=je({prop:"minWidth",transform:qe}),th=je({prop:"height",transform:qe}),nh=je({prop:"maxHeight",transform:qe}),rh=je({prop:"minHeight",transform:qe});je({prop:"size",cssProperty:"width",transform:qe});je({prop:"size",cssProperty:"height",transform:qe});const oh=je({prop:"boxSizing"});Ao(Jp,ds,eh,th,nh,rh,oh);const vr={border:{themeKey:"borders",transform:rt},borderTop:{themeKey:"borders",transform:rt},borderRight:{themeKey:"borders",transform:rt},borderBottom:{themeKey:"borders",transform:rt},borderLeft:{themeKey:"borders",transform:rt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ro},color:{themeKey:"palette",transform:An},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:An},backgroundColor:{themeKey:"palette",transform:An},p:{style:Ne},pt:{style:Ne},pr:{style:Ne},pb:{style:Ne},pl:{style:Ne},px:{style:Ne},py:{style:Ne},padding:{style:Ne},paddingTop:{style:Ne},paddingRight:{style:Ne},paddingBottom:{style:Ne},paddingLeft:{style:Ne},paddingX:{style:Ne},paddingY:{style:Ne},paddingInline:{style:Ne},paddingInlineStart:{style:Ne},paddingInlineEnd:{style:Ne},paddingBlock:{style:Ne},paddingBlockStart:{style:Ne},paddingBlockEnd:{style:Ne},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_o},rowGap:{style:Mo},columnGap:{style:ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qe},maxWidth:{style:ds},minWidth:{transform:qe},height:{transform:qe},maxHeight:{transform:qe},minHeight:{transform:qe},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 ih(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function sh(t,e){return typeof t=="function"?t(e):t}function ah(){function t(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=xo(o,c)||{};return f?f(s):Dt(s,r,m=>{let g=Zr(p,u,m);return m===g&&typeof m=="string"&&(g=Zr(p,u,`${n}${m==="default"?"":cs(m)}`,m)),l===!1?g:{[l]:g}})}function e(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const s=o.unstable_sxConfig??vr;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=Sp(o.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const m=sh(c[h],o);if(m!=null)if(typeof m=="object")if(s[h])p=or(p,t(h,m,o,s));else{const g=Dt({theme:o},m,v=>({[h]:v}));ih(g,m)?p[h]=e({sx:m,theme:o,nested:!0}):p=or(p,g)}else p=or(p,t(h,m,o,s))}),!i&&o.modularCssLayers?{"@layer sx":ka(o,Oa(f,p))}:ka(o,Oa(f,p))}return Array.isArray(r)?r.map(a):a(r)}return e}const Pn=ah();Pn.filterProps=["sx"];const lh=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??vr;return Object.keys(t).forEach(o=>{n[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function ch(t){const{sx:e,...n}=t,{systemProps:r,otherProps:o}=lh(n);let i;return Array.isArray(e)?i=[r,...e]:typeof e=="function"?i=(...s)=>{const a=e(...s);return kt(a)?{...r,...a}:r}:i={...r,...e},{...o,sx:i}}function uh(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var dh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function fh(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var ph=/[A-Z]|^ms/g,hh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vc=function(e){return e.charCodeAt(1)===45},Pa=function(e){return e!=null&&typeof e!="boolean"},ai=fh(function(t){return Vc(t)?t:t.replace(ph,"-$&").toLowerCase()}),Na=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(hh,function(r,o,i){return Ot={name:o,styles:i,next:Ot},o})}return dh[e]!==1&&!Vc(e)&&typeof n=="number"&&n!==0?n+"px":n};function Kr(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ot={name:o.name,styles:o.styles,next:Ot},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ot={name:s.name,styles:s.styles,next:Ot},s=s.next;var a=i.styles+";";return a}return gh(t,e,n)}}var l=n;return l}function gh(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Kr(t,e,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;Pa(a)&&(r+=ai(i)+":"+Na(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)Pa(s[l])&&(r+=ai(i)+":"+Na(i,s[l])+";");else{var c=Kr(t,e,s);switch(i){case"animation":case"animationName":{r+=ai(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var ja=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function mh(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";Ot=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=Kr(n,e,i);else{var s=i;o+=s[0]}for(var a=1;a<t.length;a++)if(o+=Kr(n,e,t[a]),r){var l=i;o+=l[a]}ja.lastIndex=0;for(var c="",u;(u=ja.exec(o))!==null;)c+="-"+u[1];var f=uh(o)+c;return{name:f,styles:o,next:Ot}}/**
62
62
  * @mui/styled-engine v7.3.3
63
63
  *
64
64
  * @license MIT
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
- */function yl(e,t){const n=Ks(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
68
- `)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function bl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Po=[];function xt(e){return Po[0]=e,gl(Po)}const vl=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function xl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=vl(t),i=Object.keys(a);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,y){const g=i.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:y)-r/100}${n})`}function d(m){return i.indexOf(m)+1<i.length?u(m,i[i.indexOf(m)+1]):l(m)}function p(m){const y=i.indexOf(m);return y===0?l(i[1]):y===i.length-1?c(i[y]):u(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:l,down:c,between:u,only:d,not:p,unit:n,...o}}const Cl={borderRadius:4};function Ma(e=8,t=jr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Sl(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Lr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=xl(n),c=Ma(o);let u=vt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Cl,...a}},i);return u=vi(u),u.applyStyles=Sl,u=t.reduce((d,p)=>vt(d,p),u),u.unstable_sxConfig={...ln,...i==null?void 0:i.unstable_sxConfig},u.unstable_sx=function(p){return _t({sx:p,theme:this})},u}function wl(e){return Object.keys(e).length===0}function Pa(e=null){const t=x.useContext(ct.ThemeContext);return!t||wl(t)?e:t}const El=Lr();function $a(e=El){return Pa(e)}function Ia(e,t=""){return e.displayName||e.name||t}function $o(e,t,n){const r=Ia(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Tl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ia(e,"Component");if(typeof e=="object")switch(e.$$typeof){case At.ForwardRef:return $o(e,e.render,"ForwardRef");case At.Memo:return $o(e,e.type,"memo");default:return}}}function Na(e){const{variants:t,...n}=e,r={variants:t,style:xt(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=xt(o.style))}),r}const Ol=Lr();function pr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Dl(e){return e?(t,n)=>n[e]:null}function kl(e,t,n){e.theme=$l(e.theme)?n:e.theme[t]||e.theme}function Sn(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Sn(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?yt(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?yt(xt(i),n):i}return Aa(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?yt(xt(r.style),n):r.style:n?yt(xt(r),n):r}function Aa(e,t,n=[],r=void 0){var a;let o;e:for(let i=0;i<t.length;i+=1){const l=t[i];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==l.props[c])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?yt(xt(l.style(o)),r):l.style(o))):n.push(r?yt(xt(l.style),r):l.style)}return n}function Rl(e={}){const{themeId:t,defaultTheme:n=Ol,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function a(l){kl(l,t,n)}return(l,c={})=>{bl(l,D=>D.filter(M=>M!==_t));const{name:u,slot:d,skipVariantsResolver:p,skipSx:m,overridesResolver:y=Dl(_a(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",v=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,S=m||!1;let T=pr;d==="Root"||d==="root"?T=r:d?T=o:Il(l)&&(T=void 0);const k=yl(l,{shouldForwardProp:T,label:Pl(u,d),...g}),w=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(V){return Sn(V,D,V.theme.modularCssLayers?f:void 0)};if(rt(D)){const M=Na(D);return function(B){return M.variants?Sn(B,M,B.theme.modularCssLayers?f:void 0):B.theme.modularCssLayers?yt(M.style,f):M.style}}return D},O=(...D)=>{const M=[],V=D.map(w),B=[];if(M.push(a),u&&y&&B.push(function(P){var L,J;const R=(J=(L=P.theme.components)==null?void 0:L[u])==null?void 0:J.styleOverrides;if(!R)return null;const $={};for(const ee in R)$[ee]=Sn(P,R[ee],P.theme.modularCssLayers?"theme":void 0);return y(P,$)}),u&&!v&&B.push(function(P){var $,L;const E=P.theme,R=(L=($=E==null?void 0:E.components)==null?void 0:$[u])==null?void 0:L.variants;return R?Aa(P,R,[],P.theme.modularCssLayers?"theme":void 0):null}),S||B.push(_t),Array.isArray(V[0])){const h=V.shift(),P=new Array(M.length).fill(""),E=new Array(B.length).fill("");let R;R=[...P,...h,...E],R.raw=[...P,...h.raw,...E],M.unshift(R)}const U=[...M,...V,...B],_=k(...U);return l.muiName&&(_.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=Ml(u,d,l)),_};return k.withConfig&&(O.withConfig=k.withConfig),O}}function Ml(e,t,n){return e?`${e}${_r(t||"")}`:`Styled(${Tl(n)})`}function Pl(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${_a(t||"Root")}`),n}function $l(e){for(const t in e)return!1;return!0}function Il(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _a(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function kn(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],l=t[a];if(!l)r[a]=i||{};else if(!i)r[a]=l;else{r[a]={...l};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const u=c;r[a][u]=kn(i[u],l[u],n)}}}else a==="className"&&n&&t.className?r.className=ae(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function ja(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kn(t.components[n].defaultProps,r)}function Nl({props:e,name:t,defaultTheme:n,themeId:r}){let o=$a(n);return o=o[r]||o,ja({theme:o,name:t,props:e})}const Al=typeof window<"u"?x.useLayoutEffect:x.useEffect;function _l(e,t,n,r,o){const[a,i]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Al(()=>{if(!n)return;const l=n(e),c=()=>{i(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const jl={...x},Va=jl.useSyncExternalStore;function Vl(e,t,n,r,o){const a=x.useCallback(()=>t,[t]),i=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,o,n]),[l,c]=x.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[a,n,e]);return Va(c,l,i)}function La(e={}){const{themeId:t}=e;return function(r,o={}){let a=Pa();a&&t&&(a=a[t]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=i?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=ja({name:"MuiUseMediaQuery",props:o,theme:a});process.env.NODE_ENV!=="production"&&typeof r=="function"&&a===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
69
- `));let p=typeof r=="function"?r(a):r;p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
70
- `));const y=(Va!==void 0?Vl:_l)(p,l,c,u,d);return process.env.NODE_ENV!=="production"&&x.useDebugValue({query:p,match:y}),y}}La();function Ll(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Br(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ll(e,t,n)}function Bl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function st(e){if(e.type)return e;if(e.charAt(0)==="#")return st(Bl(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
71
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Tn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
72
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tn(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const zl=e=>{const t=st(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Xt=(e,t)=>{try{return zl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ba(e){e=st(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(u,d=(u+n/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Hn({type:l,values:c})}function Tr(e){e=st(e);let t=e.type==="hsl"||e.type==="hsla"?st(Ba(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Io(e,t){const n=Tr(e),r=Tr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function it(e,t){return e=st(e),t=Br(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hn(e)}function dt(e,t,n){try{return it(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Yn(e,t){if(e=st(e),t=Br(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Hn(e)}function ge(e,t,n){try{return Yn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Gn(e,t){if(e=st(e),t=Br(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Hn(e)}function ye(e,t,n){try{return Gn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Fl(e,t=.15){return Tr(e)>.5?Yn(e,t):Gn(e,t)}function gn(e,t,n){try{return Fl(e,t)}catch{return e}}const Wl=x.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const cn=()=>x.useContext(Wl)??!1,Ul=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Hl(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?kn(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?kn(o,r,t.components.mergeClassNameAndStyle):r}function Yl({props:e,name:t}){const n=x.useContext(Ul);return Hl({props:e,name:t,theme:{components:n}})}const No={theme:void 0};function Gl(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(No.theme=o.theme,a=Na(e(No)),t=a,n=o.theme),a}}function ql(e=""){function t(...r){if(!r.length)return"";const o=r[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}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Ao=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},Kl=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...i,l]:i):t([...a,l],c,i))})}r(e)},Xl=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function hr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Kl(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=Xl(l,c);Object.assign(o,{[d]:p}),Ao(a,l,`var(${d})`,u),Ao(i,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function Jl(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:m}=hr(u,t);let y=m;const g={},{[c]:f,...v}=i;if(Object.entries(v||{}).forEach(([w,O])=>{const{vars:D,css:M,varsWithDefaults:V}=hr(O,t);y=vt(y,V),g[w]={css:M,vars:D}}),f){const{css:w,vars:O,varsWithDefaults:D}=hr(f,t);y=vt(y,D),g[c]={css:w,vars:O}}function S(w,O){var M,V;let D=o;if(o==="class"&&(D=".%s"),o==="data"&&(D="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(D=`[${o}="%s"]`),w){if(D==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((V=(M=i[w])==null?void 0:M.palette)==null?void 0:V.mode)||w})`]:{":root":O}};if(D)return e.defaultColorScheme===w?`:root, ${D.replace("%s",String(w))}`:D.replace("%s",String(w))}return":root"}return{vars:y,generateThemeVars:()=>{let w={...d};return Object.entries(g).forEach(([,{vars:O}])=>{w=vt(w,O)}),w},generateStyleSheets:()=>{var B,U;const w=[],O=e.defaultColorScheme||"light";function D(_,h){Object.keys(h).length&&w.push(typeof _=="string"?{[_]:{...h}}:_)}D(n(void 0,{...p}),p);const{[O]:M,...V}=g;if(M){const{css:_}=M,h=(U=(B=i[O])==null?void 0:B.palette)==null?void 0:U.mode,P=!r&&h?{colorScheme:h,..._}:{..._};D(n(O,{...P}),P)}return Object.entries(V).forEach(([_,{css:h}])=>{var R,$;const P=($=(R=i[_])==null?void 0:R.palette)==null?void 0:$.mode,E=!r&&P?{colorScheme:P,...h}:{...h};D(n(_,{...E}),E)}),a&&w.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)"}}),w}}}function Ql(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function ot(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function za(e){if(x.isValidElement(e)||At.isValidElementType(e)||!ot(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=za(e[n])}),t}function Ct(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ot(e)&&ot(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])||At.isValidElementType(t[o])?r[o]=t[o]:ot(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ot(e[o])?r[o]=Ct(e[o],t[o],n):n.clone?r[o]=ot(t[o])?za(t[o]):t[o]:r[o]=t[o]}),r}const rn={black:"#000",white:"#fff"},Zl={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"},Et={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Tt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Yt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ot={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Dt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},kt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Fa(){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:rn.white,default:rn.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 Wa=Fa();function Ua(){return{text:{primary:rn.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:rn.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 Or=Ua();function _o(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Gn(e.main,o):t==="dark"&&(e.dark=Yn(e.main,a)))}function jo(e,t,n,r,o){const a=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function ec(e="light"){return e==="dark"?{main:Ot[200],light:Ot[50],dark:Ot[400]}:{main:Ot[700],light:Ot[400],dark:Ot[800]}}function tc(e="light"){return e==="dark"?{main:Et[200],light:Et[50],dark:Et[400]}:{main:Et[500],light:Et[300],dark:Et[700]}}function nc(e="light"){return e==="dark"?{main:Tt[500],light:Tt[300],dark:Tt[700]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function rc(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[700],light:Dt[500],dark:Dt[900]}}function oc(e="light"){return e==="dark"?{main:kt[400],light:kt[300],dark:kt[700]}:{main:kt[800],light:kt[500],dark:kt[900]}}function ac(e="light"){return e==="dark"?{main:Yt[400],light:Yt[300],dark:Yt[700]}:{main:"#ed6c02",light:Yt[500],dark:Yt[900]}}function sc(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function zr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||ec(t),l=e.secondary||tc(t),c=e.error||nc(t),u=e.info||rc(t),d=e.success||oc(t),p=e.warning||ac(t);function m(v){if(o)return sc(v);const S=Io(v,Or.text.primary)>=n?Or.text.primary:Wa.text.primary;if(process.env.NODE_ENV!=="production"){const T=Io(v,S);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${S} on ${v}`,"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(`
73
- `))}return S}const y=({color:v,name:S,mainShade:T=500,lightShade:k=300,darkShade:w=700})=>{if(v={...v},!v.main&&v[T]&&(v.main=v[T]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
74
- The color object needs to have a \`main\` property or a \`${T}\` property.`:nn(11,S?` (${S})`:"",T));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
67
+ */function vh(t,e){const n=Jf(t,e);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof t=="string"?`"${t}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
68
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function yh(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Va=[];function on(t){return Va[0]=t,mh(Va)}const bh=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Eh(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=bh(e),s=Object.keys(i);function a(p){return`@media (min-width:${typeof e[p]=="number"?e[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof e[p]=="number"?e[p]:p)-r/100}${n})`}function c(p,h){const m=s.indexOf(h);return`@media (min-width:${typeof e[p]=="number"?e[p]:p}${n}) and (max-width:${(m!==-1&&typeof e[s[m]]=="number"?e[s[m]]:h)-r/100}${n})`}function u(p){return s.indexOf(p)+1<s.length?c(p,s[s.indexOf(p)+1]):a(p)}function f(p){const h=s.indexOf(p);return h===0?a(s[1]):h===s.length-1?l(s[h]):c(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:c,only:u,not:f,unit:n,...o}}const Sh={borderRadius:4};function $c(t=8,e=us({spacing:t})){if(t.mui)return t;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=e(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Ch(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return n.palette.mode===t?e:{}}function fs(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=t,a=Eh(n),l=$c(o);let c=rn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Sh,...i}},s);return c=bp(c),c.applyStyles=Ch,c=e.reduce((u,f)=>rn(u,f),c),c.unstable_sxConfig={...vr,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(f){return Pn({sx:f,theme:this})},c}function wh(t){return Object.keys(t).length===0}function Bc(t=null){const e=x.useContext(zt.ThemeContext);return!e||wh(e)?t:e}const xh=fs();function Lc(t=xh){return Bc(t)}function Hc(t,e=""){return t.displayName||t.name||e}function $a(t,e,n){const r=Hc(e);return t.displayName||(r!==""?`${n}(${r})`:n)}function Dh(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return Hc(t,"Component");if(typeof t=="object")switch(t.$$typeof){case In.ForwardRef:return $a(t,t.render,"ForwardRef");case In.Memo:return $a(t,t.type,"memo");default:return}}}function zc(t){const{variants:e,...n}=t,r={variants:e,style:on(n),isProcessed:!0};return r.style===n||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=on(o.style))}),r}const Th=fs();function li(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function tn(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function Ah(t){return t?(e,n)=>n[t]:null}function Rh(t,e,n){t.theme=Oh(t.theme)?n:t.theme[e]||t.theme}function Lr(t,e,n){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(o=>Lr(t,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?tn(r.style,n):r.style;else{const{variants:i,...s}=r;o=n?tn(on(s),n):s}return Fc(t,r.variants,[o],n)}return r!=null&&r.isProcessed?n?tn(on(r.style),n):r.style:n?tn(on(r),n):r}function Fc(t,e,n=[],r=void 0){var i;let o;e:for(let s=0;s<e.length;s+=1){const a=e[s];if(typeof a.props=="function"){if(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),!a.props(o))continue}else for(const l in a.props)if(t[l]!==a.props[l]&&((i=t.ownerState)==null?void 0:i[l])!==a.props[l])continue e;typeof a.style=="function"?(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),n.push(r?tn(on(a.style(o)),r):a.style(o))):n.push(r?tn(on(a.style),r):a.style)}return n}function _h(t={}){const{themeId:e,defaultTheme:n=Th,rootShouldForwardProp:r=li,slotShouldForwardProp:o=li}=t;function i(a){Rh(a,e,n)}return(a,l={})=>{yh(a,T=>T.filter(k=>k!==Pn));const{name:c,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Ah(Wc(u)),...m}=l,g=c&&c.startsWith("Mui")||u?"components":"custom",v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,b=p||!1;let S=li;u==="Root"||u==="root"?S=r:u?S=o:Ih(a)&&(S=void 0);const R=vh(a,{shouldForwardProp:S,label:Mh(c,u),...m}),C=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(P){return Lr(P,T,P.theme.modularCssLayers?g:void 0)};if(kt(T)){const k=zc(T);return function(H){return k.variants?Lr(H,k,H.theme.modularCssLayers?g:void 0):H.theme.modularCssLayers?tn(k.style,g):k.style}}return T},A=(...T)=>{const k=[],P=T.map(C),H=[];if(k.push(i),c&&h&&H.push(function(I){var z,J;const O=(J=(z=I.theme.components)==null?void 0:z[c])==null?void 0:J.styleOverrides;if(!O)return null;const N={};for(const ne in O)N[ne]=Lr(I,O[ne],I.theme.modularCssLayers?"theme":void 0);return h(I,N)}),c&&!v&&H.push(function(I){var N,z;const _=I.theme,O=(z=(N=_==null?void 0:_.components)==null?void 0:N[c])==null?void 0:z.variants;return O?Fc(I,O,[],I.theme.modularCssLayers?"theme":void 0):null}),b||H.push(Pn),Array.isArray(P[0])){const y=P.shift(),I=new Array(k.length).fill(""),_=new Array(H.length).fill("");let O;O=[...I,...y,..._],O.raw=[...I,...y.raw,..._],k.unshift(O)}const W=[...k,...P,...H],$=R(...W);return a.muiName&&($.muiName=a.muiName),process.env.NODE_ENV!=="production"&&($.displayName=kh(c,u,a)),$};return R.withConfig&&(A.withConfig=R.withConfig),A}}function kh(t,e,n){return t?`${t}${cs(e||"")}`:`Styled(${Dh(n)})`}function Mh(t,e){let n;return process.env.NODE_ENV!=="production"&&t&&(n=`${t}-${Wc(e||"Root")}`),n}function Oh(t){for(const e in t)return!1;return!0}function Ih(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Wc(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Xr(t,e,n=!1){const r={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const i=o;if(i==="components"||i==="slots")r[i]={...t[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=t[i],a=e[i];if(!a)r[i]=s||{};else if(!s)r[i]=a;else{r[i]={...a};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const c=l;r[i][c]=Xr(s[c],a[c],n)}}}else i==="className"&&n&&e.className?r.className=ce(t==null?void 0:t.className,e==null?void 0:e.className):i==="style"&&n&&e.style?r.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:r[i]===void 0&&(r[i]=t[i])}return r}function Uc(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Xr(e.components[n].defaultProps,r)}function Ph({props:t,name:e,defaultTheme:n,themeId:r}){let o=Lc(n);return o=o[r]||o,Uc({theme:o,name:e,props:t})}const Nh=typeof window<"u"?x.useLayoutEffect:x.useEffect;function jh(t,e,n,r,o){const[i,s]=x.useState(()=>o&&n?n(t).matches:r?r(t).matches:e);return Nh(()=>{if(!n)return;const a=n(t),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[t,n]),i}const Vh={...x},Gc=Vh.useSyncExternalStore;function $h(t,e,n,r,o){const i=x.useCallback(()=>e,[e]),s=x.useMemo(()=>{if(o&&n)return()=>n(t).matches;if(r!==null){const{matches:u}=r(t);return()=>u}return i},[i,t,r,o,n]),[a,l]=x.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(t);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[i,n,t]);return Gc(l,a,s)}function Yc(t={}){const{themeId:e}=t;return function(r,o={}){let i=Bc();i&&e&&(i=i[e]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Uc({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
69
+ `));let f=typeof r=="function"?r(i):r;f=f.replace(/^@media( ?)/m,""),f.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
70
+ `));const h=(Gc!==void 0?$h:jh)(f,a,l,c,u);return process.env.NODE_ENV!=="production"&&x.useDebugValue({query:f,match:h}),h}}Yc();function Bh(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function ps(t,e=0,n=1){return process.env.NODE_ENV!=="production"&&(t<e||t>n)&&console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`),Bh(t,e,n)}function Lh(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&t.length!==t.trim().length&&console.error(`MUI: The color: "${t}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Vt(t){if(t.type)return t;if(t.charAt(0)==="#")return Vt(Lh(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${t}\` color.
71
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Qr(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
72
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Hh=t=>{const e=Vt(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},er=(t,e)=>{try{return Hh(t)}catch{return e&&process.env.NODE_ENV!=="production"&&console.warn(e),t}};function Oo(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function qc(t){t=Vt(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),Oo({type:a,values:l})}function Vi(t){t=Vt(t);let e=t.type==="hsl"||t.type==="hsla"?Vt(qc(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Ba(t,e){const n=Vi(t),r=Vi(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function $t(t,e){return t=Vt(t),e=ps(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Oo(t)}function Ut(t,e,n){try{return $t(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Io(t,e){if(t=Vt(t),e=ps(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Oo(t)}function Ce(t,e,n){try{return Io(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Po(t,e){if(t=Vt(t),e=ps(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Oo(t)}function we(t,e,n){try{return Po(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function zh(t,e=.15){return Vi(t)>.5?Io(t,e):Po(t,e)}function Ar(t,e,n){try{return zh(t,e)}catch{return t}}const Fh=x.createContext();process.env.NODE_ENV!=="production"&&(d.node,d.bool);const yr=()=>x.useContext(Fh)??!1,Wh=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.node,d.object);function Uh(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?Xr(o.defaultProps,r,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Xr(o,r,e.components.mergeClassNameAndStyle):r}function Gh({props:t,name:e}){const n=x.useContext(Wh);return Uh({props:t,name:e,theme:{components:n}})}const La={theme:void 0};function Yh(t){let e,n;return function(o){let i=e;return(i===void 0||o.theme!==n)&&(La.theme=o.theme,i=zc(t(La)),e=i,n=o.theme),i}}function qh(t=""){function e(...r){if(!r.length)return"";const o=r[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(--${t?`${t}-`:""}${o}${e(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${t?`${t}-`:""}${r}${e(...o)})`}const Ha=(t,e,n,r=[])=>{let o=t;e.forEach((i,s)=>{s===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Qh=(t,e,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):e([...i,a],l,s))})}r(t)},Zh=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function ci(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},s={};return Qh(t,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,f=Zh(a,l);Object.assign(o,{[u]:f}),Ha(i,a,`var(${u})`,c),Ha(s,a,`var(${u}, ${f})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function Kh(t,e={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=e,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...c}=t,{vars:u,css:f,varsWithDefaults:p}=ci(c,e);let h=p;const m={},{[l]:g,...v}=s;if(Object.entries(v||{}).forEach(([C,A])=>{const{vars:T,css:k,varsWithDefaults:P}=ci(A,e);h=rn(h,P),m[C]={css:k,vars:T}}),g){const{css:C,vars:A,varsWithDefaults:T}=ci(g,e);h=rn(h,T),m[l]={css:C,vars:A}}function b(C,A){var k,P;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),C){if(T==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((P=(k=s[C])==null?void 0:k.palette)==null?void 0:P.mode)||C})`]:{":root":A}};if(T)return t.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...u};return Object.entries(m).forEach(([,{vars:A}])=>{C=rn(C,A)}),C},generateStyleSheets:()=>{var H,W;const C=[],A=t.defaultColorScheme||"light";function T($,y){Object.keys(y).length&&C.push(typeof $=="string"?{[$]:{...y}}:$)}T(n(void 0,{...f}),f);const{[A]:k,...P}=m;if(k){const{css:$}=k,y=(W=(H=s[A])==null?void 0:H.palette)==null?void 0:W.mode,I=!r&&y?{colorScheme:y,...$}:{...$};T(n(A,{...I}),I)}return Object.entries(P).forEach(([$,{css:y}])=>{var O,N;const I=(N=(O=s[$])==null?void 0:O.palette)==null?void 0:N.mode,_=!r&&I?{colorScheme:I,...y}:{...y};T(n($,{..._}),_)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function Xh(t){return function(n){return t==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}function Mt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Qc(t){if(x.isValidElement(t)||In.isValidElementType(t)||!Mt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=Qc(t[n])}),e}function sn(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Mt(t)&&Mt(e)&&Object.keys(e).forEach(o=>{x.isValidElement(e[o])||In.isValidElementType(e[o])?r[o]=e[o]:Mt(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Mt(t[o])?r[o]=sn(t[o],e[o],n):n.clone?r[o]=Mt(e[o])?Qc(e[o]):e[o]:r[o]=e[o]}),r}const ur={black:"#000",white:"#fff"},Jh={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"},vn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},En={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Sn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Zc(){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:ur.white,default:ur.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 Kc=Zc();function Xc(){return{text:{primary:ur.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:ur.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 $i=Xc();function za(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Po(t.main,o):e==="dark"&&(t.dark=Io(t.main,i)))}function Fa(t,e,n,r,o){const i=o.light||o,s=o.dark||o*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(s*100).toFixed(0)}%)`))}function eg(t="light"){return t==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[700],light:bn[400],dark:bn[800]}}function tg(t="light"){return t==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}function ng(t="light"){return t==="dark"?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}function rg(t="light"){return t==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function og(t="light"){return t==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:Sn[800],light:Sn[500],dark:Sn[900]}}function ig(t="light"){return t==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:"#ed6c02",light:Qn[500],dark:Qn[900]}}function sg(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function hs(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=t,s=t.primary||eg(e),a=t.secondary||tg(e),l=t.error||ng(e),c=t.info||rg(e),u=t.success||og(e),f=t.warning||ig(e);function p(v){if(o)return sg(v);const b=Ba(v,$i.text.primary)>=n?$i.text.primary:Kc.text.primary;if(process.env.NODE_ENV!=="production"){const S=Ba(v,b);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${b} on ${v}`,"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(`
73
+ `))}return b}const h=({color:v,name:b,mainShade:S=500,lightShade:R=300,darkShade:C=700})=>{if(v={...v},!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
74
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:cr(11,b?` (${b})`:"",S));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
75
75
  \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
76
76
 
77
77
  Did you intend to use one of the following approaches?
@@ -84,23 +84,23 @@ const theme1 = createTheme({ palette: {
84
84
 
85
85
  const theme2 = createTheme({ palette: {
86
86
  primary: { main: green[500] },
87
- } });`:nn(12,S?` (${S})`:"",JSON.stringify(v.main)));return o?(jo(o,v,"light",k,r),jo(o,v,"dark",w,r)):(_o(v,"light",k,r),_o(v,"dark",w,r)),v.contrastText||(v.contrastText=m(v.main)),v};let g;return t==="light"?g=Fa():t==="dark"&&(g=Ua()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ct({common:{...rn},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:Zl,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...g},a)}function ic(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const lc={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 _e(e,t,n="Mui"){const r=lc[t];return r?`${n}-${r}`:`${ai.generate(e)}-${t}`}function cc(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function uc(e){return Math.round(e*1e5)/1e5}const Vo={textTransform:"uppercase"},Lo='"Roboto", "Helvetica", "Arial", sans-serif';function dc(e,t){const{fontFamily:n=Lo,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,y=d||(v=>`${v/c*m}rem`),g=(v,S,T,k,w)=>({fontFamily:n,fontWeight:v,fontSize:y(S),lineHeight:T,...n===Lo?{letterSpacing:`${uc(k/S)}em`}:{},...w,...u}),f={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,Vo),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Vo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ct({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...f},p,{clone:!1})}const fc=.2,pc=.14,hc=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fc})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pc})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hc})`].join(",")}const mc=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],gc={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)"},yc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bo(e){return`${Math.round(e)}ms`}function bc(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function vc(e){const t={...gc,...e.easing},n={...yc,...e.duration};return{getAutoHeightDuration:bc,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",p=m=>!Number.isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
88
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Bo(i)} ${l} ${typeof c=="string"?c:Bo(c)}`).join(",")},...e,easing:t,duration:n}}const xc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Cc(e){return ot(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ha(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,l]=o[a];!Cc(l)||i.startsWith("unstable_")?delete r[i]:ot(l)&&(r[i]={...l},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
87
+ } });`:cr(12,b?` (${b})`:"",JSON.stringify(v.main)));return o?(Fa(o,v,"light",R,r),Fa(o,v,"dark",C,r)):(za(v,"light",R,r),za(v,"dark",C,r)),v.contrastText||(v.contrastText=p(v.main)),v};let m;return e==="light"?m=Zc():e==="dark"&&(m=Xc()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${e}\` is not supported.`)),sn({common:{...ur},mode:e,primary:h({color:s,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Jh,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r,...m},i)}function ag(t){const e={};return Object.entries(t).forEach(r=>{const[o,i]=r;typeof i=="object"&&(e[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||""}`)}),e}const lg={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 Xe(t,e,n="Mui"){const r=lg[e];return r?`${n}-${r}`:`${ip.generate(t)}-${e}`}function cg(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function ug(t){return Math.round(t*1e5)/1e5}const Wa={textTransform:"uppercase"},Ua='"Roboto", "Helvetica", "Arial", sans-serif';function dg(t,e){const{fontFamily:n=Ua,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof e=="function"?e(t):e;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=u||(v=>`${v/l*p}rem`),m=(v,b,S,R,C)=>({fontFamily:n,fontWeight:v,fontSize:h(b),lineHeight:S,...n===Ua?{letterSpacing:`${ug(R/b)}em`}:{},...C,...c}),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,Wa),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Wa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sn({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...g},f,{clone:!1})}const fg=.2,pg=.14,hg=.12;function ke(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${fg})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${pg})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${hg})`].join(",")}const gg=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],mg={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)"},vg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ga(t){return`${Math.round(t)}ms`}function yg(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function bg(t){const e={...mg,...t.easing},n={...vg,...t.duration};return{getAutoHeightDuration:yg,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=e.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!u(l)&&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(`
88
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Ga(s)} ${a} ${typeof l=="string"?l:Ga(l)}`).join(",")},...t,easing:e,duration:n}}const Eg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Sg(t){return Mt(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Jc(t={}){const e={...t};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,a]=o[i];!Sg(a)||s.startsWith("unstable_")?delete r[s]:Mt(a)&&(r[s]={...a},n(r[s]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
89
89
 
90
- const theme = ${JSON.stringify(t,null,2)};
90
+ const theme = ${JSON.stringify(e,null,2)};
91
91
 
92
92
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
93
93
  theme.transitions = createTransitions(theme.transitions || {});
94
94
 
95
- export default theme;`}function zo(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Sc=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function wc(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:it(t,Sc(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${zo(n)})`:Gn(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${zo(n)})`:Yn(t,n)}})}function Dr(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":nn(20));const p=zr({...a,colorSpace:u}),m=Lr(e);let y=Ct(m,{mixins:cc(m.breakpoints,r),palette:p,shadows:mc.slice(),typography:dc(p,l),transitions:vc(i),zIndex:{...xc}});if(y=Ct(y,d),y=t.reduce((g,f)=>Ct(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(v,S)=>{let T;for(T in v){const k=v[T];if(g.includes(T)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const w=_e("",T);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
96
- `))}v[T]={}}}};Object.keys(y.components).forEach(v=>{const S=y.components[v].styleOverrides;S&&v.startsWith("Mui")&&f(S,v)})}return y.unstable_sxConfig={...ln,...d==null?void 0:d.unstable_sxConfig},y.unstable_sx=function(f){return _t({sx:f,theme:this})},y.toRuntimeSource=Ha,wc(y),y}function Ec(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Tc=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ec(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ya(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ga(e){return e==="dark"?Tc:[]}function Oc(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=zr({...t,colorSpace:o});return{palette:i,opacity:{...Ya(i.mode),...n},overlays:r||Ga(i.mode),...a}}function Dc(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const kc=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Rc=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return kc(e.cssVarPrefix).forEach(l=>{i[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function Mc(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function I(e,t,n){!e[t]&&n&&(e[t]=n)}function Jt(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ba(e)}function Je(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Xt(Jt(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
97
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Pc(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ge=e=>{try{return e()}catch{}},$c=(e="mui")=>ql(e);function mr(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=Oc({...n,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:i,...l}=Dr({...r,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Ya(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Ga(a)},l}function Ic(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:l=Dc,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),y=$c(a),{[m]:g,light:f,dark:v,...S}=n,T={...S};let k=g;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:nn(21,m));let w;i&&(w="oklch");const O=mr(w,T,k,d,m);f&&!T.light&&mr(w,T,f,void 0,"light"),v&&!T.dark&&mr(w,T,v,void 0,"dark");let D={defaultColorScheme:m,...O,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:T,font:{...ic(O.typography),...O.font},spacing:Pc(d.spacing)};Object.keys(D.colorSchemes).forEach(_=>{const h=D.colorSchemes[_].palette,P=R=>{const $=R.split("-"),L=$[1],J=$[2];return y(R,h[L][J])};h.mode==="light"&&(I(h.common,"background","#fff"),I(h.common,"onBackground","#000")),h.mode==="dark"&&(I(h.common,"background","#000"),I(h.common,"onBackground","#fff"));function E(R,$,L){if(w){let J;return R===dt&&(J=`transparent ${((1-L)*100).toFixed(0)}%`),R===ge&&(J=`#000 ${(L*100).toFixed(0)}%`),R===ye&&(J=`#fff ${(L*100).toFixed(0)}%`),`color-mix(in ${w}, ${$}, ${J})`}return R($,L)}if(Mc(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){I(h.Alert,"errorColor",E(ge,h.error.light,.6)),I(h.Alert,"infoColor",E(ge,h.info.light,.6)),I(h.Alert,"successColor",E(ge,h.success.light,.6)),I(h.Alert,"warningColor",E(ge,h.warning.light,.6)),I(h.Alert,"errorFilledBg",P("palette-error-main")),I(h.Alert,"infoFilledBg",P("palette-info-main")),I(h.Alert,"successFilledBg",P("palette-success-main")),I(h.Alert,"warningFilledBg",P("palette-warning-main")),I(h.Alert,"errorFilledColor",Ge(()=>h.getContrastText(h.error.main))),I(h.Alert,"infoFilledColor",Ge(()=>h.getContrastText(h.info.main))),I(h.Alert,"successFilledColor",Ge(()=>h.getContrastText(h.success.main))),I(h.Alert,"warningFilledColor",Ge(()=>h.getContrastText(h.warning.main))),I(h.Alert,"errorStandardBg",E(ye,h.error.light,.9)),I(h.Alert,"infoStandardBg",E(ye,h.info.light,.9)),I(h.Alert,"successStandardBg",E(ye,h.success.light,.9)),I(h.Alert,"warningStandardBg",E(ye,h.warning.light,.9)),I(h.Alert,"errorIconColor",P("palette-error-main")),I(h.Alert,"infoIconColor",P("palette-info-main")),I(h.Alert,"successIconColor",P("palette-success-main")),I(h.Alert,"warningIconColor",P("palette-warning-main")),I(h.AppBar,"defaultBg",P("palette-grey-100")),I(h.Avatar,"defaultBg",P("palette-grey-400")),I(h.Button,"inheritContainedBg",P("palette-grey-300")),I(h.Button,"inheritContainedHoverBg",P("palette-grey-A100")),I(h.Chip,"defaultBorder",P("palette-grey-400")),I(h.Chip,"defaultAvatarColor",P("palette-grey-700")),I(h.Chip,"defaultIconColor",P("palette-grey-700")),I(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),I(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),I(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),I(h.LinearProgress,"primaryBg",E(ye,h.primary.main,.62)),I(h.LinearProgress,"secondaryBg",E(ye,h.secondary.main,.62)),I(h.LinearProgress,"errorBg",E(ye,h.error.main,.62)),I(h.LinearProgress,"infoBg",E(ye,h.info.main,.62)),I(h.LinearProgress,"successBg",E(ye,h.success.main,.62)),I(h.LinearProgress,"warningBg",E(ye,h.warning.main,.62)),I(h.Skeleton,"bg",w?E(dt,h.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),I(h.Slider,"primaryTrack",E(ye,h.primary.main,.62)),I(h.Slider,"secondaryTrack",E(ye,h.secondary.main,.62)),I(h.Slider,"errorTrack",E(ye,h.error.main,.62)),I(h.Slider,"infoTrack",E(ye,h.info.main,.62)),I(h.Slider,"successTrack",E(ye,h.success.main,.62)),I(h.Slider,"warningTrack",E(ye,h.warning.main,.62));const R=w?E(ge,h.background.default,.6825):gn(h.background.default,.8);I(h.SnackbarContent,"bg",R),I(h.SnackbarContent,"color",Ge(()=>w?Or.text.primary:h.getContrastText(R))),I(h.SpeedDialAction,"fabHoverBg",gn(h.background.paper,.15)),I(h.StepConnector,"border",P("palette-grey-400")),I(h.StepContent,"border",P("palette-grey-400")),I(h.Switch,"defaultColor",P("palette-common-white")),I(h.Switch,"defaultDisabledColor",P("palette-grey-100")),I(h.Switch,"primaryDisabledColor",E(ye,h.primary.main,.62)),I(h.Switch,"secondaryDisabledColor",E(ye,h.secondary.main,.62)),I(h.Switch,"errorDisabledColor",E(ye,h.error.main,.62)),I(h.Switch,"infoDisabledColor",E(ye,h.info.main,.62)),I(h.Switch,"successDisabledColor",E(ye,h.success.main,.62)),I(h.Switch,"warningDisabledColor",E(ye,h.warning.main,.62)),I(h.TableCell,"border",E(ye,E(dt,h.divider,1),.88)),I(h.Tooltip,"bg",E(dt,h.grey[700],.92))}if(h.mode==="dark"){I(h.Alert,"errorColor",E(ye,h.error.light,.6)),I(h.Alert,"infoColor",E(ye,h.info.light,.6)),I(h.Alert,"successColor",E(ye,h.success.light,.6)),I(h.Alert,"warningColor",E(ye,h.warning.light,.6)),I(h.Alert,"errorFilledBg",P("palette-error-dark")),I(h.Alert,"infoFilledBg",P("palette-info-dark")),I(h.Alert,"successFilledBg",P("palette-success-dark")),I(h.Alert,"warningFilledBg",P("palette-warning-dark")),I(h.Alert,"errorFilledColor",Ge(()=>h.getContrastText(h.error.dark))),I(h.Alert,"infoFilledColor",Ge(()=>h.getContrastText(h.info.dark))),I(h.Alert,"successFilledColor",Ge(()=>h.getContrastText(h.success.dark))),I(h.Alert,"warningFilledColor",Ge(()=>h.getContrastText(h.warning.dark))),I(h.Alert,"errorStandardBg",E(ge,h.error.light,.9)),I(h.Alert,"infoStandardBg",E(ge,h.info.light,.9)),I(h.Alert,"successStandardBg",E(ge,h.success.light,.9)),I(h.Alert,"warningStandardBg",E(ge,h.warning.light,.9)),I(h.Alert,"errorIconColor",P("palette-error-main")),I(h.Alert,"infoIconColor",P("palette-info-main")),I(h.Alert,"successIconColor",P("palette-success-main")),I(h.Alert,"warningIconColor",P("palette-warning-main")),I(h.AppBar,"defaultBg",P("palette-grey-900")),I(h.AppBar,"darkBg",P("palette-background-paper")),I(h.AppBar,"darkColor",P("palette-text-primary")),I(h.Avatar,"defaultBg",P("palette-grey-600")),I(h.Button,"inheritContainedBg",P("palette-grey-800")),I(h.Button,"inheritContainedHoverBg",P("palette-grey-700")),I(h.Chip,"defaultBorder",P("palette-grey-700")),I(h.Chip,"defaultAvatarColor",P("palette-grey-300")),I(h.Chip,"defaultIconColor",P("palette-grey-300")),I(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),I(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),I(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),I(h.LinearProgress,"primaryBg",E(ge,h.primary.main,.5)),I(h.LinearProgress,"secondaryBg",E(ge,h.secondary.main,.5)),I(h.LinearProgress,"errorBg",E(ge,h.error.main,.5)),I(h.LinearProgress,"infoBg",E(ge,h.info.main,.5)),I(h.LinearProgress,"successBg",E(ge,h.success.main,.5)),I(h.LinearProgress,"warningBg",E(ge,h.warning.main,.5)),I(h.Skeleton,"bg",w?E(dt,h.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),I(h.Slider,"primaryTrack",E(ge,h.primary.main,.5)),I(h.Slider,"secondaryTrack",E(ge,h.secondary.main,.5)),I(h.Slider,"errorTrack",E(ge,h.error.main,.5)),I(h.Slider,"infoTrack",E(ge,h.info.main,.5)),I(h.Slider,"successTrack",E(ge,h.success.main,.5)),I(h.Slider,"warningTrack",E(ge,h.warning.main,.5));const R=w?E(ye,h.background.default,.985):gn(h.background.default,.98);I(h.SnackbarContent,"bg",R),I(h.SnackbarContent,"color",Ge(()=>w?Wa.text.primary:h.getContrastText(R))),I(h.SpeedDialAction,"fabHoverBg",gn(h.background.paper,.15)),I(h.StepConnector,"border",P("palette-grey-600")),I(h.StepContent,"border",P("palette-grey-600")),I(h.Switch,"defaultColor",P("palette-grey-300")),I(h.Switch,"defaultDisabledColor",P("palette-grey-600")),I(h.Switch,"primaryDisabledColor",E(ge,h.primary.main,.55)),I(h.Switch,"secondaryDisabledColor",E(ge,h.secondary.main,.55)),I(h.Switch,"errorDisabledColor",E(ge,h.error.main,.55)),I(h.Switch,"infoDisabledColor",E(ge,h.info.main,.55)),I(h.Switch,"successDisabledColor",E(ge,h.success.main,.55)),I(h.Switch,"warningDisabledColor",E(ge,h.warning.main,.55)),I(h.TableCell,"border",E(ge,E(dt,h.divider,1),.68)),I(h.Tooltip,"bg",E(dt,h.grey[700],.92))}Je(h.background,"default"),Je(h.background,"paper"),Je(h.common,"background"),Je(h.common,"onBackground"),Je(h,"divider"),Object.keys(h).forEach(R=>{const $=h[R];R!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&I(h[R],"mainChannel",Xt(Jt($.main))),$.light&&I(h[R],"lightChannel",Xt(Jt($.light))),$.dark&&I(h[R],"darkChannel",Xt(Jt($.dark))),$.contrastText&&I(h[R],"contrastTextChannel",Xt(Jt($.contrastText))),R==="text"&&(Je(h[R],"primary"),Je(h[R],"secondary")),R==="action"&&($.active&&Je(h[R],"active"),$.selected&&Je(h[R],"selected")))})}),D=t.reduce((_,h)=>Ct(_,h),D);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:Rc(D),enableContrastVars:i},{vars:V,generateThemeVars:B,generateStyleSheets:U}=Jl(D,M);return D.vars=V,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([_,h])=>{D[_]=h}),D.generateThemeVars=B,D.generateStyleSheets=U,D.generateSpacing=function(){return Ma(d.spacing,jr(this))},D.getColorSchemeSelector=Ql(c),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=l,D.unstable_sxConfig={...ln,...d==null?void 0:d.unstable_sxConfig},D.unstable_sx=function(h){return _t({sx:h,theme:this})},D.toRuntimeSource=Ha,D}function Fo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:zr({...n===!0?{}:n.palette,mode:t})})}function Nc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...i}=e,l=a||"light",c=o==null?void 0:o[l],u={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Dr(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=Dr({...e,palette:d},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Fo(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Fo(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),Ic({...i,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Fr=Nc(),qn="$$material";function Wr(){const e=$a(Fr);return process.env.NODE_ENV!=="production"&&x.useDebugValue(e),e[qn]||e}function Ac(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qa=e=>Ac(e)&&e!=="classes",Z=Rl({themeId:qn,defaultTheme:Fr,rootShouldForwardProp:qa});function _c(){return cl}const qe=Gl;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return Yl(e)}function je(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function jc(e){return _e("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vc=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(n)}`]};return Ue(o,jc,r)},Lc=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${re(n.color)}`],t[`fontSize${re(n.fontSize)}`]]}})(qe(({theme:e})=>{var t,n,r,o,a,i,l,c,u,d,p,m,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var v,S;return{props:{color:f},style:{color:(S=(v=(e.vars??e).palette)==null?void 0:v[f])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Rn=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24",...y}=r,g=x.isValidElement(o)&&o.type==="svg",f={...r,color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:g},v={};d||(v.viewBox=m);const S=Vc(f);return b.jsxs(Lc,{as:l,className:ae(S.root,a),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...y,...g&&o.props,ownerState:f,children:[g?o.props.children:o,p?b.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});Rn.muiName="SvgIcon";function De(e,t){function n(r,o){return b.jsx(Rn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Rn.muiName,x.memo(x.forwardRef(n))}function Ka(e,t){var n,r,o;return x.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}const Bc=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Wo=0;function zc(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Wo+=1,n(`mui-${Wo}`))},[t]),r}const Fc={...x},Uo=Fc.useId;function Xa(e){if(Uo!==void 0){const t=Uo();return e??t}return zc(e)}function Wc(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function wn(e){const t=x.useRef(e);return Bc(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function jt(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Uc=De(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Hc=De(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Yc=De(b.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}),"Today"),Mn=De(b.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonth"),Gc=De(b.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),Ja=De(b.jsx("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}),"ViewWeek"),Qa=De(b.jsx("path",{d:"M2 21h19v-3H2zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1M2 3v3h19V3z"}),"ViewDay"),qc=[{icon:b.jsx(Mn,{}),name:"Month",value:"dayGridMonth"},{icon:b.jsx(Ja,{}),name:"Week",value:"timeGridWeek"},{icon:b.jsx(Qa,{}),name:"Day",value:"timeGridDay"}],Kc=({onPrev:e,onToday:t,onNext:n,onDatePickerOpen:r,calendarView:o,onViewChange:a,currentTitle:i})=>{const l={dayGridMonth:b.jsx(Mn,{}),timeGridWeek:b.jsx(Ja,{}),timeGridDay:b.jsx(Qa,{})};return b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,px:1},children:[b.jsxs(Y.Box,{sx:{display:"flex",gap:1},children:[b.jsx(Y.Tooltip,{title:"Previous",children:b.jsx(Y.IconButton,{size:"small",onClick:e,children:b.jsx(Uc,{fontSize:"small"})})}),b.jsx(Y.Tooltip,{title:"Go to today",children:b.jsx(Y.IconButton,{size:"small",onClick:t,children:b.jsx(Yc,{fontSize:"small"})})}),b.jsx(Y.Tooltip,{title:"Select date",children:b.jsx(Y.IconButton,{size:"small",onClick:r,children:b.jsx(Mn,{fontSize:"small"})})}),b.jsx(Y.Tooltip,{title:"Next",children:b.jsx(Y.IconButton,{size:"small",onClick:n,children:b.jsx(Hc,{fontSize:"small"})})})]}),b.jsx(Y.Typography,{variant:"subtitle1",children:i}),b.jsx(Pt.SpeedDialButton,{actions:qc,value:o,onChange:a,icons:l,openIcon:b.jsx(Gc,{})})]})};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function Me({props:e,name:t}){return Nl({props:e,name:t,defaultTheme:Fr,themeId:qn})}function Ce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const Xc=["localeText"],Pn=x.createContext(null);process.env.NODE_ENV!=="production"&&(Pn.displayName="MuiPickersAdapterContext");const Za=function(t){const{localeText:n}=t,r=Ce(t,Xc),{utils:o,localeText:a}=x.useContext(Pn)??{utils:void 0,localeText:void 0},i=Me({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:m}=i,y=x.useMemo(()=>W({},m,a,n),[m,a,n]),g=x.useMemo(()=>{if(!c)return o||null;const S=new c({locale:p,formats:u,instance:d});if(!S.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
98
- `));return S},[c,p,u,d,o]),f=x.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),v=x.useMemo(()=>({utils:g,defaultDates:f,localeText:y}),[f,g,y]);return b.jsx(Pn.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(Za.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const Jc=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:W({},e)}}}}),es={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Qc=es;Jc(es);const Bt=()=>{const e=x.useContext(Pn);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
99
- `));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
100
- `));const t=x.useMemo(()=>W({},Qc,e.localeText),[e.localeText]);return x.useMemo(()=>W({},e,{localeText:t}),[e,t])},Re=()=>Bt().utils,Kn=()=>Bt().defaultDates,Xn=e=>{const t=Re(),n=x.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},Gt=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Zc=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:a}},$n=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},tn=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:l})=>{const c=$n(i,i.date(void 0,l),e);n&&i.isBefore(o,c)&&(o=c),t&&i.isAfter(r,c)&&(r=c);let u=e,d=e;for(i.isBefore(e,o)&&(u=o,d=null),i.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&i.isAfter(u,r)&&(u=null),d&&i.isBefore(d,o)&&(d=null),u){if(!a(u))return u;u=i.addDays(u,1)}if(d){if(!a(d))return d;d=i.addDays(d,-1)}}return null},eu=(e,t)=>t==null||!e.isValid(t)?null:t,Ke=(e,t,n)=>t==null||!e.isValid(t)?n:t,tu=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),nu=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},ts=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),ru=["year","month","day"],Ho=e=>ru.includes(e),ou=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Gt(n,["year"])?o.year:Gt(n,["month"])?o.month:Gt(n,["day"])?o.dayOfMonth:Gt(n,["month","year"])?`${o.month} ${o.year}`:Gt(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate},au=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))};function su(e){return typeof e.main=="string"}function iu(e,t=[]){if(!su(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function et(e=[]){return([,t])=>t&&iu(t,e)}function lu(e){return _e("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cu={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},uu=_c(),du=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${re(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ue(l,lu,i)},fu=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(et()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${re(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Yo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wt=x.forwardRef(function(t,n){const{color:r,...o}=Fe({props:t,name:"MuiTypography"}),a=!cu[r],i=uu({...o,...a&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:m=!1,variant:y="body1",variantMapping:g=Yo,...f}=i,v={...i,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:m,variant:y,variantMapping:g},S=u||(m?"p":g[y]||Yo[y])||"span",T=du(v);return b.jsx(fu,{as:S,ref:n,className:ae(T.root,c),...f,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(wt.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function Pe(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(i+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(i+=" "+n[u]))}r[o]=i}return r}const St=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Go=0;function pu(e){const[t,n]=x.useState(e),r=t;return x.useEffect(()=>{t==null&&(Go+=1,n(`mui-${Go}`))},[t]),r}const hu={...x},qo=hu.useId;function mu(e){return qo!==void 0?qo():pu(e)}function Vt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[a,i]=x.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){x.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
101
- `))},[r,n,e]);const{current:u}=x.useRef(t);x.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
102
- `))},[JSON.stringify(t)])}const c=x.useCallback(u=>{o||i(u)},[]);return[l,c]}function ue(e){const t=x.useRef(e);return St(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Ur(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Ko=e=>e,gu=()=>{let e=Ko;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ko}}},yu=gu(),bu={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 $e(e,t,n="Mui"){const r=bu[t];return r?`${n}-${r}`:`${yu.generate(e)}-${t}`}function Ie(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=$e(e,o,n)}),r}function vu(e){return typeof e=="string"}function xu(e,t,n){return e===void 0||vu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Cu(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Xo(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Su(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=ae(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const i=Cu({...o,...r}),l=Xo(r),c=Xo(o),u=t(i),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...u,...n,...c,...l};return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function wu(e,t,n){return typeof e=="function"?e(t,n):e}function Ae(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:wu(n,r),{props:l,internalRef:c}=Su({...a,externalSlotProps:i}),u=Ur(c,i==null?void 0:i.ref,(p=e.additionalProps)==null?void 0:p.ref);return xu(t,{...l,ref:u},r)}function Eu(e){return $e("MuiPickersToolbar",e)}Ie("MuiPickersToolbar",["root","content"]);const Tu=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Ou=e=>{const{classes:t}=e;return Pe({root:["root"],content:["content"]},Eu,t)},Du=Z("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),ku=Z("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Ru=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:l,titleId:c}=r,u=Ce(r,Tu),d=r,p=Ou(d);return l?null:b.jsxs(Du,W({ref:n,className:ae(p.root,a),ownerState:d},u,{children:[b.jsx(wt,{color:"text.secondary",variant:"overline",id:c,children:i}),b.jsx(ku,{className:p.content,ownerState:d,children:o})]}))}),Jn=()=>Bt().localeText;function Mu(e){return $e("MuiDatePickerToolbar",e)}Ie("MuiDatePickerToolbar",["root","title"]);const Pu=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],$u=e=>{const{classes:t}=e;return Pe({root:["root"],title:["title"]},Mu,t)},Iu=Z(Ru,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nu=Z(wt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),ns=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:l="––",views:c,className:u}=r,d=Ce(r,Pu),p=Re(),m=Jn(),y=$u(r),g=x.useMemo(()=>{if(!o)return l;const v=ou(p,{format:i,views:c});return p.formatByString(o,v)},[o,i,l,p,c]),f=r;return b.jsx(Iu,W({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:a,className:ae(y.root,u)},d,{children:b.jsx(Nu,{variant:"h4",align:a?"left":"center",ownerState:f,className:y.title,children:g})}))});process.env.NODE_ENV!=="production"&&(ns.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function Au(e,t){const n=Re(),r=Kn(),o=Me({props:e,name:t}),a=x.useMemo(()=>{var i;return((i=o.localeText)==null?void 0:i.toolbarTitle)==null?o.localeText:W({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return W({},o,{localeText:a},Zc({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Ke(n,o.minDate,r.minDate),maxDate:Ke(n,o.maxDate,r.maxDate),slots:W({toolbar:ns},o.slots)})}const _u=["hours","minutes","seconds"],ju=e=>_u.includes(e),Jo=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Vu=(e,t)=>(n,r)=>e?t.isAfter(n,r):Jo(n,t)>Jo(r,t),Ze={year:1,month:2,day:3,minutes:5,seconds:6,milliseconds:7},qt=(e,t,n)=>{if(t===Ze.year)return e.startOfYear(n);if(t===Ze.month)return e.startOfMonth(n);if(t===Ze.day)return e.startOfDay(n);let r=n;return t<Ze.minutes&&(r=e.setMinutes(r,0)),t<Ze.seconds&&(r=e.setSeconds(r,0)),t<Ze.milliseconds&&(r=e.setMilliseconds(r,0)),r},Lu=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():qt(t,n,ts(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=qt(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=qt(t,n,e.maxDate));const i=Vu(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,a)&&(a=qt(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:$n(t,a,e.minTime))),e.maxTime!=null&&i(a,e.maxTime)&&(a=qt(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:$n(t,a,e.maxTime))),a},Bu=["value","referenceDate"],lt={emptyValue:null,getTodayValue:ts,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ce(e,Bu);return t!=null&&r.utils.isValid(t)?t:n??Lu(r)},cleanValue:eu,areValuesEqual:tu,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Hr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:i,disablePast:l,disableFuture:c}=e,u=r.utils.date(void 0,n),d=Ke(r.utils,e.minDate,r.defaultDates.minDate),p=Ke(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(c&&r.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,u)):return"disablePast";case!!(d&&r.utils.isBeforeDay(t,d)):return"minDate";case!!(p&&r.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Hr.valueManager=lt;function zu(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,i=Bt(),l=x.useRef(n.valueManager.defaultErrorState),c=n({adapter:i,value:r,timezone:o,props:t}),u=n.valueManager.hasError(c);x.useEffect(()=>{a&&!n.valueManager.isSameError(c,l.current)&&a(c,r),l.current=c},[n,a,c,r]);const d=ue(p=>n({adapter:i,value:p,timezone:o,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const rs=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:l})=>{const c=Bt();return x.useCallback(u=>Hr({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i}})!==null,[c,e,t,n,r,o,a,i,l])},Fu=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return W({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const a=o.newTimezone;if(n.getTimezone(r.currentMonth)===a)return r;let i=n.setTimezone(r.currentMonth,a);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),W({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return W({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return W({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Wu=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:i,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p}=e,m=Re(),y=x.useRef(Fu(!!u,a,m)).current,g=x.useMemo(()=>lt.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:n,granularity:Ze.day}),[n,p]),[f,v]=x.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:m.startOfMonth(g),slideDirection:"left"});x.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:m.getTimezone(g)})},[g,m]);const S=x.useCallback(D=>{v(W({type:"changeMonth"},D)),c&&c(D.newMonth)},[c]),T=x.useCallback(D=>{const M=D;m.isSameMonth(M,f.currentMonth)||S({newMonth:m.startOfMonth(M),direction:m.isAfterDay(M,f.currentMonth)?"left":"right"})},[f.currentMonth,S,m]),k=rs({shouldDisableDate:d,minDate:l,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),w=x.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),O=ue((D,M)=>{k(D)||v({type:"changeFocusedDay",focusedDay:D,withoutMonthSwitchingAnimation:M})});return{referenceDate:g,calendarState:f,changeMonth:T,changeFocusedDay:O,isDateDisabled:k,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}};function kr(e,t){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kr(e,t)}function Yr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kr(e,t)}function Uu(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hu(e,t){e.classList?e.classList.add(t):Uu(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yu(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qo(e.className,t):e.setAttribute("class",Qo(e.className&&e.className.baseVal||"",t))}const Zo={disabled:!1};var Gu=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,qu=process.env.NODE_ENV!=="production"?s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]):null;const In=oe.createContext(null);var os=function(t){return t.scrollTop},Qt="unmounted",mt="exited",gt="entering",Mt="entered",Rr="exiting",He=function(e){Yr(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=mt,a.appearStatus=gt):c=Mt:r.unmountOnExit||r.mountOnEnter?c=Qt:c=mt,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Qt?{status:mt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==gt&&i!==Mt&&(a=gt):(i===gt||i===Mt)&&(a=Rr)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===gt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:dn.findDOMNode(this);i&&os(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mt&&this.setState({status:Qt})},n.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[dn.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!o&&!i||Zo.disabled){this.safeSetState({status:Mt},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:gt},function(){a.props.onEntering(u,d),a.onTransitionEnd(m,function(){a.safeSetState({status:Mt},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:dn.findDOMNode(this);if(!a||Zo.disabled){this.safeSetState({status:mt},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Rr},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:mt},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:dn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qt)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Ce(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oe.createElement(In.Provider,{value:null},typeof i=="function"?i(o,l):oe.cloneElement(oe.Children.only(i),l))},t}(oe.Component);He.contextType=In;He.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,a){var i=e[t];return s.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,a)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=Gu;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Rt(){}He.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rt,onEntering:Rt,onEntered:Rt,onExit:Rt,onExiting:Rt,onExited:Rt};He.UNMOUNTED=Qt;He.EXITED=mt;He.ENTERING=gt;He.ENTERED=Mt;He.EXITING=Rr;var Ku=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Hu(t,r)})},gr=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Yu(t,r)})},Gr=function(e){Yr(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1];r.removeClasses(d,"exit"),r.addClass(d,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],m=p?"appear":"enter";r.addClass(d,m,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(d,m),r.addClass(d,m,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",p=u?""+d+l:c[l],m=u?p+"-active":c[l+"Active"],y=u?p+"-done":c[l+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:y}},r}var n=t.prototype;return n.addClass=function(o,a,i){var l=this.getClassNames(a)[i+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;a==="appear"&&i==="done"&&u&&(l+=" "+u),i==="active"&&o&&os(o),l&&(this.appliedClasses[a][i]=l,Ku(o,l))},n.removeClasses=function(o,a){var i=this.appliedClasses[a],l=i.base,c=i.active,u=i.done;this.appliedClasses[a]={},l&&gr(o,l),c&&gr(o,c),u&&gr(o,u)},n.render=function(){var o=this.props;o.classNames;var a=Ce(o,["classNames"]);return oe.createElement(He,W({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(oe.Component);Gr.defaultProps={classNames:""};Gr.propTypes=process.env.NODE_ENV!=="production"?W({},He.propTypes,{classNames:qu,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function Xu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qr(e,t){var n=function(a){return t&&oe.isValidElement(a)?t(a):a},r=Object.create(null);return e&&oe.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Ju(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,l={};for(var c in t){if(r[c])for(i=0;i<r[c].length;i++){var u=r[c][i];l[r[c][i]]=n(u)}l[c]=n(c)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function bt(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Qu(e,t){return qr(e.children,function(n){return oe.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bt(n,"appear",e),enter:bt(n,"enter",e),exit:bt(n,"exit",e)})})}function Zu(e,t,n){var r=qr(e.children),o=Ju(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(oe.isValidElement(i)){var l=a in t,c=a in r,u=t[a],d=oe.isValidElement(u)&&!u.props.in;c&&(!l||d)?o[a]=oe.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:bt(i,"exit",e),enter:bt(i,"enter",e)}):!c&&l&&!d?o[a]=oe.cloneElement(i,{in:!1}):c&&l&&oe.isValidElement(u)&&(o[a]=oe.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:bt(i,"exit",e),enter:bt(i,"enter",e)}))}}),o}var ed=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},td={component:"div",childFactory:function(t){return t}},un=function(e){Yr(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(Xu(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,l=a.handleExited,c=a.firstRender;return{children:c?Qu(o,l):Zu(o,i,l),firstRender:!1}},n.handleExited=function(o,a){var i=qr(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var c=W({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,l=Ce(o,["component","childFactory"]),c=this.state.contextValue,u=ed(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,a===null?oe.createElement(In.Provider,{value:c},u):oe.createElement(In.Provider,{value:c},oe.createElement(a,l,u))},t}(oe.Component);un.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};un.defaultProps=td;function zt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function nd(e){const{prototype:t={}}=e;return!!t.isReactComponent}function as(e,t,n,r,o){const a=e[t],i=o||t;if(a==null||typeof window>"u")return null;let l;const c=a.type;return typeof c=="function"&&!nd(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ss=zt(s.element,as);ss.isRequired=zt(s.element.isRequired,as);function rd(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const od=e=>e.scrollTop;function ea(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}const ad={entering:{opacity:1},entered:{opacity:1}},Kr=x.forwardRef(function(t,n){const r=Wr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:m,onExit:y,onExited:g,onExiting:f,style:v,timeout:S=o,TransitionComponent:T=He,...k}=t,w=x.useRef(null),O=jt(w,rd(l),n),D=E=>R=>{if(E){const $=w.current;R===void 0?E($):E($,R)}},M=D(m),V=D((E,R)=>{od(E);const $=ea({style:v,timeout:S,easing:c},{mode:"enter"});E.style.webkitTransition=r.transitions.create("opacity",$),E.style.transition=r.transitions.create("opacity",$),d&&d(E,R)}),B=D(p),U=D(f),_=D(E=>{const R=ea({style:v,timeout:S,easing:c},{mode:"exit"});E.style.webkitTransition=r.transitions.create("opacity",R),E.style.transition=r.transitions.create("opacity",R),y&&y(E)}),h=D(g),P=E=>{a&&a(w.current,E)};return b.jsx(T,{appear:i,in:u,nodeRef:w,onEnter:V,onEntered:B,onEntering:M,onExit:_,onExited:h,onExiting:U,addEndListener:P,timeout:S,...k,children:(E,{ownerState:R,...$})=>x.cloneElement(l,{style:{opacity:0,visibility:E==="exited"&&!u?"hidden":void 0,...ad[E],...v,...l.props.style},ref:O,...$})})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={addEndListener:s.func,appear:s.bool,children:ss.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const sd=e=>$e("MuiPickersFadeTransitionGroup",e);Ie("MuiPickersFadeTransitionGroup",["root"]);const id=e=>{const{classes:t}=e;return Pe({root:["root"]},sd,t)},ld=Z(un,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function is(e){const t=Me({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=id(t),l=Wr();return o?n:b.jsx(ld,{className:ae(i.root,r),children:b.jsx(Kr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}const cd=s.oneOfType([s.func,s.object]);function ud(e){const{prototype:t={}}=e;return!!t.isReactComponent}function dd(e,t,n,r,o){const a=e[t],i=o||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!ud(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ls=zt(s.elementType,dd);function ta(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
103
- `))}return!1}const na={};function cs(e,t){const n=x.useRef(na);return n.current===na&&(n.current=e(t)),n}class Nn{constructor(){Wt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Nn}static use(){const t=cs(Nn.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=pd(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function fd(){return Nn.use()}function pd(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}const hd=[];function md(e){x.useEffect(e,hd)}class Xr{constructor(){Wt(this,"currentId",null);Wt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Wt(this,"disposeEffect",()=>this.clear)}static create(){return new Xr}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function gd(){const e=cs(Xr.create).current;return md(e.disposeEffect),e}function us(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:c,timeout:u}=e,[d,p]=x.useState(!1),m=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&p(!0),x.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),b.jsx("span",{className:m,style:y,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(us.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const Le=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mr=550,yd=80,bd=ct.keyframes`
95
+ export default theme;`}function Ya(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const Cg=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let n=0;for(let r=0;r<e.length;r+=1)n+=+e[r];return n};function wg(t){Object.assign(t,{alpha(e,n){const r=this||t;return r.colorSpace?`oklch(from ${e} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:$t(e,Cg(n))},lighten(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #fff ${Ya(n)})`:Po(e,n)},darken(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #000 ${Ya(n)})`:Io(e,n)}})}function Bi(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,colorSpace:c,...u}=t;if(t.vars&&t.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.":cr(20));const f=hs({...i,colorSpace:c}),p=fs(t);let h=sn(p,{mixins:cg(p.breakpoints,r),palette:f,shadows:gg.slice(),typography:dg(f,a),transitions:bg(s),zIndex:{...Eg}});if(h=sn(h,u),h=e.reduce((m,g)=>sn(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,b)=>{let S;for(S in v){const R=v[S];if(m.includes(S)&&Object.keys(R).length>0){if(process.env.NODE_ENV!=="production"){const C=Xe("",S);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:R}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
96
+ `))}v[S]={}}}};Object.keys(h.components).forEach(v=>{const b=h.components[v].styleOverrides;b&&v.startsWith("Mui")&&g(b,v)})}return h.unstable_sxConfig={...vr,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(g){return Pn({sx:g,theme:this})},h.toRuntimeSource=Jc,wg(h),h}function xg(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const Dg=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=xg(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function eu(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function tu(t){return t==="dark"?Dg:[]}function Tg(t){const{palette:e={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=t,s=hs({...e,colorSpace:o});return{palette:s,opacity:{...eu(s.mode),...n},overlays:r||tu(s.mode),...i}}function Ag(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const Rg=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],_g=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return Rg(t.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",e)]:s,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function kg(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function j(t,e,n){!t[e]&&n&&(t[e]=n)}function tr(t){return typeof t!="string"||!t.startsWith("hsl")?t:qc(t)}function bt(t,e){`${e}Channel`in t||(t[`${e}Channel`]=er(tr(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
97
+ To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Mg(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const ft=t=>{try{return t()}catch{}},Og=(t="mui")=>qh(t);function ui(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=Tg({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:t});return}const{palette:s,...a}=Bi({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:t});return e[o]={...n,palette:s,opacity:{...eu(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||tu(i)},a}function Ig(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=Ag,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),h=Og(i),{[p]:m,light:g,dark:v,...b}=n,S={...b};let R=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(R=!0),!R)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:cr(21,p));let C;s&&(C="oklch");const A=ui(C,S,R,u,p);g&&!S.light&&ui(C,S,g,void 0,"light"),v&&!S.dark&&ui(C,S,v,void 0,"dark");let T={defaultColorScheme:p,...A,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:S,font:{...ag(A.typography),...A.font},spacing:Mg(u.spacing)};Object.keys(T.colorSchemes).forEach($=>{const y=T.colorSchemes[$].palette,I=O=>{const N=O.split("-"),z=N[1],J=N[2];return h(O,y[z][J])};y.mode==="light"&&(j(y.common,"background","#fff"),j(y.common,"onBackground","#000")),y.mode==="dark"&&(j(y.common,"background","#000"),j(y.common,"onBackground","#fff"));function _(O,N,z){if(C){let J;return O===Ut&&(J=`transparent ${((1-z)*100).toFixed(0)}%`),O===Ce&&(J=`#000 ${(z*100).toFixed(0)}%`),O===we&&(J=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${C}, ${N}, ${J})`}return O(N,z)}if(kg(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){j(y.Alert,"errorColor",_(Ce,y.error.light,.6)),j(y.Alert,"infoColor",_(Ce,y.info.light,.6)),j(y.Alert,"successColor",_(Ce,y.success.light,.6)),j(y.Alert,"warningColor",_(Ce,y.warning.light,.6)),j(y.Alert,"errorFilledBg",I("palette-error-main")),j(y.Alert,"infoFilledBg",I("palette-info-main")),j(y.Alert,"successFilledBg",I("palette-success-main")),j(y.Alert,"warningFilledBg",I("palette-warning-main")),j(y.Alert,"errorFilledColor",ft(()=>y.getContrastText(y.error.main))),j(y.Alert,"infoFilledColor",ft(()=>y.getContrastText(y.info.main))),j(y.Alert,"successFilledColor",ft(()=>y.getContrastText(y.success.main))),j(y.Alert,"warningFilledColor",ft(()=>y.getContrastText(y.warning.main))),j(y.Alert,"errorStandardBg",_(we,y.error.light,.9)),j(y.Alert,"infoStandardBg",_(we,y.info.light,.9)),j(y.Alert,"successStandardBg",_(we,y.success.light,.9)),j(y.Alert,"warningStandardBg",_(we,y.warning.light,.9)),j(y.Alert,"errorIconColor",I("palette-error-main")),j(y.Alert,"infoIconColor",I("palette-info-main")),j(y.Alert,"successIconColor",I("palette-success-main")),j(y.Alert,"warningIconColor",I("palette-warning-main")),j(y.AppBar,"defaultBg",I("palette-grey-100")),j(y.Avatar,"defaultBg",I("palette-grey-400")),j(y.Button,"inheritContainedBg",I("palette-grey-300")),j(y.Button,"inheritContainedHoverBg",I("palette-grey-A100")),j(y.Chip,"defaultBorder",I("palette-grey-400")),j(y.Chip,"defaultAvatarColor",I("palette-grey-700")),j(y.Chip,"defaultIconColor",I("palette-grey-700")),j(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(y.LinearProgress,"primaryBg",_(we,y.primary.main,.62)),j(y.LinearProgress,"secondaryBg",_(we,y.secondary.main,.62)),j(y.LinearProgress,"errorBg",_(we,y.error.main,.62)),j(y.LinearProgress,"infoBg",_(we,y.info.main,.62)),j(y.LinearProgress,"successBg",_(we,y.success.main,.62)),j(y.LinearProgress,"warningBg",_(we,y.warning.main,.62)),j(y.Skeleton,"bg",C?_(Ut,y.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),j(y.Slider,"primaryTrack",_(we,y.primary.main,.62)),j(y.Slider,"secondaryTrack",_(we,y.secondary.main,.62)),j(y.Slider,"errorTrack",_(we,y.error.main,.62)),j(y.Slider,"infoTrack",_(we,y.info.main,.62)),j(y.Slider,"successTrack",_(we,y.success.main,.62)),j(y.Slider,"warningTrack",_(we,y.warning.main,.62));const O=C?_(Ce,y.background.default,.6825):Ar(y.background.default,.8);j(y.SnackbarContent,"bg",O),j(y.SnackbarContent,"color",ft(()=>C?$i.text.primary:y.getContrastText(O))),j(y.SpeedDialAction,"fabHoverBg",Ar(y.background.paper,.15)),j(y.StepConnector,"border",I("palette-grey-400")),j(y.StepContent,"border",I("palette-grey-400")),j(y.Switch,"defaultColor",I("palette-common-white")),j(y.Switch,"defaultDisabledColor",I("palette-grey-100")),j(y.Switch,"primaryDisabledColor",_(we,y.primary.main,.62)),j(y.Switch,"secondaryDisabledColor",_(we,y.secondary.main,.62)),j(y.Switch,"errorDisabledColor",_(we,y.error.main,.62)),j(y.Switch,"infoDisabledColor",_(we,y.info.main,.62)),j(y.Switch,"successDisabledColor",_(we,y.success.main,.62)),j(y.Switch,"warningDisabledColor",_(we,y.warning.main,.62)),j(y.TableCell,"border",_(we,_(Ut,y.divider,1),.88)),j(y.Tooltip,"bg",_(Ut,y.grey[700],.92))}if(y.mode==="dark"){j(y.Alert,"errorColor",_(we,y.error.light,.6)),j(y.Alert,"infoColor",_(we,y.info.light,.6)),j(y.Alert,"successColor",_(we,y.success.light,.6)),j(y.Alert,"warningColor",_(we,y.warning.light,.6)),j(y.Alert,"errorFilledBg",I("palette-error-dark")),j(y.Alert,"infoFilledBg",I("palette-info-dark")),j(y.Alert,"successFilledBg",I("palette-success-dark")),j(y.Alert,"warningFilledBg",I("palette-warning-dark")),j(y.Alert,"errorFilledColor",ft(()=>y.getContrastText(y.error.dark))),j(y.Alert,"infoFilledColor",ft(()=>y.getContrastText(y.info.dark))),j(y.Alert,"successFilledColor",ft(()=>y.getContrastText(y.success.dark))),j(y.Alert,"warningFilledColor",ft(()=>y.getContrastText(y.warning.dark))),j(y.Alert,"errorStandardBg",_(Ce,y.error.light,.9)),j(y.Alert,"infoStandardBg",_(Ce,y.info.light,.9)),j(y.Alert,"successStandardBg",_(Ce,y.success.light,.9)),j(y.Alert,"warningStandardBg",_(Ce,y.warning.light,.9)),j(y.Alert,"errorIconColor",I("palette-error-main")),j(y.Alert,"infoIconColor",I("palette-info-main")),j(y.Alert,"successIconColor",I("palette-success-main")),j(y.Alert,"warningIconColor",I("palette-warning-main")),j(y.AppBar,"defaultBg",I("palette-grey-900")),j(y.AppBar,"darkBg",I("palette-background-paper")),j(y.AppBar,"darkColor",I("palette-text-primary")),j(y.Avatar,"defaultBg",I("palette-grey-600")),j(y.Button,"inheritContainedBg",I("palette-grey-800")),j(y.Button,"inheritContainedHoverBg",I("palette-grey-700")),j(y.Chip,"defaultBorder",I("palette-grey-700")),j(y.Chip,"defaultAvatarColor",I("palette-grey-300")),j(y.Chip,"defaultIconColor",I("palette-grey-300")),j(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(y.LinearProgress,"primaryBg",_(Ce,y.primary.main,.5)),j(y.LinearProgress,"secondaryBg",_(Ce,y.secondary.main,.5)),j(y.LinearProgress,"errorBg",_(Ce,y.error.main,.5)),j(y.LinearProgress,"infoBg",_(Ce,y.info.main,.5)),j(y.LinearProgress,"successBg",_(Ce,y.success.main,.5)),j(y.LinearProgress,"warningBg",_(Ce,y.warning.main,.5)),j(y.Skeleton,"bg",C?_(Ut,y.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),j(y.Slider,"primaryTrack",_(Ce,y.primary.main,.5)),j(y.Slider,"secondaryTrack",_(Ce,y.secondary.main,.5)),j(y.Slider,"errorTrack",_(Ce,y.error.main,.5)),j(y.Slider,"infoTrack",_(Ce,y.info.main,.5)),j(y.Slider,"successTrack",_(Ce,y.success.main,.5)),j(y.Slider,"warningTrack",_(Ce,y.warning.main,.5));const O=C?_(we,y.background.default,.985):Ar(y.background.default,.98);j(y.SnackbarContent,"bg",O),j(y.SnackbarContent,"color",ft(()=>C?Kc.text.primary:y.getContrastText(O))),j(y.SpeedDialAction,"fabHoverBg",Ar(y.background.paper,.15)),j(y.StepConnector,"border",I("palette-grey-600")),j(y.StepContent,"border",I("palette-grey-600")),j(y.Switch,"defaultColor",I("palette-grey-300")),j(y.Switch,"defaultDisabledColor",I("palette-grey-600")),j(y.Switch,"primaryDisabledColor",_(Ce,y.primary.main,.55)),j(y.Switch,"secondaryDisabledColor",_(Ce,y.secondary.main,.55)),j(y.Switch,"errorDisabledColor",_(Ce,y.error.main,.55)),j(y.Switch,"infoDisabledColor",_(Ce,y.info.main,.55)),j(y.Switch,"successDisabledColor",_(Ce,y.success.main,.55)),j(y.Switch,"warningDisabledColor",_(Ce,y.warning.main,.55)),j(y.TableCell,"border",_(Ce,_(Ut,y.divider,1),.68)),j(y.Tooltip,"bg",_(Ut,y.grey[700],.92))}bt(y.background,"default"),bt(y.background,"paper"),bt(y.common,"background"),bt(y.common,"onBackground"),bt(y,"divider"),Object.keys(y).forEach(O=>{const N=y[O];O!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&j(y[O],"mainChannel",er(tr(N.main))),N.light&&j(y[O],"lightChannel",er(tr(N.light))),N.dark&&j(y[O],"darkChannel",er(tr(N.dark))),N.contrastText&&j(y[O],"contrastTextChannel",er(tr(N.contrastText))),O==="text"&&(bt(y[O],"primary"),bt(y[O],"secondary")),O==="action"&&(N.active&&bt(y[O],"active"),N.selected&&bt(y[O],"selected")))})}),T=e.reduce(($,y)=>sn($,y),T);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:_g(T),enableContrastVars:s},{vars:P,generateThemeVars:H,generateStyleSheets:W}=Kh(T,k);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([$,y])=>{T[$]=y}),T.generateThemeVars=H,T.generateStyleSheets=W,T.generateSpacing=function(){return $c(u.spacing,us(this))},T.getColorSchemeSelector=Xh(l),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...vr,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(y){return Pn({sx:y,theme:this})},T.toRuntimeSource=Jc,T}function qa(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:hs({...n===!0?{}:n.palette,mode:e})})}function Pg(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Bi(t,...e);let u=n;"palette"in t||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const f=Bi({...t,palette:u},...e);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},qa(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},qa(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Ig({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const gs=Pg(),No="$$material";function ms(){const t=Lc(gs);return process.env.NODE_ENV!=="production"&&x.useDebugValue(t),t[No]||t}function Ng(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const nu=t=>Ng(t)&&t!=="classes",te=_h({themeId:No,defaultTheme:gs,rootShouldForwardProp:nu});function jg(){return ch}const ht=Yh;process.env.NODE_ENV!=="production"&&(d.node,d.object.isRequired);function it(t){return Gh(t)}function Je(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Xe(t,o,n)}),r}function Vg(t){return Xe("MuiSvgIcon",t)}Je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $g=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${se(e)}`,`fontSize${se(n)}`]};return ct(o,Vg,r)},Bg=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${se(n.color)}`],e[`fontSize${se(n.fontSize)}`]]}})(ht(({theme:t})=>{var e,n,r,o,i,s,a,l,c,u,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var v,b;return{props:{color:g},style:{color:(b=(v=(t.vars??t).palette)==null?void 0:v[g])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(p=(f=(t.vars??t).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Jr=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=r,m=x.isValidElement(o)&&o.type==="svg",g={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:m},v={};u||(v.viewBox=p);const b=$g(g);return E.jsxs(Bg,{as:a,className:ce(b.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...v,...h,...m&&o.props,ownerState:g,children:[m?o.props.children:o,f?E.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={children:d.node,classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),d.string]),component:d.elementType,fontSize:d.oneOfType([d.oneOf(["inherit","large","medium","small"]),d.string]),htmlColor:d.string,inheritViewBox:d.bool,shapeRendering:d.string,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),titleAccess:d.string,viewBox:d.string});Jr.muiName="SvgIcon";function Ve(t,e){function n(r,o){return E.jsx(Jr,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=Jr.muiName,x.memo(x.forwardRef(n))}function ru(t,e){var n,r,o;return x.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}const Lg=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Qa=0;function Hg(t){const[e,n]=x.useState(t),r=t||e;return x.useEffect(()=>{e==null&&(Qa+=1,n(`mui-${Qa}`))},[e]),r}const zg={...x},Za=zg.useId;function ou(t){if(Za!==void 0){const e=Za();return t??e}return Hg(t)}function Fg(t,e,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||e;return typeof t[e]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Hr(t){const e=x.useRef(t);return Lg(()=>{e.current=t}),x.useRef((...n)=>(0,e.current)(...n)).current}function Nn(...t){const e=x.useRef(void 0),n=x.useCallback(r=>{const o=t.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},t);return x.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const Wg=Ve(E.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Ug=Ve(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Gg=Ve(E.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}),"Today"),eo=Ve(E.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonth"),Yg=Ve(E.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),iu=Ve(E.jsx("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}),"ViewWeek"),su=Ve(E.jsx("path",{d:"M2 21h19v-3H2zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1M2 3v3h19V3z"}),"ViewDay"),qg=[{icon:E.jsx(eo,{}),name:"Month",value:"dayGridMonth"},{icon:E.jsx(iu,{}),name:"Week",value:"timeGridWeek"},{icon:E.jsx(su,{}),name:"Day",value:"timeGridDay"}],Qg=({onPrev:t,onToday:e,onNext:n,onDatePickerOpen:r,calendarView:o,onViewChange:i,currentTitle:s})=>{const a={dayGridMonth:E.jsx(eo,{}),timeGridWeek:E.jsx(iu,{}),timeGridDay:E.jsx(su,{})};return E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,px:1},children:[E.jsxs(q.Box,{sx:{display:"flex",gap:1},children:[E.jsx(q.Tooltip,{title:"Previous",children:E.jsx(q.IconButton,{size:"small",onClick:t,children:E.jsx(Wg,{fontSize:"small"})})}),E.jsx(q.Tooltip,{title:"Go to today",children:E.jsx(q.IconButton,{size:"small",onClick:e,children:E.jsx(Gg,{fontSize:"small"})})}),E.jsx(q.Tooltip,{title:"Select date",children:E.jsx(q.IconButton,{size:"small",onClick:r,children:E.jsx(eo,{fontSize:"small"})})}),E.jsx(q.Tooltip,{title:"Next",children:E.jsx(q.IconButton,{size:"small",onClick:n,children:E.jsx(Ug,{fontSize:"small"})})})]}),E.jsx(q.Typography,{variant:"subtitle1",children:s}),E.jsx(Dn.SpeedDialButton,{actions:qg,value:o,onChange:i,icons:a,openIcon:E.jsx(Yg,{})})]})};function G(){return G=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},G.apply(null,arguments)}function ze({props:t,name:e}){return Ph({props:t,name:e,defaultTheme:gs,themeId:No})}function _e(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const Zg=["localeText"],to=x.createContext(null);process.env.NODE_ENV!=="production"&&(to.displayName="MuiPickersAdapterContext");const au=function(e){const{localeText:n}=e,r=_e(e,Zg),{utils:o,localeText:i}=x.useContext(to)??{utils:void 0,localeText:void 0},s=ze({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:f,localeText:p}=s,h=x.useMemo(()=>G({},p,i,n),[p,i,n]),m=x.useMemo(()=>{if(!l)return o||null;const b=new l({locale:f,formats:c,instance:u});if(!b.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
98
+ `));return b},[l,f,c,u,o]),g=x.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=x.useMemo(()=>({utils:m,defaultDates:g,localeText:h}),[g,m,h]);return E.jsx(to.Provider,{value:v,children:a})};process.env.NODE_ENV!=="production"&&(au.propTypes={adapterLocale:d.any,children:d.node,dateAdapter:d.func,dateFormats:d.shape({dayOfMonth:d.string,dayOfMonthFull:d.string,fullDate:d.string,fullTime:d.string,fullTime12h:d.string,fullTime24h:d.string,hours12h:d.string,hours24h:d.string,keyboardDate:d.string,keyboardDateTime:d.string,keyboardDateTime12h:d.string,keyboardDateTime24h:d.string,meridiem:d.string,minutes:d.string,month:d.string,monthShort:d.string,normalDate:d.string,normalDateWithWeekday:d.string,seconds:d.string,shortDate:d.string,weekday:d.string,weekdayShort:d.string,year:d.string}),dateLibInstance:d.any,localeText:d.object});const Kg=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:G({},t)}}}}),lu={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n,r)=>`Select ${t}. ${!r&&(e===null||!n.isValid(e))?"No time selected":`Selected time is ${r??n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose date, selected date is ${n??e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose time, selected time is ${n??e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Xg=lu;Kg(lu);const Hn=()=>{const t=x.useContext(to);if(t===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
99
+ `));if(t.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
100
+ `));const e=x.useMemo(()=>G({},Xg,t.localeText),[t.localeText]);return x.useMemo(()=>G({},t,{localeText:e}),[t,e])},Le=()=>Hn().utils,jo=()=>Hn().defaultDates,Vo=t=>{const e=Le(),n=x.useRef(void 0);return n.current===void 0&&(n.current=e.date(void 0,t)),n.current},Zn=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),Jg=({openTo:t,defaultOpenTo:e,views:n,defaultViews:r})=>{const o=n??r;let i;if(t!=null)i=t;else if(o.includes(e))i=e;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},no=(t,e,n)=>{let r=e;return r=t.setHours(r,t.getHours(n)),r=t.setMinutes(r,t.getMinutes(n)),r=t.setSeconds(r,t.getSeconds(n)),r=t.setMilliseconds(r,t.getMilliseconds(n)),r},ir=({date:t,disableFuture:e,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=no(s,s.date(void 0,a),t);n&&s.isBefore(o,l)&&(o=l),e&&s.isAfter(r,l)&&(r=l);let c=t,u=t;for(s.isBefore(t,o)&&(c=o,u=null),s.isAfter(t,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=s.addDays(c,1)}if(u){if(!i(u))return u;u=s.addDays(u,-1)}}return null},em=(t,e)=>e==null||!t.isValid(e)?null:e,gt=(t,e,n)=>e==null||!t.isValid(e)?n:e,tm=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),nm=(t,e)=>{const r=[t.startOfYear(e)];for(;r.length<12;){const o=r[r.length-1];r.push(t.addMonths(o,1))}return r},cu=(t,e,n)=>n==="date"?t.startOfDay(t.date(void 0,e)):t.date(void 0,e),rm=["year","month","day"],Ka=t=>rm.includes(t),om=(t,{format:e,views:n},r)=>{if(e!=null)return e;const o=t.formats;return Zn(n,["year"])?o.year:Zn(n,["month"])?o.month:Zn(n,["day"])?o.dayOfMonth:Zn(n,["month","year"])?`${o.month} ${o.year}`:Zn(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:/en/.test(t.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate},im=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(r=>t.addDays(n,r))};function sm(t){return typeof t.main=="string"}function am(t,e=[]){if(!sm(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Ct(t=[]){return([,e])=>e&&am(e,t)}function lm(t){return Xe("MuiTypography",t)}Je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cm={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},um=jg(),dm=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=t,a={root:["root",i,t.align!=="inherit"&&`align${se(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ct(a,lm,s)},fm=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${se(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(ht(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(Ct()).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${se(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Xa={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pn=x.forwardRef(function(e,n){const{color:r,...o}=it({props:e,name:"MuiTypography"}),i=!cm[r],s=um({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Xa,...g}=s,v={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:p,variant:h,variantMapping:m},b=c||(p?"p":m[h]||Xa[h])||"span",S=dm(v);return E.jsx(fm,{as:b,ref:n,className:ce(S.root,l),...g,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})});process.env.NODE_ENV!=="production"&&(pn.propTypes={align:d.oneOf(["center","inherit","justify","left","right"]),children:d.node,classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),d.string]),component:d.elementType,gutterBottom:d.bool,noWrap:d.bool,paragraph:d.bool,style:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),variant:d.oneOfType([d.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),d.string]),variantMapping:d.object});function We(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+e(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}const cn=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Ja=0;function pm(t){const[e,n]=x.useState(t),r=e;return x.useEffect(()=>{e==null&&(Ja+=1,n(`mui-${Ja}`))},[e]),r}const hm={...x},el=hm.useId;function gm(t){return el!==void 0?el():pm(t)}function jn({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=x.useRef(t!==void 0),[i,s]=x.useState(e),a=o?t:i;if(process.env.NODE_ENV!=="production"){x.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
101
+ `))},[r,n,t]);const{current:c}=x.useRef(e);x.useEffect(()=>{!o&&!Object.is(c,e)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
102
+ `))},[JSON.stringify(e)])}const l=x.useCallback(c=>{o||s(c)},[]);return[a,l]}function he(t){const e=x.useRef(t);return cn(()=>{e.current=t}),x.useRef((...n)=>(0,e.current)(...n)).current}function vs(...t){const e=x.useRef(void 0),n=x.useCallback(r=>{const o=t.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},t);return x.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const tl=t=>t,mm=()=>{let t=tl;return{configure(e){t=e},generate(e){return t(e)},reset(){t=tl}}},vm=mm(),ym={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 Ue(t,e,n="Mui"){const r=ym[e];return r?`${n}-${r}`:`${vm.generate(t)}-${e}`}function Ye(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Ue(t,o,n)}),r}function bm(t){return typeof t=="string"}function Em(t,e,n){return t===void 0||bm(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function Sm(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function nl(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function Cm(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const h=ce(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=Sm({...o,...r}),a=nl(r),l=nl(o),c=e(s),u=ce(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function wm(t,e,n){return typeof t=="function"?t(e,n):t}function Qe(t){var f;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=t,s=o?{}:wm(n,r),{props:a,internalRef:l}=Cm({...i,externalSlotProps:s}),c=vs(l,s==null?void 0:s.ref,(f=t.additionalProps)==null?void 0:f.ref);return Em(e,{...a,ref:c},r)}function xm(t){return Ue("MuiPickersToolbar",t)}Ye("MuiPickersToolbar",["root","content"]);const Dm=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Tm=t=>{const{classes:e}=t;return We({root:["root"],content:["content"]},xm,e)},Am=te("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Rm=te("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),_m=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,c=_e(r,Dm),u=r,f=Tm(u);return a?null:E.jsxs(Am,G({ref:n,className:ce(f.root,i),ownerState:u},c,{children:[E.jsx(pn,{color:"text.secondary",variant:"overline",id:l,children:s}),E.jsx(Rm,{className:f.content,ownerState:u,children:o})]}))}),$o=()=>Hn().localeText;function km(t){return Ue("MuiDatePickerToolbar",t)}Ye("MuiDatePickerToolbar",["root","title"]);const Mm=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Om=t=>{const{classes:e}=t;return We({root:["root"],title:["title"]},km,e)},Im=te(_m,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Pm=te(pn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),uu=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l,className:c}=r,u=_e(r,Mm),f=Le(),p=$o(),h=Om(r),m=x.useMemo(()=>{if(!o)return a;const v=om(f,{format:s,views:l});return f.formatByString(o,v)},[o,s,a,f,l]),g=r;return E.jsx(Im,G({ref:n,toolbarTitle:p.datePickerToolbarTitle,isLandscape:i,className:ce(h.root,c)},u,{children:E.jsx(Pm,{variant:"h4",align:i?"left":"center",ownerState:g,className:h.title,children:m})}))});process.env.NODE_ENV!=="production"&&(uu.propTypes={classes:d.object,className:d.string,disabled:d.bool,hidden:d.bool,isLandscape:d.bool.isRequired,onChange:d.func.isRequired,onViewChange:d.func.isRequired,readOnly:d.bool,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),titleId:d.string,toolbarFormat:d.string,toolbarPlaceholder:d.node,value:d.object,view:d.oneOf(["day","month","year"]).isRequired,views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired).isRequired});function Nm(t,e){const n=Le(),r=jo(),o=ze({props:t,name:e}),i=x.useMemo(()=>{var s;return((s=o.localeText)==null?void 0:s.toolbarTitle)==null?o.localeText:G({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return G({},o,{localeText:i},Jg({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:gt(n,o.minDate,r.minDate),maxDate:gt(n,o.maxDate,r.maxDate),slots:G({toolbar:uu},o.slots)})}const jm=["hours","minutes","seconds"],Vm=t=>jm.includes(t),rl=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),$m=(t,e)=>(n,r)=>t?e.isAfter(n,r):rl(n,e)>rl(r,e),St={year:1,month:2,day:3,minutes:5,seconds:6,milliseconds:7},Kn=(t,e,n)=>{if(e===St.year)return t.startOfYear(n);if(e===St.month)return t.startOfMonth(n);if(e===St.day)return t.startOfDay(n);let r=n;return e<St.minutes&&(r=t.setMinutes(r,0)),e<St.seconds&&(r=t.setSeconds(r,0)),e<St.milliseconds&&(r=t.setMilliseconds(r,0)),r},Bm=({props:t,utils:e,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():Kn(e,n,cu(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,i)&&(i=Kn(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,i)&&(i=Kn(e,n,t.maxDate));const s=$m(t.disableIgnoringDatePartForTimeValidation??!1,e);return t.minTime!=null&&s(t.minTime,i)&&(i=Kn(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:no(e,i,t.minTime))),t.maxTime!=null&&s(i,t.maxTime)&&(i=Kn(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:no(e,i,t.maxTime))),i},Lm=["value","referenceDate"],Bt={emptyValue:null,getTodayValue:cu,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=_e(t,Lm);return e!=null&&r.utils.isValid(e)?e:n??Bm(r)},cleanValue:em,areValuesEqual:tm,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},ys=({props:t,value:e,timezone:n,adapter:r})=>{if(e===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:a,disableFuture:l}=t,c=r.utils.date(void 0,n),u=gt(r.utils,t.minDate,r.defaultDates.minDate),f=gt(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(e):return"invalidDate";case!!(o&&o(e)):return"shouldDisableDate";case!!(i&&i(e)):return"shouldDisableMonth";case!!(s&&s(e)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(e,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(e,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(e,u)):return"minDate";case!!(f&&r.utils.isAfterDay(e,f)):return"maxDate";default:return null}};ys.valueManager=Bt;function Hm(t){const{props:e,validator:n,value:r,timezone:o,onError:i}=t,s=Hn(),a=x.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:o,props:e}),c=n.valueManager.hasError(l);x.useEffect(()=>{i&&!n.valueManager.isSameError(l,a.current)&&i(l,r),a.current=l},[n,i,l,r]);const u=he(f=>n({adapter:s,value:f,timezone:o,props:e}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const du=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Hn();return x.useCallback(c=>ys({adapter:l,value:c,timezone:a,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[l,t,e,n,r,o,i,s,a])},zm=(t,e,n)=>(r,o)=>{switch(o.type){case"changeMonth":return G({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),G({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return G({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,o.focusedDay);return G({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!t&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Fm=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:f}=t,p=Le(),h=x.useRef(zm(!!c,i,p)).current,m=x.useMemo(()=>Bt.getInitialReferenceValue({value:e,utils:p,timezone:f,props:t,referenceDate:n,granularity:St.day}),[n,f]),[g,v]=x.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:p.startOfMonth(m),slideDirection:"left"});x.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:p.getTimezone(m)})},[m,p]);const b=x.useCallback(T=>{v(G({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),S=x.useCallback(T=>{const k=T;p.isSameMonth(k,g.currentMonth)||b({newMonth:p.startOfMonth(k),direction:p.isAfterDay(k,g.currentMonth)?"left":"right"})},[g.currentMonth,b,p]),R=du({shouldDisableDate:u,minDate:a,maxDate:s,disableFuture:r,disablePast:o,timezone:f}),C=x.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),A=he((T,k)=>{R(T)||v({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:k})});return{referenceDate:m,calendarState:g,changeMonth:S,changeFocusedDay:A,isDateDisabled:R,onMonthSwitchingAnimationEnd:C,handleChangeMonth:b}};function Li(t,e){return Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Li(t,e)}function bs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Li(t,e)}function Wm(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Um(t,e){t.classList?t.classList.add(e):Wm(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ol(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Gm(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ol(t.className,e):t.setAttribute("class",ol(t.className&&t.className.baseVal||"",e))}const il={disabled:!1};var Ym=process.env.NODE_ENV!=="production"?d.oneOfType([d.number,d.shape({enter:d.number,exit:d.number,appear:d.number}).isRequired]):null,qm=process.env.NODE_ENV!=="production"?d.oneOfType([d.string,d.shape({enter:d.string,exit:d.string,active:d.string}),d.shape({enter:d.string,enterDone:d.string,enterActive:d.string,exit:d.string,exitDone:d.string,exitActive:d.string})]):null;const ro=oe.createContext(null);var fu=function(e){return e.scrollTop},nr="unmounted",Qt="exited",Zt="entering",wn="entered",Hi="exiting",ut=function(t){bs(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Qt,i.appearStatus=Zt):l=wn:r.unmountOnExit||r.mountOnEnter?l=nr:l=Qt,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===nr?{status:Qt}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Zt&&s!==wn&&(i=Zt):(s===Zt||s===wn)&&(i=Hi)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Zt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:en.findDOMNode(this);s&&fu(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qt&&this.setState({status:nr})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[en.findDOMNode(this),a],c=l[0],u=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!o&&!s||il.disabled){this.safeSetState({status:wn},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zt},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:wn},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:en.findDOMNode(this);if(!i||il.disabled){this.safeSetState({status:Qt},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Hi},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Qt},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:en.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===nr)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=_e(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oe.createElement(ro.Provider,{value:null},typeof s=="function"?s(o,a):oe.cloneElement(oe.Children.only(s),a))},e}(oe.Component);ut.contextType=ro;ut.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:d.shape({current:typeof Element>"u"?d.any:function(t,e,n,r,o,i){var s=t[e];return d.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:d.oneOfType([d.func.isRequired,d.element.isRequired]).isRequired,in:d.bool,mountOnEnter:d.bool,unmountOnExit:d.bool,appear:d.bool,enter:d.bool,exit:d.bool,timeout:function(e){var n=Ym;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[e].concat(o))},addEndListener:d.func,onEnter:d.func,onEntering:d.func,onEntered:d.func,onExit:d.func,onExiting:d.func,onExited:d.func}:{};function Cn(){}ut.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cn,onEntering:Cn,onEntered:Cn,onExit:Cn,onExiting:Cn,onExited:Cn};ut.UNMOUNTED=nr;ut.EXITED=Qt;ut.ENTERING=Zt;ut.ENTERED=wn;ut.EXITING=Hi;var Qm=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Um(e,r)})},di=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Gm(e,r)})},Es=function(t){bs(e,t);function e(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],f=c[1];r.removeClasses(u,"exit"),r.addClass(u,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],f=c[1],p=f?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],f=c[1],p=f?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",f=c?""+u+a:l[a],p=c?f+"-active":l[a+"Active"],h=c?f+"-done":l[a+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},r}var n=e.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&s==="done"&&c&&(a+=" "+c),s==="active"&&o&&fu(o),a&&(this.appliedClasses[i][s]=a,Qm(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,l=s.active,c=s.done;this.appliedClasses[i]={},a&&di(o,a),l&&di(o,l),c&&di(o,c)},n.render=function(){var o=this.props;o.classNames;var i=_e(o,["classNames"]);return oe.createElement(ut,G({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(oe.Component);Es.defaultProps={classNames:""};Es.propTypes=process.env.NODE_ENV!=="production"?G({},ut.propTypes,{classNames:qm,onEnter:d.func,onEntering:d.func,onEntered:d.func,onExit:d.func,onExiting:d.func,onExited:d.func}):{};function Zm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ss(t,e){var n=function(i){return e&&oe.isValidElement(i)?e(i):i},r=Object.create(null);return t&&oe.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Km(t,e){t=t||{},e=e||{};function n(u){return u in e?e[u]:t[u]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in e){if(r[l])for(s=0;s<r[l].length;s++){var c=r[l][s];a[r[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function nn(t,e,n){return n[e]!=null?n[e]:t.props[e]}function Xm(t,e){return Ss(t.children,function(n){return oe.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:nn(n,"appear",t),enter:nn(n,"enter",t),exit:nn(n,"exit",t)})})}function Jm(t,e,n){var r=Ss(t.children),o=Km(e,r);return Object.keys(o).forEach(function(i){var s=o[i];if(oe.isValidElement(s)){var a=i in e,l=i in r,c=e[i],u=oe.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[i]=oe.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:nn(s,"exit",t),enter:nn(s,"enter",t)}):!l&&a&&!u?o[i]=oe.cloneElement(s,{in:!1}):l&&a&&oe.isValidElement(c)&&(o[i]=oe.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:nn(s,"exit",t),enter:nn(s,"enter",t)}))}}),o}var ev=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},tv={component:"div",childFactory:function(e){return e}},br=function(t){bs(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=i.handleExited.bind(Zm(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?Xm(o,a):Jm(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=Ss(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=G({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=_e(o,["component","childFactory"]),l=this.state.contextValue,c=ev(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?oe.createElement(ro.Provider,{value:l},c):oe.createElement(ro.Provider,{value:l},oe.createElement(i,a,c))},e}(oe.Component);br.propTypes=process.env.NODE_ENV!=="production"?{component:d.any,children:d.node,appear:d.bool,enter:d.bool,exit:d.bool,childFactory:d.func}:{};br.defaultProps=tv;function zn(t,e){return process.env.NODE_ENV==="production"?()=>null:function(...r){return t(...r)||e(...r)}}function nv(t){const{prototype:e={}}=t;return!!e.isReactComponent}function pu(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;const l=i.type;return typeof l=="function"&&!nv(l)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const hu=zn(d.element,pu);hu.isRequired=zn(d.element.isRequired,pu);function rv(t){var e;return parseInt(x.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const ov=t=>t.scrollTop;function sl(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}const iv={entering:{opacity:1},entered:{opacity:1}},Cs=x.forwardRef(function(e,n){const r=ms(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:v,timeout:b=o,TransitionComponent:S=ut,...R}=e,C=x.useRef(null),A=Nn(C,rv(a),n),T=_=>O=>{if(_){const N=C.current;O===void 0?_(N):_(N,O)}},k=T(p),P=T((_,O)=>{ov(_);const N=sl({style:v,timeout:b,easing:l},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",N),_.style.transition=r.transitions.create("opacity",N),u&&u(_,O)}),H=T(f),W=T(g),$=T(_=>{const O=sl({style:v,timeout:b,easing:l},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",O),_.style.transition=r.transitions.create("opacity",O),h&&h(_)}),y=T(m),I=_=>{i&&i(C.current,_)};return E.jsx(S,{appear:s,in:c,nodeRef:C,onEnter:P,onEntered:H,onEntering:k,onExit:$,onExited:y,onExiting:W,addEndListener:I,timeout:b,...R,children:(_,{ownerState:O,...N})=>x.cloneElement(a,{style:{opacity:0,visibility:_==="exited"&&!c?"hidden":void 0,...iv[_],...v,...a.props.style},ref:A,...N})})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={addEndListener:d.func,appear:d.bool,children:hu.isRequired,easing:d.oneOfType([d.shape({enter:d.string,exit:d.string}),d.string]),in:d.bool,onEnter:d.func,onEntered:d.func,onEntering:d.func,onExit:d.func,onExited:d.func,onExiting:d.func,style:d.object,timeout:d.oneOfType([d.number,d.shape({appear:d.number,enter:d.number,exit:d.number})])});const sv=t=>Ue("MuiPickersFadeTransitionGroup",t);Ye("MuiPickersFadeTransitionGroup",["root"]);const av=t=>{const{classes:e}=t;return We({root:["root"]},sv,e)},lv=te(br,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function gu(t){const e=ze({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=av(e),a=ms();return o?n:E.jsx(lv,{className:ce(s.root,r),children:E.jsx(Cs,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}const cv=d.oneOfType([d.func,d.object]);function uv(t){const{prototype:e={}}=t;return!!e.isReactComponent}function dv(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!uv(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const mu=zn(d.elementType,dv);function al(t){try{return t.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
103
+ `))}return!1}const ll={};function vu(t,e){const n=x.useRef(ll);return n.current===ll&&(n.current=t(e)),n}class oo{constructor(){Gn(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new oo}static use(){const e=vu(oo.create).current,[n,r]=x.useState(!1);return e.shouldMount=n,e.setShouldMount=r,x.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=pv(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function fv(){return oo.use()}function pv(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}const hv=[];function gv(t){x.useEffect(t,hv)}class ws{constructor(){Gn(this,"currentId",null);Gn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Gn(this,"disposeEffect",()=>this.clear)}static create(){return new ws}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function mv(){const t=vu(ws.create).current;return gv(t.disposeEffect),t}function yu(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=t,[u,f]=x.useState(!1),p=ce(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},m=ce(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&f(!0),x.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),E.jsx("span",{className:p,style:h,children:E.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(yu.propTypes={classes:d.object.isRequired,className:d.string,in:d.bool,onExited:d.func,pulsate:d.bool,rippleSize:d.number,rippleX:d.number,rippleY:d.number,timeout:d.number.isRequired});const nt=Je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zi=550,vv=80,yv=zt.keyframes`
104
104
  0% {
105
105
  transform: scale(0);
106
106
  opacity: 0.1;
@@ -110,7 +110,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
110
110
  transform: scale(1);
111
111
  opacity: 0.3;
112
112
  }
113
- `,vd=ct.keyframes`
113
+ `,bv=zt.keyframes`
114
114
  0% {
115
115
  opacity: 1;
116
116
  }
@@ -118,7 +118,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
118
118
  100% {
119
119
  opacity: 0;
120
120
  }
121
- `,xd=ct.keyframes`
121
+ `,Ev=zt.keyframes`
122
122
  0% {
123
123
  transform: scale(1);
124
124
  }
@@ -130,23 +130,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
130
130
  100% {
131
131
  transform: scale(1);
132
132
  }
133
- `,Cd=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sd=Z(us,{name:"MuiTouchRipple",slot:"Ripple"})`
133
+ `,Sv=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cv=te(yu,{name:"MuiTouchRipple",slot:"Ripple"})`
134
134
  opacity: 0;
135
135
  position: absolute;
136
136
 
137
- &.${Le.rippleVisible} {
137
+ &.${nt.rippleVisible} {
138
138
  opacity: 0.3;
139
139
  transform: scale(1);
140
- animation-name: ${bd};
141
- animation-duration: ${Mr}ms;
142
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
140
+ animation-name: ${yv};
141
+ animation-duration: ${zi}ms;
142
+ animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
143
143
  }
144
144
 
145
- &.${Le.ripplePulsate} {
146
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
145
+ &.${nt.ripplePulsate} {
146
+ animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
147
147
  }
148
148
 
149
- & .${Le.child} {
149
+ & .${nt.child} {
150
150
  opacity: 1;
151
151
  display: block;
152
152
  width: 100%;
@@ -155,25 +155,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
155
155
  background-color: currentColor;
156
156
  }
157
157
 
158
- & .${Le.childLeaving} {
158
+ & .${nt.childLeaving} {
159
159
  opacity: 0;
160
- animation-name: ${vd};
161
- animation-duration: ${Mr}ms;
162
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
160
+ animation-name: ${bv};
161
+ animation-duration: ${zi}ms;
162
+ animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
163
163
  }
164
164
 
165
- & .${Le.childPulsate} {
165
+ & .${nt.childPulsate} {
166
166
  position: absolute;
167
167
  /* @noflip */
168
168
  left: 0px;
169
169
  top: 0;
170
- animation-name: ${xd};
170
+ animation-name: ${Ev};
171
171
  animation-duration: 2500ms;
172
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
172
+ animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
173
173
  animation-iteration-count: infinite;
174
174
  animation-delay: 200ms;
175
175
  }
176
- `,ds=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=r,[c,u]=x.useState([]),d=x.useRef(0),p=x.useRef(null);x.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=x.useRef(!1),y=gd(),g=x.useRef(null),f=x.useRef(null),v=x.useCallback(w=>{const{pulsate:O,rippleX:D,rippleY:M,rippleSize:V,cb:B}=w;u(U=>[...U,b.jsx(Sd,{classes:{ripple:ae(a.ripple,Le.ripple),rippleVisible:ae(a.rippleVisible,Le.rippleVisible),ripplePulsate:ae(a.ripplePulsate,Le.ripplePulsate),child:ae(a.child,Le.child),childLeaving:ae(a.childLeaving,Le.childLeaving),childPulsate:ae(a.childPulsate,Le.childPulsate)},timeout:Mr,pulsate:O,rippleX:D,rippleY:M,rippleSize:V},d.current)]),d.current+=1,p.current=B},[a]),S=x.useCallback((w={},O={},D=()=>{})=>{const{pulsate:M=!1,center:V=o||O.pulsate,fakeElement:B=!1}=O;if((w==null?void 0:w.type)==="mousedown"&&m.current){m.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(m.current=!0);const U=B?null:f.current,_=U?U.getBoundingClientRect():{width:0,height:0,left:0,top:0};let h,P,E;if(V||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)h=Math.round(_.width/2),P=Math.round(_.height/2);else{const{clientX:R,clientY:$}=w.touches&&w.touches.length>0?w.touches[0]:w;h=Math.round(R-_.left),P=Math.round($-_.top)}if(V)E=Math.sqrt((2*_.width**2+_.height**2)/3),E%2===0&&(E+=1);else{const R=Math.max(Math.abs((U?U.clientWidth:0)-h),h)*2+2,$=Math.max(Math.abs((U?U.clientHeight:0)-P),P)*2+2;E=Math.sqrt(R**2+$**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{v({pulsate:M,rippleX:h,rippleY:P,rippleSize:E,cb:D})},y.start(yd,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:M,rippleX:h,rippleY:P,rippleSize:E,cb:D})},[o,v,y]),T=x.useCallback(()=>{S({},{pulsate:!0})},[S]),k=x.useCallback((w,O)=>{if(y.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{k(w,O)});return}g.current=null,u(D=>D.length>0?D.slice(1):D),p.current=O},[y]);return x.useImperativeHandle(n,()=>({pulsate:T,start:S,stop:k}),[T,S,k]),b.jsx(Cd,{className:ae(Le.root,a.root,i),ref:f,...l,children:b.jsx(un,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(ds.propTypes={center:s.bool,classes:s.object,className:s.string});function wd(e){return _e("MuiButtonBase",e)}const Ed=je("MuiButtonBase",["root","disabled","focusVisible"]),Td=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ue({root:["root",t&&"disabled",n&&"focusVisible"]},wd,o);return n&&r&&(i.root+=` ${r}`),i},Od=Z("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"},[`&.${Ed.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lt=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:v,onContextMenu:S,onDragLeave:T,onFocus:k,onFocusVisible:w,onKeyDown:O,onKeyUp:D,onMouseDown:M,onMouseLeave:V,onMouseUp:B,onTouchEnd:U,onTouchMove:_,onTouchStart:h,tabIndex:P=0,TouchRippleProps:E,touchRippleRef:R,type:$,...L}=r,J=x.useRef(null),ee=fd(),N=jt(ee.ref,R),[C,j]=x.useState(!1);u&&C&&j(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{j(!0),J.current.focus()}}),[]);const K=ee.shouldMount&&!d&&!u;x.useEffect(()=>{C&&m&&!d&&ee.pulsate()},[d,m,C,ee]);const G=Qe(ee,"start",M,p),Q=Qe(ee,"stop",S,p),F=Qe(ee,"stop",T,p),H=Qe(ee,"stop",B,p),q=Qe(ee,"stop",se=>{C&&se.preventDefault(),V&&V(se)},p),z=Qe(ee,"start",h,p),X=Qe(ee,"stop",U,p),le=Qe(ee,"stop",_,p),A=Qe(ee,"stop",se=>{ta(se.target)||j(!1),f&&f(se)},!1),ie=wn(se=>{J.current||(J.current=se.currentTarget),ta(se.target)&&(j(!0),w&&w(se)),k&&k(se)}),pe=()=>{const se=J.current;return c&&c!=="button"&&!(se.tagName==="A"&&se.href)},xe=wn(se=>{m&&!se.repeat&&C&&se.key===" "&&ee.stop(se,()=>{ee.start(se)}),se.target===se.currentTarget&&pe()&&se.key===" "&&se.preventDefault(),O&&O(se),se.target===se.currentTarget&&pe()&&se.key==="Enter"&&!u&&(se.preventDefault(),v&&v(se))}),ne=wn(se=>{m&&se.key===" "&&C&&!se.defaultPrevented&&ee.stop(se,()=>{ee.pulsate(se)}),D&&D(se),v&&se.target===se.currentTarget&&pe()&&se.key===" "&&!se.defaultPrevented&&v(se)});let ce=c;ce==="button"&&(L.href||L.to)&&(ce=g);const te={};ce==="button"?(te.type=$===void 0?"button":$,te.disabled=u):(!L.href&&!L.to&&(te.role="button"),u&&(te["aria-disabled"]=u));const de=jt(n,J),ke={...r,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:m,tabIndex:P,focusVisible:C},Xe=Td(ke);return b.jsxs(Od,{as:ce,className:ae(Xe.root,l),ownerState:ke,onBlur:A,onClick:v,onContextMenu:Q,onFocus:ie,onKeyDown:xe,onKeyUp:ne,onMouseDown:G,onMouseLeave:q,onMouseUp:H,onDragLeave:F,onTouchEnd:X,onTouchMove:le,onTouchStart:z,ref:de,tabIndex:u?-1:P,type:$,...te,...L,children:[i,K?b.jsx(ds,{ref:N,center:a,...E}):null]})});function Qe(e,t,n,r=!1){return wn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(Lt.propTypes={action:cd,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:ls,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});const on=36,Qn=2,Zn=320,Dd=280,Jr=336;function kd(e){return $e("MuiPickersDay",e)}const ft=Ie("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Rd=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Md=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:c}=e,u=i&&!l;return Pe({root:["root",t&&!u&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},kd,c)},fs=({theme:e})=>W({},e.typography.caption,{width:on,height:on,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ft.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ft.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ft.disabled}:not(.${ft.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ft.disabled}&.${ft.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Qn}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ft.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ps=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Pd=Z(Lt,{name:"MuiPickersDay",slot:"Root",overridesResolver:ps})(fs),$d=Z("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ps})(({theme:e})=>W({},fs({theme:e}),{opacity:0,pointerEvents:"none"})),Kt=()=>{},hs=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:l=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDaySelect:m,onFocus:y=Kt,onBlur:g=Kt,onKeyDown:f=Kt,onMouseDown:v=Kt,onMouseEnter:S=Kt,outsideCurrentMonth:T,selected:k=!1,showDaysOutsideCurrentMonth:w=!1,children:O,today:D=!1}=r,M=Ce(r,Rd),V=W({},r,{autoFocus:o,disabled:l,disableHighlightToday:c,disableMargin:u,selected:k,showDaysOutsideCurrentMonth:w,today:D}),B=Md(V),U=Re(),_=x.useRef(null),h=Ur(_,n);St(()=>{o&&!l&&!d&&!T&&_.current.focus()},[o,l,d,T]);const P=R=>{v(R),T&&R.preventDefault()},E=R=>{l||m(i),T&&R.currentTarget.focus(),p&&p(R)};return T&&!w?b.jsx($d,{className:ae(B.root,B.hiddenDaySpacingFiller,a),ownerState:V,role:M.role}):b.jsx(Pd,W({className:ae(B.root,a),ref:h,centerRipple:!0,disabled:l,tabIndex:k?0:-1,onKeyDown:R=>f(R,i),onFocus:R=>y(R,i),onBlur:R=>g(R,i),onMouseEnter:R=>S(R,i),onClick:E,onMouseDown:P},M,{ownerState:V,children:O||U.format(i,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(hs.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const Id=x.memo(hs),Nd=e=>$e("MuiPickersSlideTransition",e),Ve=Ie("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ad=["children","className","reduceAnimations","slideDirection","transKey","classes"],_d=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Pe(r,Nd,t)},jd=Z(un,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ve["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ve["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ve.slideEnterActive}`]:t.slideEnterActive},{[`.${Ve.slideExit}`]:t.slideExit},{[`.${Ve["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ve["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ve["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ve["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ve.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ve.slideExit}`]:{transform:"translate(0%)"},[`& .${Ve["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ve["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Vd(e){const t=Me({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Ce(t,Ad),l=_d(t),c=Wr();if(o)return b.jsx("div",{className:ae(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return b.jsx(jd,{className:ae(l.root,r),childFactory:d=>x.cloneElement(d,{classNames:u}),role:"presentation",children:b.jsx(Gr,W({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:u},i,{children:n}),a)})}const Ld=e=>$e("MuiDayCalendar",e);Ie("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Bd=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],zd=["ownerState"],Fd=e=>{const{classes:t}=e;return Pe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Ld,t)},ms=(on+Qn*2)*6,Wd=Z("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ud=Z("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Hd=Z(wt,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Yd=Z(wt,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Gd=Z(wt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>W({},e.typography.caption,{width:on,height:on,padding:0,margin:`0 ${Qn}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),qd=Z("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ms}),Kd=Z(Vd,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ms}),Xd=Z("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Jd=Z("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Qn}px 0`,display:"flex",justifyContent:"center"});function Qd(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:i,isViewFocused:l}=e,c=Ce(e,Bd);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:y,slotProps:g,timezone:f}=t,v=Re(),S=Xn(f),T=r!==null&&v.isSameDay(n,r),k=o.some(h=>v.isSameDay(h,n)),w=v.isSameDay(n,S),O=(y==null?void 0:y.day)??Id,D=Ae({elementType:O,externalSlotProps:g==null?void 0:g.day,additionalProps:W({disableHighlightToday:d,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},c),ownerState:W({},t,{day:n,selected:k})}),M=Ce(D,zd),V=x.useMemo(()=>u||a(n),[u,a,n]),B=x.useMemo(()=>v.getMonth(n)!==i,[v,n,i]),U=x.useMemo(()=>{const h=v.startOfMonth(v.setMonth(n,i));return m?v.isSameDay(n,v.startOfWeek(h)):v.isSameDay(n,h)},[i,n,m,v]),_=x.useMemo(()=>{const h=v.endOfMonth(v.setMonth(n,i));return m?v.isSameDay(n,v.endOfWeek(h)):v.isSameDay(n,h)},[i,n,m,v]);return b.jsx(O,W({},M,{day:n,disabled:V,autoFocus:l&&T,today:w,outsideCurrentMonth:B,isFirstVisibleCell:U,isLastVisibleCell:_,selected:k,tabIndex:T?0:-1,"aria-selected":k,"aria-current":w?"date":void 0}))}function Zd(e){const t=Me({props:e,name:"MuiDayCalendar"}),n=Re(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:i,focusedDay:l,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:p,reduceAnimations:m,renderLoading:y=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:f,disablePast:v,disableFuture:S,minDate:T,maxDate:k,shouldDisableDate:w,shouldDisableMonth:O,shouldDisableYear:D,dayOfWeekFormatter:M=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:V,onFocusedViewChange:B,gridLabelId:U,displayWeekNumber:_,fixedWeekNumber:h,autoFocus:P,timezone:E}=t,R=Xn(E),$=Fd(t),L=cn(),J=rs({shouldDisableDate:w,shouldDisableMonth:O,shouldDisableYear:D,minDate:T,maxDate:k,disablePast:v,disableFuture:S,timezone:E}),ee=Jn(),[N,C]=Vt({name:"DayCalendar",state:"hasFocus",controlled:V,default:P??!1}),[j,K]=x.useState(()=>l||R),G=ue(ne=>{p||u(ne)}),Q=ne=>{J(ne)||(r(ne),K(ne),B==null||B(!0),C(!0))},F=ue((ne,ce)=>{switch(ne.key){case"ArrowUp":Q(n.addDays(ce,-7)),ne.preventDefault();break;case"ArrowDown":Q(n.addDays(ce,7)),ne.preventDefault();break;case"ArrowLeft":{const te=n.addDays(ce,L?1:-1),de=n.addMonths(ce,L?1:-1),ke=tn({utils:n,date:te,minDate:L?te:n.startOfMonth(de),maxDate:L?n.endOfMonth(de):te,isDateDisabled:J,timezone:E});Q(ke||te),ne.preventDefault();break}case"ArrowRight":{const te=n.addDays(ce,L?-1:1),de=n.addMonths(ce,L?-1:1),ke=tn({utils:n,date:te,minDate:L?n.startOfMonth(de):te,maxDate:L?te:n.endOfMonth(de),isDateDisabled:J,timezone:E});Q(ke||te),ne.preventDefault();break}case"Home":Q(n.startOfWeek(ce)),ne.preventDefault();break;case"End":Q(n.endOfWeek(ce)),ne.preventDefault();break;case"PageUp":Q(n.addMonths(ce,1)),ne.preventDefault();break;case"PageDown":Q(n.addMonths(ce,-1)),ne.preventDefault();break}}),H=ue((ne,ce)=>Q(ce)),q=ue((ne,ce)=>{N&&n.isSameDay(j,ce)&&(B==null||B(!1))}),z=n.getMonth(a),X=n.getYear(a),le=x.useMemo(()=>i.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,i]),A=`${X}-${z}`,ie=x.useMemo(()=>x.createRef(),[A]),pe=x.useMemo(()=>{const ne=n.startOfMonth(a),ce=n.endOfMonth(a);return J(j)||n.isAfterDay(j,ce)||n.isBeforeDay(j,ne)?tn({utils:n,date:j,minDate:ne,maxDate:ce,disablePast:v,disableFuture:S,isDateDisabled:J,timezone:E}):j},[a,S,v,j,J,n,E]),xe=x.useMemo(()=>{const ne=n.getWeekArray(a);let ce=n.addMonths(a,1);for(;h&&ne.length<h;){const te=n.getWeekArray(ce),de=n.isSameDay(ne[ne.length-1][0],te[0][0]);te.slice(de?1:0).forEach(ke=>{ne.length<h&&ne.push(ke)}),ce=n.addMonths(ce,1)}return ne},[a,h,n]);return b.jsxs(Wd,{role:"grid","aria-labelledby":U,className:$.root,children:[b.jsxs(Ud,{role:"row",className:$.header,children:[_&&b.jsx(Yd,{variant:"caption",role:"columnheader","aria-label":ee.calendarWeekNumberHeaderLabel,className:$.weekNumberLabel,children:ee.calendarWeekNumberHeaderText}),au(n,R).map((ne,ce)=>b.jsx(Hd,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:$.weekDayLabel,children:M(ne)},ce.toString()))]}),c?b.jsx(qd,{className:$.loadingContainer,children:y()}):b.jsx(Kd,W({transKey:A,onExited:d,reduceAnimations:m,slideDirection:g,className:ae(o,$.slideTransition)},f,{nodeRef:ie,children:b.jsx(Xd,{ref:ie,role:"rowgroup",className:$.monthContainer,children:xe.map((ne,ce)=>b.jsxs(Jd,{role:"row",className:$.weekContainer,"aria-rowindex":ce+1,children:[_&&b.jsx(Gd,{className:$.weekNumber,role:"rowheader","aria-label":ee.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:ee.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((te,de)=>b.jsx(Qd,{parentProps:t,day:te,selectedDays:le,focusableDay:pe,onKeyDown:F,onFocus:H,onBlur:q,onDaySelect:G,isDateDisabled:J,currentMonthNumber:z,isViewFocused:N,"aria-colindex":de+1},te.toString()))]},`week-${ne[0]}`))})}))]})}function ef(e){return $e("MuiPickersMonth",e)}const yn=Ie("MuiPickersMonth",["root","monthButton","disabled","selected"]),tf=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],nf=e=>{const{disabled:t,selected:n,classes:r}=e;return Pe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ef,r)},rf=Z("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),of=Z("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${yn.disabled}`]:t.disabled},{[`&.${yn.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${yn.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${yn.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),af=x.memo(function(t){const n=Me({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:a,disabled:i,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:m,onBlur:y,"aria-current":g,"aria-label":f,slots:v,slotProps:S}=n,T=Ce(n,tf),k=x.useRef(null),w=nf(n);St(()=>{var M;r&&((M=k.current)==null||M.focus())},[r]);const O=(v==null?void 0:v.monthButton)??of,D=Ae({elementType:O,externalSlotProps:S==null?void 0:S.monthButton,additionalProps:{children:a,disabled:i,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":g,"aria-checked":l,"aria-label":f,onClick:M=>d(M,c),onKeyDown:M=>p(M,c),onFocus:M=>m(M,c),onBlur:M=>y(M,c)},ownerState:n,className:w.monthButton});return b.jsx(rf,W({className:ae(w.root,o),ownerState:n},T,{children:b.jsx(O,W({},D))}))});function sf(e){return $e("MuiMonthCalendar",e)}Ie("MuiMonthCalendar",["root"]);const gs=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const i=Re(),l=x.useRef(n),c=t??l.current??a.emptyValue,u=x.useMemo(()=>a.getTimezone(i,c),[i,a,c]),d=ue(g=>u==null?g:a.setTimezone(i,u,g));let p;e?p=e:u?p=u:r?p=i.getTimezone(r):p="default";const m=x.useMemo(()=>a.setTimezone(i,p,c),[a,i,p,c]),y=ue((g,...f)=>{const v=d(g);o==null||o(v,...f)});return{value:m,handleValueChange:y,timezone:p}},Qr=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:i})=>{const[l,c]=Vt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),u=ue((d,...p)=>{c(d),a==null||a(d,...p)});return gs({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:i})},lf=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],cf=e=>{const{classes:t}=e;return Pe({root:["root"]},sf,t)};function uf(e,t){const n=Re(),r=Kn(),o=Me({props:e,name:t});return W({disableFuture:!1,disablePast:!1},o,{minDate:Ke(n,o.minDate,r.minDate),maxDate:Ke(n,o.maxDate,r.maxDate)})}const df=Z("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Zn,boxSizing:"border-box"}),ys=x.forwardRef(function(t,n){const r=uf(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:m,onChange:y,shouldDisableMonth:g,readOnly:f,autoFocus:v=!1,onMonthFocus:S,hasFocus:T,onFocusedViewChange:k,monthsPerRow:w=3,timezone:O,gridLabelId:D,slots:M,slotProps:V}=r,B=Ce(r,lf),{value:U,handleValueChange:_,timezone:h}=Qr({name:"MonthCalendar",timezone:O,value:a,defaultValue:i,referenceDate:l,onChange:y,valueManager:lt}),P=Xn(h),E=cn(),R=Re(),$=x.useMemo(()=>lt.getInitialReferenceValue({value:U,utils:R,props:r,timezone:h,referenceDate:l,granularity:Ze.month}),[]),L=r,J=cf(L),ee=x.useMemo(()=>R.getMonth(P),[R,P]),N=x.useMemo(()=>U!=null?R.getMonth(U):null,[U,R]),[C,j]=x.useState(()=>N||R.getMonth($)),[K,G]=Vt({name:"MonthCalendar",state:"hasFocus",controlled:T,default:v??!1}),Q=ue(A=>{G(A),k&&k(A)}),F=x.useCallback(A=>{const ie=R.startOfMonth(d&&R.isAfter(P,m)?P:m),pe=R.startOfMonth(u&&R.isBefore(P,p)?P:p),xe=R.startOfMonth(A);return R.isBefore(xe,ie)||R.isAfter(xe,pe)?!0:g?g(xe):!1},[u,d,p,m,P,g,R]),H=ue((A,ie)=>{if(f)return;const pe=R.setMonth(U??$,ie);_(pe)}),q=ue(A=>{F(R.setMonth(U??$,A))||(j(A),Q(!0),S&&S(A))});x.useEffect(()=>{j(A=>N!==null&&A!==N?N:A)},[N]);const z=ue((A,ie)=>{switch(A.key){case"ArrowUp":q((12+ie-3)%12),A.preventDefault();break;case"ArrowDown":q((12+ie+3)%12),A.preventDefault();break;case"ArrowLeft":q((12+ie+(E?1:-1))%12),A.preventDefault();break;case"ArrowRight":q((12+ie+(E?-1:1))%12),A.preventDefault();break}}),X=ue((A,ie)=>{q(ie)}),le=ue((A,ie)=>{C===ie&&Q(!1)});return b.jsx(df,W({ref:n,className:ae(J.root,o),ownerState:L,role:"radiogroup","aria-labelledby":D},B,{children:nu(R,U??$).map(A=>{const ie=R.getMonth(A),pe=R.format(A,"monthShort"),xe=R.format(A,"month"),ne=ie===N,ce=c||F(A);return b.jsx(af,{selected:ne,value:ie,onClick:H,onKeyDown:z,autoFocus:K&&ie===C,disabled:ce,tabIndex:ie===C&&!ce?0:-1,onFocus:X,onBlur:le,"aria-current":ee===ie?"date":void 0,"aria-label":xe,monthsPerRow:w,slots:M,slotProps:V,children:pe},pe)})}))});process.env.NODE_ENV!=="production"&&(ys.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function ff(e){return $e("MuiPickersYear",e)}const bn=Ie("MuiPickersYear",["root","yearButton","selected","disabled"]),pf=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],hf=e=>{const{disabled:t,selected:n,classes:r}=e;return Pe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},ff,r)},mf=Z("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),gf=Z("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${bn.disabled}`]:t.disabled},{[`&.${bn.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bn.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bn.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),yf=x.memo(function(t){const n=Me({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:m,onBlur:y,"aria-current":g,slots:f,slotProps:v}=n,S=Ce(n,pf),T=x.useRef(null),k=hf(n);St(()=>{var D;r&&((D=T.current)==null||D.focus())},[r]);const w=(f==null?void 0:f.yearButton)??gf,O=Ae({elementType:w,externalSlotProps:v==null?void 0:v.yearButton,additionalProps:{children:a,disabled:i,tabIndex:u,ref:T,type:"button",role:"radio","aria-current":g,"aria-checked":l,onClick:D=>d(D,c),onKeyDown:D=>p(D,c),onFocus:D=>m(D,c),onBlur:D=>y(D,c)},ownerState:n,className:k.yearButton});return b.jsx(mf,W({className:ae(k.root,o),ownerState:n},S,{children:b.jsx(w,W({},O))}))});function bf(e){return $e("MuiYearCalendar",e)}Ie("MuiYearCalendar",["root"]);const vf=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],xf=e=>{const{classes:t}=e;return Pe({root:["root"]},bf,t)};function Cf(e,t){const n=Re(),r=Kn(),o=Me({props:e,name:t});return W({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Ke(n,o.minDate,r.minDate),maxDate:Ke(n,o.maxDate,r.maxDate)})}const Sf=Z("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Zn,maxHeight:Dd,boxSizing:"border-box",position:"relative"}),bs=x.forwardRef(function(t,n){const r=Cf(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:l,referenceDate:c,disabled:u,disableFuture:d,disablePast:p,maxDate:m,minDate:y,onChange:g,readOnly:f,shouldDisableYear:v,onYearFocus:S,hasFocus:T,onFocusedViewChange:k,yearsOrder:w="asc",yearsPerRow:O,timezone:D,gridLabelId:M,slots:V,slotProps:B}=r,U=Ce(r,vf),{value:_,handleValueChange:h,timezone:P}=Qr({name:"YearCalendar",timezone:D,value:i,defaultValue:l,referenceDate:c,onChange:g,valueManager:lt}),E=Xn(P),R=cn(),$=Re(),L=x.useMemo(()=>lt.getInitialReferenceValue({value:_,utils:$,props:r,timezone:P,referenceDate:c,granularity:Ze.year}),[]),J=r,ee=xf(J),N=x.useMemo(()=>$.getYear(E),[$,E]),C=x.useMemo(()=>_!=null?$.getYear(_):null,[_,$]),[j,K]=x.useState(()=>C||$.getYear(L)),[G,Q]=Vt({name:"YearCalendar",state:"hasFocus",controlled:T,default:o??!1}),F=ue(te=>{Q(te),k&&k(te)}),H=x.useCallback(te=>{if(p&&$.isBeforeYear(te,E)||d&&$.isAfterYear(te,E)||y&&$.isBeforeYear(te,y)||m&&$.isAfterYear(te,m))return!0;if(!v)return!1;const de=$.startOfYear(te);return v(de)},[d,p,m,y,E,v,$]),q=ue((te,de)=>{if(f)return;const ke=$.setYear(_??L,de);h(ke)}),z=ue(te=>{H($.setYear(_??L,te))||(K(te),F(!0),S==null||S(te))});x.useEffect(()=>{K(te=>C!==null&&te!==C?C:te)},[C]);const X=w!=="desc"?O*1:O*-1,le=R&&w==="asc"||!R&&w==="desc"?-1:1,A=ue((te,de)=>{switch(te.key){case"ArrowUp":z(de-X),te.preventDefault();break;case"ArrowDown":z(de+X),te.preventDefault();break;case"ArrowLeft":z(de-le),te.preventDefault();break;case"ArrowRight":z(de+le),te.preventDefault();break}}),ie=ue((te,de)=>{z(de)}),pe=ue((te,de)=>{j===de&&F(!1)}),xe=x.useRef(null),ne=Ur(n,xe);x.useEffect(()=>{if(o||xe.current===null)return;const te=xe.current.querySelector('[tabindex="0"]');if(!te)return;const de=te.offsetHeight,ke=te.offsetTop,Xe=xe.current.clientHeight,se=xe.current.scrollTop,er=ke+de;de>Xe||ke<se||(xe.current.scrollTop=er-Xe/2-de/2)},[o]);const ce=$.getYearRange([y,m]);return w==="desc"&&ce.reverse(),b.jsx(Sf,W({ref:ne,className:ae(ee.root,a),ownerState:J,role:"radiogroup","aria-labelledby":M},U,{children:ce.map(te=>{const de=$.getYear(te),ke=de===C,Xe=u||H(te);return b.jsx(yf,{selected:ke,value:de,onClick:q,onKeyDown:A,autoFocus:G&&de===j,disabled:Xe,tabIndex:de===j&&!Xe?0:-1,onFocus:ie,onBlur:pe,"aria-current":N===de?"date":void 0,yearsPerRow:O,slots:V,slotProps:B,children:$.format(te,"year")},$.format(te,"year"))})}))});process.env.NODE_ENV!=="production"&&(bs.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});let yr=!1;function vs({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(yr||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),yr=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),yr=!0)));const c=x.useRef(n),u=x.useRef(o),d=x.useRef(o.includes(n)?n:o[0]),[p,m]=Vt({name:"useViews",state:"view",controlled:r,default:d.current}),y=x.useRef(a?p:null),[g,f]=Vt({name:"useViews",state:"focusedView",controlled:i,default:y.current});x.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(M=>!o.includes(M)))&&(m(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,m,p,o]);const v=o.indexOf(p),S=o[v-1]??null,T=o[v+1]??null,k=ue((M,V)=>{f(V?M:B=>M===B?null:B),l==null||l(M,V)}),w=ue(M=>{k(M,!0),M!==p&&(m(M),t&&t(M))}),O=ue(()=>{T&&w(T)}),D=ue((M,V,B)=>{const U=V==="finish",_=B?o.indexOf(B)<o.length-1:!!T;if(e(M,U&&_?"partial":V,B),B&&B!==p){const P=o[o.indexOf(B)+1];P&&w(P)}else U&&O()});return{view:p,setView:w,focusedView:g,setFocusedView:k,nextView:T,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:O,setValueAndGoToNextView:D}}const wf=e=>$e("MuiPickersCalendarHeader",e),Ef=Ie("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Tf(e){return _e("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const We=44,Pr=ct.keyframes`
176
+ `,bu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,c]=x.useState([]),u=x.useRef(0),f=x.useRef(null);x.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=x.useRef(!1),h=mv(),m=x.useRef(null),g=x.useRef(null),v=x.useCallback(C=>{const{pulsate:A,rippleX:T,rippleY:k,rippleSize:P,cb:H}=C;c(W=>[...W,E.jsx(Cv,{classes:{ripple:ce(i.ripple,nt.ripple),rippleVisible:ce(i.rippleVisible,nt.rippleVisible),ripplePulsate:ce(i.ripplePulsate,nt.ripplePulsate),child:ce(i.child,nt.child),childLeaving:ce(i.childLeaving,nt.childLeaving),childPulsate:ce(i.childPulsate,nt.childPulsate)},timeout:zi,pulsate:A,rippleX:T,rippleY:k,rippleSize:P},u.current)]),u.current+=1,f.current=H},[i]),b=x.useCallback((C={},A={},T=()=>{})=>{const{pulsate:k=!1,center:P=o||A.pulsate,fakeElement:H=!1}=A;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const W=H?null:g.current,$=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,I,_;if(P||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)y=Math.round($.width/2),I=Math.round($.height/2);else{const{clientX:O,clientY:N}=C.touches&&C.touches.length>0?C.touches[0]:C;y=Math.round(O-$.left),I=Math.round(N-$.top)}if(P)_=Math.sqrt((2*$.width**2+$.height**2)/3),_%2===0&&(_+=1);else{const O=Math.max(Math.abs((W?W.clientWidth:0)-y),y)*2+2,N=Math.max(Math.abs((W?W.clientHeight:0)-I),I)*2+2;_=Math.sqrt(O**2+N**2)}C!=null&&C.touches?m.current===null&&(m.current=()=>{v({pulsate:k,rippleX:y,rippleY:I,rippleSize:_,cb:T})},h.start(vv,()=>{m.current&&(m.current(),m.current=null)})):v({pulsate:k,rippleX:y,rippleY:I,rippleSize:_,cb:T})},[o,v,h]),S=x.useCallback(()=>{b({},{pulsate:!0})},[b]),R=x.useCallback((C,A)=>{if(h.clear(),(C==null?void 0:C.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{R(C,A)});return}m.current=null,c(T=>T.length>0?T.slice(1):T),f.current=A},[h]);return x.useImperativeHandle(n,()=>({pulsate:S,start:b,stop:R}),[S,b,R]),E.jsx(Sv,{className:ce(nt.root,i.root,s),ref:g,...a,children:E.jsx(br,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(bu.propTypes={center:d.bool,classes:d.object,className:d.string});function wv(t){return Xe("MuiButtonBase",t)}const xv=Je("MuiButtonBase",["root","disabled","focusVisible"]),Dv=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=ct({root:["root",e&&"disabled",n&&"focusVisible"]},wv,o);return n&&r&&(s.root+=` ${r}`),s},Tv=te("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"},[`&.${xv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vn=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:S,onFocus:R,onFocusVisible:C,onKeyDown:A,onKeyUp:T,onMouseDown:k,onMouseLeave:P,onMouseUp:H,onTouchEnd:W,onTouchMove:$,onTouchStart:y,tabIndex:I=0,TouchRippleProps:_,touchRippleRef:O,type:N,...z}=r,J=x.useRef(null),ne=fv(),V=Nn(ne.ref,O),[D,L]=x.useState(!1);c&&D&&L(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{L(!0),J.current.focus()}}),[]);const K=ne.shouldMount&&!u&&!c;x.useEffect(()=>{D&&p&&!u&&ne.pulsate()},[u,p,D,ne]);const Q=Et(ne,"start",k,f),ee=Et(ne,"stop",b,f),U=Et(ne,"stop",S,f),Y=Et(ne,"stop",H,f),Z=Et(ne,"stop",ue=>{D&&ue.preventDefault(),P&&P(ue)},f),F=Et(ne,"start",y,f),X=Et(ne,"stop",W,f),fe=Et(ne,"stop",$,f),B=Et(ne,"stop",ue=>{al(ue.target)||L(!1),g&&g(ue)},!1),de=Hr(ue=>{J.current||(J.current=ue.currentTarget),al(ue.target)&&(L(!0),C&&C(ue)),R&&R(ue)}),ye=()=>{const ue=J.current;return l&&l!=="button"&&!(ue.tagName==="A"&&ue.href)},Te=Hr(ue=>{p&&!ue.repeat&&D&&ue.key===" "&&ne.stop(ue,()=>{ne.start(ue)}),ue.target===ue.currentTarget&&ye()&&ue.key===" "&&ue.preventDefault(),A&&A(ue),ue.target===ue.currentTarget&&ye()&&ue.key==="Enter"&&!c&&(ue.preventDefault(),v&&v(ue))}),ie=Hr(ue=>{p&&ue.key===" "&&D&&!ue.defaultPrevented&&ne.stop(ue,()=>{ne.pulsate(ue)}),T&&T(ue),v&&ue.target===ue.currentTarget&&ye()&&ue.key===" "&&!ue.defaultPrevented&&v(ue)});let pe=l;pe==="button"&&(z.href||z.to)&&(pe=m);const re={};pe==="button"?(re.type=N===void 0?"button":N,re.disabled=c):(!z.href&&!z.to&&(re.role="button"),c&&(re["aria-disabled"]=c));const ge=Nn(n,J),$e={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:I,focusVisible:D},yt=Dv($e);return E.jsxs(Tv,{as:pe,className:ce(yt.root,a),ownerState:$e,onBlur:B,onClick:v,onContextMenu:ee,onFocus:de,onKeyDown:Te,onKeyUp:ie,onMouseDown:Q,onMouseLeave:Z,onMouseUp:Y,onDragLeave:U,onTouchEnd:X,onTouchMove:fe,onTouchStart:F,ref:ge,tabIndex:c?-1:I,type:N,...re,...z,children:[s,K?E.jsx(bu,{ref:V,center:i,..._}):null]})});function Et(t,e,n,r=!1){return Hr(o=>(n&&n(o),r||t[e](o),!0))}process.env.NODE_ENV!=="production"&&(Vn.propTypes={action:cv,centerRipple:d.bool,children:d.node,classes:d.object,className:d.string,component:mu,disabled:d.bool,disableRipple:d.bool,disableTouchRipple:d.bool,focusRipple:d.bool,focusVisibleClassName:d.string,href:d.any,LinkComponent:d.elementType,onBlur:d.func,onClick:d.func,onContextMenu:d.func,onDragLeave:d.func,onFocus:d.func,onFocusVisible:d.func,onKeyDown:d.func,onKeyUp:d.func,onMouseDown:d.func,onMouseLeave:d.func,onMouseUp:d.func,onTouchEnd:d.func,onTouchMove:d.func,onTouchStart:d.func,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),tabIndex:d.number,TouchRippleProps:d.object,touchRippleRef:d.oneOfType([d.func,d.shape({current:d.shape({pulsate:d.func.isRequired,start:d.func.isRequired,stop:d.func.isRequired})})]),type:d.oneOfType([d.oneOf(["button","reset","submit"]),d.string])});const dr=36,Bo=2,Lo=320,Av=280,xs=336;function Rv(t){return Ue("MuiPickersDay",t)}const Gt=Ye("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),_v=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],kv=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,c=s&&!a;return We({root:["root",e&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Rv,l)},Eu=({theme:t})=>G({},t.typography.caption,{width:dr,height:dr,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:$t(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${Gt.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Gt.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Gt.disabled}:not(.${Gt.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${Gt.disabled}&.${Gt.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Bo}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Gt.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),Su=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},Mv=te(Vn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Su})(Eu),Ov=te("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Su})(({theme:t})=>G({},Eu({theme:t}),{opacity:0,pointerEvents:"none"})),Xn=()=>{},Cu=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:h=Xn,onBlur:m=Xn,onKeyDown:g=Xn,onMouseDown:v=Xn,onMouseEnter:b=Xn,outsideCurrentMonth:S,selected:R=!1,showDaysOutsideCurrentMonth:C=!1,children:A,today:T=!1}=r,k=_e(r,_v),P=G({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:R,showDaysOutsideCurrentMonth:C,today:T}),H=kv(P),W=Le(),$=x.useRef(null),y=vs($,n);cn(()=>{o&&!a&&!u&&!S&&$.current.focus()},[o,a,u,S]);const I=O=>{v(O),S&&O.preventDefault()},_=O=>{a||p(s),S&&O.currentTarget.focus(),f&&f(O)};return S&&!C?E.jsx(Ov,{className:ce(H.root,H.hiddenDaySpacingFiller,i),ownerState:P,role:k.role}):E.jsx(Mv,G({className:ce(H.root,i),ref:y,centerRipple:!0,disabled:a,tabIndex:R?0:-1,onKeyDown:O=>g(O,s),onFocus:O=>h(O,s),onBlur:O=>m(O,s),onMouseEnter:O=>b(O,s),onClick:_,onMouseDown:I},k,{ownerState:P,children:A||W.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Cu.propTypes={action:d.oneOfType([d.func,d.shape({current:d.shape({focusVisible:d.func.isRequired})})]),centerRipple:d.bool,classes:d.object,className:d.string,component:d.elementType,day:d.object.isRequired,disabled:d.bool,disableHighlightToday:d.bool,disableMargin:d.bool,disableRipple:d.bool,disableTouchRipple:d.bool,focusRipple:d.bool,focusVisibleClassName:d.string,isAnimating:d.bool,isFirstVisibleCell:d.bool.isRequired,isLastVisibleCell:d.bool.isRequired,onBlur:d.func,onDaySelect:d.func.isRequired,onFocus:d.func,onFocusVisible:d.func,onKeyDown:d.func,onMouseEnter:d.func,outsideCurrentMonth:d.bool.isRequired,selected:d.bool,showDaysOutsideCurrentMonth:d.bool,style:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),tabIndex:d.number,today:d.bool,TouchRippleProps:d.object,touchRippleRef:d.oneOfType([d.func,d.shape({current:d.shape({pulsate:d.func.isRequired,start:d.func.isRequired,stop:d.func.isRequired})})])});const Iv=x.memo(Cu),Pv=t=>Ue("MuiPickersSlideTransition",t),tt=Ye("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Nv=["children","className","reduceAnimations","slideDirection","transKey","classes"],jv=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return We(r,Pv,e)},Vv=te(br,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${tt["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${tt["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${tt.slideEnterActive}`]:e.slideEnterActive},{[`.${tt.slideExit}`]:e.slideExit},{[`.${tt["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${tt["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${tt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${tt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${tt.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${tt.slideExit}`]:{transform:"translate(0%)"},[`& .${tt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${tt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function $v(t){const e=ze({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=_e(e,Nv),a=jv(e),l=ms();if(o)return E.jsx("div",{className:ce(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return E.jsx(Vv,{className:ce(a.root,r),childFactory:u=>x.cloneElement(u,{classNames:c}),role:"presentation",children:E.jsx(Es,G({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),i)})}const Bv=t=>Ue("MuiDayCalendar",t);Ye("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Lv=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Hv=["ownerState"],zv=t=>{const{classes:e}=t;return We({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Bv,e)},wu=(dr+Bo*2)*6,Fv=te("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Wv=te("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Uv=te(pn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),Gv=te(pn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),Yv=te(pn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>G({},t.typography.caption,{width:dr,height:dr,padding:0,margin:`0 ${Bo}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),qv=te("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:wu}),Qv=te($v,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:wu}),Zv=te("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),Kv=te("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${Bo}px 0`,display:"flex",justifyContent:"center"});function Xv(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:a}=t,l=_e(t,Lv);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=e,v=Le(),b=Vo(g),S=r!==null&&v.isSameDay(n,r),R=o.some(y=>v.isSameDay(y,n)),C=v.isSameDay(n,b),A=(h==null?void 0:h.day)??Iv,T=Qe({elementType:A,externalSlotProps:m==null?void 0:m.day,additionalProps:G({disableHighlightToday:u,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:G({},e,{day:n,selected:R})}),k=_e(T,Hv),P=x.useMemo(()=>c||i(n),[c,i,n]),H=x.useMemo(()=>v.getMonth(n)!==s,[v,n,s]),W=x.useMemo(()=>{const y=v.startOfMonth(v.setMonth(n,s));return p?v.isSameDay(n,v.startOfWeek(y)):v.isSameDay(n,y)},[s,n,p,v]),$=x.useMemo(()=>{const y=v.endOfMonth(v.setMonth(n,s));return p?v.isSameDay(n,v.endOfWeek(y)):v.isSameDay(n,y)},[s,n,p,v]);return E.jsx(A,G({},k,{day:n,disabled:P,autoFocus:a&&S,today:C,outsideCurrentMonth:H,isFirstVisibleCell:W,isLastVisibleCell:$,selected:R,tabIndex:S?0:-1,"aria-selected":R,"aria-current":C?"date":void 0}))}function Jv(t){const e=ze({props:t,name:"MuiDayCalendar"}),n=Le(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:f,reduceAnimations:p,renderLoading:h=()=>E.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:g,disablePast:v,disableFuture:b,minDate:S,maxDate:R,shouldDisableDate:C,shouldDisableMonth:A,shouldDisableYear:T,dayOfWeekFormatter:k=ie=>n.format(ie,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:H,gridLabelId:W,displayWeekNumber:$,fixedWeekNumber:y,autoFocus:I,timezone:_}=e,O=Vo(_),N=zv(e),z=yr(),J=du({shouldDisableDate:C,shouldDisableMonth:A,shouldDisableYear:T,minDate:S,maxDate:R,disablePast:v,disableFuture:b,timezone:_}),ne=$o(),[V,D]=jn({name:"DayCalendar",state:"hasFocus",controlled:P,default:I??!1}),[L,K]=x.useState(()=>a||O),Q=he(ie=>{f||c(ie)}),ee=ie=>{J(ie)||(r(ie),K(ie),H==null||H(!0),D(!0))},U=he((ie,pe)=>{switch(ie.key){case"ArrowUp":ee(n.addDays(pe,-7)),ie.preventDefault();break;case"ArrowDown":ee(n.addDays(pe,7)),ie.preventDefault();break;case"ArrowLeft":{const re=n.addDays(pe,z?1:-1),ge=n.addMonths(pe,z?1:-1),$e=ir({utils:n,date:re,minDate:z?re:n.startOfMonth(ge),maxDate:z?n.endOfMonth(ge):re,isDateDisabled:J,timezone:_});ee($e||re),ie.preventDefault();break}case"ArrowRight":{const re=n.addDays(pe,z?-1:1),ge=n.addMonths(pe,z?-1:1),$e=ir({utils:n,date:re,minDate:z?n.startOfMonth(ge):re,maxDate:z?re:n.endOfMonth(ge),isDateDisabled:J,timezone:_});ee($e||re),ie.preventDefault();break}case"Home":ee(n.startOfWeek(pe)),ie.preventDefault();break;case"End":ee(n.endOfWeek(pe)),ie.preventDefault();break;case"PageUp":ee(n.addMonths(pe,1)),ie.preventDefault();break;case"PageDown":ee(n.addMonths(pe,-1)),ie.preventDefault();break}}),Y=he((ie,pe)=>ee(pe)),Z=he((ie,pe)=>{V&&n.isSameDay(L,pe)&&(H==null||H(!1))}),F=n.getMonth(i),X=n.getYear(i),fe=x.useMemo(()=>s.filter(ie=>!!ie).map(ie=>n.startOfDay(ie)),[n,s]),B=`${X}-${F}`,de=x.useMemo(()=>x.createRef(),[B]),ye=x.useMemo(()=>{const ie=n.startOfMonth(i),pe=n.endOfMonth(i);return J(L)||n.isAfterDay(L,pe)||n.isBeforeDay(L,ie)?ir({utils:n,date:L,minDate:ie,maxDate:pe,disablePast:v,disableFuture:b,isDateDisabled:J,timezone:_}):L},[i,b,v,L,J,n,_]),Te=x.useMemo(()=>{const ie=n.getWeekArray(i);let pe=n.addMonths(i,1);for(;y&&ie.length<y;){const re=n.getWeekArray(pe),ge=n.isSameDay(ie[ie.length-1][0],re[0][0]);re.slice(ge?1:0).forEach($e=>{ie.length<y&&ie.push($e)}),pe=n.addMonths(pe,1)}return ie},[i,y,n]);return E.jsxs(Fv,{role:"grid","aria-labelledby":W,className:N.root,children:[E.jsxs(Wv,{role:"row",className:N.header,children:[$&&E.jsx(Gv,{variant:"caption",role:"columnheader","aria-label":ne.calendarWeekNumberHeaderLabel,className:N.weekNumberLabel,children:ne.calendarWeekNumberHeaderText}),im(n,O).map((ie,pe)=>E.jsx(Uv,{variant:"caption",role:"columnheader","aria-label":n.format(ie,"weekday"),className:N.weekDayLabel,children:k(ie)},pe.toString()))]}),l?E.jsx(qv,{className:N.loadingContainer,children:h()}):E.jsx(Qv,G({transKey:B,onExited:u,reduceAnimations:p,slideDirection:m,className:ce(o,N.slideTransition)},g,{nodeRef:de,children:E.jsx(Zv,{ref:de,role:"rowgroup",className:N.monthContainer,children:Te.map((ie,pe)=>E.jsxs(Kv,{role:"row",className:N.weekContainer,"aria-rowindex":pe+1,children:[$&&E.jsx(Yv,{className:N.weekNumber,role:"rowheader","aria-label":ne.calendarWeekNumberAriaLabelText(n.getWeekNumber(ie[0])),children:ne.calendarWeekNumberText(n.getWeekNumber(ie[0]))}),ie.map((re,ge)=>E.jsx(Xv,{parentProps:e,day:re,selectedDays:fe,focusableDay:ye,onKeyDown:U,onFocus:Y,onBlur:Z,onDaySelect:Q,isDateDisabled:J,currentMonthNumber:F,isViewFocused:V,"aria-colindex":ge+1},re.toString()))]},`week-${ie[0]}`))})}))]})}function ey(t){return Ue("MuiPickersMonth",t)}const Rr=Ye("MuiPickersMonth",["root","monthButton","disabled","selected"]),ty=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],ny=t=>{const{disabled:e,selected:n,classes:r}=t;return We({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},ey,r)},ry=te("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),oy=te("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${Rr.disabled}`]:e.disabled},{[`&.${Rr.selected}`]:e.selected}]})(({theme:t})=>G({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Rr.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Rr.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),iy=x.memo(function(e){const n=ze({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:h,"aria-current":m,"aria-label":g,slots:v,slotProps:b}=n,S=_e(n,ty),R=x.useRef(null),C=ny(n);cn(()=>{var k;r&&((k=R.current)==null||k.focus())},[r]);const A=(v==null?void 0:v.monthButton)??oy,T=Qe({elementType:A,externalSlotProps:b==null?void 0:b.monthButton,additionalProps:{children:i,disabled:s,tabIndex:c,ref:R,type:"button",role:"radio","aria-current":m,"aria-checked":a,"aria-label":g,onClick:k=>u(k,l),onKeyDown:k=>f(k,l),onFocus:k=>p(k,l),onBlur:k=>h(k,l)},ownerState:n,className:C.monthButton});return E.jsx(ry,G({className:ce(C.root,o),ownerState:n},S,{children:E.jsx(A,G({},T))}))});function sy(t){return Ue("MuiMonthCalendar",t)}Ye("MuiMonthCalendar",["root"]);const xu=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=Le(),a=x.useRef(n),l=e??a.current??i.emptyValue,c=x.useMemo(()=>i.getTimezone(s,l),[s,i,l]),u=he(m=>c==null?m:i.setTimezone(s,c,m));let f;t?f=t:c?f=c:r?f=s.getTimezone(r):f="default";const p=x.useMemo(()=>i.setTimezone(s,f,l),[i,s,f,l]),h=he((m,...g)=>{const v=u(m);o==null||o(v,...g)});return{value:p,handleValueChange:h,timezone:f}},Ds=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=jn({name:t,state:"value",controlled:n,default:r??s.emptyValue}),c=he((u,...f)=>{l(u),i==null||i(u,...f)});return xu({timezone:e,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:s})},ay=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],ly=t=>{const{classes:e}=t;return We({root:["root"]},sy,e)};function cy(t,e){const n=Le(),r=jo(),o=ze({props:t,name:e});return G({disableFuture:!1,disablePast:!1},o,{minDate:gt(n,o.minDate,r.minDate),maxDate:gt(n,o.maxDate,r.maxDate)})}const uy=te("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Lo,boxSizing:"border-box"}),Du=x.forwardRef(function(e,n){const r=cy(e,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:g,autoFocus:v=!1,onMonthFocus:b,hasFocus:S,onFocusedViewChange:R,monthsPerRow:C=3,timezone:A,gridLabelId:T,slots:k,slotProps:P}=r,H=_e(r,ay),{value:W,handleValueChange:$,timezone:y}=Ds({name:"MonthCalendar",timezone:A,value:i,defaultValue:s,referenceDate:a,onChange:h,valueManager:Bt}),I=Vo(y),_=yr(),O=Le(),N=x.useMemo(()=>Bt.getInitialReferenceValue({value:W,utils:O,props:r,timezone:y,referenceDate:a,granularity:St.month}),[]),z=r,J=ly(z),ne=x.useMemo(()=>O.getMonth(I),[O,I]),V=x.useMemo(()=>W!=null?O.getMonth(W):null,[W,O]),[D,L]=x.useState(()=>V||O.getMonth(N)),[K,Q]=jn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:v??!1}),ee=he(B=>{Q(B),R&&R(B)}),U=x.useCallback(B=>{const de=O.startOfMonth(u&&O.isAfter(I,p)?I:p),ye=O.startOfMonth(c&&O.isBefore(I,f)?I:f),Te=O.startOfMonth(B);return O.isBefore(Te,de)||O.isAfter(Te,ye)?!0:m?m(Te):!1},[c,u,f,p,I,m,O]),Y=he((B,de)=>{if(g)return;const ye=O.setMonth(W??N,de);$(ye)}),Z=he(B=>{U(O.setMonth(W??N,B))||(L(B),ee(!0),b&&b(B))});x.useEffect(()=>{L(B=>V!==null&&B!==V?V:B)},[V]);const F=he((B,de)=>{switch(B.key){case"ArrowUp":Z((12+de-3)%12),B.preventDefault();break;case"ArrowDown":Z((12+de+3)%12),B.preventDefault();break;case"ArrowLeft":Z((12+de+(_?1:-1))%12),B.preventDefault();break;case"ArrowRight":Z((12+de+(_?-1:1))%12),B.preventDefault();break}}),X=he((B,de)=>{Z(de)}),fe=he((B,de)=>{D===de&&ee(!1)});return E.jsx(uy,G({ref:n,className:ce(J.root,o),ownerState:z,role:"radiogroup","aria-labelledby":T},H,{children:nm(O,W??N).map(B=>{const de=O.getMonth(B),ye=O.format(B,"monthShort"),Te=O.format(B,"month"),ie=de===V,pe=l||U(B);return E.jsx(iy,{selected:ie,value:de,onClick:Y,onKeyDown:F,autoFocus:K&&de===D,disabled:pe,tabIndex:de===D&&!pe?0:-1,onFocus:X,onBlur:fe,"aria-current":ne===de?"date":void 0,"aria-label":Te,monthsPerRow:C,slots:k,slotProps:P,children:ye},ye)})}))});process.env.NODE_ENV!=="production"&&(Du.propTypes={autoFocus:d.bool,classes:d.object,className:d.string,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,gridLabelId:d.string,hasFocus:d.bool,maxDate:d.object,minDate:d.object,monthsPerRow:d.oneOf([3,4]),onChange:d.func,onFocusedViewChange:d.func,onMonthFocus:d.func,readOnly:d.bool,referenceDate:d.object,shouldDisableMonth:d.func,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object});function dy(t){return Ue("MuiPickersYear",t)}const _r=Ye("MuiPickersYear",["root","yearButton","selected","disabled"]),fy=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],py=t=>{const{disabled:e,selected:n,classes:r}=t;return We({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},dy,r)},hy=te("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),gy=te("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${_r.disabled}`]:e.disabled},{[`&.${_r.selected}`]:e.selected}]})(({theme:t})=>G({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:$t(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${_r.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${_r.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),my=x.memo(function(e){const n=ze({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:h,"aria-current":m,slots:g,slotProps:v}=n,b=_e(n,fy),S=x.useRef(null),R=py(n);cn(()=>{var T;r&&((T=S.current)==null||T.focus())},[r]);const C=(g==null?void 0:g.yearButton)??gy,A=Qe({elementType:C,externalSlotProps:v==null?void 0:v.yearButton,additionalProps:{children:i,disabled:s,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":m,"aria-checked":a,onClick:T=>u(T,l),onKeyDown:T=>f(T,l),onFocus:T=>p(T,l),onBlur:T=>h(T,l)},ownerState:n,className:R.yearButton});return E.jsx(hy,G({className:ce(R.root,o),ownerState:n},b,{children:E.jsx(C,G({},A))}))});function vy(t){return Ue("MuiYearCalendar",t)}Ye("MuiYearCalendar",["root"]);const yy=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],by=t=>{const{classes:e}=t;return We({root:["root"]},vy,e)};function Ey(t,e){const n=Le(),r=jo(),o=ze({props:t,name:e});return G({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:gt(n,o.minDate,r.minDate),maxDate:gt(n,o.maxDate,r.maxDate)})}const Sy=te("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Lo,maxHeight:Av,boxSizing:"border-box",position:"relative"}),Tu=x.forwardRef(function(e,n){const r=Ey(e,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:h,onChange:m,readOnly:g,shouldDisableYear:v,onYearFocus:b,hasFocus:S,onFocusedViewChange:R,yearsOrder:C="asc",yearsPerRow:A,timezone:T,gridLabelId:k,slots:P,slotProps:H}=r,W=_e(r,yy),{value:$,handleValueChange:y,timezone:I}=Ds({name:"YearCalendar",timezone:T,value:s,defaultValue:a,referenceDate:l,onChange:m,valueManager:Bt}),_=Vo(I),O=yr(),N=Le(),z=x.useMemo(()=>Bt.getInitialReferenceValue({value:$,utils:N,props:r,timezone:I,referenceDate:l,granularity:St.year}),[]),J=r,ne=by(J),V=x.useMemo(()=>N.getYear(_),[N,_]),D=x.useMemo(()=>$!=null?N.getYear($):null,[$,N]),[L,K]=x.useState(()=>D||N.getYear(z)),[Q,ee]=jn({name:"YearCalendar",state:"hasFocus",controlled:S,default:o??!1}),U=he(re=>{ee(re),R&&R(re)}),Y=x.useCallback(re=>{if(f&&N.isBeforeYear(re,_)||u&&N.isAfterYear(re,_)||h&&N.isBeforeYear(re,h)||p&&N.isAfterYear(re,p))return!0;if(!v)return!1;const ge=N.startOfYear(re);return v(ge)},[u,f,p,h,_,v,N]),Z=he((re,ge)=>{if(g)return;const $e=N.setYear($??z,ge);y($e)}),F=he(re=>{Y(N.setYear($??z,re))||(K(re),U(!0),b==null||b(re))});x.useEffect(()=>{K(re=>D!==null&&re!==D?D:re)},[D]);const X=C!=="desc"?A*1:A*-1,fe=O&&C==="asc"||!O&&C==="desc"?-1:1,B=he((re,ge)=>{switch(re.key){case"ArrowUp":F(ge-X),re.preventDefault();break;case"ArrowDown":F(ge+X),re.preventDefault();break;case"ArrowLeft":F(ge-fe),re.preventDefault();break;case"ArrowRight":F(ge+fe),re.preventDefault();break}}),de=he((re,ge)=>{F(ge)}),ye=he((re,ge)=>{L===ge&&U(!1)}),Te=x.useRef(null),ie=vs(n,Te);x.useEffect(()=>{if(o||Te.current===null)return;const re=Te.current.querySelector('[tabindex="0"]');if(!re)return;const ge=re.offsetHeight,$e=re.offsetTop,yt=Te.current.clientHeight,ue=Te.current.scrollTop,Qo=$e+ge;ge>yt||$e<ue||(Te.current.scrollTop=Qo-yt/2-ge/2)},[o]);const pe=N.getYearRange([h,p]);return C==="desc"&&pe.reverse(),E.jsx(Sy,G({ref:ie,className:ce(ne.root,i),ownerState:J,role:"radiogroup","aria-labelledby":k},W,{children:pe.map(re=>{const ge=N.getYear(re),$e=ge===D,yt=c||Y(re);return E.jsx(my,{selected:$e,value:ge,onClick:Z,onKeyDown:B,autoFocus:Q&&ge===L,disabled:yt,tabIndex:ge===L&&!yt?0:-1,onFocus:de,onBlur:ye,"aria-current":V===ge?"date":void 0,yearsPerRow:A,slots:P,slotProps:H,children:N.format(re,"year")},N.format(re,"year"))})}))});process.env.NODE_ENV!=="production"&&(Tu.propTypes={autoFocus:d.bool,classes:d.object,className:d.string,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,gridLabelId:d.string,hasFocus:d.bool,maxDate:d.object,minDate:d.object,onChange:d.func,onFocusedViewChange:d.func,onYearFocus:d.func,readOnly:d.bool,referenceDate:d.object,shouldDisableYear:d.func,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object,yearsOrder:d.oneOf(["asc","desc"]),yearsPerRow:d.oneOf([3,4])});let fi=!1;function Au({onChange:t,onViewChange:e,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&(fi||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),fi=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),fi=!0)));const l=x.useRef(n),c=x.useRef(o),u=x.useRef(o.includes(n)?n:o[0]),[f,p]=jn({name:"useViews",state:"view",controlled:r,default:u.current}),h=x.useRef(i?f:null),[m,g]=jn({name:"useViews",state:"focusedView",controlled:s,default:h.current});x.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(k=>!o.includes(k)))&&(p(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,p,f,o]);const v=o.indexOf(f),b=o[v-1]??null,S=o[v+1]??null,R=he((k,P)=>{g(P?k:H=>k===H?null:H),a==null||a(k,P)}),C=he(k=>{R(k,!0),k!==f&&(p(k),e&&e(k))}),A=he(()=>{S&&C(S)}),T=he((k,P,H)=>{const W=P==="finish",$=H?o.indexOf(H)<o.length-1:!!S;if(t(k,W&&$?"partial":P,H),H&&H!==f){const I=o[o.indexOf(H)+1];I&&C(I)}else W&&A()});return{view:f,setView:C,focusedView:m,setFocusedView:R,nextView:S,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:A,setValueAndGoToNextView:T}}const Cy=t=>Ue("MuiPickersCalendarHeader",t),wy=Ye("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function xy(t){return Xe("MuiCircularProgress",t)}Je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const st=44,Fi=zt.keyframes`
177
177
  0% {
178
178
  transform: rotate(0deg);
179
179
  }
@@ -181,7 +181,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
181
181
  100% {
182
182
  transform: rotate(360deg);
183
183
  }
184
- `,$r=ct.keyframes`
184
+ `,Wi=zt.keyframes`
185
185
  0% {
186
186
  stroke-dasharray: 1px, 200px;
187
187
  stroke-dashoffset: 0;
@@ -196,21 +196,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
196
196
  stroke-dasharray: 1px, 200px;
197
197
  stroke-dashoffset: -126px;
198
198
  }
199
- `,Of=typeof Pr!="string"?ct.css`
200
- animation: ${Pr} 1.4s linear infinite;
201
- `:null,Df=typeof $r!="string"?ct.css`
202
- animation: ${$r} 1.4s ease-in-out infinite;
203
- `:null,kf=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${re(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${re(n)}`,o&&"circleDisableShrink"]};return Ue(a,Tf,t)},Rf=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${re(n.color)}`]]}})(qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Of||{animation:`${Pr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Mf=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Pf=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${re(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Df||{animation:`${$r} 1.4s ease-in-out infinite`}}]}))),$f=Z("circle",{name:"MuiCircularProgress",slot:"Track"})(qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Zr=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:m="indeterminate",...y}=r,g={...r,color:a,disableShrink:i,size:c,thickness:d,value:p,variant:m,enableTrackSlot:l},f=kf(g),v={},S={},T={};if(m==="determinate"){const k=2*Math.PI*((We-d)/2);v.strokeDasharray=k.toFixed(3),T["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*k).toFixed(3)}px`,S.transform="rotate(-90deg)"}return b.jsx(Rf,{className:ae(f.root,o),style:{width:c,height:c,...S,...u},ownerState:g,ref:n,role:"progressbar",...T,...y,children:b.jsxs(Mf,{className:f.svg,ownerState:g,viewBox:`${We/2} ${We/2} ${We} ${We}`,children:[l?b.jsx($f,{className:f.track,ownerState:g,cx:We,cy:We,r:(We-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(Pf,{className:f.circle,style:v,ownerState:g,cx:We,cy:We,r:(We-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Zr.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:zt(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function If(e){return _e("MuiIconButton",e)}const ra=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Nf=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e,l={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${re(r)}`,o&&`edge${re(o)}`,`size${re(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(l,If,t)},Af=Z(Lt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${re(n.color)}`],n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})(qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ra.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${ra.loading}`]:{color:"transparent"}}))),_f=Z("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"}}]})),eo=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:m=null,loadingIndicator:y,...g}=r,f=Xa(p),v=y??b.jsx(Zr,{"aria-labelledby":f,color:"inherit",size:16}),S={...r,edge:o,color:l,disabled:c,disableFocusRipple:u,loading:m,loadingIndicator:v,size:d},T=Nf(S);return b.jsxs(Af,{id:m?f:p,className:ae(T.root,i),centerRipple:!0,focusRipple:!u,disabled:c||m,ref:n,...g,ownerState:S,children:[typeof m=="boolean"&&b.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:b.jsx(_f,{className:T.loadingIndicator,ownerState:S,children:m&&v})}),a]})});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:zt(s.node,e=>x.Children.toArray(e.children).some(n=>x.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
204
- `)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const jf=De(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Vf=De(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Lf=De(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");De(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");De(b.jsxs(x.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");De(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");De(b.jsxs(x.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");De(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Bf(e){return $e("MuiPickersArrowSwitcher",e)}Ie("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const zf=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Ff=["ownerState"],Wf=["ownerState"],Uf=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Hf=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),oa=Z(eo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Yf=e=>{const{classes:t}=e;return Pe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Bf,t)},Gf=x.forwardRef(function(t,n){const r=cn(),o=Me({props:t,name:"MuiPickersArrowSwitcher"}),{children:a,className:i,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:g,onGoToPrevious:f,previousLabel:v,labelId:S}=o,T=Ce(o,zf),k=o,w=Yf(k),O={isDisabled:u,isHidden:d,goTo:p,label:m},D={isDisabled:y,isHidden:g,goTo:f,label:v},M=(l==null?void 0:l.previousIconButton)??oa,V=Ae({elementType:M,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:W({},k,{hidden:D.isHidden}),className:ae(w.button,w.previousIconButton)}),B=(l==null?void 0:l.nextIconButton)??oa,U=Ae({elementType:B,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:W({},k,{hidden:O.isHidden}),className:ae(w.button,w.nextIconButton)}),_=(l==null?void 0:l.leftArrowIcon)??Vf,h=Ae({elementType:_,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:w.leftArrowIcon}),P=Ce(h,Ff),E=(l==null?void 0:l.rightArrowIcon)??Lf,R=Ae({elementType:E,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:w.rightArrowIcon}),$=Ce(R,Wf);return b.jsxs(Uf,W({ref:n,className:ae(w.root,i),ownerState:k},T,{children:[b.jsx(M,W({},V,{children:r?b.jsx(E,W({},$)):b.jsx(_,W({},P))})),a?b.jsx(wt,{variant:"subtitle1",component:"span",id:S,children:a}):b.jsx(Hf,{className:w.spacer,ownerState:k}),b.jsx(B,W({},U,{children:r?b.jsx(_,W({},P)):b.jsx(E,W({},$))}))]}))});function qf(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Re();return x.useMemo(()=>{const a=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function Kf(e,{disablePast:t,minDate:n,timezone:r}){const o=Re();return x.useMemo(()=>{const a=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const Xf=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Jf=["ownerState"],Qf=e=>{const{classes:t}=e;return Pe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},wf,t)},Zf=Z("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),ep=Z("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>W({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),tp=Z("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),np=Z(eo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Ef.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),rp=Z(jf,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),xs=x.forwardRef(function(t,n){const r=Jn(),o=Re(),a=Me({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:m,minDate:y,onMonthChange:g,onViewChange:f,view:v,reduceAnimations:S,views:T,labelId:k,className:w,timezone:O,format:D=`${o.formats.month} ${o.formats.year}`}=a,M=Ce(a,Xf),V=a,B=Qf(a),U=(i==null?void 0:i.switchViewButton)??np,_=Ae({elementType:U,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:V,className:B.switchViewButton}),h=(i==null?void 0:i.switchViewIcon)??rp,P=Ae({elementType:h,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:V,className:B.switchViewIcon}),E=Ce(P,Jf),R=()=>g(o.addMonths(c,1),"left"),$=()=>g(o.addMonths(c,-1),"right"),L=qf(c,{disableFuture:d,maxDate:m,timezone:O}),J=Kf(c,{disablePast:p,minDate:y,timezone:O}),ee=()=>{if(!(T.length===1||!f||u))if(T.length===2)f(T.find(C=>C!==v)||T[0]);else{const C=T.indexOf(v)!==0?0:1;f(T[C])}};if(T.length===1&&T[0]==="year")return null;const N=o.formatByString(c,D);return b.jsxs(Zf,W({},M,{ownerState:V,className:ae(B.root,w),ref:n,children:[b.jsxs(ep,{role:"presentation",onClick:ee,ownerState:V,"aria-live":"polite",className:B.labelContainer,children:[b.jsx(is,{reduceAnimations:S,transKey:N,children:b.jsx(tp,{id:k,ownerState:V,className:B.label,children:N})}),T.length>1&&!u&&b.jsx(U,W({},_,{children:b.jsx(h,W({},E))}))]}),b.jsx(Kr,{in:v==="day",appear:!S,enter:!S,children:b.jsx(Gf,{slots:i,slotProps:l,onGoToPrevious:$,isPreviousDisabled:J,previousLabel:r.previousMonth,onGoToNext:R,isNextDisabled:L,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(xs.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const op=Z("div")({overflow:"hidden",width:Zn,maxHeight:Jr,display:"flex",flexDirection:"column",margin:"0 auto"}),ap=La({themeId:qn}),sp="@media (prefers-reduced-motion: reduce)",It=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),aa=It&&It[1]?parseInt(It[1],10):null,sa=It&&It[2]?parseInt(It[2],10):null,ip=aa&&aa<10||sa&&sa<13||!1,lp=()=>ap(sp,{defaultMatches:!1})||ip,cp=e=>$e("MuiDateCalendar",e);Ie("MuiDateCalendar",["root","viewTransitionContainer"]);const up=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],dp=e=>{const{classes:t}=e;return Pe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},cp,t)};function fp(e,t){const n=Re(),r=Kn(),o=lp(),a=Me({props:e,name:t});return W({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??"day",views:a.views??["year","day"],reduceAnimations:a.reduceAnimations??o,renderLoading:a.renderLoading??(()=>b.jsx("span",{children:"..."})),minDate:Ke(n,a.minDate,r.minDate),maxDate:Ke(n,a.maxDate,r.maxDate)})}const pp=Z(op,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Jr}),hp=Z(is,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cs=x.forwardRef(function(t,n){const r=Re(),o=mu(),a=fp(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:l,value:c,defaultValue:u,referenceDate:d,disableFuture:p,disablePast:m,onChange:y,onYearChange:g,onMonthChange:f,reduceAnimations:v,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:k,view:w,views:O,openTo:D,className:M,disabled:V,readOnly:B,minDate:U,maxDate:_,disableHighlightToday:h,focusedView:P,onFocusedViewChange:E,showDaysOutsideCurrentMonth:R,fixedWeekNumber:$,dayOfWeekFormatter:L,slots:J,slotProps:ee,loading:N,renderLoading:C,displayWeekNumber:j,yearsOrder:K,yearsPerRow:G,monthsPerRow:Q,timezone:F}=a,H=Ce(a,up),{value:q,handleValueChange:z,timezone:X}=Qr({name:"DateCalendar",timezone:F,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:lt}),{view:le,setView:A,focusedView:ie,setFocusedView:pe,goToNextView:xe,setValueAndGoToNextView:ne}=vs({view:w,views:O,openTo:D,onChange:z,onViewChange:l,autoFocus:i,focusedView:P,onFocusedViewChange:E}),{referenceDate:ce,calendarState:te,changeFocusedDay:de,changeMonth:ke,handleChangeMonth:Xe,isDateDisabled:se,onMonthSwitchingAnimationEnd:er}=Wu({value:q,referenceDate:d,reduceAnimations:v,onMonthChange:f,minDate:U,maxDate:_,shouldDisableDate:S,disablePast:m,disableFuture:p,timezone:X}),Bs=V&&q||U,zs=V&&q||_,ro=`${o}-grid-label`,tr=ie!==null,oo=(J==null?void 0:J.calendarHeader)??xs,Fs=Ae({elementType:oo,externalSlotProps:ee==null?void 0:ee.calendarHeader,additionalProps:{views:O,view:le,currentMonth:te.currentMonth,onViewChange:A,onMonthChange:(we,Ye)=>Xe({newMonth:we,direction:Ye}),minDate:Bs,maxDate:zs,disabled:V,disablePast:m,disableFuture:p,reduceAnimations:v,timezone:X,labelId:ro},ownerState:a}),Ws=ue(we=>{const Ye=r.startOfMonth(we),Ft=r.endOfMonth(we),nt=se(we)?tn({utils:r,date:we,minDate:r.isBefore(U,Ye)?Ye:U,maxDate:r.isAfter(_,Ft)?Ft:_,disablePast:m,disableFuture:p,isDateDisabled:se,timezone:X}):we;nt?(ne(nt,"finish"),f==null||f(Ye)):(xe(),ke(Ye)),de(nt,!0)}),Us=ue(we=>{const Ye=r.startOfYear(we),Ft=r.endOfYear(we),nt=se(we)?tn({utils:r,date:we,minDate:r.isBefore(U,Ye)?Ye:U,maxDate:r.isAfter(_,Ft)?Ft:_,disablePast:m,disableFuture:p,isDateDisabled:se,timezone:X}):we;nt?(ne(nt,"finish"),g==null||g(nt)):(xe(),ke(Ye)),de(nt,!0)}),Hs=ue(we=>z(we&&$n(r,we,q??ce),"finish",le));x.useEffect(()=>{q!=null&&r.isValid(q)&&ke(q)},[q]);const nr=a,ao=dp(nr),rr={disablePast:m,disableFuture:p,maxDate:_,minDate:U},or={disableHighlightToday:h,readOnly:B,disabled:V,timezone:X,gridLabelId:ro,slots:J,slotProps:ee},ar=x.useRef(le);x.useEffect(()=>{ar.current!==le&&(ie===ar.current&&pe(le,!0),ar.current=le)},[ie,pe,le]);const Ys=x.useMemo(()=>[q],[q]);return b.jsxs(pp,W({ref:n,className:ae(ao.root,M),ownerState:nr},H,{children:[b.jsx(oo,W({},Fs,{slots:J,slotProps:ee})),b.jsx(hp,{reduceAnimations:v,className:ao.viewTransitionContainer,transKey:le,ownerState:nr,children:b.jsxs("div",{children:[le==="year"&&b.jsx(bs,W({},rr,or,{value:q,onChange:Us,shouldDisableYear:k,hasFocus:tr,onFocusedViewChange:we=>pe("year",we),yearsOrder:K,yearsPerRow:G,referenceDate:ce})),le==="month"&&b.jsx(ys,W({},rr,or,{hasFocus:tr,className:M,value:q,onChange:Ws,shouldDisableMonth:T,onFocusedViewChange:we=>pe("month",we),monthsPerRow:Q,referenceDate:ce})),le==="day"&&b.jsx(Zd,W({},te,rr,or,{onMonthSwitchingAnimationEnd:er,onFocusedDayChange:de,reduceAnimations:v,selectedDays:Ys,onSelectedDaysChange:Hs,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:k,hasFocus:tr,onFocusedViewChange:we=>pe("day",we),showDaysOutsideCurrentMonth:R,fixedWeekNumber:$,dayOfWeekFormatter:L,displayWeekNumber:j,loading:N,renderLoading:C}))]})})]}))});process.env.NODE_ENV!=="production"&&(Cs.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const br=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:m,minDate:y,maxDate:g,shouldDisableDate:f,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:T,onMonthChange:k,monthsPerRow:w,onYearChange:O,yearsOrder:D,yearsPerRow:M,slots:V,slotProps:B,loading:U,renderLoading:_,disableHighlightToday:h,readOnly:P,disabled:E,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:$,sx:L,autoFocus:J,fixedWeekNumber:ee,displayWeekNumber:N,timezone:C})=>b.jsx(Cs,{view:e,onViewChange:t,views:n.filter(Ho),focusedView:r&&Ho(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:m,minDate:y,maxDate:g,shouldDisableDate:f,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:T,onMonthChange:k,monthsPerRow:w,onYearChange:O,yearsOrder:D,yearsPerRow:M,slots:V,slotProps:B,loading:U,renderLoading:_,disableHighlightToday:h,readOnly:P,disabled:E,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:$,sx:L,autoFocus:J,fixedWeekNumber:ee,displayWeekNumber:N,timezone:C}),ia=new Set;function mp(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
205
- `):e;ia.has(n)||(ia.add(n),t==="error"?console.error(n):console.warn(n))}const gp=({open:e,onOpen:t,onClose:n})=>{const r=x.useRef(typeof e=="boolean").current,[o,a]=x.useState(!1);x.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=x.useCallback(l=>{r||a(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},yp=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},bp=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},vp=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},xp=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:l,defaultValue:c,closeOnSelect:u=r==="desktop",timezone:d,referenceDate:p}=e,{current:m}=x.useRef(c),{current:y}=x.useRef(l!==void 0),[g,f]=x.useState(d);process.env.NODE_ENV!=="production"&&(x.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
206
- `))},[l]),x.useEffect(()=>{!y&&m!==c&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
207
- `))},[JSON.stringify(m)]));const v=Re(),S=Bt(),{isOpen:T,setIsOpen:k}=gp(e),{timezone:w,value:O,handleValueChange:D}=gs({timezone:d,value:l,defaultValue:m,referenceDate:p,onChange:i,valueManager:t}),[M,V]=x.useState(()=>{let z;return O!==void 0?z=O:m!==void 0?z=m:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),B=t.getTimezone(v,M.draft);g!==d&&(f(d),d&&B&&d!==B&&V(z=>W({},z,{draft:t.setTimezone(v,d,z.draft)})));const{getValidationErrorForNewValue:U}=zu({props:e,validator:o,timezone:w,value:M.draft,onError:e.onError}),_=ue(z=>{const X={action:z,dateState:M,hasChanged:ne=>!t.areValuesEqual(v,z.value,ne),isControlled:y,closeOnSelect:u},le=yp(X),A=bp(X),ie=vp(X);V(ne=>W({},ne,{draft:z.value,lastPublishedValue:le?z.value:ne.lastPublishedValue,lastCommittedValue:A?z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let pe=null;const xe=()=>(pe||(pe={validationError:z.name==="setValueFromField"?z.context.validationError:U(z.value)},z.name==="setValueFromShortcut"&&(pe.shortcut=z.shortcut)),pe);le&&D(z.value,xe()),A&&a&&a(z.value,xe()),ie&&k(!1)});if(M.lastControlledValue!==l){const z=t.areValuesEqual(v,M.draft,O);V(X=>W({},X,{lastControlledValue:l},z?{}:{lastCommittedValue:O,lastPublishedValue:O,draft:O,hasBeenModifiedSinceMount:!0}))}const h=ue(()=>{_({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),P=ue(()=>{_({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),E=ue(()=>{_({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),R=ue(()=>{_({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),$=ue(()=>{_({value:t.getTodayValue(v,w,n),name:"setValueFromAction",pickerAction:"today"})}),L=ue(z=>{z.preventDefault(),k(!0)}),J=ue(z=>{z==null||z.preventDefault(),k(!1)}),ee=ue((z,X="partial")=>_({name:"setValueFromView",value:z,selectionState:X})),N=ue((z,X,le)=>_({name:"setValueFromShortcut",value:z,changeImportance:X,shortcut:le})),C=ue((z,X)=>_({name:"setValueFromField",value:z,context:X})),j={onClear:h,onAccept:P,onDismiss:E,onCancel:R,onSetToday:$,onOpen:L,onClose:J},K={value:M.draft,onChange:C},G=x.useMemo(()=>t.cleanValue(v,M.draft),[v,t,M.draft]),Q={value:G,onChange:ee,onClose:J,open:T},H=W({},j,{value:G,onChange:ee,onSelectShortcut:N,isValid:z=>{const X=o({adapter:S,value:z,timezone:w,props:e});return!t.hasError(X)}}),q=x.useMemo(()=>({onOpen:L,onClose:J,open:T}),[T,J,L]);return{open:T,fieldProps:K,viewProps:Q,layoutProps:H,actions:j,contextValue:q}},Cp=["className","sx"],Sp=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:i,open:l,onClose:c}=t,{view:u,views:d,openTo:p,onViewChange:m,viewRenderers:y,timezone:g}=e,f=Ce(e,Cp),{view:v,setView:S,defaultView:T,focusedView:k,setFocusedView:w,setValueAndGoToNextView:O}=vs({view:u,views:d,openTo:p,onChange:i,onViewChange:m,autoFocus:r}),{hasUIView:D,viewModeLookup:M}=x.useMemo(()=>d.reduce((E,R)=>{let $;return y[R]!=null?$="UI":$="field",E.viewModeLookup[R]=$,$==="UI"&&(E.hasUIView=!0),E},{hasUIView:!1,viewModeLookup:{}}),[y,d]),V=x.useMemo(()=>d.reduce((E,R)=>y[R]!=null&&ju(R)?E+1:E,0),[y,d]),B=M[v],U=ue(()=>B==="UI"),[_,h]=x.useState(B==="UI"?v:null);return _!==v&&M[v]==="UI"&&h(v),St(()=>{B==="field"&&l&&(c(),setTimeout(()=>{var E,R;(E=a==null?void 0:a.current)==null||E.setSelectedSections(v),(R=a==null?void 0:a.current)==null||R.focusField(v)}))},[v]),St(()=>{if(!l)return;let E=v;B==="field"&&_!=null&&(E=_),E!==T&&M[E]==="UI"&&M[T]==="UI"&&(E=T),E!==v&&S(E),w(E,!0)},[l]),{hasUIView:D,shouldRestoreFocus:U,layoutProps:{views:d,view:_,onViewChange:S},renderCurrentView:()=>{if(_==null)return null;const E=y[_];if(E==null)return null;const R=W({},f,n,t,{views:d,timezone:g,onChange:O,view:_,onViewChange:S,focusedView:k,onFocusedViewChange:w,showViewSwitcher:V>1,timeViewsCount:V});return o?o(y,_,R):E(R)}}};function wp(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}function la(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Ep=(e,t)=>{const[n,r]=x.useState(la);return St(()=>{const a=()=>{r(la())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),wp(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Tp=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=Ep(n.views,o),i=cn();return{layoutProps:W({},n,t,{isLandscape:a,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Op(e){const{props:t,pickerValueResponse:n}=e;return x.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Dp=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:i,rendererInterceptor:l,fieldRef:c})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&mp(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=xp({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),d=Sp({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:c,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=Tp({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),m=Op({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:m}};function Ss(e){return $e("MuiPickersLayout",e)}const pt=Ie("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function ws(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],l=t[a];if(!l)r[a]=i||{};else if(!i)r[a]=l;else{r[a]={...l};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const u=c;r[a][u]=ws(i[u],l[u],n)}}}else a==="className"&&n&&t.className?r.className=ae(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function kp(e){return _e("MuiButton",e)}const ht=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Es=x.createContext({});process.env.NODE_ENV!=="production"&&(Es.displayName="ButtonGroupContext");const Ts=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ts.displayName="ButtonGroupButtonContext");const Rp=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:i,loadingPosition:l,classes:c}=e,u={root:["root",i&&"loading",a,`${a}${re(t)}`,`size${re(o)}`,`${a}Size${re(o)}`,`color${re(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${re(l)}`],startIcon:["icon","startIcon",`iconSize${re(o)}`],endIcon:["icon","endIcon",`iconSize${re(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ue(u,kp,c);return{...c,...d}},Os=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Mp=Z(Lt,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${re(n.color)}`],t[`size${re(n.size)}`],t[`${n.variant}Size${re(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ht.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ht.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ht.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ht.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(et()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ht.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ht.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ht.loading}`]:{color:"transparent"}}}]}})),Pp=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${re(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Os]})),$p=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${re(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Os]})),Ip=Z("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ca=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Zt=x.forwardRef(function(t,n){const r=x.useContext(Es),o=x.useContext(Ts),a=ws(r,t),i=Fe({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:v=!1,id:S,loading:T=null,loadingIndicator:k,loadingPosition:w="center",size:O="medium",startIcon:D,type:M,variant:V="text",...B}=i,U=Xa(S),_=k??b.jsx(Zr,{"aria-labelledby":U,color:"inherit",size:16}),h={...i,color:c,component:u,disabled:p,disableElevation:m,disableFocusRipple:y,fullWidth:v,loading:T,loadingIndicator:_,loadingPosition:w,size:O,type:M,variant:V},P=Rp(h),E=(D||T&&w==="start")&&b.jsx(Pp,{className:P.startIcon,ownerState:h,children:D||b.jsx(ca,{className:P.loadingIconPlaceholder,ownerState:h})}),R=(g||T&&w==="end")&&b.jsx($p,{className:P.endIcon,ownerState:h,children:g||b.jsx(ca,{className:P.loadingIconPlaceholder,ownerState:h})}),$=o||"",L=typeof T=="boolean"?b.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:T&&b.jsx(Ip,{className:P.loadingIndicator,ownerState:h,children:_})}):null;return b.jsxs(Mp,{ownerState:h,className:ae(r.className,P.root,d,$),component:u,disabled:p||T,focusRipple:!y,focusVisibleClassName:ae(P.focusVisible,f),ref:n,type:M,id:T?U:S,...B,classes:P,children:[E,w!=="end"&&L,l,w==="end"&&L,R]})});process.env.NODE_ENV!=="production"&&(Zt.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function Np(e){return _e("MuiDialogActions",e)}je("MuiDialogActions",["root","spacing"]);const Ap=e=>{const{classes:t,disableSpacing:n}=e;return Ue({root:["root",!n&&"spacing"]},Np,t)},_p=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ds=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=r,l={...r,disableSpacing:a},c=Ap(l);return b.jsx(_p,{className:ae(c.root,o),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ds.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const jp=["onAccept","onClear","onCancel","onSetToday","actions"];function ks(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Ce(e,jp),l=Jn();if(a==null||a.length===0)return null;const c=a==null?void 0:a.map(u=>{switch(u){case"clear":return b.jsx(Zt,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return b.jsx(Zt,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return b.jsx(Zt,{onClick:t,children:l.okButtonLabel},u);case"today":return b.jsx(Zt,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return b.jsx(Ds,W({},i,{children:c}))}process.env.NODE_ENV!=="production"&&(ks.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Nt=x.createContext({});process.env.NODE_ENV!=="production"&&(Nt.displayName="ListContext");function Vp(e){return _e("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const Lp=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ue({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Vp,t)},Bp=Z("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Rs=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,p=x.useMemo(()=>({dense:l}),[l]),m={...r,component:i,dense:l,disablePadding:c},y=Lp(m);return b.jsx(Nt.Provider,{value:p,children:b.jsxs(Bp,{as:i,className:ae(y.root,a),ref:n,ownerState:m,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ir(e){return typeof e=="string"}function zp(e){return _e("MuiListItem",e)}je("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Fp=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Wp(e){return _e("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Up=e=>{const{disableGutters:t,classes:n}=e;return Ue({root:["root",t&&"disableGutters"]},Wp,n)},Hp=Z("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),to=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,i=x.useContext(Nt),l={...r,disableGutters:i.disableGutters},c=Up(l);return b.jsx(Hp,{className:ae(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(to.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});to.muiName="ListItemSecondaryAction";const Yp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Gp=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return Ue({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},zp,n)},qp=Z("div",{name:"MuiListItem",slot:"Root",overridesResolver:Yp})(qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Fp.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Kp=Z("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ms=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...m}={},dense:y=!1,disableGutters:g=!1,disablePadding:f=!1,divider:v=!1,secondaryAction:S,slotProps:T={},slots:k={},...w}=r,O=x.useContext(Nt),D=x.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:g}),[o,O.dense,y,g]),M=x.useRef(null),V=x.Children.toArray(a),B=V.length&&Ka(V[V.length-1],["ListItemSecondaryAction"]),U={...r,alignItems:o,dense:D.dense,disableGutters:g,disablePadding:f,divider:v,hasSecondaryAction:B},_=Gp(U),h=jt(M,n),P=k.root||c.Root||qp,E=T.root||u.root||{},R={className:ae(_.root,E.className,i),...w};let $=l||"li";return B?($=!R.component&&!l?"div":$,d==="li"&&($==="li"?$="div":R.component==="li"&&(R.component="div")),b.jsx(Nt.Provider,{value:D,children:b.jsxs(Kp,{as:d,className:ae(_.container,p),ref:h,ownerState:U,...m,children:[b.jsx(P,{...E,...!Ir(P)&&{as:$,ownerState:{...U,...E.ownerState}},...R,children:V}),V.pop()]})})):b.jsx(Nt.Provider,{value:D,children:b.jsxs(P,{...E,as:$,ref:h,...!Ir(P)&&{ownerState:{...U,...E.ownerState}},...R,children:[V,S&&b.jsx(to,{children:S})]})})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:zt(s.node,e=>{const t=x.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Ka(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:ls,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Xp=De(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Jp(e){return _e("MuiChip",e)}const fe=je("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function Qp(e,t,n){return e===void 0||Ir(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Zp(e,t,n){return typeof e=="function"?e(t,n):e}function eh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function ua(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function th(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=ae(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const i=eh({...o,...r}),l=ua(r),c=ua(o),u=t(i),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...u,...n,...c,...l};return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function da(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...m}=a,y=d[e]||r,g=Zp(p[e],o),{props:{component:f,...v},internalRef:S}=th({className:n,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:g}),T=jt(S,g==null?void 0:g.ref,t.ref),k=e==="root"?f||u:f,w=Qp(y,{...e==="root"&&!u&&!d[e]&&i,...e!=="root"&&!d[e]&&i,...v,...k&&!l&&{as:k},...k&&l&&{component:k},ref:T},o);return[y,w]}const nh=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${re(r)}`,`color${re(o)}`,l&&"clickable",l&&`clickableColor${re(o)}`,i&&"deletable",i&&`deletableColor${re(o)}`,`${c}${re(o)}`],label:["label",`label${re(r)}`],avatar:["avatar",`avatar${re(r)}`,`avatarColor${re(o)}`],icon:["icon",`icon${re(r)}`,`iconColor${re(a)}`],deleteIcon:["deleteIcon",`deleteIcon${re(r)}`,`deleteIconColor${re(o)}`,`deleteIcon${re(c)}Color${re(o)}`]};return Ue(u,Jp,t)},rh=Z("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:c}=n;return[{[`& .${fe.avatar}`]:t.avatar},{[`& .${fe.avatar}`]:t[`avatar${re(l)}`]},{[`& .${fe.avatar}`]:t[`avatarColor${re(r)}`]},{[`& .${fe.icon}`]:t.icon},{[`& .${fe.icon}`]:t[`icon${re(l)}`]},{[`& .${fe.icon}`]:t[`iconColor${re(o)}`]},{[`& .${fe.deleteIcon}`]:t.deleteIcon},{[`& .${fe.deleteIcon}`]:t[`deleteIcon${re(l)}`]},{[`& .${fe.deleteIcon}`]:t[`deleteIconColor${re(r)}`]},{[`& .${fe.deleteIcon}`]:t[`deleteIcon${re(c)}Color${re(r)}`]},t.root,t[`size${re(l)}`],t[`color${re(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${re(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${re(r)}`],t[c],t[`${c}${re(r)}`]]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${fe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${fe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${fe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${fe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(et(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${fe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${fe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(et(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${fe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(et(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fe.avatar}`]:{marginLeft:4},[`& .${fe.avatarSmall}`]:{marginLeft:2},[`& .${fe.icon}`]:{marginLeft:4},[`& .${fe.iconSmall}`]:{marginLeft:2},[`& .${fe.deleteIcon}`]:{marginRight:5},[`& .${fe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(et()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${fe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),oh=Z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${re(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function fa(e){return e.key==="Backspace"||e.key==="Delete"}const Ps=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:m,onClick:y,onDelete:g,onKeyDown:f,onKeyUp:v,size:S="medium",variant:T="filled",tabIndex:k,skipFocusWhenDisabled:w=!1,slots:O={},slotProps:D={},...M}=r,V=x.useRef(null),B=jt(V,n),U=F=>{F.stopPropagation(),g&&g(F)},_=F=>{F.currentTarget===F.target&&fa(F)&&F.preventDefault(),f&&f(F)},h=F=>{F.currentTarget===F.target&&g&&fa(F)&&g(F),v&&v(F)},P=i!==!1&&y?!0:i,E=P||g?Lt:c||"div",R={...r,component:E,disabled:d,size:S,color:l,iconColor:x.isValidElement(p)&&p.props.color||l,onDelete:!!g,clickable:P,variant:T},$=nh(R),L=E===Lt?{component:c||"div",focusVisibleClassName:$.focusVisible,...g&&{disableRipple:!0}}:{};let J=null;g&&(J=u&&x.isValidElement(u)?x.cloneElement(u,{className:ae(u.props.className,$.deleteIcon),onClick:U}):b.jsx(Xp,{className:$.deleteIcon,onClick:U}));let ee=null;o&&x.isValidElement(o)&&(ee=x.cloneElement(o,{className:ae($.avatar,o.props.className)}));let N=null;p&&x.isValidElement(p)&&(N=x.cloneElement(p,{className:ae($.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ee&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const C={slots:O,slotProps:D},[j,K]=da("root",{elementType:rh,externalForwardedProps:{...C,...M},ownerState:R,shouldForwardComponentProp:!0,ref:B,className:ae($.root,a),additionalProps:{disabled:P&&d?!0:void 0,tabIndex:w&&d?-1:k,...L},getSlotProps:F=>({...F,onClick:H=>{var q;(q=F.onClick)==null||q.call(F,H),y==null||y(H)},onKeyDown:H=>{var q;(q=F.onKeyDown)==null||q.call(F,H),_(H)},onKeyUp:H=>{var q;(q=F.onKeyUp)==null||q.call(F,H),h(H)}})}),[G,Q]=da("label",{elementType:oh,externalForwardedProps:C,ownerState:R,className:$.label});return b.jsxs(j,{as:E,...K,children:[ee||N,b.jsx(G,{...Q,children:m}),J]})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={avatar:s.element,children:Wc,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,slotProps:s.shape({label:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({label:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});const ah=["items","changeImportance","isLandscape","onChange","isValid"],sh=["getValue"];function $s(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Ce(e,ah);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:c}=l,u=Ce(l,sh);const d=c({isValid:o});return W({},u,{label:u.label,onClick:()=>{r(d,n,u)},disabled:!o(d)})});return b.jsx(Rs,W({dense:!0,sx:[{maxHeight:Jr,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(l=>b.jsx(Ms,{children:b.jsx(Ps,W({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&($s.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ih(e){return e.view!==null}const lh=e=>{const{classes:t,isLandscape:n}=e;return Pe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Ss,t)},ch=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:i,views:l,onViewChange:c,value:u,onChange:d,onSelectShortcut:p,isValid:m,isLandscape:y,disabled:g,readOnly:f,children:v,slots:S,slotProps:T}=e,k=lh(e),w=(S==null?void 0:S.actionBar)??ks,O=Ae({elementType:w,externalSlotProps:T==null?void 0:T.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:k.actionBar,ownerState:W({},e,{wrapperVariant:t})}),D=b.jsx(w,W({},O)),M=S==null?void 0:S.toolbar,V=Ae({elementType:M,externalSlotProps:T==null?void 0:T.toolbar,additionalProps:{isLandscape:y,onChange:d,value:u,view:i,onViewChange:c,views:l,disabled:g,readOnly:f},className:k.toolbar,ownerState:W({},e,{wrapperVariant:t})}),B=ih(V)&&M?b.jsx(M,W({},V)):null,U=v,_=S==null?void 0:S.tabs,h=i&&_?b.jsx(_,W({view:i,onViewChange:c,className:k.tabs},T==null?void 0:T.tabs)):null,P=(S==null?void 0:S.shortcuts)??$s,E=Ae({elementType:P,externalSlotProps:T==null?void 0:T.shortcuts,additionalProps:{isValid:m,isLandscape:y,onChange:p},className:k.shortcuts,ownerState:{isValid:m,isLandscape:y,onChange:p,wrapperVariant:t}}),R=i&&P?b.jsx(P,W({},E)):null;return{toolbar:B,content:U,tabs:h,actionBar:D,shortcuts:R}},uh=e=>{const{isLandscape:t,classes:n}=e;return Pe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Ss,n)},dh=Z("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${pt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${pt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${pt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${pt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${pt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${pt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${pt.shortcuts}`]:{gridColumn:3}}}]}),fh=Z("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Is=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:a,tabs:i,actionBar:l,shortcuts:c}=ch(r),{sx:u,className:d,isLandscape:p,wrapperVariant:m}=r,y=uh(r);return b.jsxs(dh,{ref:n,sx:u,className:ae(y.root,d),ownerState:r,children:[p?c:o,p?o:c,b.jsx(fh,{className:y.contentWrapper,children:m==="desktop"?b.jsxs(x.Fragment,{children:[a,i]}):b.jsxs(x.Fragment,{children:[i,a]})}),l]})});process.env.NODE_ENV!=="production"&&(Is.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const ph=["props","ref"],hh=Z(Is)(({theme:e})=>({overflow:"hidden",minWidth:Zn,backgroundColor:(e.vars||e).palette.background.paper})),mh=e=>{let{props:t,ref:n}=e,r=Ce(e,ph);const{localeText:o,slots:a,slotProps:i,className:l,sx:c,displayStaticWrapperAs:u,autoFocus:d}=t,{layoutProps:p,renderCurrentView:m}=Dp(W({},r,{props:t,autoFocusView:d??!1,additionalViewProps:{},wrapperVariant:u})),y=(a==null?void 0:a.layout)??hh;return{renderPicker:()=>{var f,v,S;return b.jsx(Za,{localeText:o,children:b.jsx(y,W({},p,i==null?void 0:i.layout,{slots:a,slotProps:i,sx:[...Array.isArray(c)?c:[c],...Array.isArray((f=i==null?void 0:i.layout)==null?void 0:f.sx)?i.layout.sx:[(v=i==null?void 0:i.layout)==null?void 0:v.sx]],className:ae(l,(S=i==null?void 0:i.layout)==null?void 0:S.className),ref:n,children:m()}))})}}},Ns=x.forwardRef(function(t,n){var c;const r=Au(t,"MuiStaticDatePicker"),o=r.displayStaticWrapperAs??"mobile",a=W({day:br,month:br,year:br},r.viewRenderers),i=W({},r,{viewRenderers:a,displayStaticWrapperAs:o,yearsPerRow:r.yearsPerRow??(o==="mobile"?3:4),slotProps:W({},r.slotProps,{toolbar:W({hidden:o==="desktop"},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=mh({props:i,valueManager:lt,valueType:"date",validator:Hr,ref:n});return l()});Ns.propTypes={autoFocus:s.bool,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayStaticWrapperAs:s.oneOf(["desktop","mobile"]),displayWeekNumber:s.bool,fixedWeekNumber:s.number,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const gh=({anchorEl:e,onClose:t,onDateSelect:n})=>b.jsx(Y.Popover,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:b.jsx(Ns,{displayStaticWrapperAs:"desktop",value:null,onChange:n})}),As=De(b.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),An=De(b.jsx("path",{fillRule:"evenodd",d:"m9 17 3-2.94c-.39-.04-.68-.06-1-.06-2.67 0-8 1.34-8 4v2h9zm2-5c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m4.47 8.5L12 17l1.4-1.41 2.07 2.08 5.13-5.17 1.4 1.41z"}),"HowToReg"),no=De(b.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat"),yh=({courseCode:e,courseColor:t,requiresRegistration:n,recurring:r,theme:o})=>b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,backgroundColor:`${t}30`,border:`1px solid ${t}50`,borderLeft:`3px solid ${t}`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 1px 2px ${o.palette.action.hover}`,"&:hover":{backgroundColor:`${t}40`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 2px 4px ${o.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Typography,{variant:"caption",sx:{color:o.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:e}),(n||r)&&b.jsxs(Y.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[n&&b.jsx(An,{sx:{fontSize:10,color:o.palette.warning.main}}),r&&b.jsx(no,{sx:{fontSize:10,color:t}})]})]}),bh=({eventInfo:e,courseCode:t,type:n,courseColor:r,requiresRegistration:o,recurring:a,eventTypeIcons:i,theme:l})=>{const c=new Date(e.event.start).getTime(),p=(new Date(e.event.end).getTime()-c)/(1e3*60),m=(y,g)=>{switch(y){case"lecture":return`linear-gradient(45deg, ${g}20, ${g}30)`;case"exercise":return`linear-gradient(135deg, ${g}20, ${g}30)`;case"exam":return`linear-gradient(90deg, ${g}30, ${g}40)`;case"deadline":return`linear-gradient(180deg, ${g}20, ${g}30)`;default:return`linear-gradient(90deg, ${g}20, ${g}25)`}};return p<30?b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,background:m(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 1px 2px ${l.palette.action.hover}`,"&:hover":{background:m(n,r).replace(/[0-9]+/g,y=>(Number(y)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Typography,{variant:"caption",sx:{color:l.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:t}),(o||a)&&b.jsxs(Y.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[o&&b.jsx(An,{sx:{fontSize:10,color:l.palette.warning.main}}),a&&b.jsx(no,{sx:{fontSize:10,color:r}})]})]}):b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"flex-start",p:.75,height:"100%",position:"relative",gap:.5,background:m(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 1px 2px ${l.palette.action.hover}`,"&:hover":{background:m(n,r).replace(/[0-9]+/g,y=>(Number(y)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Box,{component:"img",src:i[n],alt:n,sx:{width:14,height:14,filter:`drop-shadow(0 0 1px ${r})`,flexShrink:0,mt:.25}}),b.jsxs(Y.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[b.jsx(Y.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1},noWrap:!0,children:t}),b.jsx(Y.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.primary,fontWeight:500,fontSize:p<45?"0.7rem":"inherit"},noWrap:!0,children:e.event.title}),p>=45&&b.jsx(Y.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.secondary,fontSize:"0.7rem"},noWrap:!0,children:e.timeText})]})]})},vh=({eventInfo:e,courseCode:t,type:n,courseColor:r,location:o,requiresRegistration:a,recurring:i,eventTypeIcons:l,theme:c})=>{const u=new Date(e.event.start).getTime(),m=(new Date(e.event.end).getTime()-u)/(1e3*60),y=(g,f)=>{switch(g){case"lecture":return`linear-gradient(45deg, ${f}20, ${f}30)`;case"exercise":return`linear-gradient(135deg, ${f}20, ${f}30)`;case"exam":return`linear-gradient(90deg, ${f}30, ${f}40)`;case"deadline":return`linear-gradient(180deg, ${f}20, ${f}30)`;default:return`linear-gradient(90deg, ${f}20, ${f}25)`}};return m<30?b.jsx(yh,{eventInfo:e,courseCode:t,type:n,courseColor:r,requiresRegistration:a,recurring:i,eventTypeIcons:l,theme:c}):b.jsxs(Y.Box,{sx:{display:"flex",flexDirection:"column",p:m<45?.75:1,height:"100%",position:"relative",gap:.5,background:y(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${c.palette.background.paper}, 0 1px 2px ${c.palette.action.hover}`,"&:hover":{background:y(n,r).replace(/[0-9]+/g,g=>(Number(g)+10).toString()),boxShadow:`0 0 0 1px ${c.palette.background.paper}, 0 2px 4px ${c.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Box,{sx:{display:"flex",alignItems:"flex-start",gap:m<45?.5:.75},children:b.jsxs(Y.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[b.jsxs(Y.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1,fontSize:m<45?"0.7rem":"0.75rem"},noWrap:!0,children:[t," • ",n]}),b.jsx(Y.Typography,{variant:m<45?"caption":"body2",sx:{lineHeight:1.2,color:c.palette.text.primary,fontWeight:500},noWrap:!0,children:e.event.title}),m>=45&&b.jsx(Y.Typography,{variant:"caption",sx:{lineHeight:1,color:c.palette.text.secondary},noWrap:!0,children:e.timeText})]})}),m>=60&&o&&b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",gap:.5,mt:"auto"},children:[b.jsx(As,{sx:{fontSize:14,color:r}}),b.jsx(Y.Typography,{variant:"caption",sx:{color:c.palette.text.secondary},noWrap:!0,children:o})]})]})},xh=De(b.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),Ch=De(b.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Sh=({description:e,location:t,courseColor:n,maxParticipants:r,requiresRegistration:o,teachers:a,type:i,recurring:l,onAddToCalendar:c,onRegister:u,theme:d})=>b.jsxs(Y.Stack,{spacing:2,children:[e&&b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Description"}),b.jsx(Y.Typography,{variant:"body2",sx:{backgroundColor:`${n}08`,p:1.5,borderRadius:1,border:`1px solid ${n}20`},children:e})]}),t&&b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Location"}),b.jsxs(Y.Box,{sx:{p:1.5,backgroundColor:`${n}08`,borderRadius:1,border:`1px solid ${n}20`,display:"flex",alignItems:"center",gap:1},children:[b.jsx(As,{sx:{color:n}}),b.jsx(Y.Typography,{variant:"body2",children:t})]})]}),(r||o)&&b.jsxs(Y.Box,{sx:{p:1.5,backgroundColor:d.palette.warning.light+"20",borderRadius:1,border:`1px solid ${d.palette.warning.light}40`},children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,color:"warning.dark",children:"Registration Details"}),b.jsxs(Y.Stack,{spacing:1,children:[r&&b.jsxs(Y.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(xh,{fontSize:"small"}),"Available spots: ",r]}),o&&b.jsxs(Y.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1,color:d.palette.warning.dark},children:[b.jsx(An,{fontSize:"small"}),"Registration required"]})]})]}),b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Event Details"}),b.jsxs(Y.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[b.jsx(Y.Chip,{label:i,size:"small",variant:"outlined",sx:{borderColor:n,color:n}}),l&&b.jsx(Y.Chip,{icon:b.jsx(no,{}),label:"Recurring",size:"small",variant:"outlined",sx:{borderColor:n,color:n}})]})]}),a&&a.length>0&&b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Teachers"}),b.jsx(Y.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:a.map((p,m)=>b.jsx(Y.Chip,{label:p.name,size:"small",variant:"outlined",sx:{borderColor:`${n}40`,"&:hover":{borderColor:n}}},m))})]}),b.jsx(Y.Divider,{}),b.jsxs(Y.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[b.jsx(Y.Button,{size:"small",startIcon:b.jsx(Ch,{}),onClick:c,variant:"outlined",sx:{borderColor:`${n}60`,color:n,"&:hover":{borderColor:n,backgroundColor:`${n}10`}},children:"Add to Calendar"}),o&&b.jsx(Y.Button,{size:"small",startIcon:b.jsx(An,{}),onClick:u,variant:"contained",sx:{backgroundColor:n,"&:hover":{backgroundColor:`${n}dd`}},children:"Register"})]})]}),wh=({open:e,anchorEl:t,onClose:n,eventInfo:r,courseColor:o,type:a,eventTypeIcons:i,courseTitle:l,courseCode:c,description:u,location:d,maxParticipants:p,requiresRegistration:m,teachers:y,recurring:g,theme:f})=>{const v=T=>{T.stopPropagation()},S=T=>{T.stopPropagation()};return b.jsx(Y.Popover,{open:e,anchorEl:t,onClose:n,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},TransitionComponent:Y.Fade,TransitionProps:{timeout:150},sx:{"& .MuiPopover-paper":{overflow:"visible",mt:1,"&:before":{content:'""',display:"block",position:"absolute",top:"50%",left:-6,width:12,height:12,bgcolor:"background.paper",transform:"rotate(45deg) translateY(-50%)",zIndex:0,borderLeft:`1px solid ${f.palette.divider}`,borderBottom:`1px solid ${f.palette.divider}`}}},children:b.jsx(Y.Paper,{elevation:4,sx:{width:{xs:"90vw",sm:400},maxWidth:400,position:"relative",overflow:"hidden",borderLeft:`4px solid ${o}`},children:b.jsxs(Y.Stack,{spacing:2,sx:{p:2},children:[b.jsxs(Y.Box,{sx:{display:"flex",gap:1.5},children:[b.jsx(Y.Box,{component:"img",src:i[a],alt:a,sx:{width:32,height:32,filter:`drop-shadow(0 0 1px ${o})`,mt:.5}}),b.jsxs(Y.Box,{sx:{flex:1},children:[b.jsx(Y.Typography,{variant:"h6",sx:{lineHeight:1.2,mb:.5},children:r.event.title}),b.jsxs(Y.Typography,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[l," (",c,")"]}),b.jsx(Y.Typography,{variant:"body2",color:"text.secondary",children:r.timeText})]})]}),b.jsx(Y.Divider,{}),b.jsx(Sh,{description:u,location:d,courseColor:o,maxParticipants:p,requiresRegistration:m,teachers:y,type:a,recurring:g,onAddToCalendar:v,onRegister:S,theme:f})]})})})},pa={lecture:"/static/images/icons/brain.svg",exercise:"/static/images/icons/weight.svg",exam:"/static/images/icons/code.svg",deadline:"/static/images/icons/dna.svg",other:"/static/images/icons/atom.svg",meeting:"/static/images/icons/brain.svg",maintenance:"/static/images/icons/weight.svg"},Eh=({eventInfo:e})=>{var O,D;const t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm")),[r,o]=oe.useState(null),a=e.event.extendedProps.courseCode||"",i=e.event.extendedProps.type,l=e.event.backgroundColor||t.palette.primary.main,{courseTitle:c,description:u,location:d,teachers:p,maxParticipants:m,requiresRegistration:y,recurring:g}=e.event.extendedProps,f=oe.useCallback(M=>{M.stopPropagation(),o(M.currentTarget)},[]),v=oe.useCallback(()=>{o(null)},[]),S={eventInfo:e,courseCode:a,type:i,courseColor:l,location:d,requiresRegistration:y,recurring:g,eventTypeIcons:pa,theme:t,courseTitle:c,maxParticipants:m},T=Number(((O=e.el)==null?void 0:O.style.getPropertyValue("--event-group-index"))||"0"),k=Number(((D=e.el)==null?void 0:D.style.getPropertyValue("--event-group-size"))||"1"),w=(M,V)=>V<=1?1:M%2===0?2:0;return b.jsxs(b.Fragment,{children:[b.jsx(Y.Box,{onClick:f,sx:{height:"100%",transition:"all 0.2s ease-in-out",position:"relative",overflow:"hidden",cursor:"pointer",m:"1px",ml:T>0?`${T*4}px`:"1px",width:k>1?`calc(100% - ${T*4}px)`:"auto",zIndex:w(T,k),"&:hover":{transform:"scale(1.01)",zIndex:10}},children:n?b.jsx(bh,{...S}):b.jsx(vh,{...S})}),b.jsx(wh,{open:!!r,anchorEl:r,onClose:v,eventInfo:e,courseColor:l,type:i,eventTypeIcons:pa,courseTitle:c,courseCode:a,description:u,location:d,maxParticipants:m,requiresRegistration:y,teachers:p,recurring:g,theme:t})]})},Th=({calendarRef:e,calendarView:t,events:n,onDatesSet:r,eventDidMount:o,showAllDaySlot:a,onMouseDown:i,onMouseMove:l,onMouseUp:c,onMouseLeave:u,density:d="comfortable"})=>{const p=Y.useTheme(),m=f=>{const v=f.view.calendar.getEvents().filter(k=>{var w,O,D,M;return((w=k.start)==null?void 0:w.getTime())===((O=f.event.start)==null?void 0:O.getTime())&&((D=k.end)==null?void 0:D.getTime())===((M=f.event.end)==null?void 0:M.getTime())&&k.allDay===f.event.allDay});v.sort((k,w)=>{const O=k.extendedProps.courseCode||"",D=w.extendedProps.courseCode||"";return O===D?v.indexOf(k)-v.indexOf(w):O.localeCompare(D)});const S=v.length,T=v.findIndex(k=>k.id===f.event.id);f.el.style.setProperty("--event-group-index",JSON.stringify(T)),f.el.style.setProperty("--event-group-size",JSON.stringify(S)),f.el.style.pointerEvents="all",o&&o(f)},g={compact:{margin:"0 !important",slotHeight:"2.5rem !important",minEventHeight:18,spacing:1},comfortable:{margin:"0 !important",slotHeight:"3rem !important",minEventHeight:20,spacing:2},spacious:{margin:"0 !important",slotHeight:"3.5rem !important",minEventHeight:24,spacing:3}}[d];return b.jsx(Y.Box,{onMouseDown:i,onMouseMove:l,onMouseUp:c,onMouseLeave:u,sx:{flex:1,minHeight:0,overflow:"hidden","& ::-webkit-scrollbar":{width:"8px",height:"8px"},"& ::-webkit-scrollbar-track":{background:p.palette.background.default},"& ::-webkit-scrollbar-thumb":{backgroundColor:p.palette.divider,borderRadius:"4px","&:hover":{backgroundColor:p.palette.action.hover}},"& .fc-scroller-liquid-absolute":{cursor:"grab","&:active":{cursor:"grabbing"}},".fc-timegrid-event-harness":{margin:g.margin,pointerEvents:"all !important","&:not(:first-of-type)":{borderTop:`2px solid ${p.palette.background.paper}`,marginTop:`-${2+g.spacing}px !important`,paddingTop:`${g.spacing}px !important`,"&::before":{content:'""',position:"absolute",top:-1,left:0,right:0,height:2,background:p.palette.background.paper,zIndex:1}},"&:hover":{zIndex:"5 !important","& + .fc-timegrid-event-harness":{zIndex:"4 !important"}}},".fc-timegrid-event":{margin:"0 !important",padding:"0 !important",background:"none !important",borderRadius:"0 !important",border:"none !important"},".fc-event":{background:"none !important",border:"none !important"},".fc-timegrid-col":{borderRight:`1px solid ${p.palette.divider}40 !important`},".fc-timegrid-slot":{height:g.slotHeight,borderColor:`${p.palette.divider}30 !important`,"&:nth-of-type(4n+1)":{borderTop:`2px solid ${p.palette.divider}50 !important`},"&:nth-of-type(2n)":{backgroundColor:`${p.palette.action.hover}05`}},".fc-timegrid-slot-minor":{borderColor:`${p.palette.divider}20 !important`},".fc-day-sun, .fc-day-sat":{backgroundColor:`${p.palette.action.hover}15 !important`},".fc-day-today":{backgroundColor:`${p.palette.primary.main}08 !important`,borderLeft:`2px solid ${p.palette.primary.main}40 !important`,borderRight:`2px solid ${p.palette.primary.main}40 !important`},".fc-col-header-cell":{padding:"8px 4px",backgroundColor:p.palette.background.default,borderBottom:`2px solid ${p.palette.divider} !important`,"&.fc-day-today":{backgroundColor:`${p.palette.primary.main}15 !important`,fontWeight:600}},".fc-timegrid-col-bg":{background:`repeating-linear-gradient(
199
+ `,Dy=typeof Fi!="string"?zt.css`
200
+ animation: ${Fi} 1.4s linear infinite;
201
+ `:null,Ty=typeof Wi!="string"?zt.css`
202
+ animation: ${Wi} 1.4s ease-in-out infinite;
203
+ `:null,Ay=t=>{const{classes:e,variant:n,color:r,disableShrink:o}=t,i={root:["root",n,`color${se(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${se(n)}`,o&&"circleDisableShrink"]};return ct(i,xy,e)},Ry=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${se(n.color)}`]]}})(ht(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Dy||{animation:`${Fi} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Ct()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),_y=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ky=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${se(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(ht(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:Ty||{animation:`${Wi} 1.4s ease-in-out infinite`}}]}))),My=te("circle",{name:"MuiCircularProgress",slot:"Track"})(ht(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),Ts=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:f=0,variant:p="indeterminate",...h}=r,m={...r,color:i,disableShrink:s,size:l,thickness:u,value:f,variant:p,enableTrackSlot:a},g=Ay(m),v={},b={},S={};if(p==="determinate"){const R=2*Math.PI*((st-u)/2);v.strokeDasharray=R.toFixed(3),S["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*R).toFixed(3)}px`,b.transform="rotate(-90deg)"}return E.jsx(Ry,{className:ce(g.root,o),style:{width:l,height:l,...b,...c},ownerState:m,ref:n,role:"progressbar",...S,...h,children:E.jsxs(_y,{className:g.svg,ownerState:m,viewBox:`${st/2} ${st/2} ${st} ${st}`,children:[a?E.jsx(My,{className:g.track,ownerState:m,cx:st,cy:st,r:(st-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,E.jsx(ky,{className:g.circle,style:v,ownerState:m,cx:st,cy:st,r:(st-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Ts.propTypes={classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","primary","secondary","error","info","success","warning"]),d.string]),disableShrink:zn(d.bool,t=>t.disableShrink&&t.variant&&t.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:d.bool,size:d.oneOfType([d.number,d.string]),style:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),thickness:d.number,value:d.number,variant:d.oneOf(["determinate","indeterminate"])});function Oy(t){return Xe("MuiIconButton",t)}const cl=Je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Iy=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i,loading:s}=t,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${se(r)}`,o&&`edge${se(o)}`,`size${se(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ct(a,Oy,e)},Py=te(Vn,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${se(n.color)}`],n.edge&&e[`edge${se(n.edge)}`],e[`size${se(n.size)}`]]}})(ht(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).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}}]})),ht(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Ct()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Ct()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${cl.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${cl.loading}`]:{color:"transparent"}}))),Ny=te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),As=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:p=null,loadingIndicator:h,...m}=r,g=ou(f),v=h??E.jsx(Ts,{"aria-labelledby":g,color:"inherit",size:16}),b={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:p,loadingIndicator:v,size:u},S=Iy(b);return E.jsxs(Py,{id:p?g:f,className:ce(S.root,s),centerRipple:!0,focusRipple:!c,disabled:l||p,ref:n,...m,ownerState:b,children:[typeof p=="boolean"&&E.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:E.jsx(Ny,{className:S.loadingIndicator,ownerState:b,children:p&&v})}),i]})});process.env.NODE_ENV!=="production"&&(As.propTypes={children:zn(d.node,t=>x.Children.toArray(t.children).some(n=>x.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
204
+ `)):null),classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),d.string]),disabled:d.bool,disableFocusRipple:d.bool,disableRipple:d.bool,edge:d.oneOf(["end","start",!1]),id:d.string,loading:d.bool,loadingIndicator:d.node,size:d.oneOfType([d.oneOf(["small","medium","large"]),d.string]),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const jy=Ve(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Vy=Ve(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),$y=Ve(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");Ve(E.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Ve(E.jsxs(x.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ve(E.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Ve(E.jsxs(x.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");Ve(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function By(t){return Ue("MuiPickersArrowSwitcher",t)}Ye("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Ly=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Hy=["ownerState"],zy=["ownerState"],Fy=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),Wy=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),ul=te(As,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Uy=t=>{const{classes:e}=t;return We({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},By,e)},Gy=x.forwardRef(function(e,n){const r=yr(),o=ze({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:v,labelId:b}=o,S=_e(o,Ly),R=o,C=Uy(R),A={isDisabled:c,isHidden:u,goTo:f,label:p},T={isDisabled:h,isHidden:m,goTo:g,label:v},k=(a==null?void 0:a.previousIconButton)??ul,P=Qe({elementType:k,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:G({},R,{hidden:T.isHidden}),className:ce(C.button,C.previousIconButton)}),H=(a==null?void 0:a.nextIconButton)??ul,W=Qe({elementType:H,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:G({},R,{hidden:A.isHidden}),className:ce(C.button,C.nextIconButton)}),$=(a==null?void 0:a.leftArrowIcon)??Vy,y=Qe({elementType:$,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:R,className:C.leftArrowIcon}),I=_e(y,Hy),_=(a==null?void 0:a.rightArrowIcon)??$y,O=Qe({elementType:_,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:R,className:C.rightArrowIcon}),N=_e(O,zy);return E.jsxs(Fy,G({ref:n,className:ce(C.root,s),ownerState:R},S,{children:[E.jsx(k,G({},P,{children:r?E.jsx(_,G({},N)):E.jsx($,G({},I))})),i?E.jsx(pn,{variant:"subtitle1",component:"span",id:b,children:i}):E.jsx(Wy,{className:C.spacer,ownerState:R}),E.jsx(H,G({},W,{children:r?E.jsx($,G({},I)):E.jsx(_,G({},N))}))]}))});function Yy(t,{disableFuture:e,maxDate:n,timezone:r}){const o=Le();return x.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isBefore(i,n)?i:n);return!o.isAfter(s,t)},[e,n,t,o,r])}function qy(t,{disablePast:e,minDate:n,timezone:r}){const o=Le();return x.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isAfter(i,n)?i:n);return!o.isBefore(s,t)},[e,n,t,o,r])}const Qy=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Zy=["ownerState"],Ky=t=>{const{classes:e}=t;return We({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Cy,e)},Xy=te("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Jy=te("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>G({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),eb=te("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),tb=te(As,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${wy.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),nb=te(jy,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),Ru=x.forwardRef(function(e,n){const r=$o(),o=Le(),i=ze({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:v,reduceAnimations:b,views:S,labelId:R,className:C,timezone:A,format:T=`${o.formats.month} ${o.formats.year}`}=i,k=_e(i,Qy),P=i,H=Ky(i),W=(s==null?void 0:s.switchViewButton)??tb,$=Qe({elementType:W,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:P,className:H.switchViewButton}),y=(s==null?void 0:s.switchViewIcon)??nb,I=Qe({elementType:y,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:P,className:H.switchViewIcon}),_=_e(I,Zy),O=()=>m(o.addMonths(l,1),"left"),N=()=>m(o.addMonths(l,-1),"right"),z=Yy(l,{disableFuture:u,maxDate:p,timezone:A}),J=qy(l,{disablePast:f,minDate:h,timezone:A}),ne=()=>{if(!(S.length===1||!g||c))if(S.length===2)g(S.find(D=>D!==v)||S[0]);else{const D=S.indexOf(v)!==0?0:1;g(S[D])}};if(S.length===1&&S[0]==="year")return null;const V=o.formatByString(l,T);return E.jsxs(Xy,G({},k,{ownerState:P,className:ce(H.root,C),ref:n,children:[E.jsxs(Jy,{role:"presentation",onClick:ne,ownerState:P,"aria-live":"polite",className:H.labelContainer,children:[E.jsx(gu,{reduceAnimations:b,transKey:V,children:E.jsx(eb,{id:R,ownerState:P,className:H.label,children:V})}),S.length>1&&!c&&E.jsx(W,G({},$,{children:E.jsx(y,G({},_))}))]}),E.jsx(Cs,{in:v==="day",appear:!b,enter:!b,children:E.jsx(Gy,{slots:s,slotProps:a,onGoToPrevious:N,isPreviousDisabled:J,previousLabel:r.previousMonth,onGoToNext:O,isNextDisabled:z,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Ru.propTypes={classes:d.object,className:d.string,currentMonth:d.object.isRequired,disabled:d.bool,disableFuture:d.bool,disablePast:d.bool,format:d.string,labelId:d.string,maxDate:d.object.isRequired,minDate:d.object.isRequired,onMonthChange:d.func.isRequired,onViewChange:d.func,reduceAnimations:d.bool.isRequired,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string.isRequired,view:d.oneOf(["day","month","year"]).isRequired,views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired).isRequired});const rb=te("div")({overflow:"hidden",width:Lo,maxHeight:xs,display:"flex",flexDirection:"column",margin:"0 auto"}),ob=Yc({themeId:No}),ib="@media (prefers-reduced-motion: reduce)",Rn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),dl=Rn&&Rn[1]?parseInt(Rn[1],10):null,fl=Rn&&Rn[2]?parseInt(Rn[2],10):null,sb=dl&&dl<10||fl&&fl<13||!1,ab=()=>ob(ib,{defaultMatches:!1})||sb,lb=t=>Ue("MuiDateCalendar",t);Ye("MuiDateCalendar",["root","viewTransitionContainer"]);const cb=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],ub=t=>{const{classes:e}=t;return We({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},lb,e)};function db(t,e){const n=Le(),r=jo(),o=ab(),i=ze({props:t,name:e});return G({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:gt(n,i.minDate,r.minDate),maxDate:gt(n,i.maxDate,r.maxDate)})}const fb=te(rb,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:xs}),pb=te(gu,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),_u=x.forwardRef(function(e,n){const r=Le(),o=gm(),i=db(e,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:f,disablePast:p,onChange:h,onYearChange:m,onMonthChange:g,reduceAnimations:v,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:R,view:C,views:A,openTo:T,className:k,disabled:P,readOnly:H,minDate:W,maxDate:$,disableHighlightToday:y,focusedView:I,onFocusedViewChange:_,showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:z,slots:J,slotProps:ne,loading:V,renderLoading:D,displayWeekNumber:L,yearsOrder:K,yearsPerRow:Q,monthsPerRow:ee,timezone:U}=i,Y=_e(i,cb),{value:Z,handleValueChange:F,timezone:X}=Ds({name:"DateCalendar",timezone:U,value:l,defaultValue:c,referenceDate:u,onChange:h,valueManager:Bt}),{view:fe,setView:B,focusedView:de,setFocusedView:ye,goToNextView:Te,setValueAndGoToNextView:ie}=Au({view:C,views:A,openTo:T,onChange:F,onViewChange:a,autoFocus:s,focusedView:I,onFocusedViewChange:_}),{referenceDate:pe,calendarState:re,changeFocusedDay:ge,changeMonth:$e,handleChangeMonth:yt,isDateDisabled:ue,onMonthSwitchingAnimationEnd:Qo}=Fm({value:Z,referenceDate:u,reduceAnimations:v,onMonthChange:g,minDate:W,maxDate:$,shouldDisableDate:b,disablePast:p,disableFuture:f,timezone:X}),Wf=P&&Z||W,Uf=P&&Z||$,ua=`${o}-grid-label`,Zo=de!==null,da=(J==null?void 0:J.calendarHeader)??Ru,Gf=Qe({elementType:da,externalSlotProps:ne==null?void 0:ne.calendarHeader,additionalProps:{views:A,view:fe,currentMonth:re.currentMonth,onViewChange:B,onMonthChange:(Oe,dt)=>yt({newMonth:Oe,direction:dt}),minDate:Wf,maxDate:Uf,disabled:P,disablePast:p,disableFuture:f,reduceAnimations:v,timezone:X,labelId:ua},ownerState:i}),Yf=he(Oe=>{const dt=r.startOfMonth(Oe),Un=r.endOfMonth(Oe),_t=ue(Oe)?ir({utils:r,date:Oe,minDate:r.isBefore(W,dt)?dt:W,maxDate:r.isAfter($,Un)?Un:$,disablePast:p,disableFuture:f,isDateDisabled:ue,timezone:X}):Oe;_t?(ie(_t,"finish"),g==null||g(dt)):(Te(),$e(dt)),ge(_t,!0)}),qf=he(Oe=>{const dt=r.startOfYear(Oe),Un=r.endOfYear(Oe),_t=ue(Oe)?ir({utils:r,date:Oe,minDate:r.isBefore(W,dt)?dt:W,maxDate:r.isAfter($,Un)?Un:$,disablePast:p,disableFuture:f,isDateDisabled:ue,timezone:X}):Oe;_t?(ie(_t,"finish"),m==null||m(_t)):(Te(),$e(dt)),ge(_t,!0)}),Qf=he(Oe=>F(Oe&&no(r,Oe,Z??pe),"finish",fe));x.useEffect(()=>{Z!=null&&r.isValid(Z)&&$e(Z)},[Z]);const Ko=i,fa=ub(Ko),Xo={disablePast:p,disableFuture:f,maxDate:$,minDate:W},Jo={disableHighlightToday:y,readOnly:H,disabled:P,timezone:X,gridLabelId:ua,slots:J,slotProps:ne},ei=x.useRef(fe);x.useEffect(()=>{ei.current!==fe&&(de===ei.current&&ye(fe,!0),ei.current=fe)},[de,ye,fe]);const Zf=x.useMemo(()=>[Z],[Z]);return E.jsxs(fb,G({ref:n,className:ce(fa.root,k),ownerState:Ko},Y,{children:[E.jsx(da,G({},Gf,{slots:J,slotProps:ne})),E.jsx(pb,{reduceAnimations:v,className:fa.viewTransitionContainer,transKey:fe,ownerState:Ko,children:E.jsxs("div",{children:[fe==="year"&&E.jsx(Tu,G({},Xo,Jo,{value:Z,onChange:qf,shouldDisableYear:R,hasFocus:Zo,onFocusedViewChange:Oe=>ye("year",Oe),yearsOrder:K,yearsPerRow:Q,referenceDate:pe})),fe==="month"&&E.jsx(Du,G({},Xo,Jo,{hasFocus:Zo,className:k,value:Z,onChange:Yf,shouldDisableMonth:S,onFocusedViewChange:Oe=>ye("month",Oe),monthsPerRow:ee,referenceDate:pe})),fe==="day"&&E.jsx(Jv,G({},re,Xo,Jo,{onMonthSwitchingAnimationEnd:Qo,onFocusedDayChange:ge,reduceAnimations:v,selectedDays:Zf,onSelectedDaysChange:Qf,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:R,hasFocus:Zo,onFocusedViewChange:Oe=>ye("day",Oe),showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:z,displayWeekNumber:L,loading:V,renderLoading:D}))]})})]}))});process.env.NODE_ENV!=="production"&&(_u.propTypes={autoFocus:d.bool,classes:d.object,className:d.string,dayOfWeekFormatter:d.func,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,displayWeekNumber:d.bool,fixedWeekNumber:d.number,focusedView:d.oneOf(["day","month","year"]),loading:d.bool,maxDate:d.object,minDate:d.object,monthsPerRow:d.oneOf([3,4]),onChange:d.func,onFocusedViewChange:d.func,onMonthChange:d.func,onViewChange:d.func,onYearChange:d.func,openTo:d.oneOf(["day","month","year"]),readOnly:d.bool,reduceAnimations:d.bool,referenceDate:d.object,renderLoading:d.func,shouldDisableDate:d.func,shouldDisableMonth:d.func,shouldDisableYear:d.func,showDaysOutsideCurrentMonth:d.bool,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object,view:d.oneOf(["day","month","year"]),views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired),yearsOrder:d.oneOf(["asc","desc"]),yearsPerRow:d.oneOf([3,4])});const pi=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:b,reduceAnimations:S,onMonthChange:R,monthsPerRow:C,onYearChange:A,yearsOrder:T,yearsPerRow:k,slots:P,slotProps:H,loading:W,renderLoading:$,disableHighlightToday:y,readOnly:I,disabled:_,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:N,sx:z,autoFocus:J,fixedWeekNumber:ne,displayWeekNumber:V,timezone:D})=>E.jsx(_u,{view:t,onViewChange:e,views:n.filter(Ka),focusedView:r&&Ka(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:b,reduceAnimations:S,onMonthChange:R,monthsPerRow:C,onYearChange:A,yearsOrder:T,yearsPerRow:k,slots:P,slotProps:H,loading:W,renderLoading:$,disableHighlightToday:y,readOnly:I,disabled:_,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:N,sx:z,autoFocus:J,fixedWeekNumber:ne,displayWeekNumber:V,timezone:D}),pl=new Set;function hb(t,e="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(t)?t.join(`
205
+ `):t;pl.has(n)||(pl.add(n),e==="error"?console.error(n):console.warn(n))}const gb=({open:t,onOpen:e,onClose:n})=>{const r=x.useRef(typeof t=="boolean").current,[o,i]=x.useState(!1);x.useEffect(()=>{if(r){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(t)}},[r,t]);const s=x.useCallback(a=>{r||i(a),a&&e&&e(),!a&&n&&n()},[r,e,n]);return{isOpen:o,setIsOpen:s}},mb=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o}=t,i=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?i&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastPublishedValue):e.name==="setValueFromView"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},vb=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=t,s=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?s&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(r.lastCommittedValue):!1},yb=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},bb=({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:f}=t,{current:p}=x.useRef(l),{current:h}=x.useRef(a!==void 0),[m,g]=x.useState(u);process.env.NODE_ENV!=="production"&&(x.useEffect(()=>{h!==(a!==void 0)&&console.error([`MUI X: A component is changing the ${h?"":"un"}controlled value of a picker to be ${h?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
206
+ `))},[a]),x.useEffect(()=>{!h&&p!==l&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
207
+ `))},[JSON.stringify(p)]));const v=Le(),b=Hn(),{isOpen:S,setIsOpen:R}=gb(t),{timezone:C,value:A,handleValueChange:T}=xu({timezone:u,value:a,defaultValue:p,referenceDate:f,onChange:s,valueManager:e}),[k,P]=x.useState(()=>{let F;return A!==void 0?F=A:p!==void 0?F=p:F=e.emptyValue,{draft:F,lastPublishedValue:F,lastCommittedValue:F,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),H=e.getTimezone(v,k.draft);m!==u&&(g(u),u&&H&&u!==H&&P(F=>G({},F,{draft:e.setTimezone(v,u,F.draft)})));const{getValidationErrorForNewValue:W}=Hm({props:t,validator:o,timezone:C,value:k.draft,onError:t.onError}),$=he(F=>{const X={action:F,dateState:k,hasChanged:ie=>!e.areValuesEqual(v,F.value,ie),isControlled:h,closeOnSelect:c},fe=mb(X),B=vb(X),de=yb(X);P(ie=>G({},ie,{draft:F.value,lastPublishedValue:fe?F.value:ie.lastPublishedValue,lastCommittedValue:B?F.value:ie.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ye=null;const Te=()=>(ye||(ye={validationError:F.name==="setValueFromField"?F.context.validationError:W(F.value)},F.name==="setValueFromShortcut"&&(ye.shortcut=F.shortcut)),ye);fe&&T(F.value,Te()),B&&i&&i(F.value,Te()),de&&R(!1)});if(k.lastControlledValue!==a){const F=e.areValuesEqual(v,k.draft,A);P(X=>G({},X,{lastControlledValue:a},F?{}:{lastCommittedValue:A,lastPublishedValue:A,draft:A,hasBeenModifiedSinceMount:!0}))}const y=he(()=>{$({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),I=he(()=>{$({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),_=he(()=>{$({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),O=he(()=>{$({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),N=he(()=>{$({value:e.getTodayValue(v,C,n),name:"setValueFromAction",pickerAction:"today"})}),z=he(F=>{F.preventDefault(),R(!0)}),J=he(F=>{F==null||F.preventDefault(),R(!1)}),ne=he((F,X="partial")=>$({name:"setValueFromView",value:F,selectionState:X})),V=he((F,X,fe)=>$({name:"setValueFromShortcut",value:F,changeImportance:X,shortcut:fe})),D=he((F,X)=>$({name:"setValueFromField",value:F,context:X})),L={onClear:y,onAccept:I,onDismiss:_,onCancel:O,onSetToday:N,onOpen:z,onClose:J},K={value:k.draft,onChange:D},Q=x.useMemo(()=>e.cleanValue(v,k.draft),[v,e,k.draft]),ee={value:Q,onChange:ne,onClose:J,open:S},Y=G({},L,{value:Q,onChange:ne,onSelectShortcut:V,isValid:F=>{const X=o({adapter:b,value:F,timezone:C,props:t});return!e.hasError(X)}}),Z=x.useMemo(()=>({onOpen:z,onClose:J,open:S}),[S,J,z]);return{open:S,fieldProps:K,viewProps:ee,layoutProps:Y,actions:L,contextValue:Z}},Eb=["className","sx"],Sb=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:a,onClose:l}=e,{view:c,views:u,openTo:f,onViewChange:p,viewRenderers:h,timezone:m}=t,g=_e(t,Eb),{view:v,setView:b,defaultView:S,focusedView:R,setFocusedView:C,setValueAndGoToNextView:A}=Au({view:c,views:u,openTo:f,onChange:s,onViewChange:p,autoFocus:r}),{hasUIView:T,viewModeLookup:k}=x.useMemo(()=>u.reduce((_,O)=>{let N;return h[O]!=null?N="UI":N="field",_.viewModeLookup[O]=N,N==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[h,u]),P=x.useMemo(()=>u.reduce((_,O)=>h[O]!=null&&Vm(O)?_+1:_,0),[h,u]),H=k[v],W=he(()=>H==="UI"),[$,y]=x.useState(H==="UI"?v:null);return $!==v&&k[v]==="UI"&&y(v),cn(()=>{H==="field"&&a&&(l(),setTimeout(()=>{var _,O;(_=i==null?void 0:i.current)==null||_.setSelectedSections(v),(O=i==null?void 0:i.current)==null||O.focusField(v)}))},[v]),cn(()=>{if(!a)return;let _=v;H==="field"&&$!=null&&(_=$),_!==S&&k[_]==="UI"&&k[S]==="UI"&&(_=S),_!==v&&b(_),C(_,!0)},[a]),{hasUIView:T,shouldRestoreFocus:W,layoutProps:{views:u,view:$,onViewChange:b},renderCurrentView:()=>{if($==null)return null;const _=h[$];if(_==null)return null;const O=G({},g,n,e,{views:u,timezone:m,onChange:A,view:$,onViewChange:b,focusedView:R,onFocusedViewChange:C,showViewSwitcher:P>1,timeViewsCount:P});return o?o(h,$,O):_(O)}}};function Cb(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}function hl(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const wb=(t,e)=>{const[n,r]=x.useState(hl);return cn(()=>{const i=()=>{r(hl())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Cb(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},xb=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=t,i=wb(n.views,o),s=yr();return{layoutProps:G({},n,e,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function Db(t){const{props:e,pickerValueResponse:n}=t;return x.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const Tb=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{process.env.NODE_ENV!=="production"&&t.renderInput!=null&&hb(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const c=bb({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i}),u=Sb({props:t,additionalViewProps:o,autoFocusView:s,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),f=xb({props:t,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),p=Db({props:t,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:f.layoutProps,contextValue:c.contextValue,ownerState:p}};function ku(t){return Ue("MuiPickersLayout",t)}const Yt=Ye("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Mu(t,e,n=!1){const r={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const i=o;if(i==="components"||i==="slots")r[i]={...t[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=t[i],a=e[i];if(!a)r[i]=s||{};else if(!s)r[i]=a;else{r[i]={...a};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const c=l;r[i][c]=Mu(s[c],a[c],n)}}}else i==="className"&&n&&e.className?r.className=ce(t==null?void 0:t.className,e==null?void 0:e.className):i==="style"&&n&&e.style?r.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:r[i]===void 0&&(r[i]=t[i])}return r}function Ab(t){return Xe("MuiButton",t)}const qt=Je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Ou=x.createContext({});process.env.NODE_ENV!=="production"&&(Ou.displayName="ButtonGroupContext");const Iu=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(Iu.displayName="ButtonGroupButtonContext");const Rb=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=t,c={root:["root",s&&"loading",i,`${i}${se(e)}`,`size${se(o)}`,`${i}Size${se(o)}`,`color${se(e)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${se(a)}`],startIcon:["icon","startIcon",`iconSize${se(o)}`],endIcon:["icon","endIcon",`iconSize${se(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ct(c,Ab,l);return{...l,...u}},Pu=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],_b=te(Vn,{shouldForwardProp:t=>nu(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${se(n.color)}`],e[`size${se(n.size)}`],e[`${n.variant}Size${se(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(ht(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${qt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${qt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${qt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${qt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ct()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${qt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${qt.loading}`]:{color:"transparent"}}}]}})),kb=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${se(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Pu]})),Mb=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${se(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Pu]})),Ob=te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),gl=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),rr=x.forwardRef(function(e,n){const r=x.useContext(Ou),o=x.useContext(Iu),i=Mu(r,e),s=it({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:v=!1,id:b,loading:S=null,loadingIndicator:R,loadingPosition:C="center",size:A="medium",startIcon:T,type:k,variant:P="text",...H}=s,W=ou(b),$=R??E.jsx(Ts,{"aria-labelledby":W,color:"inherit",size:16}),y={...s,color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:v,loading:S,loadingIndicator:$,loadingPosition:C,size:A,type:k,variant:P},I=Rb(y),_=(T||S&&C==="start")&&E.jsx(kb,{className:I.startIcon,ownerState:y,children:T||E.jsx(gl,{className:I.loadingIconPlaceholder,ownerState:y})}),O=(m||S&&C==="end")&&E.jsx(Mb,{className:I.endIcon,ownerState:y,children:m||E.jsx(gl,{className:I.loadingIconPlaceholder,ownerState:y})}),N=o||"",z=typeof S=="boolean"?E.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:S&&E.jsx(Ob,{className:I.loadingIndicator,ownerState:y,children:$})}):null;return E.jsxs(_b,{ownerState:y,className:ce(r.className,I.root,u,N),component:c,disabled:f||S,focusRipple:!h,focusVisibleClassName:ce(I.focusVisible,g),ref:n,type:k,id:S?W:b,...H,classes:I,children:[_,C!=="end"&&z,a,C==="end"&&z,O]})});process.env.NODE_ENV!=="production"&&(rr.propTypes={children:d.node,classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","primary","secondary","success","error","info","warning"]),d.string]),component:d.elementType,disabled:d.bool,disableElevation:d.bool,disableFocusRipple:d.bool,disableRipple:d.bool,endIcon:d.node,focusVisibleClassName:d.string,fullWidth:d.bool,href:d.string,id:d.string,loading:d.bool,loadingIndicator:d.node,loadingPosition:d.oneOf(["center","end","start"]),size:d.oneOfType([d.oneOf(["small","medium","large"]),d.string]),startIcon:d.node,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),type:d.oneOfType([d.oneOf(["button","reset","submit"]),d.string]),variant:d.oneOfType([d.oneOf(["contained","outlined","text"]),d.string])});function Ib(t){return Xe("MuiDialogActions",t)}Je("MuiDialogActions",["root","spacing"]);const Pb=t=>{const{classes:e,disableSpacing:n}=t;return ct({root:["root",!n&&"spacing"]},Ib,e)},Nb=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Nu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,a={...r,disableSpacing:i},l=Pb(a);return E.jsx(Nb,{className:ce(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Nu.propTypes={children:d.node,classes:d.object,className:d.string,disableSpacing:d.bool,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const jb=["onAccept","onClear","onCancel","onSetToday","actions"];function ju(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:o,actions:i}=t,s=_e(t,jb),a=$o();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return E.jsx(rr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return E.jsx(rr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return E.jsx(rr,{onClick:e,children:a.okButtonLabel},c);case"today":return E.jsx(rr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return E.jsx(Nu,G({},s,{children:l}))}process.env.NODE_ENV!=="production"&&(ju.propTypes={actions:d.arrayOf(d.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:d.bool,onAccept:d.func.isRequired,onCancel:d.func.isRequired,onClear:d.func.isRequired,onSetToday:d.func.isRequired,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const _n=x.createContext({});process.env.NODE_ENV!=="production"&&(_n.displayName="ListContext");function Vb(t){return Xe("MuiList",t)}Je("MuiList",["root","padding","dense","subheader"]);const $b=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return ct({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Vb,e)},Bb=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Vu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,f=x.useMemo(()=>({dense:a}),[a]),p={...r,component:s,dense:a,disablePadding:l},h=$b(p);return E.jsx(_n.Provider,{value:f,children:E.jsxs(Bb,{as:s,className:ce(h.root,i),ref:n,ownerState:p,...u,children:[c,o]})})});process.env.NODE_ENV!=="production"&&(Vu.propTypes={children:d.node,classes:d.object,className:d.string,component:d.elementType,dense:d.bool,disablePadding:d.bool,subheader:d.node,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});function Ui(t){return typeof t=="string"}function Lb(t){return Xe("MuiListItem",t)}Je("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Hb=Je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function zb(t){return Xe("MuiListItemSecondaryAction",t)}Je("MuiListItemSecondaryAction",["root","disableGutters"]);const Fb=t=>{const{disableGutters:e,classes:n}=t;return ct({root:["root",e&&"disableGutters"]},zb,n)},Wb=te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),Rs=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=x.useContext(_n),a={...r,disableGutters:s.disableGutters},l=Fb(a);return E.jsx(Wb,{className:ce(l.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:d.node,classes:d.object,className:d.string,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});Rs.muiName="ListItemSecondaryAction";const Ub=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},Gb=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=t;return ct({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},Lb,n)},Yb=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ub})(ht(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Hb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),qb=te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),$u=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:b,slotProps:S={},slots:R={},...C}=r,A=x.useContext(_n),T=x.useMemo(()=>({dense:h||A.dense||!1,alignItems:o,disableGutters:m}),[o,A.dense,h,m]),k=x.useRef(null),P=x.Children.toArray(i),H=P.length&&ru(P[P.length-1],["ListItemSecondaryAction"]),W={...r,alignItems:o,dense:T.dense,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:H},$=Gb(W),y=Nn(k,n),I=R.root||l.Root||Yb,_=S.root||c.root||{},O={className:ce($.root,_.className,s),...C};let N=a||"li";return H?(N=!O.component&&!a?"div":N,u==="li"&&(N==="li"?N="div":O.component==="li"&&(O.component="div")),E.jsx(_n.Provider,{value:T,children:E.jsxs(qb,{as:u,className:ce($.container,f),ref:y,ownerState:W,...p,children:[E.jsx(I,{..._,...!Ui(I)&&{as:N,ownerState:{...W,..._.ownerState}},...O,children:P}),P.pop()]})})):E.jsx(_n.Provider,{value:T,children:E.jsxs(I,{..._,as:N,ref:y,...!Ui(I)&&{ownerState:{...W,..._.ownerState}},...O,children:[P,b&&E.jsx(Rs,{children:b})]})})});process.env.NODE_ENV!=="production"&&($u.propTypes={alignItems:d.oneOf(["center","flex-start"]),children:zn(d.node,t=>{const e=x.Children.toArray(t.children);let n=-1;for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(ru(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:d.object,className:d.string,component:d.elementType,components:d.shape({Root:d.elementType}),componentsProps:d.shape({root:d.object}),ContainerComponent:mu,ContainerProps:d.object,dense:d.bool,disableGutters:d.bool,disablePadding:d.bool,divider:d.bool,secondaryAction:d.node,slotProps:d.shape({root:d.object}),slots:d.shape({root:d.elementType}),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const Qb=Ve(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Zb(t){return Xe("MuiChip",t)}const me=Je("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function Kb(t,e,n){return t===void 0||Ui(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function Xb(t,e,n){return typeof t=="function"?t(e,n):t}function Jb(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function ml(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function eE(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const h=ce(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=Jb({...o,...r}),a=ml(r),l=ml(o),c=e(s),u=ce(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function vl(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:c,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...p}=i,h=u[t]||r,m=Xb(f[t],o),{props:{component:g,...v},internalRef:b}=eE({className:n,...l,externalForwardedProps:t==="root"?p:void 0,externalSlotProps:m}),S=Nn(b,m==null?void 0:m.ref,e.ref),R=t==="root"?g||c:g,C=Kb(h,{...t==="root"&&!c&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...v,...R&&!a&&{as:R},...R&&a&&{component:R},ref:S},o);return[h,C]}const tE=t=>{const{classes:e,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=t,c={root:["root",l,n&&"disabled",`size${se(r)}`,`color${se(o)}`,a&&"clickable",a&&`clickableColor${se(o)}`,s&&"deletable",s&&`deletableColor${se(o)}`,`${l}${se(o)}`],label:["label",`label${se(r)}`],avatar:["avatar",`avatar${se(r)}`,`avatarColor${se(o)}`],icon:["icon",`icon${se(r)}`,`iconColor${se(i)}`],deleteIcon:["deleteIcon",`deleteIcon${se(r)}`,`deleteIconColor${se(o)}`,`deleteIcon${se(l)}Color${se(o)}`]};return ct(c,Zb,e)},nE=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${me.avatar}`]:e.avatar},{[`& .${me.avatar}`]:e[`avatar${se(a)}`]},{[`& .${me.avatar}`]:e[`avatarColor${se(r)}`]},{[`& .${me.icon}`]:e.icon},{[`& .${me.icon}`]:e[`icon${se(a)}`]},{[`& .${me.icon}`]:e[`iconColor${se(o)}`]},{[`& .${me.deleteIcon}`]:e.deleteIcon},{[`& .${me.deleteIcon}`]:e[`deleteIcon${se(a)}`]},{[`& .${me.deleteIcon}`]:e[`deleteIconColor${se(r)}`]},{[`& .${me.deleteIcon}`]:e[`deleteIcon${se(l)}Color${se(r)}`]},e.root,e[`size${se(a)}`],e[`color${se(r)}`],i&&e.clickable,i&&r!=="default"&&e[`clickableColor${se(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${se(r)}`],e[l],e[`${l}${se(r)}`]]}})(ht(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${me.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${me.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${me.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${me.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${me.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${me.icon}`]:{marginLeft:5,marginRight:-6},[`& .${me.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${me.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${me.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Ct(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${me.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${me.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${me.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${me.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${me.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${me.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${me.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${me.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${me.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${me.avatar}`]:{marginLeft:4},[`& .${me.avatarSmall}`]:{marginLeft:2},[`& .${me.icon}`]:{marginLeft:4},[`& .${me.iconSmall}`]:{marginLeft:2},[`& .${me.deleteIcon}`]:{marginRight:5},[`& .${me.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Ct()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.alpha((t.vars||t).palette[n].main,.7)}`,[`&.${me.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${me.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.focusOpacity)},[`& .${me.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),rE=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${se(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function yl(t){return t.key==="Backspace"||t.key==="Delete"}const Bu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:v,size:b="medium",variant:S="filled",tabIndex:R,skipFocusWhenDisabled:C=!1,slots:A={},slotProps:T={},...k}=r,P=x.useRef(null),H=Nn(P,n),W=U=>{U.stopPropagation(),m&&m(U)},$=U=>{U.currentTarget===U.target&&yl(U)&&U.preventDefault(),g&&g(U)},y=U=>{U.currentTarget===U.target&&m&&yl(U)&&m(U),v&&v(U)},I=s!==!1&&h?!0:s,_=I||m?Vn:l||"div",O={...r,component:_,disabled:u,size:b,color:a,iconColor:x.isValidElement(f)&&f.props.color||a,onDelete:!!m,clickable:I,variant:S},N=tE(O),z=_===Vn?{component:l||"div",focusVisibleClassName:N.focusVisible,...m&&{disableRipple:!0}}:{};let J=null;m&&(J=c&&x.isValidElement(c)?x.cloneElement(c,{className:ce(c.props.className,N.deleteIcon),onClick:W}):E.jsx(Qb,{className:N.deleteIcon,onClick:W}));let ne=null;o&&x.isValidElement(o)&&(ne=x.cloneElement(o,{className:ce(N.avatar,o.props.className)}));let V=null;f&&x.isValidElement(f)&&(V=x.cloneElement(f,{className:ce(N.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&ne&&V&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:A,slotProps:T},[L,K]=vl("root",{elementType:nE,externalForwardedProps:{...D,...k},ownerState:O,shouldForwardComponentProp:!0,ref:H,className:ce(N.root,i),additionalProps:{disabled:I&&u?!0:void 0,tabIndex:C&&u?-1:R,...z},getSlotProps:U=>({...U,onClick:Y=>{var Z;(Z=U.onClick)==null||Z.call(U,Y),h==null||h(Y)},onKeyDown:Y=>{var Z;(Z=U.onKeyDown)==null||Z.call(U,Y),$(Y)},onKeyUp:Y=>{var Z;(Z=U.onKeyUp)==null||Z.call(U,Y),y(Y)}})}),[Q,ee]=vl("label",{elementType:rE,externalForwardedProps:D,ownerState:O,className:N.label});return E.jsxs(L,{as:_,...K,children:[ne||V,E.jsx(Q,{...ee,children:p}),J]})});process.env.NODE_ENV!=="production"&&(Bu.propTypes={avatar:d.element,children:Fg,classes:d.object,className:d.string,clickable:d.bool,color:d.oneOfType([d.oneOf(["default","primary","secondary","error","info","success","warning"]),d.string]),component:d.elementType,deleteIcon:d.element,disabled:d.bool,icon:d.element,label:d.node,onClick:d.func,onDelete:d.func,onKeyDown:d.func,onKeyUp:d.func,size:d.oneOfType([d.oneOf(["medium","small"]),d.string]),skipFocusWhenDisabled:d.bool,slotProps:d.shape({label:d.oneOfType([d.func,d.object]),root:d.oneOfType([d.func,d.object])}),slots:d.shape({label:d.elementType,root:d.elementType}),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),tabIndex:d.number,variant:d.oneOfType([d.oneOf(["filled","outlined"]),d.string])});const oE=["items","changeImportance","isLandscape","onChange","isValid"],iE=["getValue"];function Lu(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:o}=t,i=_e(t,oE);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,c=_e(a,iE);const u=l({isValid:o});return G({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return E.jsx(Vu,G({dense:!0,sx:[{maxHeight:xs,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>E.jsx($u,{children:E.jsx(Bu,G({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(Lu.propTypes={changeImportance:d.oneOf(["accept","set"]),className:d.string,component:d.elementType,dense:d.bool,disablePadding:d.bool,isLandscape:d.bool.isRequired,isValid:d.func.isRequired,items:d.arrayOf(d.shape({getValue:d.func.isRequired,id:d.string,label:d.string.isRequired})),onChange:d.func.isRequired,style:d.object,subheader:d.node,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});function sE(t){return t.view!==null}const aE=t=>{const{classes:e,isLandscape:n}=t;return We({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ku,e)},lE=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:f,isValid:p,isLandscape:h,disabled:m,readOnly:g,children:v,slots:b,slotProps:S}=t,R=aE(t),C=(b==null?void 0:b.actionBar)??ju,A=Qe({elementType:C,externalSlotProps:S==null?void 0:S.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:e==="desktop"?[]:["cancel","accept"]},className:R.actionBar,ownerState:G({},t,{wrapperVariant:e})}),T=E.jsx(C,G({},A)),k=b==null?void 0:b.toolbar,P=Qe({elementType:k,externalSlotProps:S==null?void 0:S.toolbar,additionalProps:{isLandscape:h,onChange:u,value:c,view:s,onViewChange:l,views:a,disabled:m,readOnly:g},className:R.toolbar,ownerState:G({},t,{wrapperVariant:e})}),H=sE(P)&&k?E.jsx(k,G({},P)):null,W=v,$=b==null?void 0:b.tabs,y=s&&$?E.jsx($,G({view:s,onViewChange:l,className:R.tabs},S==null?void 0:S.tabs)):null,I=(b==null?void 0:b.shortcuts)??Lu,_=Qe({elementType:I,externalSlotProps:S==null?void 0:S.shortcuts,additionalProps:{isValid:p,isLandscape:h,onChange:f},className:R.shortcuts,ownerState:{isValid:p,isLandscape:h,onChange:f,wrapperVariant:e}}),O=s&&I?E.jsx(I,G({},_)):null;return{toolbar:H,content:W,tabs:y,actionBar:T,shortcuts:O}},cE=t=>{const{isLandscape:e,classes:n}=t;return We({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},ku,n)},uE=te("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Yt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Yt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Yt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Yt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Yt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Yt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Yt.shortcuts}`]:{gridColumn:3}}}]}),dE=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Hu=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:a,shortcuts:l}=lE(r),{sx:c,className:u,isLandscape:f,wrapperVariant:p}=r,h=cE(r);return E.jsxs(uE,{ref:n,sx:c,className:ce(h.root,u),ownerState:r,children:[f?l:o,f?o:l,E.jsx(dE,{className:h.contentWrapper,children:p==="desktop"?E.jsxs(x.Fragment,{children:[i,s]}):E.jsxs(x.Fragment,{children:[s,i]})}),a]})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={children:d.node,classes:d.object,className:d.string,disabled:d.bool,isLandscape:d.bool.isRequired,isRtl:d.bool.isRequired,isValid:d.func.isRequired,onAccept:d.func.isRequired,onCancel:d.func.isRequired,onChange:d.func.isRequired,onClear:d.func.isRequired,onClose:d.func.isRequired,onDismiss:d.func.isRequired,onOpen:d.func.isRequired,onSelectShortcut:d.func.isRequired,onSetToday:d.func.isRequired,onViewChange:d.func.isRequired,orientation:d.oneOf(["landscape","portrait"]),readOnly:d.bool,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),value:d.any,view:d.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:d.arrayOf(d.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:d.oneOf(["desktop","mobile"])});const fE=["props","ref"],pE=te(Hu)(({theme:t})=>({overflow:"hidden",minWidth:Lo,backgroundColor:(t.vars||t).palette.background.paper})),hE=t=>{let{props:e,ref:n}=t,r=_e(t,fE);const{localeText:o,slots:i,slotProps:s,className:a,sx:l,displayStaticWrapperAs:c,autoFocus:u}=e,{layoutProps:f,renderCurrentView:p}=Tb(G({},r,{props:e,autoFocusView:u??!1,additionalViewProps:{},wrapperVariant:c})),h=(i==null?void 0:i.layout)??pE;return{renderPicker:()=>{var g,v,b;return E.jsx(au,{localeText:o,children:E.jsx(h,G({},f,s==null?void 0:s.layout,{slots:i,slotProps:s,sx:[...Array.isArray(l)?l:[l],...Array.isArray((g=s==null?void 0:s.layout)==null?void 0:g.sx)?s.layout.sx:[(v=s==null?void 0:s.layout)==null?void 0:v.sx]],className:ce(a,(b=s==null?void 0:s.layout)==null?void 0:b.className),ref:n,children:p()}))})}}},zu=x.forwardRef(function(e,n){var l;const r=Nm(e,"MuiStaticDatePicker"),o=r.displayStaticWrapperAs??"mobile",i=G({day:pi,month:pi,year:pi},r.viewRenderers),s=G({},r,{viewRenderers:i,displayStaticWrapperAs:o,yearsPerRow:r.yearsPerRow??(o==="mobile"?3:4),slotProps:G({},r.slotProps,{toolbar:G({hidden:o==="desktop"},(l=r.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:a}=hE({props:s,valueManager:Bt,valueType:"date",validator:ys,ref:n});return a()});zu.propTypes={autoFocus:d.bool,className:d.string,dayOfWeekFormatter:d.func,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,displayStaticWrapperAs:d.oneOf(["desktop","mobile"]),displayWeekNumber:d.bool,fixedWeekNumber:d.number,loading:d.bool,localeText:d.object,maxDate:d.object,minDate:d.object,monthsPerRow:d.oneOf([3,4]),onAccept:d.func,onChange:d.func,onClose:d.func,onError:d.func,onMonthChange:d.func,onViewChange:d.func,onYearChange:d.func,openTo:d.oneOf(["day","month","year"]),orientation:d.oneOf(["landscape","portrait"]),readOnly:d.bool,reduceAnimations:d.bool,referenceDate:d.object,renderLoading:d.func,shouldDisableDate:d.func,shouldDisableMonth:d.func,shouldDisableYear:d.func,showDaysOutsideCurrentMonth:d.bool,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object,view:d.oneOf(["day","month","year"]),viewRenderers:d.shape({day:d.func,month:d.func,year:d.func}),views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired),yearsOrder:d.oneOf(["asc","desc"]),yearsPerRow:d.oneOf([3,4])};const gE=({anchorEl:t,onClose:e,onDateSelect:n})=>E.jsx(q.Popover,{open:!!t,anchorEl:t,onClose:e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:E.jsx(zu,{displayStaticWrapperAs:"desktop",value:null,onChange:n})});var Ho,ae,Fu,Wu,$n,Jt,bl,Uu,Gu,io={},Yu=[],mE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function It(t,e){for(var n in e)t[n]=e[n];return t}function qu(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,n){var r,o,i,s={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?Ho.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)s[i]===void 0&&(s[i]=t.defaultProps[i]);return zr(t,s,r,o,null)}function zr(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Fu};return o==null&&ae.vnode!=null&&ae.vnode(i),i}function Fe(){return{current:null}}function Ae(t){return t.children}function vE(t,e,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in e||so(t,i,null,n[i],r);for(i in e)o&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||so(t,i,e[i],n[i],r)}function El(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||mE.test(e)?n:n+"px"}function so(t,e,n,r,o){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||El(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||El(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?Cl:Sl,i):t.removeEventListener(e,i?Cl:Sl,i);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Sl(t){$n=!0;try{return this.l[t.type+!1](ae.event?ae.event(t):t)}finally{$n=!1}}function Cl(t){$n=!0;try{return this.l[t.type+!0](ae.event?ae.event(t):t)}finally{$n=!1}}function Ze(t,e){this.props=t,this.context=e}function fr(t,e){if(e==null)return t.__?fr(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fr(t):null}function Qu(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Qu(t)}}function yE(t){$n?setTimeout(t):Uu(t)}function Gi(t){(!t.__d&&(t.__d=!0)&&Jt.push(t)&&!ao.__r++||bl!==ae.debounceRendering)&&((bl=ae.debounceRendering)||yE)(ao)}function ao(){var t,e,n,r,o,i,s,a;for(Jt.sort(function(l,c){return l.__v.__b-c.__v.__b});t=Jt.shift();)t.__d&&(e=Jt.length,r=void 0,o=void 0,s=(i=(n=t).__v).__e,(a=n.__P)&&(r=[],(o=It({},i)).__v=i.__v+1,_s(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s??fr(i),i.__h),ed(r,i),i.__e!=s&&Qu(i)),Jt.length>e&&Jt.sort(function(l,c){return l.__v.__b-c.__v.__b}));ao.__r=0}function Zu(t,e,n,r,o,i,s,a,l,c){var u,f,p,h,m,g,v,b=r&&r.__k||Yu,S=b.length;for(n.__k=[],u=0;u<e.length;u++)if((h=n.__k[u]=(h=e[u])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?zr(null,h,null,null,h):Array.isArray(h)?zr(Ae,{children:h},null,null,null):h.__b>0?zr(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=b[u])===null||p&&h.key==p.key&&h.type===p.type)b[u]=void 0;else for(f=0;f<S;f++){if((p=b[f])&&h.key==p.key&&h.type===p.type){b[f]=void 0;break}p=null}_s(t,h,p=p||io,o,i,s,a,l,c),m=h.__e,(f=h.ref)&&p.ref!=f&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(f,h.__c||m,h)),m!=null?(g==null&&(g=m),typeof h.type=="function"&&h.__k===p.__k?h.__d=l=Ku(h,l,t):l=Xu(t,h,p,b,m,l),typeof n.type=="function"&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=t&&(l=fr(p))}for(n.__e=g,u=S;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=Ju(r).nextSibling),nd(b[u],b[u]));if(v)for(u=0;u<v.length;u++)td(v[u],v[++u],v[++u])}function Ku(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e=typeof r.type=="function"?Ku(r,e,n):Xu(n,r,r,o,r.__e,e));return e}function lo(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){lo(n,e)}):e.push(t)),e}function Xu(t,e,n,r,o,i){var s,a,l;if(e.__d!==void 0)s=e.__d,e.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;t.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function Ju(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=Ju(n)))return r}return null}function _s(t,e,n,r,o,i,s,a,l){var c,u,f,p,h,m,g,v,b,S,R,C,A,T,k,P=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=e.__e=n.__e,e.__h=null,i=[a]),(c=ae.__b)&&c(e);try{e:if(typeof P=="function"){if(v=e.props,b=(c=P.contextType)&&r[c.__c],S=c?b?b.props.value:c.__:r,n.__c?g=(u=e.__c=n.__c).__=u.__E:("prototype"in P&&P.prototype.render?e.__c=u=new P(v,S):(e.__c=u=new Ze(v,S),u.constructor=P,u.render=EE),b&&b.sub(u),u.props=v,u.state||(u.state={}),u.context=S,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),P.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=It({},u.__s)),It(u.__s,P.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,u.__v=e,f)P.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(P.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,S),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,S)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(H){H&&(H.__=e)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,h,m)})}if(u.context=S,u.props=v,u.__P=t,C=ae.__r,A=0,"prototype"in P&&P.prototype.render){for(u.state=u.__s,u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[]}else do u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(r=It(It({},r),u.getChildContext())),f||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(p,h)),k=c!=null&&c.type===Ae&&c.key==null?c.props.children:c,Zu(t,Array.isArray(k)?k:[k],e,n,r,o,i,s,a,l),u.base=e.__e,e.__h=null,u.__h.length&&s.push(u),g&&(u.__E=u.__=null),u.__e=!1}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=bE(n.__e,e,n,r,o,i,s,l);(c=ae.diffed)&&c(e)}catch(H){e.__v=null,(l||i!=null)&&(e.__e=a,e.__h=!!l,i[i.indexOf(a)]=null),ae.__e(H,e,n)}}function ed(t,e){ae.__c&&ae.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){ae.__e(r,n.__v)}})}function bE(t,e,n,r,o,i,s,a){var l,c,u,f=n.props,p=e.props,h=e.type,m=0;if(h==="svg"&&(o=!0),i!=null){for(;m<i.length;m++)if((l=i[m])&&"setAttribute"in l==!!h&&(h?l.localName===h:l.nodeType===3)){t=l,i[m]=null;break}}if(t==null){if(h===null)return document.createTextNode(p);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),i=null,a=!1}if(h===null)f===p||a&&t.data===p||(t.data=p);else{if(i=i&&Ho.call(t.childNodes),c=(f=n.props||io).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(i!=null)for(f={},m=0;m<t.attributes.length;m++)f[t.attributes[m].name]=t.attributes[m].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(vE(t,p,f,o,a),u)e.__k=[];else if(m=e.props.children,Zu(t,Array.isArray(m)?m:[m],e,n,r,o&&h!=="foreignObject",i,s,i?i[0]:n.__k&&fr(n,0),a),i!=null)for(m=i.length;m--;)i[m]!=null&&qu(i[m]);a||("value"in p&&(m=p.value)!==void 0&&(m!==t.value||h==="progress"&&!m||h==="option"&&m!==f.value)&&so(t,"value",m,f.value,!1),"checked"in p&&(m=p.checked)!==void 0&&m!==t.checked&&so(t,"checked",m,f.checked,!1))}return t}function td(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){ae.__e(r,n)}}function nd(t,e,n){var r,o;if(ae.unmount&&ae.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||td(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ae.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&nd(r[o],e,n||typeof t.type!="function");n||t.__e==null||qu(t.__e),t.__=t.__e=t.__d=void 0}function EE(t,e,n){return this.constructor(t,n)}function pr(t,e,n){var r,o,i;ae.__&&ae.__(t,e),o=(r=!1)?null:e.__k,i=[],_s(e,t=e.__k=w(Ae,null,[t]),o||io,io,e.ownerSVGElement!==void 0,o?null:e.firstChild?Ho.call(e.childNodes):null,i,o?o.__e:e.firstChild,r),ed(i,t)}function SE(t,e){var n={__c:e="__cC"+Gu++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Gi(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ho=Yu.slice,ae={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(a){t=a}throw t}},Fu=0,Wu=function(t){return t!=null&&t.constructor===void 0},$n=!1,Ze.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=It({},this.state),typeof t=="function"&&(t=t(It({},n),this.props)),t&&It(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Gi(this))},Ze.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Gi(this))},Ze.prototype.render=Ae,Jt=[],Uu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ao.__r=0,Gu=0;var pt,hi,wl,rd=[],gi=[],xl=ae.__b,Dl=ae.__r,Tl=ae.diffed,Al=ae.__c,Rl=ae.unmount;function CE(){for(var t;t=rd.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Fr),t.__H.__h.forEach(Yi),t.__H.__h=[]}catch(e){t.__H.__h=[],ae.__e(e,t.__v)}}ae.__b=function(t){pt=null,xl&&xl(t)},ae.__r=function(t){Dl&&Dl(t);var e=(pt=t.__c).__H;e&&(hi===pt?(e.__h=[],pt.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=gi,n.__N=n.i=void 0})):(e.__h.forEach(Fr),e.__h.forEach(Yi),e.__h=[])),hi=pt},ae.diffed=function(t){Tl&&Tl(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(rd.push(e)!==1&&wl===ae.requestAnimationFrame||((wl=ae.requestAnimationFrame)||wE)(CE)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==gi&&(n.__=n.__V),n.i=void 0,n.__V=gi})),hi=pt=null},ae.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Fr),n.__h=n.__h.filter(function(r){return!r.__||Yi(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],ae.__e(r,n.__v)}}),Al&&Al(t,e)},ae.unmount=function(t){Rl&&Rl(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Fr(r)}catch(o){e=o}}),n.__H=void 0,e&&ae.__e(e,n.__v))};var _l=typeof requestAnimationFrame=="function";function wE(t){var e,n=function(){clearTimeout(r),_l&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);_l&&(e=requestAnimationFrame(n))}function Fr(t){var e=pt,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),pt=e}function Yi(t){var e=pt;t.__c=t.__(),pt=e}function xE(t,e){for(var n in e)t[n]=e[n];return t}function kl(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Ml(t){this.props=t}(Ml.prototype=new Ze).isPureReactComponent=!0,Ml.prototype.shouldComponentUpdate=function(t,e){return kl(this.props,t)||kl(this.state,e)};var Ol=ae.__b;ae.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ol&&Ol(t)};var DE=ae.__e;ae.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}DE(t,e,n,r)};var Il=ae.unmount;function od(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=xE({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return od(r,e,n)})),t}function id(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return id(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function mi(){this.__u=0,this.t=null,this.__b=null}function sd(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function kr(){this.u=null,this.o=null}ae.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Il&&Il(t)},(mi.prototype=new Ze).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=sd(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=id(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},mi.prototype.componentWillUnmount=function(){this.t=[]},mi.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=od(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&w(Ae,null,t.fallback);return o&&(o.__h=null),[w(Ae,null,e.__a?null:t.children),o]};var Pl=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function TE(t){return this.getChildContext=function(){return t.context},t.children}function AE(t){var e=this,n=t.i;e.componentWillUnmount=function(){pr(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),pr(w(TE,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function RE(t,e){var n=w(AE,{__v:t,i:e});return n.containerInfo=e,n}(kr.prototype=new Ze).__a=function(t){var e=this,n=sd(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Pl(e,t,r)):o()};n?n(i):i()}},kr.prototype.render=function(t){this.u=null,this.o=new Map;var e=lo(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},kr.prototype.componentDidUpdate=kr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Pl(t,n,e)})};var _E=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,kE=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ME=typeof document<"u",OE=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ze.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Nl=ae.event;function IE(){}function PE(){return this.cancelBubble}function NE(){return this.defaultPrevented}ae.event=function(t){return Nl&&(t=Nl(t)),t.persist=IE,t.isPropagationStopped=PE,t.isDefaultPrevented=NE,t.nativeEvent=t};var jl={configurable:!0,get:function(){return this.class}},Vl=ae.vnode;ae.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var o=e.indexOf("-")===-1;for(var i in r={},n){var s=n[i];ME&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&s==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!OE(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&kE.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=lo(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=lo(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(jl.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",jl))}t.$$typeof=_E,Vl&&Vl(t)};var $l=ae.__r;ae.__r=function(t){$l&&$l(t),t.__c};const ad=[],qi=new Map;function ks(t){ad.push(t),qi.forEach(e=>{cd(e,t)})}function jE(t){t.isConnected&&t.getRootNode&&ld(t.getRootNode())}function ld(t){let e=qi.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=$E();n&&(e.nonce=n);const r=t===document?document.head:t,o=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,o)}qi.set(t,e),VE(e)}}function VE(t){for(const e of ad)cd(t,e)}function cd(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((o,i)=>{o=o.trim(),o&&n.insertRule(o+"}",r+i)})}let vi;function $E(){return vi===void 0&&(vi=BE()),vi}function BE(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&ld(document);var LE=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';ks(LE);class Ms{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Os(t){t.parentNode&&t.parentNode.removeChild(t)}function He(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(HE(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function HE(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function zE(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let o=0;o<n.length;o+=1){let i=n[o].querySelectorAll(e);for(let s=0;s<i.length;s+=1)r.push(i[s])}return r}const FE=/(top|left|right|bottom|width|height)$/i;function sr(t,e){for(let n in e)ud(t,n,e[n])}function ud(t,e,n){n==null?t.style[e]="":typeof n=="number"&&FE.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function dd(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Bl=0;function zo(){return Bl+=1,"fc-dom-"+Bl}function Fo(t){t.preventDefault()}function WE(t,e){return n=>{let r=He(n.target,t);r&&e.call(r,n,r)}}function fd(t,e,n,r){let o=WE(n,r);return t.addEventListener(e,o),()=>{t.removeEventListener(e,o)}}function UE(t,e,n,r){let o;return fd(t,"mouseover",e,(i,s)=>{if(s!==o){o=s,n(i,s);let a=l=>{o=null,r(l,s),s.removeEventListener("mouseleave",a)};s.addEventListener("mouseleave",a)}})}const Ll=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function GE(t,e){let n=r=>{e(r),Ll.forEach(o=>{t.removeEventListener(o,n)})};Ll.forEach(r=>{t.addEventListener(r,n)})}function pd(t){return Object.assign({onClick:t},hd(t))}function hd(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Hl=0;function hn(){return Hl+=1,String(Hl)}function Is(){document.body.classList.add("fc-not-allowed")}function Ps(){document.body.classList.remove("fc-not-allowed")}function YE(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Fo)}function qE(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Fo)}function QE(t){t.addEventListener("contextmenu",Fo)}function ZE(t){t.removeEventListener("contextmenu",Fo)}function KE(t){let e=[],n=[],r,o;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)o=n[r],typeof o=="string"?e.push(o.charAt(0)==="-"?{field:o.substring(1),order:-1}:{field:o,order:1}):typeof o=="function"&&e.push({func:o});return e}function XE(t,e,n){let r,o;for(r=0;r<n.length;r+=1)if(o=JE(t,e,n[r]),o)return o;return 0}function JE(t,e,n){return n.func?n.func(t,e):eS(t[n.field],e[n.field])*(n.order||1)}function eS(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function kn(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function ar(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,o,i)=>r.replace("$"+i,o||""),t):n}function tS(t,e){return t-e}function Wr(t){return t%1===0}function nS(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const zl=["years","months","days","milliseconds"],rS=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ve(t,e){return typeof t=="string"?oS(t):typeof t=="object"&&t?Fl(t):typeof t=="number"?Fl({[e||"milliseconds"]:t}):null}function oS(t){let e=rS.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Fl(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function iS(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Qi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function sS(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function aS(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function lS(t){return Mn(t)/365}function cS(t){return Mn(t)/30}function Mn(t){return at(t)/864e5}function at(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Ns(t,e){let n=null;for(let r=0;r<zl.length;r+=1){let o=zl[r];if(e[o]){let i=t[o]/e[o];if(!Wr(i)||n!==null&&n!==i)return null;n=i}else if(t[o])return null}return n}function Zi(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Lt(t,e,n){if(t===e)return!0;let r=t.length,o;if(r!==e.length)return!1;for(o=0;o<r;o+=1)if(!(n?n(t[o],e[o]):t[o]===e[o]))return!1;return!0}const uS=["sun","mon","tue","wed","thu","fri","sat"];function Wl(t,e){let n=Pt(t);return n[2]+=e*7,Ge(n)}function Be(t,e){let n=Pt(t);return n[2]+=e,Ge(n)}function Ht(t,e){let n=Pt(t);return n[6]+=e,Ge(n)}function dS(t,e){return gn(t,e)/7}function gn(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function fS(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function pS(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function hS(t,e){return(e.valueOf()-t.valueOf())/1e3}function gS(t,e){let n=Re(t),r=Re(e);return{years:0,months:0,days:Math.round(gn(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function mS(t,e){let n=co(t,e);return n!==null&&n%7===0?n/7:null}function co(t,e){return Nt(t)===Nt(e)?Math.round(gn(t,e)):null}function Re(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function vS(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function yS(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function bS(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function ES(t,e,n){let r=t.getUTCFullYear(),o=yi(t,r,e,n);if(o<1)return yi(t,r-1,e,n);let i=yi(t,r+1,e,n);return i>=1?Math.min(o,i):o}function yi(t,e,n,r){let o=Ge([e,0,1+SS(e,n,r)]),i=Re(t),s=Math.round(gn(o,i));return Math.floor(s/7)+1}function SS(t,e,n){let r=7+e-n;return-((7+Ge([t,0,r]).getUTCDay()-e)%7)+r-1}function Ul(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Gl(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Pt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Ge(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function gd(t){return!isNaN(t.valueOf())}function Nt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function md(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",Vs(e,!0)))),r}function js(t){return t.toISOString().replace(/T.*$/,"")}function CS(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function wS(t){return kn(t.getUTCHours(),2)+":"+kn(t.getUTCMinutes(),2)+":"+kn(t.getUTCSeconds(),2)}function Vs(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=Math.round(r%60);return e?`${n+kn(o,2)}:${kn(i,2)}`:`GMT${n}${o}${i?`:${kn(i,2)}`:""}`}function le(t,e,n){let r,o;return function(...i){if(!r)o=t.apply(this,i);else if(!Lt(r,i)){let s=t.apply(this,i);(!e||!e(s,o))&&(o=s)}return r=i,o}}function Ur(t,e,n){let r,o;return i=>(r?lt(r,i)||(o=t.call(this,i)):o=t.call(this,i),r=i,o)}const bi={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},uo={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Mr=/\s*([ap])\.?m\.?/i,xS=/,/g,DS=/\s+/g,TS=/\u200e/g,AS=/UTC|GMT/;class RS{constructor(e){let n={},r={},o=9;for(let i in e)i in bi?(r[i]=e[i],bi[i]<9&&(o=Math.min(bi[i],o))):(n[i]=e[i],i in uo&&(o=Math.min(uo[i],o)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=o,this.buildFormattingFunc=le(Yl)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,o){let{standardDateProps:i,extendedSettings:s}=this,a=PS(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let l=a;l>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(l=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let f=NS(i,l),p=Yl(f,s,r),h=p(e),m=p(n),g=jS(c,h,u,m),v=s.separator||o||r.defaultSeparator||"";return g?g.before+h+v+m+g.after:c+v+u}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Yl(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?o=>Vs(o.timeZoneOffset):r===0&&e.week?o=>IS(n.computeWeekNumber(o.marker),n.weekText,n.weekTextLong,n.locale,e.week):_S(t,e,n)}function _S(t,e,n){t=Object.assign({},t),e=Object.assign({},e),kS(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),o;if(e.omitZeroMinute){let i=Object.assign({},t);delete i.minute,o=new Intl.DateTimeFormat(n.locale.codes,i)}return i=>{let{marker:s}=i,a;o&&!s.getUTCMinutes()?a=o:a=r;let l=a.format(s);return MS(l,i,t,e,n)}}function kS(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function MS(t,e,n,r,o){return t=t.replace(TS,""),n.timeZoneName==="short"&&(t=OS(t,o.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Vs(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(xS,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Mr,"").trim():r.meridiem==="narrow"?t=t.replace(Mr,(i,s)=>s.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Mr,(i,s)=>`${s.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Mr,i=>i.toLocaleLowerCase())),t=t.replace(DS," "),t=t.trim(),t}function OS(t,e){let n=!1;return t=t.replace(AS,()=>(n=!0,e)),n||(t+=` ${e}`),t}function IS(t,e,n,r,o){let i=[];return o==="long"?i.push(n):(o==="short"||o==="narrow")&&i.push(e),(o==="long"||o==="short")&&i.push(" "),i.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&i.reverse(),i.join("")}function PS(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:Nt(t)!==Nt(e)?1:0}function NS(t,e){let n={};for(let r in t)(!(r in uo)||uo[r]<=e)&&(n[r]=t[r]);return n}function jS(t,e,n,r){let o=0;for(;o<t.length;){let i=t.indexOf(e,o);if(i===-1)break;let s=t.substr(0,i);o=i+e.length;let a=t.substr(o),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let u=n.substr(0,c);l=c+r.length;let f=n.substr(l);if(s===u&&a===f)return{before:s,after:a}}}return null}function ql(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function fo(t,e,n,r){let o=ql(t,n.calendarSystem),i=e?ql(e,n.calendarSystem):null;return{date:o,start:o,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class VS{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,fo(e,null,n,r))}formatRange(e,n,r,o){return r.cmdFormatter(this.cmdStr,fo(e,n,r,o))}}class $S{constructor(e){this.func=e}format(e,n,r){return this.func(fo(e,null,n,r))}formatRange(e,n,r,o){return this.func(fo(e,n,r,o))}}function Ie(t){return typeof t=="object"&&t?new RS(t):typeof t=="string"?new VS(t):typeof t=="function"?new $S(t):null}const Ql={navLinkDayClick:M,navLinkWeekClick:M,duration:ve,bootstrapFontAwesome:M,buttonIcons:M,customButtons:M,defaultAllDayEventDuration:ve,defaultTimedEventDuration:ve,nextDayThreshold:ve,scrollTime:ve,scrollTimeReset:Boolean,slotMinTime:ve,slotMaxTime:ve,dayPopoverFormat:Ie,slotDuration:ve,snapDuration:ve,headerToolbar:M,footerToolbar:M,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ie,dayHeaderClassNames:M,dayHeaderContent:M,dayHeaderDidMount:M,dayHeaderWillUnmount:M,dayCellClassNames:M,dayCellContent:M,dayCellDidMount:M,dayCellWillUnmount:M,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:M,weekNumbers:Boolean,weekNumberClassNames:M,weekNumberContent:M,weekNumberDidMount:M,weekNumberWillUnmount:M,editable:Boolean,viewClassNames:M,viewDidMount:M,viewWillUnmount:M,nowIndicator:Boolean,nowIndicatorSnap:M,nowIndicatorClassNames:M,nowIndicatorContent:M,nowIndicatorDidMount:M,nowIndicatorWillUnmount:M,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:M,locale:M,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:M,eventOrder:KE,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:M,contentHeight:M,direction:String,weekNumberFormat:Ie,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:M,initialDate:M,now:M,eventDataTransform:M,stickyHeaderDates:M,stickyFooterScrollbar:M,viewHeight:M,defaultAllDay:Boolean,eventSourceFailure:M,eventSourceSuccess:M,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:M,eventConstraint:M,eventAllow:M,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:M,eventContent:M,eventDidMount:M,eventWillUnmount:M,selectConstraint:M,selectOverlap:M,selectAllow:M,droppable:Boolean,unselectCancel:String,slotLabelFormat:M,slotLaneClassNames:M,slotLaneContent:M,slotLaneDidMount:M,slotLaneWillUnmount:M,slotLabelClassNames:M,slotLabelContent:M,slotLabelDidMount:M,slotLabelWillUnmount:M,dayMaxEvents:M,dayMaxEventRows:M,dayMinWidth:Number,slotLabelInterval:ve,allDayText:String,allDayClassNames:M,allDayContent:M,allDayDidMount:M,allDayWillUnmount:M,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ie,rerenderDelay:Number,moreLinkText:M,moreLinkHint:M,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:M,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ve,hiddenDays:M,fixedWeekCount:Boolean,validRange:M,visibleRange:M,titleFormat:M,eventInteractive:Boolean,noEventsText:String,viewHint:M,navLinkHint:M,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:M,moreLinkClassNames:M,moreLinkContent:M,moreLinkDidMount:M,moreLinkWillUnmount:M,monthStartFormat:Ie,handleCustomRendering:M,customRenderingMetaMap:M,customRenderingReplaces:Boolean},lr={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},Zl={datesSet:M,eventsSet:M,eventAdd:M,eventChange:M,eventRemove:M,windowResize:M,eventClick:M,eventMouseEnter:M,eventMouseLeave:M,select:M,unselect:M,loading:M,_unmount:M,_beforeprint:M,_afterprint:M,_noEventDrop:M,_noEventResize:M,_resize:M,_scrollRequest:M},Kl={buttonText:M,buttonHints:M,views:M,plugins:M,initialEvents:M,events:M,eventSources:M},Kt={headerToolbar:Xt,footerToolbar:Xt,buttonText:Xt,buttonHints:Xt,buttonIcons:Xt,dateIncrement:Xt,plugins:Or,events:Or,eventSources:Or,resources:Or};function Xt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?lt(t,e):t===e}function Or(t,e){return Array.isArray(t)&&Array.isArray(e)?Lt(t,e):t===e}const BS={type:String,component:M,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:M,usesMinMaxTime:Boolean,classNames:M,content:M,didMount:M,willUnmount:M};function Ei(t){return Bs(t,Kt)}function $s(t,e){let n={},r={};for(let o in e)o in t&&(n[o]=e[o](t[o]));for(let o in t)o in e||(r[o]=t[o]);return{refined:n,extra:r}}function M(t){return t}const{hasOwnProperty:po}=Object.prototype;function Bs(t,e){let n={};if(e){for(let r in e)if(e[r]===Xt){let o=[];for(let i=t.length-1;i>=0;i-=1){let s=t[i][r];if(typeof s=="object"&&s)o.unshift(s);else if(s!==void 0){n[r]=s;break}}o.length&&(n[r]=Bs(o))}}for(let r=t.length-1;r>=0;r-=1){let o=t[r];for(let i in o)i in n||(n[i]=o[i])}return n}function un(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Tt(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function vd(t){let e={};for(let n of t)e[n]=!0;return e}function Ls(t){let e=[];for(let n in t)e.push(t[n]);return e}function lt(t,e){if(t===e)return!0;for(let n in t)if(po.call(t,n)&&!(n in e))return!1;for(let n in e)if(po.call(e,n)&&t[n]!==e[n])return!1;return!0}const LS=/^on[A-Z]/;function HS(t,e){const n=zS(t,e);for(let r of n)if(!LS.test(r))return!1;return!0}function zS(t,e){let n=[];for(let r in t)po.call(t,r)&&(r in e||n.push(r));for(let r in e)po.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Si(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&FS(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function FS(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function WS(t,e=0,n,r=1){let o=[];n==null&&(n=Object.keys(t).length);for(let i=e;i<n;i+=r){let s=t[i];s!==void 0&&o.push(s)}return o}let yd={};function US(t,e){yd[t]=e}function GS(t){return new yd[t]}class YS{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Ge(e)}markerToArray(e){return Pt(e)}}US("gregory",YS);const qS=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function QS(t){let e=qS.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(gd(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class ZS{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=GS(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Ge(Ul(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=Ge(e)),n===null||!gd(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=QS(e);if(n===null)return null;let{marker:r}=n,o=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):o=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:o}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return Nt(e)===Nt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return Nt(e)===Nt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=mS(e,n),r!==null?{unit:"week",value:r}:(r=co(e,n),r!==null?{unit:"day",value:r}:(r=fS(e,n),Wr(r)?{unit:"hour",value:r}:(r=pS(e,n),Wr(r)?{unit:"minute",value:r}:(r=hS(e,n),Wr(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let o;return r.years&&(o=this.diffWholeYears(e,n),o!==null)?o/lS(r):r.months&&(o=this.diffWholeMonths(e,n),o!==null)?o/cS(r):r.days&&(o=co(e,n),o!==null)?o/Mn(r):(n.valueOf()-e.valueOf())/at(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?Re(e):n==="hour"?vS(e):n==="minute"?yS(e):n==="second"?bS(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):ES(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,o={}){return o.isEndExclusive&&(n=Ht(n,-1)),r.formatRange({marker:e,timeZoneOffset:o.forcedStartTzo!=null?o.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:o.forcedEndTzo!=null?o.forcedEndTzo:this.offsetForMarker(n)},this,o.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),md(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Ge(Ul(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Ge(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Gl(Pt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Pt(e)):null}toDate(e,n){return this.timeZone==="local"?Gl(Pt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Pt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Er{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Er.prototype.classes={};Er.prototype.iconClasses={};Er.prototype.baseIconClass="";Er.prototype.iconOverridePrefix="";function ho(t){t();let e=ae.debounceRendering,n=[];function r(o){n.push(o)}for(ae.debounceRendering=r,pr(w(KS,{}),document.createElement("div"));n.length;)n.shift()();ae.debounceRendering=e}class KS extends Ze{render(){return w("div",{})}componentDidMount(){this.setState({})}}function bd(t){let e=SE(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,o=n.apply(this,arguments);if(r){let i=[];this.shouldComponentUpdate=s=>{this.props.value!==s.value&&i.forEach(a=>{a.context=s.value,a.forceUpdate()})},this.sub=s=>{i.push(s);let a=s.componentWillUnmount;s.componentWillUnmount=()=>{i.splice(i.indexOf(s),1),a&&a.call(s)}}}return o},e}class XS{constructor(e,n,r,o){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=o,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const At=bd({});function JS(t,e,n,r,o,i,s,a,l,c,u,f,p,h){return{dateEnv:o,nowManager:i,options:n,pluginHooks:a,emitter:u,dispatch:l,getCurrentData:c,calendarApi:f,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(m){u.on("_resize",m)},removeResizeHandler(m){u.off("_resize",m)},createScrollResponder(m){return new XS(m,u,ve(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:p,unregisterInteractiveComponent:h}}class mn extends Ze{shouldComponentUpdate(e,n){return!Si(this.props,e,this.propEquality)||!Si(this.state,n,this.stateEquality)}safeSetState(e){Si(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}mn.addPropsEquality=eC;mn.addStateEquality=tC;mn.contextType=At;mn.prototype.propEquality={};mn.prototype.stateEquality={};class Se extends mn{}Se.contextType=At;function eC(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function tC(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function mt(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Hs extends Se{constructor(){super(...arguments),this.id=hn(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Ki(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&mt(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:o,defaultGenerator:i,renderProps:s}=e,a=Ed(e,[],this.handleEl);let l=!1,c,u=[],f;if(o!=null){const p=typeof o=="function"?o(s,w):o;if(p===!0)l=!0;else{const h=p&&typeof p=="object";h&&"html"in p?a.dangerouslySetInnerHTML={__html:p.html}:h&&"domNodes"in p?u=Array.prototype.slice.call(p.domNodes):(h?Wu(p):typeof p!="function")?c=p:f=p}}else l=!Ki(e.generatorName,r);return l&&i&&(c=i(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=f,w(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:o}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=o.options;if(i){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:s==null?void 0:s[r.generatorName];a&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(nC)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!Lt(e,n)){n.forEach(Os);for(let o of e)r.appendChild(o);this.currentDomNodes=e}}}Hs.addPropsEquality({elClasses:Lt,elStyle:lt,elAttrs:HS,renderProps:lt});function Ki(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Ed(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function nC(t){return!!t}const Sd=bd(0);class et extends Ze{constructor(){super(...arguments),this.InnerContent=rC.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(mt(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=oC(e.classNameGenerator,e.renderProps);if(e.children){const r=Ed(e,n,this.handleEl),o=e.children(this.InnerContent,e.renderProps,r);return e.elTag?w(e.elTag,r,o):o}else return w(Hs,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}et.contextType=Sd;function rC(t,e){const n=t.props;return w(Hs,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function oC(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class go extends Se{render(){let{props:e,context:n}=this,{options:r}=n,o={view:n.viewApi};return w(et,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Cd(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:o,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}}function Cd(t){return[`fc-${t.type}-view`,"fc-view"]}function iC(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Xl(t,e){let n=[],{start:r}=e,o,i;for(t.sort(sC),o=0;o<t.length;o+=1)i=t[o],i.start>r&&n.push({start:r,end:i.start}),i.end>r&&(r=i.end);return r<e.end&&n.push({start:r,end:e.end}),n}function sC(t,e){return t.start.valueOf()-e.start.valueOf()}function dn(t,e){let{start:n,end:r}=t,o=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(o={start:n,end:r}),o}function aC(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function zs(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Wo(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function xt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function lC(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function wd(t){let e=Math.floor(gn(t.start,t.end))||1,n=Re(t.start),r=Be(n,e);return{start:n,end:r}}function xd(t,e=ve(0)){let n=null,r=null;if(t.end){r=Re(t.end);let o=t.end.valueOf()-r.valueOf();o&&o>=at(e)&&(r=Be(r,1))}return t.start&&(n=Re(t.start),r&&r<=n&&(r=Be(n,1))),{start:n,end:r}}function Tn(t,e,n,r){return r==="year"?ve(n.diffWholeYears(t,e),"year"):r==="month"?ve(n.diffWholeMonths(t,e),"month"):gS(t,e)}class Dd{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:o}=this.props,i=o.subtract(o.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,r)}buildNext(e,n,r){let{dateEnv:o}=this.props,i=o.add(o.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,r)}build(e,n,r=!0){let{props:o}=this,i,s,a,l,c,u;return i=this.buildValidRange(),i=this.trimHiddenDays(i),r&&(e=lC(e,i)),s=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),l=this.trimHiddenDays(l),c=l,o.showNonCurrentDates||(c=dn(c,s.range)),c=this.adjustActiveRange(c),c=dn(c,i),u=zs(s.range,i),xt(l,e)||(e=l.start),{currentDate:e,validRange:i,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:c,renderRange:l,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(s.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,o=null,i=null,s=null,a;return r.duration?(o=r.duration,i=r.durationUnit,s=this.buildRangeFromDuration(e,n,o,i)):(a=this.props.dayCount)?(i="day",s=this.buildRangeFromDayCount(e,n,a)):(s=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(o=this.getFallbackDuration(),i=Zi(o).unit,s=this.buildRangeFromDuration(e,n,o,i)),{duration:o,unit:i,range:s}}getFallbackDuration(){return ve({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:o,slotMaxTime:i}=this.props,{start:s,end:a}=e;return r&&(Mn(o)<0&&(s=Re(s),s=n.add(s,o)),Mn(i)>1&&(a=Re(a),a=Be(a,-1),a=n.add(a,i))),{start:s,end:a}}buildRangeFromDuration(e,n,r,o){let{dateEnv:i,dateAlignment:s}=this.props,a,l,c;if(!s){let{dateIncrement:f}=this.props;f&&at(f)<at(r)?s=Zi(f).unit:s=o}Mn(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=Re(a));function u(){a=i.startOf(e,s),l=i.add(a,r),c={start:a,end:l}}return u(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),u()),c}buildRangeFromDayCount(e,n,r){let{dateEnv:o,dateAlignment:i}=this.props,s=0,a=e,l;i&&(a=o.startOf(a,i)),a=Re(a),a=this.skipHiddenDays(a,n),l=a;do l=Be(l,1),this.isHiddenDay(l)||(s+=1);while(s<r);return{start:a,end:l}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,o=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,i=this.refineRange(o);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?ve(1,r):e||ve({days:1}))}refineRange(e){if(e){let n=iC(e,this.props.dateEnv);return n&&(n=xd(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,o;for(this.props.weekends===!1&&e.push(0,6),o=0;o<7;o+=1)(n[o]=e.indexOf(o)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=Be(e,n);return e}}function Fs(t,e,n,r){return{instanceId:hn(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function cC(t,e,n,r){for(let o=0;o<r.length;o+=1){let i=r[o].parse(t,n);if(i){let{allDay:s}=t;return s==null&&(s=e,s==null&&(s=i.allDayGuess,s==null&&(s=!1))),{allDay:s,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}function fn(t,e,n){let{dateEnv:r,pluginHooks:o,options:i}=n,{defs:s,instances:a}=t;a=un(a,l=>!s[l.defId].recurringDef);for(let l in s){let c=s[l];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let f=uC(c,u,e,r,o.recurringTypes);for(let p of f){let h=Fs(l,{start:p,end:r.add(p,u)});a[h.instanceId]=h}}}return{defs:s,instances:a}}function uC(t,e,n,r,o){let s=o[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(s=s.map(Re)),s}const Gr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Td={start:M,end:M,date:M,allDay:Boolean},dC=Object.assign(Object.assign(Object.assign({},Gr),Td),{extendedProps:M});function Ad(t,e,n,r,o=Ws(n),i,s){let{refined:a,extra:l}=Rd(t,n,o),c=pC(e,n),u=cC(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let p=Xi(a,l,e?e.sourceId:"",u.allDay,!!u.duration,n,i);return p.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:p,instance:null}}let f=fC(a,c,n,r);if(f){let p=Xi(a,l,e?e.sourceId:"",f.allDay,f.hasEnd,n,i),h=Fs(p.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return s&&p.publicId&&s[p.publicId]&&(h.instanceId=s[p.publicId]),{def:p,instance:h}}return null}function Rd(t,e,n=Ws(e)){return $s(t,n)}function Ws(t){return Object.assign(Object.assign(Object.assign({},mo),dC),t.pluginHooks.eventRefiners)}function Xi(t,e,n,r,o,i,s){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(s&&t.id?s[t.id]:"")||hn(),sourceId:n,allDay:r,hasEnd:o,interactive:t.interactive,ui:vo(t,i),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of i.pluginHooks.eventDefMemberAdders)Object.assign(a,l(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function fC(t,e,n,r){let{allDay:o}=t,i,s=null,a=!1,l,c=null,u=t.start!=null?t.start:t.date;if(i=n.dateEnv.createMarkerMeta(u),i)s=i.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),o==null&&(e!=null?o=e:o=(!i||i.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),o&&s&&(s=Re(s)),l&&(c=l.marker,o&&(c=Re(c)),s&&c<=s&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:a,range:{start:s,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function pC(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function hr(t,e,n,r,o,i){let s=Ke(),a=Ws(n);for(let l of t){let c=Ad(l,e,n,r,a,o,i);c&&Ji(c,s)}return s}function Ji(t,e=Ke()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Us(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],o=Uo(t,i=>hC(r,i));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return Ke()}function hC(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Ke(){return{defs:{},instances:{}}}function Gs(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Uo(t,e){let n=un(t.defs,e),r=un(t.instances,o=>n[o.defId]);return{defs:n,instances:r}}function gC(t,e){let{defs:n,instances:r}=t,o={},i={};for(let s in n)e.defs[s]||(o[s]=n[s]);for(let s in r)!e.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}function mC(t,e){return Array.isArray(t)?hr(t,null,e,!0):typeof t=="object"&&t?hr([t],null,e,!0):t!=null?String(t):null}function Jl(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const mo={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:M,overlap:M,allow:M,className:Jl,classNames:Jl,color:String,backgroundColor:String,borderColor:String,textColor:String},vC={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function vo(t,e){let n=mC(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function _d(t){return t.reduce(yC,vC)}function yC(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const bC={id:String,defaultAllDay:Boolean,url:String,format:String,events:M,eventDataTransform:M,success:M,failure:M};function kd(t,e,n=Md(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:o,extra:i}=$s(r,n),s=EC(o,e);if(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:hn(),sourceDefId:s.sourceDefId,meta:s.meta,ui:vo(o,e),extendedProps:i}}return null}function Md(t){return Object.assign(Object.assign(Object.assign({},mo),bC),t.pluginHooks.eventSourceRefiners)}function EC(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let i=n[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}function SC(t,e,n,r,o){switch(e.type){case"RECEIVE_EVENTS":return CC(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,o);case"RESET_RAW_EVENTS":return wC(t,n[e.sourceId],e.rawEvents,r.activeRange,o);case"ADD_EVENTS":return xC(t,e.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Gs(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?fn(t,r.activeRange,o):t;case"REMOVE_EVENTS":return gC(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Id(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Uo(t,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return Ke();default:return t}}function CC(t,e,n,r,o,i){if(e&&n===e.latestFetchId){let s=hr(Od(o,e,i),e,i);return r&&(s=fn(s,r,i)),Gs(Id(t,e.sourceId),s)}return t}function wC(t,e,n,r,o){const{defIdMap:i,instanceIdMap:s}=TC(t);let a=hr(Od(n,e,o),e,o,!1,i,s);return fn(a,r,o)}function Od(t,e,n){let r=n.options.eventDataTransform,o=e?e.eventDataTransform:null;return o&&(t=ec(t,o)),r&&(t=ec(t,r)),t}function ec(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let o=e(r);o?n.push(o):o==null&&n.push(r)}}return n}function xC(t,e,n,r){return n&&(e=fn(e,n,r)),Gs(t,e)}function tc(t,e,n){let{defs:r}=t,o=Tt(t.instances,i=>r[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:n.createMarker(e.toDate(i.range.start,i.forcedStartTzo)),end:n.createMarker(e.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:i.forcedEndTzo}));return{defs:r,instances:o}}function Id(t,e){return Uo(t,n=>n.sourceId!==e)}function DC(t,e){return{defs:t.defs,instances:un(t.instances,n=>!e[n.instanceId])}}function TC(t){const{defs:e,instances:n}=t,r={},o={};for(let i in e){const s=e[i],{publicId:a}=s;a&&(r[a]=i)}for(let i in n){const s=n[i],a=e[s.defId],{publicId:l}=a;l&&(o[l]=i)}return{defIdMap:r,instanceIdMap:o}}class Go{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){AC(this.handlers,e,n)}off(e,n){RC(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r);for(let s of i)s.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function AC(t,e,n){(t[e]||(t[e]=[])).push(n)}function RC(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const _C={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function kC(t,e){return hr(MC(t),null,e)}function MC(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},_C),n)),e}function Pd(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Ys(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function OC(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Ys(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,GC(t,e.dateEnv)),n}function nc(t,e,n){let{dateEnv:r,options:o}=n,i=e;return t?(i=Re(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function qs(t,e,n,r){let o=yo(t.defs,e),i=Ke();for(let s in t.defs){let a=t.defs[s];i.defs[s]=IC(a,o[s],n,r)}for(let s in t.instances){let a=t.instances[s],l=i.defs[a.defId];i.instances[s]=PC(a,l,o[a.defId],n,r)}return i}function IC(t,e,n,r){let o=n.standardProps||{};o.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},t),o),{ui:Object.assign(Object.assign({},t.ui),o.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let s of r.pluginHooks.eventDefMutationAppliers)s(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function PC(t,e,n,r,o){let{dateEnv:i}=o,s=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return s&&(l.range=wd(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:nc(e.allDay,l.range.start,o)}),e.allDay&&(l.range={start:Re(l.range.start),end:Re(l.range.end)}),l.range.end<l.range.start&&(l.range.end=nc(e.allDay,l.range.start,o)),l}class xn{constructor(e,n){this.context=e,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Me{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Td)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Gr[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Gr)n=Gr[e](n),this.mutate({standardProps:{[e]:n}});else if(e in mo){let r=mo[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,o=r.createMarker(e);if(o&&this._instance){let i=this._instance.range,s=Tn(i.start,o,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:s}):this.mutate({startDelta:s})}}setEnd(e,n={}){let{dateEnv:r}=this._context,o;if(!(e!=null&&(o=r.createMarker(e),!o))&&this._instance)if(o){let i=Tn(this._instance.range.end,o,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:o}=this._context,i={allDay:r.allDay},s=o.createMarker(e),a;if(s&&!(n!=null&&(a=o.createMarker(n),!a))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=wd(l));let c=Tn(l.start,s,o,r.granularity);if(a){let u=Tn(l.end,a,o,r.granularity);iS(c,u)?this.mutate({datesDelta:c,standardProps:i}):this.mutate({startDelta:c,endDelta:u,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:c,standardProps:i})}}moveStart(e){let n=ve(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=ve(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=ve(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:o}=n;o==null&&(o=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=o),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,o=Ie(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,o,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,o,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,o=this._context,{eventStore:i}=o.getCurrentData(),s=Us(i,n.instanceId);s=qs(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,o);let l=new Me(o,r,n);this._def=s.defs[r.defId],this._instance=s.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:s}),o.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:an(s,o,n),revert(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,n=Nd(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new xn(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:o,endStr:i}=this,s={allDay:n.allDay};return n.title&&(s.title=n.title),o&&(s.start=o),i&&(s.end=i),n.publicId&&(s.id=n.publicId),n.groupId&&(s.groupId=n.groupId),n.url&&(s.url=n.url),r.display&&r.display!=="auto"&&(s.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?s.color=r.backgroundColor:(r.backgroundColor&&(s.backgroundColor=r.backgroundColor),r.borderColor&&(s.borderColor=r.borderColor)),r.textColor&&(s.textColor=r.textColor),r.classNames.length&&(s.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,n.extendedProps):s.extendedProps=n.extendedProps),s}toJSON(){return this.toPlainObject()}}function Nd(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function an(t,e,n){let{defs:r,instances:o}=t,i=[],s=n?n.instanceId:"";for(let a in o){let l=o[a],c=r[l.defId];l.instanceId!==s&&i.push(new Me(e,c,l))}return i}function rc(t,e,n,r){let o={},i={},s={},a=[],l=[],c=yo(t.defs,e);for(let u in t.defs){let f=t.defs[u];c[f.defId].display==="inverse-background"&&(f.groupId?(o[f.groupId]=[],s[f.groupId]||(s[f.groupId]=f)):i[u]=[])}for(let u in t.instances){let f=t.instances[u],p=t.defs[f.defId],h=c[p.defId],m=f.range,g=!p.allDay&&r?xd(m,r):m,v=dn(g,n);v&&(h.display==="inverse-background"?p.groupId?o[p.groupId].push(v):i[f.defId].push(v):h.display!=="none"&&(h.display==="background"?a:l).push({def:p,ui:h,instance:f,range:v,isStart:g.start&&g.start.valueOf()===v.start.valueOf(),isEnd:g.end&&g.end.valueOf()===v.end.valueOf()}))}for(let u in o){let f=o[u],p=Xl(f,n);for(let h of p){let m=s[u],g=c[m.defId];a.push({def:m,ui:g,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let u in i){let f=i[u],p=Xl(f,n);for(let h of p)a.push({def:t.defs[u],ui:c[u],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function NC(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function oc(t,e){t.fcSeg=e}function Bn(t){return t.fcSeg||t.parentNode.fcSeg||null}function yo(t,e){return Tt(t,n=>jd(n,e))}function jd(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),_d(n)}function Vd(t,e){let n=t.map(jC);return n.sort((r,o)=>XE(r,o,e)),n.map(r=>r._seg)}function jC(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,o=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:t})}function VC(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:o,ui:i}=t.eventRange,s=i.startEditable;for(let a of r)s=a(s,o,i,e);return s}function $C(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function BC(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function $d(t,e,n,r,o,i,s){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,f=t.eventRange.def,p=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=o!==!1);let h=p.range.start,m=p.range.end,g=t.start||t.eventRange.range.start,v=t.end||t.eventRange.range.end,b=Re(h).valueOf()===Re(g).valueOf(),S=Re(Ht(m,-1)).valueOf()===Re(Ht(v,-1)).valueOf();return c&&!f.allDay&&(b||S)?(g=b?h:g,v=S?m:v,u&&f.hasEnd?a.formatRange(g,v,e,{forcedStartTzo:p.forcedStartTzo,forcedEndTzo:p.forcedEndTzo}):a.format(g,e,{forcedTzo:p.forcedStartTzo})):""}function jt(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&xt(e,r.start)}}function LC(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Bd(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Ld(t,e){let{def:n,instance:r}=t.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:i,options:s}=e,{eventInteractive:a}=s;return a==null&&(a=n.interactive,a==null&&(a=!!i.hasHandlers("eventClick"))),a?hd(l=>{i.trigger("eventClick",{el:l.target,event:new Me(e,n,r),jsEvent:l,view:e.viewApi})}):{}}const HC={start:M,end:M,allDay:Boolean};function zC(t,e,n){let r=FC(t,e),{range:o}=r;if(!o.start)return null;if(!o.end){if(n==null)return null;o.end=e.add(o.start,n)}return r}function FC(t,e){let{refined:n,extra:r}=$s(t,HC),o=n.start?e.createMarkerMeta(n.start):null,i=n.end?e.createMarkerMeta(n.end):null,{allDay:s}=n;return s==null&&(s=o&&o.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:i?i.marker:null},allDay:s},r)}function WC(t,e){return aC(t.range,e.range)&&t.allDay===e.allDay&&UC(t,e)}function UC(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function GC(t,e){return Object.assign(Object.assign({},zd(t.range,e,t.allDay)),{allDay:t.allDay})}function Hd(t,e,n){return Object.assign(Object.assign({},zd(t,e,n)),{timeZone:e.timeZone})}function zd(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function YC(t,e,n){let r=Rd({editable:!1},n),o=Xi(r.refined,r.extra,"",t.allDay,!0,n);return{def:o,ui:jd(o,e),instance:Fs(o.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function qC(t,e,n){let r=!1,o=function(a){r||(r=!0,e(a))},i=function(a){r||(r=!0,n(a))},s=t(o,i);s&&typeof s.then=="function"&&s.then(o,i)}class ic extends Error{constructor(e,n){super(e),this.response=n}}function QC(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(o=>{if(o.ok)return o.json().then(i=>[i,o],()=>{throw new ic("Failure parsing JSON",o)});throw new ic("Request failed",o)})}let Ci;function Fd(){return Ci==null&&(Ci=ZC()),Ci}function ZC(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class KC extends Se{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{ho(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{ho(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,o=r||n.height==="auto"||n.contentHeight==="auto",i=!o&&n.height!=null?n.height:"",s=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Fd()||s.push("fc-liquid-hack"),e.children(s,i,o,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Fn{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function XC(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Qs(t){return{[t.component.uid]:t}}const es={};class Wn extends Ze{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:o}=n.options;o==="auto"&&(o=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let i,s;return o?(i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,ve(1,e.unit)).valueOf()-r.valueOf()):(i=r,s=1e3*60),s=Math.min(1e3*60*60*24,s),{state:{nowDate:i,todayRange:JC(i)},waitMs:s}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Wn.contextType=At;function JC(t){let e=Re(t),n=Be(e,1);return{start:e,end:n}}class ew{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),o;n=n||"day",o=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),o?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:o.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),o=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),i,s;for(let a in n)o.push(a);for(i=0;i<o.length;i+=1)if(s=n[o[i]],s&&s.singleUnit===e)return s;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=ve(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),Ie(n))}formatRange(e,n,r){let{dateEnv:o}=this.getCurrentData();return o.formatRange(o.createMarker(e),o.createMarker(n),Ie(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let o=this.getCurrentData(),i=zC(r,o.dateEnv,ve({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Pd(i,null,o))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),OC(e,n))}addEvent(e,n){if(e instanceof Me){let s=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[s.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ji({def:s,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),o;if(n instanceof xn)o=n.internalEventSource;else if(typeof n=="boolean")n&&([o]=Ls(r.eventSources));else if(n!=null){let s=this.getEventSourceById(n);if(!s)return console.warn(`Could not find an event source with ID "${n}"`),null;o=s.internalEventSource}let i=Ad(e,o,r,!1);if(i){let s=new Me(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ji(i)}),this.triggerEventAdd(s),s}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Nd(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:o}=n.eventStore;e=String(e);for(let i in r){let s=r[i];if(s.publicId===e){if(s.recurringDef)return new Me(n,s,null);for(let a in o){let l=o[a];if(l.defId===s.defId)return new Me(n,s,l)}}}return null}getEvents(){let e=this.getCurrentData();return an(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let o in n)r.push(new xn(e,n[o]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let o in r)if(r[o].publicId===e)return new xn(n,r[o]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof xn)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=kd(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new xn(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=ve(e);n&&this.trigger("_scrollRequest",{time:n})}}function tw(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Wd(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function nw(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function rw(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function ow(t,e){return{left:t.left-e.left,top:t.top-e.top}}const wi=Ke();class iw{constructor(){this.getKeysForEventDefs=le(this._getKeysForEventDefs),this.splitDateSelection=le(this._splitDateSpan),this.splitEventStore=le(this._splitEventStore),this.splitIndividualUi=le(this._splitIndividualUi),this.splitEventDrag=le(this._splitInteraction),this.splitEventResize=le(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=Tt(n,(u,f)=>this.eventUiBuilders[f]||le(sw));for(let u in n){let f=n[u],p=s[u]||wi,h=this.eventUiBuilders[u];c[u]={businessHours:f.businessHours||e.businessHours,dateSelection:o[u]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],f.ui,i[u]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:l[u]||null}}return c}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let o of r)n[o]=e}return n}_getKeysForEventDefs(e){return Tt(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:o}=e,i={};for(let s in r)for(let a of n[s])i[a]||(i[a]=Ke()),i[a].defs[s]=r[s];for(let s in o){let a=o[s];for(let l of n[a.defId])i[l]&&(i[l].instances[s]=a)}return i}_splitIndividualUi(e,n){let r={};for(let o in e)if(o)for(let i of n[o])r[i]||(r[i]={}),r[i][o]=e[o];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),o=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,o),s=a=>{n[a]||(n[a]={affectedEvents:r[a]||wi,mutatedEvents:i[a]||wi,isEvent:e.isEvent})};for(let a in r)s(a);for(let a in i)s(a)}return n}}function sw(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let o={"":_d(r)};return n&&Object.assign(o,n),o}function Ud(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!xt(r.activeRange,t))),isOther:!!(r&&!xt(r.currentRange,t)),isToday:!!(e&&xt(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function Zs(t,e){let n=["fc-day",`fc-day-${uS[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const aw=Ie({year:"numeric",month:"long",day:"numeric"}),lw=Ie({week:"long"});function bo(t,e,n="day",r=!0){const{dateEnv:o,options:i,calendarApi:s}=t;let a=o.format(e,n==="week"?lw:aw);if(i.navLinks){let l=o.toDate(e);const c=u=>{let f=n==="day"?i.navLinkDayClick:n==="week"?i.navLinkWeekClick:null;typeof f=="function"?f.call(s,o.toDate(e),u):(typeof f=="string"&&(n=f),s.zoomTo(e,n))};return Object.assign({title:ar(i.navLinkHint,[a,l],a),"data-navlink":""},r?pd(c):{onClick:c})}return{"aria-label":a}}let xi=null;function cw(){return xi===null&&(xi=uw()),xi}function uw(){let t=document.createElement("div");sr(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Os(t),n}let Di;function dw(){return Di||(Di=fw()),Di}function fw(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Gd(t);return document.body.removeChild(t),e}function Gd(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function pw(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=Gd(t),l=a.y-r-o,c=a.x-i-s,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:s,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return cw()&&n.direction==="rtl"?u.scrollbarLeft=l:u.scrollbarRight=l,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function hw(t,e=!1,n){let r=Ks(t),o=pw(t,e),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return e&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function Ks(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function gw(t){let e=Yd(t),n=t.getBoundingClientRect();for(let r of e){let o=Wd(n,r.getBoundingClientRect());if(o)n=o;else return null}return n}function Yd(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Ln{constructor(e,n,r,o){this.els=n;let i=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(i.left),o&&this.buildElVerticals(i.top)}buildElHorizontals(e){let n=[],r=[];for(let o of this.els){let i=o.getBoundingClientRect();n.push(i.left-e),r.push(i.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let o of this.els){let i=o.getBoundingClientRect();n.push(i.top-e),r.push(i.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,o=n.length,i;for(i=0;i<o;i+=1)if(e>=n[i]&&e<r[i])return i}topToIndex(e){let{tops:n,bottoms:r}=this,o=n.length,i;for(i=0;i<o;i+=1)if(e>=n[i]&&e<r[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Ir(this.tops||[],e.tops||[])&&Ir(this.bottoms||[],e.bottoms||[])&&Ir(this.lefts||[],e.lefts||[])&&Ir(this.rights||[],e.rights||[])}}function Ir(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class Xs{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class mw extends Xs{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class vw extends Xs{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class vt extends Se{constructor(){super(...arguments),this.uid=hn()}prepareHits(){}queryHit(e,n,r,o){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!He(e,".fc-event-mirror")}isValidDateDownEl(e){return!He(e,".fc-event:not(.fc-bg-event)")&&!He(e,".fc-more-link")&&!He(e,"a[data-navlink]")&&!He(e,".fc-popover")}}class qd{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const o=Object.assign(Object.assign({},n),{span:Js(n.span,e.touchingEntry.span)});r.push(o),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let o=e.span,i=n.span;o.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.start,end:i.start}},r),o.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:o.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:o}=this;n.lateral===-1?(Ti(o,n.level,n.levelCoord),Ti(r,n.level,[e])):Ti(r[n.level],n.lateral,e),this.stackCnts[ln(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:o,stackCnts:i}=this,s=n.length,a=0,l=-1,c=-1,u=null,f=0;for(let m=0;m<s;m+=1){const g=n[m];if(!o&&g>=a+this.getEntryThickness(e))break;let v=r[m],b,S=ns(v,e.span.start,ts),R=S[0]+S[1];for(;(b=v[R])&&b.span.start<e.span.end;){let C=g+this.getEntryThickness(b);C>a&&(a=C,u=b,l=m,c=R),C===a&&(f=Math.max(f,i[ln(b)]+1)),R+=1}}let p=0;if(u)for(p=l+1;p<s&&n[p]<a;)p+=1;let h=-1;return p<s&&n[p]===a&&(h=ns(r[p],e.span.end,ts)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:u,stackCnt:f,levelCoord:a,level:p,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,o=[];for(let i=0;i<r;i+=1){let s=e[i],a=n[i];for(let l of s)o.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return o}}function ts(t){return t.span.end}function ln(t){return t.index+":"+t.span.start}function yw(t){let e=[];for(let n of t){let r=[],o={span:n.span,entries:[n]};for(let i of e)Js(i.span,o.span)?o={entries:i.entries.concat(o.entries),span:bw(i.span,o.span)}:r.push(i);r.push(o),e=r}return e}function bw(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Js(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function Ti(t,e,n){t.splice(e,0,n)}function ns(t,e,n){let r=0,o=t.length;if(!o||e<n(t[r]))return[0,0];if(e>n(t[o-1]))return[o,0];for(;r<o;){let i=Math.floor(r+(o-r)/2),s=n(t[i]);if(e<s)o=i;else if(e>s)r=i+1;else return[i,1]}return[r,0]}class Ew{constructor(e,n){this.emitter=new Go}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ea={};function Sw(t,e){return!t||e>10?Ie({weekday:"short"}):e>1?Ie({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ie({weekday:"long"})}const Qd="fc-col-header-cell";function Zd(t){return t.text}class Cw extends Se{render(){let{dateEnv:e,options:n,theme:r,viewApi:o}=this.context,{props:i}=this,{date:s,dateProfile:a}=i,l=Ud(s,i.todayRange,null,a),c=[Qd].concat(Zs(l,r)),u=e.format(s,i.dayHeaderFormat),f=!l.isDisabled&&i.colCnt>1?bo(this.context,s):{},p=e.toDate(s);e.namedTimeZoneImpl&&(p=Ht(p,36e5));let h=Object.assign(Object.assign(Object.assign({date:p,view:o},i.extraRenderProps),{text:u}),l);return w(et,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":l.isDisabled?void 0:js(s)},i.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Zd,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},m=>w("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&w(m,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}const ww=Ie({weekday:"long"});class xw extends Se{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:o,options:i}=this.context,s=Be(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(s,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:s},a),{view:o}),e.extraRenderProps),{text:l});return w(et,{elTag:"th",elClasses:[Qd,...Zs(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Zd,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},u=>w("div",{className:"fc-scrollgrid-sync-inner"},w(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(s,ww)}})))}}class Kd extends Se{constructor(){super(...arguments),this.createDayHeaderFormatter=le(Dw)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:o,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return w(Wn,{unit:"day"},(a,l)=>w("tr",{role:"row"},i&&i("day"),n.map(c=>o?w(Cw,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:s}):w(xw,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:s}))))}}function Dw(t,e,n){return t||Sw(e,n)}class Xd{constructor(e,n){let r=e.start,{end:o}=e,i=[],s=[],a=-1;for(;r<o;)n.isHiddenDay(r)?i.push(a+.5):(a+=1,i.push(a),s.push(r)),r=Be(r,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(Be(e.end,-1)),o=Math.max(0,n),i=Math.min(this.cnt-1,r);return o=Math.ceil(o),i=Math.floor(i),o<=i?{firstIndex:o,lastIndex:i,isStart:n===o,isEnd:r===i}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(gn(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class Jd{constructor(e,n){let{dates:r}=e,o,i,s;if(n){for(i=r[0].getUTCDay(),o=1;o<r.length&&r[o].getUTCDay()!==i;o+=1);s=Math.ceil(r.length/o)}else s=1,o=r.length;this.rowCnt=s,this.colCnt=o,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let o=0;o<this.colCnt;o+=1)r.push(this.buildCell(n,o));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),o=[];if(r){let{firstIndex:i,lastIndex:s}=r,a=i;for(;a<=s;){let l=Math.floor(a/n),c=Math.min((l+1)*n,s+1);o.push({row:l,firstCol:a%n,lastCol:(c-1)%n,isStart:r.isStart&&a===i,isEnd:r.isEnd&&c-1===s}),a=c}}return o}}class ef{constructor(){this.sliceBusinessHours=le(this._sliceBusinessHours),this.sliceDateSelection=le(this._sliceDateSpan),this.sliceEventStore=le(this._sliceEventStore),this.sliceEventDrag=le(this._sliceInteraction),this.sliceEventResize=le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,o,...i){let{eventUiBases:s}=e,a=this.sliceEventStore(e.eventStore,s,n,r,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,s,o,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,o,...i),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,n,r,...i),eventResize:this.sliceEventResize(e.eventResize,s,n,r,...i),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,o,...i){return this._sliceDateSpan({range:{start:e,end:Ht(e,1)},allDay:!1},n,r,{},o,...i)}_sliceBusinessHours(e,n,r,o,...i){return e?this._sliceEventStore(fn(e,Pr(n,!!r),o),{},n,r,...i).bg:[]}_sliceEventStore(e,n,r,o,...i){if(e){let s=rc(e,n,Pr(r,!!o),o);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,o,...i){if(!e)return null;let s=rc(e.mutatedEvents,n,Pr(r,!!o),o);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,o,i,...s){if(!e)return[];let a=Pr(n,!!r),l=dn(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let c=YC(e,o,i),u=this.sliceRange(e.range,...s);for(let f of u)f.eventRange=c;return u}return[]}sliceEventRanges(e,n){let r=[];for(let o of e)r.push(...this.sliceEventRange(o,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:Be(r.start,1)});let o=this.sliceRange(r,...n);for(let i of o)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return o}}function Pr(t,e){let n=t.activeRange;return e?n:{start:Ht(n.start,t.slotMinTime.milliseconds),end:Ht(n.end,t.slotMaxTime.milliseconds-864e5)}}function tf(t,e,n){let{instances:r}=t.mutatedEvents;for(let o in r)if(!Wo(e.validRange,r[o].range))return!1;return nf({eventDrag:t},n)}function Tw(t,e,n){return Wo(e.validRange,t.range)?nf({dateSelection:t},n):!1}function nf(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||Aw)(r,e)}function Aw(t,e,n={},r){return!(t.eventDrag&&!Rw(t,e,n,r)||t.dateSelection&&!_w(t,e,n,r))}function Rw(t,e,n,r){let o=e.getCurrentData(),i=t.eventDrag,s=i.mutatedEvents,a=s.defs,l=s.instances,c=yo(a,i.isEvent?t.eventUiBases:{"":o.selectionConfig});r&&(c=Tt(c,r));let u=DC(t.eventStore,i.affectedEvents.instances),f=u.defs,p=u.instances,h=yo(f,t.eventUiBases);for(let m in l){let g=l[m],v=g.range,b=c[g.defId],S=a[g.defId];if(!rf(b.constraints,v,u,t.businessHours,e))return!1;let{eventOverlap:R}=e.options,C=typeof R=="function"?R:null;for(let T in p){let k=p[T];if(zs(v,k.range)&&(h[k.defId].overlap===!1&&i.isEvent||b.overlap===!1||C&&!C(new Me(e,f[k.defId],k),new Me(e,S,g))))return!1}let A=o.eventStore;for(let T of b.allows){let k=Object.assign(Object.assign({},n),{range:g.range,allDay:S.allDay}),P=A.defs[S.defId],H=A.instances[m],W;if(P?W=new Me(e,P,H):W=new Me(e,S),!T(Ys(k,e),W))return!1}}return!0}function _w(t,e,n,r){let o=t.eventStore,i=o.defs,s=o.instances,a=t.dateSelection,l=a.range,{selectionConfig:c}=e.getCurrentData();if(r&&(c=r(c)),!rf(c.constraints,l,o,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,f=typeof u=="function"?u:null;for(let p in s){let h=s[p];if(zs(l,h.range)&&(c.overlap===!1||f&&!f(new Me(e,i[h.defId],h),null)))return!1}for(let p of c.allows){let h=Object.assign(Object.assign({},n),a);if(!p(Ys(h,e),null))return!1}return!0}function rf(t,e,n,r,o){for(let i of t)if(!Mw(kw(i,e,n,r,o),e))return!1;return!0}function kw(t,e,n,r,o){return t==="businessHours"?Ai(fn(r,e,o)):typeof t=="string"?Ai(Uo(n,i=>i.groupId===t)):typeof t=="object"&&t?Ai(fn(t,e,o)):[]}function Ai(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Mw(t,e){for(let n of t)if(Wo(n,e))return!0;return!1}const Nr=/^(visible|hidden)$/;class Ow extends Se{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,mt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,o=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),w("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:o&&-(e.overcomeLeft||0)||"",right:o&&-(e.overcomeRight||0)||"",bottom:o&&-(e.overcomeBottom||0)||"",marginLeft:!o&&-(e.overcomeLeft||0)||"",marginRight:!o&&-(e.overcomeRight||0)||"",marginBottom:!o&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Nr.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let o=0;o<r.length;o+=1)if(r[o].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Nr.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let o=0;o<r.length;o+=1)if(r[o].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Nr.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Nr.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class wt{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:o,currentMap:i}=this,s=!1,a=!1;n!==null?(s=r in i,i[r]=n,o[r]=(o[r]||0)+1,a=!0):(o[r]-=1,o[r]||(delete i[r],delete this.callbackMap[r],s=!0)),this.masterCallback&&(s&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return WS(this.currentMap,e,n,r)}getAll(){return Ls(this.currentMap)}}function Iw(t){let e=zE(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,nS(r));return Math.ceil(n)}function of(t,e){return t.liquid&&e.liquid}function Pw(t,e){return e.maxHeight!=null||of(t,e)}function Nw(t,e,n,r){let{expandRows:o}=n;return typeof e.content=="function"?e.content(n):w("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,w(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function jw(t,e){return Lt(t,e,lt)}function Vw(t,e){let n=[];for(let r of t){let o=r.span||1;for(let i=0;i<o;i+=1)n.push(w("col",{style:{width:r.width==="shrink"?$w(e):r.width||"",minWidth:r.minWidth||""}}))}return w("colgroup",{},...n)}function $w(t){return t??4}function Bw(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Lw(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Hw(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function rs(t){return w("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Eo(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function sf(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class ta extends Se{constructor(){super(...arguments),this.processCols=le(e=>e,jw),this.renderMicroColGroup=le(Vw),this.scrollerRefs=new wt,this.scrollerElRefs=new wt(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,o=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,n.shrinkWidth),a=Lw(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l=o.length,c=0,u,f=[],p=[],h=[];for(;c<l&&(u=o[c]).type==="header";)f.push(this.renderSection(u,s,!0)),c+=1;for(;c<l&&(u=o[c]).type==="body";)p.push(this.renderSection(u,s,!1)),c+=1;for(;c<l&&(u=o[c]).type==="footer";)h.push(this.renderSection(u,s,!0)),c+=1;let m=!Fd();const g={role:"rowgroup"};return w("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!m&&f.length)&&w("thead",g,...f),!!(!m&&p.length)&&w("tbody",g,...p),!!(!m&&h.length)&&w("tfoot",g,...h),m&&w("tbody",g,...f,...p,...h))}renderSection(e,n,r){return"outerContent"in e?w(Ae,{key:e.key},e.outerContent):w("tr",{key:e.key,role:"presentation",className:Hw(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,o){if("outerContent"in r)return r.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,c=Pw(i,e),u=of(i,e),f=i.liquid?s?"scroll":c?"auto":"hidden":"visible",p=e.key,h=Nw(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&a[p]!==void 0?a[p]:null,clientHeight:l[p]!==void 0?l[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},o);return w(o?"th":"td",{ref:r.elRef,role:"presentation"},w("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},w(Ow,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:f,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=zw(this.props.sections,n);r&&mt(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Bw(this.props.cols)?Iw(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=dw(),{scrollerRefs:n,scrollerElRefs:r}=this,o=!1,i={},s={};for(let a in n.currentMap){let l=n.currentMap[a];if(l&&l.needsYScrolling()){o=!0;break}}for(let a of this.props.sections){let l=a.key,c=r.currentMap[l];if(c){let u=c.parentNode;i[l]=Math.floor(u.getBoundingClientRect().width-(o?e.y:0)),s[l]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:i,scrollerClientHeights:s}}}ta.addStateEquality({scrollerClientWidths:lt,scrollerClientHeights:lt});function zw(t,e){for(let n of t)if(n.key===e)return n;return null}class na extends Se{constructor(){super(...arguments),this.buildPublicEvent=le((e,n,r)=>new Me(e,n,r)),this.handleEl=e=>{this.el=e,mt(this.props.elRef,e),e&&oc(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:o}=e,{eventRange:i}=o,{ui:s}=i,a={event:this.buildPublicEvent(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&VC(o,n),isStartResizable:!e.disableResizing&&$C(o,n),isEndResizable:!e.disableResizing&&BC(o),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!o.isStart,isEnd:!!o.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return w(et,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...LC(a),...o.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&oc(this.el,this.props.seg)}}class ra extends Se{render(){let{props:e,context:n}=this,{options:r}=n,{seg:o}=e,{ui:i}=o.eventRange,s=r.eventTimeFormat||e.defaultTimeFormat,a=$d(o,s,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return w(na,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Ld(o,n),defaultGenerator:Fw,timeText:a}),(l,c)=>w(Ae,null,w(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&w("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&w("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}ra.addPropsEquality({seg:lt});function Fw(t){return w("div",{className:"fc-event-main-frame"},t.timeText&&w("div",{className:"fc-event-time"},t.timeText),w("div",{className:"fc-event-title-container"},w("div",{className:"fc-event-title fc-sticky"},t.event.title||w(Ae,null," "))))}const oa=t=>w(At.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return w(et,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}),Ww=Ie({day:"numeric"});class ia extends Se{constructor(){super(...arguments),this.refineRenderProps=Ur(Uw)}render(){let{props:e,context:n}=this,{options:r}=n,o=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return w(et,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),o.isDisabled?{}:{"data-date":js(e.date)}),elClasses:[...Zs(o,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:o,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:o.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}}function sa(t){return!!(t.dayCellContent||Ki("dayCellContent",t))}function Uw(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:o}=t,i=Ud(e,t.todayRange,null,r),s=t.showDayNumber?n.format(e,o?t.monthStartFormat:Ww):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},i),{isMonthStart:o,dayNumberText:s}),t.extraRenderProps)}class af extends Se{render(){let{props:e}=this,{seg:n}=e;return w(na,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Gw,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Gw(t){let{title:e}=t.event;return e&&w("div",{className:"fc-event-title"},t.event.title)}function lf(t){return w("div",{className:`fc-${t}`})}const cf=t=>w(At.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:o}=t,i=r.weekNumberFormat||t.defaultFormat,s=n.computeWeekNumber(o),a=n.format(o,i),l={num:s,text:a,date:o};return w(et,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:l,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Yw,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function Yw(t){return t.text}const Ri=10;class qw extends Se{constructor(){super(...arguments),this.state={titleId:zo()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&mt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=dd(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:o}=this,i=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return RE(w("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),w("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},w("span",{className:"fc-popover-title",id:o.titleId},r.title),w("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),w("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:o}=this,i=gw(n);if(i){let s=o.getBoundingClientRect(),a=r?He(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-s.width:i.left;a=Math.max(a,Ri),l=Math.min(l,document.documentElement.clientWidth-Ri-s.width),l=Math.max(l,Ri);let c=o.offsetParent.getBoundingClientRect();sr(o,{top:a-c.top,left:l-c.left})}}}class Qw extends vt{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:o,todayRange:i,dateProfile:s}=r,a=n.format(o,e.dayPopoverFormat);return w(ia,{elRef:this.handleRootEl,date:o,dateProfile:s,todayRange:i},(l,c,u)=>w(qw,{elRef:u.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},sa(e)&&w(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,o){let{rootEl:i,props:s}=this;return e>=0&&e<r&&n>=0&&n<o?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:r,bottom:o},layer:1}:null}}class uf extends Se{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:zo()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&mt(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:o}=r.options,i=sc(n).start;function s(a){let{def:l,instance:c,range:u}=a.eventRange;return{event:new Me(r,l,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:a.isStart,isEnd:a.isEnd}}typeof o=="function"&&(o=o({date:i,allDay:!!n.allDayDate,allSegs:n.allSegs.map(s),hiddenSegs:n.hiddenSegs.map(s),jsEvent:e,view:r.viewApi})),!o||o==="popover"?this.setState({isPopoverOpen:!0}):typeof o=="string"&&r.calendarApi.zoomTo(i,o)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return w(At.Consumer,null,r=>{let{viewApi:o,options:i,calendarApi:s}=r,{moreLinkText:a}=i,{moreCnt:l}=e,c=sc(e),u=typeof a=="function"?a.call(s,l):`+${l} ${a}`,f=ar(i.moreLinkHint,[l],u),p={num:l,shortText:`+${l}`,text:u,view:o};return w(Ae,null,!!e.moreCnt&&w(et,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),pd(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Zw,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),n.isPopoverOpen&&w(Qw,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=He(this.linkEl,".fc-view-harness"))}}function Zw(t){return t.text}function sc(t){if(t.allDayDate)return{start:t.allDayDate,end:Be(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:df(e),end:Xw(e)}}function df(t){return t.reduce(Kw).eventRange.range.start}function Kw(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Xw(t){return t.reduce(Jw).eventRange.range.end}function Jw(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class ex{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class tx extends ex{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const nx=[],ff={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},pf=Object.assign(Object.assign({},ff),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function rx(t){let e=t.length>0?t[0].code:"en",n=nx.concat(t),r={en:pf};for(let o of n)r[o.code]=o;return{map:r,defaultCode:e}}function hf(t,e){return typeof t=="object"&&!Array.isArray(t)?gf(t.code,[t.code],t):ox(t,e)}function ox(t,e){let n=[].concat(t||[]),r=ix(n,e)||pf;return gf(t,n,r)}function ix(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let o=r.length;o>0;o-=1){let i=r.slice(0,o).join("-");if(e[i])return e[i]}}return null}function gf(t,e,n){let r=Bs([ff,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:t,codes:e,week:o,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Rt(t){return{id:hn(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function sx(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(i){for(let s of i){const a=s.name,l=n[a];l===void 0?(n[a]=s.id,o(s.deps),r=lx(r,s)):l!==s.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&o(t),o(e),r}function ax(){let t=[],e=[],n;return(r,o)=>((!n||!Lt(r,t)||!Lt(o,e))&&(n=sx(r,o)),t=r,e=o,n)}function lx(t,e){return{premiumReleaseDate:cx(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function cx(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Wt extends Er{}Wt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Wt.prototype.baseIconClass="fc-icon";Wt.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};Wt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Wt.prototype.iconOverrideOption="buttonIcons";Wt.prototype.iconOverrideCustomButtonOption="icon";Wt.prototype.iconOverridePrefix="fc-icon-";function ux(t,e){let n={},r;for(r in t)os(r,n,t,e);for(r in e)os(r,n,t,e);return n}function os(t,e,n,r){if(e[t])return e[t];let o=dx(t,e,n,r);return o&&(e[t]=o),o}function dx(t,e,n,r){let o=n[t],i=r[t],s=u=>o&&o[u]!==null?o[u]:i&&i[u]!==null?i[u]:null,a=s("component"),l=s("superType"),c=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");c=os(l,e,n,r)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),i?i.rawOptions:{})}:null}function ac(t){return Tt(t,fx)}function fx(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=lc(e):n&&!(n.prototype instanceof Se)&&(n=lc(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function lc(t){return e=>w(At.Consumer,null,n=>w(et,{elTag:"div",elClasses:Cd(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function px(t,e,n,r){let o=ac(t),i=ac(e.views),s=ux(o,i);return Tt(s,a=>hx(a,i,e,n,r))}function hx(t,e,n,r,o){let i=t.overrides.duration||t.defaults.duration||r.duration||n.duration,s=null,a="",l="",c={};if(i&&(s=gx(i),s)){let p=Zi(s);a=p.unit,p.value===1&&(l=a,c=e[a]?e[a].rawOptions:{})}let u=p=>{let h=p.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&h[m]!=null?h[m]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null},f=p=>{let h=p.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&h[m]!=null?h[m]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null};return{type:t.type,component:t.component,duration:s,durationUnit:a,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(o)||t.defaults.buttonText||u(lr)||t.type,buttonTitleOverride:f(r)||f(n)||t.overrides.buttonHint,buttonTitleDefault:f(o)||t.defaults.buttonHint||f(lr)}}let cc={};function gx(t){let e=JSON.stringify(t),n=cc[e];return n===void 0&&(n=ve(t),cc[e]=n),n}function mx(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function vx(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function yx(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function bx(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Ex(t,e,n,r){let o;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(o=r.buildPrev(t,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(t,n),o.isValid)return o;break}return t}function Sx(t,e,n){let r=e?e.activeRange:null;return vf({},Rx(t,n),r,n)}function Cx(t,e,n,r){let o=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return vf(t,e.sources,o,r);case"REMOVE_EVENT_SOURCE":return xx(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?yf(t,o,r):t;case"FETCH_EVENT_SOURCES":return aa(t,e.sourceIds?vd(e.sourceIds):bf(t,r),o,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Ax(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function wx(t,e,n){let r=e?e.activeRange:null;return aa(t,bf(t,n),r,!0,n)}function mf(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function vf(t,e,n,r){let o={};for(let i of e)o[i.sourceId]=i;return n&&(o=yf(o,n,r)),Object.assign(Object.assign({},t),o)}function xx(t,e){return un(t,n=>n.sourceId!==e)}function yf(t,e,n){return aa(t,un(t,r=>Dx(r,e,n)),e,!1,n)}function Dx(t,e,n){return Ef(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function aa(t,e,n,r,o){let i={};for(let s in t){let a=t[s];e[s]?i[s]=Tx(a,n,r,o):i[s]=a}return i}function Tx(t,e,n,r){let{options:o,calendarApi:i}=r,s=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=hn();return s.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;o.eventSourceSuccess&&(c=o.eventSourceSuccess.call(i,c,l.response)||c),t.success&&(c=t.success.call(i,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},l=>{let c=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(i,l),c=!0),t.failure&&(t.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Ax(t,e,n,r){let o=t[e];return o&&n===o.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):t}function bf(t,e){return un(t,n=>Ef(n,e))}function Rx(t,e){let n=Md(e),r=[].concat(t.eventSources||[]),o=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let i of r){let s=kd(i,e,n);s&&o.push(s)}return o}function Ef(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function _x(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function kx(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Mx(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Ox(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Ix(t,e,n,r,o){let i=t.headerToolbar?uc(t.headerToolbar,t,e,n,r,o):null,s=t.footerToolbar?uc(t.footerToolbar,t,e,n,r,o):null;return{header:i,footer:s}}function uc(t,e,n,r,o,i){let s={},a=[],l=!1;for(let c in t){let u=t[c],f=Px(u,e,n,r,o,i);s[c]=f.widgets,a.push(...f.viewsWithButtons),l=l||f.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function Px(t,e,n,r,o,i){let s=e.direction==="rtl",a=e.customButtons||{},l=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},f=e.buttonHints||{},p=t?t.split(" "):[],h=[],m=!1;return{widgets:p.map(v=>v.split(",").map(b=>{if(b==="title")return m=!0,{buttonName:b};let S,R,C,A,T,k;if(S=a[b])C=P=>{S.click&&S.click.call(P.target,P,P.target)},(A=r.getCustomButtonIconClass(S))||(A=r.getIconClass(b,s))||(T=S.text),k=S.hint||S.text;else if(R=o[b]){h.push(b),C=()=>{i.changeView(b)},(T=R.buttonTextOverride)||(A=r.getIconClass(b,s))||(T=R.buttonTextDefault);let P=R.buttonTextOverride||R.buttonTextDefault;k=ar(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[P,b],P)}else if(i[b])if(C=()=>{i[b]()},(T=l[b])||(A=r.getIconClass(b,s))||(T=c[b]),b==="prevYear"||b==="nextYear"){let P=b==="prevYear"?"prev":"next";k=ar(u[P]||f[P],[c.year||"year","year"],c[b])}else k=P=>ar(u[b]||f[b],[c[P]||P,P],c[b]);return{buttonName:b,buttonClick:C,buttonIcon:A,buttonText:T,buttonHint:k}})),viewsWithButtons:h,hasTitle:m}}class Nx{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let jx={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Vx=Rt({name:"array-event-source",eventSourceDefs:[jx]});let $x={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,o=t.eventSource.meta;qC(o.bind(null,Hd(t.range,r)),i=>e({rawEvents:i}),n)}};const Bx=Rt({name:"func-event-source",eventSourceDefs:[$x]}),Lx={method:String,extraParams:M,startParam:String,endParam:String,timeZoneParam:String};let Hx={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,o=Fx(r,t.range,t.context);QC(r.method,r.url,o).then(([i,s])=>{e({rawEvents:i,response:s})},n)}};const zx=Rt({name:"json-event-source",eventSourceRefiners:Lx,eventSourceDefs:[Hx]});function Fx(t,e,n){let{dateEnv:r,options:o}=n,i,s,a,l,c={};return i=t.startParam,i==null&&(i=o.startParam),s=t.endParam,s==null&&(s=o.endParam),a=t.timeZoneParam,a==null&&(a=o.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(c,l),c[i]=r.formatIso(e.start),c[s]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}const Wx={daysOfWeek:M,startTime:ve,endTime:ve,duration:ve,startRecur:M,endRecur:M};let Ux={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=sS(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=dn(e,{start:t.startRecur,end:t.endRecur});return r?Yx(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}};const Gx=Rt({name:"simple-recurring-event",recurringTypes:[Ux],eventRefiners:Wx});function Yx(t,e,n,r,o){let i=t?vd(t):null,s=Re(o.start),a=o.end,l=[];for(e&&(e.milliseconds<0?a=Be(a,1):e.milliseconds>=1e3*60*60*24&&(s=Be(s,-1)));s<a;){let c;(!i||i[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,l.push(r.createMarker(n.toDate(c)))),s=Be(s,1)}return l}const qx=Rt({name:"change-handler",optionChangeHandlers:{events(t,e){dc([t],e)},eventSources:dc}});function dc(t,e){let n=Ls(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let o of t){let i=!1;for(let s=0;s<n.length;s+=1)if(n[s]._raw===o){n.splice(s,1),i=!0;break}i||r.push(o)}for(let o of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:o.sourceId});for(let o of r)e.calendarApi.addEventSource(o)}function Qx(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Hd(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Zx(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",an(t,e))}const Kx=[Vx,Bx,zx,Gx,qx,Rt({name:"misc",isLoadingFuncs:[t=>mf(t.eventSources)],propSetHandlers:{dateProfile:Qx,eventStore:Zx}})];class Xx{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Ms(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Jx(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,Ie(e.titleFormat||e0(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function e0(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=co(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class fc{constructor(){this.resetListeners=new Set}handleInput(e,n){const r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(const o of this.resetListeners.values())o()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class t0{constructor(e){this.computeCurrentViewData=le(this._computeCurrentViewData),this.organizeRawLocales=le(rx),this.buildLocale=le(hf),this.buildPluginHooks=ax(),this.buildDateEnv=le(n0),this.buildTheme=le(r0),this.parseToolbars=le(Ix),this.buildViewSpecs=le(px),this.buildDateProfileGenerator=Ur(o0),this.buildViewApi=le(i0),this.buildViewUiProps=Ur(l0),this.buildEventUiBySource=le(s0,lt),this.buildEventUiBases=le(a0),this.parseContextBusinessHours=Ur(c0),this.buildTitle=le(Jx),this.nowManager=new fc,this.emitter=new Go,this.actionRunner=new Xx(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=p=>{this.actionRunner.request(p)},this.props=e,this.actionRunner.pause(),this.nowManager=new fc;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(o,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=yx(r.calendarOptions,r.dateEnv,this.nowManager),l=i.dateProfileGenerator.build(a);xt(l.activeRange,a)||(a=l.currentRange.start);for(let p of r.pluginHooks.contextInit)p(s);let c=Sx(r.calendarOptions,l,s),u={dynamicOptionOverrides:n,currentViewType:o,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:Ke(),renderableEventStore:Ke(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},f=Object.assign(Object.assign({},s),u);for(let p of r.pluginHooks.reducers)Object.assign(u,p(null,null,f));_i(u,s)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:o}=this,i=bx(r.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),a=mx(r.currentViewType,e),l=this.computeCurrentViewData(a,s,n.optionOverrides,i);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(l.options);let c={nowManager:this.nowManager,dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(u)),u=vx(u,e),f=Ex(f,e,u,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!xt(f.currentRange,u))&&(u=f.currentRange.start);let p=Cx(r.eventSources,e,f,c),h=SC(r.eventStore,e,p,f,c),g=mf(p)&&!l.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:v,selectionConfig:b}=this.buildViewUiProps(c),S=this.buildEventUiBySource(p),R=this.buildEventUiBases(g.defs,v,S),C={dynamicOptionOverrides:i,currentViewType:a,currentDate:u,dateProfile:f,eventSources:p,eventStore:h,renderableEventStore:g,selectionConfig:b,eventUiBases:R,businessHours:this.parseContextBusinessHours(c),dateSelection:_x(r.dateSelection,e),eventSelection:kx(r.eventSelection,e),eventDrag:Mx(r.eventDrag,e),eventResize:Ox(r.eventResize,e)},A=Object.assign(Object.assign({},c),C);for(let P of s.pluginHooks.reducers)Object.assign(C,P(r,e,A));let T=_i(r,c),k=_i(C,c);!T&&k?o.trigger("loading",!0):T&&!k&&o.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,o=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(n.currentViewType,o,e.optionOverrides,n.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,i.options,o.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o),i),n),a=o.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=o.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=s.eventSources=wx(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=tc(s.eventStore,r.dateEnv,s.dateEnv),n.renderableEventStore=s.renderableEventStore=tc(s.renderableEventStore,r.dateEnv,s.dateEnv));for(let u in a)(this.optionsForHandling.indexOf(u)!==-1||l[u]!==c[u])&&a[u](c[u],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:o,pluginHooks:i,localeDefaults:s,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(e,n);pc(l);let c=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,a,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),f=this.buildTheme(o,i),p=this.parseToolbars(o,this.stableOptionOverrides,f,u,r);return this.stableCalendarOptionsData={calendarOptions:o,pluginHooks:i,dateEnv:c,viewSpecs:u,theme:f,toolbarConfig:p,localeDefaults:s,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:o}=Ei([lr,e,n]),i=this.organizeRawLocales(r),s=i.map,a=this.buildLocale(o||i.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],Kx),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ql),Zl),Kl),l.listenerRefiners),l.optionRefiners),u={},f=Ei([lr,a,e,n]),p={},h=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,g=!1;for(let v in f)this.optionsForRefining.indexOf(v)===-1&&(f[v]===h[v]||Kt[v]&&v in h&&Kt[v](h[v],f[v]))?p[v]=m[v]:c[v]?(p[v]=c[v](f[v]),g=!0):u[v]=h[v];return g&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:i,localeDefaults:a,extra:u}}_computeCurrentViewData(e,n,r,o){let i=n.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:a}=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,r,o);pc(a),this.nowManager.handleInput(n.dateEnv,s.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(e,n,r,o,i){let s=Ei([lr,e.optionDefaults,r,o,e.optionOverrides,i]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ql),Zl),Kl),BS),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,f=!1,p={};for(let h in s)s[h]===c[h]||Kt[h]&&Kt[h](s[h],c[h])?l[h]=u[h]:(s[h]===this.currentCalendarOptionsInput[h]||Kt[h]&&Kt[h](s[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(l[h]=this.currentCalendarOptionsRefined[h]):a[h]?l[h]=a[h](s[h]):p[h]=s[h],f=!0);return f&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function n0(t,e,n,r,o,i,s,a){let l=hf(e||s.defaultCode,s.map);return new ZS({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:a})}function r0(t,e){let n=e.themeClasses[t.themeSystem]||Wt;return new n(t)}function o0(t){let e=t.dateProfileGeneratorClass||Dd;return new e(t)}function i0(t,e,n){return new Nx(t,e,n)}function s0(t){return Tt(t,e=>e.ui)}function a0(t,e,n){let r={"":e};for(let o in t){let i=t[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function l0(t){let{options:e}=t;return{eventUiSingleBase:vo({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:vo({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function _i(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function c0(t){return kC(t.options.businessHours,t)}function pc(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class u0 extends Se{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return w("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,o=[],i=!0;for(let s of e){let{buttonName:a,buttonClick:l,buttonText:c,buttonIcon:u,buttonHint:f}=s;if(a==="title")i=!1,o.push(w("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let p=a===n.activeButton,h=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",m=[`fc-${a}-button`,r.getClass("button")];p&&m.push(r.getClass("buttonActive")),o.push(w("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:h,"aria-pressed":p,className:m.join(" "),onClick:l},c||(u?w("span",{className:u,role:"img"}):"")))}}if(o.length>1){let s=i&&r.getClass("buttonGroup")||"";return w("div",{className:s},...o)}return o[0]}}class hc extends Se{render(){let{model:e,extraClassName:n}=this.props,r=!1,o,i,s=e.sectionWidgets,a=s.center;return s.left?(r=!0,o=s.left):o=s.start,s.right?(r=!0,i=s.right):i=s.end,w("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",o||[]),this.renderSection("center",a||[]),this.renderSection("end",i||[]))}renderSection(e,n){let{props:r}=this;return w(u0,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class d0 extends Se{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,mt(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,o=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return r?n.availableWidth!==null?i=n.availableWidth/r:s=`${1/r*100}%`:i=e.height||"",w("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:o.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class f0 extends Fn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:o}=this,{context:i}=o,s=Bn(r);if(s&&o.isValidSegDownEl(n.target)){let a=He(n.target,".fc-event-forced-url"),l=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:r,event:new Me(o.context,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:i.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=fd(e.el,"click",".fc-event",this.handleSegClick)}}class p0 extends Fn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Bn(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=UE(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:o}=this,{context:i}=o,s=Bn(r);(!n||o.isValidSegDownEl(n.target))&&i.emitter.trigger(e,{el:r,event:new Me(i,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:i.viewApi})}}class h0 extends mn{constructor(){super(...arguments),this.buildViewContext=le(JS),this.buildViewPropTransformers=le(m0),this.buildToolbarProps=le(g0),this.headerRef=Fe(),this.footerRef=Fe(),this.interactionsStore={},this.state={viewLabelId:zo()},this.registerInteractiveComponent=(e,n)=>{let r=XC(e,n),s=[f0,p0].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=s,es[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete es[e.uid]},this.resizeRunner=new Ms(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,o=!1,i="",s;e.isHeightAuto||e.forPrint?i="":r.height!=null?o=!0:r.contentHeight!=null?i=r.contentHeight:s=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return w(At.Provider,{value:a},w(Wn,{unit:"day"},c=>{let u=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,c,e.viewTitle);return w(Ae,null,n.header&&w(hc,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},u)),w(d0,{liquid:o,height:i,aspectRatio:s,labeledById:l},this.renderView(e),this.buildAppendContent()),n.footer&&w(hc,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},u)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let o in r)n[o]!==e[o]&&r[o](n[o],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return w(Ae,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of i)Object.assign(o,a.transform(o,e));let s=r.component;return w(s,Object.assign({},o))}}function g0(t,e,n,r,o,i){let s=n.build(o,void 0,!1),a=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:i,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:s.isValid&&!xt(e.currentRange,o),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function m0(t){return t.map(e=>new e)}let v0=class extends ew{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;ho(()=>{pr(w(KC,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(o,i,s,a)=>(this.setClassNames(o),this.setHeight(i),w(Sd.Provider,{value:this.customContentRenderId},w(h0,Object.assign({isHeightAuto:s,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,pr(null,this.el),this.setClassNames([]),this.setHeight(""))},jE(e),this.el=e,this.renderRunner=new Ms(this.handleRenderRequest),new t0({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ho(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!Lt(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){ud(this.el,"height",e)}};const y0=parseInt(String(oe.version).split(".")[0]),b0=y0<18;class Sf extends oe.Component{constructor(){super(...arguments),this.elRef=oe.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const e=[];for(const n of this.state.customRenderingMap.values())e.push(oe.createElement(E0,{key:n.id,customRendering:n}));return oe.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new tx;this.handleCustomRendering=e.handle.bind(e),this.calendar=new v0(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{en.flushSync(()=>{})});let n;e.subscribe(r=>{const o=Date.now(),i=!n;(b0||i||this.isUpdating||this.isUnmounting||o-n<100?Cf:en.flushSync)(()=>{this.setState({customRenderingMap:r},()=>{n=o,i?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}Sf.act=Cf;class E0 extends oe.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:n}=e,r=typeof n=="function"?n(e.renderProps):n;return en.createPortal(r,e.containerEl)}}function Cf(t){t()}class S0 extends vt{constructor(){super(...arguments),this.headerElRef=Fe()}renderSimpleLayout(e,n){let{props:r,context:o}=this,i=[],s=Eo(o.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),w(go,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},w(ta,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,n,r,o){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:a}=this,l=!s.forPrint&&Eo(a.options),c=!s.forPrint&&sf(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:rs}]}),w(go,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},w(i,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:r,minWidth:o}]}],sections:u}))}}function Yr(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function jr(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function gc(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const wf=Ie({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function xf(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Df extends Se{render(){let{props:e}=this;return w(ra,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:wf,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Tf extends Se{render(){let{props:e,context:n}=this,{options:r}=n,{seg:o}=e,i=r.eventTimeFormat||wf,s=$d(o,i,n,!0,e.defaultDisplayEventEnd);return w(na,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Ld(e.seg,n),defaultGenerator:C0,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function C0(t){return w(Ae,null,w("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&w("div",{className:"fc-event-time"},t.timeText),w("div",{className:"fc-event-title"},t.event.title||w(Ae,null," ")))}class w0 extends Se{constructor(){super(...arguments),this.compileSegs=le(x0)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return w(uf,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let o=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return w(Ae,null,n.map(i=>{let s=i.eventRange.instance.instanceId;return w("div",{className:"fc-daygrid-event-harness",key:s,style:{visibility:o[s]?"hidden":""}},xf(i)?w(Tf,Object.assign({seg:i,isDragging:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},jt(i,e.todayRange))):w(Df,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},jt(i,e.todayRange))))}))}})}}function x0(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const D0=Ie({week:"narrow"});class T0 extends vt{constructor(){super(...arguments),this.rootElRef=Fe(),this.state={dayNumberId:zo()},this.handleRootEl=e=>{mt(this.rootElRef,e),mt(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:o}=this,{options:i,dateEnv:s}=e,{date:a,dateProfile:l}=n;const c=n.showDayNumber&&R0(a,l.currentRange,s);return w(ia,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:A0,date:a,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,f)=>w("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&w(cf,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:bo(e,a,"week"),date:a,defaultFormat:D0}),!f.isDisabled&&(n.showDayNumber||sa(i)||n.forceDayTop)?w("div",{className:"fc-daygrid-day-top"},w(u,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},bo(e,a)),{id:r.dayNumberId})})):n.showDayNumber?w("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},w("a",{className:"fc-daygrid-day-number"}," ")):void 0,w("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,w("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},w(w0,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),w("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function A0(t){return t.dayNumberText||w(Ae,null," ")}function R0(t,e,n){const{start:r,end:o}=e,i=Ht(o,-1),s=n.getYear(r),a=n.getMonth(r),l=n.getYear(i),c=n.getMonth(i);return!(s===l&&a===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<o.valueOf())}function Af(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Rf(t){return Af(t)+":"+t.lastCol}function _0(t,e,n,r,o,i,s){let a=new O0(b=>{let S=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return o[S]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=i,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let b=0;b<t.length;b+=1){let S=t[b],R=Rf(S);o[R]!=null?l.push({index:b,span:{start:S.firstCol,end:S.lastCol+1}}):c.push(S)}let u=a.addSegs(l),f=a.toRects(),{singleColPlacements:p,multiColPlacements:h,leftoverMargins:m}=k0(f,t,s),g=[],v=[];for(let b of c){h[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=b.firstCol;S<=b.lastCol;S+=1)p[S].push({seg:On(b,S,S+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<s.length;b+=1)g.push(0);for(let b of u){let S=t[b.index],R=b.span;h[R.start].push({seg:On(S,R.start,R.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=R.start;C<R.end;C+=1)g[C]+=1,p[C].push({seg:On(S,C,C+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<s.length;b+=1)v.push(m[b]);return{singleColPlacements:p,multiColPlacements:h,moreCnts:g,moreMarginTops:v}}function k0(t,e,n){let r=M0(t,n.length),o=[],i=[],s=[];for(let a=0;a<n.length;a+=1){let l=r[a],c=[],u=0,f=0;for(let h of l){let m=e[h.index];c.push({seg:On(m,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-u}),u=h.levelCoord+h.thickness}let p=[];u=0,f=0;for(let h of l){let m=e[h.index],g=h.span.end-h.span.start>1,v=h.span.start===a;f+=h.levelCoord-u,u=h.levelCoord+h.thickness,g?(f+=h.thickness,v&&p.push({seg:On(m,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):v&&(p.push({seg:On(m,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:f}),f=0)}o.push(c),i.push(p),s.push(f)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:s}}function M0(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let o=r.span.start;o<r.span.end;o+=1)n[o].push(r);return n}function On(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let o=t.eventRange,i=o.range,s=dn(i,{start:r[e].date,end:Be(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:t.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:t.isEnd&&s.end.valueOf()===i.end.valueOf()})}class O0 extends qd{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,o=i=>!this.forceHidden[ln(i)];for(let i=0;i<r.length;i+=1)r[i]=r[i].filter(o);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:o,forceHidden:i}=this,{touchingEntry:s,touchingLevel:a,touchingLateral:l}=e;if(this.hiddenConsumes&&s){const c=ln(s);if(!i[c])if(this.allowReslicing){const u=Object.assign(Object.assign({},s),{span:Js(s.span,n.span)}),f=ln(u);i[f]=!0,o[a][l]=u,r.push(u),this.splitEntry(s,n,r)}else i[c]=!0,r.push(s)}super.handleInvalidInsertion(e,n,r)}}class _f extends vt{constructor(){super(...arguments),this.cellElRefs=new wt,this.frameElRefs=new wt,this.fgElRefs=new wt,this.segHarnessRefs=new wt,this.rootElRef=Fe(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:o}=r,i=e.cells.length,s=jr(e.businessHourSegs,i),a=jr(e.bgEventSegs,i),l=jr(this.getHighlightSegs(),i),c=jr(this.getMirrorSegs(),i),{singleColPlacements:u,multiColPlacements:f,moreCnts:p,moreMarginTops:h}=_0(Vd(e.fgEventSegs,o.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,o.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return w("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((g,v)=>{let b=this.renderFgSegs(v,e.forPrint?u[v]:f[v],e.todayRange,m),S=this.renderFgSegs(v,I0(c[v],f),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return w(T0,{key:g.key,elRef:this.cellElRefs.createRef(g.key),innerElRef:this.frameElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,moreCnt:p[v],moreMarginTop:h[v],singlePlacements:u[v],fgContentElRef:this.fgElRefs.createRef(g.key),fgContent:w(Ae,null,w(Ae,null,b),w(Ae,null,S)),bgContent:w(Ae,null,this.renderFillSegs(l[v],"highlight"),this.renderFillSegs(s[v],"non-business"),this.renderFillSegs(a[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!lt(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,o,i,s,a){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:u}=this.state,f=this.props.cells.length===1,p=i||s||a,h=[];if(u)for(let m of n){let{seg:g}=m,{instanceId:v}=g.eventRange.instance,b=m.isVisible&&!o[v],S=m.isAbsolute,R="",C="";S&&(l.isRtl?(C=0,R=u.lefts[g.lastCol]-u.lefts[g.firstCol]):(R=0,C=u.rights[g.firstCol]-u.rights[g.lastCol])),h.push(w("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:Af(g),ref:p?null:this.segHarnessRefs.createRef(Rf(g)),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:R,right:C}},xf(g)?w(Tf,Object.assign({seg:g,isDragging:i,isSelected:v===c,defaultDisplayEventEnd:f},jt(g,r))):w(Df,Object.assign({seg:g,isDragging:i,isResizing:s,isDateSelecting:a,isSelected:v===c,defaultDisplayEventEnd:f},jt(g,r)))))}return h}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:o}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let a of e){let l=r?{right:0,left:i.lefts[a.lastCol]-i.lefts[a.firstCol]}:{left:0,right:i.rights[a.firstCol]-i.rights[a.lastCol]};s.push(w("div",{key:Bd(a.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?w(af,Object.assign({seg:a},jt(a,o))):lf(n)))}return w(Ae,{},...s)}updateSizing(e){let{props:n,state:r,frameElRefs:o}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let l=n.cells.map(c=>o.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,u=new Ln(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new Ln(c,l,!0,!1)})}}const i=this.state.segHeights,s=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),s),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let o=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,o)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}_f.addStateEquality({segHeights:lt});function I0(t,e){if(!t.length)return[];let n=P0(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function P0(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class N0 extends vt{constructor(){super(...arguments),this.splitBusinessHourSegs=le(Yr),this.splitBgEventSegs=le(j0),this.splitFgEventSegs=le(Yr),this.splitDateSelectionSegs=le(Yr),this.splitEventDrag=le(gc),this.splitEventResize=le(gc),this.rowRefs=new wt}render(){let{props:e,context:n}=this,r=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),u=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return w(Wn,{unit:"day"},(f,p)=>w(Ae,null,e.cells.map((h,m)=>w(_f,{ref:this.rowRefs.createRef(m),key:h.length?h[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:p,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:o[m],eventSelection:e.eventSelection,bgEventSegs:i[m],fgEventSegs:s[m],dateSelectionSegs:a[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Ln(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Ln(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:o}=this,i=r.leftToIndex(e),s=o.topToIndex(n);if(s!=null&&i!=null){let a=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:r.lefts[i],right:r.rights[i],top:o.tops[s],bottom:o.bottoms[s]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,o=Be(r,1);return{start:r,end:o}}}function j0(t,e){return Yr(t.filter(V0),e)}function V0(t){return t.eventRange.def.allDay}class $0 extends vt{constructor(){super(...arguments),this.elRef=Fe(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:o}=e,i=r===!0||n===!0;i&&!o&&(i=!1,n=null,r=null);let s=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"];return w("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},w("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:o?e.clientHeight:""}},e.colGroupNode,w("tbody",{role:"presentation"},w(N0,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=B0(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),o=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=o?o+1:0}this.needsScrollReset=!1}}}function B0(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${CS(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${js(e.currentDate)}"]`)),n}class L0 extends ef{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class kf extends vt{constructor(){super(...arguments),this.slicer=new L0,this.tableRef=Fe()}render(){let{props:e,context:n}=this;return w($0,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class H0 extends S0{constructor(){super(...arguments),this.buildDayTableModel=le(z0),this.headerRef=Fe(),this.tableRef=Fe()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,o=this.buildDayTableModel(r.dateProfile,n),i=e.dayHeaders&&w(Kd,{ref:this.headerRef,dateProfile:r.dateProfile,dates:o.headerDates,datesRepDistinctDays:o.rowCnt===1}),s=a=>w(kf,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:o,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,o.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function z0(t,e){let n=new Xd(t.renderRange,e);return new Jd(n,/year|month|week/.test(t.currentRangeUnit))}class F0 extends Dd{buildRenderRange(e,n,r){let o=super.buildRenderRange(e,n,r),{props:i}=this;return W0({currentRange:o,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function W0(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:o}=n,i;if(t.snapToWeek&&(r=e.startOfWeek(r),i=e.startOfWeek(o),i.valueOf()!==o.valueOf()&&(o=Wl(i,1))),t.fixedWeekCount){let s=e.startOfWeek(e.startOfMonth(Be(n.end,-1))),a=Math.ceil(dS(s,o));o=Wl(o,6-a)}return{start:r,end:o}}var U0=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';ks(U0);var G0=Rt({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:H0,dateProfileGeneratorClass:F0},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class Y0 extends iw{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?NC(e)?["timed","allDay"]:["allDay"]:["timed"]}}const q0=Ie({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Mf(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return w(At.Consumer,null,n=>{if(!t.isLabeled)return w("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:o,viewApi:i}=n,s=o.slotLabelFormat==null?q0:Array.isArray(o.slotLabelFormat)?Ie(o.slotLabelFormat[0]):Ie(o.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:i,text:r.format(t.date,s)};return w(et,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:Q0,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},l=>w("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},w(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Q0(t){return t.text}class Z0 extends Se{render(){return this.props.slatMetas.map(e=>w("tr",{key:e.key},w(Mf,Object.assign({},e))))}}const K0=Ie({week:"short"}),X0=5;class J0 extends vt{constructor(){super(...arguments),this.allDaySplitter=new Y0,this.headerElRef=Fe(),this.rootElRef=Fe(),this.scrollerElRef=Fe(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:o}=this.props,i=o.renderRange,a=gn(i.start,i.end)===1?bo(this.context,i.start,"week"):{};return r.weekNumbers&&e==="day"?w(cf,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:K0},l=>w("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},w(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):w("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},w("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,o={text:n.allDayText,view:r};return w(et,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:o,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:eD,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},i=>w("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},w(i,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:o,props:i}=this,s=[],a=Eo(o.options);return e&&s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(s.push({type:"body",key:"all-day",chunk:{content:n}}),s.push({type:"body",key:"all-day-divider",outerContent:w("tr",{role:"presentation",className:"fc-scrollgrid-section"},w("td",{className:"fc-timegrid-divider "+o.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!o.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),w(go,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:o.viewSpec},w(ta,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,n,r,o,i,s,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:u}=this,f=!u.forPrint&&Eo(c.options),p=!u.forPrint&&sf(c.options),h=[];e&&h.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>w("tr",{role:"presentation"},this.renderHeadAxis("day",g.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>w("tr",{role:"presentation"},this.renderTableRowAxis(g.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:w("tr",{role:"presentation",className:"fc-scrollgrid-section"},w("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:g=>w("div",{className:"fc-timegrid-axis-chunk"},w("table",{"aria-hidden":!0,style:{height:g.expandRows?g.clientHeight:""}},g.tableColGroupNode,w("tbody",null,w(Z0,{slatMetas:s}))),w("div",{className:"fc-timegrid-now-indicator-container"},w(Wn,{unit:m?"minute":"day"},v=>{let b=m&&a&&a.safeComputeTop(v);return typeof b=="number"?w(oa,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:v}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:rs},{key:"cols",content:rs}]}),w(go,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},w(l,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:i}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=X0),{dayMaxEvents:e,dayMaxEventRows:n}}}function eD(t){return t.text}class tD{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(xt(n.currentRange,e)){let r=Re(e),o=e.valueOf()-r.valueOf();if(o>=at(n.slotMinTime)&&o<at(n.slotMaxTime))return this.computeTimeTop(ve(o))}return null}computeDateTop(e,n){return n||(n=Re(e)),this.computeTimeTop(ve(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,o=n.els.length,i=(e.milliseconds-at(r.slotMinTime))/at(this.slotDuration),s,a;return i=Math.max(0,i),i=Math.min(o,i),s=Math.floor(i),s=Math.min(s,o-1),a=i-s,n.tops[s]+n.getHeight(s)*a}}class nD extends Se{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:o}=e;return w("tbody",null,e.slatMetas.map((i,s)=>{let a={time:i.time,date:n.dateEnv.toDate(i.date),view:n.viewApi};return w("tr",{key:i.key,ref:o.createRef(i.key)},e.axis&&w(Mf,Object.assign({},i)),w(et,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class rD extends Se{constructor(){super(...arguments),this.rootElRef=Fe(),this.slatElRefs=new wt}render(){let{props:e,context:n}=this;return w("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},w("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,w(nD,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new tD(new Ln(this.rootElRef.current,oD(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function oD(t,e){return e.map(n=>t[n.key])}function Jn(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function mc(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class iD extends Se{render(){let{props:e}=this;return w(uf,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>If(e.hiddenSegs,e),defaultGenerator:sD,forceTimed:!0},n=>w(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function sD(t){return t.shortText}function aD(t,e,n){let r=new qd;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let o=r.addSegs(t),i=yw(o),s=lD(r);return s=fD(s,1),{segRects:pD(s),hiddenGroups:i}}function lD(t){const{entriesByLevel:e}=t,n=la((r,o)=>r+":"+o,(r,o)=>{let i=dD(t,r,o),s=vc(i,n),a=e[r][o];return[Object.assign(Object.assign({},a),{nextLevelNodes:s[0]}),a.thickness+s[1]]});return vc(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function vc(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=t,i=r,s=[];for(;i<o;)s.push(e(n,i)),i+=1;return s.sort(cD),[s.map(uD),s[0][1]]}function cD(t,e){return e[1]-t[1]}function uD(t){return t[0]}function dD(t,e,n){let{levelCoords:r,entriesByLevel:o}=t,i=o[e][n],s=r[e]+i.thickness,a=r.length,l=e;for(;l<a&&r[l]<s;l+=1);for(;l<a;l+=1){let c=o[l],u,f=ns(c,i.span.start,ts),p=f[0]+f[1],h=p;for(;(u=c[h])&&u.span.start<i.span.end;)h+=1;if(p<h)return{level:l,lateralStart:p,lateralEnd:h}}return null}function fD(t,e){const n=la((r,o,i)=>ln(r),(r,o,i)=>{let{nextLevelNodes:s,thickness:a}=r,l=a+i,c=a/l,u,f=[];if(!s.length)u=e;else for(let h of s)if(u===void 0){let m=n(h,o,l);u=m[0],f.push(m[1])}else{let m=n(h,u,0);f.push(m[1])}let p=(u-o)*c;return[u-p,Object.assign(Object.assign({},r),{thickness:p,nextLevelNodes:f})]});return t.map(r=>n(r,0,0)[1])}function pD(t){let e=[];const n=la((o,i,s)=>ln(o),(o,i,s)=>{let a=Object.assign(Object.assign({},o),{levelCoord:i,stackDepth:s,stackForward:0});return e.push(a),a.stackForward=r(o.nextLevelNodes,i+o.thickness,s+1)+1});function r(o,i,s){let a=0;for(let l of o)a=Math.max(n(l,i,s),a);return a}return r(t,0,0),e}function la(t,e){const n={};return(...r)=>{let o=t(...r);return o in n?n[o]:n[o]=e(...r)}}function yc(t,e,n=null,r=0){let o=[];if(n)for(let i=0;i<t.length;i+=1){let s=t[i],a=n.computeDateTop(s.start,e),l=Math.max(a+(r||0),n.computeDateTop(s.end,e));o.push({start:Math.round(a),end:Math.round(l)})}return o}function hD(t,e,n,r){let o=[],i=[];for(let c=0;c<t.length;c+=1){let u=e[c];u?o.push({index:c,thickness:1,span:u}):i.push(t[c])}let{segRects:s,hiddenGroups:a}=aD(o,n,r),l=[];for(let c of s)l.push({seg:t[c.index],rect:c});for(let c of i)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:a}}const gD=Ie({hour:"numeric",minute:"2-digit",meridiem:!1});class Of extends Se{render(){return w(ra,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:gD}))}}class mD extends Se{constructor(){super(...arguments),this.sortEventSegs=le(Vd)}render(){let{props:e,context:n}=this,{options:r}=n,o=r.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||o&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return w(ia,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},l=>w("div",{className:"fc-timegrid-col-frame"},w("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),w("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,s,!1,!1,!1)),w("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!o,"mirror")),w("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),sa(r)&&w(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,o,i,s){let{props:a}=this;return a.forPrint?If(e,a):this.renderPositionedFgSegs(e,n,r,o,i,s)}renderPositionedFgSegs(e,n,r,o,i,s){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:c,eventMinHeight:u}=this.context.options,{date:f,slatCoords:p,eventSelection:h,todayRange:m,nowDate:g}=this.props,v=r||o||i,b=yc(e,f,p,u),{segPlacements:S,hiddenGroups:R}=hD(e,b,c,a);return w(Ae,null,this.renderHiddenGroups(R,e),S.map(C=>{let{seg:A,rect:T}=C,k=A.eventRange.instance.instanceId,P=v||!!(!n[k]&&T),H=ki(T&&T.span),W=!v&&T?this.computeSegHStyle(T):{left:0,right:0},$=!!T&&T.stackForward>0,y=!!T&&T.span.end-T.span.start<l;return w("div",{className:"fc-timegrid-event-harness"+($?" fc-timegrid-event-harness-inset":""),key:s||k,style:Object.assign(Object.assign({visibility:P?"":"hidden"},H),W)},w(Of,Object.assign({seg:A,isDragging:r,isResizing:o,isDateSelecting:i,isSelected:k===h,isShort:y},jt(A,m,g))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:c}=this.props;return w(Ae,null,e.map(u=>{let f=ki(u.span),p=vD(u.entries,n);return w(iD,{key:md(df(p)),hiddenSegs:p,top:f.top,bottom:f.bottom,extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:c})}))}renderFillSegs(e,n){let{props:r,context:o}=this,s=yc(e,r.date,r.slatCoords,o.options.eventMinHeight).map((a,l)=>{let c=e[l];return w("div",{key:Bd(c.eventRange),className:"fc-timegrid-bg-harness",style:ki(a)},n==="bg-event"?w(af,Object.assign({seg:c},jt(c,r.todayRange,r.nowDate))):lf(n))});return w(Ae,null,s)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((o,i)=>w(oa,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(o.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,o=r.slotEventOverlap,i=e.levelCoord,s=e.levelCoord+e.thickness,a,l;o&&(s=Math.min(1,i+(s-i)*2)),n?(a=1-s,l=i):(a=i,l=1-s);let c={zIndex:e.stackDepth+1,left:a*100+"%",right:l*100+"%"};return o&&!e.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function If(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:o,eventResize:i}){let s=(o?o.affectedInstances:null)||(i?i.affectedInstances:null)||{};return w(Ae,null,t.map(a=>{let l=a.eventRange.instance.instanceId;return w("div",{key:l,style:{visibility:s[l]?"hidden":""}},w(Of,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},jt(a,e,n))))}))}function ki(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function vD(t,e){return t.map(n=>e[n.index])}class yD extends Se{constructor(){super(...arguments),this.splitFgEventSegs=le(Jn),this.splitBgEventSegs=le(Jn),this.splitBusinessHourSegs=le(Jn),this.splitNowIndicatorSegs=le(Jn),this.splitDateSelectionSegs=le(Jn),this.splitEventDrag=le(mc),this.splitEventResize=le(mc),this.rootElRef=Fe(),this.cellElRefs=new wt}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),o=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,o),s=this.splitBgEventSegs(e.bgEventSegs,o),a=this.splitBusinessHourSegs(e.businessHourSegs,o),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,o),c=this.splitDateSelectionSegs(e.dateSelectionSegs,o),u=this.splitEventDrag(e.eventDrag,o),f=this.splitEventResize(e.eventResize,o);return w("div",{className:"fc-timegrid-cols",ref:this.rootElRef},w("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,w("tbody",{role:"presentation"},w("tr",{role:"row"},e.axis&&w("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},w("div",{className:"fc-timegrid-col-frame"},w("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&w(oa,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((p,h)=>w(mD,{key:p.key,elRef:this.cellElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,fgEventSegs:i[h],bgEventSegs:s[h],businessHourSegs:a[h],nowIndicatorSegs:l[h],dateSelectionSegs:c[h],eventDrag:u[h],eventResize:f[h],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Ln(this.rootElRef.current,bD(this.cellElRefs.currentMap,e.cells),!0,!1))}}function bD(t,e){return e.map(n=>t[n.key])}class ED extends vt{constructor(){super(...arguments),this.processSlotOptions=le(SD),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let o=r.computeTimeTop(e.time);o=Math.ceil(o),o&&(o+=1),n(o)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return w("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},w(rD,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),w(yD,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:o}=this.context,{colCoords:i}=this,{dateProfile:s}=this.props,{slatCoords:a}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,o.snapDuration),u=i.leftToIndex(e),f=a.positions.topToIndex(n);if(u!=null&&f!=null){let p=this.props.cells[u],h=a.positions.tops[f],m=a.positions.getHeight(f),g=(n-h)/m,v=Math.floor(g*c),b=f*c+v,S=this.props.cells[u].date,R=Qi(s.slotMinTime,aS(l,b)),C=r.add(S,R),A=r.add(C,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:C,end:A},allDay:!1},p.extraDateSpan),dayEl:i.els[u],rect:{left:i.lefts[u],right:i.rights[u],top:h,bottom:h+m},layer:0}}return null}}function SD(t,e){let n=e||t,r=Ns(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class CD extends ef{sliceRange(e,n){let r=[];for(let o=0;o<n.length;o+=1){let i=dn(e,n[o]);i&&r.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:o})}return r}}class wD extends vt{constructor(){super(...arguments),this.buildDayRanges=le(xD),this.slicer=new CD,this.timeColsRef=Fe()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:o}=e,{nowIndicator:i,nextDayThreshold:s}=n.options,a=this.buildDayRanges(o,r,n.dateEnv);return w(Wn,{unit:i?"minute":"day"},(l,c)=>w(ED,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:o.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:i&&this.slicer.sliceNowDate(l,r,s,n,a),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function xD(t,e,n){let r=[];for(let o of t.headerDates)r.push({start:n.add(o,e.slotMinTime),end:n.add(o,e.slotMaxTime)});return r}const bc=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function DD(t,e,n,r,o){let i=new Date(0),s=t,a=ve(0),l=n||TD(r),c=[];for(;at(s)<at(e);){let u=o.add(i,s),f=Ns(a,l)!==null;c.push({date:u,time:s,key:u.toISOString(),isoTimeStr:wS(u),isLabeled:f}),s=Qi(s,r),a=Qi(a,r)}return c}function TD(t){let e,n,r;for(e=bc.length-1;e>=0;e-=1)if(n=ve(bc[e]),r=Ns(n,t),r!==null&&r>1)return n;return t}class AD extends J0{constructor(){super(...arguments),this.buildTimeColsModel=le(RD),this.buildSlatMetas=le(DD)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:o}=this,{dateProfile:i}=o,s=this.buildTimeColsModel(i,r),a=this.allDaySplitter.splitProps(o),l=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:c}=e,u=!c,f=c,p=e.dayHeaders&&w(Kd,{dates:s.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(g=>w(kf,Object.assign({},a.allDay,{dateProfile:i,dayTableModel:s,nextDayThreshold:e.nextDayThreshold,tableMinWidth:g.tableMinWidth,colGroupNode:g.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:g.clientWidth,clientHeight:g.clientHeight,forPrint:o.forPrint},this.getAllDayMaxEventProps()))),m=g=>w(wD,Object.assign({},a.timed,{dayTableModel:s,dateProfile:i,axis:u,slotDuration:e.slotDuration,slatMetas:l,forPrint:o.forPrint,tableColGroupNode:g.tableColGroupNode,tableMinWidth:g.tableMinWidth,clientWidth:g.clientWidth,clientHeight:g.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:g.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(p,h,m,s.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(p,h,m)}}function RD(t,e){let n=new Xd(t.renderRange,e);return new Jd(n,!1)}var _D='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';ks(_D);const kD={allDaySlot:Boolean};var MD=Rt({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:kD,views:{timeGrid:{component:AD,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});ea.touchMouseIgnoreWait=500;let is=0,So=0,ss=!1;class Pf{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&OD(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let o=n.target;this.shouldIgnoreMove||o.addEventListener("touchmove",this.handleTouchMove),o.addEventListener("touchend",this.handleTouchEnd),o.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,ID()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,o=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:o,deltaX:r-this.origPageX,deltaY:o-this.origPageY})}},this.containerEl=e,this.emitter=new Go,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),PD()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),ND()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||He(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){ss=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?He(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return is||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ss=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,o=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,o=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:o}}createEventFromTouch(e,n){let r=e.touches,o,i,s=0,a=0;return r&&r.length?(o=r[0].pageX,i=r[0].pageY):(o=e.pageX,i=e.pageY),n?(this.origPageX=o,this.origPageY=i):(s=o-this.origPageX,a=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:o,pageY:i,deltaX:s,deltaY:a}}}function OD(t){return t.button===0&&!t.ctrlKey}function ID(){is+=1,setTimeout(()=>{is-=1},ea.touchMouseIgnoreWait)}function PD(){So+=1,So===1&&window.addEventListener("touchmove",Nf,{passive:!1})}function ND(){So-=1,So||window.removeEventListener("touchmove",Nf,{passive:!1})}function Nf(t){ss&&t.preventDefault()}class jD{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",sr(r,{left:o.left,top:o.top}),GE(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(Os(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&sr(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),sr(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class jf extends Xs{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Vf extends jf{constructor(e,n){super(new mw(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return hw(this.scrollController.el)}}class VD extends jf{constructor(e){super(new vw,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Ec=typeof performance=="function"?performance.now:Date.now;class $D{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=Ec();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,o=n-window.scrollY,i=this.pointerScreenY===null?0:o-this.pointerScreenY,s=this.pointerScreenX===null?0:r-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=o,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ec()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:o}=this,i=o-e.distance,s=i*i/(o*o)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+s*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+s*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,o=null,i=this.scrollCaches||[];for(let s of i){let a=s.clientRect,l=e-a.left,c=a.right-e,u=n-a.top,f=a.bottom-n;l>=0&&c>=0&&u>=0&&f>=0&&(u<=r&&this.everMovedUp&&s.canScrollUp()&&(!o||o.distance>u)&&(o={scrollCache:s,name:"top",distance:u}),f<=r&&this.everMovedDown&&s.canScrollDown()&&(!o||o.distance>f)&&(o={scrollCache:s,name:"bottom",distance:f}),l<=r&&this.everMovedLeft&&s.canScrollLeft()&&(!o||o.distance>l)&&(o={scrollCache:s,name:"left",distance:l}),c<=r&&this.everMovedRight&&s.canScrollRight()&&(!o||o.distance>c)&&(o={scrollCache:s,name:"right",distance:c}))}return o}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new VD(!1):new Vf(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Sr extends Ew{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=o=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,YE(document.body),QE(document.body),o.isTouch||o.origEvent.preventDefault(),this.emitter.trigger("pointerdown",o),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(o.subjectEl,o.pageX,o.pageY),this.startDelay(o),this.minDistance||this.handleDistanceSurpassed(o)))},this.onPointerMove=o=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",o),!this.isDistanceSurpassed){let i=this.minDistance,s,{deltaX:a,deltaY:l}=o;s=a*a+l*l,s>=i*i&&this.handleDistanceSurpassed(o)}this.isDragging&&(o.origEvent.type!=="scroll"&&(this.mirror.handleMove(o.pageX,o.pageY),this.autoScroller.handleMove(o.pageX,o.pageY)),this.emitter.trigger("dragmove",o))}},this.onPointerUp=o=>{this.isInteracting&&(this.isInteracting=!1,qE(document.body),ZE(document.body),this.emitter.trigger("pointerup",o),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(o)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new Pf(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new jD,this.autoScroller=new $D}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class BD{constructor(e){this.el=e,this.origRect=Ks(e),this.scrollCaches=Yd(e).map(n=>new Vf(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let o of this.scrollCaches)if(!LD(o.getEventTarget())&&!tw(r,o.clientRect))return!1;return!0}}function LD(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Yo{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:o}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(o.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):o.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Go}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl,i;o instanceof HTMLElement&&(i=Ks(o),r=nw(r,i));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&i){let a=Wd(i,s.rect);a&&(r=rw(a))}this.coordAdjust=ow(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!qo(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=Tt(this.droppableStore,e=>(e.component.prepareHits(),new BD(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:o}=this,i=null;for(let s in r){let a=r[s].component,l=o[s];if(l&&l.isWithinClipping(e,n)){let c=l.computeLeft(),u=l.computeTop(),f=e-c,p=n-u,{origRect:h}=l,m=h.right-h.left,g=h.bottom-h.top;if(f>=0&&f<m&&p>=0&&p<g){let v=a.queryHit(f,p,m,g);v&&Wo(v.dateProfile.activeRange,v.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(f+c-window.scrollX,p+u-window.scrollY)))&&(!i||v.layer>i.layer)&&(v.componentId=s,v.context=a.context,v.rect.left+=c,v.rect.right+=c,v.rect.top+=u,v.rect.bottom+=u,i=v)}}}return i}}function qo(t,e){return!t&&!e?!0:!!t!=!!e?!1:WC(t.dateSpan,e.dateSpan)}function $f(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,HD(t,e.dateEnv)),n}function HD(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class zD extends Fn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:o}=this,i=r.origEvent.target;o.setIgnoreMove(!this.component.isValidDateDownEl(i))},this.handleDragEnd=r=>{let{component:o}=this,{pointer:i}=this.dragging;if(!i.wasTouchScroll){let{initialHit:s,finalHit:a}=this.hitDragging;if(s&&a&&qo(s,a)){let{context:l}=o,c=Object.assign(Object.assign({},$f(s.dateSpan,l)),{dayEl:s.dayEl,jsEvent:r.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",c)}}},this.dragging=new Sr(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Yo(this.dragging,Qs(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class FD extends Fn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=s=>{let{component:a,dragging:l}=this,{options:c}=a.context,u=c.selectable&&a.isValidDateDownEl(s.origEvent.target);l.setIgnoreMove(!u),l.delay=s.isTouch?WD(a):null},this.handleDragStart=s=>{this.component.context.calendarApi.unselect(s)},this.handleHitUpdate=(s,a)=>{let{context:l}=this.component,c=null,u=!1;if(s){let f=this.hitDragging.initialHit;s.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,s)||(c=UD(f,s,l.pluginHooks.dateSelectionTransformers)),(!c||!Tw(c,s.dateProfile,l))&&(u=!0,c=null)}c?l.dispatch({type:"SELECT_DATES",selection:c}):a||l.dispatch({type:"UNSELECT_DATES"}),u?Is():Ps(),a||(this.dragSelection=c)},this.handlePointerUp=s=>{this.dragSelection&&(Pd(this.dragSelection,s,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,o=this.dragging=new Sr(e.el);o.touchScrollAllowed=!1,o.minDistance=r.selectMinDistance||0,o.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new Yo(this.dragging,Qs(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function WD(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function UD(t,e,n){let r=t.dateSpan,o=e.dateSpan,i=[r.range.start,r.range.end,o.range.start,o.range.end];i.sort(tS);let s={};for(let a of n){let l=a(t,e);if(l===!1)return null;l&&Object.assign(s,l)}return s.range={start:i[0],end:i[3]},s.allDay=r.allDay,s}class Cr extends Fn{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let a=s.origEvent.target,{component:l,dragging:c}=this,{mirror:u}=c,{options:f}=l.context,p=l.context;this.subjectEl=s.subjectEl;let h=this.subjectSeg=Bn(s.subjectEl),g=(this.eventRange=h.eventRange).instance.instanceId;this.relevantEvents=Us(p.getCurrentData().eventStore,g),c.minDistance=s.isTouch?0:f.eventDragMinDistance,c.delay=s.isTouch&&g!==l.props.eventSelection?YD(l):null,f.fixedMirrorParent?u.parentNode=f.fixedMirrorParent:u.parentNode=He(a,".fc"),u.revertDuration=f.dragRevertDuration;let v=l.isValidSegDownEl(a)&&!He(a,".fc-event-resizer");c.setIgnoreMove(!v),this.isDragging=v&&s.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=s=>{let a=this.component.context,l=this.eventRange,c=l.instance.instanceId;s.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(s),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new Me(a,l.def,l.instance),jsEvent:s.origEvent,view:a.viewApi}))},this.handleHitUpdate=(s,a)=>{if(!this.isDragging)return;let l=this.relevantEvents,c=this.hitDragging.initialHit,u=this.component.context,f=null,p=null,h=null,m=!1,g={affectedEvents:l,mutatedEvents:Ke(),isEvent:!0};if(s){f=s.context;let v=f.options;u===f||v.editable&&v.droppable?(p=GD(c,s,this.eventRange.instance.range.start,f.getCurrentData().pluginHooks.eventDragMutationMassagers),p&&(h=qs(l,f.getCurrentData().eventUiBases,p,f),g.mutatedEvents=h,tf(g,s.dateProfile,f)||(m=!0,p=null,h=null,g.mutatedEvents=Ke()))):f=null}this.displayDrag(f,g),m?Is():Ps(),a||(u===f&&qo(c,s)&&(p=null),this.dragging.setMirrorNeedsRevert(!p),this.dragging.setMirrorIsVisible(!s||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=f,this.validMutation=p,this.mutatedRelevantEvents=h)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=s=>{if(this.isDragging){let a=this.component.context,l=a.viewApi,{receivingContext:c,validMutation:u}=this,f=this.eventRange.def,p=this.eventRange.instance,h=new Me(a,f,p),m=this.relevantEvents,g=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:h,jsEvent:s.origEvent,view:l}),u){if(c===a){let b=new Me(a,g.defs[f.defId],p?g.instances[p.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:g});let S={oldEvent:h,event:b,relatedEvents:an(g,a,p),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:m})}},R={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(R,C(u,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},S),R),{el:s.subjectEl,delta:u.datesDelta,jsEvent:s.origEvent,view:l})),a.emitter.trigger("eventChange",S)}else if(c){let b={event:h,relatedEvents:an(m,a,p),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:m})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:s.subjectEl,view:l})),a.dispatch({type:"REMOVE_EVENTS",eventStore:m}),a.emitter.trigger("eventRemove",b);let S=g.defs[f.defId],R=g.instances[p.instanceId],C=new Me(c,S,R);c.dispatch({type:"MERGE_EVENTS",eventStore:g});let A={event:C,relatedEvents:an(g,c,R),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:g})}};c.emitter.trigger("eventAdd",A),s.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:p.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},$f(v.dateSpan,c)),{draggedEl:s.subjectEl,jsEvent:s.origEvent,view:v.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},A),{draggedEl:s.subjectEl,view:v.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,o=this.dragging=new Sr(e.el);o.pointer.selector=Cr.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new Yo(this.dragging,es);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,o=this.receivingContext;o&&o!==e&&(o===r?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Ke(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Cr.SELECTOR=".fc-event-draggable, .fc-event-resizable";function GD(t,e,n,r){let o=t.dateSpan,i=e.dateSpan,s=o.range.start,a=i.range.start,l={};o.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=e.context.options.allDayMaintainDuration,i.allDay?s=Re(n):s=n);let c=Tn(s,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(l.allDay=!1);let u={datesDelta:c,standardProps:l};for(let f of r)f(u,t,e);return u}function YD(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class qD extends Fn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=i=>{let{component:s}=this,a=this.querySegEl(i),l=Bn(a),c=this.eventRange=l.eventRange;this.dragging.minDistance=s.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(i.origEvent.target)||i.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=i=>{let{context:s}=this.component,a=this.eventRange;this.relevantEvents=Us(s.getCurrentData().eventStore,this.eventRange.instance.instanceId);let l=this.querySegEl(i);this.draggingSegEl=l,this.draggingSeg=Bn(l),s.calendarApi.unselect(),s.emitter.trigger("eventResizeStart",{el:l,event:new Me(s,a.def,a.instance),jsEvent:i.origEvent,view:s.viewApi})},this.handleHitUpdate=(i,s,a)=>{let{context:l}=this.component,c=this.relevantEvents,u=this.hitDragging.initialHit,f=this.eventRange.instance,p=null,h=null,m=!1,g={affectedEvents:c,mutatedEvents:Ke(),isEvent:!0};i&&(i.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,i)||(p=QD(u,i,a.subjectEl.classList.contains("fc-event-resizer-start"),f.range))),p&&(h=qs(c,l.getCurrentData().eventUiBases,p,l),g.mutatedEvents=h,tf(g,i.dateProfile,l)||(m=!0,p=null,h=null,g.mutatedEvents=null)),h?l.dispatch({type:"SET_EVENT_RESIZE",state:g}):l.dispatch({type:"UNSET_EVENT_RESIZE"}),m?Is():Ps(),s||(p&&qo(u,i)&&(p=null),this.validMutation=p,this.mutatedRelevantEvents=h)},this.handleDragEnd=i=>{let{context:s}=this.component,a=this.eventRange.def,l=this.eventRange.instance,c=new Me(s,a,l),u=this.relevantEvents,f=this.mutatedRelevantEvents;if(s.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:i.origEvent,view:s.viewApi}),this.validMutation){let p=new Me(s,f.defs[a.defId],l?f.instances[l.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:f});let h={oldEvent:c,event:p,relatedEvents:an(f,s,l),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:u})}};s.emitter.trigger("eventResize",Object.assign(Object.assign({},h),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ve(0),endDelta:this.validMutation.endDelta||ve(0),jsEvent:i.origEvent,view:s.viewApi})),s.emitter.trigger("eventChange",h)}else s.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Sr(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let o=this.hitDragging=new Yo(this.dragging,Qs(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return He(e.subjectEl,".fc-event")}}function QD(t,e,n,r){let o=t.context.dateEnv,i=t.dateSpan.range.start,s=e.dateSpan.range.start,a=Tn(i,s,o,t.largeUnit);if(n){if(o.add(r.start,a)<r.end)return{startDelta:a}}else if(o.add(r.end,a)>r.start)return{endDelta:a};return null}class ZD{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let o=this.context.options.unselectCancel,i=dd(r.origEvent);this.matchesCancel=!!He(i,o),this.matchesEvent=!!He(i,Cr.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:o}=this,{documentPointer:i}=this,s=o.getCurrentData();if(!i.wasTouchScroll){if(s.dateSelection&&!this.isRecentPointerDateSelect){let a=o.options.unselectAuto;a&&(!a||!this.matchesCancel)&&o.calendarApi.unselect(r)}s.eventSelection&&!this.matchesEvent&&o.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new Pf(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const KD={fixedMirrorParent:M},XD={dateClick:M,eventDragStart:M,eventDragStop:M,eventDrop:M,eventResizeStart:M,eventResizeStop:M,eventResize:M,drop:M,eventReceive:M,eventLeave:M};ea.dataAttrPrefix="";var JD=Rt({name:"@fullcalendar/interaction",componentInteractions:[zD,FD,Cr,qD],calendarInteractions:[ZD],elementDraggingImpl:Sr,optionRefiners:KD,listenerRefiners:XD});const Bf=Ve(E.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),Co=Ve(E.jsx("path",{fillRule:"evenodd",d:"m9 17 3-2.94c-.39-.04-.68-.06-1-.06-2.67 0-8 1.34-8 4v2h9zm2-5c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m4.47 8.5L12 17l1.4-1.41 2.07 2.08 5.13-5.17 1.4 1.41z"}),"HowToReg"),ca=Ve(E.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat"),eT=({courseCode:t,courseColor:e,requiresRegistration:n,recurring:r,theme:o})=>E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,backgroundColor:`${e}30`,border:`1px solid ${e}50`,borderLeft:`3px solid ${e}`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 1px 2px ${o.palette.action.hover}`,"&:hover":{backgroundColor:`${e}40`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 2px 4px ${o.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Typography,{variant:"caption",sx:{color:o.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:t}),(n||r)&&E.jsxs(q.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[n&&E.jsx(Co,{sx:{fontSize:10,color:o.palette.warning.main}}),r&&E.jsx(ca,{sx:{fontSize:10,color:e}})]})]}),tT=({eventInfo:t,courseCode:e,type:n,courseColor:r,requiresRegistration:o,recurring:i,eventTypeIcons:s,theme:a})=>{const l=new Date(t.event.start).getTime(),f=(new Date(t.event.end).getTime()-l)/(1e3*60),p=(h,m)=>{switch(h){case"lecture":return`linear-gradient(45deg, ${m}20, ${m}30)`;case"exercise":return`linear-gradient(135deg, ${m}20, ${m}30)`;case"exam":return`linear-gradient(90deg, ${m}30, ${m}40)`;case"deadline":return`linear-gradient(180deg, ${m}20, ${m}30)`;default:return`linear-gradient(90deg, ${m}20, ${m}25)`}};return f<30?E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,background:p(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 1px 2px ${a.palette.action.hover}`,"&:hover":{background:p(n,r).replace(/[0-9]+/g,h=>(Number(h)+10).toString()),boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 2px 4px ${a.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Typography,{variant:"caption",sx:{color:a.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:e}),(o||i)&&E.jsxs(q.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[o&&E.jsx(Co,{sx:{fontSize:10,color:a.palette.warning.main}}),i&&E.jsx(ca,{sx:{fontSize:10,color:r}})]})]}):E.jsxs(q.Box,{sx:{display:"flex",alignItems:"flex-start",p:.75,height:"100%",position:"relative",gap:.5,background:p(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 1px 2px ${a.palette.action.hover}`,"&:hover":{background:p(n,r).replace(/[0-9]+/g,h=>(Number(h)+10).toString()),boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 2px 4px ${a.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Box,{component:"img",src:s[n],alt:n,sx:{width:14,height:14,filter:`drop-shadow(0 0 1px ${r})`,flexShrink:0,mt:.25}}),E.jsxs(q.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[E.jsx(q.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1},noWrap:!0,children:e}),E.jsx(q.Typography,{variant:"caption",sx:{lineHeight:1,color:a.palette.text.primary,fontWeight:500,fontSize:f<45?"0.7rem":"inherit"},noWrap:!0,children:t.event.title}),f>=45&&E.jsx(q.Typography,{variant:"caption",sx:{lineHeight:1,color:a.palette.text.secondary,fontSize:"0.7rem"},noWrap:!0,children:t.timeText})]})]})},nT=({eventInfo:t,courseCode:e,type:n,courseColor:r,location:o,requiresRegistration:i,recurring:s,eventTypeIcons:a,theme:l})=>{const c=new Date(t.event.start).getTime(),p=(new Date(t.event.end).getTime()-c)/(1e3*60),h=(m,g)=>{switch(m){case"lecture":return`linear-gradient(45deg, ${g}20, ${g}30)`;case"exercise":return`linear-gradient(135deg, ${g}20, ${g}30)`;case"exam":return`linear-gradient(90deg, ${g}30, ${g}40)`;case"deadline":return`linear-gradient(180deg, ${g}20, ${g}30)`;default:return`linear-gradient(90deg, ${g}20, ${g}25)`}};return p<30?E.jsx(eT,{eventInfo:t,courseCode:e,type:n,courseColor:r,requiresRegistration:i,recurring:s,eventTypeIcons:a,theme:l}):E.jsxs(q.Box,{sx:{display:"flex",flexDirection:"column",p:p<45?.75:1,height:"100%",position:"relative",gap:.5,background:h(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 1px 2px ${l.palette.action.hover}`,"&:hover":{background:h(n,r).replace(/[0-9]+/g,m=>(Number(m)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Box,{sx:{display:"flex",alignItems:"flex-start",gap:p<45?.5:.75},children:E.jsxs(q.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[E.jsxs(q.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1,fontSize:p<45?"0.7rem":"0.75rem"},noWrap:!0,children:[e," • ",n]}),E.jsx(q.Typography,{variant:p<45?"caption":"body2",sx:{lineHeight:1.2,color:l.palette.text.primary,fontWeight:500},noWrap:!0,children:t.event.title}),p>=45&&E.jsx(q.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.secondary},noWrap:!0,children:t.timeText})]})}),p>=60&&o&&E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",gap:.5,mt:"auto"},children:[E.jsx(Bf,{sx:{fontSize:14,color:r}}),E.jsx(q.Typography,{variant:"caption",sx:{color:l.palette.text.secondary},noWrap:!0,children:o})]})]})},rT=Ve(E.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),oT=Ve(E.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),iT=({description:t,location:e,courseColor:n,maxParticipants:r,requiresRegistration:o,teachers:i,type:s,recurring:a,onAddToCalendar:l,onRegister:c,theme:u})=>E.jsxs(q.Stack,{spacing:2,children:[t&&E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Description"}),E.jsx(q.Typography,{variant:"body2",sx:{backgroundColor:`${n}08`,p:1.5,borderRadius:1,border:`1px solid ${n}20`},children:t})]}),e&&E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Location"}),E.jsxs(q.Box,{sx:{p:1.5,backgroundColor:`${n}08`,borderRadius:1,border:`1px solid ${n}20`,display:"flex",alignItems:"center",gap:1},children:[E.jsx(Bf,{sx:{color:n}}),E.jsx(q.Typography,{variant:"body2",children:e})]})]}),(r||o)&&E.jsxs(q.Box,{sx:{p:1.5,backgroundColor:u.palette.warning.light+"20",borderRadius:1,border:`1px solid ${u.palette.warning.light}40`},children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,color:"warning.dark",children:"Registration Details"}),E.jsxs(q.Stack,{spacing:1,children:[r&&E.jsxs(q.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(rT,{fontSize:"small"}),"Available spots: ",r]}),o&&E.jsxs(q.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1,color:u.palette.warning.dark},children:[E.jsx(Co,{fontSize:"small"}),"Registration required"]})]})]}),E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Event Details"}),E.jsxs(q.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[E.jsx(q.Chip,{label:s,size:"small",variant:"outlined",sx:{borderColor:n,color:n}}),a&&E.jsx(q.Chip,{icon:E.jsx(ca,{}),label:"Recurring",size:"small",variant:"outlined",sx:{borderColor:n,color:n}})]})]}),i&&i.length>0&&E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Teachers"}),E.jsx(q.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:i.map((f,p)=>E.jsx(q.Chip,{label:f.name,size:"small",variant:"outlined",sx:{borderColor:`${n}40`,"&:hover":{borderColor:n}}},p))})]}),E.jsx(q.Divider,{}),E.jsxs(q.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[E.jsx(q.Button,{size:"small",startIcon:E.jsx(oT,{}),onClick:l,variant:"outlined",sx:{borderColor:`${n}60`,color:n,"&:hover":{borderColor:n,backgroundColor:`${n}10`}},children:"Add to Calendar"}),o&&E.jsx(q.Button,{size:"small",startIcon:E.jsx(Co,{}),onClick:c,variant:"contained",sx:{backgroundColor:n,"&:hover":{backgroundColor:`${n}dd`}},children:"Register"})]})]}),sT=({open:t,anchorEl:e,onClose:n,eventInfo:r,courseColor:o,type:i,eventTypeIcons:s,courseTitle:a,courseCode:l,description:c,location:u,maxParticipants:f,requiresRegistration:p,teachers:h,recurring:m,theme:g})=>{const v=S=>{S.stopPropagation()},b=S=>{S.stopPropagation()};return E.jsx(q.Popover,{open:t,anchorEl:e,onClose:n,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},TransitionComponent:q.Fade,TransitionProps:{timeout:150},sx:{"& .MuiPopover-paper":{overflow:"visible",mt:1,"&:before":{content:'""',display:"block",position:"absolute",top:"50%",left:-6,width:12,height:12,bgcolor:"background.paper",transform:"rotate(45deg) translateY(-50%)",zIndex:0,borderLeft:`1px solid ${g.palette.divider}`,borderBottom:`1px solid ${g.palette.divider}`}}},children:E.jsx(q.Paper,{elevation:4,sx:{width:{xs:"90vw",sm:400},maxWidth:400,position:"relative",overflow:"hidden",borderLeft:`4px solid ${o}`},children:E.jsxs(q.Stack,{spacing:2,sx:{p:2},children:[E.jsxs(q.Box,{sx:{display:"flex",gap:1.5},children:[E.jsx(q.Box,{component:"img",src:s[i],alt:i,sx:{width:32,height:32,filter:`drop-shadow(0 0 1px ${o})`,mt:.5}}),E.jsxs(q.Box,{sx:{flex:1},children:[E.jsx(q.Typography,{variant:"h6",sx:{lineHeight:1.2,mb:.5},children:r.event.title}),E.jsxs(q.Typography,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[a," (",l,")"]}),E.jsx(q.Typography,{variant:"body2",color:"text.secondary",children:r.timeText})]})]}),E.jsx(q.Divider,{}),E.jsx(iT,{description:c,location:u,courseColor:o,maxParticipants:f,requiresRegistration:p,teachers:h,type:i,recurring:m,onAddToCalendar:v,onRegister:b,theme:g})]})})})},Sc={lecture:"/static/images/icons/brain.svg",exercise:"/static/images/icons/weight.svg",exam:"/static/images/icons/code.svg",deadline:"/static/images/icons/dna.svg",other:"/static/images/icons/atom.svg",meeting:"/static/images/icons/brain.svg",maintenance:"/static/images/icons/weight.svg"},aT=({eventInfo:t})=>{var A,T;const e=q.useTheme(),n=q.useMediaQuery(e.breakpoints.down("sm")),[r,o]=oe.useState(null),i=t.event.extendedProps.courseCode||"",s=t.event.extendedProps.type,a=t.event.backgroundColor||e.palette.primary.main,{courseTitle:l,description:c,location:u,teachers:f,maxParticipants:p,requiresRegistration:h,recurring:m}=t.event.extendedProps,g=oe.useCallback(k=>{k.stopPropagation(),o(k.currentTarget)},[]),v=oe.useCallback(()=>{o(null)},[]),b={eventInfo:t,courseCode:i,type:s,courseColor:a,location:u,requiresRegistration:h,recurring:m,eventTypeIcons:Sc,theme:e,courseTitle:l,maxParticipants:p},S=Number(((A=t.el)==null?void 0:A.style.getPropertyValue("--event-group-index"))||"0"),R=Number(((T=t.el)==null?void 0:T.style.getPropertyValue("--event-group-size"))||"1"),C=(k,P)=>P<=1?1:k%2===0?2:0;return E.jsxs(E.Fragment,{children:[E.jsx(q.Box,{onClick:g,sx:{height:"100%",transition:"all 0.2s ease-in-out",position:"relative",overflow:"hidden",cursor:"pointer",m:"1px",ml:S>0?`${S*4}px`:"1px",width:R>1?`calc(100% - ${S*4}px)`:"auto",zIndex:C(S,R),"&:hover":{transform:"scale(1.01)",zIndex:10}},children:n?E.jsx(tT,{...b}):E.jsx(nT,{...b})}),E.jsx(sT,{open:!!r,anchorEl:r,onClose:v,eventInfo:t,courseColor:a,type:s,eventTypeIcons:Sc,courseTitle:l,courseCode:i,description:c,location:u,maxParticipants:p,requiresRegistration:h,teachers:f,recurring:m,theme:e})]})},lT=({calendarRef:t,calendarView:e,events:n,onDatesSet:r,eventDidMount:o,showAllDaySlot:i,onMouseDown:s,onMouseMove:a,onMouseUp:l,onMouseLeave:c,density:u="comfortable"})=>{const f=q.useTheme(),p=g=>{const v=g.view.calendar.getEvents().filter(R=>{var C,A,T,k;return((C=R.start)==null?void 0:C.getTime())===((A=g.event.start)==null?void 0:A.getTime())&&((T=R.end)==null?void 0:T.getTime())===((k=g.event.end)==null?void 0:k.getTime())&&R.allDay===g.event.allDay});v.sort((R,C)=>{const A=R.extendedProps.courseCode||"",T=C.extendedProps.courseCode||"";return A===T?v.indexOf(R)-v.indexOf(C):A.localeCompare(T)});const b=v.length,S=v.findIndex(R=>R.id===g.event.id);g.el.style.setProperty("--event-group-index",JSON.stringify(S)),g.el.style.setProperty("--event-group-size",JSON.stringify(b)),g.el.style.pointerEvents="all",o&&o(g)},m={compact:{margin:"0 !important",slotHeight:"2.5rem !important",minEventHeight:18,spacing:1},comfortable:{margin:"0 !important",slotHeight:"3rem !important",minEventHeight:20,spacing:2},spacious:{margin:"0 !important",slotHeight:"3.5rem !important",minEventHeight:24,spacing:3}}[u];return E.jsx(q.Box,{onMouseDown:s,onMouseMove:a,onMouseUp:l,onMouseLeave:c,sx:{flex:1,minHeight:0,overflow:"hidden","& ::-webkit-scrollbar":{width:"8px",height:"8px"},"& ::-webkit-scrollbar-track":{background:f.palette.background.default},"& ::-webkit-scrollbar-thumb":{backgroundColor:f.palette.divider,borderRadius:"4px","&:hover":{backgroundColor:f.palette.action.hover}},"& .fc-scroller-liquid-absolute":{cursor:"grab","&:active":{cursor:"grabbing"}},".fc-timegrid-event-harness":{margin:m.margin,pointerEvents:"all !important","&:not(:first-of-type)":{borderTop:`2px solid ${f.palette.background.paper}`,marginTop:`-${2+m.spacing}px !important`,paddingTop:`${m.spacing}px !important`,"&::before":{content:'""',position:"absolute",top:-1,left:0,right:0,height:2,background:f.palette.background.paper,zIndex:1}},"&:hover":{zIndex:"5 !important","& + .fc-timegrid-event-harness":{zIndex:"4 !important"}}},".fc-timegrid-event":{margin:"0 !important",padding:"0 !important",background:"none !important",borderRadius:"0 !important",border:"none !important"},".fc-event":{background:"none !important",border:"none !important"},".fc-timegrid-col":{borderRight:`1px solid ${f.palette.divider}40 !important`},".fc-timegrid-slot":{height:m.slotHeight,borderColor:`${f.palette.divider}30 !important`,"&:nth-of-type(4n+1)":{borderTop:`2px solid ${f.palette.divider}50 !important`},"&:nth-of-type(2n)":{backgroundColor:`${f.palette.action.hover}05`}},".fc-timegrid-slot-minor":{borderColor:`${f.palette.divider}20 !important`},".fc-day-sun, .fc-day-sat":{backgroundColor:`${f.palette.action.hover}15 !important`},".fc-day-today":{backgroundColor:`${f.palette.primary.main}08 !important`,borderLeft:`2px solid ${f.palette.primary.main}40 !important`,borderRight:`2px solid ${f.palette.primary.main}40 !important`},".fc-col-header-cell":{padding:"8px 4px",backgroundColor:f.palette.background.default,borderBottom:`2px solid ${f.palette.divider} !important`,"&.fc-day-today":{backgroundColor:`${f.palette.primary.main}15 !important`,fontWeight:600}},".fc-timegrid-col-bg":{background:`repeating-linear-gradient(
208
208
  to bottom,
209
- ${p.palette.background.paper},
210
- ${p.palette.background.paper} 3rem,
211
- ${p.palette.action.hover}10 3rem,
212
- ${p.palette.action.hover}10 6rem
213
- )`},".fc-timegrid-axis":{borderRight:`2px solid ${p.palette.divider}`,"& .fc-timegrid-axis-cushion":{padding:"4px 8px",fontSize:"0.75rem",color:p.palette.text.secondary}},".fc-timegrid-now-indicator-line":{borderColor:p.palette.error.main,borderStyle:"dashed",opacity:.7,zIndex:3},".fc-timegrid-now-indicator-arrow":{borderColor:p.palette.error.main,opacity:.7},".fc .fc-day-today":{backgroundColor:p.palette.background.default+" !important"},".fc-timegrid-event-harness-inset .fc-timegrid-event, .fc-timegrid-event.fc-event-mirror, .fc-timegrid-more-link, .fc-timegrid-slot-lane, .fc-timegrid-slot-lane-frame":{border:"none !important",boxShadow:"none !important",font:p.typography.body2.fontFamily},"fc-event-main-frame":{backgroundColor:"white !important"},".fc-theme-standard td, .fc-theme-standard th":{border:"none !important"},".fc .fc-col-header-cell .fc-day .fc-day-mon .fc-day-past .fc-daygrid-day-frame, .fc .fc-daygrid-day-top, .fc .fc-daygrid-day-bg, .fc .fc-scrollgrid-liquid":{border:"none !important"},td:{border:"none !important",padding:0},".fc .fc-daygrid-body tbody tr:hover > td":{backgroundColor:p.palette.action.hover+" !important"},".fc-daygrid-row:hover":{"& .fc-daygrid-day":{backgroundColor:p.palette.action.hover+" !important"}},".fc-timegrid-slot-lane:hover":{backgroundColor:p.palette.action.hover+" !important"},".fc-daygrid-day:hover":{backgroundColor:p.palette.action.hover+" !important"}},children:b.jsx(Xs,{ref:e,plugins:[Js,Qs,Zs],initialView:t,events:n,eventDidMount:m,height:"100%",headerToolbar:!1,eventContent:f=>b.jsx(Eh,{eventInfo:f}),datesSet:r,editable:!1,selectable:!1,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",expandRows:!0,handleWindowResize:!0,allDaySlot:a,slotEventOverlap:!1,eventMinHeight:g.minEventHeight,eventOrder:"start,-duration,allDay,title",forceEventDuration:!0,nowIndicator:!0,slotDuration:"00:30:00",slotLabelInterval:{hours:1},slotLabelFormat:{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,hour12:!1}},JSON.stringify(n))})};var vn={exports:{}},vr={},xn={exports:{}},xr={};/**
209
+ ${f.palette.background.paper},
210
+ ${f.palette.background.paper} 3rem,
211
+ ${f.palette.action.hover}10 3rem,
212
+ ${f.palette.action.hover}10 6rem
213
+ )`},".fc-timegrid-axis":{borderRight:`2px solid ${f.palette.divider}`,"& .fc-timegrid-axis-cushion":{padding:"4px 8px",fontSize:"0.75rem",color:f.palette.text.secondary}},".fc-timegrid-now-indicator-line":{borderColor:f.palette.error.main,borderStyle:"dashed",opacity:.7,zIndex:3},".fc-timegrid-now-indicator-arrow":{borderColor:f.palette.error.main,opacity:.7},".fc .fc-day-today":{backgroundColor:f.palette.background.default+" !important"},".fc-timegrid-event-harness-inset .fc-timegrid-event, .fc-timegrid-event.fc-event-mirror, .fc-timegrid-more-link, .fc-timegrid-slot-lane, .fc-timegrid-slot-lane-frame":{border:"none !important",boxShadow:"none !important",font:f.typography.body2.fontFamily},"fc-event-main-frame":{backgroundColor:"white !important"},".fc-theme-standard td, .fc-theme-standard th":{border:"none !important"},".fc .fc-col-header-cell .fc-day .fc-day-mon .fc-day-past .fc-daygrid-day-frame, .fc .fc-daygrid-day-top, .fc .fc-daygrid-day-bg, .fc .fc-scrollgrid-liquid":{border:"none !important"},td:{border:"none !important",padding:0},".fc .fc-daygrid-body tbody tr:hover > td":{backgroundColor:f.palette.action.hover+" !important"},".fc-daygrid-row:hover":{"& .fc-daygrid-day":{backgroundColor:f.palette.action.hover+" !important"}},".fc-timegrid-slot-lane:hover":{backgroundColor:f.palette.action.hover+" !important"},".fc-daygrid-day:hover":{backgroundColor:f.palette.action.hover+" !important"}},children:E.jsx(Sf,{ref:t,plugins:[G0,MD,JD],initialView:e,events:n,eventDidMount:p,height:"100%",headerToolbar:!1,eventContent:g=>E.jsx(aT,{eventInfo:g}),datesSet:r,editable:!1,selectable:!1,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",expandRows:!0,handleWindowResize:!0,allDaySlot:i,slotEventOverlap:!1,eventMinHeight:m.minEventHeight,eventOrder:"start,-duration,allDay,title",forceEventDuration:!0,nowIndicator:!0,slotDuration:"00:30:00",slotLabelInterval:{hours:1},slotLabelFormat:{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,hour12:!1}},JSON.stringify(n))})};var Vr={exports:{}},Mi={},$r={exports:{}},Oi={};/**
214
214
  * @license React
215
215
  * use-sync-external-store-shim.production.js
216
216
  *
@@ -218,7 +218,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
218
218
  *
219
219
  * This source code is licensed under the MIT license found in the
220
220
  * LICENSE file in the root directory of this source tree.
221
- */var ha;function Oh(){if(ha)return xr;ha=1;var e=oe;function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(p,m){var y=m(),g=r({inst:{value:y,getSnapshot:m}}),f=g[0].inst,v=g[1];return a(function(){f.value=y,f.getSnapshot=m,c(f)&&v({inst:f})},[p,y,m]),o(function(){return c(f)&&v({inst:f}),p(function(){c(f)&&v({inst:f})})},[p]),i(y),y}function c(p){var m=p.getSnapshot;p=p.value;try{var y=m();return!n(p,y)}catch{return!0}}function u(p,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return xr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,xr}var Cr={};/**
221
+ */var Cc;function cT(){if(Cc)return Oi;Cc=1;var t=oe;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(f,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),g=m[0].inst,v=m[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&v({inst:g})},[f,h,p]),o(function(){return l(g)&&v({inst:g}),f(function(){l(g)&&v({inst:g})})},[f]),s(h),h}function l(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function c(f,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Oi.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Oi}var Ii={};/**
222
222
  * @license React
223
223
  * use-sync-external-store-shim.development.js
224
224
  *
@@ -226,7 +226,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
226
226
  *
227
227
  * This source code is licensed under the MIT license found in the
228
228
  * LICENSE file in the root directory of this source tree.
229
- */var ma;function Dh(){return ma||(ma=1,process.env.NODE_ENV!=="production"&&function(){function e(y,g){return y===g&&(y!==0||1/y===1/g)||y!==y&&g!==g}function t(y,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=g();if(!p){var v=g();a(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=i({inst:{value:f,getSnapshot:g}});var S=v[0].inst,T=v[1];return c(function(){S.value=f,S.getSnapshot=g,n(S)&&T({inst:S})},[y,f,g]),l(function(){return n(S)&&T({inst:S}),y(function(){n(S)&&T({inst:S})})},[y]),u(f),f}function n(y){var g=y.getSnapshot;y=y.value;try{var f=g();return!a(y,f)}catch{return!0}}function r(y,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oe,a=typeof Object.is=="function"?Object.is:e,i=o.useState,l=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Cr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Cr}var ga;function _s(){return ga||(ga=1,process.env.NODE_ENV==="production"?xn.exports=Oh():xn.exports=Dh()),xn.exports}/**
229
+ */var wc;function uT(){return wc||(wc=1,process.env.NODE_ENV!=="production"&&function(){function t(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function e(h,m){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=m();if(!f){var v=m();i(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=s({inst:{value:g,getSnapshot:m}});var b=v[0].inst,S=v[1];return l(function(){b.value=g,b.getSnapshot=m,n(b)&&S({inst:b})},[h,g,m]),a(function(){return n(b)&&S({inst:b}),h(function(){n(b)&&S({inst:b})})},[h]),c(g),g}function n(h){var m=h.getSnapshot;h=h.value;try{var g=m();return!i(h,g)}catch{return!0}}function r(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oe,i=typeof Object.is=="function"?Object.is:t,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Ii.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ii}var xc;function Lf(){return xc||(xc=1,process.env.NODE_ENV==="production"?$r.exports=cT():$r.exports=uT()),$r.exports}/**
230
230
  * @license React
231
231
  * use-sync-external-store-shim/with-selector.production.js
232
232
  *
@@ -234,7 +234,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
234
234
  *
235
235
  * This source code is licensed under the MIT license found in the
236
236
  * LICENSE file in the root directory of this source tree.
237
- */var ya;function kh(){if(ya)return vr;ya=1;var e=oe,t=_s();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,a=e.useRef,i=e.useEffect,l=e.useMemo,c=e.useDebugValue;return vr.useSyncExternalStoreWithSelector=function(u,d,p,m,y){var g=a(null);if(g.current===null){var f={hasValue:!1,value:null};g.current=f}else f=g.current;g=l(function(){function S(D){if(!T){if(T=!0,k=D,D=m(D),y!==void 0&&f.hasValue){var M=f.value;if(y(M,D))return w=M}return w=D}if(M=w,r(k,D))return M;var V=m(D);return y!==void 0&&y(M,V)?(k=D,M):(k=D,w=V)}var T=!1,k,w,O=p===void 0?null:p;return[function(){return S(d())},O===null?void 0:function(){return S(O())}]},[d,p,m,y]);var v=o(u,g[0],g[1]);return i(function(){f.hasValue=!0,f.value=v},[v]),c(v),v},vr}var Sr={};/**
237
+ */var Dc;function dT(){if(Dc)return Mi;Dc=1;var t=oe,e=Lf();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return Mi.useSyncExternalStoreWithSelector=function(c,u,f,p,h){var m=i(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function b(T){if(!S){if(S=!0,R=T,T=p(T),h!==void 0&&g.hasValue){var k=g.value;if(h(k,T))return C=k}return C=T}if(k=C,r(R,T))return k;var P=p(T);return h!==void 0&&h(k,P)?(R=T,k):(R=T,C=P)}var S=!1,R,C,A=f===void 0?null:f;return[function(){return b(u())},A===null?void 0:function(){return b(A())}]},[u,f,p,h]);var v=o(c,m[0],m[1]);return s(function(){g.hasValue=!0,g.value=v},[v]),l(v),v},Mi}var Pi={};/**
238
238
  * @license React
239
239
  * use-sync-external-store-shim/with-selector.development.js
240
240
  *
@@ -242,8 +242,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
242
242
  *
243
243
  * This source code is licensed under the MIT license found in the
244
244
  * LICENSE file in the root directory of this source tree.
245
- */var ba;function Rh(){return ba||(ba=1,process.env.NODE_ENV!=="production"&&function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=oe,n=_s(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,i=t.useEffect,l=t.useMemo,c=t.useDebugValue;Sr.useSyncExternalStoreWithSelector=function(u,d,p,m,y){var g=a(null);if(g.current===null){var f={hasValue:!1,value:null};g.current=f}else f=g.current;g=l(function(){function S(D){if(!T){if(T=!0,k=D,D=m(D),y!==void 0&&f.hasValue){var M=f.value;if(y(M,D))return w=M}return w=D}if(M=w,r(k,D))return M;var V=m(D);return y!==void 0&&y(M,V)?(k=D,M):(k=D,w=V)}var T=!1,k,w,O=p===void 0?null:p;return[function(){return S(d())},O===null?void 0:function(){return S(O())}]},[d,p,m,y]);var v=o(u,g[0],g[1]);return i(function(){f.hasValue=!0,f.value=v},[v]),c(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Sr}var va;function Mh(){return va||(va=1,process.env.NODE_ENV==="production"?vn.exports=kh():vn.exports=Rh()),vn.exports}var Ph=Mh();const $h=wa(Ph),Ih={},xa=e=>{let t;const n=new Set,r=(d,p)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const y=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(g=>g(t,y))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(Ih?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},Nh=e=>e?xa(e):xa,{useDebugValue:Ah}=oe,{useSyncExternalStoreWithSelector:_h}=$h,jh=e=>e;function Vh(e,t=jh,n){const r=_h(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ah(r),r}const Ca=(e,t)=>{const n=Nh(e),r=(o,a=t)=>Vh(n,o,a);return Object.assign(r,n),r},Lh=(e,t)=>e?Ca(e,t):Ca,wr={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Nr=new Map,Cn=e=>{const t=Nr.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Bh=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Nr.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Nr.set(n.name,o),{type:"tracked",store:e,...o}},zh=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,store:l,...c}=t;let u;try{u=(a??(wr?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(wr?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:d,...p}=Bh(l,u,c);let m=!0;o.setState=(f,v,S)=>{const T=n(f,v);if(!m)return T;const k=S===void 0?{type:i||"anonymous"}:typeof S=="string"?{type:S}:S;return l===void 0?(d==null||d.send(k,r()),T):(d==null||d.send({...k,type:`${l}/${k.type}`},{...Cn(c.name),[l]:o.getState()}),T)};const y=(...f)=>{const v=m;m=!1,n(...f),m=v},g=e(o.setState,r,o);if(p.type==="untracked"?d==null||d.init(g):(p.stores[p.store]=o,d==null||d.init(Object.fromEntries(Object.entries(p.stores).map(([f,v])=>[f,f===p.store?g:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let f=!1;const v=o.dispatch;o.dispatch=(...S)=>{(wr?"production":void 0)!=="production"&&S[0].type==="__setState"&&!f&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),f=!0),v(...S)}}return d.subscribe(f=>{var v;switch(f.type){case"ACTION":if(typeof f.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Er(f.payload,S=>{if(S.type==="__setState"){if(l===void 0){y(S.state);return}Object.keys(S.state).length!==1&&console.error(`
245
+ */var Tc;function fT(){return Tc||(Tc=1,process.env.NODE_ENV!=="production"&&function(){function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=oe,n=Lf(),r=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;Pi.useSyncExternalStoreWithSelector=function(c,u,f,p,h){var m=i(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function b(T){if(!S){if(S=!0,R=T,T=p(T),h!==void 0&&g.hasValue){var k=g.value;if(h(k,T))return C=k}return C=T}if(k=C,r(R,T))return k;var P=p(T);return h!==void 0&&h(k,P)?(R=T,k):(R=T,C=P)}var S=!1,R,C,A=f===void 0?null:f;return[function(){return b(u())},A===null?void 0:function(){return b(A())}]},[u,f,p,h]);var v=o(c,m[0],m[1]);return s(function(){g.hasValue=!0,g.value=v},[v]),l(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Pi}var Ac;function pT(){return Ac||(Ac=1,process.env.NODE_ENV==="production"?Vr.exports=dT():Vr.exports=fT()),Vr.exports}var hT=pT();const gT=Mc(hT),mT={},Rc=t=>{let e;const n=new Set,r=(u,f)=>{const p=typeof u=="function"?u(e):u;if(!Object.is(p,e)){const h=e;e=f??(typeof p!="object"||p===null)?p:Object.assign({},e,p),n.forEach(m=>m(e,h))}},o=()=>e,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(mT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=e=t(r,o,l);return l},vT=t=>t?Rc(t):Rc,{useDebugValue:yT}=oe,{useSyncExternalStoreWithSelector:bT}=gT,ET=t=>t;function ST(t,e=ET,n){const r=bT(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return yT(r),r}const _c=(t,e)=>{const n=vT(t),r=(o,i=e)=>ST(n,o,i);return Object.assign(r,n),r},CT=(t,e)=>t?_c(t,e):_c,Ni={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},as=new Map,Br=t=>{const e=as.get(t);return e?Object.fromEntries(Object.entries(e.stores).map(([n,r])=>[n,r.getState()])):{}},wT=(t,e,n)=>{if(t===void 0)return{type:"untracked",connection:e.connect(n)};const r=as.get(n.name);if(r)return{type:"tracked",store:t,...r};const o={connection:e.connect(n),stores:{}};return as.set(n.name,o),{type:"tracked",store:t,...o}},xT=(t,e={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...l}=e;let c;try{c=(i??(Ni?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(Ni?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(n,r,o);const{connection:u,...f}=wT(a,c,l);let p=!0;o.setState=(g,v,b)=>{const S=n(g,v);if(!p)return S;const R=b===void 0?{type:s||"anonymous"}:typeof b=="string"?{type:b}:b;return a===void 0?(u==null||u.send(R,r()),S):(u==null||u.send({...R,type:`${a}/${R.type}`},{...Br(l.name),[a]:o.getState()}),S)};const h=(...g)=>{const v=p;p=!1,n(...g),p=v},m=t(o.setState,r,o);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=o,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const v=o.dispatch;o.dispatch=(...b)=>{(Ni?"production":void 0)!=="production"&&b[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...b)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ji(g.payload,b=>{if(b.type==="__setState"){if(a===void 0){h(b.state);return}Object.keys(b.state).length!==1&&console.error(`
246
246
  [zustand devtools middleware] Unsupported __setState action format.
247
247
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
248
248
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
249
- `);const T=S.state[l];if(T==null)return;JSON.stringify(o.getState())!==JSON.stringify(T)&&y(T);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(S)});case"DISPATCH":switch(f.payload.type){case"RESET":return y(g),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(Cn(c.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(Cn(c.name));case"ROLLBACK":return Er(f.state,S=>{if(l===void 0){y(S),d==null||d.init(o.getState());return}y(S[l]),d==null||d.init(Cn(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Er(f.state,S=>{if(l===void 0){y(S);return}JSON.stringify(o.getState())!==JSON.stringify(S[l])&&y(S[l])});case"IMPORT_STATE":{const{nextLiftedState:S}=f.payload,T=(v=S.computedStates.slice(-1)[0])==null?void 0:v.state;if(!T)return;y(l===void 0?T:T[l]),d==null||d.send(null,S);return}case"PAUSE_RECORDING":return m=!m}return}}),g},Fh=zh,Er=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},js=Lh()(Fh((e,t)=>({events:[],isLoading:!1,error:null,setEvents:n=>e({events:n}),addEvent:n=>e(r=>({events:[...r.events,n]})),updateEvent:(n,r)=>e(o=>({events:o.events.map(a=>a.id===n?{...a,...r}:a)})),removeEvent:n=>e(r=>({events:r.events.filter(o=>o.id!==n)})),clearEvents:()=>e({events:[]}),setLoading:n=>e({isLoading:n}),setError:n=>e({error:n}),getEventsForDateRange:(n,r)=>{const{events:o}=t();return o.filter(a=>{const i=new Date(a.start),l=a.end?new Date(a.end):i;return i<=r&&l>=n})}}),{name:"calendar-store"})),Wh=e=>{const t=e.replace("#",""),n=parseInt(t.substr(0,2),16),r=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return(.299*n+.587*r+.114*o)/255>.5?"black":"white"},En=()=>{const{events:e}=js(),t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm")),r=Y.useMediaQuery(t.breakpoints.between("sm","md")),o=n?"compact":r?"comfortable":"spacious",a=oe.useRef(null),i=oe.useRef(null),[l,c]=oe.useState("dayGridMonth"),[u,d]=oe.useState(!1),[p,m]=oe.useState(""),[y,g]=oe.useState(null),[f]=oe.useState(!1),[v,S]=oe.useState(!1),T=oe.useRef({x:0,scrollLeft:0}),k=oe.useRef(null);oe.useLayoutEffect(()=>{},[300,200]),oe.useLayoutEffect(()=>{if(!a.current||u)return;const L=ee=>{for(let N of ee){const C=N.contentRect.width,j=C>=1e3?"dayGridMonth":C>=600?"timeGridWeek":"timeGridDay";j!==l&&c(j)}},J=new ResizeObserver(L);return J.observe(a.current),()=>J.disconnect()},[u,l]),oe.useLayoutEffect(()=>{if(i.current){const L=i.current.getApi();requestAnimationFrame(()=>{L.changeView(l)})}},[l]),oe.useEffect(()=>{if(a.current){const L=a.current.querySelector(".fc-scroller");L&&(L.style.overflow="auto",k.current=L)}},[l]);const D=()=>{i.current&&i.current.getApi().prev()},M=()=>{i.current&&i.current.getApi().next()},V=()=>{i.current&&i.current.getApi().today()},B=L=>{c(L),d(!0),i.current&&i.current.getApi().changeView(L)},U=L=>{m(L.view.title)},_=oe.useCallback(L=>{const J=L.event.backgroundColor||L.event.extendedProps.backgroundColor,ee=L.event.borderColor||L.event.extendedProps.borderColor,N=L.event.textColor||L.event.extendedProps.textColor;J&&(L.el.style.backgroundColor=J),ee&&(L.el.style.borderColor=ee),N&&(L.el.style.color=N)},[]),h=oe.useCallback(L=>{k.current&&(S(!0),T.current={x:L.pageX,scrollLeft:k.current.scrollLeft})},[]),P=oe.useCallback(L=>{if(!v||!k.current)return;L.preventDefault();const J=L.pageX-T.current.x;k.current.scrollLeft=T.current.scrollLeft-J},[v]),E=oe.useCallback(()=>S(!1),[]),R=oe.useCallback(()=>S(!1),[]),$=L=>{L&&i.current&&i.current.getApi().gotoDate(L.toJSDate()),g(null)};return b.jsxs(Y.Box,{ref:a,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",color:t.palette.text.primary,padding:t.spacing(2),boxShadow:t.shadows[2],"& .fc-timegrid-event":{margin:"1px 0",padding:"1px"},"& .fc-daygrid-event":{margin:"1px 2px"},"& .fc td":{border:`1px solid ${t.palette.divider}`},"& .fc-timegrid-col-events":{margin:"0 2px"},"& .fc-event":{borderRadius:"4px"},"& .fc-event-main":{padding:0},"& .fc-event-title":{padding:"0 1px"},"& .fc-scrollgrid":{borderColor:t.palette.divider},"& .fc-col-header-cell":{borderColor:t.palette.divider},"& .fc-day:nth-of-type(even)":{backgroundColor:t.palette.background.default}},children:[b.jsx(Kc,{onPrev:D,onToday:V,onNext:M,onDatePickerOpen:L=>g(L.currentTarget),calendarView:l,onViewChange:B,currentTitle:p}),b.jsx(gh,{anchorEl:y,onClose:()=>g(null),onDateSelect:$}),b.jsx(Th,{calendarRef:i,calendarView:l,events:e,onDatesSet:U,eventDidMount:_,showAllDaySlot:f,onMouseDown:h,onMouseMove:P,onMouseUp:E,onMouseLeave:R,density:o})]})},Vs=()=>{const{registerGridItem:e,unregisterGridItem:t}=Pt.useGridItemContext();return oe.useEffect(()=>(Pt.registerMicroservice("calendar",En,{name:"Calendar",description:"Shows events and deadlines in a calendar view",category:"planning",iconComponent:Mn,metadata:{route:{path:"calendar",element:b.jsx(En,{})}}}),()=>{Pt.unregisterMicroservice("calendar")}),[]),oe.useEffect(()=>{const n=Pt.createGridItem({id:"calendar",x:0,y:0,w:15,h:2,minW:1,minH:1,maxW:15,maxH:15});return e("calendar",b.jsx(En,{}),n),()=>{t("calendar")}},[e,t]),null},Sa={"COMP.CS":{baseColor:"#2196f3",levelShades:{basic:"#90caf9",intermediate:"#2196f3",advanced:"#1565c0"}},MATH:{baseColor:"#4caf50",levelShades:{basic:"#a5d6a7",intermediate:"#4caf50",advanced:"#2e7d32"}},PHYS:{baseColor:"#f44336",levelShades:{basic:"#ef9a9a",intermediate:"#f44336",advanced:"#c62828"}},BIO:{baseColor:"#9c27b0",levelShades:{basic:"#ce93d8",intermediate:"#9c27b0",advanced:"#6a1b9a"}},CHEM:{baseColor:"#ff9800",levelShades:{basic:"#ffb74d",intermediate:"#ff9800",advanced:"#ef6c00"}},LANG:{baseColor:"#795548",levelShades:{basic:"#a1887f",intermediate:"#795548",advanced:"#4e342e"}}},Ls=()=>{const{setEvents:e,clearEvents:t}=js();return oe.useEffect(()=>Pt.eventBus.subscribe(r=>{if(r.length>0){const o=r.map(a=>{const i=a.metadata||{};let l="#2196f3",c="#1976d2";if(i.source==="courses"&&i.subject&&i.courseLevel){const u=Sa[i.subject]||Sa["COMP.CS"];l=u.levelShades[i.courseLevel]||u.levelShades.basic,c=u.baseColor}return{id:a.id,title:a.title,start:a.start,end:a.end,backgroundColor:l,borderColor:c,textColor:Wh(l),extendedProps:i}});e(o)}else t()}),[e,t]),null},Uh=({children:e})=>b.jsxs(b.Fragment,{children:[b.jsx(Vs,{}),b.jsx(Ls,{}),e]});exports.Calendar=En;exports.CalendarEventAggregator=Ls;exports.CalendarManager=Vs;exports.CalendarMicroservice=Uh;
249
+ `);const S=b.state[a];if(S==null)return;JSON.stringify(o.getState())!==JSON.stringify(S)&&h(S);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),a===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(Br(l.name));case"COMMIT":if(a===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(Br(l.name));case"ROLLBACK":return ji(g.state,b=>{if(a===void 0){h(b),u==null||u.init(o.getState());return}h(b[a]),u==null||u.init(Br(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ji(g.state,b=>{if(a===void 0){h(b);return}JSON.stringify(o.getState())!==JSON.stringify(b[a])&&h(b[a])});case"IMPORT_STATE":{const{nextLiftedState:b}=g.payload,S=(v=b.computedStates.slice(-1)[0])==null?void 0:v.state;if(!S)return;h(a===void 0?S:S[a]),u==null||u.send(null,b);return}case"PAUSE_RECORDING":return p=!p}return}}),m},DT=xT,ji=(t,e)=>{let n;try{n=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&e(n)},Hf=CT()(DT((t,e)=>({events:[],isLoading:!1,error:null,setEvents:n=>t({events:n}),addEvent:n=>t(r=>({events:[...r.events,n]})),updateEvent:(n,r)=>t(o=>({events:o.events.map(i=>i.id===n?{...i,...r}:i)})),removeEvent:n=>t(r=>({events:r.events.filter(o=>o.id!==n)})),clearEvents:()=>t({events:[]}),setLoading:n=>t({isLoading:n}),setError:n=>t({error:n}),getEventsForDateRange:(n,r)=>{const{events:o}=e();return o.filter(i=>{const s=new Date(i.start),a=i.end?new Date(i.end):s;return s<=r&&a>=n})}}),{name:"calendar-store"})),TT=t=>{const e=t.replace("#",""),n=parseInt(e.substr(0,2),16),r=parseInt(e.substr(2,2),16),o=parseInt(e.substr(4,2),16);return(.299*n+.587*r+.114*o)/255>.5?"black":"white"},qr=()=>{const{events:t}=Hf(),e=q.useTheme(),n=q.useMediaQuery(e.breakpoints.down("sm")),r=q.useMediaQuery(e.breakpoints.between("sm","md")),o=n?"compact":r?"comfortable":"spacious",i=oe.useRef(null),s=oe.useRef(null),[a,l]=oe.useState("dayGridMonth"),[c,u]=oe.useState(!1),[f,p]=oe.useState(""),[h,m]=oe.useState(null),[g]=oe.useState(!1),[v,b]=oe.useState(!1),S=oe.useRef({x:0,scrollLeft:0}),R=oe.useRef(null);oe.useLayoutEffect(()=>{},[300,200]),oe.useLayoutEffect(()=>{if(!i.current||c)return;const z=ne=>{for(let V of ne){const D=V.contentRect.width,L=D>=1e3?"dayGridMonth":D>=600?"timeGridWeek":"timeGridDay";L!==a&&l(L)}},J=new ResizeObserver(z);return J.observe(i.current),()=>J.disconnect()},[c,a]),oe.useLayoutEffect(()=>{if(s.current){const z=s.current.getApi();requestAnimationFrame(()=>{z.changeView(a)})}},[a]),oe.useEffect(()=>{if(i.current){const z=i.current.querySelector(".fc-scroller");z&&(z.style.overflow="auto",R.current=z)}},[a]);const T=()=>{s.current&&s.current.getApi().prev()},k=()=>{s.current&&s.current.getApi().next()},P=()=>{s.current&&s.current.getApi().today()},H=z=>{l(z),u(!0),s.current&&s.current.getApi().changeView(z)},W=z=>{p(z.view.title)},$=oe.useCallback(z=>{const J=z.event.backgroundColor||z.event.extendedProps.backgroundColor,ne=z.event.borderColor||z.event.extendedProps.borderColor,V=z.event.textColor||z.event.extendedProps.textColor;J&&(z.el.style.backgroundColor=J),ne&&(z.el.style.borderColor=ne),V&&(z.el.style.color=V)},[]),y=oe.useCallback(z=>{R.current&&(b(!0),S.current={x:z.pageX,scrollLeft:R.current.scrollLeft})},[]),I=oe.useCallback(z=>{if(!v||!R.current)return;z.preventDefault();const J=z.pageX-S.current.x;R.current.scrollLeft=S.current.scrollLeft-J},[v]),_=oe.useCallback(()=>b(!1),[]),O=oe.useCallback(()=>b(!1),[]),N=z=>{z&&s.current&&s.current.getApi().gotoDate(z.toJSDate()),m(null)};return E.jsxs(q.Box,{ref:i,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",color:e.palette.text.primary,padding:e.spacing(2),boxShadow:e.shadows[2],"& .fc-timegrid-event":{margin:"1px 0",padding:"1px"},"& .fc-daygrid-event":{margin:"1px 2px"},"& .fc td":{border:`1px solid ${e.palette.divider}`},"& .fc-timegrid-col-events":{margin:"0 2px"},"& .fc-event":{borderRadius:"4px"},"& .fc-event-main":{padding:0},"& .fc-event-title":{padding:"0 1px"},"& .fc-scrollgrid":{borderColor:e.palette.divider},"& .fc-col-header-cell":{borderColor:e.palette.divider},"& .fc-day:nth-of-type(even)":{backgroundColor:e.palette.background.default}},children:[E.jsx(Qg,{onPrev:T,onToday:P,onNext:k,onDatePickerOpen:z=>m(z.currentTarget),calendarView:a,onViewChange:H,currentTitle:f}),E.jsx(gE,{anchorEl:h,onClose:()=>m(null),onDateSelect:N}),E.jsx(lT,{calendarRef:s,calendarView:a,events:t,onDatesSet:W,eventDidMount:$,showAllDaySlot:g,onMouseDown:y,onMouseMove:I,onMouseUp:_,onMouseLeave:O,density:o})]})},zf=()=>{const{registerGridItem:t,unregisterGridItem:e}=Dn.useGridItemContext();return oe.useEffect(()=>(Dn.registerMicroservice("calendar",qr,{name:"Calendar",description:"Shows events and deadlines in a calendar view",category:"planning",iconComponent:eo,metadata:{route:{path:"calendar",element:E.jsx(qr,{})}}}),()=>{Dn.unregisterMicroservice("calendar")}),[]),oe.useEffect(()=>{const n=Dn.createGridItem({id:"calendar",x:0,y:0,w:15,h:2,minW:1,minH:1,maxW:15,maxH:15});return t("calendar",E.jsx(qr,{}),n),()=>{e("calendar")}},[t,e]),null},kc={"COMP.CS":{baseColor:"#2196f3",levelShades:{basic:"#90caf9",intermediate:"#2196f3",advanced:"#1565c0"}},MATH:{baseColor:"#4caf50",levelShades:{basic:"#a5d6a7",intermediate:"#4caf50",advanced:"#2e7d32"}},PHYS:{baseColor:"#f44336",levelShades:{basic:"#ef9a9a",intermediate:"#f44336",advanced:"#c62828"}},BIO:{baseColor:"#9c27b0",levelShades:{basic:"#ce93d8",intermediate:"#9c27b0",advanced:"#6a1b9a"}},CHEM:{baseColor:"#ff9800",levelShades:{basic:"#ffb74d",intermediate:"#ff9800",advanced:"#ef6c00"}},LANG:{baseColor:"#795548",levelShades:{basic:"#a1887f",intermediate:"#795548",advanced:"#4e342e"}}},Ff=()=>{const{setEvents:t,clearEvents:e}=Hf();return oe.useEffect(()=>Dn.eventBus.subscribe(r=>{if(r.length>0){const o=r.map(i=>{const s=i.metadata||{};let a="#2196f3",l="#1976d2";if(s.source==="courses"&&s.subject&&s.courseLevel){const c=kc[s.subject]||kc["COMP.CS"];a=c.levelShades[s.courseLevel]||c.levelShades.basic,l=c.baseColor}return{id:i.id,title:i.title,start:i.start,end:i.end,backgroundColor:a,borderColor:l,textColor:TT(a),extendedProps:s}});t(o)}else e()}),[t,e]),null},AT=({children:t})=>E.jsxs(E.Fragment,{children:[E.jsx(zf,{}),E.jsx(Ff,{}),t]});exports.Calendar=qr;exports.CalendarEventAggregator=Ff;exports.CalendarManager=zf;exports.CalendarMicroservice=AT;