@visio-io/design-system 1.8.13 → 1.8.15

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.
Files changed (29) hide show
  1. package/dist/index.cjs.js +78 -78
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +8145 -8611
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/GoogleMap/types.d.ts +1 -0
  7. package/dist/types/components/index.d.ts +0 -10
  8. package/package.json +1 -1
  9. package/dist/types/components/ContentCard/ContentCard.d.ts +0 -2
  10. package/dist/types/components/ContentCard/ContentCard.stories.d.ts +0 -12
  11. package/dist/types/components/ContentCard/index.d.ts +0 -2
  12. package/dist/types/components/ContentCard/types.d.ts +0 -13
  13. package/dist/types/components/ListPageLayout/ListPageActionBar.d.ts +0 -2
  14. package/dist/types/components/ListPageLayout/ListPageActionBar.stories.d.ts +0 -10
  15. package/dist/types/components/ListPageLayout/ListPageLayout.d.ts +0 -2
  16. package/dist/types/components/ListPageLayout/ListPageLayout.stories.d.ts +0 -9
  17. package/dist/types/components/ListPageLayout/index.d.ts +0 -3
  18. package/dist/types/components/ListPageLayout/types.d.ts +0 -23
  19. package/dist/types/components/PageHeader/PageHeader.d.ts +0 -2
  20. package/dist/types/components/PageHeader/PageHeader.stories.d.ts +0 -11
  21. package/dist/types/components/PageHeader/index.d.ts +0 -2
  22. package/dist/types/components/PageHeader/types.d.ts +0 -8
  23. package/dist/types/components/Pagination/Pagination.d.ts +0 -2
  24. package/dist/types/components/Pagination/Pagination.stories.d.ts +0 -11
  25. package/dist/types/components/Pagination/index.d.ts +0 -2
  26. package/dist/types/components/Pagination/types.d.ts +0 -9
  27. package/dist/types/components/SortDropdown/SortDropdown.d.ts +0 -2
  28. package/dist/types/components/SortDropdown/index.d.ts +0 -2
  29. package/dist/types/components/SortDropdown/types.d.ts +0 -11
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var fv=Object.defineProperty;var pv=(e,t,n)=>t in e?fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>pv(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("@mui/material/styles"),k=require("react"),W=require("@mui/material"),gt=require("@mui/icons-material"),Wt=require("@mui/system"),hv=require("@emotion/styled"),mv=require("@emotion/react"),nr=require("react-dom");function Qh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=Qh(k),gv=Qh(nr),pt={primary:"#E5FF4A",onPrimary:"#101111",primaryContainer:"#cfe5ff",onPrimaryContainer:"#001d33",secondary:"#526070",onSecondary:"#ffffff",secondaryContainer:"#d5e4f7",onSecondaryContainer:"#0f1d2a",tertiary:"#68587a",onTertiary:"#ffffff",tertiaryContainer:"#eedcff",onTertiaryContainer:"#231533",error:"#ba1a1a",onError:"#ffffff",errorContainer:"#ffdad6",onErrorContainer:"#410002",surface:"#fdfcff",onSurface:"#1a1c1e",surfaceVariant:"#dee3eb",onSurfaceVariant:"#3B3B3C",outline:"#72787e",inverseSurface:"#2f3033",inverseOnSurface:"#f1f0f4",inversePrimary:"#98cbff"},yt={primary:"#E5FF4A",onPrimary:"#101111",primaryContainer:"#004a78",onPrimaryContainer:"#cfe5ff",secondary:"#b9c8da",onSecondary:"#233241",secondaryContainer:"#3a4a58",onSecondaryContainer:"#d5e4f7",tertiary:"#d3bee5",onTertiary:"#382a4a",tertiaryContainer:"#4f4062",onTertiaryContainer:"#eedcff",error:"#ffb4ab",onError:"#690005",errorContainer:"#93000a",onErrorContainer:"#ffdad6",surface:"#252626",onSurface:"#e2e2e6",surfaceVariant:"#42474e",onSurfaceVariant:"#c2c7cf",outline:"#8c9198",inverseSurface:"#e2e2e6",inverseOnSurface:"#2f3033",inversePrimary:"#006399"},Ot={fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:{xs:12,sm:14,md:16,lg:18,xl:20,xxl:24},fontWeight:{regular:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.2,normal:1.5,relaxed:1.7}},Jh={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},Ci={sm:4,md:8,lg:12,xl:16,pill:999},em={shape:{borderRadius:Ci.md,borderRadiusSm:Ci.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:Ci.md,fontWeight:Ot.fontWeight.medium,letterSpacing:"0.2px",textTransform:"none","&:focus-visible":{outline:"2px solid currentColor",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6}}},variants:[{props:{variant:"contained",color:"primary"},style:{boxShadow:"none"}}]},MuiList:{styleOverrides:{root:{padding:"4px"}}}},typography:{fontFamily:Ot.fontFamily,fontWeightRegular:Ot.fontWeight.regular,fontWeightMedium:Ot.fontWeight.medium,fontWeightBold:Ot.fontWeight.bold,h1:{fontSize:Ot.fontSize.xxl,fontWeight:Ot.fontWeight.bold,lineHeight:Ot.lineHeight.tight},h2:{fontSize:Ot.fontSize.xl,fontWeight:Ot.fontWeight.bold,lineHeight:Ot.lineHeight.tight},body1:{fontSize:Ot.fontSize.md,lineHeight:Ot.lineHeight.normal},body2:{fontSize:Ot.fontSize.sm,lineHeight:Ot.lineHeight.normal},button:{fontWeight:Ot.fontWeight.semibold,textTransform:"none"}}},tm=ae.createTheme({...em,palette:{mode:"light",primary:{main:pt.primary,contrastText:pt.onPrimary},secondary:{main:pt.secondary,contrastText:pt.onSecondary},error:{main:pt.error,contrastText:pt.onError},background:{default:pt.surface,paper:pt.surface},text:{primary:pt.onSurface,secondary:pt.onSurfaceVariant},divider:pt.outline,action:{hover:"#EDEDED",selected:"#E0E0E0"}},visio:{surfaceVariant:pt.surfaceVariant,onSurfaceVariant:pt.onSurfaceVariant,inverseSurface:pt.inverseSurface,inverseOnSurface:pt.inverseOnSurface,inversePrimary:pt.inversePrimary,outline:pt.outline,tertiary:{main:pt.tertiary,contrastText:pt.onTertiary,container:pt.tertiaryContainer,onContainer:pt.onTertiaryContainer}}}),nm=ae.createTheme({...em,palette:{mode:"dark",primary:{main:yt.primary,contrastText:yt.onPrimary},secondary:{main:yt.secondary,contrastText:yt.onSecondary},error:{main:yt.error,contrastText:yt.onError},background:{default:yt.surface,paper:"#1A1C1C"},text:{primary:yt.onSurface,secondary:yt.onSurfaceVariant},divider:yt.outline},visio:{surfaceVariant:yt.surfaceVariant,onSurfaceVariant:yt.onSurfaceVariant,inverseSurface:yt.inverseSurface,inverseOnSurface:yt.inverseOnSurface,inversePrimary:yt.inversePrimary,outline:yt.outline,tertiary:{main:yt.tertiary,contrastText:yt.onTertiary,container:yt.tertiaryContainer,onContainer:yt.onTertiaryContainer}}}),yv=Jh;var Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vl={exports:{}},Nr={};/**
1
+ "use strict";var Qb=Object.defineProperty;var Jb=(e,t,n)=>t in e?Qb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>Jb(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("@mui/material/styles"),O=require("react"),q=require("@mui/material"),Ct=require("@mui/icons-material"),Ht=require("@mui/system"),e0=require("@emotion/styled"),t0=require("@emotion/react"),Qo=require("react-dom");function zh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=zh(O),n0=zh(Qo),ft={primary:"#E5FF4A",onPrimary:"#101111",primaryContainer:"#cfe5ff",onPrimaryContainer:"#001d33",secondary:"#526070",onSecondary:"#ffffff",secondaryContainer:"#d5e4f7",onSecondaryContainer:"#0f1d2a",tertiary:"#68587a",onTertiary:"#ffffff",tertiaryContainer:"#eedcff",onTertiaryContainer:"#231533",error:"#ba1a1a",onError:"#ffffff",errorContainer:"#ffdad6",onErrorContainer:"#410002",surface:"#fdfcff",onSurface:"#1a1c1e",surfaceVariant:"#dee3eb",onSurfaceVariant:"#3B3B3C",outline:"#72787e",inverseSurface:"#2f3033",inverseOnSurface:"#f1f0f4",inversePrimary:"#98cbff"},mt={primary:"#E5FF4A",onPrimary:"#101111",primaryContainer:"#004a78",onPrimaryContainer:"#cfe5ff",secondary:"#b9c8da",onSecondary:"#233241",secondaryContainer:"#3a4a58",onSecondaryContainer:"#d5e4f7",tertiary:"#d3bee5",onTertiary:"#382a4a",tertiaryContainer:"#4f4062",onTertiaryContainer:"#eedcff",error:"#ffb4ab",onError:"#690005",errorContainer:"#93000a",onErrorContainer:"#ffdad6",surface:"#252626",onSurface:"#e2e2e6",surfaceVariant:"#42474e",onSurfaceVariant:"#c2c7cf",outline:"#8c9198",inverseSurface:"#e2e2e6",inverseOnSurface:"#2f3033",inversePrimary:"#006399"},Ot={fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:{xs:12,sm:14,md:16,lg:18,xl:20,xxl:24},fontWeight:{regular:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.2,normal:1.5,relaxed:1.7}},Hh={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},yi={sm:4,md:8,lg:12,xl:16,pill:999},Wh={shape:{borderRadius:yi.md,borderRadiusSm:yi.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:yi.md,fontWeight:Ot.fontWeight.medium,letterSpacing:"0.2px",textTransform:"none","&:focus-visible":{outline:"2px solid currentColor",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6}}},variants:[{props:{variant:"contained",color:"primary"},style:{boxShadow:"none"}}]},MuiList:{styleOverrides:{root:{padding:"4px"}}}},typography:{fontFamily:Ot.fontFamily,fontWeightRegular:Ot.fontWeight.regular,fontWeightMedium:Ot.fontWeight.medium,fontWeightBold:Ot.fontWeight.bold,h1:{fontSize:Ot.fontSize.xxl,fontWeight:Ot.fontWeight.bold,lineHeight:Ot.lineHeight.tight},h2:{fontSize:Ot.fontSize.xl,fontWeight:Ot.fontWeight.bold,lineHeight:Ot.lineHeight.tight},body1:{fontSize:Ot.fontSize.md,lineHeight:Ot.lineHeight.normal},body2:{fontSize:Ot.fontSize.sm,lineHeight:Ot.lineHeight.normal},button:{fontWeight:Ot.fontWeight.semibold,textTransform:"none"}}},Uh=ae.createTheme({...Wh,palette:{mode:"light",primary:{main:ft.primary,contrastText:ft.onPrimary},secondary:{main:ft.secondary,contrastText:ft.onSecondary},error:{main:ft.error,contrastText:ft.onError},background:{default:ft.surface,paper:ft.surface},text:{primary:ft.onSurface,secondary:ft.onSurfaceVariant},divider:ft.outline,action:{hover:"#EDEDED",selected:"#E0E0E0"}},visio:{surfaceVariant:ft.surfaceVariant,onSurfaceVariant:ft.onSurfaceVariant,inverseSurface:ft.inverseSurface,inverseOnSurface:ft.inverseOnSurface,inversePrimary:ft.inversePrimary,outline:ft.outline,tertiary:{main:ft.tertiary,contrastText:ft.onTertiary,container:ft.tertiaryContainer,onContainer:ft.onTertiaryContainer}}}),Yh=ae.createTheme({...Wh,palette:{mode:"dark",primary:{main:mt.primary,contrastText:mt.onPrimary},secondary:{main:mt.secondary,contrastText:mt.onSecondary},error:{main:mt.error,contrastText:mt.onError},background:{default:mt.surface,paper:"#1A1C1C"},text:{primary:mt.onSurface,secondary:mt.onSurfaceVariant},divider:mt.outline},visio:{surfaceVariant:mt.surfaceVariant,onSurfaceVariant:mt.onSurfaceVariant,inverseSurface:mt.inverseSurface,inverseOnSurface:mt.inverseOnSurface,inversePrimary:mt.inversePrimary,outline:mt.outline,tertiary:{main:mt.tertiary,contrastText:mt.onTertiary,container:mt.tertiaryContainer,onContainer:mt.onTertiaryContainer}}}),o0=Hh;var Cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rl={exports:{}},Rr={};/**
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 Dd;function bv(){if(Dd)return Nr;Dd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,i){var a=null;if(i!==void 0&&(a=""+i),r.key!==void 0&&(a=""+r.key),"key"in r){i={};for(var l in r)l!=="key"&&(i[l]=r[l])}else i=r;return r=i.ref,{$$typeof:e,type:o,key:a,ref:r!==void 0?r:null,props:i}}return Nr.Fragment=t,Nr.jsx=n,Nr.jsxs=n,Nr}var jr={};/**
9
+ */var vd;function r0(){if(vd)return Rr;vd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,i){var a=null;if(i!==void 0&&(a=""+i),r.key!==void 0&&(a=""+r.key),"key"in r){i={};for(var l in r)l!=="key"&&(i[l]=r[l])}else i=r;return r=i.ref,{$$typeof:e,type:o,key:a,ref:r!==void 0?r:null,props:i}}return Rr.Fragment=t,Rr.jsx=n,Rr.jsxs=n,Rr}var Ir={};/**
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 Id;function vv(){return Id||(Id=1,process.env.NODE_ENV!=="production"&&function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===j?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case b:return"Fragment";case S:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case g:return"Portal";case C:return I.displayName||"Context";case w:return(I._context.displayName||"Context")+".Consumer";case T:var Y=I.render;return I=I.displayName,I||(I=Y.displayName||Y.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case R:return Y=I.displayName||null,Y!==null?Y:e(I.type)||"Memo";case D:Y=I._payload,I=I._init;try{return e(I(Y))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var Y=!1}catch{Y=!0}if(Y){Y=console;var q=Y.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return q.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),t(I)}}function o(I){if(I===b)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===D)return"<...>";try{var Y=e(I);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function r(){var I=x.A;return I===null?null:I.getOwner()}function i(){return Error("react-stack-top-frame")}function a(I){if(L.call(I,"key")){var Y=Object.getOwnPropertyDescriptor(I,"key").get;if(Y&&Y.isReactWarning)return!1}return I.key!==void 0}function l(I,Y){function q(){O||(O=!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)",Y))}q.isReactWarning=!0,Object.defineProperty(I,"key",{get:q,configurable:!0})}function c(){var I=e(this.type);return N[I]||(N[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function d(I,Y,q,Z,re,Q){var J=q.ref;return I={$$typeof:m,type:I,key:Y,props:q,_owner:Z},(J!==void 0?J:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:c}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function u(I,Y,q,Z,re,Q){var J=Y.children;if(J!==void 0)if(Z)if(A(J)){for(Z=0;Z<J.length;Z++)f(J[Z]);Object.freeze&&Object.freeze(J)}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(J);if(L.call(Y,"key")){J=e(I);var ie=Object.keys(Y).filter(function(H){return H!=="key"});Z=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",B[J+Z]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var xd;function s0(){return xd||(xd=1,process.env.NODE_ENV!=="production"&&function(){function e(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===j?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case y:return"Fragment";case S:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof R=="object")switch(typeof R.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case g:return"Portal";case C:return R.displayName||"Context";case w:return(R._context.displayName||"Context")+".Consumer";case T:var U=R.render;return R=R.displayName,R||(R=U.displayName||U.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case I:return U=R.displayName||null,U!==null?U:e(R.type)||"Memo";case D:U=R._payload,R=R._init;try{return e(R(U))}catch{}}return null}function t(R){return""+R}function n(R){try{t(R);var U=!1}catch{U=!0}if(U){U=console;var Y=U.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return Y.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(R)}}function o(R){if(R===y)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===D)return"<...>";try{var U=e(R);return U?"<"+U+">":"<...>"}catch{return"<...>"}}function r(){var R=x.A;return R===null?null:R.getOwner()}function i(){return Error("react-stack-top-frame")}function a(R){if(L.call(R,"key")){var U=Object.getOwnPropertyDescriptor(R,"key").get;if(U&&U.isReactWarning)return!1}return R.key!==void 0}function l(R,U){function Y(){k||(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)",U))}Y.isReactWarning=!0,Object.defineProperty(R,"key",{get:Y,configurable:!0})}function c(){var R=e(this.type);return _[R]||(_[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function u(R,U,Y,K,re,Q){var J=Y.ref;return R={$$typeof:m,type:R,key:U,props:Y,_owner:K},(J!==void 0?J:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:c}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function d(R,U,Y,K,re,Q){var J=U.children;if(J!==void 0)if(K)if(A(J)){for(K=0;K<J.length;K++)f(J[K]);Object.freeze&&Object.freeze(J)}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(J);if(L.call(U,"key")){J=e(R);var ie=Object.keys(U).filter(function(H){return H!=="key"});K=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",B[J+K]||(ie=0<ie.length?"{"+ie.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} />`,Z,J,ie,J),B[J+Z]=!0)}if(J=null,q!==void 0&&(n(q),J=""+q),a(Y)&&(n(Y.key),J=""+Y.key),"key"in Y){q={};for(var ee in Y)ee!=="key"&&(q[ee]=Y[ee])}else q=Y;return J&&l(q,typeof I=="function"?I.displayName||I.name||"Unknown":I),d(I,J,q,r(),re,Q)}function f(I){p(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===D&&(I._payload.status==="fulfilled"?p(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function p(I){return typeof I=="object"&&I!==null&&I.$$typeof===m}var h=k,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,A=Array.isArray,_=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(I){return I()}};var O,N={},$=h.react_stack_bottom_frame.bind(h,i)(),F=_(o(i)),B={};jr.Fragment=b,jr.jsx=function(I,Y,q){var Z=1e4>x.recentlyCreatedOwnerStacks++;return u(I,Y,q,!1,Z?Error("react-stack-top-frame"):$,Z?_(o(I)):F)},jr.jsxs=function(I,Y,q){var Z=1e4>x.recentlyCreatedOwnerStacks++;return u(I,Y,q,!0,Z?Error("react-stack-top-frame"):$,Z?_(o(I)):F)}}()),jr}process.env.NODE_ENV==="production"?Vl.exports=bv():Vl.exports=vv();var y=Vl.exports;const om=k.createContext(null),xv=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=k.useState(n??t),l=n??i;k.useEffect(()=>{n&&a(n)},[n]);const c=k.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),d=k.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),u=k.useMemo(()=>l==="dark"?nm:tm,[l]),f=k.useMemo(()=>({mode:l,setMode:c,toggleMode:d,theme:u}),[l,c,d,u]);return y.jsx(om.Provider,{value:f,children:y.jsxs(W.ThemeProvider,{theme:u,children:[r?y.jsx(W.CssBaseline,{}):null,e]})})},Cv=()=>{const e=k.useContext(om);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},wv="_button_1x96v_1",Sv="_borderRadiusNone_1x96v_8",Tv="_borderRadiusSmall_1x96v_12",Pv="_borderRadiusMedium_1x96v_16",Ev="_borderRadiusLarge_1x96v_20",Mv="_borderRadiusRound_1x96v_24",Mo={button:wv,borderRadiusNone:Sv,borderRadiusSmall:Tv,borderRadiusMedium:Pv,borderRadiusLarge:Ev,borderRadiusRound:Mv},kv=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return Mo.borderRadiusNone;case"small":return Mo.borderRadiusSmall;case"medium":return Mo.borderRadiusMedium;case"large":return Mo.borderRadiusLarge;case"round":return Mo.borderRadiusRound;default:return Mo.borderRadiusMedium}},Ov=e=>{if(typeof e=="number")return`${e}px`},Dv=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},Lc=k.forwardRef(({children:e,loading:t=!1,loadingText:n,startIcon:o,endIcon:r,variant:i="contained",size:a="medium",color:l="primary",borderRadius:c="medium",fullWidth:d=!1,disabled:u=!1,type:f="button",className:p,onClick:h,onAction:m,...g},b)=>{const v=u||t,S=kv(c),w=Ov(c),C=Dv(v,h,m),T=`${Mo.button} ${S} ${p||""}`.trim();return y.jsx(W.Button,{ref:b,variant:i,size:a,color:l,fullWidth:d,disabled:v,type:f,onClick:C,startIcon:t?y.jsx(W.CircularProgress,{size:a==="small"?16:a==="medium"?20:24,color:"inherit"}):o,endIcon:t?void 0:r,className:T,style:w?{borderRadius:w}:void 0,...g,children:t&&n?n:e})});Lc.displayName="Button";const Iv=e=>{if(e)return t=>{e(t)}},Rv="_filterButton_17ub0_1",Av={filterButton:Rv},Vc=k.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=W.useTheme().palette.mode==="dark",l=Iv(t);return y.jsx(W.Button,{ref:r,variant:"outlined",onClick:l,className:`${Av.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});Vc.displayName="FilterButton";const _v=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},Nv="_filterChip_1nmuc_1",jv="_textVariant_1nmuc_52",Lv="_icon_1nmuc_64",Vv="_label_1nmuc_80",$v="_overlay_1nmuc_92",Fv="_deleteIcon_1nmuc_106",Wo={filterChip:Nv,textVariant:jv,icon:Lv,label:Vv,overlay:$v,deleteIcon:Fv},Di=({label:e,icon:t,onRemove:n,className:o,onClick:r,variant:i="outlined",ref:a,...l})=>{const d=W.useTheme().palette.mode==="dark",u=_v(n,r),f=i==="text";return y.jsxs(W.Box,{ref:a,className:`${Wo.filterChip} ${f?Wo.textVariant:""} ${o||""}`.trim(),"data-theme":d?"dark":"light",onClick:u,role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...l,children:[t&&y.jsx(W.Box,{className:Wo.icon,component:"div",children:t}),y.jsx(W.Box,{className:Wo.label,component:"span",children:e}),!f&&y.jsx(W.Box,{className:Wo.overlay,component:"div",children:y.jsx(gt.Delete,{className:Wo.deleteIcon})})]})};Di.displayName="FilterChip";const Rd=e=>e,Bv=()=>{let e=Rd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Rd}}},zv=Bv();function Mn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ce(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ad(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var $l={exports:{}},ni={exports:{}},Fe={};/** @license React v16.13.1
22
+ <%s key={someKey} {...props} />`,K,J,ie,J),B[J+K]=!0)}if(J=null,Y!==void 0&&(n(Y),J=""+Y),a(U)&&(n(U.key),J=""+U.key),"key"in U){Y={};for(var ee in U)ee!=="key"&&(Y[ee]=U[ee])}else Y=U;return J&&l(Y,typeof R=="function"?R.displayName||R.name||"Unknown":R),u(R,J,Y,r(),re,Q)}function f(R){p(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===D&&(R._payload.status==="fulfilled"?p(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function p(R){return typeof R=="object"&&R!==null&&R.$$typeof===m}var h=O,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,A=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(R){return R()}};var k,_={},$=h.react_stack_bottom_frame.bind(h,i)(),F=N(o(i)),B={};Ir.Fragment=y,Ir.jsx=function(R,U,Y){var K=1e4>x.recentlyCreatedOwnerStacks++;return d(R,U,Y,!1,K?Error("react-stack-top-frame"):$,K?N(o(R)):F)},Ir.jsxs=function(R,U,Y){var K=1e4>x.recentlyCreatedOwnerStacks++;return d(R,U,Y,!0,K?Error("react-stack-top-frame"):$,K?N(o(R)):F)}}()),Ir}process.env.NODE_ENV==="production"?Rl.exports=r0():Rl.exports=s0();var b=Rl.exports;const qh=O.createContext(null),i0=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=O.useState(n??t),l=n??i;O.useEffect(()=>{n&&a(n)},[n]);const c=O.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),u=O.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),d=O.useMemo(()=>l==="dark"?Yh:Uh,[l]),f=O.useMemo(()=>({mode:l,setMode:c,toggleMode:u,theme:d}),[l,c,u,d]);return b.jsx(qh.Provider,{value:f,children:b.jsxs(q.ThemeProvider,{theme:d,children:[r?b.jsx(q.CssBaseline,{}):null,e]})})},a0=()=>{const e=O.useContext(qh);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},l0="_button_1x96v_1",c0="_borderRadiusNone_1x96v_8",u0="_borderRadiusSmall_1x96v_12",d0="_borderRadiusMedium_1x96v_16",f0="_borderRadiusLarge_1x96v_20",p0="_borderRadiusRound_1x96v_24",So={button:l0,borderRadiusNone:c0,borderRadiusSmall:u0,borderRadiusMedium:d0,borderRadiusLarge:f0,borderRadiusRound:p0},h0=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return So.borderRadiusNone;case"small":return So.borderRadiusSmall;case"medium":return So.borderRadiusMedium;case"large":return So.borderRadiusLarge;case"round":return So.borderRadiusRound;default:return So.borderRadiusMedium}},m0=e=>{if(typeof e=="number")return`${e}px`},g0=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},kc=O.forwardRef(({children:e,loading:t=!1,loadingText:n,startIcon:o,endIcon:r,variant:i="contained",size:a="medium",color:l="primary",borderRadius:c="medium",fullWidth:u=!1,disabled:d=!1,type:f="button",className:p,onClick:h,onAction:m,...g},y)=>{const v=d||t,S=h0(c),w=m0(c),C=g0(v,h,m),T=`${So.button} ${S} ${p||""}`.trim();return b.jsx(q.Button,{ref:y,variant:i,size:a,color:l,fullWidth:u,disabled:v,type:f,onClick:C,startIcon:t?b.jsx(q.CircularProgress,{size:a==="small"?16:a==="medium"?20:24,color:"inherit"}):o,endIcon:t?void 0:r,className:T,style:w?{borderRadius:w}:void 0,...g,children:t&&n?n:e})});kc.displayName="Button";const y0=e=>{if(e)return t=>{e(t)}},b0="_filterButton_1gynw_1",v0={filterButton:b0},Gh=O.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=q.useTheme().palette.mode==="dark",l=y0(t);return b.jsx(q.Button,{ref:r,variant:"outlined",onClick:l,className:`${v0.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});Gh.displayName="FilterButton";const x0=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},C0="_filterChip_1nmuc_1",w0="_textVariant_1nmuc_52",S0="_icon_1nmuc_64",T0="_label_1nmuc_80",P0="_overlay_1nmuc_92",E0="_deleteIcon_1nmuc_106",Fo={filterChip:C0,textVariant:w0,icon:S0,label:T0,overlay:P0,deleteIcon:E0},Zh=({label:e,icon:t,onRemove:n,className:o,onClick:r,variant:i="outlined",ref:a,...l})=>{const u=q.useTheme().palette.mode==="dark",d=x0(n,r),f=i==="text";return b.jsxs(q.Box,{ref:a,className:`${Fo.filterChip} ${f?Fo.textVariant:""} ${o||""}`.trim(),"data-theme":u?"dark":"light",onClick:d,role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...l,children:[t&&b.jsx(q.Box,{className:Fo.icon,component:"div",children:t}),b.jsx(q.Box,{className:Fo.label,component:"span",children:e}),!f&&b.jsx(q.Box,{className:Fo.overlay,component:"div",children:b.jsx(Ct.Delete,{className:Fo.deleteIcon})})]})};Zh.displayName="FilterChip";const Cd=e=>e,M0=()=>{let e=Cd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cd}}},O0=M0();function Pn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ce(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wd(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var Il={exports:{}},Qs={exports:{}},Fe={};/** @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 _d;function Hv(){if(_d)return Fe;_d=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case c:case d:case o:case i:case r:case f:return T;default:switch(T=T&&T.$$typeof,T){case l:case u:case m:case h:case a:return T;default:return E}}case n:return E}}}function C(T){return w(T)===d}return Fe.AsyncMode=c,Fe.ConcurrentMode=d,Fe.ContextConsumer=l,Fe.ContextProvider=a,Fe.Element=t,Fe.ForwardRef=u,Fe.Fragment=o,Fe.Lazy=m,Fe.Memo=h,Fe.Portal=n,Fe.Profiler=i,Fe.StrictMode=r,Fe.Suspense=f,Fe.isAsyncMode=function(T){return C(T)||w(T)===c},Fe.isConcurrentMode=C,Fe.isContextConsumer=function(T){return w(T)===l},Fe.isContextProvider=function(T){return w(T)===a},Fe.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Fe.isForwardRef=function(T){return w(T)===u},Fe.isFragment=function(T){return w(T)===o},Fe.isLazy=function(T){return w(T)===m},Fe.isMemo=function(T){return w(T)===h},Fe.isPortal=function(T){return w(T)===n},Fe.isProfiler=function(T){return w(T)===i},Fe.isStrictMode=function(T){return w(T)===r},Fe.isSuspense=function(T){return w(T)===f},Fe.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===d||T===i||T===r||T===f||T===p||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===l||T.$$typeof===u||T.$$typeof===b||T.$$typeof===v||T.$$typeof===S||T.$$typeof===g)},Fe.typeOf=w,Fe}var Be={};/** @license React v16.13.1
29
+ */var Sd;function k0(){if(Sd)return Fe;Sd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case c:case u:case o:case i:case r:case f:return T;default:switch(T=T&&T.$$typeof,T){case l:case d:case m:case h:case a:return T;default:return E}}case n:return E}}}function C(T){return w(T)===u}return Fe.AsyncMode=c,Fe.ConcurrentMode=u,Fe.ContextConsumer=l,Fe.ContextProvider=a,Fe.Element=t,Fe.ForwardRef=d,Fe.Fragment=o,Fe.Lazy=m,Fe.Memo=h,Fe.Portal=n,Fe.Profiler=i,Fe.StrictMode=r,Fe.Suspense=f,Fe.isAsyncMode=function(T){return C(T)||w(T)===c},Fe.isConcurrentMode=C,Fe.isContextConsumer=function(T){return w(T)===l},Fe.isContextProvider=function(T){return w(T)===a},Fe.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Fe.isForwardRef=function(T){return w(T)===d},Fe.isFragment=function(T){return w(T)===o},Fe.isLazy=function(T){return w(T)===m},Fe.isMemo=function(T){return w(T)===h},Fe.isPortal=function(T){return w(T)===n},Fe.isProfiler=function(T){return w(T)===i},Fe.isStrictMode=function(T){return w(T)===r},Fe.isSuspense=function(T){return w(T)===f},Fe.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===u||T===i||T===r||T===f||T===p||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===l||T.$$typeof===d||T.$$typeof===y||T.$$typeof===v||T.$$typeof===S||T.$$typeof===g)},Fe.typeOf=w,Fe}var Be={};/** @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 Nd;function Wv(){return Nd||(Nd=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,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(z){return typeof z=="string"||typeof z=="function"||z===o||z===d||z===i||z===r||z===f||z===p||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===h||z.$$typeof===a||z.$$typeof===l||z.$$typeof===u||z.$$typeof===b||z.$$typeof===v||z.$$typeof===S||z.$$typeof===g)}function C(z){if(typeof z=="object"&&z!==null){var K=z.$$typeof;switch(K){case t:var X=z.type;switch(X){case c:case d:case o:case i:case r:case f:return X;default:var te=X&&X.$$typeof;switch(te){case l:case u:case m:case h:case a:return te;default:return K}}case n:return K}}}var T=c,E=d,M=l,R=a,D=t,V=u,j=o,x=m,L=h,A=n,_=i,O=r,N=f,$=!1;function F(z){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(z)||C(z)===c}function B(z){return C(z)===d}function I(z){return C(z)===l}function Y(z){return C(z)===a}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Z(z){return C(z)===u}function re(z){return C(z)===o}function Q(z){return C(z)===m}function J(z){return C(z)===h}function ie(z){return C(z)===n}function ee(z){return C(z)===i}function H(z){return C(z)===r}function G(z){return C(z)===f}Be.AsyncMode=T,Be.ConcurrentMode=E,Be.ContextConsumer=M,Be.ContextProvider=R,Be.Element=D,Be.ForwardRef=V,Be.Fragment=j,Be.Lazy=x,Be.Memo=L,Be.Portal=A,Be.Profiler=_,Be.StrictMode=O,Be.Suspense=N,Be.isAsyncMode=F,Be.isConcurrentMode=B,Be.isContextConsumer=I,Be.isContextProvider=Y,Be.isElement=q,Be.isForwardRef=Z,Be.isFragment=re,Be.isLazy=Q,Be.isMemo=J,Be.isPortal=ie,Be.isProfiler=ee,Be.isStrictMode=H,Be.isSuspense=G,Be.isValidElementType=w,Be.typeOf=C}()),Be}var jd;function rm(){return jd||(jd=1,process.env.NODE_ENV==="production"?ni.exports=Hv():ni.exports=Wv()),ni.exports}/*
36
+ */var Td;function D0(){return Td||(Td=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,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(z){return typeof z=="string"||typeof z=="function"||z===o||z===u||z===i||z===r||z===f||z===p||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===h||z.$$typeof===a||z.$$typeof===l||z.$$typeof===d||z.$$typeof===y||z.$$typeof===v||z.$$typeof===S||z.$$typeof===g)}function C(z){if(typeof z=="object"&&z!==null){var Z=z.$$typeof;switch(Z){case t:var X=z.type;switch(X){case c:case u:case o:case i:case r:case f:return X;default:var te=X&&X.$$typeof;switch(te){case l:case d:case m:case h:case a:return te;default:return Z}}case n:return Z}}}var T=c,E=u,M=l,I=a,D=t,V=d,j=o,x=m,L=h,A=n,N=i,k=r,_=f,$=!1;function F(z){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(z)||C(z)===c}function B(z){return C(z)===u}function R(z){return C(z)===l}function U(z){return C(z)===a}function Y(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function K(z){return C(z)===d}function re(z){return C(z)===o}function Q(z){return C(z)===m}function J(z){return C(z)===h}function ie(z){return C(z)===n}function ee(z){return C(z)===i}function H(z){return C(z)===r}function G(z){return C(z)===f}Be.AsyncMode=T,Be.ConcurrentMode=E,Be.ContextConsumer=M,Be.ContextProvider=I,Be.Element=D,Be.ForwardRef=V,Be.Fragment=j,Be.Lazy=x,Be.Memo=L,Be.Portal=A,Be.Profiler=N,Be.StrictMode=k,Be.Suspense=_,Be.isAsyncMode=F,Be.isConcurrentMode=B,Be.isContextConsumer=R,Be.isContextProvider=U,Be.isElement=Y,Be.isForwardRef=K,Be.isFragment=re,Be.isLazy=Q,Be.isMemo=J,Be.isPortal=ie,Be.isProfiler=ee,Be.isStrictMode=H,Be.isSuspense=G,Be.isValidElementType=w,Be.typeOf=C}()),Be}var Pd;function Kh(){return Pd||(Pd=1,process.env.NODE_ENV==="production"?Qs.exports=k0():Qs.exports=D0()),Qs.exports}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var Ga,Ld;function Uv(){if(Ld)return Ga;Ld=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ga=r()?Object.assign:function(i,a){for(var l,c=o(i),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){d=e(l);for(var p=0;p<d.length;p++)n.call(l,d[p])&&(c[d[p]]=l[d[p]])}}return c},Ga}var Ka,Vd;function $c(){if(Vd)return Ka;Vd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ka=e,Ka}var Za,$d;function sm(){return $d||($d=1,Za=Function.call.bind(Object.prototype.hasOwnProperty)),Za}var Xa,Fd;function Yv(){if(Fd)return Xa;Fd=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$c(),n={},o=sm();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in i)if(o(i,u)){var f;try{if(typeof i[u]!="function"){var p=Error((c||"React class")+": "+l+" 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](a,u,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+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=d?d():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Xa=r,Xa}var Qa,Bd;function qv(){if(Bd)return Qa;Bd=1;var e=rm(),t=Uv(),n=$c(),o=sm(),r=Yv(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Qa=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(B){var I=B&&(d&&B[d]||B[u]);if(typeof I=="function")return I}var p="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:w,element:C(),elementType:T(),instanceOf:E,node:V(),objectOf:R,oneOf:M,oneOfType:D,shape:x,exact:L};function m(B,I){return B===I?B!==0||1/B===1/I:B!==B&&I!==I}function g(B,I){this.message=B,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var I={},Y=0;function q(re,Q,J,ie,ee,H,G){if(ie=ie||p,H=H||J,G!==n){if(c){var z=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 z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var K=ie+":"+J;!I[K]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+ie+"`. 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."),I[K]=!0,Y++)}}return Q[J]==null?re?Q[J]===null?new g("The "+ee+" `"+H+"` is marked as required "+("in `"+ie+"`, but its value is `null`.")):new g("The "+ee+" `"+H+"` is marked as required in "+("`"+ie+"`, but its value is `undefined`.")):null:B(Q,J,ie,ee,H)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function v(B){function I(Y,q,Z,re,Q,J){var ie=Y[q],ee=O(ie);if(ee!==B){var H=N(ie);return new g("Invalid "+re+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(I)}function S(){return b(a)}function w(B){function I(Y,q,Z,re,Q){if(typeof B!="function")return new g("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var J=Y[q];if(!Array.isArray(J)){var ie=O(J);return new g("Invalid "+re+" `"+Q+"` of type "+("`"+ie+"` supplied to `"+Z+"`, expected an array."))}for(var ee=0;ee<J.length;ee++){var H=B(J,ee,Z,re,Q+"["+ee+"]",n);if(H instanceof Error)return H}return null}return b(I)}function C(){function B(I,Y,q,Z,re){var Q=I[Y];if(!l(Q)){var J=O(Q);return new g("Invalid "+Z+" `"+re+"` of type "+("`"+J+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return b(B)}function T(){function B(I,Y,q,Z,re){var Q=I[Y];if(!e.isValidElementType(Q)){var J=O(Q);return new g("Invalid "+Z+" `"+re+"` of type "+("`"+J+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return b(B)}function E(B){function I(Y,q,Z,re,Q){if(!(Y[q]instanceof B)){var J=B.name||p,ie=F(Y[q]);return new g("Invalid "+re+" `"+Q+"` of type "+("`"+ie+"` supplied to `"+Z+"`, expected ")+("instance of `"+J+"`."))}return null}return b(I)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function I(Y,q,Z,re,Q){for(var J=Y[q],ie=0;ie<B.length;ie++)if(m(J,B[ie]))return null;var ee=JSON.stringify(B,function(G,z){var K=N(z);return K==="symbol"?String(z):z});return new g("Invalid "+re+" `"+Q+"` of value `"+String(J)+"` "+("supplied to `"+Z+"`, expected one of "+ee+"."))}return b(I)}function R(B){function I(Y,q,Z,re,Q){if(typeof B!="function")return new g("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var J=Y[q],ie=O(J);if(ie!=="object")return new g("Invalid "+re+" `"+Q+"` of type "+("`"+ie+"` supplied to `"+Z+"`, expected an object."));for(var ee in J)if(o(J,ee)){var H=B(J,ee,Z,re,Q+"."+ee,n);if(H instanceof Error)return H}return null}return b(I)}function D(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<B.length;I++){var Y=B[I];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(Y)+" at index "+I+"."),a}function q(Z,re,Q,J,ie){for(var ee=[],H=0;H<B.length;H++){var G=B[H],z=G(Z,re,Q,J,ie,n);if(z==null)return null;z.data&&o(z.data,"expectedType")&&ee.push(z.data.expectedType)}var K=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+J+" `"+ie+"` supplied to "+("`"+Q+"`"+K+"."))}return b(q)}function V(){function B(I,Y,q,Z,re){return A(I[Y])?null:new g("Invalid "+Z+" `"+re+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return b(B)}function j(B,I,Y,q,Z){return new g((B||"React class")+": "+I+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function x(B){function I(Y,q,Z,re,Q){var J=Y[q],ie=O(J);if(ie!=="object")return new g("Invalid "+re+" `"+Q+"` of type `"+ie+"` "+("supplied to `"+Z+"`, expected `object`."));for(var ee in B){var H=B[ee];if(typeof H!="function")return j(Z,re,Q,ee,N(H));var G=H(J,ee,Z,re,Q+"."+ee,n);if(G)return G}return null}return b(I)}function L(B){function I(Y,q,Z,re,Q){var J=Y[q],ie=O(J);if(ie!=="object")return new g("Invalid "+re+" `"+Q+"` of type `"+ie+"` "+("supplied to `"+Z+"`, expected `object`."));var ee=t({},Y[q],B);for(var H in ee){var G=B[H];if(o(B,H)&&typeof G!="function")return j(Z,re,Q,H,N(G));if(!G)return new g("Invalid "+re+" `"+Q+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(B),null," "));var z=G(J,H,Z,re,Q+"."+H,n);if(z)return z}return null}return b(I)}function A(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(A);if(B===null||l(B))return!0;var I=f(B);if(I){var Y=I.call(B),q;if(I!==B.entries){for(;!(q=Y.next()).done;)if(!A(q.value))return!1}else for(;!(q=Y.next()).done;){var Z=q.value;if(Z&&!A(Z[1]))return!1}}else return!1;return!0;default:return!1}}function _(B,I){return B==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function O(B){var I=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":_(I,B)?"symbol":I}function N(B){if(typeof B>"u"||B===null)return""+B;var I=O(B);if(I==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return I}function $(B){var I=N(B);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function F(B){return!B.constructor||!B.constructor.name?p:B.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},Qa}var Ja,zd;function Gv(){if(zd)return Ja;zd=1;var e=$c();function t(){}function n(){}return n.resetWarningCache=t,Ja=function(){function o(a,l,c,d,u,f){if(f!==e){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}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ja}if(process.env.NODE_ENV!=="production"){var Kv=rm(),Zv=!0;$l.exports=qv()(Kv.isElement,Zv)}else $l.exports=Gv()();var Xv=$l.exports;const s=ao(Xv);function im(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=im(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function be(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=im(e))&&(o&&(o+=" "),o+=t);return o}function we(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const d=i[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}o[r]=a}return o}var Fl={exports:{}},Ye={};/**
40
+ */var Ha,Ed;function R0(){if(Ed)return Ha;Ed=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ha=r()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Ha}var Wa,Md;function Dc(){if(Md)return Wa;Md=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wa=e,Wa}var Ua,Od;function Xh(){return Od||(Od=1,Ua=Function.call.bind(Object.prototype.hasOwnProperty)),Ua}var Ya,kd;function I0(){if(kd)return Ya;kd=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Dc(),n={},o=Xh();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var f;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=i[d](a,d,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ya=r,Ya}var qa,Dd;function A0(){if(Dd)return qa;Dd=1;var e=Kh(),t=R0(),n=Dc(),o=Xh(),r=I0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return qa=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(B){var R=B&&(u&&B[u]||B[d]);if(typeof R=="function")return R}var p="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:w,element:C(),elementType:T(),instanceOf:E,node:V(),objectOf:I,oneOf:M,oneOfType:D,shape:x,exact:L};function m(B,R){return B===R?B!==0||1/B===1/R:B!==B&&R!==R}function g(B,R){this.message=B,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function y(B){if(process.env.NODE_ENV!=="production")var R={},U=0;function Y(re,Q,J,ie,ee,H,G){if(ie=ie||p,H=H||J,G!==n){if(c){var z=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 z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Z=ie+":"+J;!R[Z]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+ie+"`. 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."),R[Z]=!0,U++)}}return Q[J]==null?re?Q[J]===null?new g("The "+ee+" `"+H+"` is marked as required "+("in `"+ie+"`, but its value is `null`.")):new g("The "+ee+" `"+H+"` is marked as required in "+("`"+ie+"`, but its value is `undefined`.")):null:B(Q,J,ie,ee,H)}var K=Y.bind(null,!1);return K.isRequired=Y.bind(null,!0),K}function v(B){function R(U,Y,K,re,Q,J){var ie=U[Y],ee=k(ie);if(ee!==B){var H=_(ie);return new g("Invalid "+re+" `"+Q+"` of type "+("`"+H+"` supplied to `"+K+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return y(R)}function S(){return y(a)}function w(B){function R(U,Y,K,re,Q){if(typeof B!="function")return new g("Property `"+Q+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var J=U[Y];if(!Array.isArray(J)){var ie=k(J);return new g("Invalid "+re+" `"+Q+"` of type "+("`"+ie+"` supplied to `"+K+"`, expected an array."))}for(var ee=0;ee<J.length;ee++){var H=B(J,ee,K,re,Q+"["+ee+"]",n);if(H instanceof Error)return H}return null}return y(R)}function C(){function B(R,U,Y,K,re){var Q=R[U];if(!l(Q)){var J=k(Q);return new g("Invalid "+K+" `"+re+"` of type "+("`"+J+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return y(B)}function T(){function B(R,U,Y,K,re){var Q=R[U];if(!e.isValidElementType(Q)){var J=k(Q);return new g("Invalid "+K+" `"+re+"` of type "+("`"+J+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return y(B)}function E(B){function R(U,Y,K,re,Q){if(!(U[Y]instanceof B)){var J=B.name||p,ie=F(U[Y]);return new g("Invalid "+re+" `"+Q+"` of type "+("`"+ie+"` supplied to `"+K+"`, expected ")+("instance of `"+J+"`."))}return null}return y(R)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function R(U,Y,K,re,Q){for(var J=U[Y],ie=0;ie<B.length;ie++)if(m(J,B[ie]))return null;var ee=JSON.stringify(B,function(G,z){var Z=_(z);return Z==="symbol"?String(z):z});return new g("Invalid "+re+" `"+Q+"` of value `"+String(J)+"` "+("supplied to `"+K+"`, expected one of "+ee+"."))}return y(R)}function I(B){function R(U,Y,K,re,Q){if(typeof B!="function")return new g("Property `"+Q+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var J=U[Y],ie=k(J);if(ie!=="object")return new g("Invalid "+re+" `"+Q+"` of type "+("`"+ie+"` supplied to `"+K+"`, expected an object."));for(var ee in J)if(o(J,ee)){var H=B(J,ee,K,re,Q+"."+ee,n);if(H instanceof Error)return H}return null}return y(R)}function D(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<B.length;R++){var U=B[R];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(U)+" at index "+R+"."),a}function Y(K,re,Q,J,ie){for(var ee=[],H=0;H<B.length;H++){var G=B[H],z=G(K,re,Q,J,ie,n);if(z==null)return null;z.data&&o(z.data,"expectedType")&&ee.push(z.data.expectedType)}var Z=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+J+" `"+ie+"` supplied to "+("`"+Q+"`"+Z+"."))}return y(Y)}function V(){function B(R,U,Y,K,re){return A(R[U])?null:new g("Invalid "+K+" `"+re+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return y(B)}function j(B,R,U,Y,K){return new g((B||"React class")+": "+R+" type `"+U+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function x(B){function R(U,Y,K,re,Q){var J=U[Y],ie=k(J);if(ie!=="object")return new g("Invalid "+re+" `"+Q+"` of type `"+ie+"` "+("supplied to `"+K+"`, expected `object`."));for(var ee in B){var H=B[ee];if(typeof H!="function")return j(K,re,Q,ee,_(H));var G=H(J,ee,K,re,Q+"."+ee,n);if(G)return G}return null}return y(R)}function L(B){function R(U,Y,K,re,Q){var J=U[Y],ie=k(J);if(ie!=="object")return new g("Invalid "+re+" `"+Q+"` of type `"+ie+"` "+("supplied to `"+K+"`, expected `object`."));var ee=t({},U[Y],B);for(var H in ee){var G=B[H];if(o(B,H)&&typeof G!="function")return j(K,re,Q,H,_(G));if(!G)return new g("Invalid "+re+" `"+Q+"` key `"+H+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(U[Y],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var z=G(J,H,K,re,Q+"."+H,n);if(z)return z}return null}return y(R)}function A(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(A);if(B===null||l(B))return!0;var R=f(B);if(R){var U=R.call(B),Y;if(R!==B.entries){for(;!(Y=U.next()).done;)if(!A(Y.value))return!1}else for(;!(Y=U.next()).done;){var K=Y.value;if(K&&!A(K[1]))return!1}}else return!1;return!0;default:return!1}}function N(B,R){return B==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function k(B){var R=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":N(R,B)?"symbol":R}function _(B){if(typeof B>"u"||B===null)return""+B;var R=k(B);if(R==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return R}function $(B){var R=_(B);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function F(B){return!B.constructor||!B.constructor.name?p:B.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},qa}var Ga,Rd;function N0(){if(Rd)return Ga;Rd=1;var e=Dc();function t(){}function n(){}return n.resetWarningCache=t,Ga=function(){function o(a,l,c,u,d,f){if(f!==e){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}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ga}if(process.env.NODE_ENV!=="production"){var _0=Kh(),j0=!0;Il.exports=A0()(_0.isElement,j0)}else Il.exports=N0()();var L0=Il.exports;const s=oo(L0);function Qh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Qh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function be(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Qh(e))&&(o&&(o+=" "),o+=t);return o}function we(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}var Al={exports:{}},Ye={};/**
42
42
  * @license React
43
43
  * react-is.production.js
44
44
  *
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var z=G(J,H,Z,re,Q+"."+H
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 Hd;function Qv(){if(Hd)return Ye;Hd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=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 b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case r:case o:case c:case d:case p:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case f:case u:return g;case i:return g;default:return b}}case t:return b}}}return Ye.ContextConsumer=i,Ye.ContextProvider=a,Ye.Element=e,Ye.ForwardRef=l,Ye.Fragment=n,Ye.Lazy=f,Ye.Memo=u,Ye.Portal=t,Ye.Profiler=r,Ye.StrictMode=o,Ye.Suspense=c,Ye.SuspenseList=d,Ye.isContextConsumer=function(g){return m(g)===i},Ye.isContextProvider=function(g){return m(g)===a},Ye.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ye.isForwardRef=function(g){return m(g)===l},Ye.isFragment=function(g){return m(g)===n},Ye.isLazy=function(g){return m(g)===f},Ye.isMemo=function(g){return m(g)===u},Ye.isPortal=function(g){return m(g)===t},Ye.isProfiler=function(g){return m(g)===r},Ye.isStrictMode=function(g){return m(g)===o},Ye.isSuspense=function(g){return m(g)===c},Ye.isSuspenseList=function(g){return m(g)===d},Ye.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===r||g===o||g===c||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===u||g.$$typeof===a||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},Ye.typeOf=m,Ye}var qe={};/**
49
+ */var Id;function V0(){if(Id)return Ye;Id=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case r:case o:case c:case u:case p:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case f:case d:return g;case i:return g;default:return y}}case t:return y}}}return Ye.ContextConsumer=i,Ye.ContextProvider=a,Ye.Element=e,Ye.ForwardRef=l,Ye.Fragment=n,Ye.Lazy=f,Ye.Memo=d,Ye.Portal=t,Ye.Profiler=r,Ye.StrictMode=o,Ye.Suspense=c,Ye.SuspenseList=u,Ye.isContextConsumer=function(g){return m(g)===i},Ye.isContextProvider=function(g){return m(g)===a},Ye.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ye.isForwardRef=function(g){return m(g)===l},Ye.isFragment=function(g){return m(g)===n},Ye.isLazy=function(g){return m(g)===f},Ye.isMemo=function(g){return m(g)===d},Ye.isPortal=function(g){return m(g)===t},Ye.isProfiler=function(g){return m(g)===r},Ye.isStrictMode=function(g){return m(g)===o},Ye.isSuspense=function(g){return m(g)===c},Ye.isSuspenseList=function(g){return m(g)===u},Ye.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===r||g===o||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},Ye.typeOf=m,Ye}var qe={};/**
50
50
  * @license React
51
51
  * react-is.development.js
52
52
  *
@@ -54,16 +54,16 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var z=G(J,H,Z,re,Q+"."+H
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 Wd;function Jv(){return Wd||(Wd=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case t:switch(g=g.type,g){case o:case i:case r:case d:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case c:case p:case f:return g;case a:return g;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=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");qe.ContextConsumer=a,qe.ContextProvider=l,qe.Element=t,qe.ForwardRef=c,qe.Fragment=o,qe.Lazy=p,qe.Memo=f,qe.Portal=n,qe.Profiler=i,qe.StrictMode=r,qe.Suspense=d,qe.SuspenseList=u,qe.isContextConsumer=function(g){return e(g)===a},qe.isContextProvider=function(g){return e(g)===l},qe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},qe.isForwardRef=function(g){return e(g)===c},qe.isFragment=function(g){return e(g)===o},qe.isLazy=function(g){return e(g)===p},qe.isMemo=function(g){return e(g)===f},qe.isPortal=function(g){return e(g)===n},qe.isProfiler=function(g){return e(g)===i},qe.isStrictMode=function(g){return e(g)===r},qe.isSuspense=function(g){return e(g)===d},qe.isSuspenseList=function(g){return e(g)===u},qe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===r||g===d||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},qe.typeOf=e}()),qe}process.env.NODE_ENV==="production"?Fl.exports=Qv():Fl.exports=Jv();var Fo=Fl.exports;function Sn(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 am(e){if(P.isValidElement(e)||Fo.isValidElementType(e)||!Sn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=am(e[n])}),t}function Nt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Sn(e)&&Sn(t)&&Object.keys(t).forEach(r=>{P.isValidElement(t[r])||Fo.isValidElementType(t[r])?o[r]=t[r]:Sn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Sn(e[r])?o[r]=Nt(e[r],t[r],n):n.clone?o[r]=Sn(t[r])?am(t[r]):t[r]:o[r]=t[r]}),o}function is(e,t){return t?Nt(e,t,{clone:!1}):e}const lo=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Ud(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=r.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function e0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function t0(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\`.`:Mn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function n0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const ta={xs:0,sm:600,md:900,lg:1200,xl:1536},Yd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ta[e]}px)`},o0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ta[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Vn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Yd;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||Yd;return Object.keys(t).reduce((a,l)=>{if(e0(i.keys,l)){const c=t0(o.containerQueries?o:o0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||ta).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function r0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function qd(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function na(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function Ii(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=na(e,n)||o,t&&(r=t(r,o,e)),r}function bt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,d=na(c,o)||{};return Vn(a,l,f=>{let p=Ii(d,r,f);return f===p&&typeof f=="string"&&(p=Ii(d,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:lo}:{},i.filterProps=[t],i}function s0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const i0={m:"margin",p:"padding"},a0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l0=s0(e=>{if(e.length>2)if(Gd[e])e=Gd[e];else return[e];const[t,n]=e.split(""),o=i0[t],r=a0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),oa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ra=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],c0=[...oa,...ra];function Rs(e,t,n,o){const r=na(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?r.startsWith("var(")&&i===0?0:r.startsWith("var(")&&i===1?r:`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
57
+ */var Ad;function $0(){return Ad||(Ad=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case t:switch(g=g.type,g){case o:case i:case r:case u:case d:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case c:case p:case f:return g;case a:return g;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");qe.ContextConsumer=a,qe.ContextProvider=l,qe.Element=t,qe.ForwardRef=c,qe.Fragment=o,qe.Lazy=p,qe.Memo=f,qe.Portal=n,qe.Profiler=i,qe.StrictMode=r,qe.Suspense=u,qe.SuspenseList=d,qe.isContextConsumer=function(g){return e(g)===a},qe.isContextProvider=function(g){return e(g)===l},qe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},qe.isForwardRef=function(g){return e(g)===c},qe.isFragment=function(g){return e(g)===o},qe.isLazy=function(g){return e(g)===p},qe.isMemo=function(g){return e(g)===f},qe.isPortal=function(g){return e(g)===n},qe.isProfiler=function(g){return e(g)===i},qe.isStrictMode=function(g){return e(g)===r},qe.isSuspense=function(g){return e(g)===u},qe.isSuspenseList=function(g){return e(g)===d},qe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===r||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},qe.typeOf=e}()),qe}process.env.NODE_ENV==="production"?Al.exports=V0():Al.exports=$0();var jo=Al.exports;function Cn(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 Jh(e){if(P.isValidElement(e)||jo.isValidElementType(e)||!Cn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jh(e[n])}),t}function Nt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Cn(e)&&Cn(t)&&Object.keys(t).forEach(r=>{P.isValidElement(t[r])||jo.isValidElementType(t[r])?o[r]=t[r]:Cn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Cn(e[r])?o[r]=Nt(e[r],t[r],n):n.clone?o[r]=Cn(t[r])?Jh(t[r]):t[r]:o[r]=t[r]}),o}function ns(e,t){return t?Nt(e,t,{clone:!1}):e}const ro=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Nd(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=r.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function F0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function B0(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\`.`:Pn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function z0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const Ki={xs:0,sm:600,md:900,lg:1200,xl:1536},_d={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ki[e]}px)`},H0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ki[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Nn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||_d;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||_d;return Object.keys(t).reduce((a,l)=>{if(F0(i.keys,l)){const c=B0(o.containerQueries?o:H0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Ki).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function W0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function jd(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Xi(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function Ei(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Xi(e,n)||o,t&&(r=t(r,o,e)),r}function gt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Xi(c,o)||{};return Nn(a,l,f=>{let p=Ei(u,r,f);return f===p&&typeof f=="string"&&(p=Ei(u,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ro}:{},i.filterProps=[t],i}function U0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Y0={m:"margin",p:"padding"},q0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ld={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},G0=U0(e=>{if(e.length>2)if(Ld[e])e=Ld[e];else return[e];const[t,n]=e.split(""),o=Y0[t],r=q0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Qi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ji=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Z0=[...Qi,...Ji];function Os(e,t,n,o){const r=Xi(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?r.startsWith("var(")&&i===0?0:r.startsWith("var(")&&i===1?r:`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
59
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
60
  `)));const l=r[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
61
- `)),()=>{})}function Fc(e){return Rs(e,"spacing",8,"spacing")}function As(e,t){return typeof t=="string"||t==null?t:e(t)}function u0(e,t){return n=>e.reduce((o,r)=>(o[r]=As(t,n),o),{})}function d0(e,t,n,o){if(!t.includes(n))return null;const r=l0(n),i=u0(r,o),a=e[n];return Vn(e,a,i)}function lm(e,t){const n=Fc(e.theme);return Object.keys(e).map(o=>d0(e,t,o,n)).reduce(is,{})}function ht(e){return lm(e,oa)}ht.propTypes=process.env.NODE_ENV!=="production"?oa.reduce((e,t)=>(e[t]=lo,e),{}):{};ht.filterProps=oa;function mt(e){return lm(e,ra)}mt.propTypes=process.env.NODE_ENV!=="production"?ra.reduce((e,t)=>(e[t]=lo,e),{}):{};mt.filterProps=ra;process.env.NODE_ENV!=="production"&&c0.reduce((e,t)=>(e[t]=lo,e),{});function sa(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?is(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Jt(e){return typeof e!="number"?e:`${e}px solid`}function an(e,t){return bt({prop:e,themeKey:"borders",transform:t})}const f0=an("border",Jt),p0=an("borderTop",Jt),h0=an("borderRight",Jt),m0=an("borderBottom",Jt),g0=an("borderLeft",Jt),y0=an("borderColor"),b0=an("borderTopColor"),v0=an("borderRightColor"),x0=an("borderBottomColor"),C0=an("borderLeftColor"),w0=an("outline",Jt),S0=an("outlineColor"),ia=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rs(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:As(t,o)});return Vn(e,e.borderRadius,n)}return null};ia.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:lo}:{};ia.filterProps=["borderRadius"];sa(f0,p0,h0,m0,g0,y0,b0,v0,x0,C0,ia,w0,S0);const aa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rs(e.theme,"spacing",8,"gap"),n=o=>({gap:As(t,o)});return Vn(e,e.gap,n)}return null};aa.propTypes=process.env.NODE_ENV!=="production"?{gap:lo}:{};aa.filterProps=["gap"];const la=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rs(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:As(t,o)});return Vn(e,e.columnGap,n)}return null};la.propTypes=process.env.NODE_ENV!=="production"?{columnGap:lo}:{};la.filterProps=["columnGap"];const ca=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rs(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:As(t,o)});return Vn(e,e.rowGap,n)}return null};ca.propTypes=process.env.NODE_ENV!=="production"?{rowGap:lo}:{};ca.filterProps=["rowGap"];const T0=bt({prop:"gridColumn"}),P0=bt({prop:"gridRow"}),E0=bt({prop:"gridAutoFlow"}),M0=bt({prop:"gridAutoColumns"}),k0=bt({prop:"gridAutoRows"}),O0=bt({prop:"gridTemplateColumns"}),D0=bt({prop:"gridTemplateRows"}),I0=bt({prop:"gridTemplateAreas"}),R0=bt({prop:"gridArea"});sa(aa,la,ca,T0,P0,E0,M0,k0,O0,D0,I0,R0);function ur(e,t){return t==="grey"?t:e}const A0=bt({prop:"color",themeKey:"palette",transform:ur}),_0=bt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ur}),N0=bt({prop:"backgroundColor",themeKey:"palette",transform:ur});sa(A0,_0,N0);function qt(e){return e<=1&&e!==0?`${e*100}%`:e}const j0=bt({prop:"width",transform:qt}),Bc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,a,l,c;const o=((a=(i=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||ta[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qt(n)}};return Vn(e,e.maxWidth,t)}return null};Bc.filterProps=["maxWidth"];const L0=bt({prop:"minWidth",transform:qt}),V0=bt({prop:"height",transform:qt}),$0=bt({prop:"maxHeight",transform:qt}),F0=bt({prop:"minHeight",transform:qt});bt({prop:"size",cssProperty:"width",transform:qt});bt({prop:"size",cssProperty:"height",transform:qt});const B0=bt({prop:"boxSizing"});sa(j0,Bc,L0,V0,$0,F0,B0);const _s={border:{themeKey:"borders",transform:Jt},borderTop:{themeKey:"borders",transform:Jt},borderRight:{themeKey:"borders",transform:Jt},borderBottom:{themeKey:"borders",transform:Jt},borderLeft:{themeKey:"borders",transform:Jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Jt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ia},color:{themeKey:"palette",transform:ur},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ur},backgroundColor:{themeKey:"palette",transform:ur},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},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:aa},rowGap:{style:ca},columnGap:{style:la},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qt},maxWidth:{style:Bc},minWidth:{transform:qt},height:{transform:qt},maxHeight:{transform:qt},minHeight:{transform:qt},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 z0(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function H0(e,t){return typeof e=="function"?e(t):e}function W0(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(o==null)return null;if(d==="typography"&&o==="inherit")return{[n]:o};const p=na(r,d)||{};return f?f(a):Vn(a,o,m=>{let g=Ii(p,u,m);return m===g&&typeof m=="string"&&(g=Ii(p,u,`${n}${m==="default"?"":ce(m)}`,m)),c===!1?g:{[c]:g}})}function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??_s;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const u=r0(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(h=>{const m=H0(d[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=is(p,e(h,m,r,a));else{const g=Vn({theme:r},m,b=>({[h]:b}));z0(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=is(p,g)}else p=is(p,e(h,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Ud(r,qd(f,p))}:Ud(r,qd(f,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const mr=W0();mr.filterProps=["sx"];const U0=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??_s;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Y0(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=U0(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Sn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function q0(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function zc(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}].`),q0(e,t,n)}function G0(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(o=>o+o)),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((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function no(e){if(e.type)return e;if(e.charAt(0)==="#")return no(G0(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.
62
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Mn(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
63
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Mn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const K0=e=>{const t=no(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Zr=(e,t)=>{try{return K0(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ua(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function cm(e){e=no(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,u=(d+n/30)%12)=>r-i*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ua({type:l,values:c})}function Bl(e){e=no(e);let t=e.type==="hsl"||e.type==="hsla"?no(cm(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 Kd(e,t){const n=Bl(e),o=Bl(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Ri(e,t){return e=no(e),t=zc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ua(e)}function go(e,t,n){try{return Ri(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function da(e,t){if(e=no(e),t=zc(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 ua(e)}function He(e,t,n){try{return da(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function fa(e,t){if(e=no(e),t=zc(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 ua(e)}function We(e,t,n){try{return fa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Z0(e,t=.15){return Bl(e)>.5?da(e,t):fa(e,t)}function oi(e,t,n){try{return Z0(e,t)}catch{return e}}const ys={black:"#000",white:"#fff"},X0={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"},Uo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Yo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Lr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},qo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Go={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ko={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function um(){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:ys.white,default:ys.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 dm=um();function fm(){return{text:{primary:ys.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:ys.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 zl=fm();function Zd(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=fa(e.main,r):t==="dark"&&(e.dark=da(e.main,i)))}function Xd(e,t,n,o,r){const i=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Q0(e="light"){return e==="dark"?{main:qo[200],light:qo[50],dark:qo[400]}:{main:qo[700],light:qo[400],dark:qo[800]}}function J0(e="light"){return e==="dark"?{main:Uo[200],light:Uo[50],dark:Uo[400]}:{main:Uo[500],light:Uo[300],dark:Uo[700]}}function ex(e="light"){return e==="dark"?{main:Yo[500],light:Yo[300],dark:Yo[700]}:{main:Yo[700],light:Yo[400],dark:Yo[800]}}function tx(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[700],light:Go[500],dark:Go[900]}}function nx(e="light"){return e==="dark"?{main:Ko[400],light:Ko[300],dark:Ko[700]}:{main:Ko[800],light:Ko[500],dark:Ko[900]}}function ox(e="light"){return e==="dark"?{main:Lr[400],light:Lr[300],dark:Lr[700]}:{main:"#ed6c02",light:Lr[500],dark:Lr[900]}}function rx(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Hc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||Q0(t),l=e.secondary||J0(t),c=e.error||ex(t),d=e.info||tx(t),u=e.success||nx(t),f=e.warning||ox(t);function p(b){if(r)return rx(b);const v=Kd(b,zl.text.primary)>=n?zl.text.primary:dm.text.primary;if(process.env.NODE_ENV!=="production"){const S=Kd(b,v);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
64
- `))}return v}const h=({color:b,name:v,mainShade:S=500,lightShade:w=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[S]&&(b.main=b[S]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
- The color object needs to have a \`main\` property or a \`${S}\` property.`:Mn(11,v?` (${v})`:"",S));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
66
- \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
61
+ `)),()=>{})}function Rc(e){return Os(e,"spacing",8,"spacing")}function ks(e,t){return typeof t=="string"||t==null?t:e(t)}function K0(e,t){return n=>e.reduce((o,r)=>(o[r]=ks(t,n),o),{})}function X0(e,t,n,o){if(!t.includes(n))return null;const r=G0(n),i=K0(r,o),a=e[n];return Nn(e,a,i)}function em(e,t){const n=Rc(e.theme);return Object.keys(e).map(o=>X0(e,t,o,n)).reduce(ns,{})}function pt(e){return em(e,Qi)}pt.propTypes=process.env.NODE_ENV!=="production"?Qi.reduce((e,t)=>(e[t]=ro,e),{}):{};pt.filterProps=Qi;function ht(e){return em(e,Ji)}ht.propTypes=process.env.NODE_ENV!=="production"?Ji.reduce((e,t)=>(e[t]=ro,e),{}):{};ht.filterProps=Ji;process.env.NODE_ENV!=="production"&&Z0.reduce((e,t)=>(e[t]=ro,e),{});function ea(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?ns(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Qt(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return gt({prop:e,themeKey:"borders",transform:t})}const Q0=sn("border",Qt),J0=sn("borderTop",Qt),ev=sn("borderRight",Qt),tv=sn("borderBottom",Qt),nv=sn("borderLeft",Qt),ov=sn("borderColor"),rv=sn("borderTopColor"),sv=sn("borderRightColor"),iv=sn("borderBottomColor"),av=sn("borderLeftColor"),lv=sn("outline",Qt),cv=sn("outlineColor"),ta=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Os(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:ks(t,o)});return Nn(e,e.borderRadius,n)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ro}:{};ta.filterProps=["borderRadius"];ea(Q0,J0,ev,tv,nv,ov,rv,sv,iv,av,ta,lv,cv);const na=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Os(e.theme,"spacing",8,"gap"),n=o=>({gap:ks(t,o)});return Nn(e,e.gap,n)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{gap:ro}:{};na.filterProps=["gap"];const oa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Os(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:ks(t,o)});return Nn(e,e.columnGap,n)}return null};oa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ro}:{};oa.filterProps=["columnGap"];const ra=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Os(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:ks(t,o)});return Nn(e,e.rowGap,n)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ro}:{};ra.filterProps=["rowGap"];const uv=gt({prop:"gridColumn"}),dv=gt({prop:"gridRow"}),fv=gt({prop:"gridAutoFlow"}),pv=gt({prop:"gridAutoColumns"}),hv=gt({prop:"gridAutoRows"}),mv=gt({prop:"gridTemplateColumns"}),gv=gt({prop:"gridTemplateRows"}),yv=gt({prop:"gridTemplateAreas"}),bv=gt({prop:"gridArea"});ea(na,oa,ra,uv,dv,fv,pv,hv,mv,gv,yv,bv);function ir(e,t){return t==="grey"?t:e}const vv=gt({prop:"color",themeKey:"palette",transform:ir}),xv=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ir}),Cv=gt({prop:"backgroundColor",themeKey:"palette",transform:ir});ea(vv,xv,Cv);function Yt(e){return e<=1&&e!==0?`${e*100}%`:e}const wv=gt({prop:"width",transform:Yt}),Ic=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,a,l,c;const o=((a=(i=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Ki[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Yt(n)}};return Nn(e,e.maxWidth,t)}return null};Ic.filterProps=["maxWidth"];const Sv=gt({prop:"minWidth",transform:Yt}),Tv=gt({prop:"height",transform:Yt}),Pv=gt({prop:"maxHeight",transform:Yt}),Ev=gt({prop:"minHeight",transform:Yt});gt({prop:"size",cssProperty:"width",transform:Yt});gt({prop:"size",cssProperty:"height",transform:Yt});const Mv=gt({prop:"boxSizing"});ea(wv,Ic,Sv,Tv,Pv,Ev,Mv);const Ds={border:{themeKey:"borders",transform:Qt},borderTop:{themeKey:"borders",transform:Qt},borderRight:{themeKey:"borders",transform:Qt},borderBottom:{themeKey:"borders",transform:Qt},borderLeft:{themeKey:"borders",transform:Qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ta},color:{themeKey:"palette",transform:ir},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ir},backgroundColor:{themeKey:"palette",transform:ir},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},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:na},rowGap:{style:ra},columnGap:{style:oa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yt},maxWidth:{style:Ic},minWidth:{transform:Yt},height:{transform:Yt},maxHeight:{transform:Yt},minHeight:{transform:Yt},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 Ov(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function kv(e,t){return typeof e=="function"?e(t):e}function Dv(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const p=Xi(r,u)||{};return f?f(a):Nn(a,o,m=>{let g=Ei(p,d,m);return m===g&&typeof m=="string"&&(g=Ei(p,d,`${n}${m==="default"?"":ce(m)}`,m)),c===!1?g:{[c]:g}})}function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??Ds;function l(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const d=W0(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=kv(u[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=ns(p,e(h,m,r,a));else{const g=Nn({theme:r},m,y=>({[h]:y}));Ov(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=ns(p,g)}else p=ns(p,e(h,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Nd(r,jd(f,p))}:Nd(r,jd(f,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const dr=Dv();dr.filterProps=["sx"];const Rv=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Ds;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Iv(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=Rv(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Cn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function Av(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ac(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}].`),Av(e,t,n)}function Nv(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(o=>o+o)),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((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Qn(e){if(e.type)return e;if(e.charAt(0)==="#")return Qn(Nv(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.
62
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Pn(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
63
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Pn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const _v=e=>{const t=Qn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Yr=(e,t)=>{try{return _v(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function sa(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function tm(e){e=Qn(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,d=(u+n/30)%12)=>r-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),sa({type:l,values:c})}function Nl(e){e=Qn(e);let t=e.type==="hsl"||e.type==="hsla"?Qn(tm(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 Vd(e,t){const n=Nl(e),o=Nl(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Mi(e,t){return e=Qn(e),t=Ac(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sa(e)}function fo(e,t,n){try{return Mi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ia(e,t){if(e=Qn(e),t=Ac(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 sa(e)}function He(e,t,n){try{return ia(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function aa(e,t){if(e=Qn(e),t=Ac(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 sa(e)}function We(e,t,n){try{return aa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function jv(e,t=.15){return Nl(e)>.5?ia(e,t):aa(e,t)}function Js(e,t,n){try{return jv(e,t)}catch{return e}}const ps={black:"#000",white:"#fff"},Lv={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"},Bo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},zo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ar={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ho={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Wo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Uo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function nm(){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:ps.white,default:ps.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 om=nm();function rm(){return{text:{primary:ps.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:ps.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 _l=rm();function $d(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=aa(e.main,r):t==="dark"&&(e.dark=ia(e.main,i)))}function Fd(e,t,n,o,r){const i=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Vv(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}function $v(e="light"){return e==="dark"?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[500],light:Bo[300],dark:Bo[700]}}function Fv(e="light"){return e==="dark"?{main:zo[500],light:zo[300],dark:zo[700]}:{main:zo[700],light:zo[400],dark:zo[800]}}function Bv(e="light"){return e==="dark"?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[500],dark:Wo[900]}}function zv(e="light"){return e==="dark"?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[800],light:Uo[500],dark:Uo[900]}}function Hv(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:"#ed6c02",light:Ar[500],dark:Ar[900]}}function Wv(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Nc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||Vv(t),l=e.secondary||$v(t),c=e.error||Fv(t),u=e.info||Bv(t),d=e.success||zv(t),f=e.warning||Hv(t);function p(y){if(r)return Wv(y);const v=Vd(y,_l.text.primary)>=n?_l.text.primary:om.text.primary;if(process.env.NODE_ENV!=="production"){const S=Vd(y,v);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${v} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
64
+ `))}return v}const h=({color:y,name:v,mainShade:S=500,lightShade:w=300,darkShade:C=700})=>{if(y={...y},!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:Pn(11,v?` (${v})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
66
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
67
67
 
68
68
  Did you intend to use one of the following approaches?
69
69
 
@@ -75,26 +75,26 @@ const theme1 = createTheme({ palette: {
75
75
 
76
76
  const theme2 = createTheme({ palette: {
77
77
  primary: { main: green[500] },
78
- } });`:Mn(12,v?` (${v})`:"",JSON.stringify(b.main)));return r?(Xd(r,b,"light",w,o),Xd(r,b,"dark",C,o)):(Zd(b,"light",w,o),Zd(b,"dark",C,o)),b.contrastText||(b.contrastText=p(b.main)),b};let m;return t==="light"?m=um():t==="dark"&&(m=fm()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nt({common:{...ys},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:d,name:"info"}),success:h({color:u,name:"success"}),grey:X0,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function sx(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 ix={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 ax(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lx=/[A-Z]|^ms/g,cx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pm=function(t){return t.charCodeAt(1)===45},Qd=function(t){return t!=null&&typeof t!="boolean"},el=ax(function(e){return pm(e)?e:e.replace(lx,"-$&").toLowerCase()}),Jd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cx,function(o,r,i){return Xn={name:r,styles:i,next:Xn},r})}return ix[t]!==1&&!pm(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ai(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Xn={name:r.name,styles:r.styles,next:Xn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Xn={name:a.name,styles:a.styles,next:Xn},a=a.next;var l=i.styles+";";return l}return ux(e,t,n)}}var c=n;return c}function ux(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Ai(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Qd(l)&&(o+=el(i)+":"+Jd(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Qd(a[c])&&(o+=el(i)+":"+Jd(i,a[c])+";");else{var d=Ai(e,t,a);switch(i){case"animation":case"animationName":{o+=el(i)+":"+d+";";break}default:o+=i+"{"+d+"}"}}}return o}var ef=/label:\s*([^\s;{]+)\s*(;|$)/g,Xn;function dx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Xn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Ai(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Ai(n,t,e[l]),o){var c=i;r+=c[l]}ef.lastIndex=0;for(var d="",u;(u=ef.exec(r))!==null;)d+="-"+u[1];var f=sx(r)+d;return{name:f,styles:r,next:Xn}}/**
78
+ } });`:Pn(12,v?` (${v})`:"",JSON.stringify(y.main)));return r?(Fd(r,y,"light",w,o),Fd(r,y,"dark",C,o)):($d(y,"light",w,o),$d(y,"dark",C,o)),y.contrastText||(y.contrastText=p(y.main)),y};let m;return t==="light"?m=nm():t==="dark"&&(m=rm()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nt({common:{...ps},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:d,name:"success"}),grey:Lv,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function Uv(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 Yv={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 qv(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Gv=/[A-Z]|^ms/g,Zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sm=function(t){return t.charCodeAt(1)===45},Bd=function(t){return t!=null&&typeof t!="boolean"},Za=qv(function(e){return sm(e)?e:e.replace(Gv,"-$&").toLowerCase()}),zd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Zv,function(o,r,i){return qn={name:r,styles:i,next:qn},r})}return Yv[t]!==1&&!sm(t)&&typeof n=="number"&&n!==0?n+"px":n};function Oi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return qn={name:r.name,styles:r.styles,next:qn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)qn={name:a.name,styles:a.styles,next:qn},a=a.next;var l=i.styles+";";return l}return Kv(e,t,n)}}var c=n;return c}function Kv(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Oi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Bd(l)&&(o+=Za(i)+":"+zd(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Bd(a[c])&&(o+=Za(i)+":"+zd(i,a[c])+";");else{var u=Oi(e,t,a);switch(i){case"animation":case"animationName":{o+=Za(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Hd=/label:\s*([^\s;{]+)\s*(;|$)/g,qn;function Xv(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";qn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Oi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Oi(n,t,e[l]),o){var c=i;r+=c[l]}Hd.lastIndex=0;for(var u="",d;(d=Hd.exec(r))!==null;)u+="-"+d[1];var f=Uv(r)+u;return{name:f,styles:r,next:qn}}/**
79
79
  * @mui/styled-engine v7.3.7
80
80
  *
81
81
  * @license MIT
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */function fx(e,t){const n=hv(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
85
- `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function px(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const tf=[];function jo(e){return tf[0]=e,dx(tf)}const hx="exact-prop: ​";function hm(e){return process.env.NODE_ENV==="production"?e:{...e,[hx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const Pt=typeof window<"u"?P.useLayoutEffect:P.useEffect;function mx(e){return Object.keys(e).length===0}function gx(e=null){const t=P.useContext(mv.ThemeContext);return!t||mx(t)?e:t}const yx=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const pn=()=>P.useContext(yx)??!1;function bs(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;o[i][d]=bs(a[d],l[d],n)}}}else i==="className"&&n&&t.className?o.className=be(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}const bx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function vx(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?bs(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?bs(r,o,t.components.mergeClassNameAndStyle):o}function xx({props:e,name:t}){const n=P.useContext(bx);return vx({props:e,name:t,theme:{components:n}})}let nf=0;function Cx(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(nf+=1,n(`mui-${nf}`))},[t]),o}const wx={...P},of=wx.useId;function co(e){if(of!==void 0){const t=of();return e??t}return Cx(e)}const Sx=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Tx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=Sx(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function d(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-o/100}${n})`}function u(p){return a.indexOf(p)+1<a.length?d(p,a[a.indexOf(p)+1]):l(p)}function f(p){const h=a.indexOf(p);return h===0?l(a[1]):h===a.length-1?c(a[h]):d(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:d,only:u,not:f,unit:n,...r}}const Px={borderRadius:4};function Ex(e=8,t=Fc({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Mx(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function mm(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=Tx(n),c=Ex(r);let d=Nt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...Px,...i}},a);return d=n0(d),d.applyStyles=Mx,d=t.reduce((u,f)=>Nt(u,f),d),d.unstable_sxConfig={..._s,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(f){return mr({sx:f,theme:this})},d}const rf=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},kx=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},Ox=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function tl(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return kx(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=Ox(l,c);Object.assign(r,{[u]:f}),rf(i,l,`var(${u})`,d),rf(a,l,`var(${u}, ${f})`,d)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function Dx(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:u,css:f,varsWithDefaults:p}=tl(d,t);let h=p;const m={},{[c]:g,...b}=a;if(Object.entries(b||{}).forEach(([C,T])=>{const{vars:E,css:M,varsWithDefaults:R}=tl(T,t);h=Nt(h,R),m[C]={css:M,vars:E}}),g){const{css:C,vars:T,varsWithDefaults:E}=tl(g,t);h=Nt(h,E),m[c]={css:C,vars:T}}function v(C,T){var M,R;let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((R=(M=a[C])==null?void 0:M.palette)==null?void 0:R.mode)||C})`]:{":root":T}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...u};return Object.entries(m).forEach(([,{vars:T}])=>{C=Nt(C,T)}),C},generateStyleSheets:()=>{var D,V;const C=[],T=e.defaultColorScheme||"light";function E(j,x){Object.keys(x).length&&C.push(typeof j=="string"?{[j]:{...x}}:j)}E(n(void 0,{...f}),f);const{[T]:M,...R}=m;if(M){const{css:j}=M,x=(V=(D=a[T])==null?void 0:D.palette)==null?void 0:V.mode,L=!o&&x?{colorScheme:x,...j}:{...j};E(n(T,{...L}),L)}return Object.entries(R).forEach(([j,{css:x}])=>{var _,O;const L=(O=(_=a[j])==null?void 0:_.palette)==null?void 0:O.mode,A=!o&&L?{colorScheme:L,...x}:{...x};E(n(j,{...A}),A)}),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 Ix(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Rx(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)} &`:"&"}}const Ax={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 Te(e,t,n="Mui"){const o=Ax[t];return o?`${n}-${o}`:`${zv.generate(e)}-${t}`}function _x(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Nx(e){return Math.round(e*1e5)/1e5}const sf={textTransform:"uppercase"},af='"Roboto", "Helvetica", "Arial", sans-serif';function jx(e,t){const{fontFamily:n=af,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="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 p=o/14,h=u||(b=>`${b/c*p}rem`),m=(b,v,S,w,C)=>({fontFamily:n,fontWeight:b,fontSize:h(v),lineHeight:S,...n===af?{letterSpacing:`${Nx(w/v)}em`}:{},...C,...d}),g={h1:m(r,96,1.167,-1.5),h2:m(r,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(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,sf),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,sf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nt({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const Lx=.2,Vx=.14,$x=.12;function nt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$x})`].join(",")}const Fx=["none",nt(0,2,1,-1,0,1,1,0,0,1,3,0),nt(0,3,1,-2,0,2,2,0,0,1,5,0),nt(0,3,3,-2,0,3,4,0,0,1,8,0),nt(0,2,4,-1,0,4,5,0,0,1,10,0),nt(0,3,5,-1,0,5,8,0,0,1,14,0),nt(0,3,5,-1,0,6,10,0,0,1,18,0),nt(0,4,5,-2,0,7,10,1,0,2,16,1),nt(0,5,5,-3,0,8,10,1,0,3,14,2),nt(0,5,6,-3,0,9,12,1,0,3,16,2),nt(0,6,6,-3,0,10,14,1,0,4,18,3),nt(0,6,7,-4,0,11,15,1,0,4,20,3),nt(0,7,8,-4,0,12,17,2,0,5,22,4),nt(0,7,8,-4,0,13,19,2,0,5,24,4),nt(0,7,9,-4,0,14,21,2,0,5,26,4),nt(0,8,9,-5,0,15,22,2,0,6,28,5),nt(0,8,10,-5,0,16,24,2,0,6,30,5),nt(0,8,11,-5,0,17,26,2,0,6,32,5),nt(0,9,11,-5,0,18,28,2,0,7,34,6),nt(0,9,12,-6,0,19,29,2,0,7,36,6),nt(0,10,13,-6,0,20,31,3,0,8,38,7),nt(0,10,13,-6,0,21,33,3,0,8,40,7),nt(0,10,14,-6,0,22,35,3,0,8,42,7),nt(0,11,14,-7,0,23,36,3,0,9,44,8),nt(0,11,15,-7,0,24,38,3,0,9,46,8)],Bx={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)"},zx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lf(e){return`${Math.round(e)}ms`}function Hx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Wx(e){const t={...Bx,...e.easing},n={...zx,...e.duration};return{getAutoHeightDuration:Hx,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=i;if(process.env.NODE_ENV!=="production"){const u=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!u(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
86
- `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof a=="string"?a:lf(a)} ${l} ${typeof c=="string"?c:lf(c)}`).join(",")},...e,easing:t,duration:n}}const Ux={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yx(e){return Sn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function gm(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!Yx(l)||a.startsWith("unstable_")?delete o[a]:Sn(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
84
+ */function Qv(e,t){const n=e0(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
85
+ `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function Jv(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wd=[];function Io(e){return Wd[0]=e,Xv(Wd)}const ex="exact-prop: ​";function im(e){return process.env.NODE_ENV==="production"?e:{...e,[ex]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const Pt=typeof window<"u"?P.useLayoutEffect:P.useEffect;function tx(e){return Object.keys(e).length===0}function nx(e=null){const t=P.useContext(t0.ThemeContext);return!t||tx(t)?e:t}const ox=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const fn=()=>P.useContext(ox)??!1;function hs(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=hs(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=be(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}const rx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function sx(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?hs(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?hs(r,o,t.components.mergeClassNameAndStyle):o}function ix({props:e,name:t}){const n=P.useContext(rx);return sx({props:e,name:t,theme:{components:n}})}let Ud=0;function ax(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Ud+=1,n(`mui-${Ud}`))},[t]),o}const lx={...P},Yd=lx.useId;function so(e){if(Yd!==void 0){const t=Yd();return e??t}return ax(e)}const cx=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function ux(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=cx(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-o/100}${n})`}function d(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function f(p){const h=a.indexOf(p);return h===0?l(a[1]):h===a.length-1?c(a[h]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:f,unit:n,...r}}const dx={borderRadius:4};function fx(e=8,t=Rc({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function px(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function am(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=ux(n),c=fx(r);let u=Nt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...dx,...i}},a);return u=z0(u),u.applyStyles=px,u=t.reduce((d,f)=>Nt(d,f),u),u.unstable_sxConfig={...Ds,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return dr({sx:f,theme:this})},u}const qd=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},hx=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},mx=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ka(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return hx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=mx(l,c);Object.assign(r,{[d]:f}),qd(i,l,`var(${d})`,u),qd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function gx(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:p}=Ka(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([C,T])=>{const{vars:E,css:M,varsWithDefaults:I}=Ka(T,t);h=Nt(h,I),m[C]={css:M,vars:E}}),g){const{css:C,vars:T,varsWithDefaults:E}=Ka(g,t);h=Nt(h,E),m[c]={css:C,vars:T}}function v(C,T){var M,I;let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((I=(M=a[C])==null?void 0:M.palette)==null?void 0:I.mode)||C})`]:{":root":T}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...d};return Object.entries(m).forEach(([,{vars:T}])=>{C=Nt(C,T)}),C},generateStyleSheets:()=>{var D,V;const C=[],T=e.defaultColorScheme||"light";function E(j,x){Object.keys(x).length&&C.push(typeof j=="string"?{[j]:{...x}}:j)}E(n(void 0,{...f}),f);const{[T]:M,...I}=m;if(M){const{css:j}=M,x=(V=(D=a[T])==null?void 0:D.palette)==null?void 0:V.mode,L=!o&&x?{colorScheme:x,...j}:{...j};E(n(T,{...L}),L)}return Object.entries(I).forEach(([j,{css:x}])=>{var N,k;const L=(k=(N=a[j])==null?void 0:N.palette)==null?void 0:k.mode,A=!o&&L?{colorScheme:L,...x}:{...x};E(n(j,{...A}),A)}),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 yx(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function bx(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)} &`:"&"}}const vx={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 Te(e,t,n="Mui"){const o=vx[t];return o?`${n}-${o}`:`${O0.generate(e)}-${t}`}function xx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Cx(e){return Math.round(e*1e5)/1e5}const Gd={textTransform:"uppercase"},Zd='"Roboto", "Helvetica", "Arial", sans-serif';function wx(e,t){const{fontFamily:n=Zd,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="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 p=o/14,h=d||(y=>`${y/c*p}rem`),m=(y,v,S,w,C)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:S,...n===Zd?{letterSpacing:`${Cx(w/v)}em`}:{},...C,...u}),g={h1:m(r,96,1.167,-1.5),h2:m(r,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(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,Gd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Gd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nt({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const Sx=.2,Tx=.14,Px=.12;function nt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Sx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Tx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Px})`].join(",")}const Ex=["none",nt(0,2,1,-1,0,1,1,0,0,1,3,0),nt(0,3,1,-2,0,2,2,0,0,1,5,0),nt(0,3,3,-2,0,3,4,0,0,1,8,0),nt(0,2,4,-1,0,4,5,0,0,1,10,0),nt(0,3,5,-1,0,5,8,0,0,1,14,0),nt(0,3,5,-1,0,6,10,0,0,1,18,0),nt(0,4,5,-2,0,7,10,1,0,2,16,1),nt(0,5,5,-3,0,8,10,1,0,3,14,2),nt(0,5,6,-3,0,9,12,1,0,3,16,2),nt(0,6,6,-3,0,10,14,1,0,4,18,3),nt(0,6,7,-4,0,11,15,1,0,4,20,3),nt(0,7,8,-4,0,12,17,2,0,5,22,4),nt(0,7,8,-4,0,13,19,2,0,5,24,4),nt(0,7,9,-4,0,14,21,2,0,5,26,4),nt(0,8,9,-5,0,15,22,2,0,6,28,5),nt(0,8,10,-5,0,16,24,2,0,6,30,5),nt(0,8,11,-5,0,17,26,2,0,6,32,5),nt(0,9,11,-5,0,18,28,2,0,7,34,6),nt(0,9,12,-6,0,19,29,2,0,7,36,6),nt(0,10,13,-6,0,20,31,3,0,8,38,7),nt(0,10,13,-6,0,21,33,3,0,8,40,7),nt(0,10,14,-6,0,22,35,3,0,8,42,7),nt(0,11,14,-7,0,23,36,3,0,9,44,8),nt(0,11,15,-7,0,24,38,3,0,9,46,8)],Mx={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)"},Ox={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kd(e){return`${Math.round(e)}ms`}function kx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Dx(e){const t={...Mx,...e.easing},n={...Ox,...e.duration};return{getAutoHeightDuration:kx,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
86
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:Kd(a)} ${l} ${typeof c=="string"?c:Kd(c)}`).join(",")},...e,easing:t,duration:n}}const Rx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ix(e){return Cn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function lm(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!Ix(l)||a.startsWith("unstable_")?delete o[a]:Cn(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
87
87
 
88
88
  const theme = ${JSON.stringify(t,null,2)};
89
89
 
90
90
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
91
91
  theme.transitions = createTransitions(theme.transitions || {});
92
92
 
93
- export default theme;`}function cf(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const qx=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function Gx(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ri(t,qx(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${cf(n)})`:fa(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${cf(n)})`:da(t,n)}})}function Hl(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:d,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Mn(20));const f=Hc({...i,colorSpace:d}),p=mm(e);let h=Nt(p,{mixins:_x(p.breakpoints,o),palette:f,shadows:Fx.slice(),typography:jx(f,l),transitions:Wx(a),zIndex:{...Ux}});if(h=Nt(h,u),h=t.reduce((m,g)=>Nt(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(b,v)=>{let S;for(S in b){const w=b[S];if(m.includes(S)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const C=Te("",S);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
- `))}b[S]={}}}};Object.keys(h.components).forEach(b=>{const v=h.components[b].styleOverrides;v&&b.startsWith("Mui")&&g(v,b)})}return h.unstable_sxConfig={..._s,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(g){return mr({sx:g,theme:this})},h.toRuntimeSource=gm,Gx(h),h}function Wl(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 Kx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Wl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ym(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function bm(e){return e==="dark"?Kx:[]}function Zx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Hc({...t,colorSpace:r});return{palette:a,opacity:{...ym(a.mode),...n},overlays:o||bm(a.mode),...i}}function Xx(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 Qx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Jx=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Qx(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function eC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Xr(e){return typeof e!="string"||!e.startsWith("hsl")?e:cm(e)}function In(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Zr(Xr(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().
95
- 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 tC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const bn=e=>{try{return e()}catch{}},nC=(e="mui")=>Wt.unstable_createGetCssVar(e);function nl(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=Zx({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Hl({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...ym(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||bm(i)},l}function oC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Xx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),h=nC(i),{[p]:m,light:g,dark:b,...v}=n,S={...v};let w=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Mn(21,p));let C;a&&(C="oklch");const T=nl(C,S,w,u,p);g&&!S.light&&nl(C,S,g,void 0,"light"),b&&!S.dark&&nl(C,S,b,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:d,getCssVar:h,colorSchemes:S,font:{...Ix(T.typography),...T.font},spacing:tC(u.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const x=E.colorSchemes[j].palette,L=_=>{const O=_.split("-"),N=O[1],$=O[2];return h(_,x[N][$])};x.mode==="light"&&(ne(x.common,"background","#fff"),ne(x.common,"onBackground","#000")),x.mode==="dark"&&(ne(x.common,"background","#000"),ne(x.common,"onBackground","#fff"));function A(_,O,N){if(C){let $;return _===go&&($=`transparent ${((1-N)*100).toFixed(0)}%`),_===He&&($=`#000 ${(N*100).toFixed(0)}%`),_===We&&($=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${C}, ${O}, ${$})`}return _(O,N)}if(eC(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",A(He,x.error.light,.6)),ne(x.Alert,"infoColor",A(He,x.info.light,.6)),ne(x.Alert,"successColor",A(He,x.success.light,.6)),ne(x.Alert,"warningColor",A(He,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",L("palette-error-main")),ne(x.Alert,"infoFilledBg",L("palette-info-main")),ne(x.Alert,"successFilledBg",L("palette-success-main")),ne(x.Alert,"warningFilledBg",L("palette-warning-main")),ne(x.Alert,"errorFilledColor",bn(()=>x.getContrastText(x.error.main))),ne(x.Alert,"infoFilledColor",bn(()=>x.getContrastText(x.info.main))),ne(x.Alert,"successFilledColor",bn(()=>x.getContrastText(x.success.main))),ne(x.Alert,"warningFilledColor",bn(()=>x.getContrastText(x.warning.main))),ne(x.Alert,"errorStandardBg",A(We,x.error.light,.9)),ne(x.Alert,"infoStandardBg",A(We,x.info.light,.9)),ne(x.Alert,"successStandardBg",A(We,x.success.light,.9)),ne(x.Alert,"warningStandardBg",A(We,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-100")),ne(x.Avatar,"defaultBg",L("palette-grey-400")),ne(x.Button,"inheritContainedBg",L("palette-grey-300")),ne(x.Button,"inheritContainedHoverBg",L("palette-grey-A100")),ne(x.Chip,"defaultBorder",L("palette-grey-400")),ne(x.Chip,"defaultAvatarColor",L("palette-grey-700")),ne(x.Chip,"defaultIconColor",L("palette-grey-700")),ne(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(x.LinearProgress,"primaryBg",A(We,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",A(We,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",A(We,x.error.main,.62)),ne(x.LinearProgress,"infoBg",A(We,x.info.main,.62)),ne(x.LinearProgress,"successBg",A(We,x.success.main,.62)),ne(x.LinearProgress,"warningBg",A(We,x.warning.main,.62)),ne(x.Skeleton,"bg",C?A(go,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",A(We,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",A(We,x.secondary.main,.62)),ne(x.Slider,"errorTrack",A(We,x.error.main,.62)),ne(x.Slider,"infoTrack",A(We,x.info.main,.62)),ne(x.Slider,"successTrack",A(We,x.success.main,.62)),ne(x.Slider,"warningTrack",A(We,x.warning.main,.62));const _=C?A(He,x.background.default,.6825):oi(x.background.default,.8);ne(x.SnackbarContent,"bg",_),ne(x.SnackbarContent,"color",bn(()=>C?zl.text.primary:x.getContrastText(_))),ne(x.SpeedDialAction,"fabHoverBg",oi(x.background.paper,.15)),ne(x.StepConnector,"border",L("palette-grey-400")),ne(x.StepContent,"border",L("palette-grey-400")),ne(x.Switch,"defaultColor",L("palette-common-white")),ne(x.Switch,"defaultDisabledColor",L("palette-grey-100")),ne(x.Switch,"primaryDisabledColor",A(We,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",A(We,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",A(We,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",A(We,x.info.main,.62)),ne(x.Switch,"successDisabledColor",A(We,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",A(We,x.warning.main,.62)),ne(x.TableCell,"border",A(We,A(go,x.divider,1),.88)),ne(x.Tooltip,"bg",A(go,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",A(We,x.error.light,.6)),ne(x.Alert,"infoColor",A(We,x.info.light,.6)),ne(x.Alert,"successColor",A(We,x.success.light,.6)),ne(x.Alert,"warningColor",A(We,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",L("palette-error-dark")),ne(x.Alert,"infoFilledBg",L("palette-info-dark")),ne(x.Alert,"successFilledBg",L("palette-success-dark")),ne(x.Alert,"warningFilledBg",L("palette-warning-dark")),ne(x.Alert,"errorFilledColor",bn(()=>x.getContrastText(x.error.dark))),ne(x.Alert,"infoFilledColor",bn(()=>x.getContrastText(x.info.dark))),ne(x.Alert,"successFilledColor",bn(()=>x.getContrastText(x.success.dark))),ne(x.Alert,"warningFilledColor",bn(()=>x.getContrastText(x.warning.dark))),ne(x.Alert,"errorStandardBg",A(He,x.error.light,.9)),ne(x.Alert,"infoStandardBg",A(He,x.info.light,.9)),ne(x.Alert,"successStandardBg",A(He,x.success.light,.9)),ne(x.Alert,"warningStandardBg",A(He,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-900")),ne(x.AppBar,"darkBg",L("palette-background-paper")),ne(x.AppBar,"darkColor",L("palette-text-primary")),ne(x.Avatar,"defaultBg",L("palette-grey-600")),ne(x.Button,"inheritContainedBg",L("palette-grey-800")),ne(x.Button,"inheritContainedHoverBg",L("palette-grey-700")),ne(x.Chip,"defaultBorder",L("palette-grey-700")),ne(x.Chip,"defaultAvatarColor",L("palette-grey-300")),ne(x.Chip,"defaultIconColor",L("palette-grey-300")),ne(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(x.LinearProgress,"primaryBg",A(He,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",A(He,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",A(He,x.error.main,.5)),ne(x.LinearProgress,"infoBg",A(He,x.info.main,.5)),ne(x.LinearProgress,"successBg",A(He,x.success.main,.5)),ne(x.LinearProgress,"warningBg",A(He,x.warning.main,.5)),ne(x.Skeleton,"bg",C?A(go,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",A(He,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",A(He,x.secondary.main,.5)),ne(x.Slider,"errorTrack",A(He,x.error.main,.5)),ne(x.Slider,"infoTrack",A(He,x.info.main,.5)),ne(x.Slider,"successTrack",A(He,x.success.main,.5)),ne(x.Slider,"warningTrack",A(He,x.warning.main,.5));const _=C?A(We,x.background.default,.985):oi(x.background.default,.98);ne(x.SnackbarContent,"bg",_),ne(x.SnackbarContent,"color",bn(()=>C?dm.text.primary:x.getContrastText(_))),ne(x.SpeedDialAction,"fabHoverBg",oi(x.background.paper,.15)),ne(x.StepConnector,"border",L("palette-grey-600")),ne(x.StepContent,"border",L("palette-grey-600")),ne(x.Switch,"defaultColor",L("palette-grey-300")),ne(x.Switch,"defaultDisabledColor",L("palette-grey-600")),ne(x.Switch,"primaryDisabledColor",A(He,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",A(He,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",A(He,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",A(He,x.info.main,.55)),ne(x.Switch,"successDisabledColor",A(He,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",A(He,x.warning.main,.55)),ne(x.TableCell,"border",A(He,A(go,x.divider,1),.68)),ne(x.Tooltip,"bg",A(go,x.grey[700],.92))}In(x.background,"default"),In(x.background,"paper"),In(x.common,"background"),In(x.common,"onBackground"),In(x,"divider"),Object.keys(x).forEach(_=>{const O=x[_];_!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&ne(x[_],"mainChannel",Zr(Xr(O.main))),O.light&&ne(x[_],"lightChannel",Zr(Xr(O.light))),O.dark&&ne(x[_],"darkChannel",Zr(Xr(O.dark))),O.contrastText&&ne(x[_],"contrastTextChannel",Zr(Xr(O.contrastText))),_==="text"&&(In(x[_],"primary"),In(x[_],"secondary")),_==="action"&&(O.active&&In(x[_],"active"),O.selected&&In(x[_],"selected")))})}),E=t.reduce((j,x)=>Nt(j,x),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:Jx(E),enableContrastVars:a},{vars:R,generateThemeVars:D,generateStyleSheets:V}=Dx(E,M);return E.vars=R,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,x])=>{E[j]=x}),E.generateThemeVars=D,E.generateStyleSheets=V,E.generateSpacing=function(){return Wt.createSpacing(u.spacing,Fc(this))},E.getColorSchemeSelector=Rx(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={..._s,...u==null?void 0:u.unstable_sxConfig},E.unstable_sx=function(x){return mr({sx:x,theme:this})},E.toRuntimeSource=gm,E}function uf(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Hc({...n===!0?{}:n.palette,mode:t})})}function rC(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=r==null?void 0:r[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Hl(e,...t);let u=n;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const f=Hl({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},uf(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},uf(f,"light",d.light)),f}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),oC({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Wc=rC(),pa="$$material";function ha(){const e=Wt.useTheme(Wc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[pa]||e}function vm(e){return y.jsx(Wt.GlobalStyles,{...e,defaultTheme:Wc,themeId:pa})}process.env.NODE_ENV!=="production"&&(vm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function xm(e,t=""){return e.displayName||e.name||t}function df(e,t,n){const o=xm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function sC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return xm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Fo.ForwardRef:return df(e,e.render,"ForwardRef");case Fo.Memo:return df(e,e.type,"memo");default:return}}}function iC(e){const{variants:t,...n}=e,o={variants:t,style:jo(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=jo(r.style))}),o}const aC=mm();function eo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ro(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function lC(e){return e?(t,n)=>n[e]:null}function cC(e,t,n){e.theme=pC(e.theme)?n:e.theme[t]||e.theme}function wi(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>wi(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?Ro(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?Ro(jo(a),n):a}return Cm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Ro(jo(o.style),n):o.style:n?Ro(jo(o),n):o}function Cm(e,t,n=[],o=void 0){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?Ro(jo(l.style(r)),o):l.style(r))):n.push(o?Ro(jo(l.style),o):l.style)}return n}function uC(e={}){const{themeId:t,defaultTheme:n=aC,rootShouldForwardProp:o=eo,slotShouldForwardProp:r=eo}=e;function i(l){cC(l,t,n)}return(l,c={})=>{px(l,E=>E.filter(M=>M!==mr));const{name:d,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:h=lC(wm(u)),...m}=c,g=d&&d.startsWith("Mui")||u?"components":"custom",b=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=p||!1;let S=eo;u==="Root"||u==="root"?S=o:u?S=r:hC(l)&&(S=void 0);const w=fx(l,{shouldForwardProp:S,label:fC(d,u),...m}),C=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(R){return wi(R,E,R.theme.modularCssLayers?g:void 0)};if(Sn(E)){const M=iC(E);return function(D){return M.variants?wi(D,M,D.theme.modularCssLayers?g:void 0):D.theme.modularCssLayers?Ro(M.style,g):M.style}}return E},T=(...E)=>{const M=[],R=E.map(C),D=[];if(M.push(i),d&&h&&D.push(function(L){var N,$;const _=($=(N=L.theme.components)==null?void 0:N[d])==null?void 0:$.styleOverrides;if(!_)return null;const O={};for(const F in _)O[F]=wi(L,_[F],L.theme.modularCssLayers?"theme":void 0);return h(L,O)}),d&&!b&&D.push(function(L){var O,N;const A=L.theme,_=(N=(O=A==null?void 0:A.components)==null?void 0:O[d])==null?void 0:N.variants;return _?Cm(L,_,[],L.theme.modularCssLayers?"theme":void 0):null}),v||D.push(mr),Array.isArray(R[0])){const x=R.shift(),L=new Array(M.length).fill(""),A=new Array(D.length).fill("");let _;_=[...L,...x,...A],_.raw=[...L,...x.raw,...A],M.unshift(_)}const V=[...M,...R,...D],j=w(...V);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=dC(d,u,l)),j};return w.withConfig&&(T.withConfig=w.withConfig),T}}function dC(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${sC(n)})`}function fC(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${wm(t||"Root")}`),n}function pC(e){for(const t in e)return!1;return!0}function hC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function wm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Sm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hn=e=>Sm(e)&&e!=="classes",ve=uC({themeId:pa,defaultTheme:Wc,rootShouldForwardProp:hn});function mC(e){return function(n){return y.jsx(vm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function gC(){return Y0}const Ke=Wt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function $e(e){return xx(e)}function Se(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function yC(e){return Te("MuiSvgIcon",e)}Se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bC=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,yC,o)},vC=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Ke(({theme:e})=>{var t,n,o,r,i,a,l,c,d,u,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,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:((u=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var b,v;return{props:{color:g},style:{color:(v=(b=(e.vars??e).palette)==null?void 0:b[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),_i=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=o,m=P.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:m},b={};u||(b.viewBox=p);const v=bC(g);return y.jsxs(vC,{as:l,className:be(v.root,i),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...h,...m&&r.props,ownerState:g,children:[m?r.props.children:r,f?y.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(_i.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});_i.muiName="SvgIcon";function st(e,t){function n(o,r){return y.jsx(_i,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=_i.muiName,P.memo(P.forwardRef(n))}function Tm(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function as(e,t){var n,o,r;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function kt(e){return e&&e.ownerDocument||document}function $n(e){return kt(e).defaultView||window}function ff(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xC(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function oo(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=P.useRef(t!==void 0),[a,l]=P.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){P.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
96
- `))},[r,o,t]);const{current:u}=P.useRef(n);P.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
97
- `))},[JSON.stringify(n)])}const d=P.useCallback(u=>{i||l(u)},[]);return[c,d]}function me(e){const t=P.useRef(e);return Pt(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function Le(...e){const t=P.useRef(void 0),n=P.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return P.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function CC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function wC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(d=>{CC(d,l[d])&&typeof a[d]=="function"&&(c[d]=(...u)=>{a[d](...u),l[d](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,d=be(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),u=n(c,l);return{...l,...c,...u,...!!d&&{className:d},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,r=n(e,o),i=be(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const SC=st(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),TC=st(y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),PC=st(y.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),EC=(e,t)=>()=>{if(!t)return;const n={};e.forEach(o=>{o.items.forEach(r=>{r.value!==void 0&&r.value!==null&&r.value!==""&&(n[r.id]=r.value)})}),console.log("Filtros ativos:",n),t(n)},MC=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},kC=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},OC=(e,t,n,o)=>r=>{const i=n.map(a=>a.id===e?{...a,items:a.items.map(l=>l.id===t?{...l,value:r}:l)}:a);o(i)},DC="_modal_1ktm2_1",IC="_content_1ktm2_67",RC="_contentWrapper_1ktm2_74",AC="_closeButton_1ktm2_81",_C="_header_1ktm2_93",NC="_title_1ktm2_100",jC="_description_1ktm2_109",LC="_filtersContent_1ktm2_118",VC="_filterGroup_1ktm2_128",$C="_expandableHeader_1ktm2_135",FC="_expandableLabel_1ktm2_145",BC="_chevronIcon_1ktm2_153",zC="_chevron_1ktm2_153",HC="_filterItems_1ktm2_166",WC="_filterItem_1ktm2_166",UC="_filterItemSize1_1ktm2_178",YC="_filterItemSize2_1ktm2_182",qC="_filterItemSize3_1ktm2_186",GC="_filterItemSize4_1ktm2_190",KC="_filterItemSize5_1ktm2_194",ZC="_filterItemSize6_1ktm2_198",XC="_filterInput_1ktm2_202",QC="_inputLabel_1ktm2_206",JC="_select_1ktm2_210",e2="_placeholder_1ktm2_227",t2="_helperText_1ktm2_231",n2="_footer_1ktm2_238",o2="_clearButton_1ktm2_245",r2="_applyButton_1ktm2_267",Ge={modal:DC,content:IC,contentWrapper:RC,closeButton:AC,header:_C,title:NC,description:jC,filtersContent:LC,filterGroup:VC,expandableHeader:$C,expandableLabel:FC,chevronIcon:BC,chevron:zC,filterItems:HC,filterItem:WC,filterItemSize1:UC,filterItemSize2:YC,filterItemSize3:qC,filterItemSize4:GC,filterItemSize5:KC,filterItemSize6:ZC,filterInput:XC,inputLabel:QC,select:JC,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:e2,helperText:t2,footer:n2,clearButton:o2,applyButton:r2},Pm=({open:e,onClose:t,title:n="Filtros",description:o="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",children:r,formId:i,groups:a,onApply:l,onClear:c,onOpened:d,clearButtonText:u="Limpar filtros",applyButtonText:f="Filtrar",className:p,...h})=>{const m=W.useTheme(),g=m.palette.mode==="dark",b=W.useMediaQuery(m.breakpoints.down("md")),[v,S]=k.useState(a??[]),w=!!r;k.useEffect(()=>{S(a??[])},[a]);const C=EC(v,l),T=MC(v,c,S),E=(M,R)=>{var x;const D=OC(R,M.id,v,S),V=M.size||6,j=Ge[`filterItemSize${V}`];if(M.render)return y.jsx(W.Box,{className:`${Ge.filterItem} ${j}`,children:M.render(M,D)},M.id);switch(M.type){case"select":case"multi-select":const L=M.type==="multi-select";let A;L?M.value!==void 0&&M.value!==null?A=Array.isArray(M.value)?M.value:[M.value]:A=[]:A=M.value!==void 0&&M.value!==null?M.value:"";const _=L?Array.isArray(A)&&A.length>0:A!==""&&A!==null&&A!==void 0;return y.jsx(W.Box,{className:`${Ge.filterItem} ${j}`,children:y.jsxs(W.FormControl,{fullWidth:!0,className:Ge.filterInput,children:[y.jsx(W.InputLabel,{id:`${M.id}-label`,className:Ge.inputLabel,shrink:_,children:M.label}),y.jsx(W.Select,{labelId:`${M.id}-label`,value:A,onChange:O=>D(O.target.value),multiple:L,label:M.label,className:Ge.select,displayEmpty:!0,renderValue:O=>{var $;if(L){const F=Array.isArray(O)?O:[];return F.length===0?y.jsx(W.Box,{component:"span",style:{opacity:0},children:M.label}):F.map(I=>{var Y,q;return((q=(Y=M.options)==null?void 0:Y.find(Z=>Z.value===I))==null?void 0:q.label)||I}).join(", ")}if(!O||O==="")return y.jsx(W.Box,{component:"span",style:{opacity:0},children:M.label});const N=($=M.options)==null?void 0:$.find(F=>F.value===O);return(N==null?void 0:N.label)||O},notched:_,children:(x=M.options)==null?void 0:x.map(O=>y.jsx(W.MenuItem,{value:O.value,children:O.label},O.value))}),M.helperText&&y.jsx(W.Box,{className:Ge.helperText,children:M.helperText})]})},M.id);case"text":return y.jsx(W.Box,{className:`${Ge.filterItem} ${j}`,children:y.jsx(W.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:O=>D(O.target.value),className:Ge.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ge.helperText}})},M.id);default:return null}};return y.jsx(W.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:b,TransitionProps:{onEntered:()=>d==null?void 0:d()},PaperProps:{className:`${Ge.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:y.jsx(W.DialogContent,{className:Ge.content,children:y.jsxs(W.Box,{className:Ge.contentWrapper,children:[y.jsx(W.IconButton,{className:Ge.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:y.jsx(PC,{})}),y.jsxs(W.Box,{className:Ge.header,children:[y.jsx(W.Box,{className:Ge.title,children:n}),y.jsx(W.Box,{className:Ge.description,children:o})]}),y.jsx(W.Box,{className:Ge.filtersContent,children:w?r:v.map(M=>{const R=kC(M.id,v,S),D=M.expanded!==!1;return y.jsxs(W.Box,{className:Ge.filterGroup,children:[y.jsxs(W.Box,{className:Ge.expandableHeader,onClick:R,children:[y.jsx(W.Box,{className:Ge.expandableLabel,children:M.label}),y.jsx(W.Box,{className:Ge.chevronIcon,children:D?y.jsx(TC,{className:Ge.chevron}):y.jsx(SC,{className:Ge.chevron})})]}),D&&y.jsx(W.Box,{className:Ge.filterItems,children:M.items.map(V=>E(V,M.id))})]},M.id)})}),y.jsxs(W.Box,{className:Ge.footer,children:[y.jsx(W.Button,{onClick:T,className:Ge.clearButton,"data-theme":g?"dark":"light",children:u}),y.jsx(W.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:C,className:Ge.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};Pm.displayName="FilterModal";const s2="_container_sfavn_1",i2="_card_sfavn_7",a2="_icon_sfavn_19",l2="_text_sfavn_33",ri={container:s2,card:i2,icon:a2,text:l2},c2=({items:e,className:t,sx:n})=>{const o=W.useTheme(),r={backgroundColor:o.palette.background.paper,borderColor:o.palette.divider},i={color:o.palette.text.primary,"& svg":{fill:o.palette.text.primary}},a={color:o.palette.text.secondary,fontFamily:o.typography.fontFamily,fontSize:o.typography.body2.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight};return y.jsx(W.Box,{className:`${ri.container} ${t||""}`,sx:n,children:e.map((l,c)=>y.jsxs(W.Box,{className:ri.card,sx:r,children:[l.icon&&y.jsx(W.Box,{className:ri.icon,sx:i,children:l.icon}),y.jsxs(W.Typography,{component:"span",className:ri.text,sx:a,children:[l.count," ",l.label]})]},c))})},Uc=k.createContext({});function Yc(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const Em=typeof window<"u",Mm=Em?k.useLayoutEffect:k.useEffect,ma=k.createContext(null);function qc(e,t){e.indexOf(t)===-1&&e.push(t)}function Gc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const kn=(e,t,n)=>n>t?t:n<e?e:n;function Ul(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Er=()=>{},Fn=()=>{};var Xh;typeof process<"u"&&((Xh=process.env)==null?void 0:Xh.NODE_ENV)!=="production"&&(Er=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Ul(t,n))},Fn=(e,t,n)=>{if(!e)throw new Error(Ul(t,n))});const Bn={},km=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Om(e){return typeof e=="object"&&e!==null}const Dm=e=>/^0[^.\s]+$/u.test(e);function Kc(e){let t;return()=>(t===void 0&&(t=e()),t)}const tn=e=>e,u2=(e,t)=>n=>t(e(n)),Ns=(...e)=>e.reduce(u2),vs=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Zc{constructor(){this.subscriptions=[]}add(t){return qc(this.subscriptions,t),()=>Gc(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let i=0;i<r;i++){const a=this.subscriptions[i];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Tn=e=>e*1e3,en=e=>e/1e3;function Im(e,t){return t?e*(1e3/t):0}const pf=new Set;function Xc(e,t,n){e||pf.has(t)||(console.warn(Ul(t,n)),pf.add(t))}const Rm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d2=1e-7,f2=12;function p2(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Rm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>d2&&++l<f2);return a}function js(e,t,n,o){if(e===t&&n===o)return tn;const r=i=>p2(i,0,1,e,n);return i=>i===0||i===1?i:Rm(r(i),t,o)}const Am=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_m=e=>t=>1-e(1-t),Nm=js(.33,1.53,.69,.99),Qc=_m(Nm),jm=Am(Qc),Lm=e=>(e*=2)<1?.5*Qc(e):.5*(2-Math.pow(2,-10*(e-1))),Jc=e=>1-Math.sin(Math.acos(e)),Vm=_m(Jc),$m=Am(Jc),h2=js(.42,0,1,1),m2=js(0,0,.58,1),Fm=js(.42,0,.58,1),g2=e=>Array.isArray(e)&&typeof e[0]!="number",Bm=e=>Array.isArray(e)&&typeof e[0]=="number",hf={linear:tn,easeIn:h2,easeInOut:Fm,easeOut:m2,circIn:Jc,circInOut:$m,circOut:Vm,backIn:Qc,backInOut:jm,backOut:Nm,anticipate:Lm},y2=e=>typeof e=="string",mf=e=>{if(Bm(e)){Fn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return js(t,n,o,r)}else if(y2(e))return Fn(hf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),hf[e];return e},si=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function b2(e,t){let n=new Set,o=new Set,r=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){a.has(u)&&(d.schedule(u),e()),u(l)}const d={schedule:(u,f=!1,p=!1)=>{const m=p&&r?n:o;return f&&a.add(u),m.has(u)||m.add(u),u},cancel:u=>{o.delete(u),a.delete(u)},process:u=>{if(l=u,r){i=!0;return}r=!0,[n,o]=[o,n],n.forEach(c),n.clear(),r=!1,i&&(i=!1,d.process(u))}};return d}const v2=40;function zm(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=si.reduce((w,C)=>(w[C]=b2(i),w),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const w=Bn.useManualTiming?r.timestamp:performance.now();n=!1,Bn.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(w-r.timestamp,v2),1)),r.timestamp=w,r.isProcessing=!0,l.process(r),c.process(r),d.process(r),u.process(r),f.process(r),p.process(r),h.process(r),m.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},b=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:si.reduce((w,C)=>{const T=a[C];return w[C]=(E,M=!1,R=!1)=>(n||b(),T.schedule(E,M,R)),w},{}),cancel:w=>{for(let C=0;C<si.length;C++)a[si[C]].cancel(w)},state:r,steps:a}}const{schedule:et,cancel:ro,state:Dt,steps:ol}=zm(typeof requestAnimationFrame<"u"?requestAnimationFrame:tn,!0);let Si;function x2(){Si=void 0}const Vt={now:()=>(Si===void 0&&Vt.set(Dt.isProcessing||Bn.useManualTiming?Dt.timestamp:performance.now()),Si),set:e=>{Si=e,queueMicrotask(x2)}},Hm=e=>t=>typeof t=="string"&&t.startsWith(e),Wm=Hm("--"),C2=Hm("var(--"),eu=e=>C2(e)?w2.test(e.split("/*")[0].trim()):!1,w2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Mr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xs={...Mr,transform:e=>kn(0,1,e)},ii={...Mr,default:1},ls=e=>Math.round(e*1e5)/1e5,tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function S2(e){return e==null}const T2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nu=(e,t)=>n=>!!(typeof n=="string"&&T2.test(n)&&n.startsWith(e)||t&&!S2(n)&&Object.prototype.hasOwnProperty.call(n,t)),Um=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(tu);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},P2=e=>kn(0,255,e),rl={...Mr,transform:e=>Math.round(P2(e))},Ao={test:nu("rgb","red"),parse:Um("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+rl.transform(e)+", "+rl.transform(t)+", "+rl.transform(n)+", "+ls(xs.transform(o))+")"};function E2(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Yl={test:nu("#"),parse:E2,transform:Ao.transform},Ls=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yn=Ls("deg"),Pn=Ls("%"),xe=Ls("px"),M2=Ls("vh"),k2=Ls("vw"),yf={...Pn,parse:e=>Pn.parse(e)/100,transform:e=>Pn.transform(e*100)},or={test:nu("hsl","hue"),parse:Um("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Pn.transform(ls(t))+", "+Pn.transform(ls(n))+", "+ls(xs.transform(o))+")"},Ct={test:e=>Ao.test(e)||Yl.test(e)||or.test(e),parse:e=>Ao.test(e)?Ao.parse(e):or.test(e)?or.parse(e):Yl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ao.transform(e):or.transform(e),getAnimatableNone:e=>{const t=Ct.parse(e);return t.alpha=0,Ct.transform(t)}},O2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function D2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tu))==null?void 0:t.length)||0)+(((n=e.match(O2))==null?void 0:n.length)||0)>0}const Ym="number",qm="color",I2="var",R2="var(",bf="${}",A2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Cs(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(A2,c=>(Ct.test(c)?(o.color.push(i),r.push(qm),n.push(Ct.parse(c))):c.startsWith(R2)?(o.var.push(i),r.push(I2),n.push(c)):(o.number.push(i),r.push(Ym),n.push(parseFloat(c))),++i,bf)).split(bf);return{values:n,split:l,indexes:o,types:r}}function Gm(e){return Cs(e).values}function Km(e){const{split:t,types:n}=Cs(e),o=t.length;return r=>{let i="";for(let a=0;a<o;a++)if(i+=t[a],r[a]!==void 0){const l=n[a];l===Ym?i+=ls(r[a]):l===qm?i+=Ct.transform(r[a]):i+=r[a]}return i}}const _2=e=>typeof e=="number"?0:Ct.test(e)?Ct.getAnimatableNone(e):e;function N2(e){const t=Gm(e);return Km(e)(t.map(_2))}const so={test:D2,parse:Gm,createTransformer:Km,getAnimatableNone:N2};function sl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function j2({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,i=0,a=0;if(!t)r=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=sl(c,l,e+1/3),i=sl(c,l,e),a=sl(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Ni(e,t){return n=>n>0?t:e}const ut=(e,t,n)=>e+(t-e)*n,il=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},L2=[Yl,Ao,or],V2=e=>L2.find(t=>t.test(e));function vf(e){const t=V2(e);if(Er(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===or&&(n=j2(n)),n}const xf=(e,t)=>{const n=vf(e),o=vf(t);if(!n||!o)return Ni(e,t);const r={...n};return i=>(r.red=il(n.red,o.red,i),r.green=il(n.green,o.green,i),r.blue=il(n.blue,o.blue,i),r.alpha=ut(n.alpha,o.alpha,i),Ao.transform(r))},ql=new Set(["none","hidden"]);function $2(e,t){return ql.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function F2(e,t){return n=>ut(e,t,n)}function ou(e){return typeof e=="number"?F2:typeof e=="string"?eu(e)?Ni:Ct.test(e)?xf:H2:Array.isArray(e)?Zm:typeof e=="object"?Ct.test(e)?xf:B2:Ni}function Zm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>ou(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function B2(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ou(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function z2(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],a=e.indexes[i][o[i]],l=e.values[a]??0;n[r]=l,o[i]++}return n}const H2=(e,t)=>{const n=so.createTransformer(t),o=Cs(e),r=Cs(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?ql.has(e)&&!r.values.length||ql.has(t)&&!o.values.length?$2(e,t):Ns(Zm(z2(o,r),r.values),n):(Er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ni(e,t))};function Xm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ut(e,t,n):ou(e)(e,t)}const W2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>et.update(t,n),stop:()=>ro(t),now:()=>Dt.isProcessing?Dt.timestamp:Vt.now()}},Qm=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},ji=2e4;function ru(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<ji;)t+=n,o=e.next(t);return t>=ji?1/0:t}function U2(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(ru(o),ji);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:en(r)}}const Y2=5;function Jm(e,t,n){const o=Math.max(t-Y2,0);return Im(n-e(o),t-o)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},al=.001;function q2({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:o=ct.mass}){let r,i;Er(e<=Tn(ct.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=kn(ct.minDamping,ct.maxDamping,a),e=kn(ct.minDuration,ct.maxDuration,en(e)),a<1?(r=d=>{const u=d*a,f=u*e,p=u-n,h=Gl(d,a),m=Math.exp(-f);return al-p/h*m},i=d=>{const f=d*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,m=Math.exp(-f),g=Gl(Math.pow(d,2),a);return(-r(d)+al>0?-1:1)*((p-h)*m)/g}):(r=d=>{const u=Math.exp(-d*e),f=(d-n)*e+1;return-al+u*f},i=d=>{const u=Math.exp(-d*e),f=(n-d)*(e*e);return u*f});const l=5/e,c=K2(r,i,l);if(e=Tn(e),isNaN(c))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const d=Math.pow(c,2)*o;return{stiffness:d,damping:a*2*Math.sqrt(o*d),duration:e}}}const G2=12;function K2(e,t,n){let o=n;for(let r=1;r<G2;r++)o=o-e(o)/t(o);return o}function Gl(e,t){return e*Math.sqrt(1-t*t)}const Z2=["duration","bounce"],X2=["stiffness","damping","mass"];function Cf(e,t){return t.some(n=>e[n]!==void 0)}function Q2(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Cf(e,X2)&&Cf(e,Z2))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*kn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ct.mass,stiffness:r,damping:i}}else{const n=q2(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function Li(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:d,mass:u,duration:f,velocity:p,isResolvedFromDuration:h}=Q2({...n,velocity:-en(n.velocity||0)}),m=p||0,g=d/(2*Math.sqrt(c*u)),b=a-i,v=en(Math.sqrt(c/u)),S=Math.abs(b)<5;o||(o=S?ct.restSpeed.granular:ct.restSpeed.default),r||(r=S?ct.restDelta.granular:ct.restDelta.default);let w;if(g<1){const T=Gl(v,g);w=E=>{const M=Math.exp(-g*v*E);return a-M*((m+g*v*b)/T*Math.sin(T*E)+b*Math.cos(T*E))}}else if(g===1)w=T=>a-Math.exp(-v*T)*(b+(m+v*b)*T);else{const T=v*Math.sqrt(g*g-1);w=E=>{const M=Math.exp(-g*v*E),R=Math.min(T*E,300);return a-M*((m+g*v*b)*Math.sinh(R)+T*b*Math.cosh(R))/T}}const C={calculatedDuration:h&&f||null,next:T=>{const E=w(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?Tn(m):Jm(w,T,E));const R=Math.abs(M)<=o,D=Math.abs(a-E)<=r;l.done=R&&D}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(ru(C),ji),E=Qm(M=>C.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return C}Li.applyToOptions=e=>{const t=U2(e,100,Li);return e.ease=t.ease,e.duration=Tn(t.duration),e.type="keyframes",e};function Kl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:u}){const f=e[0],p={done:!1,value:f},h=R=>l!==void 0&&R<l||c!==void 0&&R>c,m=R=>l===void 0?c:c===void 0||Math.abs(l-R)<Math.abs(c-R)?l:c;let g=n*t;const b=f+g,v=a===void 0?b:a(b);v!==b&&(g=v-f);const S=R=>-g*Math.exp(-R/o),w=R=>v+S(R),C=R=>{const D=S(R),V=w(R);p.done=Math.abs(D)<=d,p.value=p.done?v:V};let T,E;const M=R=>{h(p.value)&&(T=R,E=Li({keyframes:[p.value,m(p.value)],velocity:Jm(w,R,p.value),damping:r,stiffness:i,restDelta:d,restSpeed:u}))};return M(0),{calculatedDuration:null,next:R=>{let D=!1;return!E&&T===void 0&&(D=!0,C(R),M(R)),T!==void 0&&R>=T?E.next(R-T):(!D&&C(R),p)}}}function J2(e,t,n){const o=[],r=n||Bn.mix||Xm,i=e.length-1;for(let a=0;a<i;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||tn:t;l=Ns(c,l)}o.push(l)}return o}function ew(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Fn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=J2(t,o,r),c=l.length,d=u=>{if(a&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const p=vs(e[f],e[f+1],u);return l[f](p)};return n?u=>d(kn(e[0],e[i-1],u)):d}function tw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=vs(0,t,o);e.push(ut(n,1,r))}}function nw(e){const t=[0];return tw(t,e.length-1),t}function ow(e,t){return e.map(n=>n*t)}function rw(e,t){return e.map(()=>t||Fm).splice(0,e.length-1)}function rr({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=g2(o)?o.map(mf):mf(o),i={done:!1,value:t[0]},a=ow(n&&n.length===t.length?n:nw(t),e),l=ew(a,t,{ease:Array.isArray(r)?r:rw(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const sw=e=>e!==null;function su(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(sw),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const iw={decay:Kl,inertia:Kl,tween:rr,keyframes:rr,spring:Li};function eg(e){typeof e.type=="string"&&(e.type=iw[e.type])}class iu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const aw=e=>e/100;class au extends iu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Vt.now()&&this.tick(Vt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(o=this.options).onStop)==null||r.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;eg(t);const{type:n=rr,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||rr;process.env.NODE_ENV!=="production"&&c!==rr&&Fn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==rr&&typeof l[0]!="number"&&(this.mixKeyframes=Ns(aw,Xm(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=ru(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:d=0,keyframes:u,repeat:f,repeatType:p,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let w=this.currentTime,C=o;if(f){const R=Math.min(this.currentTime,r)/l;let D=Math.floor(R),V=R%1;!V&&R>=1&&(V=1),V===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(C=a)),w=kn(0,1,V)*l}const T=S?{done:!1,value:u[0]}:C.next(w);i&&(T.value=i(T.value));let{done:E}=T;!S&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&m!==Kl&&(T.value=su(u,this.options,b,this.speed)),g&&g(T.value),M&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return en(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+en(t)}get time(){return en(this.currentTime)}set time(t){var n;t=Tn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Vt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=en(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=W2,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(r=this.options).onPlay)==null||i.call(r);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Vt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function lw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const _o=e=>e*180/Math.PI,Zl=e=>{const t=_o(Math.atan2(e[1],e[0]));return Xl(t)},cw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zl,rotateZ:Zl,skewX:e=>_o(Math.atan(e[1])),skewY:e=>_o(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xl=e=>(e=e%360,e<0&&(e+=360),e),wf=Zl,Sf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Tf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sf,scaleY:Tf,scale:e=>(Sf(e)+Tf(e))/2,rotateX:e=>Xl(_o(Math.atan2(e[6],e[5]))),rotateY:e=>Xl(_o(Math.atan2(-e[2],e[0]))),rotateZ:wf,rotate:wf,skewX:e=>_o(Math.atan(e[4])),skewY:e=>_o(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ql(e){return e.includes("scale")?1:0}function Jl(e,t){if(!e||e==="none")return Ql(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=uw,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=cw,r=l}if(!r)return Ql(t);const i=o[t],a=r[1].split(",").map(fw);return typeof i=="function"?i(a):a[i]}const dw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jl(n,t)};function fw(e){return parseFloat(e.trim())}const kr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Or=new Set(kr),Pf=e=>e===Mr||e===xe,pw=new Set(["x","y","z"]),hw=kr.filter(e=>!pw.has(e));function mw(e){const t=[];return hw.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Qn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jl(t,"x"),y:(e,{transform:t})=>Jl(t,"y")};Qn.translateX=Qn.x;Qn.translateY=Qn.y;const Lo=new Set;let ec=!1,tc=!1,nc=!1;function tg(){if(tc){const e=Array.from(Lo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=mw(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([i,a])=>{var l;(l=o.getValue(i))==null||l.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}tc=!1,ec=!1,Lo.forEach(e=>e.complete(nc)),Lo.clear()}function ng(){Lo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tc=!0)})}function gw(){nc=!0,ng(),tg(),nc=!1}class lu{constructor(t,n,o,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Lo.add(this),ec||(ec=!0,et.read(ng),et.resolveKeyframes(tg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const i=r==null?void 0:r.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const l=o.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&i===void 0&&r.set(t[0])}lw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lo.delete(this)}cancel(){this.state==="scheduled"&&(Lo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const yw=e=>e.startsWith("--");function bw(e,t,n){yw(t)?e.style.setProperty(t,n):e.style[t]=n}const vw=Kc(()=>window.ScrollTimeline!==void 0),xw={};function Cw(e,t){const n=Kc(e);return()=>xw[t]??n()}const og=Cw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qr=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,Ef={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qr([0,.65,.55,1]),circOut:Qr([.55,0,1,.45]),backIn:Qr([.31,.01,.66,-.59]),backOut:Qr([.33,1.53,.69,.99])};function rg(e,t){if(e)return typeof e=="function"?og()?Qm(e,t):"ease-out":Bm(e)?Qr(e):Array.isArray(e)?e.map(n=>rg(n,t)||Ef.easeOut):Ef[e]}function ww(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const f=rg(l,r);Array.isArray(f)&&(u.easing=f);const p={delay:o,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return d&&(p.pseudoElement=d),e.animate(u,p)}function sg(e){return typeof e=="function"&&"applyToOptions"in e}function Sw({type:e,...t}){return sg(e)&&og()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Tw extends iu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Fn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=Sw(t);this.animation=ww(n,o,r,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=su(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(u):bw(n,o,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,o,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(o=this.animation).commitStyles)==null||r.call(o))}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return en(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+en(t)}get time(){return en(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Tn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&vw()?(this.animation.timeline=t,tn):n(this)}}const ig={anticipate:Lm,backInOut:jm,circInOut:$m};function Pw(e){return e in ig}function Ew(e){typeof e.ease=="string"&&Pw(e.ease)&&(e.ease=ig[e.ease])}const ll=10;class Mw extends Tw{constructor(t){Ew(t),eg(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new au({...a,autoplay:!1}),c=Math.max(ll,Vt.now()-this.startTime),d=kn(0,ll,c-ll);n.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const Mf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(so.test(e)||e==="0")&&!e.startsWith("url("));function kw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ow(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=Mf(r,t),l=Mf(i,t);return Er(a===l,`You are trying to animate ${t} from "${r}" to "${i}". "${a?i:r}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:kw(e)||(n==="spring"||sg(n))&&o}function oc(e){e.duration=0,e.type="keyframes"}const Dw=new Set(["opacity","clipPath","filter","transform"]),Iw=Kc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Rw(e){var u;const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return Iw()&&n&&Dw.has(n)&&(n!=="transform"||!d)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const Aw=40;class _w extends iu{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:u,...f}){var m;super(),this.stop=()=>{var g,b;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Vt.now();const p={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:a,name:c,motionValue:d,element:u,...f},h=(u==null?void 0:u.KeyframeResolver)||lu;this.keyframeResolver=new h(l,(g,b,v)=>this.onKeyframesResolved(g,b,p,!v),c,d,u),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var b,v;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:u}=o;this.resolvedAt=Vt.now(),Ow(t,i,a,l)||((Bn.instantAnimations||!c)&&(u==null||u(su(t,o,n))),t[0]=t[t.length-1],oc(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Aw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!d&&Rw(p),m=(v=(b=p.motionValue)==null?void 0:b.owner)==null?void 0:v.current,g=h?new Mw({...p,element:m}):new au(p);g.finished.then(()=>{this.notifyFinished()}).catch(tn),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),gw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function ag(e,t,n,o=0,r=1){const i=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),a=e.size,l=(a-1)*o;return typeof n=="function"?n(i,a):r===1?i*o:l-i*o}const Nw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jw(e){const t=Nw.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const Lw=4;function lg(e,t,n=1){Fn(n<=Lw,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=jw(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return km(a)?parseFloat(a):a}return eu(r)?lg(r,t,n+1):r}const Vw={type:"spring",stiffness:500,damping:25,restSpeed:10},$w=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fw={type:"keyframes",duration:.8},Bw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zw=(e,{keyframes:t})=>t.length>2?Fw:Or.has(e)?e.startsWith("scale")?$w(t[1]):Vw:Bw,Hw=e=>e!==null;function Ww(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(Hw),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function cu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function Uw({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const uu=(e,t,n,o={},r,i)=>a=>{const l=cu(o,e)||{},c=l.delay||o.delay||0;let{elapsed:d=0}=o;d=d-Tn(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};Uw(l)||Object.assign(u,zw(e,u)),u.duration&&(u.duration=Tn(u.duration)),u.repeatDelay&&(u.repeatDelay=Tn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(oc(u),u.delay===0&&(f=!0)),(Bn.instantAnimations||Bn.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,oc(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=Ww(u.keyframes,l);if(p!==void 0){et.update(()=>{u.onUpdate(p),u.onComplete()});return}}return l.isSync?new au(u):new _w(u)};function kf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function du(e,t,n,o){if(typeof t=="function"){const[r,i]=kf(o);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=kf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function dr(e,t,n){const o=e.getProps();return du(o,t,n!==void 0?n:o.custom,e)}const cg=new Set(["width","height","top","left","right","bottom",...kr]),Of=30,Yw=e=>!isNaN(parseFloat(e));class qw{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Vt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Vt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Xc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zc);const o=this.events[t].add(n);return t==="change"?()=>{o(),et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Of)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Of);return Im(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gr(e,t){return new qw(e,t)}const rc=e=>Array.isArray(e);function Gw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gr(n))}function Kw(e){return rc(e)?e[e.length-1]||0:e}function Zw(e,t){const n=dr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=Kw(i[a]);Gw(e,a,l)}}const _t=e=>!!(e&&e.getVelocity);function Xw(e){return!!(_t(e)&&e.add)}function sc(e,t){const n=e.getValue("willChange");if(Xw(n))return n.add(t);if(!n&&Bn.WillChange){const o=new Bn.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function fu(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Qw="framerAppearId",ug="data-"+fu(Qw);function dg(e){return e.props[ug]}function Jw({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function fg(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=i==null?void 0:i.reduceMotion;o&&(i=o);const d=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const p=e.getValue(f,e.latestValues[f]??null),h=l[f];if(h===void 0||u&&Jw(u,f))continue;const m={delay:n,...cu(i||{},f)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const w=dg(e);if(w){const C=window.MotionHandoffAnimation(w,f,et);C!==null&&(m.startTime=C,b=!0)}}sc(e,f);const v=c??e.shouldReduceMotion;p.start(uu(f,p,h,v&&cg.has(f)?{type:!1}:m,e,b));const S=p.animation;S&&d.push(S)}return a&&Promise.all(d).then(()=>{et.update(()=>{a&&Zw(e,a)})}),d}function ic(e,t,n={}){var c;const o=dr(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(fg(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:p}=r;return eS(e,t,d,u,f,p,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[d,u]=l==="beforeChildren"?[i,a]:[a,i];return d().then(()=>u())}else return Promise.all([i(),a(n.delay)])}function eS(e,t,n=0,o=0,r=0,i=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(ic(c,t,{...a,delay:n+(typeof o=="function"?0:o)+ag(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function tS(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>ic(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=ic(e,t,n);else{const r=typeof t=="function"?dr(e,t,n.custom):t;o=Promise.all(fg(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const nS={test:e=>e==="auto",parse:e=>e},pg=e=>t=>t.test(e),hg=[Mr,xe,Pn,Yn,k2,M2,nS],Df=e=>hg.find(pg(e));function oS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dm(e):!0}const rS=new Set(["brightness","contrast","saturate","opacity"]);function sS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(tu)||[];if(!o)return e;const r=n.replace(o,"");let i=rS.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const iS=/\b([a-z-]*)\(.*?\)/gu,ac={...so,getAnimatableNone:e=>{const t=e.match(iS);return t?t.map(sS).join(" "):e}},If={...Mr,transform:Math.round},aS={rotate:Yn,rotateX:Yn,rotateY:Yn,rotateZ:Yn,scale:ii,scaleX:ii,scaleY:ii,scaleZ:ii,skew:Yn,skewX:Yn,skewY:Yn,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:xs,originX:yf,originY:yf,originZ:xe},pu={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...aS,zIndex:If,fillOpacity:xs,strokeOpacity:xs,numOctaves:If},lS={...pu,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:ac,WebkitFilter:ac},mg=e=>lS[e];function gg(e,t){let n=mg(e);return n!==ac&&(n=so),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cS=new Set(["auto","none","0"]);function uS(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!cS.has(i)&&Cs(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=gg(n,r)}class dS extends lu{constructor(t,n,o,r,i){super(t,n,o,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),eu(f))){const p=lg(f,n.current);p!==void 0&&(t[u]=p),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!cg.has(o)||t.length!==2)return;const[r,i]=t,a=Df(r),l=Df(i),c=gf(r),d=gf(i);if(c!==d&&Qn[o]){this.needsMeasurement=!0;return}if(a!==l)if(Pf(a)&&Pf(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else Qn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||oS(t[r]))&&o.push(r);o.length&&uS(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qn[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=Qn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,d])=>{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function fS(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=(n==null?void 0:n[e])??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}const yg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function lc(e){return Om(e)&&"offsetHeight"in e}const{schedule:hu}=zm(queueMicrotask,!1),fn={x:!1,y:!1};function bg(){return fn.x||fn.y}function pS(e){return e==="x"||e==="y"?fn[e]?null:(fn[e]=!0,()=>{fn[e]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}function vg(e,t){const n=fS(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Rf(e){return!(e.pointerType==="touch"||bg())}function hS(e,t,n={}){const[o,r,i]=vg(e,n),a=l=>{if(!Rf(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const u=f=>{Rf(f)&&(d(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const xg=(e,t)=>t?e===t?!0:xg(e,t.parentElement):!1,mu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Cg(e){return mS.has(e.tagName)||e.isContentEditable===!0}const Ti=new WeakSet;function Af(e){return t=>{t.key==="Enter"&&e(t)}}function cl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const gS=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Af(()=>{if(Ti.has(n))return;cl(n,"down");const r=Af(()=>{cl(n,"up")}),i=()=>cl(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function _f(e){return mu(e)&&!bg()}function yS(e,t,n={}){const[o,r,i]=vg(e,n),a=l=>{const c=l.currentTarget;if(!_f(l))return;Ti.add(c);const d=t(c,l),u=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),Ti.has(c)&&Ti.delete(c),_f(h)&&typeof d=="function"&&d(h,{success:m})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||xg(c,h.target))},p=h=>{u(h,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",p,r)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),lc(l)&&(l.addEventListener("focus",d=>gS(d,r)),!Cg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function wg(e){return Om(e)&&"ownerSVGElement"in e}function bS(e){return wg(e)&&e.tagName==="svg"}const vS=[...hg,Ct,so],xS=e=>vS.find(pg(e)),Nf=()=>({translate:0,scale:1,origin:0,originPoint:0}),sr=()=>({x:Nf(),y:Nf()}),jf=()=>({min:0,max:0}),Tt=()=>({x:jf(),y:jf()}),cc={current:null},Sg={current:!1},CS=typeof window<"u";function wS(){if(Sg.current=!0,!!CS)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cc.current=e.matches;e.addEventListener("change",t),t()}else cc.current=!1}const SS=new WeakMap;function ga(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ws(e){return typeof e=="string"||Array.isArray(e)}const gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yu=["initial",...gu];function ya(e){return ga(e.animate)||yu.some(t=>ws(e[t]))}function Tg(e){return!!(ya(e)||e.variants)}function TS(e,t,n){for(const o in t){const r=t[o],i=n[o];if(_t(r))e.addValue(o,r);else if(_t(i))e.addValue(o,gr(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,gr(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Lf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vi={};function Pg(e){Vi=e}function PS(){return Vi}class ES{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=lu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Vt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,et.render(this.render,!1,!0))};const{latestValues:d,renderState:u}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=ya(n),this.isVariantNode=Tg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const m=p[h];d[h]!==void 0&&_t(m)&&m.set(d[h])}}mount(t){var n;this.current=t,SS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Sg.current||wS(),this.shouldReduceMotion=cc.current),process.env.NODE_ENV!=="production"&&Xc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),ro(this.notifyUpdate),ro(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Or.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vi){const n=Vi[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Tt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<Lf.length;o++){const r=Lf[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,a=t[i];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=TS(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=gr(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(km(o)||Dm(o))?o=parseFloat(o):!xS(o)&&so.test(n)&&(o=gg(t,n)),this.setBaseTarget(t,_t(o)?o.get():o)),_t(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const a=du(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(o=a[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!_t(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){hu.render(this.render)}}class Eg extends ES{constructor(){super(...arguments),this.KeyframeResolver=dS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_t(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class uo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Mg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function MS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kS(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function ul(e){return e===void 0||e===1}function uc({scale:e,scaleX:t,scaleY:n}){return!ul(e)||!ul(t)||!ul(n)}function ko(e){return uc(e)||kg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kg(e){return Vf(e.x)||Vf(e.y)}function Vf(e){return e&&e!=="0%"}function $i(e,t,n){const o=e-n,r=t*o;return n+r}function $f(e,t,n,o,r){return r!==void 0&&(e=$i(e,r,o)),$i(e,n,o)+t}function dc(e,t=0,n=1,o,r){e.min=$f(e.min,t,n,o,r),e.max=$f(e.max,t,n,o,r)}function Og(e,{x:t,y:n}){dc(e.x,t.translate,t.scale,t.originPoint),dc(e.y,n.translate,n.scale,n.originPoint)}const Ff=.999999999999,Bf=1.0000000000001;function OS(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,a;for(let l=0;l<r;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ar(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Og(e,a)),o&&ko(i.latestValues)&&ar(e,i.latestValues))}t.x<Bf&&t.x>Ff&&(t.x=1),t.y<Bf&&t.y>Ff&&(t.y=1)}function ir(e,t){e.min=e.min+t,e.max=e.max+t}function zf(e,t,n,o,r=.5){const i=ut(e.min,e.max,r);dc(e,t,n,i,o)}function ar(e,t){zf(e.x,t.x,t.scaleX,t.scale,t.originX),zf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Dg(e,t){return Mg(kS(e.getBoundingClientRect(),t))}function DS(e,t,n){const o=Dg(e,n),{scroll:r}=t;return r&&(ir(o.x,r.offset.x),ir(o.y,r.offset.y)),o}const IS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RS=kr.length;function AS(e,t,n){let o="",r=!0;for(let i=0;i<RS;i++){const a=kr[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const d=parseFloat(l);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=yg(l,pu[a]);if(!c){r=!1;const u=IS[a]||a;o+=`${u}(${d}) `}n&&(t[a]=d)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function bu(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const d=t[c];if(Or.has(c)){a=!0;continue}else if(Wm(c)){r[c]=d;continue}else{const u=yg(d,pu[c]);c.startsWith("origin")?(l=!0,i[c]=u):o[c]=u}}if(t.transform||(a||n?o.transform=AS(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=i;o.transformOrigin=`${c} ${d} ${u}`}}function Ig(e,{style:t,vars:n},o,r){const i=e.style;let a;for(a in t)i[a]=t[a];r==null||r.applyProjectionStyles(i,o);for(a in n)i.setProperty(a,n[a])}function Hf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=Hf(e,t.target.x),o=Hf(e,t.target.y);return`${n}% ${o}%`}},_S={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=so.parse(e);if(r.length>5)return o;const i=so.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const d=ut(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=d),typeof r[3+a]=="number"&&(r[3+a]/=d),i(r)}},fc={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:_S};function Rg(e,{layout:t,layoutId:n}){return Or.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fc[e]||e==="opacity")}function vu(e,t,n){var a;const o=e.style,r=t==null?void 0:t.style,i={};if(!o)return i;for(const l in o)(_t(o[l])||r&&_t(r[l])||Rg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function NS(e){return window.getComputedStyle(e)}class jS extends Eg{constructor(){super(...arguments),this.type="html",this.renderInstance=Ig}readValueFromInstance(t,n){var o;if(Or.has(n))return(o=this.projection)!=null&&o.isProjecting?Ql(n):dw(t,n);{const r=NS(t),i=(Wm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dg(t,n)}build(t,n,o){bu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return vu(t,n,o)}}const LS={offset:"stroke-dashoffset",array:"stroke-dasharray"},VS={offset:"strokeDashoffset",array:"strokeDasharray"};function $S(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?LS:VS;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const FS=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ag(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,d,u){if(bu(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox);for(const h of FS)f[h]!==void 0&&(p[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),r!==void 0&&$S(f,r,i,a,!1)}const _g=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Ng=e=>typeof e=="string"&&e.toLowerCase()==="svg";function BS(e,t,n,o){Ig(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(_g.has(r)?r:fu(r),t.attrs[r])}function jg(e,t,n){const o=vu(e,t,n);for(const r in e)if(_t(e[r])||_t(t[r])){const i=kr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class zS extends Eg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Tt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Or.has(n)){const o=mg(n);return o&&o.default||0}return n=_g.has(n)?n:fu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return jg(t,n,o)}build(t,n,o){Ag(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){BS(t,n,o,r)}mount(t){this.isSVGTag=Ng(t.tagName),super.mount(t)}}const HS=yu.length;function Lg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Lg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<HS;n++){const o=yu[n],r=e.props[o];(ws(r)||r===!1)&&(t[o]=r)}return t}function Vg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const WS=[...gu].reverse(),US=gu.length;function YS(e){return t=>Promise.all(t.map(({animation:n,options:o})=>tS(e,n,o)))}function qS(e){let t=YS(e),n=Wf(),o=!0;const r=c=>(d,u)=>{var p;const f=dr(e,u,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;d={...d,...g,...m}}return d};function i(c){t=c(e)}function a(c){const{props:d}=e,u=Lg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let b=0;b<US;b++){const v=WS[b],S=n[v],w=d[v]!==void 0?d[v]:u[v],C=ws(w),T=v===c?S.isActive:null;T===!1&&(m=b);let E=w===u[v]&&w!==d[v]&&C;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),S.protectedKeys={...h},!S.isActive&&T===null||!w&&!S.prevProp||ga(w)||typeof w=="boolean")continue;const M=GS(S.prevProp,w);let R=M||v===c&&S.isActive&&!E&&C||b>m&&C,D=!1;const V=Array.isArray(w)?w:[w];let j=V.reduce(r(v),{});T===!1&&(j={});const{prevResolvedValues:x={}}=S,L={...x,...j},A=N=>{R=!0,p.has(N)&&(D=!0,p.delete(N)),S.needsAnimating[N]=!0;const $=e.getValue(N);$&&($.liveStyle=!1)};for(const N in L){const $=j[N],F=x[N];if(h.hasOwnProperty(N))continue;let B=!1;rc($)&&rc(F)?B=!Vg($,F):B=$!==F,B?$!=null?A(N):p.add(N):$!==void 0&&p.has(N)?A(N):S.protectedKeys[N]=!0}S.prevProp=w,S.prevResolvedValues=j,S.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(R=!1);const _=E&&M;R&&(!_||D)&&f.push(...V.map(N=>{const $={type:v};if(typeof N=="string"&&o&&!_&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,B=dr(F,N);if(F.enteringChildren&&B){const{delayChildren:I}=B.transition||{};$.delay=ag(F.enteringChildren,e,I)}}return{animation:N,options:$}}))}if(p.size){const b={};if(typeof d.initial!="boolean"){const v=dr(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(b.transition=v.transition)}p.forEach(v=>{const S=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),b[v]=S??null}),f.push({animation:b})}let g=!!f.length;return o&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,d)}),n[c].isActive=d;const u=a(c);for(const p in n)n[p].protectedKeys={};return u}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Wf()}}}function GS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vg(t,e):!1}function yo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wf(){return{animate:yo(!0),whileInView:yo(),whileHover:yo(),whileTap:yo(),whileDrag:yo(),whileFocus:yo(),exit:yo()}}function Uf(e,t){e.min=t.min,e.max=t.max}function cn(e,t){Uf(e.x,t.x),Uf(e.y,t.y)}function Yf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const $g=1e-4,KS=1-$g,ZS=1+$g,Fg=.01,XS=0-Fg,QS=0+Fg;function $t(e){return e.max-e.min}function JS(e,t,n){return Math.abs(e-t)<=n}function qf(e,t,n,o=.5){e.origin=o,e.originPoint=ut(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=ut(n.min,n.max,e.origin)-e.originPoint,(e.scale>=KS&&e.scale<=ZS||isNaN(e.scale))&&(e.scale=1),(e.translate>=XS&&e.translate<=QS||isNaN(e.translate))&&(e.translate=0)}function cs(e,t,n,o){qf(e.x,t.x,n.x,o?o.originX:void 0),qf(e.y,t.y,n.y,o?o.originY:void 0)}function Gf(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function e5(e,t,n){Gf(e.x,t.x,n.x),Gf(e.y,t.y,n.y)}function Kf(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Fi(e,t,n){Kf(e.x,t.x,n.x),Kf(e.y,t.y,n.y)}function Zf(e,t,n,o,r){return e-=t,e=$i(e,1/n,o),r!==void 0&&(e=$i(e,1/r,o)),e}function t5(e,t=0,n=1,o=.5,r,i=e,a=e){if(Pn.test(t)&&(t=parseFloat(t),t=ut(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ut(i.min,i.max,o);e===i&&(l-=t),e.min=Zf(e.min,t,n,l,r),e.max=Zf(e.max,t,n,l,r)}function Xf(e,t,[n,o,r],i,a){t5(e,t[n],t[o],t[r],t.scale,i,a)}const n5=["x","scaleX","originX"],o5=["y","scaleY","originY"];function Qf(e,t,n,o){Xf(e.x,t,n5,n?n.x:void 0,o?o.x:void 0),Xf(e.y,t,o5,n?n.y:void 0,o?o.y:void 0)}function Jf(e){return e.translate===0&&e.scale===1}function Bg(e){return Jf(e.x)&&Jf(e.y)}function ep(e,t){return e.min===t.min&&e.max===t.max}function r5(e,t){return ep(e.x,t.x)&&ep(e.y,t.y)}function tp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zg(e,t){return tp(e.x,t.x)&&tp(e.y,t.y)}function np(e){return $t(e.x)/$t(e.y)}function op(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Xt(e){return[e("x"),e("y")]}function s5(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:p,skewX:h,skewY:m}=n;d&&(o=`perspective(${d}px) ${o}`),u&&(o+=`rotate(${u}deg) `),f&&(o+=`rotateX(${f}deg) `),p&&(o+=`rotateY(${p}deg) `),h&&(o+=`skewX(${h}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const Hg=["TopLeft","TopRight","BottomLeft","BottomRight"],i5=Hg.length,rp=e=>typeof e=="string"?parseFloat(e):e,sp=e=>typeof e=="number"||xe.test(e);function a5(e,t,n,o,r,i){r?(e.opacity=ut(0,n.opacity??1,l5(o)),e.opacityExit=ut(t.opacity??1,0,c5(o))):i&&(e.opacity=ut(t.opacity??1,n.opacity??1,o));for(let a=0;a<i5;a++){const l=`border${Hg[a]}Radius`;let c=ip(t,l),d=ip(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||sp(c)===sp(d)?(e[l]=Math.max(ut(rp(c),rp(d),o),0),(Pn.test(d)||Pn.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=ut(t.rotate||0,n.rotate||0,o))}function ip(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const l5=Wg(0,.5,Vm),c5=Wg(.5,.95,tn);function Wg(e,t,n){return o=>o<e?0:o>t?1:n(vs(e,t,o))}function u5(e,t,n){const o=_t(e)?e:gr(e);return o.start(uu("",o,t,n)),o.animation}function Ss(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const d5=(e,t)=>e.depth-t.depth;class f5{constructor(){this.children=[],this.isDirty=!1}add(t){qc(this.children,t),this.isDirty=!0}remove(t){Gc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(d5),this.isDirty=!1,this.children.forEach(t)}}function p5(e,t){const n=Vt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(ro(o),e(i-t))};return et.setup(o,!0),()=>ro(o)}function Pi(e){return _t(e)?e.get():e}class h5{constructor(){this.members=[]}add(t){qc(this.members,t),t.scheduleRender()}remove(t){if(Gc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender();const r=o.options.layoutDependency,i=t.options.layoutDependency;r!==void 0&&i!==void 0&&r===i||(t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:l}=t.options;l===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ei={hasAnimatedSinceResize:!0,hasEverUpdated:!1},dl=["","X","Y","Z"],m5=1e3;let g5=0;function fl(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Ug(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=dg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Ug(o)}function Yg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=g5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(v5),this.nodes.forEach(S5),this.nodes.forEach(T5),this.nodes.forEach(x5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new f5)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Zc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=wg(a)&&!bS(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,f=0;const p=()=>this.root.updateBlockedByResize=!1;et.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=p5(p,250),Ei.hasAnimatedSinceResize&&(Ei.hasAnimatedSinceResize=!1,this.nodes.forEach(cp)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||d.getDefaultTransition()||O5,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!zg(this.targetLayout,h),S=!f&&p;if(this.options.layoutRoot||this.resumeFrom||S||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...cu(m,"layout"),onPlay:g,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,S)}else f||cp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ro(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(P5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ug(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ap);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(lp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(w5),this.nodes.forEach(y5),this.nodes.forEach(b5)):this.nodes.forEach(lp),this.clearAllSnapshots();const l=Vt.now();Dt.delta=kn(0,1e3/60,l-Dt.timestamp),Dt.timestamp=l,Dt.isProcessing=!0,ol.update.process(Dt),ol.preRender.process(Dt),ol.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(C5),this.sharedNodes.forEach(E5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Bg(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||ko(this.latestValues)||u)&&(r(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),D5(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:a}=this.options;if(!a)return Tt();const l=a.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(I5))){const{scroll:u}=this.root;u&&(ir(l.x,u.offset.x),ir(l.y,u.offset.y))}return l}removeElementScroll(a){var c;const l=Tt();if(cn(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:f,options:p}=u;u!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&cn(l,a),ir(l.x,f.offset.x),ir(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=Tt();cn(c,a);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ar(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ko(u.latestValues)&&ar(c,u.latestValues)}return ko(this.latestValues)&&ar(c,this.latestValues),c}removeTransform(a){const l=Tt();cn(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!ko(d.latestValues))continue;uc(d.latestValues)&&d.updateSnapshot();const u=Tt(),f=d.measurePageBox();cn(u,f),Qf(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ko(this.latestValues)&&Qf(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var h;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=Dt.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Tt(),this.targetWithTransforms=Tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),e5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):cn(this.target,this.layout.layoutBox),Og(this.target,this.targetDelta)):cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||uc(this.parent.latestValues)||kg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Tt(),this.relativeTargetOrigin=Tt(),Fi(this.relativeTargetOrigin,l,c),cn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;cn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;OS(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Tt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yf(this.prevProjectionDelta.x,this.projectionDelta.x),Yf(this.prevProjectionDelta.y,this.projectionDelta.y)),cs(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!op(this.projectionDelta.x,this.prevProjectionDelta.x)||!op(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sr(),this.projectionDelta=sr(),this.projectionDeltaWithTransform=sr()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},f=sr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=Tt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,b=this.getStack(),v=!b||b.members.length<=1,S=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(k5));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;up(f.x,a.x,T),up(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M5(this.relativeTarget,this.relativeTargetOrigin,p,T),w&&r5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Tt()),cn(w,this.relativeTarget)),g&&(this.animationValues=u,a5(u,d,this.latestValues,T,S,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||d.stop(),this.pendingAnimation&&(ro(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{Ei.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=gr(0)),this.currentAnimation=u5(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(m5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&qg(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Tt();const f=$t(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=$t(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}cn(l,c),ar(l,u),cs(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new h5),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&fl("z",a,d,this.animationValues);for(let u=0;u<dl.length;u++)fl(`rotate${dl[u]}`,a,d,this.animationValues),fl(`skew${dl[u]}`,a,d,this.animationValues);a.render();for(const u in d)a.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Pi(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Pi(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!ko(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=s5(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),a.transform=f;const{x:p,y:h}=this.projectionDelta;a.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,d.animationValues?a.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in fc){if(u[m]===void 0)continue;const{correct:g,applyTo:b,isCSSVariable:v}=fc[m],S=f==="none"?u[m]:g(u[m],d);if(b){const w=b.length;for(let C=0;C<w;C++)a[b[C]]=S}else v?this.options.visualElement.renderState.vars[m]=S:a[m]=S}this.options.layoutId&&(a.pointerEvents=d===this?Pi(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(ap),this.root.sharedNodes.clear()}}}function y5(e){e.updateLayout()}function b5(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Xt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(p);p.min=o[f].min,p.max=p.min+h}):qg(i,t.layoutBox,o)&&Xt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=sr();cs(l,o,t.layoutBox);const c=sr();a?cs(c,e.applyTransform(r,!0),t.measuredBox):cs(c,o,t.layoutBox);const d=!Bg(l);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=Tt();Fi(m,t.layoutBox,p.layoutBox);const g=Tt();Fi(g,o,h.layoutBox),zg(m,g)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function v5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function x5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function C5(e){e.clearSnapshot()}function ap(e){e.clearMeasurements()}function lp(e){e.isLayoutDirty=!1}function w5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function S5(e){e.resolveTargetDelta()}function T5(e){e.calcProjection()}function P5(e){e.resetSkewAndRotation()}function E5(e){e.removeLeadSnapshot()}function up(e,t,n){e.translate=ut(t.translate,0,n),e.scale=ut(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dp(e,t,n,o){e.min=ut(t.min,n.min,o),e.max=ut(t.max,n.max,o)}function M5(e,t,n,o){dp(e.x,t.x,n.x,o),dp(e.y,t.y,n.y,o)}function k5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const O5={duration:.45,ease:[.4,0,.1,1]},fp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),pp=fp("applewebkit/")&&!fp("chrome/")?Math.round:tn;function hp(e){e.min=pp(e.min),e.max=pp(e.max)}function D5(e){hp(e.x),hp(e.y)}function qg(e,t,n){return e==="position"||e==="preserve-aspect"&&!JS(np(t),np(n),.2)}function I5(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const R5=Yg({attachResizeListener:(e,t)=>Ss(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),pl={current:void 0},Gg=Yg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pl.current){const e=new R5({});e.mount(window),e.setOptions({layoutScroll:!0}),pl.current=e}return pl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xu=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function mp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function A5(...e){return t=>{let n=!1;const o=e.map(r=>{const i=mp(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():mp(e[r],null)}}}}function _5(...e){return P.useCallback(A5(...e),e)}class N5 extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=lc(o)&&o.offsetWidth||0,i=lc(o)&&o.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=r-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function j5({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=k.useId(),a=k.useRef(null),l=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=k.useContext(xu),d=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),u=_5(a,d);return k.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:b,bottom:v}=l.current;if(t||!a.current||!p||!h)return;const S=n==="left"?`left: ${g}`:`right: ${b}`,w=o==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=i;const C=document.createElement("style");c&&(C.nonce=c);const T=r??document.head;return T.appendChild(C),C.sheet&&C.sheet.insertRule(`
93
+ export default theme;`}function Xd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ax=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function Nx(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Mi(t,Ax(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Xd(n)})`:aa(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Xd(n)})`:ia(t,n)}})}function jl(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},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.":Pn(20));const f=Nc({...i,colorSpace:u}),p=am(e);let h=Nt(p,{mixins:xx(p.breakpoints,o),palette:f,shadows:Ex.slice(),typography:wx(f,l),transitions:Dx(a),zIndex:{...Rx}});if(h=Nt(h,d),h=t.reduce((m,g)=>Nt(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(y,v)=>{let S;for(S in y){const w=y[S];if(m.includes(S)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const C=Te("",S);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
+ `))}y[S]={}}}};Object.keys(h.components).forEach(y=>{const v=h.components[y].styleOverrides;v&&y.startsWith("Mui")&&g(v,y)})}return h.unstable_sxConfig={...Ds,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return dr({sx:g,theme:this})},h.toRuntimeSource=lm,Nx(h),h}function Ll(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 _x=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ll(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function cm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function um(e){return e==="dark"?_x:[]}function jx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Nc({...t,colorSpace:r});return{palette:a,opacity:{...cm(a.mode),...n},overlays:o||um(a.mode),...i}}function Lx(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 Vx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$x=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Vx(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function Fx(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function qr(e){return typeof e!="string"||!e.startsWith("hsl")?e:tm(e)}function kn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Yr(qr(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().
95
+ 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 Bx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const yn=e=>{try{return e()}catch{}},zx=(e="mui")=>Ht.unstable_createGetCssVar(e);function Xa(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=jx({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=jl({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...cm(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||um(i)},l}function Hx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Lx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),h=zx(i),{[p]:m,light:g,dark:y,...v}=n,S={...v};let w=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Pn(21,p));let C;a&&(C="oklch");const T=Xa(C,S,w,d,p);g&&!S.light&&Xa(C,S,g,void 0,"light"),y&&!S.dark&&Xa(C,S,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:S,font:{...yx(T.typography),...T.font},spacing:Bx(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const x=E.colorSchemes[j].palette,L=N=>{const k=N.split("-"),_=k[1],$=k[2];return h(N,x[_][$])};x.mode==="light"&&(ne(x.common,"background","#fff"),ne(x.common,"onBackground","#000")),x.mode==="dark"&&(ne(x.common,"background","#000"),ne(x.common,"onBackground","#fff"));function A(N,k,_){if(C){let $;return N===fo&&($=`transparent ${((1-_)*100).toFixed(0)}%`),N===He&&($=`#000 ${(_*100).toFixed(0)}%`),N===We&&($=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${C}, ${k}, ${$})`}return N(k,_)}if(Fx(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",A(He,x.error.light,.6)),ne(x.Alert,"infoColor",A(He,x.info.light,.6)),ne(x.Alert,"successColor",A(He,x.success.light,.6)),ne(x.Alert,"warningColor",A(He,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",L("palette-error-main")),ne(x.Alert,"infoFilledBg",L("palette-info-main")),ne(x.Alert,"successFilledBg",L("palette-success-main")),ne(x.Alert,"warningFilledBg",L("palette-warning-main")),ne(x.Alert,"errorFilledColor",yn(()=>x.getContrastText(x.error.main))),ne(x.Alert,"infoFilledColor",yn(()=>x.getContrastText(x.info.main))),ne(x.Alert,"successFilledColor",yn(()=>x.getContrastText(x.success.main))),ne(x.Alert,"warningFilledColor",yn(()=>x.getContrastText(x.warning.main))),ne(x.Alert,"errorStandardBg",A(We,x.error.light,.9)),ne(x.Alert,"infoStandardBg",A(We,x.info.light,.9)),ne(x.Alert,"successStandardBg",A(We,x.success.light,.9)),ne(x.Alert,"warningStandardBg",A(We,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-100")),ne(x.Avatar,"defaultBg",L("palette-grey-400")),ne(x.Button,"inheritContainedBg",L("palette-grey-300")),ne(x.Button,"inheritContainedHoverBg",L("palette-grey-A100")),ne(x.Chip,"defaultBorder",L("palette-grey-400")),ne(x.Chip,"defaultAvatarColor",L("palette-grey-700")),ne(x.Chip,"defaultIconColor",L("palette-grey-700")),ne(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(x.LinearProgress,"primaryBg",A(We,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",A(We,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",A(We,x.error.main,.62)),ne(x.LinearProgress,"infoBg",A(We,x.info.main,.62)),ne(x.LinearProgress,"successBg",A(We,x.success.main,.62)),ne(x.LinearProgress,"warningBg",A(We,x.warning.main,.62)),ne(x.Skeleton,"bg",C?A(fo,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",A(We,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",A(We,x.secondary.main,.62)),ne(x.Slider,"errorTrack",A(We,x.error.main,.62)),ne(x.Slider,"infoTrack",A(We,x.info.main,.62)),ne(x.Slider,"successTrack",A(We,x.success.main,.62)),ne(x.Slider,"warningTrack",A(We,x.warning.main,.62));const N=C?A(He,x.background.default,.6825):Js(x.background.default,.8);ne(x.SnackbarContent,"bg",N),ne(x.SnackbarContent,"color",yn(()=>C?_l.text.primary:x.getContrastText(N))),ne(x.SpeedDialAction,"fabHoverBg",Js(x.background.paper,.15)),ne(x.StepConnector,"border",L("palette-grey-400")),ne(x.StepContent,"border",L("palette-grey-400")),ne(x.Switch,"defaultColor",L("palette-common-white")),ne(x.Switch,"defaultDisabledColor",L("palette-grey-100")),ne(x.Switch,"primaryDisabledColor",A(We,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",A(We,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",A(We,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",A(We,x.info.main,.62)),ne(x.Switch,"successDisabledColor",A(We,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",A(We,x.warning.main,.62)),ne(x.TableCell,"border",A(We,A(fo,x.divider,1),.88)),ne(x.Tooltip,"bg",A(fo,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",A(We,x.error.light,.6)),ne(x.Alert,"infoColor",A(We,x.info.light,.6)),ne(x.Alert,"successColor",A(We,x.success.light,.6)),ne(x.Alert,"warningColor",A(We,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",L("palette-error-dark")),ne(x.Alert,"infoFilledBg",L("palette-info-dark")),ne(x.Alert,"successFilledBg",L("palette-success-dark")),ne(x.Alert,"warningFilledBg",L("palette-warning-dark")),ne(x.Alert,"errorFilledColor",yn(()=>x.getContrastText(x.error.dark))),ne(x.Alert,"infoFilledColor",yn(()=>x.getContrastText(x.info.dark))),ne(x.Alert,"successFilledColor",yn(()=>x.getContrastText(x.success.dark))),ne(x.Alert,"warningFilledColor",yn(()=>x.getContrastText(x.warning.dark))),ne(x.Alert,"errorStandardBg",A(He,x.error.light,.9)),ne(x.Alert,"infoStandardBg",A(He,x.info.light,.9)),ne(x.Alert,"successStandardBg",A(He,x.success.light,.9)),ne(x.Alert,"warningStandardBg",A(He,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-900")),ne(x.AppBar,"darkBg",L("palette-background-paper")),ne(x.AppBar,"darkColor",L("palette-text-primary")),ne(x.Avatar,"defaultBg",L("palette-grey-600")),ne(x.Button,"inheritContainedBg",L("palette-grey-800")),ne(x.Button,"inheritContainedHoverBg",L("palette-grey-700")),ne(x.Chip,"defaultBorder",L("palette-grey-700")),ne(x.Chip,"defaultAvatarColor",L("palette-grey-300")),ne(x.Chip,"defaultIconColor",L("palette-grey-300")),ne(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(x.LinearProgress,"primaryBg",A(He,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",A(He,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",A(He,x.error.main,.5)),ne(x.LinearProgress,"infoBg",A(He,x.info.main,.5)),ne(x.LinearProgress,"successBg",A(He,x.success.main,.5)),ne(x.LinearProgress,"warningBg",A(He,x.warning.main,.5)),ne(x.Skeleton,"bg",C?A(fo,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",A(He,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",A(He,x.secondary.main,.5)),ne(x.Slider,"errorTrack",A(He,x.error.main,.5)),ne(x.Slider,"infoTrack",A(He,x.info.main,.5)),ne(x.Slider,"successTrack",A(He,x.success.main,.5)),ne(x.Slider,"warningTrack",A(He,x.warning.main,.5));const N=C?A(We,x.background.default,.985):Js(x.background.default,.98);ne(x.SnackbarContent,"bg",N),ne(x.SnackbarContent,"color",yn(()=>C?om.text.primary:x.getContrastText(N))),ne(x.SpeedDialAction,"fabHoverBg",Js(x.background.paper,.15)),ne(x.StepConnector,"border",L("palette-grey-600")),ne(x.StepContent,"border",L("palette-grey-600")),ne(x.Switch,"defaultColor",L("palette-grey-300")),ne(x.Switch,"defaultDisabledColor",L("palette-grey-600")),ne(x.Switch,"primaryDisabledColor",A(He,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",A(He,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",A(He,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",A(He,x.info.main,.55)),ne(x.Switch,"successDisabledColor",A(He,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",A(He,x.warning.main,.55)),ne(x.TableCell,"border",A(He,A(fo,x.divider,1),.68)),ne(x.Tooltip,"bg",A(fo,x.grey[700],.92))}kn(x.background,"default"),kn(x.background,"paper"),kn(x.common,"background"),kn(x.common,"onBackground"),kn(x,"divider"),Object.keys(x).forEach(N=>{const k=x[N];N!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&ne(x[N],"mainChannel",Yr(qr(k.main))),k.light&&ne(x[N],"lightChannel",Yr(qr(k.light))),k.dark&&ne(x[N],"darkChannel",Yr(qr(k.dark))),k.contrastText&&ne(x[N],"contrastTextChannel",Yr(qr(k.contrastText))),N==="text"&&(kn(x[N],"primary"),kn(x[N],"secondary")),N==="action"&&(k.active&&kn(x[N],"active"),k.selected&&kn(x[N],"selected")))})}),E=t.reduce((j,x)=>Nt(j,x),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:$x(E),enableContrastVars:a},{vars:I,generateThemeVars:D,generateStyleSheets:V}=gx(E,M);return E.vars=I,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,x])=>{E[j]=x}),E.generateThemeVars=D,E.generateStyleSheets=V,E.generateSpacing=function(){return Ht.createSpacing(d.spacing,Rc(this))},E.getColorSchemeSelector=bx(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...Ds,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(x){return dr({sx:x,theme:this})},E.toRuntimeSource=lm,E}function Qd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Nc({...n===!0?{}:n.palette,mode:t})})}function Wx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=r==null?void 0:r[l],u={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return jl(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=jl({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Qd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Qd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),Hx({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const _c=Wx(),la="$$material";function ca(){const e=Ht.useTheme(_c);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[la]||e}function dm(e){return b.jsx(Ht.GlobalStyles,{...e,defaultTheme:_c,themeId:la})}process.env.NODE_ENV!=="production"&&(dm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function fm(e,t=""){return e.displayName||e.name||t}function Jd(e,t,n){const o=fm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Ux(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case jo.ForwardRef:return Jd(e,e.render,"ForwardRef");case jo.Memo:return Jd(e,e.type,"memo");default:return}}}function Yx(e){const{variants:t,...n}=e,o={variants:t,style:Io(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Io(r.style))}),o}const qx=am();function Kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Oo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Gx(e){return e?(t,n)=>n[e]:null}function Zx(e,t,n){e.theme=Jx(e.theme)?n:e.theme[t]||e.theme}function bi(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>bi(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?Oo(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?Oo(Io(a),n):a}return pm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Oo(Io(o.style),n):o.style:n?Oo(Io(o),n):o}function pm(e,t,n=[],o=void 0){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?Oo(Io(l.style(r)),o):l.style(r))):n.push(o?Oo(Io(l.style),o):l.style)}return n}function Kx(e={}){const{themeId:t,defaultTheme:n=qx,rootShouldForwardProp:o=Kn,slotShouldForwardProp:r=Kn}=e;function i(l){Zx(l,t,n)}return(l,c={})=>{Jv(l,E=>E.filter(M=>M!==dr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Gx(hm(d)),...m}=c,g=u&&u.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,v=p||!1;let S=Kn;d==="Root"||d==="root"?S=o:d?S=r:eC(l)&&(S=void 0);const w=Qv(l,{shouldForwardProp:S,label:Qx(u,d),...m}),C=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(I){return bi(I,E,I.theme.modularCssLayers?g:void 0)};if(Cn(E)){const M=Yx(E);return function(D){return M.variants?bi(D,M,D.theme.modularCssLayers?g:void 0):D.theme.modularCssLayers?Oo(M.style,g):M.style}}return E},T=(...E)=>{const M=[],I=E.map(C),D=[];if(M.push(i),u&&h&&D.push(function(L){var _,$;const N=($=(_=L.theme.components)==null?void 0:_[u])==null?void 0:$.styleOverrides;if(!N)return null;const k={};for(const F in N)k[F]=bi(L,N[F],L.theme.modularCssLayers?"theme":void 0);return h(L,k)}),u&&!y&&D.push(function(L){var k,_;const A=L.theme,N=(_=(k=A==null?void 0:A.components)==null?void 0:k[u])==null?void 0:_.variants;return N?pm(L,N,[],L.theme.modularCssLayers?"theme":void 0):null}),v||D.push(dr),Array.isArray(I[0])){const x=I.shift(),L=new Array(M.length).fill(""),A=new Array(D.length).fill("");let N;N=[...L,...x,...A],N.raw=[...L,...x.raw,...A],M.unshift(N)}const V=[...M,...I,...D],j=w(...V);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=Xx(u,d,l)),j};return w.withConfig&&(T.withConfig=w.withConfig),T}}function Xx(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${Ux(n)})`}function Qx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${hm(t||"Root")}`),n}function Jx(e){for(const t in e)return!1;return!0}function eC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function mm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pn=e=>mm(e)&&e!=="classes",ve=Kx({themeId:la,defaultTheme:_c,rootShouldForwardProp:pn});function tC(e){return function(n){return b.jsx(dm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function nC(){return Iv}const Ze=Ht.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function $e(e){return ix(e)}function Se(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function oC(e){return Te("MuiSvgIcon",e)}Se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rC=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,oC,o)},sC=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Ze(({theme:e})=>{var t,n,o,r,i,a,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,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(([,g])=>g&&g.main).map(([g])=>{var y,v;return{props:{color:g},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ki=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=o,m=P.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:m},y={};d||(y.viewBox=p);const v=rC(g);return b.jsxs(sC,{as:l,className:be(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...h,...m&&r.props,ownerState:g,children:[m?r.props.children:r,f?b.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ki.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});ki.muiName="SvgIcon";function yt(e,t){function n(o,r){return b.jsx(ki,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ki.muiName,P.memo(P.forwardRef(n))}function gm(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function os(e,t){var n,o,r;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function Mt(e){return e&&e.ownerDocument||document}function _n(e){return Mt(e).defaultView||window}function ef(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function iC(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Jn(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=P.useRef(t!==void 0),[a,l]=P.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){P.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
96
+ `))},[r,o,t]);const{current:d}=P.useRef(n);P.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
97
+ `))},[JSON.stringify(n)])}const u=P.useCallback(d=>{i||l(d)},[]);return[c,u]}function me(e){const t=P.useRef(e);return Pt(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function Le(...e){const t=P.useRef(void 0),n=P.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return P.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function aC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function lC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{aC(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=be(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,r=n(e,o),i=be(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const cC=yt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),uC=yt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),dC=yt(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"}),"Close"),fC=(e,t)=>()=>{if(!t)return;const n={};e.forEach(o=>{o.items.forEach(r=>{r.value!==void 0&&r.value!==null&&r.value!==""&&(n[r.id]=r.value)})}),console.log("Filtros ativos:",n),t(n)},pC=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},hC=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},mC=(e,t,n,o)=>r=>{const i=n.map(a=>a.id===e?{...a,items:a.items.map(l=>l.id===t?{...l,value:r}:l)}:a);o(i)},gC="_modal_1ktm2_1",yC="_content_1ktm2_67",bC="_contentWrapper_1ktm2_74",vC="_closeButton_1ktm2_81",xC="_header_1ktm2_93",CC="_title_1ktm2_100",wC="_description_1ktm2_109",SC="_filtersContent_1ktm2_118",TC="_filterGroup_1ktm2_128",PC="_expandableHeader_1ktm2_135",EC="_expandableLabel_1ktm2_145",MC="_chevronIcon_1ktm2_153",OC="_chevron_1ktm2_153",kC="_filterItems_1ktm2_166",DC="_filterItem_1ktm2_166",RC="_filterItemSize1_1ktm2_178",IC="_filterItemSize2_1ktm2_182",AC="_filterItemSize3_1ktm2_186",NC="_filterItemSize4_1ktm2_190",_C="_filterItemSize5_1ktm2_194",jC="_filterItemSize6_1ktm2_198",LC="_filterInput_1ktm2_202",VC="_inputLabel_1ktm2_206",$C="_select_1ktm2_210",FC="_placeholder_1ktm2_227",BC="_helperText_1ktm2_231",zC="_footer_1ktm2_238",HC="_clearButton_1ktm2_245",WC="_applyButton_1ktm2_267",Ge={modal:gC,content:yC,contentWrapper:bC,closeButton:vC,header:xC,title:CC,description:wC,filtersContent:SC,filterGroup:TC,expandableHeader:PC,expandableLabel:EC,chevronIcon:MC,chevron:OC,filterItems:kC,filterItem:DC,filterItemSize1:RC,filterItemSize2:IC,filterItemSize3:AC,filterItemSize4:NC,filterItemSize5:_C,filterItemSize6:jC,filterInput:LC,inputLabel:VC,select:$C,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:FC,helperText:BC,footer:zC,clearButton:HC,applyButton:WC},ym=({open:e,onClose:t,title:n="Filtros",description:o="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",children:r,formId:i,groups:a,onApply:l,onClear:c,onOpened:u,clearButtonText:d="Limpar filtros",applyButtonText:f="Filtrar",className:p,...h})=>{const m=q.useTheme(),g=m.palette.mode==="dark",y=q.useMediaQuery(m.breakpoints.down("md")),[v,S]=O.useState(a??[]),w=!!r;O.useEffect(()=>{S(a??[])},[a]);const C=fC(v,l),T=pC(v,c,S),E=(M,I)=>{var x;const D=mC(I,M.id,v,S),V=M.size||6,j=Ge[`filterItemSize${V}`];if(M.render)return b.jsx(q.Box,{className:`${Ge.filterItem} ${j}`,children:M.render(M,D)},M.id);switch(M.type){case"select":case"multi-select":const L=M.type==="multi-select";let A;L?M.value!==void 0&&M.value!==null?A=Array.isArray(M.value)?M.value:[M.value]:A=[]:A=M.value!==void 0&&M.value!==null?M.value:"";const N=L?Array.isArray(A)&&A.length>0:A!==""&&A!==null&&A!==void 0;return b.jsx(q.Box,{className:`${Ge.filterItem} ${j}`,children:b.jsxs(q.FormControl,{fullWidth:!0,className:Ge.filterInput,children:[b.jsx(q.InputLabel,{id:`${M.id}-label`,className:Ge.inputLabel,shrink:N,children:M.label}),b.jsx(q.Select,{labelId:`${M.id}-label`,value:A,onChange:k=>D(k.target.value),multiple:L,label:M.label,className:Ge.select,displayEmpty:!0,renderValue:k=>{var $;if(L){const F=Array.isArray(k)?k:[];return F.length===0?b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label}):F.map(R=>{var U,Y;return((Y=(U=M.options)==null?void 0:U.find(K=>K.value===R))==null?void 0:Y.label)||R}).join(", ")}if(!k||k==="")return b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label});const _=($=M.options)==null?void 0:$.find(F=>F.value===k);return(_==null?void 0:_.label)||k},notched:N,children:(x=M.options)==null?void 0:x.map(k=>b.jsx(q.MenuItem,{value:k.value,children:k.label},k.value))}),M.helperText&&b.jsx(q.Box,{className:Ge.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(q.Box,{className:`${Ge.filterItem} ${j}`,children:b.jsx(q.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:k=>D(k.target.value),className:Ge.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ge.helperText}})},M.id);default:return null}};return b.jsx(q.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ge.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(q.DialogContent,{className:Ge.content,children:b.jsxs(q.Box,{className:Ge.contentWrapper,children:[b.jsx(q.IconButton,{className:Ge.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(dC,{})}),b.jsxs(q.Box,{className:Ge.header,children:[b.jsx(q.Box,{className:Ge.title,children:n}),b.jsx(q.Box,{className:Ge.description,children:o})]}),b.jsx(q.Box,{className:Ge.filtersContent,children:w?r:v.map(M=>{const I=hC(M.id,v,S),D=M.expanded!==!1;return b.jsxs(q.Box,{className:Ge.filterGroup,children:[b.jsxs(q.Box,{className:Ge.expandableHeader,onClick:I,children:[b.jsx(q.Box,{className:Ge.expandableLabel,children:M.label}),b.jsx(q.Box,{className:Ge.chevronIcon,children:D?b.jsx(uC,{className:Ge.chevron}):b.jsx(cC,{className:Ge.chevron})})]}),D&&b.jsx(q.Box,{className:Ge.filterItems,children:M.items.map(V=>E(V,M.id))})]},M.id)})}),b.jsxs(q.Box,{className:Ge.footer,children:[b.jsx(q.Button,{onClick:T,className:Ge.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(q.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:C,className:Ge.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};ym.displayName="FilterModal";const UC="_container_sfavn_1",YC="_card_sfavn_7",qC="_icon_sfavn_19",GC="_text_sfavn_33",ei={container:UC,card:YC,icon:qC,text:GC},ZC=({items:e,className:t,sx:n})=>{const o=q.useTheme(),r={backgroundColor:o.palette.background.paper,borderColor:o.palette.divider},i={color:o.palette.text.primary,"& svg":{fill:o.palette.text.primary}},a={color:o.palette.text.secondary,fontFamily:o.typography.fontFamily,fontSize:o.typography.body2.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight};return b.jsx(q.Box,{className:`${ei.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(q.Box,{className:ei.card,sx:r,children:[l.icon&&b.jsx(q.Box,{className:ei.icon,sx:i,children:l.icon}),b.jsxs(q.Typography,{component:"span",className:ei.text,sx:a,children:[l.count," ",l.label]})]},c))})},jc=O.createContext({});function Lc(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const bm=typeof window<"u",vm=bm?O.useLayoutEffect:O.useEffect,ua=O.createContext(null);function Vc(e,t){e.indexOf(t)===-1&&e.push(t)}function $c(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const En=(e,t,n)=>n>t?t:n<e?e:n;function Vl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let wr=()=>{},jn=()=>{};var Bh;typeof process<"u"&&((Bh=process.env)==null?void 0:Bh.NODE_ENV)!=="production"&&(wr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Vl(t,n))},jn=(e,t,n)=>{if(!e)throw new Error(Vl(t,n))});const Ln={},xm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Cm(e){return typeof e=="object"&&e!==null}const wm=e=>/^0[^.\s]+$/u.test(e);function Fc(e){let t;return()=>(t===void 0&&(t=e()),t)}const en=e=>e,KC=(e,t)=>n=>t(e(n)),Rs=(...e)=>e.reduce(KC),ms=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Bc{constructor(){this.subscriptions=[]}add(t){return Vc(this.subscriptions,t),()=>$c(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let i=0;i<r;i++){const a=this.subscriptions[i];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const wn=e=>e*1e3,Jt=e=>e/1e3;function Sm(e,t){return t?e*(1e3/t):0}const tf=new Set;function zc(e,t,n){e||tf.has(t)||(console.warn(Vl(t,n)),tf.add(t))}const Tm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XC=1e-7,QC=12;function JC(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Tm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>XC&&++l<QC);return a}function Is(e,t,n,o){if(e===t&&n===o)return en;const r=i=>JC(i,0,1,e,n);return i=>i===0||i===1?i:Tm(r(i),t,o)}const Pm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Em=e=>t=>1-e(1-t),Mm=Is(.33,1.53,.69,.99),Hc=Em(Mm),Om=Pm(Hc),km=e=>(e*=2)<1?.5*Hc(e):.5*(2-Math.pow(2,-10*(e-1))),Wc=e=>1-Math.sin(Math.acos(e)),Dm=Em(Wc),Rm=Pm(Wc),e2=Is(.42,0,1,1),t2=Is(0,0,.58,1),Im=Is(.42,0,.58,1),n2=e=>Array.isArray(e)&&typeof e[0]!="number",Am=e=>Array.isArray(e)&&typeof e[0]=="number",nf={linear:en,easeIn:e2,easeInOut:Im,easeOut:t2,circIn:Wc,circInOut:Rm,circOut:Dm,backIn:Hc,backInOut:Om,backOut:Mm,anticipate:km},o2=e=>typeof e=="string",of=e=>{if(Am(e)){jn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Is(t,n,o,r)}else if(o2(e))return jn(nf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),nf[e];return e},ti=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function r2(e,t){let n=new Set,o=new Set,r=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){a.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,f=!1,p=!1)=>{const m=p&&r?n:o;return f&&a.add(d),m.has(d)||m.add(d),d},cancel:d=>{o.delete(d),a.delete(d)},process:d=>{if(l=d,r){i=!0;return}r=!0,[n,o]=[o,n],n.forEach(c),n.clear(),r=!1,i&&(i=!1,u.process(d))}};return u}const s2=40;function Nm(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=ti.reduce((w,C)=>(w[C]=r2(i),w),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const w=Ln.useManualTiming?r.timestamp:performance.now();n=!1,Ln.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(w-r.timestamp,s2),1)),r.timestamp=w,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),p.process(r),h.process(r),m.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},y=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:ti.reduce((w,C)=>{const T=a[C];return w[C]=(E,M=!1,I=!1)=>(n||y(),T.schedule(E,M,I)),w},{}),cancel:w=>{for(let C=0;C<ti.length;C++)a[ti[C]].cancel(w)},state:r,steps:a}}const{schedule:et,cancel:eo,state:kt,steps:Qa}=Nm(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0);let vi;function i2(){vi=void 0}const Lt={now:()=>(vi===void 0&&Lt.set(kt.isProcessing||Ln.useManualTiming?kt.timestamp:performance.now()),vi),set:e=>{vi=e,queueMicrotask(i2)}},_m=e=>t=>typeof t=="string"&&t.startsWith(e),jm=_m("--"),a2=_m("var(--"),Uc=e=>a2(e)?l2.test(e.split("/*")[0].trim()):!1,l2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function rf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Sr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gs={...Sr,transform:e=>En(0,1,e)},ni={...Sr,default:1},rs=e=>Math.round(e*1e5)/1e5,Yc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function c2(e){return e==null}const u2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qc=(e,t)=>n=>!!(typeof n=="string"&&u2.test(n)&&n.startsWith(e)||t&&!c2(n)&&Object.prototype.hasOwnProperty.call(n,t)),Lm=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(Yc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},d2=e=>En(0,255,e),Ja={...Sr,transform:e=>Math.round(d2(e))},ko={test:qc("rgb","red"),parse:Lm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ja.transform(e)+", "+Ja.transform(t)+", "+Ja.transform(n)+", "+rs(gs.transform(o))+")"};function f2(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const $l={test:qc("#"),parse:f2,transform:ko.transform},As=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zn=As("deg"),Sn=As("%"),xe=As("px"),p2=As("vh"),h2=As("vw"),sf={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(e*100)},Jo={test:qc("hsl","hue"),parse:Lm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Sn.transform(rs(t))+", "+Sn.transform(rs(n))+", "+rs(gs.transform(o))+")"},xt={test:e=>ko.test(e)||$l.test(e)||Jo.test(e),parse:e=>ko.test(e)?ko.parse(e):Jo.test(e)?Jo.parse(e):$l.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ko.transform(e):Jo.transform(e),getAnimatableNone:e=>{const t=xt.parse(e);return t.alpha=0,xt.transform(t)}},m2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yc))==null?void 0:t.length)||0)+(((n=e.match(m2))==null?void 0:n.length)||0)>0}const Vm="number",$m="color",y2="var",b2="var(",af="${}",v2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ys(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(v2,c=>(xt.test(c)?(o.color.push(i),r.push($m),n.push(xt.parse(c))):c.startsWith(b2)?(o.var.push(i),r.push(y2),n.push(c)):(o.number.push(i),r.push(Vm),n.push(parseFloat(c))),++i,af)).split(af);return{values:n,split:l,indexes:o,types:r}}function Fm(e){return ys(e).values}function Bm(e){const{split:t,types:n}=ys(e),o=t.length;return r=>{let i="";for(let a=0;a<o;a++)if(i+=t[a],r[a]!==void 0){const l=n[a];l===Vm?i+=rs(r[a]):l===$m?i+=xt.transform(r[a]):i+=r[a]}return i}}const x2=e=>typeof e=="number"?0:xt.test(e)?xt.getAnimatableNone(e):e;function C2(e){const t=Fm(e);return Bm(e)(t.map(x2))}const to={test:g2,parse:Fm,createTransformer:Bm,getAnimatableNone:C2};function el(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function w2({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,i=0,a=0;if(!t)r=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=el(c,l,e+1/3),i=el(c,l,e),a=el(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Di(e,t){return n=>n>0?t:e}const ct=(e,t,n)=>e+(t-e)*n,tl=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},S2=[$l,ko,Jo],T2=e=>S2.find(t=>t.test(e));function lf(e){const t=T2(e);if(wr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Jo&&(n=w2(n)),n}const cf=(e,t)=>{const n=lf(e),o=lf(t);if(!n||!o)return Di(e,t);const r={...n};return i=>(r.red=tl(n.red,o.red,i),r.green=tl(n.green,o.green,i),r.blue=tl(n.blue,o.blue,i),r.alpha=ct(n.alpha,o.alpha,i),ko.transform(r))},Fl=new Set(["none","hidden"]);function P2(e,t){return Fl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function E2(e,t){return n=>ct(e,t,n)}function Gc(e){return typeof e=="number"?E2:typeof e=="string"?Uc(e)?Di:xt.test(e)?cf:k2:Array.isArray(e)?zm:typeof e=="object"?xt.test(e)?cf:M2:Di}function zm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Gc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function M2(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Gc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function O2(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],a=e.indexes[i][o[i]],l=e.values[a]??0;n[r]=l,o[i]++}return n}const k2=(e,t)=>{const n=to.createTransformer(t),o=ys(e),r=ys(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Fl.has(e)&&!r.values.length||Fl.has(t)&&!o.values.length?P2(e,t):Rs(zm(O2(o,r),r.values),n):(wr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Di(e,t))};function Hm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Gc(e)(e,t)}const D2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>et.update(t,n),stop:()=>eo(t),now:()=>kt.isProcessing?kt.timestamp:Lt.now()}},Wm=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Ri=2e4;function Zc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Ri;)t+=n,o=e.next(t);return t>=Ri?1/0:t}function R2(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(Zc(o),Ri);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Jt(r)}}const I2=5;function Um(e,t,n){const o=Math.max(t-I2,0);return Sm(n-e(o),t-o)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nl=.001;function A2({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:o=lt.mass}){let r,i;wr(e<=wn(lt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=En(lt.minDamping,lt.maxDamping,a),e=En(lt.minDuration,lt.maxDuration,Jt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Bl(u,a),m=Math.exp(-f);return nl-p/h*m},i=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-f),g=Bl(Math.pow(u,2),a);return(-r(u)+nl>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-nl+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=_2(r,i,l);if(e=wn(e),isNaN(c))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const N2=12;function _2(e,t,n){let o=n;for(let r=1;r<N2;r++)o=o-e(o)/t(o);return o}function Bl(e,t){return e*Math.sqrt(1-t*t)}const j2=["duration","bounce"],L2=["stiffness","damping","mass"];function uf(e,t){return t.some(n=>e[n]!==void 0)}function V2(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!uf(e,L2)&&uf(e,j2))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*En(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:lt.mass,stiffness:r,damping:i}}else{const n=A2(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Ii(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=V2({...n,velocity:-Jt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Jt(Math.sqrt(c/d)),S=Math.abs(y)<5;o||(o=S?lt.restSpeed.granular:lt.restSpeed.default),r||(r=S?lt.restDelta.granular:lt.restDelta.default);let w;if(g<1){const T=Bl(v,g);w=E=>{const M=Math.exp(-g*v*E);return a-M*((m+g*v*y)/T*Math.sin(T*E)+y*Math.cos(T*E))}}else if(g===1)w=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);w=E=>{const M=Math.exp(-g*v*E),I=Math.min(T*E,300);return a-M*((m+g*v*y)*Math.sinh(I)+T*y*Math.cosh(I))/T}}const C={calculatedDuration:h&&f||null,next:T=>{const E=w(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?wn(m):Um(w,T,E));const I=Math.abs(M)<=o,D=Math.abs(a-E)<=r;l.done=I&&D}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(Zc(C),Ri),E=Wm(M=>C.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return C}Ii.applyToOptions=e=>{const t=R2(e,100,Ii);return e.ease=t.ease,e.duration=wn(t.duration),e.type="keyframes",e};function zl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=I=>l!==void 0&&I<l||c!==void 0&&I>c,m=I=>l===void 0?c:c===void 0||Math.abs(l-I)<Math.abs(c-I)?l:c;let g=n*t;const y=f+g,v=a===void 0?y:a(y);v!==y&&(g=v-f);const S=I=>-g*Math.exp(-I/o),w=I=>v+S(I),C=I=>{const D=S(I),V=w(I);p.done=Math.abs(D)<=u,p.value=p.done?v:V};let T,E;const M=I=>{h(p.value)&&(T=I,E=Ii({keyframes:[p.value,m(p.value)],velocity:Um(w,I,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:I=>{let D=!1;return!E&&T===void 0&&(D=!0,C(I),M(I)),T!==void 0&&I>=T?E.next(I-T):(!D&&C(I),p)}}}function $2(e,t,n){const o=[],r=n||Ln.mix||Hm,i=e.length-1;for(let a=0;a<i;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||en:t;l=Rs(c,l)}o.push(l)}return o}function F2(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(jn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=$2(t,o,r),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=ms(e[f],e[f+1],d);return l[f](p)};return n?d=>u(En(e[0],e[i-1],d)):u}function B2(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=ms(0,t,o);e.push(ct(n,1,r))}}function z2(e){const t=[0];return B2(t,e.length-1),t}function H2(e,t){return e.map(n=>n*t)}function W2(e,t){return e.map(()=>t||Im).splice(0,e.length-1)}function er({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=n2(o)?o.map(of):of(o),i={done:!1,value:t[0]},a=H2(n&&n.length===t.length?n:z2(t),e),l=F2(a,t,{ease:Array.isArray(r)?r:W2(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const U2=e=>e!==null;function Kc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(U2),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Y2={decay:zl,inertia:zl,tween:er,keyframes:er,spring:Ii};function Ym(e){typeof e.type=="string"&&(e.type=Y2[e.type])}class Xc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const q2=e=>e/100;class Qc extends Xc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(o=this.options).onStop)==null||r.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ym(t);const{type:n=er,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||er;process.env.NODE_ENV!=="production"&&c!==er&&jn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==er&&typeof l[0]!="number"&&(this.mixKeyframes=Rs(q2,Hm(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Zc(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let w=this.currentTime,C=o;if(f){const I=Math.min(this.currentTime,r)/l;let D=Math.floor(I),V=I%1;!V&&I>=1&&(V=1),V===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(C=a)),w=En(0,1,V)*l}const T=S?{done:!1,value:d[0]}:C.next(w);i&&(T.value=i(T.value));let{done:E}=T;!S&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&m!==zl&&(T.value=Kc(d,this.options,y,this.speed)),g&&g(T.value),M&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(this.currentTime)}set time(t){var n;t=wn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=D2,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(r=this.options).onPlay)==null||i.call(r);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function G2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Do=e=>e*180/Math.PI,Hl=e=>{const t=Do(Math.atan2(e[1],e[0]));return Wl(t)},Z2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hl,rotateZ:Hl,skewX:e=>Do(Math.atan(e[1])),skewY:e=>Do(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wl=e=>(e=e%360,e<0&&(e+=360),e),df=Hl,ff=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),K2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ff,scaleY:pf,scale:e=>(ff(e)+pf(e))/2,rotateX:e=>Wl(Do(Math.atan2(e[6],e[5]))),rotateY:e=>Wl(Do(Math.atan2(-e[2],e[0]))),rotateZ:df,rotate:df,skewX:e=>Do(Math.atan(e[4])),skewY:e=>Do(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ul(e){return e.includes("scale")?1:0}function Yl(e,t){if(!e||e==="none")return Ul(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=K2,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Z2,r=l}if(!r)return Ul(t);const i=o[t],a=r[1].split(",").map(Q2);return typeof i=="function"?i(a):a[i]}const X2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Yl(n,t)};function Q2(e){return parseFloat(e.trim())}const Tr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pr=new Set(Tr),hf=e=>e===Sr||e===xe,J2=new Set(["x","y","z"]),ew=Tr.filter(e=>!J2.has(e));function tw(e){const t=[];return ew.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Gn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yl(t,"x"),y:(e,{transform:t})=>Yl(t,"y")};Gn.translateX=Gn.x;Gn.translateY=Gn.y;const Ao=new Set;let ql=!1,Gl=!1,Zl=!1;function qm(){if(Gl){const e=Array.from(Ao).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=tw(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([i,a])=>{var l;(l=o.getValue(i))==null||l.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Gl=!1,ql=!1,Ao.forEach(e=>e.complete(Zl)),Ao.clear()}function Gm(){Ao.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gl=!0)})}function nw(){Zl=!0,Gm(),qm(),Zl=!1}class Jc{constructor(t,n,o,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ao.add(this),ql||(ql=!0,et.read(Gm),et.resolveKeyframes(qm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const i=r==null?void 0:r.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const l=o.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&i===void 0&&r.set(t[0])}G2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ao.delete(this)}cancel(){this.state==="scheduled"&&(Ao.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ow=e=>e.startsWith("--");function rw(e,t,n){ow(t)?e.style.setProperty(t,n):e.style[t]=n}const sw=Fc(()=>window.ScrollTimeline!==void 0),iw={};function aw(e,t){const n=Fc(e);return()=>iw[t]??n()}const Zm=aw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gr=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,mf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gr([0,.65,.55,1]),circOut:Gr([.55,0,1,.45]),backIn:Gr([.31,.01,.66,-.59]),backOut:Gr([.33,1.53,.69,.99])};function Km(e,t){if(e)return typeof e=="function"?Zm()?Wm(e,t):"ease-out":Am(e)?Gr(e):Array.isArray(e)?e.map(n=>Km(n,t)||mf.easeOut):mf[e]}function lw(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=Km(l,r);Array.isArray(f)&&(d.easing=f);const p={delay:o,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function Xm(e){return typeof e=="function"&&"applyToOptions"in e}function cw({type:e,...t}){return Xm(e)&&Zm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uw extends Xc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,jn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=cw(t);this.animation=lw(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Kc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):rw(n,o,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,o,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(o=this.animation).commitStyles)==null||r.call(o))}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return Jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=wn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&sw()?(this.animation.timeline=t,en):n(this)}}const Qm={anticipate:km,backInOut:Om,circInOut:Rm};function dw(e){return e in Qm}function fw(e){typeof e.ease=="string"&&dw(e.ease)&&(e.ease=Qm[e.ease])}const ol=10;class pw extends uw{constructor(t){fw(t),Ym(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Qc({...a,autoplay:!1}),c=Math.max(ol,Lt.now()-this.startTime),u=En(0,ol,c-ol);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const gf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function hw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mw(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=gf(r,t),l=gf(i,t);return wr(a===l,`You are trying to animate ${t} from "${r}" to "${i}". "${a?i:r}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:hw(e)||(n==="spring"||Xm(n))&&o}function Kl(e){e.duration=0,e.type="keyframes"}const gw=new Set(["opacity","clipPath","filter","transform"]),yw=Fc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bw(e){var d;const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return yw()&&n&&gw.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const vw=40;class xw extends Xc{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){var m;super(),this.stop=()=>{var g,y;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Lt.now();const p={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...f},h=(d==null?void 0:d.KeyframeResolver)||Jc;this.keyframeResolver=new h(l,(g,y,v)=>this.onKeyframesResolved(g,y,p,!v),c,u,d),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var y,v;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=Lt.now(),mw(t,i,a,l)||((Ln.instantAnimations||!c)&&(d==null||d(Kc(t,o,n))),t[0]=t[t.length-1],Kl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>vw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&bw(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new pw({...p,element:m}):new Qc(p);g.finished.then(()=>{this.notifyFinished()}).catch(en),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),nw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Jm(e,t,n,o=0,r=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*o;return typeof n=="function"?n(i,a):r===1?i*o:l-i*o}const Cw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ww(e){const t=Cw.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const Sw=4;function eg(e,t,n=1){jn(n<=Sw,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=ww(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return xm(a)?parseFloat(a):a}return Uc(r)?eg(r,t,n+1):r}const Tw={type:"spring",stiffness:500,damping:25,restSpeed:10},Pw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ew={type:"keyframes",duration:.8},Mw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ow=(e,{keyframes:t})=>t.length>2?Ew:Pr.has(e)?e.startsWith("scale")?Pw(t[1]):Tw:Mw,kw=e=>e!==null;function Dw(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(kw),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function eu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function Rw({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const tu=(e,t,n,o={},r,i)=>a=>{const l=eu(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-wn(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};Rw(l)||Object.assign(d,Ow(e,d)),d.duration&&(d.duration=wn(d.duration)),d.repeatDelay&&(d.repeatDelay=wn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Kl(d),d.delay===0&&(f=!0)),(Ln.instantAnimations||Ln.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,Kl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=Dw(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Qc(d):new xw(d)};function yf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function nu(e,t,n,o){if(typeof t=="function"){const[r,i]=yf(o);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=yf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function ar(e,t,n){const o=e.getProps();return nu(o,t,n!==void 0?n:o.custom,e)}const tg=new Set(["width","height","top","left","right","bottom",...Tr]),bf=30,Iw=e=>!isNaN(parseFloat(e));class Aw{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Lt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&zc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bc);const o=this.events[t].add(n);return t==="change"?()=>{o(),et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bf);return Sm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fr(e,t){return new Aw(e,t)}const Xl=e=>Array.isArray(e);function Nw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fr(n))}function _w(e){return Xl(e)?e[e.length-1]||0:e}function jw(e,t){const n=ar(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=_w(i[a]);Nw(e,a,l)}}const At=e=>!!(e&&e.getVelocity);function Lw(e){return!!(At(e)&&e.add)}function Ql(e,t){const n=e.getValue("willChange");if(Lw(n))return n.add(t);if(!n&&Ln.WillChange){const o=new Ln.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function ou(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Vw="framerAppearId",ng="data-"+ou(Vw);function og(e){return e.props[ng]}function $w({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function rg(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=i==null?void 0:i.reduceMotion;o&&(i=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const p=e.getValue(f,e.latestValues[f]??null),h=l[f];if(h===void 0||d&&$w(d,f))continue;const m={delay:n,...eu(i||{},f)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const w=og(e);if(w){const C=window.MotionHandoffAnimation(w,f,et);C!==null&&(m.startTime=C,y=!0)}}Ql(e,f);const v=c??e.shouldReduceMotion;p.start(tu(f,p,h,v&&tg.has(f)?{type:!1}:m,e,y));const S=p.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&jw(e,a)})}),u}function Jl(e,t,n={}){var c;const o=ar(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(rg(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return Fw(e,t,u,d,f,p,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,d]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function Fw(e,t,n=0,o=0,r=0,i=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Jl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+Jm(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Bw(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Jl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Jl(e,t,n);else{const r=typeof t=="function"?ar(e,t,n.custom):t;o=Promise.all(rg(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const zw={test:e=>e==="auto",parse:e=>e},sg=e=>t=>t.test(e),ig=[Sr,xe,Sn,zn,h2,p2,zw],vf=e=>ig.find(sg(e));function Hw(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||wm(e):!0}const Ww=new Set(["brightness","contrast","saturate","opacity"]);function Uw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Yc)||[];if(!o)return e;const r=n.replace(o,"");let i=Ww.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const Yw=/\b([a-z-]*)\(.*?\)/gu,ec={...to,getAnimatableNone:e=>{const t=e.match(Yw);return t?t.map(Uw).join(" "):e}},xf={...Sr,transform:Math.round},qw={rotate:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scale:ni,scaleX:ni,scaleY:ni,scaleZ:ni,skew:zn,skewX:zn,skewY:zn,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:gs,originX:sf,originY:sf,originZ:xe},ru={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...qw,zIndex:xf,fillOpacity:gs,strokeOpacity:gs,numOctaves:xf},Gw={...ru,color:xt,backgroundColor:xt,outlineColor:xt,fill:xt,stroke:xt,borderColor:xt,borderTopColor:xt,borderRightColor:xt,borderBottomColor:xt,borderLeftColor:xt,filter:ec,WebkitFilter:ec},ag=e=>Gw[e];function lg(e,t){let n=ag(e);return n!==ec&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zw=new Set(["auto","none","0"]);function Kw(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!Zw.has(i)&&ys(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=lg(n,r)}class Xw extends Jc{constructor(t,n,o,r,i){super(t,n,o,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Uc(f))){const p=eg(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!tg.has(o)||t.length!==2)return;const[r,i]=t,a=vf(r),l=vf(i),c=rf(r),u=rf(i);if(c!==u&&Gn[o]){this.needsMeasurement=!0;return}if(a!==l)if(hf(a)&&hf(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Gn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||Hw(t[r]))&&o.push(r);o.length&&Kw(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gn[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=Gn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Qw(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=(n==null?void 0:n[e])??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}const cg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function tc(e){return Cm(e)&&"offsetHeight"in e}const{schedule:su}=Nm(queueMicrotask,!1),dn={x:!1,y:!1};function ug(){return dn.x||dn.y}function Jw(e){return e==="x"||e==="y"?dn[e]?null:(dn[e]=!0,()=>{dn[e]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function dg(e,t){const n=Qw(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Cf(e){return!(e.pointerType==="touch"||ug())}function eS(e,t,n={}){const[o,r,i]=dg(e,n),a=l=>{if(!Cf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{Cf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const fg=(e,t)=>t?e===t?!0:fg(e,t.parentElement):!1,iu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pg(e){return tS.has(e.tagName)||e.isContentEditable===!0}const xi=new WeakSet;function wf(e){return t=>{t.key==="Enter"&&e(t)}}function rl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nS=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=wf(()=>{if(xi.has(n))return;rl(n,"down");const r=wf(()=>{rl(n,"up")}),i=()=>rl(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Sf(e){return iu(e)&&!ug()}function oS(e,t,n={}){const[o,r,i]=dg(e,n),a=l=>{const c=l.currentTarget;if(!Sf(l))return;xi.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),xi.has(c)&&xi.delete(c),Sf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||fg(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",p,r)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),tc(l)&&(l.addEventListener("focus",u=>nS(u,r)),!pg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function hg(e){return Cm(e)&&"ownerSVGElement"in e}function rS(e){return hg(e)&&e.tagName==="svg"}const sS=[...ig,xt,to],iS=e=>sS.find(sg(e)),Tf=()=>({translate:0,scale:1,origin:0,originPoint:0}),tr=()=>({x:Tf(),y:Tf()}),Pf=()=>({min:0,max:0}),Tt=()=>({x:Pf(),y:Pf()}),nc={current:null},mg={current:!1},aS=typeof window<"u";function lS(){if(mg.current=!0,!!aS)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nc.current=e.matches;e.addEventListener("change",t),t()}else nc.current=!1}const cS=new WeakMap;function da(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bs(e){return typeof e=="string"||Array.isArray(e)}const au=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],lu=["initial",...au];function fa(e){return da(e.animate)||lu.some(t=>bs(e[t]))}function gg(e){return!!(fa(e)||e.variants)}function uS(e,t,n){for(const o in t){const r=t[o],i=n[o];if(At(r))e.addValue(o,r);else if(At(i))e.addValue(o,fr(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,fr(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Ef=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ai={};function yg(e){Ai=e}function dS(){return Ai}class fS{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Jc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Lt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,et.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=fa(n),this.isVariantNode=gg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const m=p[h];u[h]!==void 0&&At(m)&&m.set(u[h])}}mount(t){var n;this.current=t,cS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(mg.current||lS(),this.shouldReduceMotion=nc.current),process.env.NODE_ENV!=="production"&&zc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Pr.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ai){const n=Ai[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Tt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<Ef.length;o++){const r=Ef[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,a=t[i];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=uS(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=fr(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(xm(o)||wm(o))?o=parseFloat(o):!iS(o)&&to.test(n)&&(o=lg(t,n)),this.setBaseTarget(t,At(o)?o.get():o)),At(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const a=nu(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(o=a[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!At(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){su.render(this.render)}}class bg extends fS{constructor(){super(...arguments),this.KeyframeResolver=Xw}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function pS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hS(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function sl(e){return e===void 0||e===1}function oc({scale:e,scaleX:t,scaleY:n}){return!sl(e)||!sl(t)||!sl(n)}function To(e){return oc(e)||xg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xg(e){return Mf(e.x)||Mf(e.y)}function Mf(e){return e&&e!=="0%"}function Ni(e,t,n){const o=e-n,r=t*o;return n+r}function Of(e,t,n,o,r){return r!==void 0&&(e=Ni(e,r,o)),Ni(e,n,o)+t}function rc(e,t=0,n=1,o,r){e.min=Of(e.min,t,n,o,r),e.max=Of(e.max,t,n,o,r)}function Cg(e,{x:t,y:n}){rc(e.x,t.translate,t.scale,t.originPoint),rc(e.y,n.translate,n.scale,n.originPoint)}const kf=.999999999999,Df=1.0000000000001;function mS(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,a;for(let l=0;l<r;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&or(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Cg(e,a)),o&&To(i.latestValues)&&or(e,i.latestValues))}t.x<Df&&t.x>kf&&(t.x=1),t.y<Df&&t.y>kf&&(t.y=1)}function nr(e,t){e.min=e.min+t,e.max=e.max+t}function Rf(e,t,n,o,r=.5){const i=ct(e.min,e.max,r);rc(e,t,n,i,o)}function or(e,t){Rf(e.x,t.x,t.scaleX,t.scale,t.originX),Rf(e.y,t.y,t.scaleY,t.scale,t.originY)}function wg(e,t){return vg(hS(e.getBoundingClientRect(),t))}function gS(e,t,n){const o=wg(e,n),{scroll:r}=t;return r&&(nr(o.x,r.offset.x),nr(o.y,r.offset.y)),o}const yS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bS=Tr.length;function vS(e,t,n){let o="",r=!0;for(let i=0;i<bS;i++){const a=Tr[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=cg(l,ru[a]);if(!c){r=!1;const d=yS[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function cu(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Pr.has(c)){a=!0;continue}else if(jm(c)){r[c]=u;continue}else{const d=cg(u,ru[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=vS(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${u} ${d}`}}function Sg(e,{style:t,vars:n},o,r){const i=e.style;let a;for(a in t)i[a]=t[a];r==null||r.applyProjectionStyles(i,o);for(a in n)i.setProperty(a,n[a])}function If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=If(e,t.target.x),o=If(e,t.target.y);return`${n}% ${o}%`}},xS={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=to.parse(e);if(r.length>5)return o;const i=to.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=ct(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},sc={borderRadius:{...Nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nr,borderTopRightRadius:Nr,borderBottomLeftRadius:Nr,borderBottomRightRadius:Nr,boxShadow:xS};function Tg(e,{layout:t,layoutId:n}){return Pr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sc[e]||e==="opacity")}function uu(e,t,n){var a;const o=e.style,r=t==null?void 0:t.style,i={};if(!o)return i;for(const l in o)(At(o[l])||r&&At(r[l])||Tg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function CS(e){return window.getComputedStyle(e)}class wS extends bg{constructor(){super(...arguments),this.type="html",this.renderInstance=Sg}readValueFromInstance(t,n){var o;if(Pr.has(n))return(o=this.projection)!=null&&o.isProjecting?Ul(n):X2(t,n);{const r=CS(t),i=(jm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wg(t,n)}build(t,n,o){cu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return uu(t,n,o)}}const SS={offset:"stroke-dashoffset",array:"stroke-dasharray"},TS={offset:"strokeDashoffset",array:"strokeDasharray"};function PS(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?SS:TS;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const ES=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Pg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(cu(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const h of ES)f[h]!==void 0&&(p[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),r!==void 0&&PS(f,r,i,a,!1)}const Eg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Mg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function MS(e,t,n,o){Sg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Eg.has(r)?r:ou(r),t.attrs[r])}function Og(e,t,n){const o=uu(e,t,n);for(const r in e)if(At(e[r])||At(t[r])){const i=Tr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class OS extends bg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Tt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Pr.has(n)){const o=ag(n);return o&&o.default||0}return n=Eg.has(n)?n:ou(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Og(t,n,o)}build(t,n,o){Pg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){MS(t,n,o,r)}mount(t){this.isSVGTag=Mg(t.tagName),super.mount(t)}}const kS=lu.length;function kg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?kg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kS;n++){const o=lu[n],r=e.props[o];(bs(r)||r===!1)&&(t[o]=r)}return t}function Dg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const DS=[...au].reverse(),RS=au.length;function IS(e){return t=>Promise.all(t.map(({animation:n,options:o})=>Bw(e,n,o)))}function AS(e){let t=IS(e),n=Af(),o=!0;const r=c=>(u,d)=>{var p;const f=ar(e,d,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,d=kg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<RS;y++){const v=DS[y],S=n[v],w=u[v]!==void 0?u[v]:d[v],C=bs(w),T=v===c?S.isActive:null;T===!1&&(m=y);let E=w===d[v]&&w!==u[v]&&C;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),S.protectedKeys={...h},!S.isActive&&T===null||!w&&!S.prevProp||da(w)||typeof w=="boolean")continue;const M=NS(S.prevProp,w);let I=M||v===c&&S.isActive&&!E&&C||y>m&&C,D=!1;const V=Array.isArray(w)?w:[w];let j=V.reduce(r(v),{});T===!1&&(j={});const{prevResolvedValues:x={}}=S,L={...x,...j},A=_=>{I=!0,p.has(_)&&(D=!0,p.delete(_)),S.needsAnimating[_]=!0;const $=e.getValue(_);$&&($.liveStyle=!1)};for(const _ in L){const $=j[_],F=x[_];if(h.hasOwnProperty(_))continue;let B=!1;Xl($)&&Xl(F)?B=!Dg($,F):B=$!==F,B?$!=null?A(_):p.add(_):$!==void 0&&p.has(_)?A(_):S.protectedKeys[_]=!0}S.prevProp=w,S.prevResolvedValues=j,S.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(I=!1);const N=E&&M;I&&(!N||D)&&f.push(...V.map(_=>{const $={type:v};if(typeof _=="string"&&o&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,B=ar(F,_);if(F.enteringChildren&&B){const{delayChildren:R}=B.transition||{};$.delay=Jm(F.enteringChildren,e,R)}}return{animation:_,options:$}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=ar(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{const S=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=S??null}),f.push({animation:y})}let g=!!f.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Af()}}}function NS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Dg(t,e):!1}function po(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Af(){return{animate:po(!0),whileInView:po(),whileHover:po(),whileTap:po(),whileDrag:po(),whileFocus:po(),exit:po()}}function Nf(e,t){e.min=t.min,e.max=t.max}function ln(e,t){Nf(e.x,t.x),Nf(e.y,t.y)}function _f(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Rg=1e-4,_S=1-Rg,jS=1+Rg,Ig=.01,LS=0-Ig,VS=0+Ig;function Vt(e){return e.max-e.min}function $S(e,t,n){return Math.abs(e-t)<=n}function jf(e,t,n,o=.5){e.origin=o,e.originPoint=ct(t.min,t.max,e.origin),e.scale=Vt(n)/Vt(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_S&&e.scale<=jS||isNaN(e.scale))&&(e.scale=1),(e.translate>=LS&&e.translate<=VS||isNaN(e.translate))&&(e.translate=0)}function ss(e,t,n,o){jf(e.x,t.x,n.x,o?o.originX:void 0),jf(e.y,t.y,n.y,o?o.originY:void 0)}function Lf(e,t,n){e.min=n.min+t.min,e.max=e.min+Vt(t)}function FS(e,t,n){Lf(e.x,t.x,n.x),Lf(e.y,t.y,n.y)}function Vf(e,t,n){e.min=t.min-n.min,e.max=e.min+Vt(t)}function _i(e,t,n){Vf(e.x,t.x,n.x),Vf(e.y,t.y,n.y)}function $f(e,t,n,o,r){return e-=t,e=Ni(e,1/n,o),r!==void 0&&(e=Ni(e,1/r,o)),e}function BS(e,t=0,n=1,o=.5,r,i=e,a=e){if(Sn.test(t)&&(t=parseFloat(t),t=ct(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ct(i.min,i.max,o);e===i&&(l-=t),e.min=$f(e.min,t,n,l,r),e.max=$f(e.max,t,n,l,r)}function Ff(e,t,[n,o,r],i,a){BS(e,t[n],t[o],t[r],t.scale,i,a)}const zS=["x","scaleX","originX"],HS=["y","scaleY","originY"];function Bf(e,t,n,o){Ff(e.x,t,zS,n?n.x:void 0,o?o.x:void 0),Ff(e.y,t,HS,n?n.y:void 0,o?o.y:void 0)}function zf(e){return e.translate===0&&e.scale===1}function Ag(e){return zf(e.x)&&zf(e.y)}function Hf(e,t){return e.min===t.min&&e.max===t.max}function WS(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Wf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ng(e,t){return Wf(e.x,t.x)&&Wf(e.y,t.y)}function Uf(e){return Vt(e.x)/Vt(e.y)}function Yf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Kt(e){return[e("x"),e("y")]}function US(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),p&&(o+=`rotateY(${p}deg) `),h&&(o+=`skewX(${h}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const _g=["TopLeft","TopRight","BottomLeft","BottomRight"],YS=_g.length,qf=e=>typeof e=="string"?parseFloat(e):e,Gf=e=>typeof e=="number"||xe.test(e);function qS(e,t,n,o,r,i){r?(e.opacity=ct(0,n.opacity??1,GS(o)),e.opacityExit=ct(t.opacity??1,0,ZS(o))):i&&(e.opacity=ct(t.opacity??1,n.opacity??1,o));for(let a=0;a<YS;a++){const l=`border${_g[a]}Radius`;let c=Zf(t,l),u=Zf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Gf(c)===Gf(u)?(e[l]=Math.max(ct(qf(c),qf(u),o),0),(Sn.test(u)||Sn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,o))}function Zf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GS=jg(0,.5,Dm),ZS=jg(.5,.95,en);function jg(e,t,n){return o=>o<e?0:o>t?1:n(ms(e,t,o))}function KS(e,t,n){const o=At(e)?e:fr(e);return o.start(tu("",o,t,n)),o.animation}function vs(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const XS=(e,t)=>e.depth-t.depth;class QS{constructor(){this.children=[],this.isDirty=!1}add(t){Vc(this.children,t),this.isDirty=!0}remove(t){$c(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(XS),this.isDirty=!1,this.children.forEach(t)}}function JS(e,t){const n=Lt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(eo(o),e(i-t))};return et.setup(o,!0),()=>eo(o)}function Ci(e){return At(e)?e.get():e}class e5{constructor(){this.members=[]}add(t){Vc(this.members,t),t.scheduleRender()}remove(t){if($c(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender();const r=o.options.layoutDependency,i=t.options.layoutDependency;r!==void 0&&i!==void 0&&r===i||(t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:l}=t.options;l===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},il=["","X","Y","Z"],t5=1e3;let n5=0;function al(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Lg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=og(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Lg(o)}function Vg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=n5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(s5),this.nodes.forEach(c5),this.nodes.forEach(u5),this.nodes.forEach(i5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new QS)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Bc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=hg(a)&&!rS(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const p=()=>this.root.updateBlockedByResize=!1;et.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=JS(p,250),wi.hasAnimatedSinceResize&&(wi.hasAnimatedSinceResize=!1,this.nodes.forEach(Qf)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||m5,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Ng(this.targetLayout,h),S=!f&&p;if(this.options.layoutRoot||this.resumeFrom||S||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...eu(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,S)}else f||Qf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(d5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Lg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(l5),this.nodes.forEach(o5),this.nodes.forEach(r5)):this.nodes.forEach(Xf),this.clearAllSnapshots();const l=Lt.now();kt.delta=En(0,1e3/60,l-kt.timestamp),kt.timestamp=l,kt.isProcessing=!0,Qa.update.process(kt),Qa.preRender.process(kt),Qa.render.process(kt),kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,su.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(a5),this.sharedNodes.forEach(f5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vt(this.snapshot.measuredBox.x)&&!Vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ag(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||To(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),g5(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return Tt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(y5))){const{scroll:d}=this.root;d&&(nr(l.x,d.offset.x),nr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=Tt();if(ln(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&ln(l,a),nr(l.x,f.offset.x),nr(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=Tt();ln(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&or(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),To(d.latestValues)&&or(c,d.latestValues)}return To(this.latestValues)&&or(c,this.latestValues),c}removeTransform(a){const l=Tt();ln(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!To(u.latestValues))continue;oc(u.latestValues)&&u.updateSnapshot();const d=Tt(),f=u.measurePageBox();ln(d,f),Bf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return To(this.latestValues)&&Bf(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var h;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=kt.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Tt(),this.targetWithTransforms=Tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ln(this.target,this.layout.layoutBox),Cg(this.target,this.targetDelta)):ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||oc(this.parent.latestValues)||xg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Tt(),this.relativeTargetOrigin=Tt(),_i(this.relativeTargetOrigin,l,c),ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===kt.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ln(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;mS(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Tt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_f(this.prevProjectionDelta.x,this.projectionDelta.x),_f(this.prevProjectionDelta.y,this.projectionDelta.y)),ss(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Yf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tr(),this.projectionDelta=tr(),this.projectionDeltaWithTransform=tr()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=tr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=Tt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,y=this.getStack(),v=!y||y.members.length<=1,S=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(h5));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;Jf(f.x,a.x,T),Jf(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_i(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p5(this.relativeTarget,this.relativeTargetOrigin,p,T),w&&WS(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Tt()),ln(w,this.relativeTarget)),g&&(this.animationValues=d,qS(d,u,this.latestValues,T,S,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{wi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=fr(0)),this.currentAnimation=KS(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(t5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&$g(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Tt();const f=Vt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Vt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}ln(l,c),or(l,d),ss(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new e5),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&al("z",a,u,this.animationValues);for(let d=0;d<il.length;d++)al(`rotate${il[d]}`,a,u,this.animationValues),al(`skew${il[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ci(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ci(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!To(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=US(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),a.transform=f;const{x:p,y:h}=this.projectionDelta;a.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in sc){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=sc[m],S=f==="none"?d[m]:g(d[m],u);if(y){const w=y.length;for(let C=0;C<w;C++)a[y[C]]=S}else v?this.options.visualElement.renderState.vars[m]=S:a[m]=S}this.options.layoutId&&(a.pointerEvents=u===this?Ci(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Kf),this.root.sharedNodes.clear()}}}function o5(e){e.updateLayout()}function r5(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Kt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Vt(p);p.min=o[f].min,p.max=p.min+h}):$g(i,t.layoutBox,o)&&Kt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Vt(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=tr();ss(l,o,t.layoutBox);const c=tr();a?ss(c,e.applyTransform(r,!0),t.measuredBox):ss(c,o,t.layoutBox);const u=!Ag(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=Tt();_i(m,t.layoutBox,p.layoutBox);const g=Tt();_i(g,o,h.layoutBox),Ng(m,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function s5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function a5(e){e.clearSnapshot()}function Kf(e){e.clearMeasurements()}function Xf(e){e.isLayoutDirty=!1}function l5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Qf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function c5(e){e.resolveTargetDelta()}function u5(e){e.calcProjection()}function d5(e){e.resetSkewAndRotation()}function f5(e){e.removeLeadSnapshot()}function Jf(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ep(e,t,n,o){e.min=ct(t.min,n.min,o),e.max=ct(t.max,n.max,o)}function p5(e,t,n,o){ep(e.x,t.x,n.x,o),ep(e.y,t.y,n.y,o)}function h5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const m5={duration:.45,ease:[.4,0,.1,1]},tp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),np=tp("applewebkit/")&&!tp("chrome/")?Math.round:en;function op(e){e.min=np(e.min),e.max=np(e.max)}function g5(e){op(e.x),op(e.y)}function $g(e,t,n){return e==="position"||e==="preserve-aspect"&&!$S(Uf(t),Uf(n),.2)}function y5(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const b5=Vg({attachResizeListener:(e,t)=>vs(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ll={current:void 0},Fg=Vg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ll.current){const e=new b5({});e.mount(window),e.setOptions({layoutScroll:!0}),ll.current=e}return ll.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),du=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function rp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function v5(...e){return t=>{let n=!1;const o=e.map(r=>{const i=rp(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():rp(e[r],null)}}}}function x5(...e){return P.useCallback(v5(...e),e)}class C5 extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=tc(o)&&o.offsetWidth||0,i=tc(o)&&o.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=r-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function w5({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=O.useId(),a=O.useRef(null),l=O.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=O.useContext(du),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=x5(a,u);return O.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:y,bottom:v}=l.current;if(t||!a.current||!p||!h)return;const S=n==="left"?`left: ${g}`:`right: ${y}`,w=o==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=i;const C=document.createElement("style");c&&(C.nonce=c);const T=r??document.head;return T.appendChild(C),C.sheet&&C.sheet.insertRule(`
98
98
  [data-motion-pop-id="${i}"] {
99
99
  position: absolute !important;
100
100
  width: ${p}px !important;
@@ -102,29 +102,29 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
102
102
  ${S}px !important;
103
103
  ${w}px !important;
104
104
  }
105
- `),()=>{T.contains(C)&&T.removeChild(C)}},[t]),y.jsx(N5,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:u})})}const L5=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:d})=>{const u=Yc(V5),f=k.useId();let p=!0,h=k.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:r,onExitComplete:m=>{u.set(m,!0);for(const g of u.values())if(!g)return;o&&o()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,o]);return i&&p&&(h={...h}),k.useMemo(()=>{u.forEach((m,g)=>u.set(g,!1))},[n]),P.useEffect(()=>{!n&&!u.size&&o&&o()},[n]),a==="popLayout"&&(e=y.jsx(j5,{isPresent:n,anchorX:l,anchorY:c,root:d,children:e})),y.jsx(ma.Provider,{value:h,children:e})};function V5(){return new Map}function Kg(e=!0){const t=k.useContext(ma);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=k.useId();k.useEffect(()=>{if(e)return r(i)},[e]);const a=k.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const ai=e=>e.key||"";function gp(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const pc=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:d})=>{const[u,f]=Kg(a),p=k.useMemo(()=>gp(e),[e]),h=a&&!u?[]:p.map(ai),m=k.useRef(!0),g=k.useRef(p),b=Yc(()=>new Map),v=k.useRef(new Set),[S,w]=k.useState(p),[C,T]=k.useState(p);Mm(()=>{m.current=!1,g.current=p;for(let R=0;R<C.length;R++){const D=ai(C[R]);h.includes(D)?(b.delete(D),v.current.delete(D)):b.get(D)!==!0&&b.set(D,!1)}},[C,h.length,h.join("-")]);const E=[];if(p!==S){let R=[...p];for(let D=0;D<C.length;D++){const V=C[D],j=ai(V);h.includes(j)||(R.splice(D,0,V),E.push(V))}return i==="wait"&&E.length&&(R=E),T(gp(R)),w(p),null}process.env.NODE_ENV!=="production"&&i==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=k.useContext(Uc);return y.jsx(y.Fragment,{children:C.map(R=>{const D=ai(R),V=a&&!u?!1:p===C||h.includes(D),j=()=>{if(v.current.has(D))return;if(v.current.add(D),b.has(D))b.set(D,!0);else return;let x=!0;b.forEach(L=>{L||(x=!1)}),x&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return y.jsx(L5,{isPresent:V,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:d,onExitComplete:V?void 0:j,anchorX:l,anchorY:c,children:R},D)})})},Zg=k.createContext({strict:!1}),yp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let bp=!1;function $5(){if(bp)return;const e={};for(const t in yp)e[t]={isEnabled:n=>yp[t].some(o=>!!n[o])};Pg(e),bp=!0}function Xg(){return $5(),PS()}function F5(e){const t=Xg();for(const n in e)t[n]={...t[n],...e[n]};Pg(t)}const B5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||B5.has(e)}let Qg=e=>!Bi(e);function z5(e){typeof e=="function"&&(Qg=t=>t.startsWith("on")?!Bi(t):e(t))}try{z5(require("@emotion/is-prop-valid").default)}catch{}function H5(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Qg(r)||n===!0&&Bi(r)||!t&&!Bi(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ba=k.createContext({});function W5(e,t){if(ya(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ws(n)?n:void 0,animate:ws(o)?o:void 0}}return e.inherit!==!1?t:{}}function U5(e){const{initial:t,animate:n}=W5(e,k.useContext(ba));return k.useMemo(()=>({initial:t,animate:n}),[vp(t),vp(n)])}function vp(e){return Array.isArray(e)?e.join(" "):e}const Cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jg(e,t,n){for(const o in t)!_t(t[o])&&!Rg(o,n)&&(e[o]=t[o])}function Y5({transformTemplate:e},t){return k.useMemo(()=>{const n=Cu();return bu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function q5(e,t){const n=e.style||{},o={};return Jg(o,n,e),Object.assign(o,Y5(e,t)),o}function G5(e,t){const n={},o=q5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const ey=()=>({...Cu(),attrs:{}});function K5(e,t,n,o){const r=k.useMemo(()=>{const i=ey();return Ag(i,t,Ng(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Jg(i,e.style,e),r.style={...i,...r.style}}return r}const Z5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wu(e){return typeof e!="string"||e.includes("-")?!1:!!(Z5.indexOf(e)>-1||/[A-Z]/u.test(e))}function X5(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??wu(e)?K5:G5)(t,o,r,e),d=H5(t,typeof e=="string",i),u=e!==k.Fragment?{...d,...c,ref:n}:{},{children:f}=t,p=k.useMemo(()=>_t(f)?f.get():f,[f]);return k.createElement(e,{...u,children:p})}function Q5({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:J5(n,o,r,e),renderState:t()}}function J5(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=Pi(i[p]);let{initial:a,animate:l}=e;const c=ya(e),d=Tg(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const f=u?l:a;if(f&&typeof f!="boolean"&&!ga(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=du(e,p[h]);if(m){const{transitionEnd:g,transition:b,...v}=m;for(const S in v){let w=v[S];if(Array.isArray(w)){const C=u?w.length-1:0;w=w[C]}w!==null&&(r[S]=w)}for(const S in g)r[S]=g[S]}}}return r}const ty=e=>(t,n)=>{const o=k.useContext(ba),r=k.useContext(ma),i=()=>Q5(e,t,o,r);return n?i():Yc(i)},e3=ty({scrapeMotionValuesFromProps:vu,createRenderState:Cu}),t3=ty({scrapeMotionValuesFromProps:jg,createRenderState:ey}),n3=Symbol.for("motionComponentSymbol");function o3(e,t,n){const o=k.useRef(n);k.useInsertionEffect(()=>{o.current=n});const r=k.useRef(null);return k.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=o.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):a(i);else a&&(a.current=i)},[t])}const ny=k.createContext({});function Jr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function r3(e,t,n,o,r,i){var w,C;const{visualElement:a}=k.useContext(ba),l=k.useContext(Zg),c=k.useContext(ma),d=k.useContext(xu),u=d.reducedMotion,f=d.skipAnimations,p=k.useRef(null),h=k.useRef(!1);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:i}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const m=p.current,g=k.useContext(ny);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&s3(p.current,n,r,g);const b=k.useRef(!1);k.useInsertionEffect(()=>{m&&b.current&&m.update(n,c)});const v=n[ug],S=k.useRef(!!v&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,v))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,v)));return Mm(()=>{h.current=!0,m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),S.current&&m.animationState&&m.animationState.animateChanges())}),k.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),S.current=!1),m.enteringChildren=void 0)}),m}function s3(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:oy(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&Jr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:c,layoutRoot:d})}function oy(e){if(e)return e.options.allowProjection!==!1?e.projection:oy(e.parent)}function hl(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&F5(o);const i=n?n==="svg":wu(e),a=i?t3:e3;function l(d,u){let f;const p={...k.useContext(xu),...d,layoutId:i3(d)},{isStatic:h}=p,m=U5(d),g=a(d,h);if(!h&&Em){a3(p,o);const b=l3(p);f=b.MeasureLayout,m.visualElement=r3(e,g,p,r,b.ProjectionNode,i)}return y.jsxs(ba.Provider,{value:m,children:[f&&m.visualElement?y.jsx(f,{visualElement:m.visualElement,...p}):null,X5(e,d,o3(g,m.visualElement,u),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=k.forwardRef(l);return c[n3]=e,c}function i3({layoutId:e}){const t=k.useContext(Uc).id;return t&&e!==void 0?t+"-"+e:e}function a3(e,t){const n=k.useContext(Zg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Er(!1,o,"lazy-strict-mode"):Fn(!1,o,"lazy-strict-mode")}}function l3(e){const t=Xg(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n!=null&&n.isEnabled(e)||o!=null&&o.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function c3(e,t){if(typeof Proxy>"u")return hl;const n=new Map,o=(i,a)=>hl(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&Xc(!1,"motion() is deprecated. Use motion.create() instead."),o(i,a));return new Proxy(r,{get:(i,a)=>a==="create"?o:(n.has(a)||n.set(a,hl(a,void 0,e,t)),n.get(a))})}const u3=(e,t)=>t.isSVG??wu(e)?new zS(t):new jS(t,{allowProjection:e!==k.Fragment});class d3 extends uo{constructor(t){super(t),t.animationState||(t.animationState=qS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ga(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let f3=0;class p3 extends uo{constructor(){super(...arguments),this.id=f3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const h3={animation:{Feature:d3},exit:{Feature:p3}};function Vs(e){return{point:{x:e.pageX,y:e.pageY}}}const m3=e=>t=>mu(t)&&e(t,Vs(t));function us(e,t,n,o){return Ss(e,t,m3(n),o)}const ry=({current:e})=>e?e.ownerDocument.defaultView:null,xp=(e,t)=>Math.abs(e-t);function g3(e,t){const n=xp(e.x,t.x),o=xp(e.y,t.y);return Math.sqrt(n**2+o**2)}const Cp=new Set(["auto","scroll"]);class sy{constructor(t,n,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=gl(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=g3(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:b}=h,{timestamp:v}=Dt;this.history.push({...b,timestamp:v});const{onStart:S,onMove:w}=this.handlers;m||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ml(m,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=gl(h.type==="pointercancel"?this.lastMoveEventInfo:ml(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,S),b&&b(h,S)},!mu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Vs(t),d=ml(c,this.transformPagePoint),{point:u}=d,{timestamp:f}=Dt;this.history=[{...u,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,gl(d,this.history)),this.removeListeners=Ns(us(this.contextWindow,"pointermove",this.handlePointerMove),us(this.contextWindow,"pointerup",this.handlePointerUp),us(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(Cp.has(o.overflowX)||Cp.has(o.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:r.x-n.x,y:r.y-n.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,r),et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ro(this.updatePoint)}}function ml(e,t){return t?{point:t(e.point)}:e}function wp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gl({point:e},t){return{point:e,delta:wp(e,iy(t)),offset:wp(e,y3(t)),velocity:b3(t,.1)}}function y3(e){return e[0]}function iy(e){return e[e.length-1]}function b3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=iy(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Tn(t)));)n--;if(!o)return{x:0,y:0};const i=en(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function v3(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?ut(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?ut(n,e,o.max):Math.min(e,n)),e}function Sp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function x3(e,{top:t,left:n,bottom:o,right:r}){return{x:Sp(e.x,n,r),y:Sp(e.y,t,o)}}function Tp(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function C3(e,t){return{x:Tp(e.x,t.x),y:Tp(e.y,t.y)}}function w3(e,t){let n=.5;const o=$t(e),r=$t(t);return r>o?n=vs(t.min,t.max-o,e.min):o>r&&(n=vs(e.min,e.max-r,t.min)),kn(0,1,n)}function S3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const hc=.35;function T3(e=hc){return e===!1?e=0:e===!0&&(e=hc),{x:Pp(e,"left","right"),y:Pp(e,"top","bottom")}}function Pp(e,t,n){return{min:Ep(e,t),max:Ep(e,n)}}function Ep(e,t){return typeof e=="number"?e:e[t]||0}const P3=new WeakMap;class E3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{n?(this.stopAnimation(),this.snapToCursor(Vs(f).point)):this.pauseAnimation()},a=(f,p)=>{this.stopAnimation();const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pS(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xt(v=>{let S=this.getAxisMotionValue(v).get()||0;if(Pn.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[v];C&&(S=$t(C)*(parseFloat(S)/100))}}this.originPoint[v]=S}),g&&et.postRender(()=>g(f,p)),sc(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=p;if(m&&this.currentDirection===null){this.currentDirection=M3(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),b&&b(f,p)},c=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Xt(f=>{var p;return this.getAnimationState(f)==="paused"&&((p=this.getAxisMotionValue(f).animation)==null?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new sy(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:o,contextWindow:ry(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!li(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=v3(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,r=this.constraints;t&&Jr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=x3(o.layoutBox,t):this.constraints=!1,this.elastic=T3(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=S3(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Jr(t))return!1;const o=t.current;Fn(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=DS(o,r.root,this.visualElement.getTransformPagePoint());let a=C3(r.layout.layoutBox,i);if(n){const l=n(MS(a));this.hasMutatedConstraints=!!l,l&&(a=Mg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Xt(u=>{if(!li(u,n,this.currentDirection))return;let f=c&&c[u]||{};a&&(f={min:0,max:0});const p=r?200:1e6,h=r?40:1e7,m={type:"inertia",velocity:o?t[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return sc(this.visualElement,t),o.start(uu(t,o,0,n,this.visualElement,!1))}stopAnimation(){Xt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Xt(n=>{const{drag:o}=this.getProps();if(!li(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-ut(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Jr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Xt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=w3({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Xt(a=>{if(!li(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(ut(c,d,r[a]))})}addListeners(){if(!this.visualElement.current)return;P3.set(this.visualElement,this);const t=this.visualElement.current,n=us(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps(),f=c.target,p=f!==t&&Cg(f);d&&u&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Jr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),et.read(o);const a=Ss(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Xt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=hc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function li(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function M3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class k3 extends uo{constructor(t){super(t),this.removeGroupControls=tn,this.removeListeners=tn,this.controls=new E3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Mp=e=>(t,n)=>{e&&et.postRender(()=>e(t,n))};class O3 extends uo{constructor(){super(...arguments),this.removePointerDownListener=tn}onPointerDown(t){this.session=new sy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ry(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:Mp(t),onStart:Mp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&et.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=us(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let yl=!1;class D3 extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),yl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ei.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),yl=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||et.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),hu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;yl=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ay(e){const[t,n]=Kg(),o=k.useContext(Uc);return y.jsx(D3,{...e,layoutGroup:o,switchLayoutGroup:k.useContext(ny),isPresent:t,safeToRemove:n})}const I3={pan:{Feature:O3},drag:{Feature:k3,ProjectionNode:Gg,MeasureLayout:ay}};function kp(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&et.postRender(()=>i(t,Vs(t)))}class R3 extends uo{mount(){const{current:t}=this.node;t&&(this.unmount=hS(t,(n,o)=>(kp(this.node,o,"Start"),r=>kp(this.node,r,"End"))))}unmount(){}}class A3 extends uo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ns(Ss(this.node.current,"focus",()=>this.onFocus()),Ss(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Op(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&et.postRender(()=>i(t,Vs(t)))}class _3 extends uo{mount(){const{current:t}=this.node;t&&(this.unmount=yS(t,(n,o)=>(Op(this.node,o,"Start"),(r,{success:i})=>Op(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mc=new WeakMap,bl=new WeakMap,N3=e=>{const t=mc.get(e.target);t&&t(e)},j3=e=>{e.forEach(N3)};function L3({root:e,...t}){const n=e||document;bl.has(n)||bl.set(n,{});const o=bl.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(j3,{root:e,...t})),o[r]}function V3(e,t,n){const o=L3(t);return mc.set(e,n),o.observe(e),()=>{mc.delete(e),o.unobserve(e)}}const $3={some:0,all:1};class F3 extends uo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:$3[r]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),p=d?u:f;p&&p(c)};return V3(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B3(t,n))&&this.startObserver()}unmount(){}}function B3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const z3={inView:{Feature:F3},tap:{Feature:_3},focus:{Feature:A3},hover:{Feature:R3}},H3={layout:{ProjectionNode:Gg,MeasureLayout:ay}},W3={...h3,...z3,...I3,...H3},Nn=c3(W3,u3),Io=15.5,vl=18,U3=Io,$s=({fill:e="#FDFCFC",size:t=18,className:n})=>y.jsxs("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:[y.jsx("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:e}),y.jsx("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:e}),y.jsx("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:e}),y.jsx("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:e}),y.jsx("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:e}),y.jsx("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:e})]});$s.displayName="FacialIcon";const Fs=({fill:e="#FDFCFC",size:t=18,className:n})=>y.jsx("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:y.jsx("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:e})});Fs.displayName="LPRIcon";const Bs="Facial",zs="LPR",Y3=[Bs,zs];function q3(e,t){return e===Bs?y.jsx($s,{fill:t,size:16}):e===zs?y.jsx(Fs,{fill:t,size:16}):null}function G3(e,t=18,n){return e===Bs?y.jsx($s,{fill:n,size:t}):e===zs?y.jsx(Fs,{fill:n,size:t}):null}function K3(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&Y3.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:q3(o,t)}))}const Z3="_spotWrapper_p7ng0_1",X3="_mapSpot_p7ng0_8",Q3="_selected_p7ng0_24",J3="_rotationLines_p7ng0_36",eT="_rotationLine_p7ng0_36",tT="_rotationLineInner_p7ng0_56",nT="_rotationConeSvg_p7ng0_63",oT="_rotationLineSvg_p7ng0_77",rT="_cameraButtonAtTip_p7ng0_89",sT="_cameraButtonSelected_p7ng0_107",iT="_cameraButtonAtTipIcon_p7ng0_129",aT="_count_p7ng0_137",lT="_cameraTypesContainer_p7ng0_157",cT="_cameraTypeItem_p7ng0_164",uT="_cameraTypeCount_p7ng0_171",dT="_cameraTypeIcon_p7ng0_182",At={spotWrapper:Z3,mapSpot:X3,selected:Q3,rotationLines:J3,rotationLine:eT,rotationLineInner:tT,rotationConeSvg:nT,rotationLineSvg:oT,cameraButtonAtTip:rT,cameraButtonSelected:sT,cameraButtonAtTipIcon:iT,count:aT,cameraTypesContainer:lT,cameraTypeItem:cT,cameraTypeCount:uT,cameraTypeIcon:dT},ly=({fill:e="#FAF9F9",className:t})=>y.jsxs("svg",{width:"12",height:"104",viewBox:"0 0 12 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[y.jsx("path",{d:"M6.27344 0.75C6.27344 0.335786 5.93765 1.81059e-08 5.52344 0C5.10922 -1.81059e-08 4.77344 0.335786 4.77344 0.75L5.52344 0.75L6.27344 0.75ZM4.99311 50.7803C5.286 51.0732 5.76087 51.0732 6.05377 50.7803L10.8267 46.0074C11.1196 45.7145 11.1196 45.2396 10.8267 44.9467C10.5338 44.6538 10.059 44.6538 9.76608 44.9467L5.52344 49.1893L1.2808 44.9467C0.987902 44.6538 0.513028 44.6538 0.220135 44.9467C-0.0727587 45.2396 -0.0727587 45.7145 0.220135 46.0074L4.99311 50.7803ZM5.52344 0.75L4.77344 0.75L4.77344 50.25L5.52344 50.25L6.27344 50.25L6.27344 0.75L5.52344 0.75Z",fill:e}),y.jsx("path",{d:"M6.27344 53.25C6.27344 52.8358 5.93765 52.5 5.52344 52.5C5.10922 52.5 4.77344 52.8358 4.77344 53.25L5.52344 53.25L6.27344 53.25ZM4.99311 103.28C5.286 103.573 5.76087 103.573 6.05377 103.28L10.8267 98.5074C11.1196 98.2145 11.1196 97.7396 10.8267 97.4467C10.5338 97.1538 10.059 97.1538 9.76608 97.4467L5.52344 101.689L1.2808 97.4467C0.987902 97.1538 0.513028 97.1538 0.220135 97.4467C-0.0727587 97.7396 -0.0727587 98.2145 0.220135 98.5074L4.99311 103.28ZM5.52344 53.25L4.77344 53.25L4.77344 102.75L5.52344 102.75L6.27344 102.75L6.27344 53.25L5.52344 53.25Z",fill:e})]});ly.displayName="ArrowIcon";const cy=({fill:e="#CEE643",className:t})=>{const n=`coneGradient-${Math.random().toString(36).substr(2,9)}`;return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"62",height:"122",viewBox:"0 0 62 122",fill:"none",className:t,children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:n,x1:"31",y1:"122",x2:"31",y2:"0",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{offset:"0",stopColor:e,stopOpacity:"0.02"}),y.jsx("stop",{offset:"0.5",stopColor:e,stopOpacity:"0.35"}),y.jsx("stop",{offset:"1",stopColor:e,stopOpacity:"0.7"})]})}),y.jsx("path",{d:"M32 -1.31134e-06L62 103.5C62 103.5 52.0001 121 31 121.5C9.99993 122 -7.09431e-07 103.5 -7.09431e-07 103.5L30 -1.39876e-06L32 -1.31134e-06Z",fill:`url(#${n})`})]})};cy.displayName="ConeIcon";const fT=Nn(W.Box),Su=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,selectedCameraId:i,isHighlighted:a,highlightedCameraId:l,disableClick:c=!1,className:d,onClick:u,onCameraClick:f,sx:p})=>{const m=W.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",b=k.useMemo(()=>K3(n,g),[n,g]),v=b&&b.length>0,S=n&&n.length===1,w=!r&&v&&(S||o>=Io),C=m?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",T=m?"var(--Tertiary-Tertiary, #CEE643)":"var(--Tertiary-Tertiary, #44808C)",E=r||a?T:C,M=m?"#101111":"#ffffff",R=m?"#CEE643":"#44808C",D=8,V=n??[],j=r&&V.length>0;return y.jsxs("div",{className:At.spotWrapper,"data-theme":m?"dark":"light",children:[y.jsx(pc,{children:j&&y.jsx(Nn.div,{className:At.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:V.map((x,L)=>{const A=i===x.id||l===x.id,_=m?"#101111":"#FDFCFC";return y.jsx("div",{className:At.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${x.orientation??0}deg)`},children:y.jsxs(Nn.div,{className:At.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[y.jsx(cy,{fill:R,className:At.rotationConeSvg}),y.jsx(ly,{fill:M,className:At.rotationLineSvg}),y.jsx("button",{type:"button",className:`${At.cameraButtonAtTip} ${A?At.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(x)},"aria-label":`Câmera ${x.algorithm??"câmera"}`,children:y.jsx("span",{className:At.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(x.orientation??0)}deg)`},children:G3(x.algorithm,18,_)})})]})},x.id??L)})})}),y.jsx(fT,{className:`${At.mapSpot} ${r?At.selected:""} ${d||""}`,onClick:c?void 0:u,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${D}px solid transparent`,borderRight:`${D}px solid transparent`,borderTop:`${D}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T:C,"--arrow-opacity":w?1:0,backgroundColor:E},animate:{width:w?"auto":r?34:30,height:w?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:w?"4px 8px":0,y:w?-D:0,"--arrow-opacity":w?1:0},transition:{duration:.2,ease:"easeInOut"},children:y.jsx(pc,{mode:"wait",children:w?y.jsx(Nn.div,{className:At.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.map((x,L)=>y.jsxs(Nn.div,{className:At.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[y.jsx(W.Typography,{className:At.cameraTypeCount,children:x.count}),x.icon&&y.jsx(W.Box,{className:At.cameraTypeIcon,children:x.icon})]},L))},"expanded"):y.jsx(Nn.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.jsx(W.Typography,{className:At.count,children:e})},"collapsed")})})]})};Su.displayName="MapSpot";const pT="_cameraCard_kvy53_2",hT="_clickable_kvy53_12",mT="_topContainer_kvy53_66",gT="_playOverlay_kvy53_80",yT="_playIcon_kvy53_96",bT="_mediaImage_kvy53_117",vT="_mediaPlaceholder_kvy53_124",xT="_offlinePlaceholder_kvy53_130",CT="_offlinePlaceholderIcon_kvy53_141",wT="_offlinePlaceholderText_kvy53_147",ST="_menuButton_kvy53_155",TT="_menuButtonIcon_kvy53_174",PT="_closeButton_kvy53_180",ET="_closeButtonIcon_kvy53_199",MT="_bottomContainer_kvy53_205",kT="_infoRow_kvy53_218",OT="_iconWrapper_kvy53_226",DT="_cameraIcon_kvy53_233",IT="_cameraTypeImage_kvy53_240",RT="_headerText_kvy53_248",AT="_addressText_kvy53_265",_T="_tagsContainer_kvy53_282",NT="_tag_kvy53_282",jT="_tagOverflow_kvy53_298",LT="_recordingButtonContainer_kvy53_320",VT="_menuButtonInline_kvy53_329",$T="_menuButtonInlineIcon_kvy53_348",FT="_recordingButton_kvy53_320",BT="_recordingButtonIcon_kvy53_379",zT="_recordingButtonText_kvy53_382",HT="_cameraCardMenuPaper_kvy53_413",WT="_cameraCardMenuList_kvy53_437",UT="_cameraCardMenuItem_kvy53_445",YT="_menuItemDisabled_kvy53_484",qT="_cameraCardMenuItemText_kvy53_490",_e={cameraCard:pT,clickable:hT,topContainer:mT,playOverlay:gT,playIcon:yT,mediaImage:bT,mediaPlaceholder:vT,offlinePlaceholder:xT,offlinePlaceholderIcon:CT,offlinePlaceholderText:wT,menuButton:ST,menuButtonIcon:TT,closeButton:PT,closeButtonIcon:ET,bottomContainer:MT,infoRow:kT,iconWrapper:OT,cameraIcon:DT,cameraTypeImage:IT,headerText:RT,addressText:AT,tagsContainer:_T,tag:NT,tagOverflow:jT,recordingButtonContainer:LT,menuButtonInline:VT,menuButtonInlineIcon:$T,recordingButton:FT,recordingButtonIcon:BT,recordingButtonText:zT,cameraCardMenuPaper:HT,cameraCardMenuList:WT,cameraCardMenuItem:UT,menuItemDisabled:YT,cameraCardMenuItemText:qT};function GT(e,t){const n=t?"#FAF9F9":"#000000";return e===Bs?y.jsx($s,{fill:n,size:20,className:_e.cameraTypeImage}):e===zs?y.jsx(Fs,{fill:n,size:20,className:_e.cameraTypeImage}):y.jsx(gt.VideocamOutlined,{className:_e.cameraIcon,style:{color:n}})}const KT=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:d,recordingButton:u,onClose:f,onClick:p,actionsDisabled:h,offline:m})=>{const b=ae.useTheme().palette.mode==="dark",v=k.useRef(null),S=k.useRef(!1),[w,C]=k.useState(!1),T=((l==null?void 0:l.length)??0)>0||c,E=((l==null?void 0:l.length)??0)>0,M=r.length>0?r[0]:null,R=r.length>1?r.length-1:0,D=r.length>1?r.join(", "):"",V=[n,t,o].filter(Boolean).join(" - ");return y.jsxs(W.Box,{className:`${_e.cameraCard} ${p?_e.clickable:""} ${d||""}`.trim(),"data-theme":b?"dark":"light",onClick:()=>{S.current||p==null||p()},sx:{"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[y.jsxs(W.Box,{className:_e.topContainer,children:[m?y.jsxs(W.Box,{className:_e.offlinePlaceholder,"aria-label":"Câmera offline",children:[y.jsx(gt.VideocamOff,{className:_e.offlinePlaceholderIcon}),y.jsx("span",{className:_e.offlinePlaceholderText,children:"Imagem não disponível"})]}):i?y.jsx("img",{src:i,alt:"",className:_e.mediaImage}):y.jsx(W.Box,{className:_e.mediaPlaceholder,"aria-hidden":!0}),y.jsx(W.Box,{className:_e.playOverlay,children:y.jsx(gt.PlayCircleOutline,{className:_e.playIcon})}),!u&&M&&y.jsx(W.Tooltip,{title:D,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:y.jsxs(W.Box,{className:_e.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[y.jsx("span",{className:_e.tag,children:M}),R>0&&y.jsxs("span",{className:_e.tagOverflow,children:["+",R]})]})}),f&&y.jsx(W.IconButton,{onClick:j=>{j.stopPropagation(),f()},className:_e.closeButton,"aria-label":"Fechar",size:"small",children:y.jsx(gt.Close,{className:_e.closeButtonIcon})}),T&&!u&&y.jsx(W.IconButton,{ref:v,onClick:j=>{j.stopPropagation(),E?C(!0):c==null||c()},className:_e.menuButton,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":w,size:"small",children:y.jsx(gt.MoreHoriz,{className:_e.menuButtonIcon})})]}),E&&y.jsx(W.Popover,{open:w,anchorEl:v.current,onClose:()=>{C(!1),S.current=!0,requestAnimationFrame(()=>{S.current=!1})},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:y.jsx(W.Box,{className:_e.cameraCardMenuPaper,"data-theme":b?"dark":"light",children:y.jsx(W.Box,{className:_e.cameraCardMenuList,role:"menu",children:l.map(j=>y.jsx("button",{type:"button",className:`${_e.cameraCardMenuItem} ${h?_e.menuItemDisabled:""}`,role:"menuitem",disabled:h,onClick:()=>{var x;h||((x=j.onClick)==null||x.call(j),C(!1))},children:y.jsx("span",{className:_e.cameraCardMenuItemText,children:j.label})},j.label))})})}),y.jsxs(W.Box,{className:`${_e.bottomContainer} bottom-container`,children:[y.jsxs(W.Box,{className:_e.infoRow,children:[y.jsx(W.Box,{className:_e.iconWrapper,children:GT(a,b)}),y.jsx(W.Tooltip,{title:e,placement:"top",enterDelay:300,children:y.jsx("span",{className:_e.headerText,children:e})})]}),V&&y.jsx(W.Tooltip,{title:V,placement:"top",enterDelay:300,children:y.jsx("span",{className:_e.addressText,children:V})}),u&&y.jsxs(W.Box,{className:_e.recordingButtonContainer,children:[T&&y.jsx(W.IconButton,{ref:v,onClick:()=>{E?C(!0):c==null||c()},className:_e.menuButtonInline,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":w,size:"small",children:y.jsx(gt.MoreHoriz,{className:_e.menuButtonInlineIcon})}),y.jsxs("button",{type:"button",className:_e.recordingButton,onClick:j=>{j.stopPropagation(),u.onClick?u.onClick():window.location.href=`/camera/${u.cameraId}`},"aria-label":"Ver gravação",children:[y.jsx(gt.VideocamOutlined,{className:_e.recordingButtonIcon}),y.jsx("span",{className:_e.recordingButtonText,children:"Ver gravação"})]})]})]})]})},ZT=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},XT=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},QT="_container_1whpg_2",JT="_zoomButton_1whpg_10",eP="_stateLayer_1whpg_43",tP="_icon_1whpg_59",vn={container:QT,zoomButton:JT,stateLayer:eP,icon:tP},nP=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=W.useTheme().palette.mode==="dark",d=ZT(e,o,i),u=XT(e,o,r,i),f={backgroundColor:c?"#DEDDDD":"#101111","&:hover":{backgroundColor:c?"#DEDDDD":"#101111",opacity:.9}},p={fill:c?"#101111":"#FDFCFC",color:c?"#101111":"#FDFCFC"};return y.jsxs(W.Box,{className:`${vn.container} ${t||""}`,sx:n,children:[y.jsx(W.IconButton,{className:vn.zoomButton,onClick:d,"aria-label":"Zoom in",sx:f,children:y.jsx(W.Box,{className:vn.stateLayer,children:y.jsx(gt.Add,{className:vn.icon,sx:p})})}),y.jsx(W.IconButton,{className:vn.zoomButton,onClick:u,"aria-label":"Zoom out",sx:f,children:y.jsx(W.Box,{className:vn.stateLayer,children:y.jsx(gt.Remove,{className:vn.icon,sx:p})})}),y.jsx(W.IconButton,{className:vn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:y.jsx(W.Box,{className:vn.stateLayer,children:y.jsx(gt.ZoomOutMap,{className:vn.icon,sx:p})})})]})};var oP=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const rP=ao(oP),sP="1.7.1";function yr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function gc(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?i(u.value):r(u.value).then(l,c)}d((o=o.apply(e,[])).next())})}const jn={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},iP="https://maps.googleapis.com/maps/api/js";class zi{static load(t,n){return gc(this,void 0,void 0,function*(){var o,r;const i=t.libraries?t.libraries.split(","):[],a=this.serializeParams(t);this.listeners.push(n),!((r=(o=window.google)===null||o===void 0?void 0:o.maps)===null||r===void 0)&&r.importLibrary?(this.serializedApiParams||(this.loadingStatus=jn.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=a,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==a&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const l=["maps",...i];yield Promise.all(l.map(c=>google.maps.importLibrary(c)))})}static serializeParams(t){return[t.v,t.key,t.language,t.region,t.authReferrerPolicy,t.solutionChannel].join("/")}static initImportLibrary(t){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary){console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");return}let n=null;const o=()=>n||(n=new Promise((r,i)=>{var a;const l=document.createElement("script"),c=new URLSearchParams;for(const[d,u]of Object.entries(t)){const f=d.replace(/[A-Z]/g,p=>"_"+p[0].toLowerCase());c.set(f,String(u))}c.set("loading","async"),c.set("callback","__googleMapsCallback__"),l.async=!0,l.src=iP+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=jn.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=jn.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=jn.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=jn.LOADING,this.notifyLoadingStatusListeners(),document.head.append(l)}),n);google.maps.importLibrary=r=>o().then(()=>google.maps.importLibrary(r))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}zi.loadingStatus=jn.NOT_LOADED;zi.listeners=[];const aP="GMP_visgl_rgmlibrary_v1_default",lP=[`gmp_visgl_reactgooglemaps_v${sP}`],Hs=k.createContext(null);function cP(){const[e,t]=k.useState({});return{mapInstances:e,addMapInstance:(i,a="default")=>{t(l=>Object.assign(Object.assign({},l),{[a]:i}))},removeMapInstance:(i="default")=>{t(a=>{var l=i;a[l];var c=yr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function uP(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=yr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=k.useState(zi.loadingStatus),[d,u]=k.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=k.useMemo(()=>i==null?void 0:i.join(","),[i]),p=k.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=k.useCallback(m=>gc(this,void 0,void 0,function*(){var g;if(d[m])return d[m];if(!(!((g=google==null?void 0:google.maps)===null||g===void 0)&&g.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const b=yield window.google.maps.importLibrary(m);return u({name:m,value:b}),b}),[d]);return k.useEffect(()=>{gc(this,void 0,void 0,function*(){try{const m=Object.assign({key:o},a);r&&(m.v=r),(f==null?void 0:f.length)>0&&(m.libraries=f),(m.channel===void 0||m.channel<0||m.channel>999)&&delete m.channel,m.solutionChannel===void 0?m.solutionChannel=aP:m.solutionChannel===""&&delete m.solutionChannel,yield zi.load(m,g=>c(g));for(const g of["core","maps",...i])yield h(g);t&&t()}catch(m){n?n(m):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",m)}})},[o,f,p]),{status:l,loadedLibraries:d,importLibrary:h}}function dP(e){return k.useMemo(()=>e.disableUsageAttribution?null:lP,[e.disableUsageAttribution])}const fP=e=>{const{children:t}=e,n=yr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=cP(),{status:l,loadedLibraries:c,importLibrary:d}=uP(n),u=dP(n),f=k.useMemo(()=>({mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a,status:l,loadedLibraries:c,importLibrary:d,internalUsageAttributionIds:u}),[o,r,i,a,l,c,d,u]);return k.createElement(Hs.Provider,{value:f},t)};function pP(e,t){for(const n of yP){const o=t[n],r=uy[n];k.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(hP(r,e,a))});return()=>i.remove()},[e,r,o])}}function hP(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(mP.includes(e)){const i=r,a=t.getCenter(),l=t.getZoom(),c=t.getHeading()||0,d=t.getTilt()||0,u=t.getBounds();return(!a||!u||!Number.isFinite(l))&&console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),i.detail={center:(a==null?void 0:a.toJSON())||{lat:0,lng:0},zoom:l||0,heading:c,tilt:d,bounds:(u==null?void 0:u.toJSON())||{north:90,east:180,south:-90,west:-180}},i}else if(gP.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const i=r;return i.domEvent=n.domEvent,i.stoppable=!0,i.stop=()=>n.stop(),i.detail={latLng:((o=n.latLng)===null||o===void 0?void 0:o.toJSON())||null,placeId:n.placeId},i}return r}const uy={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},mP=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],gP=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],yP=Object.keys(uy);function bP(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e}),t.current}function vP(e,t){const n=bP(e);return k.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function xP(e,t,n){k.useEffect(e,[vP(t,n)])}function CP(e,t){xP(e,t,rP)}const wP=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function SP(e,t){const n={},o=Object.keys(t);for(const r of o)wP.has(r)&&(n[r]=t[r]);CP(()=>{e&&e.setOptions(n)},[n])}function dy(){var e;return((e=k.useContext(Hs))===null||e===void 0?void 0:e.status)||jn.NOT_LOADED}function TP(e,t){const{viewport:n,viewState:o}=t,r=!!n;return k.useLayoutEffect(()=>{if(!e||!o)return;const{latitude:i,longitude:a,bearing:l,pitch:c,zoom:d}=o;e.moveCamera({center:{lat:i,lng:a},heading:l,tilt:c,zoom:d+1})},[e,o]),r}function PP(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function fy(e){return PP(e)?e:e.toJSON()}function EP(e,t,n){const o=n.center?fy(n.center):null;let r=null,i=null;o&&Number.isFinite(o.lat)&&Number.isFinite(o.lng)&&(r=o.lat,i=o.lng);const a=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;k.useLayoutEffect(()=>{if(!e)return;const d={};let u=!1;r!==null&&i!==null&&(t.current.center.lat!==r||t.current.center.lng!==i)&&(d.center={lat:r,lng:i},u=!0),a!==null&&t.current.zoom!==a&&(d.zoom=a,u=!0),l!==null&&t.current.heading!==l&&(d.heading=l,u=!0),c!==null&&t.current.tilt!==c&&(d.tilt=c,u=!0),u&&e.moveCamera(d)})}const MP=()=>{const e={position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"};return k.createElement("div",{style:e},k.createElement("h2",null,"Error: AuthFailure"),k.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",k.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function kP(){const[e,t]=k.useState(null),n=k.useCallback(o=>t(o),[t]);return[e,n]}function py(){return dy()===jn.LOADED}function OP(){const[,e]=k.useReducer(t=>t+1,0);return e}function DP(e,t){const n=e.getCenter(),o=e.getZoom(),r=e.getHeading()||0,i=e.getTilt()||0,a=e.getBounds();(!n||!a||!Number.isFinite(o))&&console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(n==null?void 0:n.toJSON())||{lat:0,lng:0},zoom:o||0,heading:r,tilt:i})}function IP(e){const t=OP(),n=k.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return k.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{DP(e,n),t()});return()=>o.remove()},[e,t]),n}class Mi{static has(t){return this.entries[t]&&this.entries[t].length>0}static pop(t){return this.entries[t]&&this.entries[t].pop()||null}static push(t,n){this.entries[t]||(this.entries[t]=[]),this.entries[t].push(n)}}Mi.entries={};function RP(e,t){const n=py(),[o,r]=k.useState(null),[i,a]=kP(),l=IP(o),{id:c,defaultBounds:d,defaultCenter:u,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:b}=e,v=yr(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),S=e.zoom!==void 0||e.defaultZoom!==void 0,w=e.center!==void 0||e.defaultCenter!==void 0;!d&&(!S||!w)&&console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!v.center&&u&&(v.center=u),!v.zoom&&Number.isFinite(f)&&(v.zoom=f),!v.heading&&Number.isFinite(p)&&(v.heading=p),!v.tilt&&Number.isFinite(h)&&(v.tilt=h);const C=v.internalUsageAttributionIds;C==null?v.internalUsageAttributionIds=t.internalUsageAttributionIds:v.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...C];for(const E of Object.keys(v))v[E]===void 0&&delete v[E];const T=k.useRef(void 0);return k.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:R}=e,D=`${R||"default"}:${g||"default"}:${b||"LIGHT"}`;let V,j;if(m&&Mi.has(D)?(j=Mi.pop(D),V=j.getDiv(),i.appendChild(V),j.setOptions(v),setTimeout(()=>j.setCenter(j.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",i.appendChild(V),j=new google.maps.Map(V,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),b?{colorScheme:b}:{}))),r(j),E(j,c),d){const{padding:x}=d,L=yr(d,["padding"]);j.fitBounds(L,x)}else(!S||!w)&&j.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:x,cameraState:L}=T.current;x!==R&&j.setOptions(L)}return()=>{T.current={mapId:R,cameraState:l.current},V.remove(),m?Mi.push(D,j):google.maps.event.clearInstanceListeners(j),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const hy=k.createContext(null),my=e=>{const{children:t,id:n,className:o,style:r}=e,i=k.useContext(Hs),a=dy();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,d]=RP(e,i);EP(l,d,e),pP(l,e),SP(l,e);const u=TP(l,e),f=!!e.controlled;k.useEffect(()=>{if(l)return u&&l.setOptions({disableDefaultUI:!0}),(u||f)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[l,u,f,e.gestureHandling,e.keyboardShortcuts]);const p=e.center?fy(e.center):null;let h=null,m=null;p&&Number.isFinite(p.lat)&&Number.isFinite(p.lng)&&(h=p.lat,m=p.lng);const g=k.useMemo(()=>{var S,w,C;return{center:{lat:h??0,lng:m??0},zoom:(S=e.zoom)!==null&&S!==void 0?S:0,heading:(w=e.heading)!==null&&w!==void 0?w:0,tilt:(C=e.tilt)!==null&&C!==void 0?C:0}},[h,m,e.zoom,e.heading,e.tilt]);k.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const S=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>S.remove()},[l,f,g]);const b=k.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:u?-1:0},r),[r,u]),v=k.useMemo(()=>({map:l}),[l]);return a===jn.AUTH_FAILURE?k.createElement("div",{style:Object.assign({position:"relative"},o?{}:b),className:o},k.createElement(MP,null)):k.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:b,className:o},n?{id:n}:{}),l?k.createElement(hy.Provider,{value:v},t):null)};my.deckGLViewProps=!0;const Dp=new Set;function AP(...e){const t=JSON.stringify(e);Dp.has(t)||(Dp.add(t),console.error(...e))}const va=(e=null)=>{const t=k.useContext(Hs),{map:n}=k.useContext(hy)||{};if(t===null)return AP("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:o}=t;return e!==null?o[e]||null:n||o.default||null};function _P(e){const t=py(),n=k.useContext(Hs);return k.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function ci(e,t,n){k.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function ui(e,t,n){k.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function Ip(e,t,n){k.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class NP{constructor(){this.renderedStyles=new Set,this.styleElement=null}getStyleElement(){return this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.setAttribute("data-rgm-anchor-styles",""),document.head.appendChild(this.styleElement)),this.styleElement}addAdvancedMarkerPointerEventsOverwrite(){if(this.renderedStyles.has("marker-pointer-events"))return;const t=this.getStyleElement();t.textContent+=`
105
+ `),()=>{T.contains(C)&&T.removeChild(C)}},[t]),b.jsx(C5,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const S5=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Lc(T5),f=O.useId();let p=!0,h=O.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:r,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;o&&o()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,o]);return i&&p&&(h={...h}),O.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),P.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=b.jsx(w5,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(ua.Provider,{value:h,children:e})};function T5(){return new Map}function Bg(e=!0){const t=O.useContext(ua);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=O.useId();O.useEffect(()=>{if(e)return r(i)},[e]);const a=O.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const oi=e=>e.key||"";function sp(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const ip=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,f]=Bg(a),p=O.useMemo(()=>sp(e),[e]),h=a&&!d?[]:p.map(oi),m=O.useRef(!0),g=O.useRef(p),y=Lc(()=>new Map),v=O.useRef(new Set),[S,w]=O.useState(p),[C,T]=O.useState(p);vm(()=>{m.current=!1,g.current=p;for(let I=0;I<C.length;I++){const D=oi(C[I]);h.includes(D)?(y.delete(D),v.current.delete(D)):y.get(D)!==!0&&y.set(D,!1)}},[C,h.length,h.join("-")]);const E=[];if(p!==S){let I=[...p];for(let D=0;D<C.length;D++){const V=C[D],j=oi(V);h.includes(j)||(I.splice(D,0,V),E.push(V))}return i==="wait"&&E.length&&(I=E),T(sp(I)),w(p),null}process.env.NODE_ENV!=="production"&&i==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=O.useContext(jc);return b.jsx(b.Fragment,{children:C.map(I=>{const D=oi(I),V=a&&!d?!1:p===C||h.includes(D),j=()=>{if(v.current.has(D))return;if(v.current.add(D),y.has(D))y.set(D,!0);else return;let x=!0;y.forEach(L=>{L||(x=!1)}),x&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(S5,{isPresent:V,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:V?void 0:j,anchorX:l,anchorY:c,children:I},D)})})},zg=O.createContext({strict:!1}),ap={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let lp=!1;function P5(){if(lp)return;const e={};for(const t in ap)e[t]={isEnabled:n=>ap[t].some(o=>!!n[o])};yg(e),lp=!0}function Hg(){return P5(),dS()}function E5(e){const t=Hg();for(const n in e)t[n]={...t[n],...e[n]};yg(t)}const M5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ji(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||M5.has(e)}let Wg=e=>!ji(e);function O5(e){typeof e=="function"&&(Wg=t=>t.startsWith("on")?!ji(t):e(t))}try{O5(require("@emotion/is-prop-valid").default)}catch{}function k5(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Wg(r)||n===!0&&ji(r)||!t&&!ji(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const pa=O.createContext({});function D5(e,t){if(fa(e)){const{initial:n,animate:o}=e;return{initial:n===!1||bs(n)?n:void 0,animate:bs(o)?o:void 0}}return e.inherit!==!1?t:{}}function R5(e){const{initial:t,animate:n}=D5(e,O.useContext(pa));return O.useMemo(()=>({initial:t,animate:n}),[cp(t),cp(n)])}function cp(e){return Array.isArray(e)?e.join(" "):e}const fu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ug(e,t,n){for(const o in t)!At(t[o])&&!Tg(o,n)&&(e[o]=t[o])}function I5({transformTemplate:e},t){return O.useMemo(()=>{const n=fu();return cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function A5(e,t){const n=e.style||{},o={};return Ug(o,n,e),Object.assign(o,I5(e,t)),o}function N5(e,t){const n={},o=A5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const Yg=()=>({...fu(),attrs:{}});function _5(e,t,n,o){const r=O.useMemo(()=>{const i=Yg();return Pg(i,t,Mg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ug(i,e.style,e),r.style={...i,...r.style}}return r}const j5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pu(e){return typeof e!="string"||e.includes("-")?!1:!!(j5.indexOf(e)>-1||/[A-Z]/u.test(e))}function L5(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??pu(e)?_5:N5)(t,o,r,e),u=k5(t,typeof e=="string",i),d=e!==O.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=O.useMemo(()=>At(f)?f.get():f,[f]);return O.createElement(e,{...d,children:p})}function V5({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:$5(n,o,r,e),renderState:t()}}function $5(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=Ci(i[p]);let{initial:a,animate:l}=e;const c=fa(e),u=gg(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!da(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=nu(e,p[h]);if(m){const{transitionEnd:g,transition:y,...v}=m;for(const S in v){let w=v[S];if(Array.isArray(w)){const C=d?w.length-1:0;w=w[C]}w!==null&&(r[S]=w)}for(const S in g)r[S]=g[S]}}}return r}const qg=e=>(t,n)=>{const o=O.useContext(pa),r=O.useContext(ua),i=()=>V5(e,t,o,r);return n?i():Lc(i)},F5=qg({scrapeMotionValuesFromProps:uu,createRenderState:fu}),B5=qg({scrapeMotionValuesFromProps:Og,createRenderState:Yg}),z5=Symbol.for("motionComponentSymbol");function H5(e,t,n){const o=O.useRef(n);O.useInsertionEffect(()=>{o.current=n});const r=O.useRef(null);return O.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=o.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):a(i);else a&&(a.current=i)},[t])}const Gg=O.createContext({});function Zr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function W5(e,t,n,o,r,i){var w,C;const{visualElement:a}=O.useContext(pa),l=O.useContext(zg),c=O.useContext(ua),u=O.useContext(du),d=u.reducedMotion,f=u.skipAnimations,p=O.useRef(null),h=O.useRef(!1);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const m=p.current,g=O.useContext(Gg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&U5(p.current,n,r,g);const y=O.useRef(!1);O.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[ng],S=O.useRef(!!v&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,v))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,v)));return vm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),S.current&&m.animationState&&m.animationState.animateChanges())}),O.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),S.current=!1),m.enteringChildren=void 0)}),m}function U5(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&Zr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function Zg(e){if(e)return e.options.allowProjection!==!1?e.projection:Zg(e.parent)}function cl(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&E5(o);const i=n?n==="svg":pu(e),a=i?B5:F5;function l(u,d){let f;const p={...O.useContext(du),...u,layoutId:Y5(u)},{isStatic:h}=p,m=R5(u),g=a(u,h);if(!h&&bm){q5(p,o);const y=G5(p);f=y.MeasureLayout,m.visualElement=W5(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(pa.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,L5(e,u,H5(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=O.forwardRef(l);return c[z5]=e,c}function Y5({layoutId:e}){const t=O.useContext(jc).id;return t&&e!==void 0?t+"-"+e:e}function q5(e,t){const n=O.useContext(zg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?wr(!1,o,"lazy-strict-mode"):jn(!1,o,"lazy-strict-mode")}}function G5(e){const t=Hg(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n!=null&&n.isEnabled(e)||o!=null&&o.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Z5(e,t){if(typeof Proxy>"u")return cl;const n=new Map,o=(i,a)=>cl(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&zc(!1,"motion() is deprecated. Use motion.create() instead."),o(i,a));return new Proxy(r,{get:(i,a)=>a==="create"?o:(n.has(a)||n.set(a,cl(a,void 0,e,t)),n.get(a))})}const K5=(e,t)=>t.isSVG??pu(e)?new OS(t):new wS(t,{allowProjection:e!==O.Fragment});class X5 extends io{constructor(t){super(t),t.animationState||(t.animationState=AS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();da(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Q5=0;class J5 extends io{constructor(){super(...arguments),this.id=Q5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const e3={animation:{Feature:X5},exit:{Feature:J5}};function Ns(e){return{point:{x:e.pageX,y:e.pageY}}}const t3=e=>t=>iu(t)&&e(t,Ns(t));function is(e,t,n,o){return vs(e,t,t3(n),o)}const Kg=({current:e})=>e?e.ownerDocument.defaultView:null,up=(e,t)=>Math.abs(e-t);function n3(e,t){const n=up(e.x,t.x),o=up(e.y,t.y);return Math.sqrt(n**2+o**2)}const dp=new Set(["auto","scroll"]);class Xg{constructor(t,n,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=dl(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=n3(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=kt;this.history.push({...y,timestamp:v});const{onStart:S,onMove:w}=this.handlers;m||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ul(m,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=dl(h.type==="pointercancel"?this.lastMoveEventInfo:ul(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,S),y&&y(h,S)},!iu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Ns(t),u=ul(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=kt;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,dl(u,this.history)),this.removeListeners=Rs(is(this.contextWindow,"pointermove",this.handlePointerMove),is(this.contextWindow,"pointerup",this.handlePointerUp),is(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(dp.has(o.overflowX)||dp.has(o.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:r.x-n.x,y:r.y-n.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,r),et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eo(this.updatePoint)}}function ul(e,t){return t?{point:t(e.point)}:e}function fp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dl({point:e},t){return{point:e,delta:fp(e,Qg(t)),offset:fp(e,o3(t)),velocity:r3(t,.1)}}function o3(e){return e[0]}function Qg(e){return e[e.length-1]}function r3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Qg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>wn(t)));)n--;if(!o)return{x:0,y:0};const i=Jt(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function s3(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?ct(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?ct(n,e,o.max):Math.min(e,n)),e}function pp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function i3(e,{top:t,left:n,bottom:o,right:r}){return{x:pp(e.x,n,r),y:pp(e.y,t,o)}}function hp(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function a3(e,t){return{x:hp(e.x,t.x),y:hp(e.y,t.y)}}function l3(e,t){let n=.5;const o=Vt(e),r=Vt(t);return r>o?n=ms(t.min,t.max-o,e.min):o>r&&(n=ms(e.min,e.max-r,t.min)),En(0,1,n)}function c3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ic=.35;function u3(e=ic){return e===!1?e=0:e===!0&&(e=ic),{x:mp(e,"left","right"),y:mp(e,"top","bottom")}}function mp(e,t,n){return{min:gp(e,t),max:gp(e,n)}}function gp(e,t){return typeof e=="number"?e:e[t]||0}const d3=new WeakMap;class f3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{n?(this.stopAnimation(),this.snapToCursor(Ns(f).point)):this.pauseAnimation()},a=(f,p)=>{this.stopAnimation();const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jw(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Kt(v=>{let S=this.getAxisMotionValue(v).get()||0;if(Sn.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[v];C&&(S=Vt(C)*(parseFloat(S)/100))}}this.originPoint[v]=S}),g&&et.postRender(()=>g(f,p)),Ql(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=p;if(m&&this.currentDirection===null){this.currentDirection=p3(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),y&&y(f,p)},c=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Kt(f=>{var p;return this.getAnimationState(f)==="paused"&&((p=this.getAxisMotionValue(f).animation)==null?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Xg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Kg(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ri(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=s3(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,r=this.constraints;t&&Zr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=i3(o.layoutBox,t):this.constraints=!1,this.elastic=u3(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Kt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=c3(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Zr(t))return!1;const o=t.current;jn(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=gS(o,r.root,this.visualElement.getTransformPagePoint());let a=a3(r.layout.layoutBox,i);if(n){const l=n(pS(a));this.hasMutatedConstraints=!!l,l&&(a=vg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Kt(d=>{if(!ri(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=r?200:1e6,h=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Ql(this.visualElement,t),o.start(tu(t,o,0,n,this.visualElement,!1))}stopAnimation(){Kt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Kt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Kt(n=>{const{drag:o}=this.getProps();if(!ri(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-ct(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Zr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Kt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=l3({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Kt(a=>{if(!ri(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(ct(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;d3.set(this.visualElement,this);const t=this.visualElement.current,n=is(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&pg(f);u&&d&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Zr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),et.read(o);const a=vs(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Kt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ic,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ri(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function p3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class h3 extends io{constructor(t){super(t),this.removeGroupControls=en,this.removeListeners=en,this.controls=new f3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const yp=e=>(t,n)=>{e&&et.postRender(()=>e(t,n))};class m3 extends io{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(t){this.session=new Xg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:yp(t),onStart:yp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&et.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=is(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let fl=!1;class g3 extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),fl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),fl=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||et.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),su.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;fl=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jg(e){const[t,n]=Bg(),o=O.useContext(jc);return b.jsx(g3,{...e,layoutGroup:o,switchLayoutGroup:O.useContext(Gg),isPresent:t,safeToRemove:n})}const y3={pan:{Feature:m3},drag:{Feature:h3,ProjectionNode:Fg,MeasureLayout:Jg}};function bp(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&et.postRender(()=>i(t,Ns(t)))}class b3 extends io{mount(){const{current:t}=this.node;t&&(this.unmount=eS(t,(n,o)=>(bp(this.node,o,"Start"),r=>bp(this.node,r,"End"))))}unmount(){}}class v3 extends io{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rs(vs(this.node.current,"focus",()=>this.onFocus()),vs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vp(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&et.postRender(()=>i(t,Ns(t)))}class x3 extends io{mount(){const{current:t}=this.node;t&&(this.unmount=oS(t,(n,o)=>(vp(this.node,o,"Start"),(r,{success:i})=>vp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ac=new WeakMap,pl=new WeakMap,C3=e=>{const t=ac.get(e.target);t&&t(e)},w3=e=>{e.forEach(C3)};function S3({root:e,...t}){const n=e||document;pl.has(n)||pl.set(n,{});const o=pl.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(w3,{root:e,...t})),o[r]}function T3(e,t,n){const o=S3(t);return ac.set(e,n),o.observe(e),()=>{ac.delete(e),o.unobserve(e)}}const P3={some:0,all:1};class E3 extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:P3[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return T3(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(M3(t,n))&&this.startObserver()}unmount(){}}function M3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const O3={inView:{Feature:E3},tap:{Feature:x3},focus:{Feature:v3},hover:{Feature:b3}},k3={layout:{ProjectionNode:Fg,MeasureLayout:Jg}},D3={...e3,...O3,...y3,...k3},Go=Z5(D3,K5),Mo=15.5,hl=18,R3=Mo,_s=({fill:e="#FDFCFC",size:t=18,className:n})=>b.jsxs("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:[b.jsx("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:e}),b.jsx("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:e}),b.jsx("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:e}),b.jsx("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:e}),b.jsx("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:e}),b.jsx("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:e})]});_s.displayName="FacialIcon";const js=({fill:e="#FDFCFC",size:t=18,className:n})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:b.jsx("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:e})});js.displayName="LPRIcon";const Ls="Facial",Vs="LPR",I3=[Ls,Vs];function A3(e,t){return e===Ls?b.jsx(_s,{fill:t,size:16}):e===Vs?b.jsx(js,{fill:t,size:16}):null}function N3(e,t=18,n){return e===Ls?b.jsx(_s,{fill:n,size:t}):e===Vs?b.jsx(js,{fill:n,size:t}):null}function _3(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&I3.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:A3(o,t)}))}const j3="_spotWrapper_p7ng0_1",L3="_mapSpot_p7ng0_8",V3="_selected_p7ng0_24",$3="_rotationLines_p7ng0_36",F3="_rotationLine_p7ng0_36",B3="_rotationLineInner_p7ng0_56",z3="_rotationConeSvg_p7ng0_63",H3="_rotationLineSvg_p7ng0_77",W3="_cameraButtonAtTip_p7ng0_89",U3="_cameraButtonSelected_p7ng0_107",Y3="_cameraButtonAtTipIcon_p7ng0_129",q3="_count_p7ng0_137",G3="_cameraTypesContainer_p7ng0_157",Z3="_cameraTypeItem_p7ng0_164",K3="_cameraTypeCount_p7ng0_171",X3="_cameraTypeIcon_p7ng0_182",It={spotWrapper:j3,mapSpot:L3,selected:V3,rotationLines:$3,rotationLine:F3,rotationLineInner:B3,rotationConeSvg:z3,rotationLineSvg:H3,cameraButtonAtTip:W3,cameraButtonSelected:U3,cameraButtonAtTipIcon:Y3,count:q3,cameraTypesContainer:G3,cameraTypeItem:Z3,cameraTypeCount:K3,cameraTypeIcon:X3},ey=({fill:e="#FAF9F9",className:t})=>b.jsxs("svg",{width:"12",height:"104",viewBox:"0 0 12 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[b.jsx("path",{d:"M6.27344 0.75C6.27344 0.335786 5.93765 1.81059e-08 5.52344 0C5.10922 -1.81059e-08 4.77344 0.335786 4.77344 0.75L5.52344 0.75L6.27344 0.75ZM4.99311 50.7803C5.286 51.0732 5.76087 51.0732 6.05377 50.7803L10.8267 46.0074C11.1196 45.7145 11.1196 45.2396 10.8267 44.9467C10.5338 44.6538 10.059 44.6538 9.76608 44.9467L5.52344 49.1893L1.2808 44.9467C0.987902 44.6538 0.513028 44.6538 0.220135 44.9467C-0.0727587 45.2396 -0.0727587 45.7145 0.220135 46.0074L4.99311 50.7803ZM5.52344 0.75L4.77344 0.75L4.77344 50.25L5.52344 50.25L6.27344 50.25L6.27344 0.75L5.52344 0.75Z",fill:e}),b.jsx("path",{d:"M6.27344 53.25C6.27344 52.8358 5.93765 52.5 5.52344 52.5C5.10922 52.5 4.77344 52.8358 4.77344 53.25L5.52344 53.25L6.27344 53.25ZM4.99311 103.28C5.286 103.573 5.76087 103.573 6.05377 103.28L10.8267 98.5074C11.1196 98.2145 11.1196 97.7396 10.8267 97.4467C10.5338 97.1538 10.059 97.1538 9.76608 97.4467L5.52344 101.689L1.2808 97.4467C0.987902 97.1538 0.513028 97.1538 0.220135 97.4467C-0.0727587 97.7396 -0.0727587 98.2145 0.220135 98.5074L4.99311 103.28ZM5.52344 53.25L4.77344 53.25L4.77344 102.75L5.52344 102.75L6.27344 102.75L6.27344 53.25L5.52344 53.25Z",fill:e})]});ey.displayName="ArrowIcon";const ty=({fill:e="#CEE643",className:t})=>{const n=`coneGradient-${Math.random().toString(36).substr(2,9)}`;return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"62",height:"122",viewBox:"0 0 62 122",fill:"none",className:t,children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:n,x1:"31",y1:"122",x2:"31",y2:"0",gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:"0",stopColor:e,stopOpacity:"0.02"}),b.jsx("stop",{offset:"0.5",stopColor:e,stopOpacity:"0.35"}),b.jsx("stop",{offset:"1",stopColor:e,stopOpacity:"0.7"})]})}),b.jsx("path",{d:"M32 -1.31134e-06L62 103.5C62 103.5 52.0001 121 31 121.5C9.99993 122 -7.09431e-07 103.5 -7.09431e-07 103.5L30 -1.39876e-06L32 -1.31134e-06Z",fill:`url(#${n})`})]})};ty.displayName="ConeIcon";const Q3=Go(q.Box),hu=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,selectedCameraId:i,isHighlighted:a,highlightedCameraId:l,disableClick:c=!1,className:u,onClick:d,onCameraClick:f,sx:p})=>{const m=q.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",y=O.useMemo(()=>_3(n,g),[n,g]),v=y&&y.length>0,S=n&&n.length===1,w=!r&&v&&(S||o>=Mo),C=m?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",T=m?"var(--Tertiary-Tertiary, #CEE643)":"var(--Tertiary-Tertiary, #44808C)",E=r||a?T:C,M=m?"#101111":"#ffffff",I=m?"#CEE643":"#44808C",D=8,V=n??[],j=r&&V.length>0;return b.jsxs("div",{className:It.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(ip,{children:j&&b.jsx(Go.div,{className:It.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:V.map((x,L)=>{const A=i===x.id||l===x.id,N=m?"#101111":"#FDFCFC";return b.jsx("div",{className:It.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${x.orientation??0}deg)`},children:b.jsxs(Go.div,{className:It.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ty,{fill:I,className:It.rotationConeSvg}),b.jsx(ey,{fill:M,className:It.rotationLineSvg}),b.jsx("button",{type:"button",className:`${It.cameraButtonAtTip} ${A?It.cameraButtonSelected:""}`,onClick:k=>{k.stopPropagation(),f==null||f(x)},"aria-label":`Câmera ${x.algorithm??"câmera"}`,children:b.jsx("span",{className:It.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(x.orientation??0)}deg)`},children:N3(x.algorithm,18,N)})})]})},x.id??L)})})}),b.jsx(Q3,{className:`${It.mapSpot} ${r?It.selected:""} ${u||""}`,onClick:c?void 0:d,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${D}px solid transparent`,borderRight:`${D}px solid transparent`,borderTop:`${D}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T:C,"--arrow-opacity":w?1:0,backgroundColor:E},animate:{width:w?"auto":r?34:30,height:w?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:w?"4px 8px":0,y:w?-D:0,"--arrow-opacity":w?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(ip,{mode:"wait",children:w?b.jsx(Go.div,{className:It.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((x,L)=>b.jsxs(Go.div,{className:It.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(q.Typography,{className:It.cameraTypeCount,children:x.count}),x.icon&&b.jsx(q.Box,{className:It.cameraTypeIcon,children:x.icon})]},L))},"expanded"):b.jsx(Go.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(q.Typography,{className:It.count,children:e})},"collapsed")})})]})};hu.displayName="MapSpot";const J3="_cameraCard_em7zr_2",eT="_clickable_em7zr_12",tT="_topContainer_em7zr_66",nT="_playOverlay_em7zr_80",oT="_playIcon_em7zr_96",rT="_mediaImage_em7zr_117",sT="_mediaPlaceholder_em7zr_124",iT="_offlinePlaceholder_em7zr_130",aT="_offlinePlaceholderIcon_em7zr_141",lT="_offlinePlaceholderText_em7zr_147",cT="_menuButton_em7zr_155",uT="_menuButtonIcon_em7zr_174",dT="_closeButton_em7zr_180",fT="_closeButtonIcon_em7zr_199",pT="_bottomContainer_em7zr_205",hT="_infoRow_em7zr_218",mT="_iconWrapper_em7zr_226",gT="_cameraIcon_em7zr_233",yT="_cameraTypeImage_em7zr_240",bT="_headerText_em7zr_248",vT="_pointNameText_em7zr_265",xT="_addressText_em7zr_280",CT="_tagsContainer_em7zr_297",wT="_tag_em7zr_297",ST="_tagOverflow_em7zr_313",TT="_recordingButtonContainer_em7zr_335",PT="_menuButtonInline_em7zr_344",ET="_menuButtonInlineIcon_em7zr_363",MT="_recordingButton_em7zr_335",OT="_recordingButtonIcon_em7zr_394",kT="_recordingButtonText_em7zr_397",DT="_cameraCardMenuPaper_em7zr_428",RT="_cameraCardMenuList_em7zr_452",IT="_cameraCardMenuItem_em7zr_460",AT="_menuItemDisabled_em7zr_499",NT="_cameraCardMenuItemText_em7zr_505",Ie={cameraCard:J3,clickable:eT,topContainer:tT,playOverlay:nT,playIcon:oT,mediaImage:rT,mediaPlaceholder:sT,offlinePlaceholder:iT,offlinePlaceholderIcon:aT,offlinePlaceholderText:lT,menuButton:cT,menuButtonIcon:uT,closeButton:dT,closeButtonIcon:fT,bottomContainer:pT,infoRow:hT,iconWrapper:mT,cameraIcon:gT,cameraTypeImage:yT,headerText:bT,pointNameText:vT,addressText:xT,tagsContainer:CT,tag:wT,tagOverflow:ST,recordingButtonContainer:TT,menuButtonInline:PT,menuButtonInlineIcon:ET,recordingButton:MT,recordingButtonIcon:OT,recordingButtonText:kT,cameraCardMenuPaper:DT,cameraCardMenuList:RT,cameraCardMenuItem:IT,menuItemDisabled:AT,cameraCardMenuItemText:NT};function _T(e,t){const n=t?"#FAF9F9":"#000000";return e===Ls?b.jsx(_s,{fill:n,size:20,className:Ie.cameraTypeImage}):e===Vs?b.jsx(js,{fill:n,size:20,className:Ie.cameraTypeImage}):b.jsx(Ct.VideocamOutlined,{className:Ie.cameraIcon,style:{color:n}})}const jT=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u,recordingButton:d,onClose:f,onClick:p,actionsDisabled:h,offline:m})=>{const y=ae.useTheme().palette.mode==="dark",v=O.useRef(null),S=O.useRef(!1),[w,C]=O.useState(!1),T=((l==null?void 0:l.length)??0)>0||c,E=((l==null?void 0:l.length)??0)>0,M=r.length>0?r[0]:null,I=r.length>1?r.length-1:0,D=r.length>1?r.join(", "):"",V=[t,o].filter(Boolean).join(", ");return b.jsxs(q.Box,{className:`${Ie.cameraCard} ${p?Ie.clickable:""} ${u||""}`.trim(),"data-theme":y?"dark":"light",onClick:()=>{S.current||p==null||p()},sx:{"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[b.jsxs(q.Box,{className:Ie.topContainer,children:[m?b.jsxs(q.Box,{className:Ie.offlinePlaceholder,"aria-label":"Câmera offline",children:[b.jsx(Ct.VideocamOff,{className:Ie.offlinePlaceholderIcon}),b.jsx("span",{className:Ie.offlinePlaceholderText,children:"Imagem não disponível"})]}):i?b.jsx("img",{src:i,alt:"",className:Ie.mediaImage}):b.jsx(q.Box,{className:Ie.mediaPlaceholder,"aria-hidden":!0}),b.jsx(q.Box,{className:Ie.playOverlay,children:b.jsx(Ct.PlayCircleOutline,{className:Ie.playIcon})}),!d&&M&&b.jsx(q.Tooltip,{title:D,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:b.jsxs(q.Box,{className:Ie.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[b.jsx("span",{className:Ie.tag,children:M}),I>0&&b.jsxs("span",{className:Ie.tagOverflow,children:["+",I]})]})}),f&&b.jsx(q.IconButton,{onClick:j=>{j.stopPropagation(),f()},className:Ie.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(Ct.Close,{className:Ie.closeButtonIcon})}),T&&!d&&b.jsx(q.IconButton,{ref:v,onClick:j=>{j.stopPropagation(),E?C(!0):c==null||c()},className:Ie.menuButton,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":w,size:"small",children:b.jsx(Ct.MoreHoriz,{className:Ie.menuButtonIcon})})]}),E&&b.jsx(q.Popover,{open:w,anchorEl:v.current,onClose:()=>{C(!1),S.current=!0,requestAnimationFrame(()=>{S.current=!1})},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:b.jsx(q.Box,{className:Ie.cameraCardMenuPaper,"data-theme":y?"dark":"light",children:b.jsx(q.Box,{className:Ie.cameraCardMenuList,role:"menu",children:l.map(j=>b.jsx("button",{type:"button",className:`${Ie.cameraCardMenuItem} ${h?Ie.menuItemDisabled:""}`,role:"menuitem",disabled:h,onClick:()=>{var x;h||((x=j.onClick)==null||x.call(j),C(!1))},children:b.jsx("span",{className:Ie.cameraCardMenuItemText,children:j.label})},j.label))})})}),b.jsxs(q.Box,{className:`${Ie.bottomContainer} bottom-container`,children:[b.jsxs(q.Box,{className:Ie.infoRow,children:[b.jsx(q.Box,{className:Ie.iconWrapper,children:_T(a,y)}),b.jsx(q.Tooltip,{title:e,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ie.headerText,children:e})})]}),n&&b.jsx(q.Tooltip,{title:n,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ie.pointNameText,children:n})}),V&&b.jsx(q.Tooltip,{title:V,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ie.addressText,children:V})}),d&&b.jsxs(q.Box,{className:Ie.recordingButtonContainer,children:[T&&b.jsx(q.IconButton,{ref:v,onClick:()=>{E?C(!0):c==null||c()},className:Ie.menuButtonInline,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":w,size:"small",children:b.jsx(Ct.MoreHoriz,{className:Ie.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:Ie.recordingButton,onClick:j=>{j.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(Ct.VideocamOutlined,{className:Ie.recordingButtonIcon}),b.jsx("span",{className:Ie.recordingButtonText,children:"Ver gravação"})]})]})]})]})},LT=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},VT=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},$T="_container_1whpg_2",FT="_zoomButton_1whpg_10",BT="_stateLayer_1whpg_43",zT="_icon_1whpg_59",bn={container:$T,zoomButton:FT,stateLayer:BT,icon:zT},HT=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=q.useTheme().palette.mode==="dark",u=LT(e,o,i),d=VT(e,o,r,i),f={backgroundColor:c?"#DEDDDD":"#101111","&:hover":{backgroundColor:c?"#DEDDDD":"#101111",opacity:.9}},p={fill:c?"#101111":"#FDFCFC",color:c?"#101111":"#FDFCFC"};return b.jsxs(q.Box,{className:`${bn.container} ${t||""}`,sx:n,children:[b.jsx(q.IconButton,{className:bn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(q.Box,{className:bn.stateLayer,children:b.jsx(Ct.Add,{className:bn.icon,sx:p})})}),b.jsx(q.IconButton,{className:bn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(q.Box,{className:bn.stateLayer,children:b.jsx(Ct.Remove,{className:bn.icon,sx:p})})}),b.jsx(q.IconButton,{className:bn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(q.Box,{className:bn.stateLayer,children:b.jsx(Ct.ZoomOutMap,{className:bn.icon,sx:p})})})]})};var WT=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const UT=oo(WT),YT="1.7.1";function pr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function lc(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):r(d.value).then(l,c)}u((o=o.apply(e,[])).next())})}const In={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},qT="https://maps.googleapis.com/maps/api/js";class Li{static load(t,n){return lc(this,void 0,void 0,function*(){var o,r;const i=t.libraries?t.libraries.split(","):[],a=this.serializeParams(t);this.listeners.push(n),!((r=(o=window.google)===null||o===void 0?void 0:o.maps)===null||r===void 0)&&r.importLibrary?(this.serializedApiParams||(this.loadingStatus=In.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=a,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==a&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const l=["maps",...i];yield Promise.all(l.map(c=>google.maps.importLibrary(c)))})}static serializeParams(t){return[t.v,t.key,t.language,t.region,t.authReferrerPolicy,t.solutionChannel].join("/")}static initImportLibrary(t){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary){console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");return}let n=null;const o=()=>n||(n=new Promise((r,i)=>{var a;const l=document.createElement("script"),c=new URLSearchParams;for(const[u,d]of Object.entries(t)){const f=u.replace(/[A-Z]/g,p=>"_"+p[0].toLowerCase());c.set(f,String(d))}c.set("loading","async"),c.set("callback","__googleMapsCallback__"),l.async=!0,l.src=qT+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=In.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=In.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=In.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=In.LOADING,this.notifyLoadingStatusListeners(),document.head.append(l)}),n);google.maps.importLibrary=r=>o().then(()=>google.maps.importLibrary(r))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}Li.loadingStatus=In.NOT_LOADED;Li.listeners=[];const GT="GMP_visgl_rgmlibrary_v1_default",ZT=[`gmp_visgl_reactgooglemaps_v${YT}`],$s=O.createContext(null);function KT(){const[e,t]=O.useState({});return{mapInstances:e,addMapInstance:(i,a="default")=>{t(l=>Object.assign(Object.assign({},l),{[a]:i}))},removeMapInstance:(i="default")=>{t(a=>{var l=i;a[l];var c=pr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function XT(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=pr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=O.useState(Li.loadingStatus),[u,d]=O.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=O.useMemo(()=>i==null?void 0:i.join(","),[i]),p=O.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=O.useCallback(m=>lc(this,void 0,void 0,function*(){var g;if(u[m])return u[m];if(!(!((g=google==null?void 0:google.maps)===null||g===void 0)&&g.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const y=yield window.google.maps.importLibrary(m);return d({name:m,value:y}),y}),[u]);return O.useEffect(()=>{lc(this,void 0,void 0,function*(){try{const m=Object.assign({key:o},a);r&&(m.v=r),(f==null?void 0:f.length)>0&&(m.libraries=f),(m.channel===void 0||m.channel<0||m.channel>999)&&delete m.channel,m.solutionChannel===void 0?m.solutionChannel=GT:m.solutionChannel===""&&delete m.solutionChannel,yield Li.load(m,g=>c(g));for(const g of["core","maps",...i])yield h(g);t&&t()}catch(m){n?n(m):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",m)}})},[o,f,p]),{status:l,loadedLibraries:u,importLibrary:h}}function QT(e){return O.useMemo(()=>e.disableUsageAttribution?null:ZT,[e.disableUsageAttribution])}const JT=e=>{const{children:t}=e,n=pr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=KT(),{status:l,loadedLibraries:c,importLibrary:u}=XT(n),d=QT(n),f=O.useMemo(()=>({mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a,status:l,loadedLibraries:c,importLibrary:u,internalUsageAttributionIds:d}),[o,r,i,a,l,c,u,d]);return O.createElement($s.Provider,{value:f},t)};function eP(e,t){for(const n of rP){const o=t[n],r=ny[n];O.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(tP(r,e,a))});return()=>i.remove()},[e,r,o])}}function tP(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(nP.includes(e)){const i=r,a=t.getCenter(),l=t.getZoom(),c=t.getHeading()||0,u=t.getTilt()||0,d=t.getBounds();return(!a||!d||!Number.isFinite(l))&&console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),i.detail={center:(a==null?void 0:a.toJSON())||{lat:0,lng:0},zoom:l||0,heading:c,tilt:u,bounds:(d==null?void 0:d.toJSON())||{north:90,east:180,south:-90,west:-180}},i}else if(oP.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const i=r;return i.domEvent=n.domEvent,i.stoppable=!0,i.stop=()=>n.stop(),i.detail={latLng:((o=n.latLng)===null||o===void 0?void 0:o.toJSON())||null,placeId:n.placeId},i}return r}const ny={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},nP=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],oP=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],rP=Object.keys(ny);function sP(e){const t=O.useRef(void 0);return O.useEffect(()=>{t.current=e}),t.current}function iP(e,t){const n=sP(e);return O.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function aP(e,t,n){O.useEffect(e,[iP(t,n)])}function lP(e,t){aP(e,t,UT)}const cP=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function uP(e,t){const n={},o=Object.keys(t);for(const r of o)cP.has(r)&&(n[r]=t[r]);lP(()=>{e&&e.setOptions(n)},[n])}function oy(){var e;return((e=O.useContext($s))===null||e===void 0?void 0:e.status)||In.NOT_LOADED}function dP(e,t){const{viewport:n,viewState:o}=t,r=!!n;return O.useLayoutEffect(()=>{if(!e||!o)return;const{latitude:i,longitude:a,bearing:l,pitch:c,zoom:u}=o;e.moveCamera({center:{lat:i,lng:a},heading:l,tilt:c,zoom:u+1})},[e,o]),r}function fP(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function ry(e){return fP(e)?e:e.toJSON()}function pP(e,t,n){const o=n.center?ry(n.center):null;let r=null,i=null;o&&Number.isFinite(o.lat)&&Number.isFinite(o.lng)&&(r=o.lat,i=o.lng);const a=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;O.useLayoutEffect(()=>{if(!e)return;const u={};let d=!1;r!==null&&i!==null&&(t.current.center.lat!==r||t.current.center.lng!==i)&&(u.center={lat:r,lng:i},d=!0),a!==null&&t.current.zoom!==a&&(u.zoom=a,d=!0),l!==null&&t.current.heading!==l&&(u.heading=l,d=!0),c!==null&&t.current.tilt!==c&&(u.tilt=c,d=!0),d&&e.moveCamera(u)})}const hP=()=>{const e={position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"};return O.createElement("div",{style:e},O.createElement("h2",null,"Error: AuthFailure"),O.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",O.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function mP(){const[e,t]=O.useState(null),n=O.useCallback(o=>t(o),[t]);return[e,n]}function sy(){return oy()===In.LOADED}function gP(){const[,e]=O.useReducer(t=>t+1,0);return e}function yP(e,t){const n=e.getCenter(),o=e.getZoom(),r=e.getHeading()||0,i=e.getTilt()||0,a=e.getBounds();(!n||!a||!Number.isFinite(o))&&console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(n==null?void 0:n.toJSON())||{lat:0,lng:0},zoom:o||0,heading:r,tilt:i})}function bP(e){const t=gP(),n=O.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return O.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{yP(e,n),t()});return()=>o.remove()},[e,t]),n}class Si{static has(t){return this.entries[t]&&this.entries[t].length>0}static pop(t){return this.entries[t]&&this.entries[t].pop()||null}static push(t,n){this.entries[t]||(this.entries[t]=[]),this.entries[t].push(n)}}Si.entries={};function vP(e,t){const n=sy(),[o,r]=O.useState(null),[i,a]=mP(),l=bP(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=pr(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),S=e.zoom!==void 0||e.defaultZoom!==void 0,w=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!S||!w)&&console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!v.center&&d&&(v.center=d),!v.zoom&&Number.isFinite(f)&&(v.zoom=f),!v.heading&&Number.isFinite(p)&&(v.heading=p),!v.tilt&&Number.isFinite(h)&&(v.tilt=h);const C=v.internalUsageAttributionIds;C==null?v.internalUsageAttributionIds=t.internalUsageAttributionIds:v.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...C];for(const E of Object.keys(v))v[E]===void 0&&delete v[E];const T=O.useRef(void 0);return O.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:I}=e,D=`${I||"default"}:${g||"default"}:${y||"LIGHT"}`;let V,j;if(m&&Si.has(D)?(j=Si.pop(D),V=j.getDiv(),i.appendChild(V),j.setOptions(v),setTimeout(()=>j.setCenter(j.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",i.appendChild(V),j=new google.maps.Map(V,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(j),E(j,c),u){const{padding:x}=u,L=pr(u,["padding"]);j.fitBounds(L,x)}else(!S||!w)&&j.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:x,cameraState:L}=T.current;x!==I&&j.setOptions(L)}return()=>{T.current={mapId:I,cameraState:l.current},V.remove(),m?Si.push(D,j):google.maps.event.clearInstanceListeners(j),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const iy=O.createContext(null),ay=e=>{const{children:t,id:n,className:o,style:r}=e,i=O.useContext($s),a=oy();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=vP(e,i);pP(l,u,e),eP(l,e),uP(l,e);const d=dP(l,e),f=!!e.controlled;O.useEffect(()=>{if(l)return d&&l.setOptions({disableDefaultUI:!0}),(d||f)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[l,d,f,e.gestureHandling,e.keyboardShortcuts]);const p=e.center?ry(e.center):null;let h=null,m=null;p&&Number.isFinite(p.lat)&&Number.isFinite(p.lng)&&(h=p.lat,m=p.lng);const g=O.useMemo(()=>{var S,w,C;return{center:{lat:h??0,lng:m??0},zoom:(S=e.zoom)!==null&&S!==void 0?S:0,heading:(w=e.heading)!==null&&w!==void 0?w:0,tilt:(C=e.tilt)!==null&&C!==void 0?C:0}},[h,m,e.zoom,e.heading,e.tilt]);O.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const S=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>S.remove()},[l,f,g]);const y=O.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),v=O.useMemo(()=>({map:l}),[l]);return a===In.AUTH_FAILURE?O.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},O.createElement(hP,null)):O.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?O.createElement(iy.Provider,{value:v},t):null)};ay.deckGLViewProps=!0;const xp=new Set;function xP(...e){const t=JSON.stringify(e);xp.has(t)||(xp.add(t),console.error(...e))}const ha=(e=null)=>{const t=O.useContext($s),{map:n}=O.useContext(iy)||{};if(t===null)return xP("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:o}=t;return e!==null?o[e]||null:n||o.default||null};function CP(e){const t=sy(),n=O.useContext($s);return O.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function si(e,t,n){O.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function ii(e,t,n){O.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function Cp(e,t,n){O.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class wP{constructor(){this.renderedStyles=new Set,this.styleElement=null}getStyleElement(){return this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.setAttribute("data-rgm-anchor-styles",""),document.head.appendChild(this.styleElement)),this.styleElement}addAdvancedMarkerPointerEventsOverwrite(){if(this.renderedStyles.has("marker-pointer-events"))return;const t=this.getStyleElement();t.textContent+=`
106
106
  gmp-advanced-marker[data-origin='rgm'] {
107
107
  pointer-events: none !important;
108
108
  }
109
- `,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const jP=new NP;function LP(e,t){var n;if(!(!((n=google==null?void 0:google.maps)===null||n===void 0)&&n.version))return;const o=google.maps.version.split("."),r=parseInt(o[0],10),i=parseInt(o[1],10);return r>e||r===e&&i>=t}const VP=k.createContext(null),$P={BOTTOM:["50%","100%"]},gy=k.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=BP(e),c=k.useMemo(()=>a?{marker:a}:null,[a]);return k.useImperativeHandle(t,()=>a,[a]),l?k.createElement(VP.Provider,{value:c},nr.createPortal(k.createElement(FP,{anchorPoint:i,styles:o,className:r},n),l)):null});gy.displayName="AdvancedMarker";function yc(e){return e.nodeType===Node.ELEMENT_NODE}const FP=({children:e,styles:t,className:n})=>k.createElement("div",{className:n,style:t},e);function BP(e){const[t,n]=k.useState(null),[o,r]=k.useState(null),i=va(),a=_P("marker"),{children:l,onClick:c,className:d,onMouseEnter:u,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:b,draggable:v,position:S,title:w,zIndex:C,anchorPoint:T,anchorLeft:E,anchorTop:M}=e,R=k.Children.count(l);return k.useEffect(()=>{if(!i||!a)return;const D=new a.AdvancedMarkerElement;D.map=i,n(D);let V=null;return R>0&&(V=document.createElement("div"),D.content=V,r(V)),()=>{D.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,R]),k.useEffect(()=>{!(t!=null&&t.content)||!yc(t.content)||R>0||(t.content.className=d??"")},[t,d,R]),zP(t,T,E,M,R>0),ui(t,"position",S),ui(t,"title",w??""),ui(t,"zIndex",C),ui(t,"collisionBehavior",g),k.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),k.useEffect(()=>{if(!t)return;const D=b!==void 0||!!c||!!u||!!f;t.gmpClickable=D,D&&(t!=null&&t.content)&&yc(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,b,c,u,f]),ci(t,"click",c),ci(t,"drag",p),ci(t,"dragstart",h),ci(t,"dragend",m),Ip(t==null?void 0:t.element,"mouseenter",u),Ip(t==null?void 0:t.element,"mouseleave",f),[t,o]}function zP(e,t,n,o,r){k.useEffect(()=>{if(!e||!r)return;const i=LP(3,62),a=e.content;if(!(!a||!yc(a))){if(n!==void 0||o!==void 0){i||console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`),e.anchorLeft=n,e.anchorTop=o,t!==void 0&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");return}if(t!==void 0){const[l,c]=t??$P.BOTTOM,d=`calc(-1 * ${l})`,u=`calc(-1 * ${c})`;i?(e.anchorLeft=d,e.anchorTop=u,a.style.transform=""):(a.style.transform=`translate(50%, 100%) translate(${d}, ${u})`,e.dataset.origin="rgm",jP.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function HP(e){const[t,n]=k.useState(null),o=va(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:d}=e,u=yr(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=u;return k.useEffect(()=>{if(!o){o===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(u);return h.setMap(o),n(h),()=>{h.setMap(null),n(null)}},[o]),k.useEffect(()=>{if(!t)return;const h=t,m=google.maps.event;return r&&m.addListener(h,"click",r),i&&m.addListener(h,"drag",i),a&&m.addListener(h,"dragstart",a),l&&m.addListener(h,"dragend",l),c&&m.addListener(h,"mouseover",c),d&&m.addListener(h,"mouseout",d),t.setDraggable(!!p),()=>{m.clearInstanceListeners(h)}},[t,p,r,i,a,l,c,d]),k.useEffect(()=>{t&&u&&t.setOptions(u)},[t,u]),k.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const WP=k.forwardRef((e,t)=>{const n=HP(e);return k.useImperativeHandle(t,()=>n,[n]),k.createElement(k.Fragment,null)});WP.displayName="Marker";const yy=k.createContext(void 0),Tu=()=>{const e=k.useContext(yy);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},Pu=({children:e})=>{const t=va(),[n,o]=k.useState(13),[r,i]=k.useState(null),a=k.useRef([]),l=k.useCallback(()=>{a.current.forEach(u=>clearTimeout(u)),a.current=[]},[]);k.useEffect(()=>{if(!t)return;const u=t.getZoom();u!==void 0&&o(u);const f=t.getBounds();if(f){const m=f.getNorthEast(),g=f.getSouthWest(),b=[g.lng(),g.lat(),m.lng(),m.lat()];i(b)}const p=t.addListener("zoom_changed",()=>{const m=t.getZoom();m!==void 0&&o(m)}),h=t.addListener("bounds_changed",()=>{const m=t.getBounds();if(m){const g=m.getNorthEast(),b=m.getSouthWest(),v=[b.lng(),b.lat(),g.lng(),g.lat()];i(v)}});return()=>{p&&google.maps.event.removeListener(p),h&&google.maps.event.removeListener(h),l()}},[t,l]);const c=k.useCallback((u,f=16)=>{if(!t)return;l();const p=t.getZoom()??13,h=Math.abs(f-p);if(h<=2){t.panTo(u),t.setZoom(f);return}const m=f>p?1:-1,g=Math.ceil(h),b=60;t.panTo(u);for(let v=1;v<=g;v++){const S=v===g?f:p+m*v,w=window.setTimeout(()=>{t.setZoom(S)},b*v);a.current.push(w)}},[t,l]),d=(u,f)=>{t&&t.fitBounds(u,f)};return t?y.jsx(yy.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:c,fitBounds:d},children:e}):null};Pu.displayName="MapContent";const UP=180,by=()=>{const{map:e}=Tu(),t=k.useRef(null),n=k.useRef(null);return k.useEffect(()=>{if(!e||!t.current)return;const o=new ResizeObserver(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{try{google.maps.event.trigger(e,"resize")}finally{n.current=null}},UP)});return o.observe(t.current),()=>{n.current&&clearTimeout(n.current),o.disconnect()}},[e]),y.jsx("div",{ref:t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",visibility:"hidden"}})};by.displayName="MapResizeHandler";const YP="_googleMap_1gh3l_1",qP="_container_1gh3l_14",GP="_errorContainer_1gh3l_29",di={googleMap:YP,container:qP,errorContainer:GP},KP={lat:-26.3044,lng:-48.8487},ZP=13,XP={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},QP=({options:e,onLoad:t,children:n})=>{const o=va();return k.useEffect(()=>{o&&(o.setOptions(XP),e&&o.setOptions(e),t&&t(o))},[o,e,t]),y.jsx(y.Fragment,{children:n})},vy=({center:e=KP,zoom:t=ZP,className:n,children:o,apiKey:r,mapId:i,themeMode:a="light",options:l,onLoad:c,onError:d})=>{if(!r||!i)return y.jsx("div",{className:`${di.container} ${di.errorContainer} ${n||""}`,children:y.jsxs("div",{children:[y.jsx("p",{children:"Google Maps não configurado"}),y.jsx("p",{style:{fontSize:"14px",marginTop:"8px",opacity:.7},children:"As props apiKey e mapId são obrigatórias"})]})});const u=a==="dark"?"DARK":"LIGHT",f={defaultCenter:e,defaultZoom:t,mapId:i,className:di.googleMap,colorScheme:u},p=`${i}-${u}`;return y.jsx(fP,{apiKey:r,onLoad:()=>{console.log("Google Maps API carregada com sucesso")},onError:h=>{console.error("Erro ao carregar Google Maps API:",h),d&&h instanceof Error&&d(h)},children:y.jsx("div",{className:`${di.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:y.jsx(my,{...f,style:{width:"100%",height:"100%"},children:y.jsx(QP,{options:l,onLoad:c,children:y.jsxs(Pu,{children:[y.jsx(by,{}),o]})})},p)})})};vy.displayName="GoogleMap";const Rp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],xl=1,$r=8;class Eu{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,o]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const r=o>>4;if(r!==xl)throw new Error(`Got v${r} data when expected v${xl}.`);const i=Rp[o&15];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,2,1),[l]=new Uint32Array(t,4,1);return new Eu(l,a,i,t)}constructor(t,n=64,o=Float64Array,r){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=o,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=Rp.indexOf(this.ArrayType),a=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,$r,t),this.coords=new this.ArrayType(this.data,$r+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer($r+a+l+c),this.ids=new this.IndexArrayType(this.data,$r,t),this.coords=new this.ArrayType(this.data,$r+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(xl<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const o=this._pos>>1;return this.ids[o]=o,this.coords[this._pos++]=t,this.coords[this._pos++]=n,o}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return bc(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,o,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this,c=[0,i.length-1,0],d=[];for(;c.length;){const u=c.pop()||0,f=c.pop()||0,p=c.pop()||0;if(f-p<=l){for(let b=p;b<=f;b++){const v=a[2*b],S=a[2*b+1];v>=t&&v<=o&&S>=n&&S<=r&&d.push(i[b])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&d.push(i[h]),(u===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-u)),(u===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-u))}return d}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],d=o*o;for(;l.length;){const u=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let b=p;b<=f;b++)Ap(i[2*b],i[2*b+1],t,n)<=d&&c.push(r[b]);continue}const h=p+f>>1,m=i[2*h],g=i[2*h+1];Ap(m,g,t,n)<=d&&c.push(r[h]),(u===0?t-o<=m:n-o<=g)&&(l.push(p),l.push(h-1),l.push(1-u)),(u===0?t+o>=m:n+o>=g)&&(l.push(h+1),l.push(f),l.push(1-u))}return c}}function bc(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;xy(e,t,a,o,r,i),bc(e,t,n,o,a-1,1-i),bc(e,t,n,a+1,r,1-i)}function xy(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const d=r-o+1,u=n-o+1,f=Math.log(d),p=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*p*(d-p)/d)*(u-d/2<0?-1:1),m=Math.max(o,Math.floor(n-u*p/d+h)),g=Math.min(r,Math.floor(n+(d-u)*p/d+h));xy(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(Fr(e,t,o,n),t[2*r+i]>a&&Fr(e,t,o,r);l<c;){for(Fr(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?Fr(e,t,o,c):(c++,Fr(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function Fr(e,t,n,o){Cl(e,n,o),Cl(t,2*n,2*o),Cl(t,2*n+1,2*o+1)}function Cl(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function Ap(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const JP={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},_p=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),bo=2,Kn=3,wl=4,qn=5,Cy=6;class e6{constructor(t){this.options=Object.assign(Object.create(JP),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:o,maxZoom:r}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const a=[];for(let c=0;c<t.length;c++){const d=t[c];if(!d.geometry)continue;const[u,f]=d.geometry.coordinates,p=_p(fi(u)),h=_p(pi(f));a.push(p,h,1/0,c,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[r+1]=this._createTree(a);n&&console.timeEnd(i);for(let c=r;c>=o;c--){const d=+Date.now();l=this.trees[c]=this._createTree(this._cluster(l,c)),n&&console.log("z%d: %d clusters in %dms",c,l.numItems,+Date.now()-d)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let o=((t[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,i=180;else if(o>i){const f=this.getClusters([o,r,180,a],n),p=this.getClusters([-180,r,i,a],n);return f.concat(p)}const l=this.trees[this._limitZoom(n)],c=l.range(fi(o),pi(a),fi(i),pi(r)),d=l.data,u=[];for(const f of c){const p=this.stride*f;u.push(d[p+qn]>1?Np(d,p,this.clusterProps):this.points[d[p+Kn]])}return u}getChildren(t){const n=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[o];if(!i)throw new Error(r);const a=i.data;if(n*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,o-1)),c=a[n*this.stride],d=a[n*this.stride+1],u=i.within(c,d,l),f=[];for(const p of u){const h=p*this.stride;a[h+wl]===t&&f.push(a[h+qn]>1?Np(a,h,this.clusterProps):this.points[a[h+Kn]])}if(f.length===0)throw new Error(r);return f}getLeaves(t,n,o){n=n||10,o=o||0;const r=[];return this._appendLeaves(r,t,n,o,0),r}getTile(t,n,o){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:l}=this.options,c=l/a,d=(o-c)/i,u=(o+1+c)/i,f={features:[]};return this._addTileFeatures(r.range((n-c)/i,d,(n+1+c)/i,u),r.data,n,o,i,f),n===0&&this._addTileFeatures(r.range(1-c/i,d,1,u),r.data,i,o,i,f),n===i-1&&this._addTileFeatures(r.range(0,d,c/i,u),r.data,-1,o,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const o=this.getChildren(t);if(n++,o.length!==1)break;t=o[0].properties.cluster_id}return n}_appendLeaves(t,n,o,r,i){const a=this.getChildren(n);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(t,c.cluster_id,o,r,i):i<r?i++:t.push(l),t.length===o)break}return i}_createTree(t){const n=new Eu(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let o=0;o<t.length;o+=this.stride)n.add(t[o],t[o+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,o,r,i,a){for(const l of t){const c=l*this.stride,d=n[c+qn]>1;let u,f,p;if(d)u=wy(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Kn]];u=g.properties;const[b,v]=g.geometry.coordinates;f=fi(b),p=pi(v)}const h={type:1,geometry:[[Math.round(this.options.extent*(f*i-o)),Math.round(this.options.extent*(p*i-r))]],tags:u};let m;d||this.options.generateId?m=n[c+Kn]:m=this.points[n[c+Kn]].id,m!==void 0&&(h.id=m),a.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:o,extent:r,reduce:i,minPoints:a}=this.options,l=o/(r*Math.pow(2,n)),c=t.data,d=[],u=this.stride;for(let f=0;f<c.length;f+=u){if(c[f+bo]<=n)continue;c[f+bo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+qn];let b=g;for(const v of m){const S=v*u;c[S+bo]>n&&(b+=c[S+qn])}if(b>g&&b>=a){let v=p*g,S=h*g,w,C=-1;const T=((f/u|0)<<5)+(n+1)+this.points.length;for(const E of m){const M=E*u;if(c[M+bo]<=n)continue;c[M+bo]=n;const R=c[M+qn];v+=c[M]*R,S+=c[M+1]*R,c[M+wl]=T,i&&(w||(w=this._map(c,f,!0),C=this.clusterProps.length,this.clusterProps.push(w)),i(w,this._map(c,M)))}c[f+wl]=T,d.push(v/b,S/b,1/0,T,-1,b),i&&d.push(C)}else{for(let v=0;v<u;v++)d.push(c[f+v]);if(b>1)for(const v of m){const S=v*u;if(!(c[S+bo]<=n)){c[S+bo]=n;for(let w=0;w<u;w++)d.push(c[S+w])}}}}return d}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,o){if(t[n+qn]>1){const a=this.clusterProps[t[n+Cy]];return o?Object.assign({},a):a}const r=this.points[t[n+Kn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Np(e,t,n){return{type:"Feature",id:e[t+Kn],properties:wy(e,t,n),geometry:{type:"Point",coordinates:[t6(e[t]),n6(e[t+1])]}}}function wy(e,t,n){const o=e[t+qn],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+Cy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Kn],point_count:o,point_count_abbreviated:r})}function fi(e){return e/360+.5}function pi(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function t6(e){return(e-.5)*360}function n6(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const o6={radius:30,maxZoom:13,minZoom:0,minPoints:2};function jp(e){return e.isCluster?`c_${e.lat.toFixed(6)}_${e.lng.toFixed(6)}_${e.pointCount}_${e.count}`:`s_${e.id}`}function r6(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].id!==t[n].id||e[n].algorithm!==t[n].algorithm||e[n].orientation!==t[n].orientation)return!1;return!0}function s6(e,t){return!(e.lat!==t.lat||e.lng!==t.lng||e.count!==t.count||e.isCluster!==t.isCluster||e.pointCount!==t.pointCount||e.addressText!==t.addressText||!r6(e.cameras,t.cameras))}function i6(e,t){if(e.length===0)return t;const n=new Map;for(const i of e)n.set(jp(i),i);let o=!1;const r=t.map(i=>{const a=jp(i),l=n.get(a);return l&&s6(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function a6(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function l6(e,t,n,o={}){const r=k.useRef(null),[i,a]=k.useState([]),l=k.useRef(""),c={...o6,...o};return k.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const d=a6(e);if(d===l.current&&r.current)return;l.current=d;const u=e.map(f=>({type:"Feature",properties:f,geometry:{type:"Point",coordinates:[f.lng,f.lat]}}));r.current||(r.current=new e6({radius:c.radius,maxZoom:c.maxZoom,minZoom:c.minZoom,minPoints:c.minPoints})),r.current.load(u)},[e,c.radius,c.maxZoom,c.minZoom,c.minPoints]),k.useEffect(()=>{if(!r.current||!n){a(e);return}const u=r.current.getClusters(n,Math.floor(t)).map(f=>{const[p,h]=f.geometry.coordinates,m=f.properties;if(m.cluster){const g=m.cluster_id,b=r.current.getLeaves(g,1/0),v=b.flatMap(w=>w.properties.cameras||[]),S=b.reduce((w,C)=>w+C.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:S,cameras:v,isCluster:!0,pointCount:m.point_count,clusterId:g}}else{const g=m;return{id:g.id,lat:h,lng:p,count:g.count,addressText:g.addressText,cameras:g.cameras}}});a(f=>i6(f,u))},[e,t,n]),i}const Lp=k.memo(function({spot:t,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onSpotClick:d,onCameraClick:u}){const f=k.useCallback(()=>d(t),[d,t]),p=k.useCallback(h=>u==null?void 0:u(h,t),[u,t]);return y.jsx(gy,{position:{lat:t.lat,lng:t.lng},onClick:f,children:y.jsx(Su,{count:t.count,addressText:t.addressText,cameras:t.cameras,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onCameraClick:u?p:void 0})})}),Sy=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=U3,selectedZoomLevel:r=vl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:d,animateOnClick:u,disableClick:f,expandAll:p})=>{const{isLoaded:h,currentZoom:m,bounds:g,zoomToPosition:b}=Tu(),v=(a==null?void 0:a.id)??i,{spotsForClustering:S,pinnedSpot:w}=k.useMemo(()=>{if(v==null)return{spotsForClustering:e,pinnedSpot:null};const M=e.find(D=>D.id===v)??null;return M?{spotsForClustering:e.filter(D=>D.id!==v),pinnedSpot:M}:{spotsForClustering:e,pinnedSpot:null}},[e,v]),C=l6(S,m,g),T=k.useCallback(M=>{M.isCluster?b({lat:M.lat,lng:M.lng},Io):f?b({lat:M.lat,lng:M.lng},m<Io?Io:r??o):(a?a.id===M.id:i===M.id)?t==null||t(M):m<Io?(b({lat:M.lat,lng:M.lng},Io),t==null||t(M)):(m<(r??vl)&&b({lat:M.lat,lng:M.lng},r??vl),t==null||t(M))},[b,f,a,i,m,r,o,t]),E=k.useCallback(M=>!c&&!d?!1:!M.isCluster&&M.id===c?!0:M.isCluster&&d&&M.cameras?M.cameras.some(R=>R.id===d):!1,[c,d]);return h?y.jsxs(y.Fragment,{children:[C.map((M,R)=>{const D=!M.isCluster&&String(M.id)===String(c);return y.jsx(Lp,{spot:M,currentZoom:m,isSelected:!!p||D,selectedCameraId:l,isHighlighted:E(M),highlightedCameraId:D?d:void 0,animateOnClick:u,disableClick:f,onSpotClick:T,onCameraClick:n},M.id??R)}),w&&y.jsx(Lp,{spot:w,currentZoom:m,isSelected:!0,selectedCameraId:l,isHighlighted:String(w.id)===String(c),highlightedCameraId:String(w.id)===String(c)?d:void 0,animateOnClick:u,disableClick:f,onSpotClick:T,onCameraClick:n},`pinned-${w.id}`)]}):null};Sy.displayName="MapMarkers";const c6="_searchBar_8uyup_1",u6="_startIconContainer_8uyup_112",d6="_endIconContainer_8uyup_123",f6="_endIconContainerClickable_8uyup_159",p6="_defaultIcon_8uyup_163",es={searchBar:c6,startIconContainer:u6,endIconContainer:d6,endIconContainerClickable:f6,defaultIcon:p6},h6=e=>()=>{e&&e()},m6=e=>t=>{e&&e(t)},g6=()=>y.jsx(gt.Search,{className:es.defaultIcon}),y6=e=>e||g6(),Mu=k.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const u=W.useTheme().palette.mode==="dark",f=y6(t),p=h6(n),h=m6(i);return y.jsx(W.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${es.searchBar} ${a||""}`,"data-theme":u?"dark":"light",InputProps:{startAdornment:e?y.jsx(W.InputAdornment,{position:"start",className:es.startIconContainer,children:e}):null,endAdornment:y.jsx(W.InputAdornment,{position:"end",className:`${es.endIconContainer} ${n?es.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});Mu.displayName="SearchBar";const b6=st(y.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),v6=st([y.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),y.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),x6="_container_1mb8b_1",C6="_iconWrapper_1mb8b_11",w6="_icon_1mb8b_11",S6="_title_1mb8b_21",T6="_subtitle_1mb8b_30",P6="_description_1mb8b_34",E6="_button_1mb8b_38",vo={container:x6,iconWrapper:C6,icon:w6,title:S6,subtitle:T6,description:P6,button:E6},Ty=({onGoHome:e,buttonText:t="Voltar para o início",title:n="Página não encontrada",description:o="Desculpe, a página que você está procurando não existe ou foi movida para outro endereço.",errorCode:r="404",className:i})=>y.jsx(W.Container,{maxWidth:"sm",children:y.jsxs(W.Box,{className:`${vo.container} ${i||""}`,children:[y.jsx(W.Box,{className:vo.iconWrapper,children:y.jsx(v6,{className:vo.icon,color:"primary"})}),y.jsx(W.Typography,{variant:"h1",className:vo.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),y.jsx(W.Typography,{variant:"h4",component:"h2",className:vo.subtitle,color:"text.primary",children:n}),y.jsx(W.Typography,{variant:"body1",className:vo.description,color:"text.secondary",children:o}),e&&y.jsx(Lc,{variant:"contained",size:"large",startIcon:y.jsx(b6,{}),onClick:e,className:vo.button,children:t})]})});Ty.displayName="NotFoundContent";const M6=e=>{const t=e.find(o=>o.active),n=e.flatMap(o=>{var r;return((r=o.submenu)==null?void 0:r.map(i=>({item:o,subItem:i})))??[]}).find(({subItem:o})=>o.active);return{itemId:(n==null?void 0:n.item.id)??(t==null?void 0:t.id)??null,subItemId:(n==null?void 0:n.subItem.id)??null,expandedItemId:(n==null?void 0:n.item.id)??null}},k6=({items:e,isExpanded:t=!0,onClick:n})=>{const o=k.useMemo(()=>M6(e),[e]),[r,i]=k.useState(o.itemId),[a,l]=k.useState(o.subItemId),[c,d]=k.useState(o.expandedItemId),[u,f]=k.useState(null),[p,h]=k.useState(null);k.useEffect(()=>{i(o.itemId),l(o.subItemId),d(o.expandedItemId)},[o.itemId,o.subItemId,o.expandedItemId]);const m=p?e.find(E=>E.id===p):void 0,g=(m==null?void 0:m.submenu)??[];return{selectedItemId:r,selectedSubItemId:a,expandedItemId:c,submenuAnchorEl:u,submenuItem:m,submenuItems:g,getIsItemActive:E=>{var R;const M=a?!!((R=E.submenu)!=null&&R.some(D=>D.id===a)):!1;return r?E.id===r:!!(E.active||M)},getIsSubItemActive:E=>a?E.id===a:!!E.active,shouldShowSubmenu:E=>{var M;return!!(t&&((M=E.submenu)!=null&&M.length)&&c===E.id)},handleItemClick:(E,M)=>{var R,D;i(E.id),l(null),(R=E.submenu)!=null&&R.length?t?d(V=>V===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(d(null),f(null),h(null)),(D=E.onClick)==null||D.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,R,D)=>{var V;i(E.id),l(M.id),D!=null&&D.closeMenu&&(f(null),h(null)),(V=M.onClick)==null||V.call(M,R),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},Py=e=>typeof e=="number"?`${e*4}px`:e,O6=({item:e,onClick:t,isActive:n})=>{const o=ae.useTheme();return y.jsx(W.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:Py(o.shape.borderRadius),px:2,py:1.25,justifyContent:"flex-start",textAlign:"left",color:o.palette.text.primary,backgroundColor:n?o.palette.action.selected:"transparent","&:hover":{backgroundColor:o.palette.action.hover}},children:y.jsx(W.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},Ey=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ae.useTheme(),i=Py(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:d,getIsSubItemActive:u,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=k6({items:e,isExpanded:t,onClick:o});return y.jsxs(W.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const b=d(g),v=f(g),S=t?r.spacing(2):r.spacing(4),w=t&&b?r.palette.primary.main:"transparent",C=t?"transparent":b?r.palette.primary.main:"transparent",T=b?r.palette.primary.contrastText:r.palette.text.primary;return y.jsxs(W.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[y.jsx(W.ButtonBase,{onClick:R=>p(g,R),"aria-label":g.label,"aria-pressed":b||void 0,"aria-haspopup":(E=g.submenu)!=null&&E.length?"menu":void 0,sx:{width:"100%",borderRadius:i,px:t?2:1,py:t?1.5:1,minHeight:t?56:32,justifyContent:t?"flex-start":"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"padding 0.2s ease, min-height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",color:t&&b?r.palette.primary.contrastText:r.palette.text.primary,backgroundColor:w,boxShadow:t&&b?r.shadows[1]:"none","&:hover":{backgroundColor:t&&!b?r.palette.action.hover:w}},children:y.jsxs(W.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:.25,sx:{width:"100%"},children:[y.jsx(W.Box,{sx:{width:56,height:S,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:C,color:T,transition:r.transitions.create(["background-color","box-shadow"],{duration:r.transitions.duration.shortest}),...t?{}:{boxShadow:b?r.shadows[1]:"none","&:hover":{backgroundColor:b?ae.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),y.jsx(W.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:b?600:500,fontSize:t?"14px":"10px"},children:g.label}),t&&g.trailingIcon?y.jsx(W.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?y.jsx(W.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:y.jsx(W.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(R=>{const D=u(R);return y.jsx(O6,{item:R,isActive:D,onClick:V=>h(g,R,V)},R.id)})})}):null]},g.id)}),y.jsx(W.Menu,{anchorEl:a,open:!!(a&&c.length),onClose:m,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},MenuListProps:{dense:!0,"aria-label":(l==null?void 0:l.label)??"submenu"},PaperProps:{sx:{borderRadius:i,minWidth:r.spacing(22),px:1,py:.5,boxShadow:r.shadows[3],backgroundImage:"none"}},children:c.map(g=>{const b=u(g);return y.jsx(W.MenuItem,{selected:b,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:b?600:500},children:g.label},g.id)})})]})};Ey.displayName="SidebarMenu";const D6=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},I6=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=k.useMemo(()=>D6(e),[e]),[r,i]=k.useState(o),[a,l]=k.useState(null);k.useEffect(()=>{i(o)},[o]);const c=r?e.find(h=>h.id===r):void 0;return{selectedItemId:r,selectedItem:c,menuAnchorEl:a,getIsItemActive:h=>r?h.id===r:!!h.active,openMenu:h=>{n||l(h.currentTarget)},closeMenu:()=>{n||l(null)},handleItemClick:(h,m)=>{var g;i(h.id),(g=h.onClick)==null||g.call(h,m),t==null||t(h),l(null)}}},R6=e=>typeof e=="number"?`${e*4}px`:e,My=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:d})=>{var O,N;const u=ae.useTheme(),f=k.useRef(null),p=R6(u.shape.borderRadius),[h,m]=k.useState(!1),g=k.useMemo(()=>Number.parseFloat(u.spacing(2).toString()),[u]),{selectedItem:b,menuAnchorEl:v,getIsItemActive:S,openMenu:w,closeMenu:C,handleItemClick:T}=I6({items:e,onSelect:d,isExpanded:l}),E=t??(b==null?void 0:b.label)??((O=e[0])==null?void 0:O.label)??"",M=o??(b==null?void 0:b.icon)??((N=e[0])==null?void 0:N.icon)??null,R=l||!M,D=$=>{if(l){m(F=>!F);return}w($)},V=($,F)=>{T($,F),m(!1)},j=y.jsx(W.Stack,{direction:"column",spacing:.5,children:e.map($=>{const F=S($);return y.jsxs(W.MenuItem,{selected:F,onClick:B=>V($,B),sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:u.palette.text.primary,"&:hover":{backgroundColor:u.palette.action.hover}},children:[$.icon?y.jsx(W.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:$.icon}):null,y.jsx(W.Typography,{sx:{fontSize:14,fontWeight:F?600:500},children:$.label})]},$.id)})}),x=y.jsxs(W.Box,{sx:{borderRadius:"16px 16px 8px 8px",backgroundColor:u.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026",display:"flex",flexDirection:"column",maxHeight:u.spacing(62)},children:[i?y.jsx(W.Box,{sx:{px:2,pt:2,pb:1},children:y.jsx(W.Typography,{variant:"subtitle2",sx:{color:u.palette.text.primary},children:i})}):null,y.jsx(W.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0,"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:u.palette.action.disabled,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:u.palette.action.active},scrollbarWidth:"thin",scrollbarColor:`${u.palette.action.disabled} transparent`},children:j})]}),L=a?y.jsxs(W.MenuItem,{onClick:$=>{var F;m(!1),C(),(F=a.onClick)==null||F.call(a,$)},sx:{borderRadius:"12px",gap:1.5,px:2,py:1.25,color:u.palette.text.primary,"&:hover":{backgroundColor:u.palette.action.hover}},children:[a.icon?y.jsx(W.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,y.jsx(W.Typography,{sx:{fontSize:14,fontWeight:500},children:a.label})]}):null,A=L?y.jsx(W.Box,{sx:{borderRadius:"8px",backgroundColor:u.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026"},children:L}):null,_=y.jsxs(W.Stack,{direction:"column",spacing:.25,sx:{minWidth:u.spacing(32)},children:[x,A]});return y.jsxs(W.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[y.jsx(W.ButtonBase,{onClick:D,"aria-label":E,ref:f,sx:{width:l?u.spacing(28):"64px",height:l?"auto":"64px",borderRadius:"12px",px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"width 0.2s ease, height 0.2s ease, padding 0.2s ease",backgroundColor:u.palette.mode==="light"?"#C7C6C6":u.palette.action.hover,"&:hover":{backgroundColor:u.palette.mode==="light"?"#B8B7B7":u.palette.action.selected}},children:y.jsxs(W.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[M?y.jsx(W.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,R?y.jsxs(W.Box,{sx:{minWidth:0,flex:1},children:[n?y.jsx(W.Typography,{variant:"caption",sx:{color:u.palette.text.secondary},children:n}):null,y.jsx(W.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?y.jsx(W.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?y.jsx(W.ClickAwayListener,{onClickAway:()=>m(!1),children:y.jsx(W.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:u.zIndex.modal},children:_})}):null:y.jsx(W.Menu,{anchorEl:v,open:!!v,onClose:C,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},disableAutoFocusItem:!0,slotProps:{paper:{sx:{borderRadius:p,p:0,ml:2,backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},MenuListProps:{"aria-label":E?`menu-${E}`:"menu",sx:{p:0}},children:_})]})};My.displayName="ModuleMenu";const xa=e=>e.seekable&&e.seekable.length>0?e.seekable.end(e.seekable.length-1):Number.isFinite(e.duration)&&e.duration>0?e.duration:e.currentTime,ts=(e,t,n,o,r)=>{if(n<=1)return{panX:0,panY:0};const i=o*(1-1/n)/2,a=r*(1-1/n)/2;return{panX:Math.max(-i,Math.min(i,e)),panY:Math.max(-a,Math.min(a,t))}},A6=(e,t,n)=>({...e&&{"--player-width":typeof e=="number"?`${e}px`:e},...t&&{"--player-height":typeof t=="number"?`${t}px`:t},...n&&{"--player-aspect-ratio":n}}),Ln={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function ky(e){return"init"in e}function vc(e){return!!e.write}function Vp(e){return"v"in e||"e"in e}function Hi(e){if("e"in e)throw e.e;if((Ln?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Wi=new WeakMap;function Oy(e){var t;return Ui(e)&&!!((t=Wi.get(e))!=null&&t[0])}function _6(e){const t=Wi.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function xc(e,t){let n=Wi.get(e);if(!n){n=[!0,new Set],Wi.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function Ui(e){return typeof(e==null?void 0:e.then)=="function"}function Dy(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function Iy(e,t,n){var o;const r=new Set;for(const i of((o=n.get(e))==null?void 0:o.t)||[])r.add(i);for(const i of t.p)r.add(i);return r}const N6=(e,t,...n)=>t.read(...n),j6=(e,t,...n)=>t.write(...n),L6=(e,t)=>{if(t.INTERNAL_onInit)return t.INTERNAL_onInit(e);if(t.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),t.unstable_onInit(e)},V6=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},$6=(e,t)=>{var n;const o=jt(e),r=o[0],i=o[6],a=o[9];if((Ln?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=r.get(t);return l||(l={d:new Map,p:new Set,n:0},r.set(t,l),(n=i.i)==null||n.call(i,t),a==null||a(e,t)),l},F6=e=>{const t=jt(e),n=t[1],o=t[3],r=t[4],i=t[5],a=t[6],l=t[13],c=[],d=u=>{try{u()}catch(f){c.push(f)}};do{a.f&&d(a.f);const u=new Set,f=u.add.bind(u);o.forEach(p=>{var h;return(h=n.get(p))==null?void 0:h.l.forEach(f)}),o.clear(),i.forEach(f),i.clear(),r.forEach(f),r.clear(),u.forEach(d),o.size&&l(e)}while(o.size||i.size||r.size);if(c.length)throw new AggregateError(c)},B6=e=>{const t=jt(e),n=t[1],o=t[2],r=t[3],i=t[11],a=t[14],l=t[17],c=[],d=new WeakSet,u=new WeakSet,f=Array.from(r);for(;f.length;){const p=f[f.length-1],h=i(e,p);if(u.has(p)){f.pop();continue}if(d.has(p)){if(o.get(p)===h.n)c.push([p,h]);else if((Ln?"production":void 0)!=="production"&&o.has(p))throw new Error("[Bug] invalidated atom exists");u.add(p),f.pop();continue}d.add(p);for(const m of Iy(p,h,n))d.has(m)||f.push(m)}for(let p=c.length-1;p>=0;--p){const[h,m]=c[p];let g=!1;for(const b of m.d.keys())if(b!==h&&r.has(b)){g=!0;break}g&&(a(e,h),l(e,h)),o.delete(h)}},Cc=new WeakSet,z6=(e,t)=>{var n,o;const r=jt(e),i=r[1],a=r[2],l=r[3],c=r[6],d=r[7],u=r[11],f=r[12],p=r[13],h=r[14],m=r[16],g=r[17],b=r[20],v=u(e,t);if(Vp(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let D=!1;for(const[V,j]of v.d)if(h(e,V).n!==j){D=!0;break}if(!D)return v}v.d.clear();let S=!0;function w(){i.has(t)&&(g(e,t),p(e),f(e))}function C(D){var V;if(D===t){const x=u(e,D);if(!Vp(x))if(ky(D))b(e,D,D.init);else throw new Error("no atom init");return Hi(x)}const j=h(e,D);try{return Hi(j)}finally{v.d.set(D,j.n),Oy(v.v)&&Dy(t,v.v,j),i.has(t)&&((V=i.get(D))==null||V.t.add(t)),S||w()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(Ln?"production":void 0)!=="production"&&!vc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&vc(t)&&(E=(...D)=>{if((Ln?"production":void 0)!=="production"&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,t,...D)}finally{p(e),f(e)}}),E}},R=v.n;try{(Ln?"production":void 0)!=="production"&&Cc.delete(e);const D=d(e,t,C,M);return(Ln?"production":void 0)!=="production"&&Cc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,t,D),Ui(D)&&(xc(D,()=>T==null?void 0:T.abort()),D.then(w,w)),(n=c.r)==null||n.call(c,t),v}catch(D){return delete v.v,v.e=D,++v.n,v}finally{S=!1,R!==v.n&&a.get(t)===R&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},H6=(e,t)=>{const n=jt(e),o=n[1],r=n[2],i=n[11],a=[t];for(;a.length;){const l=a.pop(),c=i(e,l);for(const d of Iy(l,c,o)){const u=i(e,d);r.set(d,u.n),a.push(d)}}},W6=(e,t,...n)=>{const o=jt(e),r=o[3],i=o[6],a=o[8],l=o[11],c=o[12],d=o[13],u=o[14],f=o[15],p=o[16],h=o[17],m=o[20];let g=!0;const b=S=>Hi(u(e,S)),v=(S,...w)=>{var C;const T=l(e,S);try{if(S===t){if(!ky(S))throw new Error("atom not writable");(Ln?"production":void 0)!=="production"&&Cc.add(e);const E=T.n,M=w[0];m(e,S,M),h(e,S),E!==T.n&&(r.add(S),f(e,S),(C=i.c)==null||C.call(i,S));return}else return p(e,S,...w)}finally{g||(d(e),c(e))}};try{return a(e,t,b,v,...n)}finally{g=!1}},U6=(e,t)=>{var n;const o=jt(e),r=o[1],i=o[3],a=o[6],l=o[11],c=o[15],d=o[18],u=o[19],f=l(e,t),p=r.get(t);if(p&&!Oy(f.v)){for(const[h,m]of f.d)if(!p.d.has(h)){const g=l(e,h);d(e,h).t.add(t),p.d.add(h),m!==g.n&&(i.add(h),c(e,h),(n=a.c)==null||n.call(a,h))}for(const h of p.d)if(!f.d.has(h)){p.d.delete(h);const m=u(e,h);m==null||m.t.delete(t)}}},Y6=(e,t)=>{var n;const o=jt(e),r=o[1],i=o[4],a=o[6],l=o[10],c=o[11],d=o[12],u=o[13],f=o[14],p=o[16],h=o[18],m=c(e,t);let g=r.get(t);if(!g){f(e,t);for(const b of m.d.keys())h(e,b).t.add(t);if(g={l:new Set,d:new Set(m.d.keys()),t:new Set},r.set(t,g),vc(t)){const b=()=>{let v=!0;const S=(...w)=>{try{return p(e,t,...w)}finally{v||(u(e),d(e))}};try{const w=l(e,t,S);w&&(g.u=()=>{v=!0;try{w()}finally{v=!1}})}finally{v=!1}};i.add(b)}(n=a.m)==null||n.call(a,t)}return g},q6=(e,t)=>{var n,o;const r=jt(e),i=r[1],a=r[5],l=r[6],c=r[11],d=r[19],u=c(e,t);let f=i.get(t);if(!f||f.l.size)return f;let p=!1;for(const h of f.t)if((n=i.get(h))!=null&&n.d.has(t)){p=!0;break}if(!p){f.u&&a.add(f.u),f=void 0,i.delete(t);for(const h of u.d.keys()){const m=d(e,h);m==null||m.t.delete(t)}(o=l.u)==null||o.call(l,t);return}return f},G6=(e,t,n)=>{const o=jt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(Ui(n))for(const l of r.d.keys())Dy(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,Ui(a)&&_6(a))},K6=(e,t)=>{const n=jt(e)[14];return Hi(n(e,t))},Z6=(e,t,...n)=>{const o=jt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},X6=(e,t,n)=>{const o=jt(e),r=o[12],i=o[18],a=o[19],c=i(e,t).l;return c.add(n),r(e),()=>{c.delete(n),a(e,t),r(e)}},Ry=new WeakMap,jt=e=>{const t=Ry.get(e);if((Ln?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function Q6(...e){const t={get(o){const r=jt(t)[21];return r(t,o)},set(o,...r){const i=jt(t)[22];return i(t,o,...r)},sub(o,r){const i=jt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},N6,j6,L6,V6,$6,F6,B6,z6,H6,W6,U6,Y6,q6,G6,K6,Z6,X6,void 0].map((o,r)=>e[r]||o);return Ry.set(t,Object.freeze(n)),t}const Ay={};let J6=0;function ku(e,t){const n=`atom${++J6}`,o={toString(){return(Ay?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=eE,o.write=tE),o}function eE(e){return e(this)}function tE(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function nE(){return Q6()}let Br;function oE(){return Br||(Br=nE(),(Ay?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Br),globalThis.__JOTAI_DEFAULT_STORE__!==Br&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Br}const rE={},sE=k.createContext(void 0);function _y(e){return k.useContext(sE)||oE()}const wc=e=>typeof(e==null?void 0:e.then)=="function",Sc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},iE=k.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(Sc(e),e)}),Sl=new WeakMap,$p=(e,t)=>{let n=Sl.get(e);return n||(n=new Promise((o,r)=>{let i=e;const a=d=>u=>{i===d&&o(u)},l=d=>u=>{i===d&&r(u)},c=()=>{try{const d=t();wc(d)?(Sl.set(d,n),i=d,d.then(a(d),l(d)),xc(d,c)):o(d)}catch(d){r(d)}};e.then(a(e),l(e)),xc(e,c)}),Sl.set(e,n)),n};function Ny(e,t){const{delay:n,unstable_promiseStatus:o=!k.use}={},r=_y(),[[i,a,l],c]=k.useReducer(u=>{const f=r.get(e);return Object.is(u[0],f)&&u[1]===r&&u[2]===e?u:[f,r,e]},void 0,()=>[r.get(e),r,e]);let d=i;if((a!==r||l!==e)&&(c(),d=r.get(e)),k.useEffect(()=>{const u=r.sub(e,()=>{if(o)try{const f=r.get(e);wc(f)&&Sc($p(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),u},[r,e,n,o]),k.useDebugValue(d),wc(d)){const u=$p(d,()=>r.get(e));return o&&Sc(u),iE(u)}return d}function aE(e,t){const n=_y();return k.useCallback((...r)=>{if((rE?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Yi(e,t){return[Ny(e),aE(e)]}const jy=ku(0),Ly=ku(!0),lE=ku(null),Vy=k.createContext(null),$y=k.createContext(null),Fy=({children:e})=>{const t=k.useRef(null),[n,o]=Yi(jy),[r,i]=Yi(Ly),[a,l]=k.useState(!1),[c,d]=k.useState(0),[u,f]=k.useState(!1),p=k.useRef(a);p.current=a,k.useEffect(()=>{const E=t.current;if(!E)return;const M=()=>{if(E.seekable&&E.seekable.length>0){const V=E.seekable.end(E.seekable.length-1);d(V),f(V>0)}else E.duration&&isFinite(E.duration)&&(d(E.duration),f(!0))},R=()=>l(!0),D=()=>l(!1);return E.addEventListener("durationchange",M),E.addEventListener("loadedmetadata",M),E.addEventListener("play",R),E.addEventListener("pause",D),M(),()=>{E.removeEventListener("durationchange",M),E.removeEventListener("loadedmetadata",M),E.removeEventListener("play",R),E.removeEventListener("pause",D)}},[]);const h=k.useCallback(E=>{o(E)},[o]),m=k.useCallback(E=>{i(E)},[i]),g=k.useRef(u);g.current=u;const b=k.useCallback(E=>{const M=t.current;!M||!g.current||(M.currentTime=E,o(E),i(!1))},[o,i]),v=k.useCallback(async()=>{const E=t.current;if(E)try{await E.play(),l(!0)}catch(M){console.error("Failed to play video:",M)}},[]),S=k.useCallback(()=>{const E=t.current;E&&(E.pause(),l(!1))},[]),w=k.useCallback(()=>{p.current?S():v()},[v,S]),C=k.useMemo(()=>({videoRef:t,setCurrentTime:h,setIsLive:m,seekTo:b,play:v,pause:S,togglePlay:w}),[h,m,b,v,S,w]),T=k.useMemo(()=>({currentTime:n,isLive:r,isPlaying:a,duration:c,canSeek:u}),[n,r,a,c,u]);return y.jsx(Vy.Provider,{value:C,children:y.jsx($y.Provider,{value:T,children:e})})},Ca=()=>{const e=k.useContext(Vy),t=k.useContext($y);return k.useMemo(()=>!e||!t?null:{...e,...t},[e,t])},cE=()=>{const e=Ca();if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e};function uE(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=e.getTracks().map(r=>r.id).sort(),o=t.getTracks().map(r=>r.id).sort();return n.length===o.length&&n.every((r,i)=>r===o[i])}const dE=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=k.useRef(null),l=Ca(),c=k.useRef(null),d=k.useCallback(H=>{c.current=H,l!=null&&l.videoRef&&(l.videoRef.current=H)},[l]),u=k.useMemo(()=>{if(!t||!t.length)return null;if(n){const H=t.find(G=>G.value===n);if(H)return H}return t[0]},[t,n]),[f,p]=k.useState(u),[h,m]=k.useState(!1),[g,b]=k.useState(!0),[v,S]=k.useState(!1),[w,C]=k.useState(0),[T,E]=k.useState(0),[M,R]=k.useState(1),[D,V]=k.useState(1),[j,x]=k.useState(0),[L,A]=k.useState(0),_=k.useRef(!1),O=k.useRef({x:0,y:0}),N=k.useRef({x:0,y:0}),$=k.useRef(!1),[F,B]=k.useState(!1),[I,Y]=k.useState(!0),q=(f==null?void 0:f.stream)??e??null,Z=(f==null?void 0:f.src)??null,Q=!!!q||i;k.useEffect(()=>{p(u)},[u]);const J=k.useRef(!1),ie=k.useRef({seekableEnd:0,currentTime:0,canSeek:!1,isLive:!0}),ee=k.useCallback(()=>{const H=c.current;if(!H)return;if(!H.seekable||H.seekable.length===0){b(!0),S(!1),l&&l.setIsLive(!0);return}const G=xa(H),z=Math.max(0,G-H.currentTime);ie.current={seekableEnd:G,currentTime:H.currentTime,canSeek:G>0,isLive:z<=(r??2)},J.current||(J.current=!0,requestAnimationFrame(()=>{J.current=!1;const K=ie.current;E(K.seekableEnd),C(K.currentTime),S(K.canSeek),b(K.isLive),l&&(l.setCurrentTime(K.currentTime),l.setIsLive(K.isLive))}))},[r,l]);return k.useEffect(()=>{const H=c.current;if(!H)return;const G=()=>m(!0),z=()=>m(!1),K=()=>Y(!0),X=()=>Y(!0),te=()=>Y(!1),oe=()=>Y(!1);return H.addEventListener("play",G),H.addEventListener("pause",z),H.addEventListener("waiting",K),H.addEventListener("loadstart",X),H.addEventListener("canplay",te),H.addEventListener("playing",oe),H.addEventListener("timeupdate",ee),H.addEventListener("durationchange",ee),H.addEventListener("loadedmetadata",ee),H.addEventListener("progress",ee),()=>{H.removeEventListener("play",G),H.removeEventListener("pause",z),H.removeEventListener("waiting",K),H.removeEventListener("loadstart",X),H.removeEventListener("canplay",te),H.removeEventListener("playing",oe),H.removeEventListener("timeupdate",ee),H.removeEventListener("durationchange",ee),H.removeEventListener("loadedmetadata",ee),H.removeEventListener("progress",ee)}},[ee]),k.useEffect(()=>{const H=c.current;H&&(Y(!0),q?(uE(H.srcObject,q)||(H.srcObject=q),H.getAttribute("src")&&H.removeAttribute("src")):Z?(H.srcObject&&(H.srcObject=null),H.src!==Z&&(H.src=Z,H.load())):(H.srcObject&&(H.srcObject=null),H.getAttribute("src")&&H.removeAttribute("src")),o&&H.play().then(()=>{}).catch(()=>{}))},[q,Z,o]),k.useEffect(()=>{const H=c.current;H&&(Q?H.playbackRate=M:(H.playbackRate=1,R(1)))},[M,Q]),k.useEffect(()=>{D<=1&&(x(0),A(0))},[D]),k.useEffect(()=>{const H=()=>{B(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",H),()=>{document.removeEventListener("fullscreenchange",H)}},[]),k.useEffect(()=>{if(D<=1)return;const H=a.current;if(!H)return;const G=requestAnimationFrame(()=>{const z=H.getBoundingClientRect(),K=ts(j,L,D,z.width,z.height);x(K.panX),A(K.panY)});return()=>cancelAnimationFrame(G)},[F]),{containerRef:a,videoRef:c,setVideoRef:d,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:w,setCurrentTime:C,seekableEnd:T,playbackRate:M,setPlaybackRate:R,zoom:D,setZoom:V,panX:j,setPanX:x,panY:L,setPanY:A,isDraggingRef:_,dragStartRef:O,panStartRef:N,didDragRef:$,isFullscreen:F,isLoading:I,canAdjustPlaybackRate:Q,updateLiveStatus:ee}},fE="_container_ajnww_1",pE="_loader_ajnww_78",hE="_spinner_ajnww_88",mE="_video_ajnww_111",gE="_videoZoomed_ajnww_119",yE="_timestampOverlay_ajnww_127",bE="_timestampText_ajnww_140",vE="_badgeFloating_ajnww_152",xE="_controlsOverlay_ajnww_159",CE="_controlsVisible_ajnww_183",wE="_timeline_ajnww_188",SE="_controlsRow_ajnww_195",TE="_controlGroup_ajnww_213",PE="_iconButton_ajnww_230",EE="_menuButton_ajnww_281",ME="_liveBadge_ajnww_291",kE="_liveBadgeInactive_ajnww_309",OE="_liveBadgeActive_ajnww_319",DE="_recordingBadge_ajnww_329",IE="_recordingDot_ajnww_348",RE="_emptyState_ajnww_377",AE="_emptyStateText_ajnww_394",_E="_controlMenuWrapper_ajnww_400",NE="_zoomControl_ajnww_418",jE="_zoomValue_ajnww_425",Re={container:fE,loader:pE,spinner:hE,video:mE,videoZoomed:gE,timestampOverlay:yE,timestampText:bE,badgeFloating:vE,controlsOverlay:xE,controlsVisible:CE,timeline:wE,controlsRow:SE,controlGroup:TE,iconButton:PE,menuButton:EE,liveBadge:ME,liveBadgeInactive:kE,liveBadgeActive:OE,recordingBadge:DE,recordingDot:IE,emptyState:RE,emptyStateText:AE,controlMenuWrapper:_E,zoomControl:NE,zoomValue:jE},LE=({icon:e,label:t,valueLabel:n,selectedValue:o,options:r,onChange:i,disabled:a,ariaLabel:l})=>{const[c,d]=k.useState(null),u=!!c;return y.jsxs(y.Fragment,{children:[y.jsxs(W.ButtonBase,{disabled:a,className:`${Re.menuButton} ${Re.controlMenuWrapper}`,"aria-label":l,onClick:f=>d(f.currentTarget),children:[e,t?`${t}: ${n}`:n]}),y.jsx(W.Menu,{anchorEl:c,open:u,onClose:()=>d(null),children:r.map(f=>y.jsx(W.MenuItem,{selected:f.value===o,disabled:f.disabled,onClick:()=>{i(f.value),d(null)},children:f.label},`${t}-${String(f.value)}`))})]})},VE=k.memo(LE),$E=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];function FE(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),r=$E[e.getDay()],i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");return`${t}-${n}-${o}, ${r} ${i}:${a}:${l}`}const By=k.memo(({show:e})=>{const[t,n]=k.useState("");return k.useEffect(()=>{if(!e)return;const o=()=>n(FE());o();const r=setInterval(o,1e3);return()=>clearInterval(r)},[e]),!e||!t?null:y.jsx("div",{className:Re.timestampOverlay,children:y.jsx("span",{className:Re.timestampText,children:t})})});By.displayName="Timestamp";const BE=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},zE=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=xa(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},HE=(e,t,n)=>()=>{const o=e.current;if(!o||!t)return;const r=xa(o);o.currentTime=Math.max(r-.1,0),n()},WE=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},UE=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},YE=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},qE=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=xa(i);i.currentTime=Math.min(Math.max(a,0),l),n()},GE=e=>{const{width:t=20,height:n=20,...o}=e;return y.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:y.jsx("path",{d:"M10.4167 2.5C14.2917 2.5 17.5667 5.025 18.725 8.51667L16.75 9.16667C15.875 6.50833 13.3667 4.58333 10.4167 4.58333C8.78333 4.58333 7.30833 5.18333 6.15 6.15L8.33333 8.33333H2.5V2.5L4.66667 4.66667C6.20833 3.33333 8.20833 2.5 10.4167 2.5ZM8.33333 10V18.3333H6.66667V11.6667H5V10H8.33333ZM10 10H15V11.6667H11.6667V13.3333H13.3333C14.2583 13.3333 15 14.0833 15 15V16.6667C15 17.5917 14.2583 18.3333 13.3333 18.3333H10V16.6667H13.3333V15H10V10Z",fill:"currentColor"})})},KE=e=>{const{width:t=20,height:n=20,...o}=e;return y.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:y.jsx("path",{d:"M9.58336 2.5C11.7917 2.5 13.7917 3.33333 15.3334 4.66667L17.5 2.5V8.33333H11.6667L13.85 6.15C12.6917 5.18333 11.2167 4.58333 9.58336 4.58333C6.63336 4.58333 4.12502 6.50833 3.25002 9.16667L1.27502 8.51667C2.43336 5.025 5.70836 2.5 9.58336 2.5ZM8.33336 10V18.3333H6.66669V11.6667H5.00002V10H8.33336ZM10 10H15V11.6667H11.6667V13.3333H13.3334C14.2584 13.3333 15 14.0833 15 15V16.6667C15 17.5917 14.2584 18.3333 13.3334 18.3333H10V16.6667H13.3334V15H10V10Z",fill:"currentColor"})})},ZE=e=>{const{width:t=65,height:n=64,...o}=e;return y.jsx("svg",{width:t,height:n,viewBox:"0 0 65 64",fill:"none",...o,children:y.jsx("path",{d:"M64.05 46.35L52.05 34.35V39.375L18.525 5.85H46.05C47.7 5.85 49.1125 6.4375 50.2875 7.6125C51.4625 8.7875 52.05 10.2 52.05 11.85V25.35L64.05 13.35V46.35ZM59.7 63.9L0 4.2L4.2 0L63.9 59.7L59.7 63.9ZM10.05 5.85L52.05 47.85C52.05 49.5 51.4625 50.9125 50.2875 52.0875C49.1125 53.2625 47.7 53.85 46.05 53.85H10.05C8.4 53.85 6.9875 53.2625 5.8125 52.0875C4.6375 50.9125 4.05 49.5 4.05 47.85V11.85C4.05 10.2 4.6375 8.7875 5.8125 7.6125C6.9875 6.4375 8.4 5.85 10.05 5.85Z",fill:"#525253"})})},XE={color:"#C8E642","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"#fff"},"& .MuiSlider-track":{border:"none",backgroundColor:"#C8E642"},"& .MuiSlider-rail":{backgroundColor:"#424242",opacity:1}},Ou=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:o,autoPlay:r=!0,playsInline:i=!0,muted:a=!0,poster:l,className:c,sx:d,liveThresholdSeconds:u=2,allowPlaybackRateForStream:f=!1,playbackRates:p=[.5,1,1.5,2],zoomLevels:h=[1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3],width:m,height:g,aspectRatio:b="16 / 9",showTimestamp:v=!0,showTimeline:S=!0,isRecording:w=!1,recordingLabel:C="Gravação",borderRadius:T,loading:E,unavailable:M=!1,unavailableIcon:R,unavailableMessage:D="O vídeo não está disponível."})=>{const j=ae.useTheme().palette.mode==="dark",[x,L]=k.useState(!0),A=k.useRef(!0),_=k.useRef(null);A.current=x;const{containerRef:O,videoRef:N,setVideoRef:$,selectedQuality:F,setSelectedQuality:B,isPlaying:I,isLive:Y,canSeek:q,currentTime:Z,setCurrentTime:re,seekableEnd:Q,playbackRate:J,setPlaybackRate:ie,zoom:ee,setZoom:H,panX:G,setPanX:z,panY:K,setPanY:X,isDraggingRef:te,dragStartRef:oe,panStartRef:ue,didDragRef:se,isFullscreen:de,isLoading:le,canAdjustPlaybackRate:he,updateLiveStatus:pe}=dE({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:u,allowPlaybackRateForStream:f}),De=k.useRef({width:0,height:0});k.useEffect(()=>{const Ce=O.current;if(!Ce)return;const Ue=new ResizeObserver(([Je])=>{De.current={width:Je.contentRect.width,height:Je.contentRect.height}});return Ue.observe(Ce),()=>Ue.disconnect()},[O]),k.useEffect(()=>{const Ce=O.current;if(!Ce)return;const Ue=()=>{_.current&&(clearTimeout(_.current),_.current=null),L(!0)},Je=()=>{_.current=setTimeout(()=>{},1e4)},Ut=()=>{A.current||L(!0),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{},1e4)};return Ce.addEventListener("mouseenter",Ue),Ce.addEventListener("mouseleave",Je),Ce.addEventListener("mousemove",Ut),()=>{Ce.removeEventListener("mouseenter",Ue),Ce.removeEventListener("mouseleave",Je),Ce.removeEventListener("mousemove",Ut),_.current&&clearTimeout(_.current)}},[]);const Oe=k.useMemo(()=>BE(N),[N]),Xe=k.useMemo(()=>zE(N,q,pe),[N,q,pe]);k.useMemo(()=>HE(N,q,pe),[N,q,pe]);const tt=k.useMemo(()=>WE(O),[O]);k.useMemo(()=>UE(t,B,o),[t,B,o]);const St=k.useMemo(()=>YE(q,re),[q,re]),Et=k.useMemo(()=>qE(N,q,pe),[N,q,pe]),Pe=k.useRef(G),Ee=k.useRef(K);Pe.current=G,Ee.current=K;const ge=k.useRef(ee);ge.current=ee;const Ne=k.useCallback(Ce=>{if(H(Ce),Ce<=1)z(0),X(0);else{const{width:Ue,height:Je}=De.current;if(Ue&&Je){const Ut=ts(Pe.current,Ee.current,Ce,Ue,Je);z(Ut.panX),X(Ut.panY)}}},[H,z,X]),Ve=k.useCallback(Ce=>{const Ue=h.indexOf(ee),Je=Math.max(0,Math.min(h.length-1,Ue+Ce));Ne(h[Je])},[ee,h,Ne]),it=k.useCallback(Ce=>{if(se.current){se.current=!1;return}const Ue=O.current;if(!Ue)return;const Je=Ue.getBoundingClientRect(),Ut=Ce.clientX-Je.left-Je.width/2,mo=Ce.clientY-Je.top-Je.height/2,_r=(h.indexOf(ge.current)+1)%h.length,yn=h[_r];if(yn<=1){H(1),z(0),X(0);return}const ti=-Ut*(1-1/yn),dv=-mo*(1-1/yn),Od=ts(ti,dv,yn,Je.width,Je.height);H(yn),z(Od.panX),X(Od.panY)},[h,O,H,z,X,se]),Qe=k.useCallback(Ce=>{ge.current<=1||(Ce.preventDefault(),te.current=!0,se.current=!1,oe.current={x:Ce.clientX,y:Ce.clientY},ue.current={x:Pe.current,y:Ee.current})},[te,se,oe,ue]),Ft=k.useCallback(Ce=>{if(!te.current||ge.current<=1)return;Ce.preventDefault();const Ue=Ce.clientX-oe.current.x,Je=Ce.clientY-oe.current.y;(Math.abs(Ue)>3||Math.abs(Je)>3)&&(se.current=!0);const{width:Ut,height:mo}=De.current;if(!Ut||!mo)return;const Ar=ue.current.x+Ue/ge.current,_r=ue.current.y+Je/ge.current,yn=ts(Ar,_r,ge.current,Ut,mo);z(yn.panX),X(yn.panY)},[te,oe,ue,se,z,X]),ke=k.useCallback(()=>{te.current=!1},[te]),dt=k.useCallback(Ce=>{if(ge.current<=1||Ce.touches.length!==1)return;const Ue=Ce.touches[0];te.current=!0,se.current=!1,oe.current={x:Ue.clientX,y:Ue.clientY},ue.current={x:Pe.current,y:Ee.current}},[te,se,oe,ue]),vt=k.useCallback(Ce=>{if(!te.current||ge.current<=1||Ce.touches.length!==1)return;const Ue=Ce.touches[0],Je=Ue.clientX-oe.current.x,Ut=Ue.clientY-oe.current.y;(Math.abs(Je)>3||Math.abs(Ut)>3)&&(se.current=!0);const{width:mo,height:Ar}=De.current;if(!mo||!Ar)return;const _r=ue.current.x+Je/ge.current,yn=ue.current.y+Ut/ge.current,ti=ts(_r,yn,ge.current,mo,Ar);z(ti.panX),X(ti.panY)},[te,oe,ue,se,z,X]),Rt=k.useCallback(()=>{te.current=!1},[te]);k.useEffect(()=>{const Ce=N.current;if(!Ce)return;const Ue=Je=>{ge.current>1&&te.current&&Je.preventDefault()};return Ce.addEventListener("touchmove",Ue,{passive:!1}),()=>{Ce.removeEventListener("touchmove",Ue)}},[N,te]);const mn=k.useMemo(()=>p.map(Ce=>({value:Ce,label:`${Ce}x`})),[p]);k.useMemo(()=>t.map(Ce=>({value:Ce.value,label:Ce.label})),[t]),F==null||F.label;const ye=`${Math.round(ee*100)}%`,Ae=`${J}x`,at=q&&Q>0,gn=A6(m,g,b),Rr=T!=null?{...gn,"--vp-radius":typeof T=="number"?`${T}px`:T}:gn,ft=k.useMemo(()=>({transform:ee>1?`scale(${ee}) translate3d(${G}px, ${K}px, 0)`:void 0,willChange:ee>1?"transform":void 0}),[ee,G,K]);return y.jsx(W.Box,{ref:O,className:`${Re.container} ${c||""}`.trim(),"data-theme":j?"dark":"light",style:Rr,sx:d,children:M?y.jsxs("div",{className:Re.emptyState,children:[R??y.jsx(ZE,{}),typeof D=="string"?y.jsx(W.Typography,{className:Re.emptyStateText,children:D}):D]}):y.jsxs(y.Fragment,{children:[(E??le)&&y.jsx("div",{className:Re.loader,children:y.jsx("span",{className:Re.spinner})}),y.jsx("video",{ref:$,className:`${Re.video} ${ee>1?Re.videoZoomed:""}`.trim(),autoPlay:r,playsInline:i,muted:a,poster:l,style:ft,onMouseDown:Qe,onMouseMove:Ft,onMouseUp:ke,onMouseLeave:ke,onClick:it,onTouchStart:dt,onTouchMove:vt,onTouchEnd:Rt}),y.jsx(By,{show:v}),w&&!x&&y.jsx("div",{className:Re.badgeFloating,children:y.jsxs("span",{className:Re.recordingBadge,children:[y.jsx("span",{className:Re.recordingDot}),C]})}),Y&&!w&&!x&&y.jsx("div",{className:Re.badgeFloating,children:y.jsx("span",{className:`${Re.liveBadge} ${Re.liveBadgeActive}`,children:"ao vivo"})}),y.jsxs("div",{className:`${Re.controlsOverlay} ${x?Re.controlsVisible:""}`,children:[S&&y.jsx("div",{className:Re.timeline,children:y.jsx(W.Slider,{size:"small",min:0,max:at?Q:1,step:1,value:at?Z:0,disabled:!at,onChange:St,onChangeCommitted:Et,"aria-label":"Linha do tempo do video",sx:XE})}),y.jsxs("div",{className:Re.controlsRow,children:[y.jsxs("div",{className:Re.controlGroup,children:[w?y.jsxs("span",{className:Re.recordingBadge,children:[y.jsx("span",{className:Re.recordingDot}),C]}):y.jsx("span",{className:`${Re.liveBadge} ${Y?Re.liveBadgeActive:Re.liveBadgeInactive}`,children:"ao vivo"}),y.jsx(W.IconButton,{className:Re.iconButton,onClick:()=>Xe(-15),disabled:!q,"aria-label":"Voltar 15 segundos",children:y.jsx(GE,{})}),y.jsx(W.IconButton,{className:Re.iconButton,onClick:Oe,"aria-label":"Play/Pause",children:I?y.jsx(gt.Pause,{fontSize:"small"}):y.jsx(gt.PlayArrow,{fontSize:"small"})}),y.jsx(W.IconButton,{className:Re.iconButton,onClick:()=>Xe(15),disabled:!q,"aria-label":"Avançar 15 segundos",children:y.jsx(KE,{})})]}),y.jsxs("div",{className:Re.controlGroup,children:[y.jsx(VE,{icon:y.jsx(gt.Speed,{fontSize:"small"}),label:"",valueLabel:Ae,selectedValue:J,options:mn,ariaLabel:"Selecionar velocidade de reprodução",onChange:ie,disabled:!he}),y.jsxs("div",{className:Re.zoomControl,children:[y.jsx(W.IconButton,{className:Re.iconButton,onClick:()=>Ne(1),disabled:ee<=1,"aria-label":"Resetar zoom",children:y.jsx(gt.Undo,{fontSize:"small"})}),y.jsx(W.IconButton,{className:Re.iconButton,onClick:()=>Ve(-1),disabled:ee<=h[0],"aria-label":"Diminuir zoom",children:y.jsx(gt.ZoomOut,{fontSize:"small"})}),y.jsx("span",{className:Re.zoomValue,children:ye}),y.jsx(W.IconButton,{className:Re.iconButton,onClick:()=>Ve(1),disabled:ee>=h[h.length-1],"aria-label":"Aumentar zoom",children:y.jsx(gt.ZoomIn,{fontSize:"small"})})]}),y.jsx(W.IconButton,{className:Re.iconButton,onClick:tt,"aria-label":"Fullscreen",children:de?y.jsx(gt.CloseFullscreen,{fontSize:"small"}):y.jsx(gt.OpenInFull,{fontSize:"small"})})]})]})]})]})})};Ou.displayName="VideoPlayer";const QE=st(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),JE=st(y.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),eM=st(y.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),tM=st(y.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 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined");function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(null,arguments)}function Me(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function nM(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:bs(t.components[n].defaultProps,o)}function oM(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Pt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const rM={...P},zy=rM.useSyncExternalStore;function sM(e,t,n,o,r){const i=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:u}=o(e);return()=>u}return i},[i,e,o,r,n]),[l,c]=P.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[i,n,e]);return zy(c,l,a)}function Hy(e={}){const{themeId:t}=e;return function(o,r={}){let i=gx();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:u=!1}=nM({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="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(`
109
+ `,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const SP=new wP;function TP(e,t){var n;if(!(!((n=google==null?void 0:google.maps)===null||n===void 0)&&n.version))return;const o=google.maps.version.split("."),r=parseInt(o[0],10),i=parseInt(o[1],10);return r>e||r===e&&i>=t}const PP=O.createContext(null),EP={BOTTOM:["50%","100%"]},ly=O.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=OP(e),c=O.useMemo(()=>a?{marker:a}:null,[a]);return O.useImperativeHandle(t,()=>a,[a]),l?O.createElement(PP.Provider,{value:c},Qo.createPortal(O.createElement(MP,{anchorPoint:i,styles:o,className:r},n),l)):null});ly.displayName="AdvancedMarker";function cc(e){return e.nodeType===Node.ELEMENT_NODE}const MP=({children:e,styles:t,className:n})=>O.createElement("div",{className:n,style:t},e);function OP(e){const[t,n]=O.useState(null),[o,r]=O.useState(null),i=ha(),a=CP("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:S,title:w,zIndex:C,anchorPoint:T,anchorLeft:E,anchorTop:M}=e,I=O.Children.count(l);return O.useEffect(()=>{if(!i||!a)return;const D=new a.AdvancedMarkerElement;D.map=i,n(D);let V=null;return I>0&&(V=document.createElement("div"),D.content=V,r(V)),()=>{D.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,I]),O.useEffect(()=>{!(t!=null&&t.content)||!cc(t.content)||I>0||(t.content.className=u??"")},[t,u,I]),kP(t,T,E,M,I>0),ii(t,"position",S),ii(t,"title",w??""),ii(t,"zIndex",C),ii(t,"collisionBehavior",g),O.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),O.useEffect(()=>{if(!t)return;const D=y!==void 0||!!c||!!d||!!f;t.gmpClickable=D,D&&(t!=null&&t.content)&&cc(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),si(t,"click",c),si(t,"drag",p),si(t,"dragstart",h),si(t,"dragend",m),Cp(t==null?void 0:t.element,"mouseenter",d),Cp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function kP(e,t,n,o,r){O.useEffect(()=>{if(!e||!r)return;const i=TP(3,62),a=e.content;if(!(!a||!cc(a))){if(n!==void 0||o!==void 0){i||console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`),e.anchorLeft=n,e.anchorTop=o,t!==void 0&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");return}if(t!==void 0){const[l,c]=t??EP.BOTTOM,u=`calc(-1 * ${l})`,d=`calc(-1 * ${c})`;i?(e.anchorLeft=u,e.anchorTop=d,a.style.transform=""):(a.style.transform=`translate(50%, 100%) translate(${u}, ${d})`,e.dataset.origin="rgm",SP.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function DP(e){const[t,n]=O.useState(null),o=ha(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=pr(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return O.useEffect(()=>{if(!o){o===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(d);return h.setMap(o),n(h),()=>{h.setMap(null),n(null)}},[o]),O.useEffect(()=>{if(!t)return;const h=t,m=google.maps.event;return r&&m.addListener(h,"click",r),i&&m.addListener(h,"drag",i),a&&m.addListener(h,"dragstart",a),l&&m.addListener(h,"dragend",l),c&&m.addListener(h,"mouseover",c),u&&m.addListener(h,"mouseout",u),t.setDraggable(!!p),()=>{m.clearInstanceListeners(h)}},[t,p,r,i,a,l,c,u]),O.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),O.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const RP=O.forwardRef((e,t)=>{const n=DP(e);return O.useImperativeHandle(t,()=>n,[n]),O.createElement(O.Fragment,null)});RP.displayName="Marker";const cy=O.createContext(void 0),mu=()=>{const e=O.useContext(cy);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},gu=({children:e})=>{const t=ha(),[n,o]=O.useState(13),[r,i]=O.useState(null),a=O.useRef([]),l=O.useCallback(()=>{a.current.forEach(d=>clearTimeout(d)),a.current=[]},[]);O.useEffect(()=>{if(!t)return;const d=t.getZoom();d!==void 0&&o(d);const f=t.getBounds();if(f){const m=f.getNorthEast(),g=f.getSouthWest(),y=[g.lng(),g.lat(),m.lng(),m.lat()];i(y)}const p=t.addListener("zoom_changed",()=>{const m=t.getZoom();m!==void 0&&o(m)}),h=t.addListener("bounds_changed",()=>{const m=t.getBounds();if(m){const g=m.getNorthEast(),y=m.getSouthWest(),v=[y.lng(),y.lat(),g.lng(),g.lat()];i(v)}});return()=>{p&&google.maps.event.removeListener(p),h&&google.maps.event.removeListener(h),l()}},[t,l]);const c=O.useCallback((d,f=16)=>{if(!t)return;l();const p=t.getZoom()??13,h=Math.abs(f-p);if(h<=2){t.panTo(d),t.setZoom(f);return}const m=f>p?1:-1,g=Math.ceil(h),y=60;t.panTo(d);for(let v=1;v<=g;v++){const S=v===g?f:p+m*v,w=window.setTimeout(()=>{t.setZoom(S)},y*v);a.current.push(w)}},[t,l]),u=(d,f)=>{t&&t.fitBounds(d,f)};return t?b.jsx(cy.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:c,fitBounds:u},children:e}):null};gu.displayName="MapContent";const IP=180,uy=()=>{const{map:e}=mu(),t=O.useRef(null),n=O.useRef(null);return O.useEffect(()=>{if(!e||!t.current)return;const o=new ResizeObserver(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{try{google.maps.event.trigger(e,"resize")}finally{n.current=null}},IP)});return o.observe(t.current),()=>{n.current&&clearTimeout(n.current),o.disconnect()}},[e]),b.jsx("div",{ref:t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",visibility:"hidden"}})};uy.displayName="MapResizeHandler";const AP="_googleMap_1gh3l_1",NP="_container_1gh3l_14",_P="_errorContainer_1gh3l_29",ai={googleMap:AP,container:NP,errorContainer:_P},jP={lat:-26.3044,lng:-48.8487},LP=13,VP={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},$P=({options:e,onLoad:t,children:n})=>{const o=ha();return O.useEffect(()=>{o&&(o.setOptions(VP),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},dy=({center:e=jP,zoom:t=LP,className:n,children:o,apiKey:r,mapId:i,themeMode:a="light",options:l,onLoad:c,onError:u})=>{if(!r||!i)return b.jsx("div",{className:`${ai.container} ${ai.errorContainer} ${n||""}`,children:b.jsxs("div",{children:[b.jsx("p",{children:"Google Maps não configurado"}),b.jsx("p",{style:{fontSize:"14px",marginTop:"8px",opacity:.7},children:"As props apiKey e mapId são obrigatórias"})]})});const d=a==="dark"?"DARK":"LIGHT",f={defaultCenter:e,defaultZoom:t,mapId:i,className:ai.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(JT,{apiKey:r,onLoad:()=>{console.log("Google Maps API carregada com sucesso")},onError:h=>{console.error("Erro ao carregar Google Maps API:",h),u&&h instanceof Error&&u(h)},children:b.jsx("div",{className:`${ai.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(ay,{...f,style:{width:"100%",height:"100%"},children:b.jsx($P,{options:l,onLoad:c,children:b.jsxs(gu,{children:[b.jsx(uy,{}),o]})})},p)})})};dy.displayName="GoogleMap";const wp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ml=1,_r=8;class yu{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,o]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const r=o>>4;if(r!==ml)throw new Error(`Got v${r} data when expected v${ml}.`);const i=wp[o&15];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,2,1),[l]=new Uint32Array(t,4,1);return new yu(l,a,i,t)}constructor(t,n=64,o=Float64Array,r){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=o,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=wp.indexOf(this.ArrayType),a=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,_r,t),this.coords=new this.ArrayType(this.data,_r+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(_r+a+l+c),this.ids=new this.IndexArrayType(this.data,_r,t),this.coords=new this.ArrayType(this.data,_r+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(ml<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const o=this._pos>>1;return this.ids[o]=o,this.coords[this._pos++]=t,this.coords[this._pos++]=n,o}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return uc(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,o,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this,c=[0,i.length-1,0],u=[];for(;c.length;){const d=c.pop()||0,f=c.pop()||0,p=c.pop()||0;if(f-p<=l){for(let y=p;y<=f;y++){const v=a[2*y],S=a[2*y+1];v>=t&&v<=o&&S>=n&&S<=r&&u.push(i[y])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&u.push(i[h]),(d===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-d)),(d===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-d))}return u}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],u=o*o;for(;l.length;){const d=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let y=p;y<=f;y++)Sp(i[2*y],i[2*y+1],t,n)<=u&&c.push(r[y]);continue}const h=p+f>>1,m=i[2*h],g=i[2*h+1];Sp(m,g,t,n)<=u&&c.push(r[h]),(d===0?t-o<=m:n-o<=g)&&(l.push(p),l.push(h-1),l.push(1-d)),(d===0?t+o>=m:n+o>=g)&&(l.push(h+1),l.push(f),l.push(1-d))}return c}}function uc(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;fy(e,t,a,o,r,i),uc(e,t,n,o,a-1,1-i),uc(e,t,n,a+1,r,1-i)}function fy(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const u=r-o+1,d=n-o+1,f=Math.log(u),p=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*p*(u-p)/u)*(d-u/2<0?-1:1),m=Math.max(o,Math.floor(n-d*p/u+h)),g=Math.min(r,Math.floor(n+(u-d)*p/u+h));fy(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(jr(e,t,o,n),t[2*r+i]>a&&jr(e,t,o,r);l<c;){for(jr(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?jr(e,t,o,c):(c++,jr(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function jr(e,t,n,o){gl(e,n,o),gl(t,2*n,2*o),gl(t,2*n+1,2*o+1)}function gl(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function Sp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const FP={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Tp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),ho=2,Un=3,yl=4,Hn=5,py=6;class BP{constructor(t){this.options=Object.assign(Object.create(FP),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:o,maxZoom:r}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const a=[];for(let c=0;c<t.length;c++){const u=t[c];if(!u.geometry)continue;const[d,f]=u.geometry.coordinates,p=Tp(li(d)),h=Tp(ci(f));a.push(p,h,1/0,c,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[r+1]=this._createTree(a);n&&console.timeEnd(i);for(let c=r;c>=o;c--){const u=+Date.now();l=this.trees[c]=this._createTree(this._cluster(l,c)),n&&console.log("z%d: %d clusters in %dms",c,l.numItems,+Date.now()-u)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let o=((t[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,i=180;else if(o>i){const f=this.getClusters([o,r,180,a],n),p=this.getClusters([-180,r,i,a],n);return f.concat(p)}const l=this.trees[this._limitZoom(n)],c=l.range(li(o),ci(a),li(i),ci(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+Hn]>1?Pp(u,p,this.clusterProps):this.points[u[p+Un]])}return d}getChildren(t){const n=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[o];if(!i)throw new Error(r);const a=i.data;if(n*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,o-1)),c=a[n*this.stride],u=a[n*this.stride+1],d=i.within(c,u,l),f=[];for(const p of d){const h=p*this.stride;a[h+yl]===t&&f.push(a[h+Hn]>1?Pp(a,h,this.clusterProps):this.points[a[h+Un]])}if(f.length===0)throw new Error(r);return f}getLeaves(t,n,o){n=n||10,o=o||0;const r=[];return this._appendLeaves(r,t,n,o,0),r}getTile(t,n,o){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:l}=this.options,c=l/a,u=(o-c)/i,d=(o+1+c)/i,f={features:[]};return this._addTileFeatures(r.range((n-c)/i,u,(n+1+c)/i,d),r.data,n,o,i,f),n===0&&this._addTileFeatures(r.range(1-c/i,u,1,d),r.data,i,o,i,f),n===i-1&&this._addTileFeatures(r.range(0,u,c/i,d),r.data,-1,o,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const o=this.getChildren(t);if(n++,o.length!==1)break;t=o[0].properties.cluster_id}return n}_appendLeaves(t,n,o,r,i){const a=this.getChildren(n);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(t,c.cluster_id,o,r,i):i<r?i++:t.push(l),t.length===o)break}return i}_createTree(t){const n=new yu(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let o=0;o<t.length;o+=this.stride)n.add(t[o],t[o+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,o,r,i,a){for(const l of t){const c=l*this.stride,u=n[c+Hn]>1;let d,f,p;if(u)d=hy(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Un]];d=g.properties;const[y,v]=g.geometry.coordinates;f=li(y),p=ci(v)}const h={type:1,geometry:[[Math.round(this.options.extent*(f*i-o)),Math.round(this.options.extent*(p*i-r))]],tags:d};let m;u||this.options.generateId?m=n[c+Un]:m=this.points[n[c+Un]].id,m!==void 0&&(h.id=m),a.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:o,extent:r,reduce:i,minPoints:a}=this.options,l=o/(r*Math.pow(2,n)),c=t.data,u=[],d=this.stride;for(let f=0;f<c.length;f+=d){if(c[f+ho]<=n)continue;c[f+ho]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+Hn];let y=g;for(const v of m){const S=v*d;c[S+ho]>n&&(y+=c[S+Hn])}if(y>g&&y>=a){let v=p*g,S=h*g,w,C=-1;const T=((f/d|0)<<5)+(n+1)+this.points.length;for(const E of m){const M=E*d;if(c[M+ho]<=n)continue;c[M+ho]=n;const I=c[M+Hn];v+=c[M]*I,S+=c[M+1]*I,c[M+yl]=T,i&&(w||(w=this._map(c,f,!0),C=this.clusterProps.length,this.clusterProps.push(w)),i(w,this._map(c,M)))}c[f+yl]=T,u.push(v/y,S/y,1/0,T,-1,y),i&&u.push(C)}else{for(let v=0;v<d;v++)u.push(c[f+v]);if(y>1)for(const v of m){const S=v*d;if(!(c[S+ho]<=n)){c[S+ho]=n;for(let w=0;w<d;w++)u.push(c[S+w])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,o){if(t[n+Hn]>1){const a=this.clusterProps[t[n+py]];return o?Object.assign({},a):a}const r=this.points[t[n+Un]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Pp(e,t,n){return{type:"Feature",id:e[t+Un],properties:hy(e,t,n),geometry:{type:"Point",coordinates:[zP(e[t]),HP(e[t+1])]}}}function hy(e,t,n){const o=e[t+Hn],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+py],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Un],point_count:o,point_count_abbreviated:r})}function li(e){return e/360+.5}function ci(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function zP(e){return(e-.5)*360}function HP(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const WP={radius:30,maxZoom:13,minZoom:0,minPoints:2};function Ep(e){return e.isCluster?`c_${e.lat.toFixed(6)}_${e.lng.toFixed(6)}_${e.pointCount}_${e.count}`:`s_${e.id}`}function UP(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].id!==t[n].id||e[n].algorithm!==t[n].algorithm||e[n].orientation!==t[n].orientation)return!1;return!0}function YP(e,t){return!(e.lat!==t.lat||e.lng!==t.lng||e.count!==t.count||e.isCluster!==t.isCluster||e.pointCount!==t.pointCount||e.addressText!==t.addressText||!UP(e.cameras,t.cameras))}function qP(e,t){if(e.length===0)return t;const n=new Map;for(const i of e)n.set(Ep(i),i);let o=!1;const r=t.map(i=>{const a=Ep(i),l=n.get(a);return l&&YP(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function GP(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function ZP(e,t,n,o={}){const r=O.useRef(null),[i,a]=O.useState([]),l=O.useRef(""),c={...WP,...o};return O.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=GP(e);if(u===l.current&&r.current)return;l.current=u;const d=e.map(f=>({type:"Feature",properties:f,geometry:{type:"Point",coordinates:[f.lng,f.lat]}}));r.current||(r.current=new BP({radius:c.radius,maxZoom:c.maxZoom,minZoom:c.minZoom,minPoints:c.minPoints})),r.current.load(d)},[e,c.radius,c.maxZoom,c.minZoom,c.minPoints]),O.useEffect(()=>{if(!r.current||!n){a(e);return}const d=r.current.getClusters(n,Math.floor(t)).map(f=>{const[p,h]=f.geometry.coordinates,m=f.properties;if(m.cluster){const g=m.cluster_id,y=r.current.getLeaves(g,1/0),v=y.flatMap(w=>w.properties.cameras||[]),S=y.reduce((w,C)=>w+C.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:S,cameras:v,isCluster:!0,pointCount:m.point_count,clusterId:g}}else{const g=m;return{id:g.id,lat:h,lng:p,count:g.count,addressText:g.addressText,cameras:g.cameras}}});a(f=>qP(f,d))},[e,t,n]),i}const Mp=O.memo(function({spot:t,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onSpotClick:u,onCameraClick:d}){const f=O.useCallback(()=>u(t),[u,t]),p=O.useCallback(h=>d==null?void 0:d(h,t),[d,t]);return b.jsx(ly,{position:{lat:t.lat,lng:t.lng},onClick:f,children:b.jsx(hu,{count:t.count,addressText:t.addressText,cameras:t.cameras,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onCameraClick:d?p:void 0})})}),my=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=R3,selectedZoomLevel:r=hl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f,expandAll:p})=>{const{isLoaded:h,currentZoom:m,bounds:g,zoomToPosition:y}=mu(),v=(a==null?void 0:a.id)??i,{spotsForClustering:S,pinnedSpot:w}=O.useMemo(()=>{if(v==null)return{spotsForClustering:e,pinnedSpot:null};const M=e.find(D=>D.id===v)??null;return M?{spotsForClustering:e.filter(D=>D.id!==v),pinnedSpot:M}:{spotsForClustering:e,pinnedSpot:null}},[e,v]),C=ZP(S,m,g),T=O.useCallback(M=>{M.isCluster?y({lat:M.lat,lng:M.lng},Mo):f?y({lat:M.lat,lng:M.lng},m<Mo?Mo:r??o):(a?a.id===M.id:i===M.id)?t==null||t(M):m<Mo?(y({lat:M.lat,lng:M.lng},Mo),t==null||t(M)):(m<(r??hl)&&y({lat:M.lat,lng:M.lng},r??hl),t==null||t(M))},[y,f,a,i,m,r,o,t]),E=O.useCallback(M=>!c&&!u?!1:!M.isCluster&&M.id===c?!0:M.isCluster&&u&&M.cameras?M.cameras.some(I=>I.id===u):!1,[c,u]);return h?b.jsxs(b.Fragment,{children:[C.map((M,I)=>{const D=!M.isCluster&&String(M.id)===String(c);return b.jsx(Mp,{spot:M,currentZoom:m,isSelected:!!p||D,selectedCameraId:l,isHighlighted:E(M),highlightedCameraId:D?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:T,onCameraClick:n},M.id??I)}),w&&b.jsx(Mp,{spot:w,currentZoom:m,isSelected:!0,selectedCameraId:l,isHighlighted:String(w.id)===String(c),highlightedCameraId:String(w.id)===String(c)?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:T,onCameraClick:n},`pinned-${w.id}`)]}):null};my.displayName="MapMarkers";const KP="_searchBar_8uyup_1",XP="_startIconContainer_8uyup_112",QP="_endIconContainer_8uyup_123",JP="_endIconContainerClickable_8uyup_159",eE="_defaultIcon_8uyup_163",Kr={searchBar:KP,startIconContainer:XP,endIconContainer:QP,endIconContainerClickable:JP,defaultIcon:eE},tE=e=>()=>{e&&e()},nE=e=>t=>{e&&e(t)},oE=()=>b.jsx(Ct.Search,{className:Kr.defaultIcon}),rE=e=>e||oE(),gy=O.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=q.useTheme().palette.mode==="dark",f=rE(t),p=tE(n),h=nE(i);return b.jsx(q.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Kr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(q.InputAdornment,{position:"start",className:Kr.startIconContainer,children:e}):null,endAdornment:b.jsx(q.InputAdornment,{position:"end",className:`${Kr.endIconContainer} ${n?Kr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});gy.displayName="SearchBar";const sE=yt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),iE=yt([b.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),b.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),aE="_container_1mb8b_1",lE="_iconWrapper_1mb8b_11",cE="_icon_1mb8b_11",uE="_title_1mb8b_21",dE="_subtitle_1mb8b_30",fE="_description_1mb8b_34",pE="_button_1mb8b_38",mo={container:aE,iconWrapper:lE,icon:cE,title:uE,subtitle:dE,description:fE,button:pE},yy=({onGoHome:e,buttonText:t="Voltar para o início",title:n="Página não encontrada",description:o="Desculpe, a página que você está procurando não existe ou foi movida para outro endereço.",errorCode:r="404",className:i})=>b.jsx(q.Container,{maxWidth:"sm",children:b.jsxs(q.Box,{className:`${mo.container} ${i||""}`,children:[b.jsx(q.Box,{className:mo.iconWrapper,children:b.jsx(iE,{className:mo.icon,color:"primary"})}),b.jsx(q.Typography,{variant:"h1",className:mo.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(q.Typography,{variant:"h4",component:"h2",className:mo.subtitle,color:"text.primary",children:n}),b.jsx(q.Typography,{variant:"body1",className:mo.description,color:"text.secondary",children:o}),e&&b.jsx(kc,{variant:"contained",size:"large",startIcon:b.jsx(sE,{}),onClick:e,className:mo.button,children:t})]})});yy.displayName="NotFoundContent";const hE=e=>{const t=e.find(o=>o.active),n=e.flatMap(o=>{var r;return((r=o.submenu)==null?void 0:r.map(i=>({item:o,subItem:i})))??[]}).find(({subItem:o})=>o.active);return{itemId:(n==null?void 0:n.item.id)??(t==null?void 0:t.id)??null,subItemId:(n==null?void 0:n.subItem.id)??null,expandedItemId:(n==null?void 0:n.item.id)??null}},mE=({items:e,isExpanded:t=!0,onClick:n})=>{const o=O.useMemo(()=>hE(e),[e]),[r,i]=O.useState(o.itemId),[a,l]=O.useState(o.subItemId),[c,u]=O.useState(o.expandedItemId),[d,f]=O.useState(null),[p,h]=O.useState(null);O.useEffect(()=>{i(o.itemId),l(o.subItemId),u(o.expandedItemId)},[o.itemId,o.subItemId,o.expandedItemId]);const m=p?e.find(E=>E.id===p):void 0,g=(m==null?void 0:m.submenu)??[];return{selectedItemId:r,selectedSubItemId:a,expandedItemId:c,submenuAnchorEl:d,submenuItem:m,submenuItems:g,getIsItemActive:E=>{var I;const M=a?!!((I=E.submenu)!=null&&I.some(D=>D.id===a)):!1;return r?E.id===r:!!(E.active||M)},getIsSubItemActive:E=>a?E.id===a:!!E.active,shouldShowSubmenu:E=>{var M;return!!(t&&((M=E.submenu)!=null&&M.length)&&c===E.id)},handleItemClick:(E,M)=>{var I,D;i(E.id),l(null),(I=E.submenu)!=null&&I.length?t?u(V=>V===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(D=E.onClick)==null||D.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,I,D)=>{var V;i(E.id),l(M.id),D!=null&&D.closeMenu&&(f(null),h(null)),(V=M.onClick)==null||V.call(M,I),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},by=e=>typeof e=="number"?`${e*4}px`:e,gE=({item:e,onClick:t,isActive:n})=>{const o=ae.useTheme();return b.jsx(q.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:by(o.shape.borderRadius),px:2,py:1.25,justifyContent:"flex-start",textAlign:"left",color:o.palette.text.primary,backgroundColor:n?o.palette.action.selected:"transparent","&:hover":{backgroundColor:o.palette.action.hover}},children:b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},vy=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ae.useTheme(),i=by(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=mE({items:e,isExpanded:t,onClick:o});return b.jsxs(q.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const y=u(g),v=f(g),S=t?r.spacing(2):r.spacing(4),w=t&&y?r.palette.primary.main:"transparent",C=t?"transparent":y?r.palette.primary.main:"transparent",T=y?r.palette.primary.contrastText:r.palette.text.primary;return b.jsxs(q.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(q.ButtonBase,{onClick:I=>p(g,I),"aria-label":g.label,"aria-pressed":y||void 0,"aria-haspopup":(E=g.submenu)!=null&&E.length?"menu":void 0,sx:{width:"100%",borderRadius:i,px:t?2:1,py:t?1.5:1,minHeight:t?56:32,justifyContent:t?"flex-start":"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"padding 0.2s ease, min-height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",color:t&&y?r.palette.primary.contrastText:r.palette.text.primary,backgroundColor:w,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t&&!y?r.palette.action.hover:w}},children:b.jsxs(q.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:.25,sx:{width:"100%"},children:[b.jsx(q.Box,{sx:{width:56,height:S,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:C,color:T,transition:r.transitions.create(["background-color","box-shadow"],{duration:r.transitions.duration.shortest}),...t?{}:{boxShadow:y?r.shadows[1]:"none","&:hover":{backgroundColor:y?ae.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(q.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500,fontSize:t?"14px":"10px"},children:g.label}),t&&g.trailingIcon?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(q.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(q.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(I=>{const D=d(I);return b.jsx(gE,{item:I,isActive:D,onClick:V=>h(g,I,V)},I.id)})})}):null]},g.id)}),b.jsx(q.Menu,{anchorEl:a,open:!!(a&&c.length),onClose:m,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},MenuListProps:{dense:!0,"aria-label":(l==null?void 0:l.label)??"submenu"},PaperProps:{sx:{borderRadius:i,minWidth:r.spacing(22),px:1,py:.5,boxShadow:r.shadows[3],backgroundImage:"none"}},children:c.map(g=>{const y=d(g);return b.jsx(q.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};vy.displayName="SidebarMenu";const yE=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},bE=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=O.useMemo(()=>yE(e),[e]),[r,i]=O.useState(o),[a,l]=O.useState(null);O.useEffect(()=>{i(o)},[o]);const c=r?e.find(h=>h.id===r):void 0;return{selectedItemId:r,selectedItem:c,menuAnchorEl:a,getIsItemActive:h=>r?h.id===r:!!h.active,openMenu:h=>{n||l(h.currentTarget)},closeMenu:()=>{n||l(null)},handleItemClick:(h,m)=>{var g;i(h.id),(g=h.onClick)==null||g.call(h,m),t==null||t(h),l(null)}}},vE=e=>typeof e=="number"?`${e*4}px`:e,xy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var k,_;const d=ae.useTheme(),f=O.useRef(null),p=vE(d.shape.borderRadius),[h,m]=O.useState(!1),g=O.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:S,openMenu:w,closeMenu:C,handleItemClick:T}=bE({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((k=e[0])==null?void 0:k.label)??"",M=o??(y==null?void 0:y.icon)??((_=e[0])==null?void 0:_.icon)??null,I=l||!M,D=$=>{if(l){m(F=>!F);return}w($)},V=($,F)=>{T($,F),m(!1)},j=b.jsx(q.Stack,{direction:"column",spacing:.5,children:e.map($=>{const F=S($);return b.jsxs(q.MenuItem,{selected:F,onClick:B=>V($,B),sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[$.icon?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:$.icon}):null,b.jsx(q.Typography,{sx:{fontSize:14,fontWeight:F?600:500},children:$.label})]},$.id)})}),x=b.jsxs(q.Box,{sx:{borderRadius:"16px 16px 8px 8px",backgroundColor:d.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026",display:"flex",flexDirection:"column",maxHeight:d.spacing(62)},children:[i?b.jsx(q.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(q.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(q.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0,"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:d.palette.action.disabled,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:d.palette.action.active},scrollbarWidth:"thin",scrollbarColor:`${d.palette.action.disabled} transparent`},children:j})]}),L=a?b.jsxs(q.MenuItem,{onClick:$=>{var F;m(!1),C(),(F=a.onClick)==null||F.call(a,$)},sx:{borderRadius:"12px",gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(q.Typography,{sx:{fontSize:14,fontWeight:500},children:a.label})]}):null,A=L?b.jsx(q.Box,{sx:{borderRadius:"8px",backgroundColor:d.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026"},children:L}):null,N=b.jsxs(q.Stack,{direction:"column",spacing:.25,sx:{minWidth:d.spacing(32)},children:[x,A]});return b.jsxs(q.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(q.ButtonBase,{onClick:D,"aria-label":E,ref:f,sx:{width:l?d.spacing(28):"64px",height:l?"auto":"64px",borderRadius:"12px",px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"width 0.2s ease, height 0.2s ease, padding 0.2s ease",backgroundColor:d.palette.mode==="light"?"#C7C6C6":d.palette.action.hover,"&:hover":{backgroundColor:d.palette.mode==="light"?"#B8B7B7":d.palette.action.selected}},children:b.jsxs(q.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[M?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,I?b.jsxs(q.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(q.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(q.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(q.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:N})}):null:b.jsx(q.Menu,{anchorEl:v,open:!!v,onClose:C,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},disableAutoFocusItem:!0,slotProps:{paper:{sx:{borderRadius:p,p:0,ml:2,backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},MenuListProps:{"aria-label":E?`menu-${E}`:"menu",sx:{p:0}},children:N})]})};xy.displayName="ModuleMenu";const ma=e=>e.seekable&&e.seekable.length>0?e.seekable.end(e.seekable.length-1):Number.isFinite(e.duration)&&e.duration>0?e.duration:e.currentTime,Xr=(e,t,n,o,r)=>{if(n<=1)return{panX:0,panY:0};const i=o*(1-1/n)/2,a=r*(1-1/n)/2;return{panX:Math.max(-i,Math.min(i,e)),panY:Math.max(-a,Math.min(a,t))}},xE=(e,t,n)=>({...e&&{"--player-width":typeof e=="number"?`${e}px`:e},...t&&{"--player-height":typeof t=="number"?`${t}px`:t},...n&&{"--player-aspect-ratio":n}}),An={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Cy(e){return"init"in e}function dc(e){return!!e.write}function Op(e){return"v"in e||"e"in e}function Vi(e){if("e"in e)throw e.e;if((An?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const $i=new WeakMap;function wy(e){var t;return Fi(e)&&!!((t=$i.get(e))!=null&&t[0])}function CE(e){const t=$i.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function fc(e,t){let n=$i.get(e);if(!n){n=[!0,new Set],$i.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function Fi(e){return typeof(e==null?void 0:e.then)=="function"}function Sy(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function Ty(e,t,n){var o;const r=new Set;for(const i of((o=n.get(e))==null?void 0:o.t)||[])r.add(i);for(const i of t.p)r.add(i);return r}const wE=(e,t,...n)=>t.read(...n),SE=(e,t,...n)=>t.write(...n),TE=(e,t)=>{if(t.INTERNAL_onInit)return t.INTERNAL_onInit(e);if(t.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),t.unstable_onInit(e)},PE=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},EE=(e,t)=>{var n;const o=_t(e),r=o[0],i=o[6],a=o[9];if((An?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=r.get(t);return l||(l={d:new Map,p:new Set,n:0},r.set(t,l),(n=i.i)==null||n.call(i,t),a==null||a(e,t)),l},ME=e=>{const t=_t(e),n=t[1],o=t[3],r=t[4],i=t[5],a=t[6],l=t[13],c=[],u=d=>{try{d()}catch(f){c.push(f)}};do{a.f&&u(a.f);const d=new Set,f=d.add.bind(d);o.forEach(p=>{var h;return(h=n.get(p))==null?void 0:h.l.forEach(f)}),o.clear(),i.forEach(f),i.clear(),r.forEach(f),r.clear(),d.forEach(u),o.size&&l(e)}while(o.size||i.size||r.size);if(c.length)throw new AggregateError(c)},OE=e=>{const t=_t(e),n=t[1],o=t[2],r=t[3],i=t[11],a=t[14],l=t[17],c=[],u=new WeakSet,d=new WeakSet,f=Array.from(r);for(;f.length;){const p=f[f.length-1],h=i(e,p);if(d.has(p)){f.pop();continue}if(u.has(p)){if(o.get(p)===h.n)c.push([p,h]);else if((An?"production":void 0)!=="production"&&o.has(p))throw new Error("[Bug] invalidated atom exists");d.add(p),f.pop();continue}u.add(p);for(const m of Ty(p,h,n))u.has(m)||f.push(m)}for(let p=c.length-1;p>=0;--p){const[h,m]=c[p];let g=!1;for(const y of m.d.keys())if(y!==h&&r.has(y)){g=!0;break}g&&(a(e,h),l(e,h)),o.delete(h)}},pc=new WeakSet,kE=(e,t)=>{var n,o;const r=_t(e),i=r[1],a=r[2],l=r[3],c=r[6],u=r[7],d=r[11],f=r[12],p=r[13],h=r[14],m=r[16],g=r[17],y=r[20],v=d(e,t);if(Op(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let D=!1;for(const[V,j]of v.d)if(h(e,V).n!==j){D=!0;break}if(!D)return v}v.d.clear();let S=!0;function w(){i.has(t)&&(g(e,t),p(e),f(e))}function C(D){var V;if(D===t){const x=d(e,D);if(!Op(x))if(Cy(D))y(e,D,D.init);else throw new Error("no atom init");return Vi(x)}const j=h(e,D);try{return Vi(j)}finally{v.d.set(D,j.n),wy(v.v)&&Sy(t,v.v,j),i.has(t)&&((V=i.get(D))==null||V.t.add(t)),S||w()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(An?"production":void 0)!=="production"&&!dc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&dc(t)&&(E=(...D)=>{if((An?"production":void 0)!=="production"&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,t,...D)}finally{p(e),f(e)}}),E}},I=v.n;try{(An?"production":void 0)!=="production"&&pc.delete(e);const D=u(e,t,C,M);return(An?"production":void 0)!=="production"&&pc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,D),Fi(D)&&(fc(D,()=>T==null?void 0:T.abort()),D.then(w,w)),(n=c.r)==null||n.call(c,t),v}catch(D){return delete v.v,v.e=D,++v.n,v}finally{S=!1,I!==v.n&&a.get(t)===I&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},DE=(e,t)=>{const n=_t(e),o=n[1],r=n[2],i=n[11],a=[t];for(;a.length;){const l=a.pop(),c=i(e,l);for(const u of Ty(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},RE=(e,t,...n)=>{const o=_t(e),r=o[3],i=o[6],a=o[8],l=o[11],c=o[12],u=o[13],d=o[14],f=o[15],p=o[16],h=o[17],m=o[20];let g=!0;const y=S=>Vi(d(e,S)),v=(S,...w)=>{var C;const T=l(e,S);try{if(S===t){if(!Cy(S))throw new Error("atom not writable");(An?"production":void 0)!=="production"&&pc.add(e);const E=T.n,M=w[0];m(e,S,M),h(e,S),E!==T.n&&(r.add(S),f(e,S),(C=i.c)==null||C.call(i,S));return}else return p(e,S,...w)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},IE=(e,t)=>{var n;const o=_t(e),r=o[1],i=o[3],a=o[6],l=o[11],c=o[15],u=o[18],d=o[19],f=l(e,t),p=r.get(t);if(p&&!wy(f.v)){for(const[h,m]of f.d)if(!p.d.has(h)){const g=l(e,h);u(e,h).t.add(t),p.d.add(h),m!==g.n&&(i.add(h),c(e,h),(n=a.c)==null||n.call(a,h))}for(const h of p.d)if(!f.d.has(h)){p.d.delete(h);const m=d(e,h);m==null||m.t.delete(t)}}},AE=(e,t)=>{var n;const o=_t(e),r=o[1],i=o[4],a=o[6],l=o[10],c=o[11],u=o[12],d=o[13],f=o[14],p=o[16],h=o[18],m=c(e,t);let g=r.get(t);if(!g){f(e,t);for(const y of m.d.keys())h(e,y).t.add(t);if(g={l:new Set,d:new Set(m.d.keys()),t:new Set},r.set(t,g),dc(t)){const y=()=>{let v=!0;const S=(...w)=>{try{return p(e,t,...w)}finally{v||(d(e),u(e))}};try{const w=l(e,t,S);w&&(g.u=()=>{v=!0;try{w()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},NE=(e,t)=>{var n,o;const r=_t(e),i=r[1],a=r[5],l=r[6],c=r[11],u=r[19],d=c(e,t);let f=i.get(t);if(!f||f.l.size)return f;let p=!1;for(const h of f.t)if((n=i.get(h))!=null&&n.d.has(t)){p=!0;break}if(!p){f.u&&a.add(f.u),f=void 0,i.delete(t);for(const h of d.d.keys()){const m=u(e,h);m==null||m.t.delete(t)}(o=l.u)==null||o.call(l,t);return}return f},_E=(e,t,n)=>{const o=_t(e)[11],r=o(e,t),i="v"in r,a=r.v;if(Fi(n))for(const l of r.d.keys())Sy(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,Fi(a)&&CE(a))},jE=(e,t)=>{const n=_t(e)[14];return Vi(n(e,t))},LE=(e,t,...n)=>{const o=_t(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},VE=(e,t,n)=>{const o=_t(e),r=o[12],i=o[18],a=o[19],c=i(e,t).l;return c.add(n),r(e),()=>{c.delete(n),a(e,t),r(e)}},Py=new WeakMap,_t=e=>{const t=Py.get(e);if((An?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function $E(...e){const t={get(o){const r=_t(t)[21];return r(t,o)},set(o,...r){const i=_t(t)[22];return i(t,o,...r)},sub(o,r){const i=_t(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},wE,SE,TE,PE,EE,ME,OE,kE,DE,RE,IE,AE,NE,_E,jE,LE,VE,void 0].map((o,r)=>e[r]||o);return Py.set(t,Object.freeze(n)),t}const Ey={};let FE=0;function bu(e,t){const n=`atom${++FE}`,o={toString(){return(Ey?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=BE,o.write=zE),o}function BE(e){return e(this)}function zE(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function HE(){return $E()}let Lr;function WE(){return Lr||(Lr=HE(),(Ey?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Lr),globalThis.__JOTAI_DEFAULT_STORE__!==Lr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Lr}const UE={},YE=O.createContext(void 0);function My(e){return O.useContext(YE)||WE()}const hc=e=>typeof(e==null?void 0:e.then)=="function",mc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},qE=O.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(mc(e),e)}),bl=new WeakMap,kp=(e,t)=>{let n=bl.get(e);return n||(n=new Promise((o,r)=>{let i=e;const a=u=>d=>{i===u&&o(d)},l=u=>d=>{i===u&&r(d)},c=()=>{try{const u=t();hc(u)?(bl.set(u,n),i=u,u.then(a(u),l(u)),fc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),fc(e,c)}),bl.set(e,n)),n};function Oy(e,t){const{delay:n,unstable_promiseStatus:o=!O.use}={},r=My(),[[i,a,l],c]=O.useReducer(d=>{const f=r.get(e);return Object.is(d[0],f)&&d[1]===r&&d[2]===e?d:[f,r,e]},void 0,()=>[r.get(e),r,e]);let u=i;if((a!==r||l!==e)&&(c(),u=r.get(e)),O.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);hc(f)&&mc(kp(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),O.useDebugValue(u),hc(u)){const d=kp(u,()=>r.get(e));return o&&mc(d),qE(d)}return u}function GE(e,t){const n=My();return O.useCallback((...r)=>{if((UE?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Bi(e,t){return[Oy(e),GE(e)]}const ky=bu(0),Dy=bu(!0),ZE=bu(null),Ry=O.createContext(null),Iy=O.createContext(null),Ay=({children:e})=>{const t=O.useRef(null),[n,o]=Bi(ky),[r,i]=Bi(Dy),[a,l]=O.useState(!1),[c,u]=O.useState(0),[d,f]=O.useState(!1),p=O.useRef(a);p.current=a,O.useEffect(()=>{const E=t.current;if(!E)return;const M=()=>{if(E.seekable&&E.seekable.length>0){const V=E.seekable.end(E.seekable.length-1);u(V),f(V>0)}else E.duration&&isFinite(E.duration)&&(u(E.duration),f(!0))},I=()=>l(!0),D=()=>l(!1);return E.addEventListener("durationchange",M),E.addEventListener("loadedmetadata",M),E.addEventListener("play",I),E.addEventListener("pause",D),M(),()=>{E.removeEventListener("durationchange",M),E.removeEventListener("loadedmetadata",M),E.removeEventListener("play",I),E.removeEventListener("pause",D)}},[]);const h=O.useCallback(E=>{o(E)},[o]),m=O.useCallback(E=>{i(E)},[i]),g=O.useRef(d);g.current=d;const y=O.useCallback(E=>{const M=t.current;!M||!g.current||(M.currentTime=E,o(E),i(!1))},[o,i]),v=O.useCallback(async()=>{const E=t.current;if(E)try{await E.play(),l(!0)}catch(M){console.error("Failed to play video:",M)}},[]),S=O.useCallback(()=>{const E=t.current;E&&(E.pause(),l(!1))},[]),w=O.useCallback(()=>{p.current?S():v()},[v,S]),C=O.useMemo(()=>({videoRef:t,setCurrentTime:h,setIsLive:m,seekTo:y,play:v,pause:S,togglePlay:w}),[h,m,y,v,S,w]),T=O.useMemo(()=>({currentTime:n,isLive:r,isPlaying:a,duration:c,canSeek:d}),[n,r,a,c,d]);return b.jsx(Ry.Provider,{value:C,children:b.jsx(Iy.Provider,{value:T,children:e})})},ga=()=>{const e=O.useContext(Ry),t=O.useContext(Iy);return O.useMemo(()=>!e||!t?null:{...e,...t},[e,t])},KE=()=>{const e=ga();if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e};function XE(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=e.getTracks().map(r=>r.id).sort(),o=t.getTracks().map(r=>r.id).sort();return n.length===o.length&&n.every((r,i)=>r===o[i])}const QE=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=O.useRef(null),l=ga(),c=O.useRef(null),u=O.useCallback(H=>{c.current=H,l!=null&&l.videoRef&&(l.videoRef.current=H)},[l]),d=O.useMemo(()=>{if(!t||!t.length)return null;if(n){const H=t.find(G=>G.value===n);if(H)return H}return t[0]},[t,n]),[f,p]=O.useState(d),[h,m]=O.useState(!1),[g,y]=O.useState(!0),[v,S]=O.useState(!1),[w,C]=O.useState(0),[T,E]=O.useState(0),[M,I]=O.useState(1),[D,V]=O.useState(1),[j,x]=O.useState(0),[L,A]=O.useState(0),N=O.useRef(!1),k=O.useRef({x:0,y:0}),_=O.useRef({x:0,y:0}),$=O.useRef(!1),[F,B]=O.useState(!1),[R,U]=O.useState(!0),Y=(f==null?void 0:f.stream)??e??null,K=(f==null?void 0:f.src)??null,Q=!!!Y||i;O.useEffect(()=>{p(d)},[d]);const J=O.useRef(!1),ie=O.useRef({seekableEnd:0,currentTime:0,canSeek:!1,isLive:!0}),ee=O.useCallback(()=>{const H=c.current;if(!H)return;if(!H.seekable||H.seekable.length===0){y(!0),S(!1),l&&l.setIsLive(!0);return}const G=ma(H),z=Math.max(0,G-H.currentTime);ie.current={seekableEnd:G,currentTime:H.currentTime,canSeek:G>0,isLive:z<=(r??2)},J.current||(J.current=!0,requestAnimationFrame(()=>{J.current=!1;const Z=ie.current;E(Z.seekableEnd),C(Z.currentTime),S(Z.canSeek),y(Z.isLive),l&&(l.setCurrentTime(Z.currentTime),l.setIsLive(Z.isLive))}))},[r,l]);return O.useEffect(()=>{const H=c.current;if(!H)return;const G=()=>m(!0),z=()=>m(!1),Z=()=>U(!0),X=()=>U(!0),te=()=>U(!1),oe=()=>U(!1);return H.addEventListener("play",G),H.addEventListener("pause",z),H.addEventListener("waiting",Z),H.addEventListener("loadstart",X),H.addEventListener("canplay",te),H.addEventListener("playing",oe),H.addEventListener("timeupdate",ee),H.addEventListener("durationchange",ee),H.addEventListener("loadedmetadata",ee),H.addEventListener("progress",ee),()=>{H.removeEventListener("play",G),H.removeEventListener("pause",z),H.removeEventListener("waiting",Z),H.removeEventListener("loadstart",X),H.removeEventListener("canplay",te),H.removeEventListener("playing",oe),H.removeEventListener("timeupdate",ee),H.removeEventListener("durationchange",ee),H.removeEventListener("loadedmetadata",ee),H.removeEventListener("progress",ee)}},[ee]),O.useEffect(()=>{const H=c.current;H&&(U(!0),Y?(XE(H.srcObject,Y)||(H.srcObject=Y),H.getAttribute("src")&&H.removeAttribute("src")):K?(H.srcObject&&(H.srcObject=null),H.src!==K&&(H.src=K,H.load())):(H.srcObject&&(H.srcObject=null),H.getAttribute("src")&&H.removeAttribute("src")),o&&H.play().then(()=>{}).catch(()=>{}))},[Y,K,o]),O.useEffect(()=>{const H=c.current;H&&(Q?H.playbackRate=M:(H.playbackRate=1,I(1)))},[M,Q]),O.useEffect(()=>{D<=1&&(x(0),A(0))},[D]),O.useEffect(()=>{const H=()=>{B(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",H),()=>{document.removeEventListener("fullscreenchange",H)}},[]),O.useEffect(()=>{if(D<=1)return;const H=a.current;if(!H)return;const G=requestAnimationFrame(()=>{const z=H.getBoundingClientRect(),Z=Xr(j,L,D,z.width,z.height);x(Z.panX),A(Z.panY)});return()=>cancelAnimationFrame(G)},[F]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:w,setCurrentTime:C,seekableEnd:T,playbackRate:M,setPlaybackRate:I,zoom:D,setZoom:V,panX:j,setPanX:x,panY:L,setPanY:A,isDraggingRef:N,dragStartRef:k,panStartRef:_,didDragRef:$,isFullscreen:F,isLoading:R,canAdjustPlaybackRate:Q,updateLiveStatus:ee}},JE="_container_ajnww_1",e6="_loader_ajnww_78",t6="_spinner_ajnww_88",n6="_video_ajnww_111",o6="_videoZoomed_ajnww_119",r6="_timestampOverlay_ajnww_127",s6="_timestampText_ajnww_140",i6="_badgeFloating_ajnww_152",a6="_controlsOverlay_ajnww_159",l6="_controlsVisible_ajnww_183",c6="_timeline_ajnww_188",u6="_controlsRow_ajnww_195",d6="_controlGroup_ajnww_213",f6="_iconButton_ajnww_230",p6="_menuButton_ajnww_281",h6="_liveBadge_ajnww_291",m6="_liveBadgeInactive_ajnww_309",g6="_liveBadgeActive_ajnww_319",y6="_recordingBadge_ajnww_329",b6="_recordingDot_ajnww_348",v6="_emptyState_ajnww_377",x6="_emptyStateText_ajnww_394",C6="_controlMenuWrapper_ajnww_400",w6="_zoomControl_ajnww_418",S6="_zoomValue_ajnww_425",Ae={container:JE,loader:e6,spinner:t6,video:n6,videoZoomed:o6,timestampOverlay:r6,timestampText:s6,badgeFloating:i6,controlsOverlay:a6,controlsVisible:l6,timeline:c6,controlsRow:u6,controlGroup:d6,iconButton:f6,menuButton:p6,liveBadge:h6,liveBadgeInactive:m6,liveBadgeActive:g6,recordingBadge:y6,recordingDot:b6,emptyState:v6,emptyStateText:x6,controlMenuWrapper:C6,zoomControl:w6,zoomValue:S6},T6=({icon:e,label:t,valueLabel:n,selectedValue:o,options:r,onChange:i,disabled:a,ariaLabel:l})=>{const[c,u]=O.useState(null),d=!!c;return b.jsxs(b.Fragment,{children:[b.jsxs(q.ButtonBase,{disabled:a,className:`${Ae.menuButton} ${Ae.controlMenuWrapper}`,"aria-label":l,onClick:f=>u(f.currentTarget),children:[e,t?`${t}: ${n}`:n]}),b.jsx(q.Menu,{anchorEl:c,open:d,onClose:()=>u(null),children:r.map(f=>b.jsx(q.MenuItem,{selected:f.value===o,disabled:f.disabled,onClick:()=>{i(f.value),u(null)},children:f.label},`${t}-${String(f.value)}`))})]})},P6=O.memo(T6),E6=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];function M6(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),r=E6[e.getDay()],i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");return`${t}-${n}-${o}, ${r} ${i}:${a}:${l}`}const Ny=O.memo(({show:e})=>{const[t,n]=O.useState("");return O.useEffect(()=>{if(!e)return;const o=()=>n(M6());o();const r=setInterval(o,1e3);return()=>clearInterval(r)},[e]),!e||!t?null:b.jsx("div",{className:Ae.timestampOverlay,children:b.jsx("span",{className:Ae.timestampText,children:t})})});Ny.displayName="Timestamp";const O6=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},k6=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=ma(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},D6=(e,t,n)=>()=>{const o=e.current;if(!o||!t)return;const r=ma(o);o.currentTime=Math.max(r-.1,0),n()},R6=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},I6=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},A6=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},N6=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=ma(i);i.currentTime=Math.min(Math.max(a,0),l),n()},_6=e=>{const{width:t=20,height:n=20,...o}=e;return b.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:b.jsx("path",{d:"M10.4167 2.5C14.2917 2.5 17.5667 5.025 18.725 8.51667L16.75 9.16667C15.875 6.50833 13.3667 4.58333 10.4167 4.58333C8.78333 4.58333 7.30833 5.18333 6.15 6.15L8.33333 8.33333H2.5V2.5L4.66667 4.66667C6.20833 3.33333 8.20833 2.5 10.4167 2.5ZM8.33333 10V18.3333H6.66667V11.6667H5V10H8.33333ZM10 10H15V11.6667H11.6667V13.3333H13.3333C14.2583 13.3333 15 14.0833 15 15V16.6667C15 17.5917 14.2583 18.3333 13.3333 18.3333H10V16.6667H13.3333V15H10V10Z",fill:"currentColor"})})},j6=e=>{const{width:t=20,height:n=20,...o}=e;return b.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:b.jsx("path",{d:"M9.58336 2.5C11.7917 2.5 13.7917 3.33333 15.3334 4.66667L17.5 2.5V8.33333H11.6667L13.85 6.15C12.6917 5.18333 11.2167 4.58333 9.58336 4.58333C6.63336 4.58333 4.12502 6.50833 3.25002 9.16667L1.27502 8.51667C2.43336 5.025 5.70836 2.5 9.58336 2.5ZM8.33336 10V18.3333H6.66669V11.6667H5.00002V10H8.33336ZM10 10H15V11.6667H11.6667V13.3333H13.3334C14.2584 13.3333 15 14.0833 15 15V16.6667C15 17.5917 14.2584 18.3333 13.3334 18.3333H10V16.6667H13.3334V15H10V10Z",fill:"currentColor"})})},L6=e=>{const{width:t=65,height:n=64,...o}=e;return b.jsx("svg",{width:t,height:n,viewBox:"0 0 65 64",fill:"none",...o,children:b.jsx("path",{d:"M64.05 46.35L52.05 34.35V39.375L18.525 5.85H46.05C47.7 5.85 49.1125 6.4375 50.2875 7.6125C51.4625 8.7875 52.05 10.2 52.05 11.85V25.35L64.05 13.35V46.35ZM59.7 63.9L0 4.2L4.2 0L63.9 59.7L59.7 63.9ZM10.05 5.85L52.05 47.85C52.05 49.5 51.4625 50.9125 50.2875 52.0875C49.1125 53.2625 47.7 53.85 46.05 53.85H10.05C8.4 53.85 6.9875 53.2625 5.8125 52.0875C4.6375 50.9125 4.05 49.5 4.05 47.85V11.85C4.05 10.2 4.6375 8.7875 5.8125 7.6125C6.9875 6.4375 8.4 5.85 10.05 5.85Z",fill:"#525253"})})},V6={color:"#C8E642","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"#fff"},"& .MuiSlider-track":{border:"none",backgroundColor:"#C8E642"},"& .MuiSlider-rail":{backgroundColor:"#424242",opacity:1}},vu=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:o,autoPlay:r=!0,playsInline:i=!0,muted:a=!0,poster:l,className:c,sx:u,liveThresholdSeconds:d=2,allowPlaybackRateForStream:f=!1,playbackRates:p=[.5,1,1.5,2],zoomLevels:h=[1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:S=!0,isRecording:w=!1,recordingLabel:C="Gravação",borderRadius:T,loading:E,unavailable:M=!1,unavailableIcon:I,unavailableMessage:D="O vídeo não está disponível."})=>{const j=ae.useTheme().palette.mode==="dark",[x,L]=O.useState(!0),A=O.useRef(!0),N=O.useRef(null);A.current=x;const{containerRef:k,videoRef:_,setVideoRef:$,selectedQuality:F,setSelectedQuality:B,isPlaying:R,isLive:U,canSeek:Y,currentTime:K,setCurrentTime:re,seekableEnd:Q,playbackRate:J,setPlaybackRate:ie,zoom:ee,setZoom:H,panX:G,setPanX:z,panY:Z,setPanY:X,isDraggingRef:te,dragStartRef:oe,panStartRef:ue,didDragRef:se,isFullscreen:de,isLoading:le,canAdjustPlaybackRate:he,updateLiveStatus:pe}=QE({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),De=O.useRef({width:0,height:0});O.useEffect(()=>{const Ce=k.current;if(!Ce)return;const Ue=new ResizeObserver(([Je])=>{De.current={width:Je.contentRect.width,height:Je.contentRect.height}});return Ue.observe(Ce),()=>Ue.disconnect()},[k]),O.useEffect(()=>{const Ce=k.current;if(!Ce)return;const Ue=()=>{N.current&&(clearTimeout(N.current),N.current=null),L(!0)},Je=()=>{N.current=setTimeout(()=>{},1e4)},Wt=()=>{A.current||L(!0),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{},1e4)};return Ce.addEventListener("mouseenter",Ue),Ce.addEventListener("mouseleave",Je),Ce.addEventListener("mousemove",Wt),()=>{Ce.removeEventListener("mouseenter",Ue),Ce.removeEventListener("mouseleave",Je),Ce.removeEventListener("mousemove",Wt),N.current&&clearTimeout(N.current)}},[]);const ke=O.useMemo(()=>O6(_),[_]),Xe=O.useMemo(()=>k6(_,Y,pe),[_,Y,pe]);O.useMemo(()=>D6(_,Y,pe),[_,Y,pe]);const tt=O.useMemo(()=>R6(k),[k]);O.useMemo(()=>I6(t,B,o),[t,B,o]);const St=O.useMemo(()=>A6(Y,re),[Y,re]),Et=O.useMemo(()=>N6(_,Y,pe),[_,Y,pe]),Pe=O.useRef(G),Ee=O.useRef(Z);Pe.current=G,Ee.current=Z;const ge=O.useRef(ee);ge.current=ee;const _e=O.useCallback(Ce=>{if(H(Ce),Ce<=1)z(0),X(0);else{const{width:Ue,height:Je}=De.current;if(Ue&&Je){const Wt=Xr(Pe.current,Ee.current,Ce,Ue,Je);z(Wt.panX),X(Wt.panY)}}},[H,z,X]),Ve=O.useCallback(Ce=>{const Ue=h.indexOf(ee),Je=Math.max(0,Math.min(h.length-1,Ue+Ce));_e(h[Je])},[ee,h,_e]),st=O.useCallback(Ce=>{if(se.current){se.current=!1;return}const Ue=k.current;if(!Ue)return;const Je=Ue.getBoundingClientRect(),Wt=Ce.clientX-Je.left-Je.width/2,uo=Ce.clientY-Je.top-Je.height/2,Dr=(h.indexOf(ge.current)+1)%h.length,gn=h[Dr];if(gn<=1){H(1),z(0),X(0);return}const Xs=-Wt*(1-1/gn),Xb=-uo*(1-1/gn),bd=Xr(Xs,Xb,gn,Je.width,Je.height);H(gn),z(bd.panX),X(bd.panY)},[h,k,H,z,X,se]),Qe=O.useCallback(Ce=>{ge.current<=1||(Ce.preventDefault(),te.current=!0,se.current=!1,oe.current={x:Ce.clientX,y:Ce.clientY},ue.current={x:Pe.current,y:Ee.current})},[te,se,oe,ue]),$t=O.useCallback(Ce=>{if(!te.current||ge.current<=1)return;Ce.preventDefault();const Ue=Ce.clientX-oe.current.x,Je=Ce.clientY-oe.current.y;(Math.abs(Ue)>3||Math.abs(Je)>3)&&(se.current=!0);const{width:Wt,height:uo}=De.current;if(!Wt||!uo)return;const kr=ue.current.x+Ue/ge.current,Dr=ue.current.y+Je/ge.current,gn=Xr(kr,Dr,ge.current,Wt,uo);z(gn.panX),X(gn.panY)},[te,oe,ue,se,z,X]),Oe=O.useCallback(()=>{te.current=!1},[te]),ut=O.useCallback(Ce=>{if(ge.current<=1||Ce.touches.length!==1)return;const Ue=Ce.touches[0];te.current=!0,se.current=!1,oe.current={x:Ue.clientX,y:Ue.clientY},ue.current={x:Pe.current,y:Ee.current}},[te,se,oe,ue]),bt=O.useCallback(Ce=>{if(!te.current||ge.current<=1||Ce.touches.length!==1)return;const Ue=Ce.touches[0],Je=Ue.clientX-oe.current.x,Wt=Ue.clientY-oe.current.y;(Math.abs(Je)>3||Math.abs(Wt)>3)&&(se.current=!0);const{width:uo,height:kr}=De.current;if(!uo||!kr)return;const Dr=ue.current.x+Je/ge.current,gn=ue.current.y+Wt/ge.current,Xs=Xr(Dr,gn,ge.current,uo,kr);z(Xs.panX),X(Xs.panY)},[te,oe,ue,se,z,X]),Rt=O.useCallback(()=>{te.current=!1},[te]);O.useEffect(()=>{const Ce=_.current;if(!Ce)return;const Ue=Je=>{ge.current>1&&te.current&&Je.preventDefault()};return Ce.addEventListener("touchmove",Ue,{passive:!1}),()=>{Ce.removeEventListener("touchmove",Ue)}},[_,te]);const hn=O.useMemo(()=>p.map(Ce=>({value:Ce,label:`${Ce}x`})),[p]);O.useMemo(()=>t.map(Ce=>({value:Ce.value,label:Ce.label})),[t]),F==null||F.label;const ye=`${Math.round(ee*100)}%`,Ne=`${J}x`,it=Y&&Q>0,mn=xE(m,g,y),Or=T!=null?{...mn,"--vp-radius":typeof T=="number"?`${T}px`:T}:mn,dt=O.useMemo(()=>({transform:ee>1?`scale(${ee}) translate3d(${G}px, ${Z}px, 0)`:void 0,willChange:ee>1?"transform":void 0}),[ee,G,Z]);return b.jsx(q.Box,{ref:k,className:`${Ae.container} ${c||""}`.trim(),"data-theme":j?"dark":"light",style:Or,sx:u,children:M?b.jsxs("div",{className:Ae.emptyState,children:[I??b.jsx(L6,{}),typeof D=="string"?b.jsx(q.Typography,{className:Ae.emptyStateText,children:D}):D]}):b.jsxs(b.Fragment,{children:[(E??le)&&b.jsx("div",{className:Ae.loader,children:b.jsx("span",{className:Ae.spinner})}),b.jsx("video",{ref:$,className:`${Ae.video} ${ee>1?Ae.videoZoomed:""}`.trim(),autoPlay:r,playsInline:i,muted:a,poster:l,style:dt,onMouseDown:Qe,onMouseMove:$t,onMouseUp:Oe,onMouseLeave:Oe,onClick:st,onTouchStart:ut,onTouchMove:bt,onTouchEnd:Rt}),b.jsx(Ny,{show:v}),w&&!x&&b.jsx("div",{className:Ae.badgeFloating,children:b.jsxs("span",{className:Ae.recordingBadge,children:[b.jsx("span",{className:Ae.recordingDot}),C]})}),U&&!w&&!x&&b.jsx("div",{className:Ae.badgeFloating,children:b.jsx("span",{className:`${Ae.liveBadge} ${Ae.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs("div",{className:`${Ae.controlsOverlay} ${x?Ae.controlsVisible:""}`,children:[S&&b.jsx("div",{className:Ae.timeline,children:b.jsx(q.Slider,{size:"small",min:0,max:it?Q:1,step:1,value:it?K:0,disabled:!it,onChange:St,onChangeCommitted:Et,"aria-label":"Linha do tempo do video",sx:V6})}),b.jsxs("div",{className:Ae.controlsRow,children:[b.jsxs("div",{className:Ae.controlGroup,children:[w?b.jsxs("span",{className:Ae.recordingBadge,children:[b.jsx("span",{className:Ae.recordingDot}),C]}):b.jsx("span",{className:`${Ae.liveBadge} ${U?Ae.liveBadgeActive:Ae.liveBadgeInactive}`,children:"ao vivo"}),b.jsx(q.IconButton,{className:Ae.iconButton,onClick:()=>Xe(-15),disabled:!Y,"aria-label":"Voltar 15 segundos",children:b.jsx(_6,{})}),b.jsx(q.IconButton,{className:Ae.iconButton,onClick:ke,"aria-label":"Play/Pause",children:R?b.jsx(Ct.Pause,{fontSize:"small"}):b.jsx(Ct.PlayArrow,{fontSize:"small"})}),b.jsx(q.IconButton,{className:Ae.iconButton,onClick:()=>Xe(15),disabled:!Y,"aria-label":"Avançar 15 segundos",children:b.jsx(j6,{})})]}),b.jsxs("div",{className:Ae.controlGroup,children:[b.jsx(P6,{icon:b.jsx(Ct.Speed,{fontSize:"small"}),label:"",valueLabel:Ne,selectedValue:J,options:hn,ariaLabel:"Selecionar velocidade de reprodução",onChange:ie,disabled:!he}),b.jsxs("div",{className:Ae.zoomControl,children:[b.jsx(q.IconButton,{className:Ae.iconButton,onClick:()=>_e(1),disabled:ee<=1,"aria-label":"Resetar zoom",children:b.jsx(Ct.Undo,{fontSize:"small"})}),b.jsx(q.IconButton,{className:Ae.iconButton,onClick:()=>Ve(-1),disabled:ee<=h[0],"aria-label":"Diminuir zoom",children:b.jsx(Ct.ZoomOut,{fontSize:"small"})}),b.jsx("span",{className:Ae.zoomValue,children:ye}),b.jsx(q.IconButton,{className:Ae.iconButton,onClick:()=>Ve(1),disabled:ee>=h[h.length-1],"aria-label":"Aumentar zoom",children:b.jsx(Ct.ZoomIn,{fontSize:"small"})})]}),b.jsx(q.IconButton,{className:Ae.iconButton,onClick:tt,"aria-label":"Fullscreen",children:de?b.jsx(Ct.CloseFullscreen,{fontSize:"small"}):b.jsx(Ct.OpenInFull,{fontSize:"small"})})]})]})]})]})})};vu.displayName="VideoPlayer";const $6=yt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),F6=yt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),B6=yt(b.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),z6=yt(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 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined");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 o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},W.apply(null,arguments)}function Me(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function H6(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:hs(t.components[n].defaultProps,o)}function W6(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Pt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const U6={...P},_y=U6.useSyncExternalStore;function Y6(e,t,n,o,r){const i=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,r,n]),[l,c]=P.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[i,n,e]);return _y(c,l,a)}function jy(e={}){const{themeId:t}=e;return function(o,r={}){let i=nx();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=H6({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="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(`
110
110
  `));let f=typeof o=="function"?o(i):o;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(`
111
- `));const h=(zy!==void 0?sM:oM)(f,l,c,d,u);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}Hy();const Wy=Hy({themeId:pa}),wt=s.oneOfType([s.func,s.object]);function nn(e,t,n){return typeof e=="function"?e(t,n):e}const zr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),iM=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},qi=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Ts=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=qi(a,a.date(void 0,l),e);n&&a.isBefore(r,c)&&(r=c),t&&a.isAfter(o,c)&&(o=c);let d=e,u=e;for(a.isBefore(e,r)&&(d=r,u=null),a.isAfter(e,o)&&(u&&(u=o),d=null);d||u;){if(d&&a.isAfter(d,o)&&(d=null),u&&a.isBefore(u,r)&&(u=null),d){if(!i(d))return d;d=a.addDays(d,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},aM=(e,t)=>e.isValid(t)?t:null,Fp=(e,t,n)=>t==null||!e.isValid(t)?n:t,lM=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Du=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},Uy=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),cM=["year","month","day"],Bp=e=>cM.includes(e),Iu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return zr(n,["year"])?r.year:zr(n,["month"])?r.month:zr(n,["day"])?r.dayOfMonth:zr(n,["month","year"])?`${r.month} ${r.year}`:zr(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},uM=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},dM=["hours","minutes","seconds"],fM=e=>dM.includes(e),zp=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),pM=(e,t)=>(n,o)=>e?t.isAfter(n,o):zp(n,t)>zp(o,t),Cn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},hM=e=>Math.max(...e.map(t=>Cn[t.type]??1)),Hr=(e,t,n)=>{if(t===Cn.year)return e.startOfYear(n);if(t===Cn.month)return e.startOfMonth(n);if(t===Cn.day)return e.startOfDay(n);let o=n;return t<Cn.minutes&&(o=e.setMinutes(o,0)),t<Cn.seconds&&(o=e.setSeconds(o,0)),t<Cn.milliseconds&&(o=e.setMilliseconds(o,0)),o},mM=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():Hr(t,n,Uy(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Hr(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Hr(t,n,e.maxDate));const a=pM(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Hr(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:qi(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Hr(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:qi(t,i,e.maxTime))),i},Ru=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
112
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},wa=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Yy=(e,t,n,o)=>{switch(n){case"month":return Du(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return wa(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},Hp="s",gM=["0","1","2","3","4","5","6","7","8","9"],yM=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Hp)==="0"?gM:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Hp))},Bo=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Au=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Wp=(e,t)=>{const n=Bo(e,t);return n!==" "&&!Number.isNaN(Number(n))},_u=(e,t)=>Number(e).toString().padStart(t,"0"),qy=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
111
+ `));const h=(_y!==void 0?Y6:W6)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}jy();const Ly=jy({themeId:la}),wt=s.oneOfType([s.func,s.object]);function tn(e,t,n){return typeof e=="function"?e(t,n):e}const Vr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),q6=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},zi=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},xs=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=zi(a,a.date(void 0,l),e);n&&a.isBefore(r,c)&&(r=c),t&&a.isAfter(o,c)&&(o=c);let u=e,d=e;for(a.isBefore(e,r)&&(u=r,d=null),a.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&a.isAfter(u,o)&&(u=null),d&&a.isBefore(d,r)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},G6=(e,t)=>e.isValid(t)?t:null,Dp=(e,t,n)=>t==null||!e.isValid(t)?n:t,Z6=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),xu=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},Vy=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),K6=["year","month","day"],Rp=e=>K6.includes(e),Cu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Vr(n,["year"])?r.year:Vr(n,["month"])?r.month:Vr(n,["day"])?r.dayOfMonth:Vr(n,["month","year"])?`${r.month} ${r.year}`:Vr(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},X6=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},Q6=["hours","minutes","seconds"],J6=e=>Q6.includes(e),Ip=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),eM=(e,t)=>(n,o)=>e?t.isAfter(n,o):Ip(n,t)>Ip(o,t),xn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},tM=e=>Math.max(...e.map(t=>xn[t.type]??1)),$r=(e,t,n)=>{if(t===xn.year)return e.startOfYear(n);if(t===xn.month)return e.startOfMonth(n);if(t===xn.day)return e.startOfDay(n);let o=n;return t<xn.minutes&&(o=e.setMinutes(o,0)),t<xn.seconds&&(o=e.setSeconds(o,0)),t<xn.milliseconds&&(o=e.setMilliseconds(o,0)),o},nM=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():$r(t,n,Vy(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=$r(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=$r(t,n,e.maxDate));const a=eM(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=$r(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:zi(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=$r(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:zi(t,i,e.maxTime))),i},wu=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
112
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},ya=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},$y=(e,t,n,o)=>{switch(n){case"month":return xu(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return ya(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},Ap="s",oM=["0","1","2","3","4","5","6","7","8","9"],rM=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Ap)==="0"?oM:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Ap))},Lo=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Su=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Np=(e,t)=>{const n=Lo(e,t);return n!==" "&&!Number.isNaN(Number(n))},Tu=(e,t)=>Number(e).toString().padStart(t,"0"),Fy=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
113
113
  This type of format is only supported for 'day' sections`].join(`
114
- `));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=_u(i,r.maxLength)),Au(i,o)},Nu=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Bo(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},Up=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Ru(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},bM=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Gy=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(r,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},vM=(e,t,n)=>{const o=t.some(c=>c.type==="day"),r=[],i=[];for(let c=0;c<t.length;c+=1){const d=t[c];o&&d.type==="weekDay"||(r.push(d.format),i.push(Nu(d,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},xM=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),CM=(e,t,n)=>{const r=e.map(i=>{const a=Nu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},wM=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Du(e,o).reduce((c,d)=>{const u=e.getDaysInMonth(d);return u>c.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:d}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:bM(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:d})=>{if(d==="digit"){const u=wa(e,c).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const d=e.getHours(i);return Bo(e.formatByString(e.endOfDay(o),c),t)!==d.toString()?{minimum:1,maximum:Number(Bo(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:d}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Yp=!1;const qp=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Yp){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Yp=!0)}},SM=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=_u(r,t.maxLength));const i=wa(e,t.format),a=i.indexOf(r),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Gp={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Kp=(e,t,n,o,r)=>[...n].sort((i,a)=>Gp[i.type]-Gp[a.type]).reduce((i,a)=>!r||a.modified?SM(e,a,t,i):i,o),TM=()=>navigator.userAgent.toLowerCase().includes("android"),PM=(e,t)=>{const n={};if(!t)return e.forEach((c,d)=>{const u=d===0?null:d-1,f=d===e.length-1?null:d+1;n[d]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((c,d)=>{var u;return d>=i&&((u=c.endSeparator)==null?void 0:u.includes(" "))&&c.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let c=a;c>=i;c-=1)r[c]=l,o[l]=c,l-=1;i=a+1}return e.forEach((c,d)=>{const u=r[d],f=u===0?null:o[u-1],p=u===e.length-1?null:o[u+1];n[d]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Tc=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},EM=["value","referenceDate"],On={emptyValue:null,getTodayValue:Uy,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Me(e,EM);return o.adapter.isValid(t)?t:n??mM(o)},cleanValue:aM,areValuesEqual:lM,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},MM={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:xM,getV6InputValueFromSections:CM,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>U({},t,{value:""}))};function kM(e){return typeof e.main=="string"}function OM(e,t=[]){if(!kM(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Gt(e=[]){return([,t])=>t&&OM(t,e)}function DM(e){return Te("MuiTypography",e)}Se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const IM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},RM=gC(),AM=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return we(l,DM,a)},_M=ve("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Gt()).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${ce(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}}]}})),Zp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fo=P.forwardRef(function(t,n){const{color:o,...r}=$e({props:t,name:"MuiTypography"}),i=!IM[o],a=RM({...r,...i&&{color:o}}),{align:l="inherit",className:c,component:d,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Zp,...g}=a,b={...a,align:l,color:o,className:c,component:d,gutterBottom:u,noWrap:f,paragraph:p,variant:h,variantMapping:m},v=d||(p?"p":m[h]||Zp[h])||"span",S=AM(b);return y.jsx(_M,{as:v,ref:n,className:be(S.root,c),...g,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(fo.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 NM(e){return Te("MuiPickersToolbar",e)}Se("MuiPickersToolbar",["root","title","content"]);const jM=["localeText"],Gi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Gi.displayName="PickerAdapterContext");const Sa=function(t){const{localeText:n}=t,o=Me(t,jM),{adapter:r,localeText:i}=P.useContext(Gi)??{adapter:void 0,localeText:void 0},a=ae.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:d,dateLibInstance:u,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>U({},p,i,n),[p,i,n]),m=P.useMemo(()=>{if(!c)return r||null;const v=new c({locale:f,formats:d,instance:u});if(!v.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/quickstart/#installation"].join(`
115
- `));return v},[c,f,d,u,r]),g=P.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),b=P.useMemo(()=>({utils:m,adapter:m,defaultDates:g,localeText:h}),[g,m,h]);return y.jsx(Gi.Provider,{value:b,children:l})};process.env.NODE_ENV!=="production"&&(Sa.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(Sa.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate: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 ju=P.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(ju.displayName="IsValidValueContext");function LM(){return P.useContext(ju)}const Lu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Lu.displayName="PickerFieldPrivateContext");function Ky(){return P.useContext(Lu)}const Ta=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ta.displayName="PickerContext");const Dr=()=>{const e=P.useContext(Ta);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Vu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Vu.displayName="PickerActionsContext");const $u=P.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&($u.displayName="PickerPrivateContext");function Zy(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return y.jsx(Ta.Provider,{value:t,children:y.jsx(Vu.Provider,{value:n,children:y.jsx($u.Provider,{value:o,children:y.jsx(Lu.Provider,{value:r,children:y.jsx(ju.Provider,{value:i,children:y.jsx(Sa,{localeText:a,children:l})})})})})})}const It=()=>P.useContext($u);function Xy(){const{ownerState:e}=It(),t=pn();return P.useMemo(()=>U({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const VM=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],$M=e=>we({root:["root"],title:["title"],content:["content"]},NM,e),FM=ae.styled("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),BM=ae.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>eo(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Qy=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:d,landscapeDirection:u}=o,f=Me(o,VM),p=Xy(),h=$M(a);return c?null:y.jsxs(FM,U({ref:n,className:be(h.root,i),ownerState:p},f,{children:[y.jsx(fo,{color:"text.secondary",variant:"overline",id:d,className:h.title,children:l}),y.jsx(BM,{className:h.content,ownerState:p,landscapeDirection:u,children:r})]}))});process.env.NODE_ENV!=="production"&&(Qy.displayName="PickersToolbar");const zM=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:U({},e)}}}}),Jy={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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,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=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",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"},HM=Jy;zM(Jy);const Fu=()=>{const e=P.useContext(Gi);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(`
114
+ `));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Tu(i,r.maxLength)),Su(i,o)},Pu=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Lo(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},_p=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&wu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},sM=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,By=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(r,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},iM=(e,t,n)=>{const o=t.some(c=>c.type==="day"),r=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(r.push(u.format),i.push(Pu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},aM=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),lM=(e,t,n)=>{const r=e.map(i=>{const a=Pu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},cM=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=xu(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:sM(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=ya(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i);return Lo(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Lo(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let jp=!1;const Lp=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!jp){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),jp=!0)}},uM=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=Tu(r,t.maxLength));const i=ya(e,t.format),a=i.indexOf(r),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Vp={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},$p=(e,t,n,o,r)=>[...n].sort((i,a)=>Vp[i.type]-Vp[a.type]).reduce((i,a)=>!r||a.modified?uM(e,a,t,i):i,o),dM=()=>navigator.userAgent.toLowerCase().includes("android"),fM=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((c,u)=>{var d;return u>=i&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let c=a;c>=i;c-=1)r[c]=l,o[l]=c,l-=1;i=a+1}return e.forEach((c,u)=>{const d=r[u],f=d===0?null:o[d-1],p=d===e.length-1?null:o[d+1];n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},gc=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},pM=["value","referenceDate"],Mn={emptyValue:null,getTodayValue:Vy,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Me(e,pM);return o.adapter.isValid(t)?t:n??nM(o)},cleanValue:G6,areValuesEqual:Z6,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},hM={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:aM,getV6InputValueFromSections:lM,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>W({},t,{value:""}))};function mM(e){return typeof e.main=="string"}function gM(e,t=[]){if(!mM(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function qt(e=[]){return([,t])=>t&&gM(t,e)}function yM(e){return Te("MuiTypography",e)}Se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},vM=nC(),xM=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return we(l,yM,a)},CM=ve("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ze(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(qt()).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${ce(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}}]}})),Fp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ao=P.forwardRef(function(t,n){const{color:o,...r}=$e({props:t,name:"MuiTypography"}),i=!bM[o],a=vM({...r,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Fp,...g}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:m},v=u||(p?"p":m[h]||Fp[h])||"span",S=xM(y);return b.jsx(CM,{as:v,ref:n,className:be(S.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(ao.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 wM(e){return Te("MuiPickersToolbar",e)}Se("MuiPickersToolbar",["root","title","content"]);const SM=["localeText"],Hi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Hi.displayName="PickerAdapterContext");const ba=function(t){const{localeText:n}=t,o=Me(t,SM),{adapter:r,localeText:i}=P.useContext(Hi)??{adapter:void 0,localeText:void 0},a=ae.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>W({},p,i,n),[p,i,n]),m=P.useMemo(()=>{if(!c)return r||null;const v=new c({locale:f,formats:u,instance:d});if(!v.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/quickstart/#installation"].join(`
115
+ `));return v},[c,f,u,d,r]),g=P.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=P.useMemo(()=>({utils:m,adapter:m,defaultDates:g,localeText:h}),[g,m,h]);return b.jsx(Hi.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ba.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ba.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate: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 Eu=P.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Eu.displayName="IsValidValueContext");function TM(){return P.useContext(Eu)}const Mu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Mu.displayName="PickerFieldPrivateContext");function zy(){return P.useContext(Mu)}const va=P.createContext(null);process.env.NODE_ENV!=="production"&&(va.displayName="PickerContext");const Er=()=>{const e=P.useContext(va);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Ou=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ou.displayName="PickerActionsContext");const ku=P.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(ku.displayName="PickerPrivateContext");function Hy(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(va.Provider,{value:t,children:b.jsx(Ou.Provider,{value:n,children:b.jsx(ku.Provider,{value:o,children:b.jsx(Mu.Provider,{value:r,children:b.jsx(Eu.Provider,{value:i,children:b.jsx(ba,{localeText:a,children:l})})})})})})}const Dt=()=>P.useContext(ku);function Wy(){const{ownerState:e}=Dt(),t=fn();return P.useMemo(()=>W({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const PM=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],EM=e=>we({root:["root"],title:["title"],content:["content"]},wM,e),MM=ae.styled("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),OM=ae.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Kn(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Uy=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,f=Me(o,PM),p=Wy(),h=EM(a);return c?null:b.jsxs(MM,W({ref:n,className:be(h.root,i),ownerState:p},f,{children:[b.jsx(ao,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),b.jsx(OM,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(Uy.displayName="PickersToolbar");const kM=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:W({},e)}}}}),Yy={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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,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=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",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"},DM=Yy;kM(Yy);const Du=()=>{const e=P.useContext(Hi);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(`
116
116
  `));if(e.adapter===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(`
117
- `));const t=P.useMemo(()=>U({},HM,e.localeText),[e.localeText]);return P.useMemo(()=>U({},e,{localeText:t}),[e,t])},Ze=()=>Fu().adapter,po=()=>Fu().localeText,Pc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Ec=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],e1=["minDateTime","maxDateTime"],WM=[...Pc,...Ec,...e1],t1=e=>WM.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),UM=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],n1=(e,t)=>P.useMemo(()=>{const n=U({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return UM.forEach(r),t==="date"?Pc.forEach(r):t==="time"?Ec.forEach(r):t==="date-time"&&(Pc.forEach(r),Ec.forEach(r),e1.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),YM=({adapter:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return r},qM=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},GM=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},KM=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Ru(e,a),d=Gy(e,c.contentType,c.type,a),u=n?d:c.contentType==="digit",f=e.isValid(t);let p=f?e.formatByString(t,a):"",h=null;if(u)if(d)h=p===""?e.formatByString(i,a).length:p.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);h=c.maxLength,f&&(p=Au(_u(Bo(p,r),h),r))}return U({},c,{format:a,maxLength:h,value:p,placeholder:GM(e,o,c,a),hasLeadingZerosInFormat:d,hasLeadingZerosInInput:u,startSeparator:l,endSeparator:"",modified:!1})},ZM=e=>{var h;const{adapter:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),c=/^([a-zA-Z]+)/,d=new RegExp(`^(${l.join("|")})*$`),u=new RegExp(`^(${l.join("|")})`),f=m=>o.find(g=>g.start<=m&&g.end>=m);let p=0;for(;p<n.length;){const m=f(p),g=m!=null,b=(h=c.exec(n.slice(p)))==null?void 0:h[1];if(!g&&b!=null&&d.test(b)){let v=b;for(;v.length>0;){const S=u.exec(v)[1];v=v.slice(S.length),i.push(KM(U({},e,{now:r,token:S,startSeparator:a}))),a=""}p+=b.length}else{const v=n[p];g&&(m==null?void 0:m.start)===p||(m==null?void 0:m.end)===p||(i.length===0?a+=v:(i[i.length-1].endSeparator+=v,i[i.length-1].isEndFormatSeparator=!0)),p+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},XM=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Xp=e=>{let t=YM(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=qM(U({},e,{expandedFormat:t})),o=ZM(U({},e,{expandedFormat:t,escapedParts:n}));return XM(U({},e,{sections:o}))},Bu=()=>P.useContext(Ta),QM=()=>{const e=P.useContext(Vu);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
118
- `));return e};function JM(e){return Te("MuiDatePickerToolbar",e)}Se("MuiDatePickerToolbar",["root","title"]);const ek=["toolbarFormat","toolbarPlaceholder","className","classes"],tk=e=>we({root:["root"],title:["title"]},JM,e),nk=ae.styled(Qy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),ok=ae.styled(fo,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),zu=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Me(o,ek),d=Ze(),{value:u,views:f,orientation:p}=Dr(),h=po(),m=Xy(),g=tk(l),b=P.useMemo(()=>{if(!d.isValid(u))return i;const v=Iu(d,{format:r,views:f},!0);return d.formatByString(u,v)},[u,r,i,d,f]);return y.jsx(nk,U({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:be(g.root,a)},c,{children:y.jsx(ok,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:b})}))});process.env.NODE_ENV!=="production"&&(zu.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(zu.propTypes={classes:s.object,className:s.string,hidden: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});const Ws=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:d,maxDate:u}=e,f=o.date(void 0,n);switch(!0){case!o.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,f)):return"disableFuture";case!!(l&&o.isBeforeDay(t,f)):return"disablePast";case!!(d&&o.isBeforeDay(t,d)):return"minDate";case!!(u&&o.isAfterDay(t,u)):return"maxDate";default:return null}};Ws.valueManager=On;function o1(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Ze(),l=P.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),d=n.valueManager.hasError(c);P.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const u=me(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:d,getValidationErrorForNewValue:u}}const rk=()=>Fu().defaultDates,Pa=e=>{const t=Ze(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function sk(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Ws,internal_valueManager:On,internal_fieldValueManager:MM,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:ak,internal_useOpenPickerButtonAriaLabel:ik}),[t])}function ik(e){const t=Ze(),n=po();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function ak(e){const t=Ze(),n=Us(e);return P.useMemo(()=>U({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Us(e){const t=Ze(),n=rk();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Fp(t,e.minDate,n.minDate),maxDate:Fp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function r1(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Us(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:U({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return U({},n,o,{localeText:r},iM({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:U({toolbar:zu},n.slots)})}function br(e){return typeof e=="string"}function s1(e,t,n){return e===void 0||br(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function i1(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Qp(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 a1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=be(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),m={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},g={...n,...r,...o};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=i1({...r,...o}),l=Qp(o),c=Qp(r),d=t(a),u=be(d==null?void 0:d.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),f={...d==null?void 0:d.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},p={...d,...n,...c,...l};return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:d.ref}}function je(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:nn(n,o),{props:l,internalRef:c}=a1({...i,externalSlotProps:a}),d=Le(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return s1(t,{...l,ref:d},o)}const Jp={};function l1(e,t){const n=P.useRef(Jp);return n.current===Jp&&(n.current=e(t)),n}const lk=[];function ck(e){P.useEffect(e,lk)}class Hu{constructor(){fe(this,"currentId",null);fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fe(this,"disposeEffect",()=>this.clear)}static create(){return new Hu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function to(){const e=l1(Hu.create).current;return ck(e.disposeEffect),e}function Wn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function uk(e){const{prototype:t={}}=e;return!!t.isReactComponent}function c1(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!uk(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ys=Wn(s.element,c1);Ys.isRequired=Wn(s.element.isRequired,c1);function qs(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function Mc(e,t){return Mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Mc(e,t)}function Wu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mc(e,t)}function dk(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function fk(e,t){e.classList?e.classList.add(t):dk(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function eh(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function pk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=eh(e.className,t):e.setAttribute("class",eh(e.className&&e.className.baseVal||"",t))}const th={disabled:!1};var hk=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,mk=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 Ki=k.createContext(null);var u1=function(t){return t.scrollTop},ns="unmounted",Oo="exited",Do="entering",Jo="entered",kc="exiting",ln=function(e){Wu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Oo,i.appearStatus=Do):c=Jo:o.unmountOnExit||o.mountOnEnter?c=ns:c=Oo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===ns?{status:Oo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Do&&a!==Jo&&(i=Do):(a===Do||a===Jo)&&(i=kc)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Do){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:nr.findDOMNode(this);a&&u1(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oo&&this.setState({status:ns})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[nr.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||th.disabled){this.safeSetState({status:Jo},function(){i.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:Do},function(){i.props.onEntering(d,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Jo},function(){i.props.onEntered(d,u)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:nr.findDOMNode(this);if(!i||th.disabled){this.safeSetState({status:Oo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:kc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Oo},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:nr.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ns)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Me(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(Ki.Provider,{value:null},typeof a=="function"?a(r,l):k.cloneElement(k.Children.only(a),l))},t}(k.Component);ln.contextType=Ki;ln.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=hk;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Zo(){}ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zo,onEntering:Zo,onEntered:Zo,onExit:Zo,onExiting:Zo,onExited:Zo};ln.UNMOUNTED=ns;ln.EXITED=Oo;ln.ENTERING=Do;ln.ENTERED=Jo;ln.EXITING=kc;var gk=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return fk(t,o)})},Tl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return pk(t,o)})},Uu=function(e){Wu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var d=o.resolveArguments(l,c),u=d[0],f=d[1];o.removeClasses(u,"exit"),o.addClass(u,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var d=o.resolveArguments(l,c),u=d[0],f=d[1],p=f?"appear":"enter";o.addClass(u,p,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var d=o.resolveArguments(l,c),u=d[0],f=d[1],p=f?"appear":"enter";o.removeClasses(u,p),o.addClass(u,p,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l),d=c[0];o.removeClasses(d,"appear"),o.removeClasses(d,"enter"),o.addClass(d,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l),d=c[0];o.addClass(d,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l),d=c[0];o.removeClasses(d,"exit"),o.addClass(d,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,d=typeof c=="string",u=d&&c?c+"-":"",f=d?""+u+l:c[l],p=d?f+"-active":c[l+"Active"],h=d?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),d=c.doneClassName;i==="appear"&&a==="done"&&d&&(l+=" "+d),a==="active"&&r&&u1(r),l&&(this.appliedClasses[i][a]=l,gk(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,c=a.active,d=a.done;this.appliedClasses[i]={},l&&Tl(r,l),c&&Tl(r,c),d&&Tl(r,d)},n.render=function(){var r=this.props;r.classNames;var i=Me(r,["classNames"]);return k.createElement(ln,U({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(k.Component);Uu.defaultProps={classNames:""};Uu.propTypes=process.env.NODE_ENV!=="production"?U({},ln.propTypes,{classNames:mk,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yu(e,t){var n=function(i){return t&&k.isValidElement(i)?t(i):i},o=Object.create(null);return e&&k.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function bk(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var d=o[c][a];l[o[c][a]]=n(d)}l[c]=n(c)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function No(e,t,n){return n[t]!=null?n[t]:e.props[t]}function vk(e,t){return Yu(e.children,function(n){return k.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:No(n,"appear",e),enter:No(n,"enter",e),exit:No(n,"exit",e)})})}function xk(e,t,n){var o=Yu(e.children),r=bk(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(k.isValidElement(a)){var l=i in t,c=i in o,d=t[i],u=k.isValidElement(d)&&!d.props.in;c&&(!l||u)?r[i]=k.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:No(a,"exit",e),enter:No(a,"enter",e)}):!c&&l&&!u?r[i]=k.cloneElement(a,{in:!1}):c&&l&&k.isValidElement(d)&&(r[i]=k.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:No(a,"exit",e),enter:No(a,"enter",e)}))}}),r}var Ck=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wk={component:"div",childFactory:function(t){return t}},Gs=function(e){Wu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(yk(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?vk(r,l):xk(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Yu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=U({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Me(r,["component","childFactory"]),c=this.state.contextValue,d=Ck(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?k.createElement(Ki.Provider,{value:c},d):k.createElement(Ki.Provider,{value:c},k.createElement(i,l,d))},t}(k.Component);Gs.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Gs.defaultProps=wk;const d1=e=>e.scrollTop;function Zi(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function Oc(e){return`scale(${e}, ${e**2})`}const Sk={entering:{opacity:1,transform:Oc(1)},entered:{opacity:1,transform:"none"}},Pl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ps=P.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:b=ln,...v}=t,S=to(),w=P.useRef(),C=ha(),T=P.useRef(null),E=Le(T,qs(i),n),M=_=>O=>{if(_){const N=T.current;O===void 0?_(N):_(N,O)}},R=M(u),D=M((_,O)=>{d1(_);const{duration:N,delay:$,easing:F}=Zi({style:m,timeout:g,easing:a},{mode:"enter"});let B;g==="auto"?(B=C.transitions.getAutoHeightDuration(_.clientHeight),w.current=B):B=N,_.style.transition=[C.transitions.create("opacity",{duration:B,delay:$}),C.transitions.create("transform",{duration:Pl?B:B*.666,delay:$,easing:F})].join(","),c&&c(_,O)}),V=M(d),j=M(h),x=M(_=>{const{duration:O,delay:N,easing:$}=Zi({style:m,timeout:g,easing:a},{mode:"exit"});let F;g==="auto"?(F=C.transitions.getAutoHeightDuration(_.clientHeight),w.current=F):F=O,_.style.transition=[C.transitions.create("opacity",{duration:F,delay:N}),C.transitions.create("transform",{duration:Pl?F:F*.666,delay:Pl?N:N||F*.333,easing:$})].join(","),_.style.opacity=0,_.style.transform=Oc(.75),f&&f(_)}),L=M(p),A=_=>{g==="auto"&&S.start(w.current||0,_),o&&o(T.current,_)};return y.jsx(b,{appear:r,in:l,nodeRef:T,onEnter:D,onEntered:V,onEntering:R,onExit:x,onExited:L,onExiting:j,addEndListener:A,timeout:g==="auto"?null:g,...v,children:(_,{ownerState:O,...N})=>P.cloneElement(i,{style:{opacity:0,transform:Oc(.75),visibility:_==="exited"&&!l?"hidden":void 0,...Sk[_],...m,...i.props.style},ref:E,...N})})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={addEndListener:s.func,appear:s.bool,children:Ys.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Ps&&(Ps.muiSupportAuto=!0);const Tk={entering:{opacity:1},entered:{opacity:1}},io=P.forwardRef(function(t,n){const o=ha(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:d,onEnter:u,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:b,timeout:v=r,TransitionComponent:S=ln,...w}=t,C=P.useRef(null),T=Le(C,qs(l),n),E=A=>_=>{if(A){const O=C.current;_===void 0?A(O):A(O,_)}},M=E(p),R=E((A,_)=>{d1(A);const O=Zi({style:b,timeout:v,easing:c},{mode:"enter"});A.style.webkitTransition=o.transitions.create("opacity",O),A.style.transition=o.transitions.create("opacity",O),u&&u(A,_)}),D=E(f),V=E(g),j=E(A=>{const _=Zi({style:b,timeout:v,easing:c},{mode:"exit"});A.style.webkitTransition=o.transitions.create("opacity",_),A.style.transition=o.transitions.create("opacity",_),h&&h(A)}),x=E(m),L=A=>{i&&i(C.current,A)};return y.jsx(S,{appear:a,in:d,nodeRef:C,onEnter:R,onEntered:D,onEntering:M,onExit:j,onExited:x,onExiting:V,addEndListener:L,timeout:v,...w,children:(A,{ownerState:_,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:A==="exited"&&!d?"hidden":void 0,...Tk[A],...b,...l.props.style},ref:T,...O})})});process.env.NODE_ENV!=="production"&&(io.propTypes={addEndListener:s.func,appear:s.bool,children:Ys.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Pk(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function f1(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=Pk(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function p1(e,t,n,o){return e[t]===void 0?null:f1(e,t,n,o)}function Dc(){return null}p1.isRequired=f1;Dc.isRequired=Dc;const h1=process.env.NODE_ENV==="production"?Dc:p1;function Ek(e){return Te("MuiPaper",e)}Se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Mk=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,Ek,r)},kk=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ks=P.forwardRef(function(t,n){var h;const o=$e({props:t,name:"MuiPaper"}),r=ha(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=o,f={...o,component:a,elevation:l,square:c,variant:d},p=Mk(f);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
119
- `)),y.jsx(kk,{as:a,ownerState:f,className:be(p.root,i),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":(h=r.vars.overlays)==null?void 0:h[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ri("#fff",Wl(l))}, ${Ri("#fff",Wl(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Ks.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Wn(h1,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,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(["elevation","outlined"]),s.string])});function zn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var zt="top",rn="bottom",sn="right",Ht="left",qu="auto",Zs=[zt,rn,sn,Ht],vr="start",Es="end",Ok="clippingParents",m1="viewport",Wr="popper",Dk="reference",nh=Zs.reduce(function(e,t){return e.concat([t+"-"+vr,t+"-"+Es])},[]),g1=[].concat(Zs,[qu]).reduce(function(e,t){return e.concat([t,t+"-"+vr,t+"-"+Es])},[]),Ik="beforeRead",Rk="read",Ak="afterRead",_k="beforeMain",Nk="main",jk="afterMain",Lk="beforeWrite",Vk="write",$k="afterWrite",Fk=[Ik,Rk,Ak,_k,Nk,jk,Lk,Vk,$k];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zo(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function on(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gu(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bk(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!on(i)||!Dn(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function zk(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,d){return c[d]="",c},{});!on(r)||!Dn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const Hk={name:"applyStyles",enabled:!0,phase:"write",fn:Bk,effect:zk,requires:["computeStyles"]};function En(e){return e.split("-")[0]}var Vo=Math.max,Xi=Math.min,xr=Math.round;function Ic(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function y1(){return!/^((?!chrome|android).)*safari/i.test(Ic())}function Cr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&on(e)&&(r=e.offsetWidth>0&&xr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&xr(o.height)/e.offsetHeight||1);var a=zo(e)?Kt(e):window,l=a.visualViewport,c=!y1()&&n,d=(o.left+(c&&l?l.offsetLeft:0))/r,u=(o.top+(c&&l?l.offsetTop:0))/i,f=o.width/r,p=o.height/i;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function Ku(e){var t=Cr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function b1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Hn(e){return Kt(e).getComputedStyle(e)}function Wk(e){return["table","td","th"].indexOf(Dn(e))>=0}function ho(e){return((zo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ea(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(Gu(e)?e.host:null)||ho(e)}function oh(e){return!on(e)||Hn(e).position==="fixed"?null:e.offsetParent}function Uk(e){var t=/firefox/i.test(Ic()),n=/Trident/i.test(Ic());if(n&&on(e)){var o=Hn(e);if(o.position==="fixed")return null}var r=Ea(e);for(Gu(r)&&(r=r.host);on(r)&&["html","body"].indexOf(Dn(r))<0;){var i=Hn(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Xs(e){for(var t=Kt(e),n=oh(e);n&&Wk(n)&&Hn(n).position==="static";)n=oh(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&Hn(n).position==="static")?t:n||Uk(e)||t}function Zu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ds(e,t,n){return Vo(e,Xi(t,n))}function Yk(e,t,n){var o=ds(e,t,n);return o>n?n:o}function v1(){return{top:0,right:0,bottom:0,left:0}}function x1(e){return Object.assign({},v1(),e)}function C1(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var qk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,x1(typeof t!="number"?t:C1(t,Zs))};function Gk(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=En(n.placement),c=Zu(l),d=[Ht,sn].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!a)){var f=qk(r.padding,n),p=Ku(i),h=c==="y"?zt:Ht,m=c==="y"?rn:sn,g=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],b=a[c]-n.rects.reference[c],v=Xs(i),S=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,w=g/2-b/2,C=f[h],T=S-p[u]-f[m],E=S/2-p[u]/2+w,M=ds(C,E,T),R=c;n.modifiersData[o]=(t={},t[R]=M,t.centerOffset=M-E,t)}}function Kk(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||b1(t.elements.popper,r)&&(t.elements.arrow=r))}const Zk={name:"arrow",enabled:!0,phase:"main",fn:Gk,effect:Kk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wr(e){return e.split("-")[1]}var Xk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qk(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:xr(n*r)/r||0,y:xr(o*r)/r||0}}function rh(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,b=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var v=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),w=Ht,C=zt,T=window;if(d){var E=Xs(n),M="clientHeight",R="clientWidth";if(E===Kt(n)&&(E=ho(n),Hn(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",R="scrollWidth")),E=E,r===zt||(r===Ht||r===sn)&&i===Es){C=rn;var D=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=D-o.height,g*=c?1:-1}if(r===Ht||(r===zt||r===rn)&&i===Es){w=sn;var V=f&&E===T&&T.visualViewport?T.visualViewport.width:E[R];h-=V-o.width,h*=c?1:-1}}var j=Object.assign({position:l},d&&Xk),x=u===!0?Qk({x:h,y:g},Kt(n)):{x:h,y:g};if(h=x.x,g=x.y,c){var L;return Object.assign({},j,(L={},L[C]=S?"0":"",L[w]=v?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},j,(t={},t[C]=S?g+"px":"",t[w]=v?h+"px":"",t.transform="",t))}function Jk(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:En(t.placement),variation:wr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rh(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rh(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jk,data:{}};var hi={passive:!0};function tO(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=Kt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,hi)}),l&&c.addEventListener("resize",n.update,hi),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,hi)}),l&&c.removeEventListener("resize",n.update,hi)}}const nO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tO,data:{}};var oO={left:"right",right:"left",bottom:"top",top:"bottom"};function ki(e){return e.replace(/left|right|bottom|top/g,function(t){return oO[t]})}var rO={start:"end",end:"start"};function sh(e){return e.replace(/start|end/g,function(t){return rO[t]})}function Xu(e){var t=Kt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Qu(e){return Cr(ho(e)).left+Xu(e).scrollLeft}function sO(e,t){var n=Kt(e),o=ho(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var d=y1();(d||!d&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Qu(e),y:c}}function iO(e){var t,n=ho(e),o=Xu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Vo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Qu(e),c=-o.scrollTop;return Hn(r||n).direction==="rtl"&&(l+=Vo(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Ju(e){var t=Hn(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function w1(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:on(e)&&Ju(e)?e:w1(Ea(e))}function fs(e,t){var n;t===void 0&&(t=[]);var o=w1(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Kt(o),a=r?[i].concat(i.visualViewport||[],Ju(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(fs(Ea(a)))}function Rc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aO(e,t){var n=Cr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ih(e,t,n){return t===m1?Rc(sO(e,n)):zo(t)?aO(t,n):Rc(iO(ho(e)))}function lO(e){var t=fs(Ea(e)),n=["absolute","fixed"].indexOf(Hn(e).position)>=0,o=n&&on(e)?Xs(e):e;return zo(o)?t.filter(function(r){return zo(r)&&b1(r,o)&&Dn(r)!=="body"}):[]}function cO(e,t,n,o){var r=t==="clippingParents"?lO(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,d){var u=ih(e,d,o);return c.top=Vo(u.top,c.top),c.right=Xi(u.right,c.right),c.bottom=Xi(u.bottom,c.bottom),c.left=Vo(u.left,c.left),c},ih(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function S1(e){var t=e.reference,n=e.element,o=e.placement,r=o?En(o):null,i=o?wr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case zt:c={x:a,y:t.y-n.height};break;case rn:c={x:a,y:t.y+t.height};break;case sn:c={x:t.x+t.width,y:l};break;case Ht:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=r?Zu(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case vr:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Es:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function Ms(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?Ok:l,d=n.rootBoundary,u=d===void 0?m1:d,f=n.elementContext,p=f===void 0?Wr:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,b=g===void 0?0:g,v=x1(typeof b!="number"?b:C1(b,Zs)),S=p===Wr?Dk:Wr,w=e.rects.popper,C=e.elements[m?S:p],T=cO(zo(C)?C:C.contextElement||ho(e.elements.popper),c,u,a),E=Cr(e.elements.reference),M=S1({reference:E,element:w,placement:r}),R=Rc(Object.assign({},w,M)),D=p===Wr?R:E,V={top:T.top-D.top+v.top,bottom:D.bottom-T.bottom+v.bottom,left:T.left-D.left+v.left,right:D.right-T.right+v.right},j=e.modifiersData.offset;if(p===Wr&&j){var x=j[r];Object.keys(V).forEach(function(L){var A=[sn,rn].indexOf(L)>=0?1:-1,_=[zt,rn].indexOf(L)>=0?"y":"x";V[L]+=x[_]*A})}return V}function uO(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?g1:c,u=wr(o),f=u?l?nh:nh.filter(function(m){return wr(m)===u}):Zs,p=f.filter(function(m){return d.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Ms(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[En(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function dO(e){if(En(e)===qu)return[];var t=ki(e);return[sh(e),t,sh(t)]}function fO(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,b=t.options.placement,v=En(b),S=v===b,w=c||(S||!m?[ki(b)]:dO(b)),C=[b].concat(w).reduce(function(Z,re){return Z.concat(En(re)===qu?uO(t,{placement:re,boundary:u,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:g}):re)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,R=!0,D=C[0],V=0;V<C.length;V++){var j=C[V],x=En(j),L=wr(j)===vr,A=[zt,rn].indexOf(x)>=0,_=A?"width":"height",O=Ms(t,{placement:j,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),N=A?L?sn:Ht:L?rn:zt;T[_]>E[_]&&(N=ki(N));var $=ki(N),F=[];if(i&&F.push(O[x]<=0),l&&F.push(O[N]<=0,O[$]<=0),F.every(function(Z){return Z})){D=j,R=!1;break}M.set(j,F)}if(R)for(var B=m?3:1,I=function(re){var Q=C.find(function(J){var ie=M.get(J);if(ie)return ie.slice(0,re).every(function(ee){return ee})});if(Q)return D=Q,"break"},Y=B;Y>0;Y--){var q=I(Y);if(q==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const pO={name:"flip",enabled:!0,phase:"main",fn:fO,requiresIfExists:["offset"],data:{_skip:!1}};function ah(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lh(e){return[zt,sn,rn,Ht].some(function(t){return e[t]>=0})}function hO(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ms(t,{elementContext:"reference"}),l=Ms(t,{altBoundary:!0}),c=ah(a,o),d=ah(l,r,i),u=lh(c),f=lh(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const mO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hO};function gO(e,t,n){var o=En(e),r=[Ht,zt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[Ht,sn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function yO(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=g1.reduce(function(u,f){return u[f]=gO(f,t.rects,i),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=a}const bO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yO};function vO(e){var t=e.state,n=e.name;t.modifiersData[n]=S1({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const xO={name:"popperOffsets",enabled:!0,phase:"read",fn:vO,data:{}};function CO(e){return e==="x"?"y":"x"}function wO(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,b=Ms(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),v=En(t.placement),S=wr(t.placement),w=!S,C=Zu(v),T=CO(C),E=t.modifiersData.popperOffsets,M=t.rects.reference,R=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(E){if(i){var L,A=C==="y"?zt:Ht,_=C==="y"?rn:sn,O=C==="y"?"height":"width",N=E[C],$=N+b[A],F=N-b[_],B=h?-R[O]/2:0,I=S===vr?M[O]:R[O],Y=S===vr?-R[O]:-M[O],q=t.elements.arrow,Z=h&&q?Ku(q):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:v1(),Q=re[A],J=re[_],ie=ds(0,M[O],Z[O]),ee=w?M[O]/2-B-ie-Q-V.mainAxis:I-ie-Q-V.mainAxis,H=w?-M[O]/2+B+ie+J+V.mainAxis:Y+ie+J+V.mainAxis,G=t.elements.arrow&&Xs(t.elements.arrow),z=G?C==="y"?G.clientTop||0:G.clientLeft||0:0,K=(L=j==null?void 0:j[C])!=null?L:0,X=N+ee-K-z,te=N+H-K,oe=ds(h?Xi($,X):$,N,h?Vo(F,te):F);E[C]=oe,x[C]=oe-N}if(l){var ue,se=C==="x"?zt:Ht,de=C==="x"?rn:sn,le=E[T],he=T==="y"?"height":"width",pe=le+b[se],De=le-b[de],Oe=[zt,Ht].indexOf(v)!==-1,Xe=(ue=j==null?void 0:j[T])!=null?ue:0,tt=Oe?pe:le-M[he]-R[he]-Xe+V.altAxis,St=Oe?le+M[he]+R[he]-Xe-V.altAxis:De,Et=h&&Oe?Yk(tt,le,St):ds(h?tt:pe,le,h?St:De);E[T]=Et,x[T]=Et-le}t.modifiersData[o]=x}}const SO={name:"preventOverflow",enabled:!0,phase:"main",fn:wO,requiresIfExists:["offset"]};function TO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PO(e){return e===Kt(e)||!on(e)?Xu(e):TO(e)}function EO(e){var t=e.getBoundingClientRect(),n=xr(t.width)/e.offsetWidth||1,o=xr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function MO(e,t,n){n===void 0&&(n=!1);var o=on(t),r=on(t)&&EO(t),i=ho(t),a=Cr(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Dn(t)!=="body"||Ju(i))&&(l=PO(t)),on(t)?(c=Cr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Qu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function kO(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&r(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function OO(e){var t=kO(e);return Fk.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function DO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function IO(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ch={placement:"bottom",modifiers:[],strategy:"absolute"};function uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function RO(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?ch:r;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ch,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(v){var S=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:zo(l)?fs(l):l.contextElement?fs(l.contextElement):[],popper:fs(c)};var w=OO(IO([].concat(o,u.options.modifiers)));return u.orderedModifiers=w.filter(function(C){return C.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=u.elements,S=v.reference,w=v.popper;if(uh(S,w)){u.rects={reference:MO(S,Xs(w),u.options.strategy==="fixed"),popper:Ku(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(V){return u.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var T=u.orderedModifiers[C],E=T.fn,M=T.options,R=M===void 0?{}:M,D=T.name;typeof E=="function"&&(u=E({state:u,options:R,name:D,instance:h})||u)}}}},update:DO(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){g(),p=!0}};if(!uh(l,c))return h;h.setOptions(d).then(function(b){!p&&d.onFirstUpdate&&d.onFirstUpdate(b)});function m(){u.orderedModifiers.forEach(function(b){var v=b.name,S=b.options,w=S===void 0?{}:S,C=b.effect;if(typeof C=="function"){var T=C({state:u,name:v,instance:h,options:w}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(b){return b()}),f=[]}return h}}var AO=[nO,xO,eO,Hk,bO,pO,SO,Zk,mO],_O=RO({defaultModifiers:AO});function NO(e){return typeof e=="function"?e():e}const ks=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=Le(P.isValidElement(o)?qs(o):null,n);if(Pt(()=>{i||l(NO(r)||document.body)},[r,i]),Pt(()=>{if(a&&!i)return ff(n,a),()=>{ff(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const d={ref:c};return P.cloneElement(o,d)}return o}return a&&gv.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(ks.propTypes={children:s.node,container:s.oneOfType([zn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ks.propTypes=hm(ks.propTypes));function jO(e){return Te("MuiPopper",e)}Se("MuiPopper",["root"]);function LO(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Qi(e){return typeof e=="function"?e():e}function Ma(e){return e.nodeType!==void 0}function VO(e){return!Ma(e)}const $O=e=>{const{classes:t}=e;return we({root:["root"]},jO,t)},FO={},BO=P.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:g,...b}=t,v=P.useRef(null),S=Le(v,n),w=P.useRef(null),C=Le(w,f),T=P.useRef(C);Pt(()=>{T.current=C},[C]),P.useImperativeHandle(f,()=>w.current,[]);const E=LO(d,i),[M,R]=P.useState(E),[D,V]=P.useState(Qi(o));P.useEffect(()=>{w.current&&w.current.forceUpdate()}),P.useEffect(()=>{o&&V(Qi(o))},[o]),Pt(()=>{if(!D||!c)return;const _=$=>{R($.placement)};if(process.env.NODE_ENV!=="production"&&D&&Ma(D)&&D.nodeType===1){const $=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
120
- `))}let O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{_($)}}];l!=null&&(O=O.concat(l)),u&&u.modifiers!=null&&(O=O.concat(u.modifiers));const N=_O(D,v.current,{placement:E,...u,modifiers:O});return T.current(N),()=>{N.destroy(),T.current(null)}},[D,a,l,c,u,E]);const j={placement:M};m!==null&&(j.TransitionProps=m);const x=$O(t),L=h.root??"div",A=je({elementType:L,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:x.root});return y.jsx(L,{...A,children:typeof r=="function"?r(j):r})}),T1=P.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:p=FO,popperRef:h,style:m,transition:g=!1,slotProps:b={},slots:v={},...S}=t,[w,C]=P.useState(!0),T=()=>{C(!1)},E=()=>{C(!0)};if(!c&&!u&&(!g||w))return null;let M;if(i)M=i;else if(o){const V=Qi(o);M=V&&Ma(V)?kt(V).body:kt(null).body}const R=!u&&c&&(!g||w)?"none":void 0,D=g?{in:u,onEnter:T,onExited:E}:void 0;return y.jsx(ks,{disablePortal:l,container:M,children:y.jsx(BO,{anchorEl:o,direction:a,disablePortal:l,modifiers:d,ref:n,open:g?!w:u,placement:f,popperOptions:p,popperRef:h,slotProps:b,slots:v,...S,style:{position:"fixed",top:0,left:0,display:R,...m},TransitionProps:D,children:r})})});process.env.NODE_ENV!=="production"&&(T1.propTypes={anchorEl:Wn(s.oneOfType([zn,s.object,s.func]),e=>{if(e.open){const t=Qi(e.anchorEl);if(t&&Ma(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
121
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||VO(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
122
- `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([zn,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const zO=ve(T1,{name:"MuiPopper",slot:"Root"})({}),P1=P.forwardRef(function(t,n){const o=pn(),r=$e({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:d,disablePortal:u,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:b,transition:v,slots:S,slotProps:w,...C}=r,T=(S==null?void 0:S.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:d,disablePortal:u,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:b,transition:v,...C};return y.jsx(zO,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:w??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(P1.propTypes={anchorEl:s.oneOfType([zn,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([zn,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:s.shape({root:s.oneOfType([s.func,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]),transition:s.bool});function os(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const HO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function WO(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function UO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function YO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||UO(e))}function qO(e){const t=[],n=[];return Array.from(e.querySelectorAll(HO)).forEach((o,r)=>{const i=WO(o);i===-1||!YO(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function GO(){return!0}function Os(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=qO,isEnabled:a=GO,open:l}=e,c=P.useRef(!1),d=P.useRef(null),u=P.useRef(null),f=P.useRef(null),p=P.useRef(null),h=P.useRef(!1),m=P.useRef(null),g=Le(qs(t),m),b=P.useRef(null);P.useEffect(()=>{!l||!m.current||(h.current=!n)},[n,l]),P.useEffect(()=>{if(!l||!m.current)return;const w=kt(m.current),C=os(w);return m.current.contains(C)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
123
- `)),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{r||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),P.useEffect(()=>{if(!l||!m.current)return;const w=kt(m.current),C=M=>{if(b.current=M,o||!a()||M.key!=="Tab")return;os(w)===m.current&&M.shiftKey&&(c.current=!0,u.current&&u.current.focus())},T=()=>{var V,j;const M=m.current;if(M===null)return;const R=os(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(R)||o&&R!==d.current&&R!==u.current)return;if(R!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let D=[];if((R===d.current||R===u.current)&&(D=i(m.current)),D.length>0){const x=!!((V=b.current)!=null&&V.shiftKey&&((j=b.current)==null?void 0:j.key)==="Tab"),L=D[0],A=D[D.length-1];typeof L!="string"&&typeof A!="string"&&(x?A.focus():L.focus())}else M.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",C,!0);const E=setInterval(()=>{const M=os(w);M&&M.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),w.removeEventListener("focusin",T),w.removeEventListener("keydown",C,!0)}},[n,o,r,a,l,i]);const v=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},S=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0};return y.jsxs(P.Fragment,{children:[y.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:d,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:v}),y.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Os.propTypes={children:Ys,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Os.propTypes=hm(Os.propTypes));function KO(e){return Te("MuiPickerPopper",e)}Se("MuiPickerPopper",["root","paper"]);function ZO(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const XO=e=>{setTimeout(e,0)},E1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?E1(t.shadowRoot):t:null},Lt=e=>E1(kt(e)),QO="@media (pointer: fine)",JO=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],eD=e=>we({root:["root"],paper:["paper"]},KO,e),tD=ae.styled(P1,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),nD=ae.styled(Ks,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function oD(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function rD(e,t){const n=P.useRef(!1),o=P.useRef(!1),r=P.useRef(null),i=P.useRef(!1);P.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=me(c=>{if(!i.current)return;const d=o.current;o.current=!1;const u=kt(r.current);if(!r.current||"clientX"in c&&oD(c,u))return;if(n.current){n.current=!1;return}let f;c.composedPath?f=c.composedPath().indexOf(r.current)>-1:f=!u.documentElement.contains(c.target)||r.current.contains(c.target),!f&&!d&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return P.useEffect(()=>{if(e){const c=kt(r.current),d=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",d),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",d)}}},[e,a]),P.useEffect(()=>{if(e){const c=kt(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const M1=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,d=Me(e,JO),u=je({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return y.jsx(n,U({},d,u,{onClick:f=>{var p;l(f),(p=u.onClick)==null||p.call(u,f)},onTouchStart:f=>{var p;c(f),(p=u.onTouchStart)==null||p.call(u,f)},ownerState:o,children:r}))});process.env.NODE_ENV!=="production"&&(M1.displayName="PickerPopperPaperWrapper");function sD(e){const t=ae.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:d}=Dr(),{ownerState:u,rootRefObject:f}=It(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:b}=It();P.useEffect(()=>{function N($){l&&$.key==="Escape"&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,l]);const v=P.useRef(null);P.useEffect(()=>{b==="tooltip"||h()==="field"||(l?v.current=Lt(f.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,b,h,f]);const S=eD(a),w=me(()=>{b==="tooltip"?XO(()=>{var N,$;(N=f.current)!=null&&N.contains(Lt(f.current))||($=c.current)!=null&&$.contains(Lt(c.current))||p()}):p()}),[C,T,E]=rD(l,w),M=P.useRef(null),R=Le(M,c),D=Le(R,C),V=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},j=(r==null?void 0:r.desktopTransition)??d?io:Ps,x=(r==null?void 0:r.desktopTrapFocus)??Os,L=(r==null?void 0:r.desktopPaper)??nD,A=(r==null?void 0:r.popper)??tD,_=je({elementType:A,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:b??void 0,open:l,placement:o,anchorEl:g,onKeyDown:V},className:S.root,ownerState:u}),O=P.useMemo(()=>U({},u,{popperPlacement:_.placement}),[u,_.placement]);return y.jsx(A,U({},_,{children:({TransitionProps:N})=>y.jsx(x,U({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:b==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:y.jsx(j,U({},N,i==null?void 0:i.desktopTransition,{onExited:$=>{var F,B,I;m==null||m(),(B=(F=i==null?void 0:i.desktopTransition)==null?void 0:F.onExited)==null||B.call(F,$),(I=N==null?void 0:N.onExited)==null||I.call(N)},children:y.jsx(M1,{PaperComponent:L,ownerState:O,ref:D,onPaperClick:T,onPaperTouchStart:E,paperClasses:S.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const iD="@media (prefers-reduced-motion: reduce)",fr=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),dh=fr&&fr[1]?parseInt(fr[1],10):null,fh=fr&&fr[2]?parseInt(fr[2],10):null,aD=dh&&dh<10||fh&&fh<13||!1;function k1(e){const t=Wy(iD,{defaultMatches:!1});return e??(t||aD)}const O1={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function lD(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return O1;const i=t.findIndex(l=>n(r.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(U({},r,{step:a}))},areViewsInSameStep:(l,c)=>{const d=t.find(f=>n(l,f)),u=t.find(f=>n(c,f));return d===u}}}}let El=!1;function D1({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(El||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),El=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),El=!0)));const d=P.useRef(n),u=P.useRef(r),f=P.useRef(r.includes(n)?n:r[0]),[p,h]=oo({name:"useViews",state:"view",controlled:o,default:f.current}),m=P.useRef(i?p:null),[g,b]=oo({name:"useViews",state:"focusedView",controlled:a,default:m.current}),v=c?c({setView:h,view:p,defaultView:f.current,views:r}):O1;P.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(D=>!r.includes(D)))&&(h(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,h,p,r]);const S=r.indexOf(p),w=r[S-1]??null,C=r[S+1]??null,T=me((D,V)=>{b(V?D:j=>D===j?null:j),l==null||l(D,V)}),E=me(D=>{T(D,!0),D!==p&&(h(D),t&&t(D))}),M=me(()=>{C&&E(C)}),R=me((D,V,j)=>{const x=V==="finish",L=j?r.indexOf(j)<r.length-1:!!C;e(D,x&&L?"partial":V,j);let _=null;if(j!=null&&j!==p?_=j:x&&(_=p),_==null)return;const O=r[r.indexOf(_)+1];O==null||!v.areViewsInSameStep(_,O)||E(O)});return U({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:C,previousView:w,defaultView:r.includes(n)?n:r[0],goToNextView:M,setValueAndGoToNextView:R})}function ph(){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"}function cD(e,t){const[n,o]=P.useState(ph);return Pt(()=>{const r=()=>{o(ph())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),ZO(e,["hours","minutes","seconds"])?"portrait":t??n}const hh=new Set;function I1(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
124
- `):e;hh.has(n)||(hh.add(n),t==="error"?console.error(n):console.warn(n))}const Qs=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Ze(),[c,d]=oo({name:e,state:"value",controlled:n,default:o??a.emptyValue}),u=P.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=me(g=>u==null?g:a.setTimezone(l,u,g)),p=P.useMemo(()=>t||u||(r?l.getTimezone(Array.isArray(r)?r[0]:r):"default"),[t,u,r,l]),h=P.useMemo(()=>a.setTimezone(l,p,c),[a,l,p,c]),m=me((g,...b)=>{const v=f(g);d(v),i==null||i(v,...b)});return{value:h,handleValueChange:m,timezone:p}};function uD(e){const{props:t,valueManager:n,validator:o}=e,{value:r,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:d,closeOnSelect:u,open:f,onOpen:p,onClose:h}=t,{current:m}=P.useRef(i),{current:g}=P.useRef(r!==void 0),{current:b}=P.useRef(f!==void 0),v=Ze();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&I1(["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)."]),process.env.NODE_ENV!=="production"&&(P.useEffect(()=>{g!==(r!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a Picker to be ${g?"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(`
117
+ `));const t=P.useMemo(()=>W({},DM,e.localeText),[e.localeText]);return P.useMemo(()=>W({},e,{localeText:t}),[e,t])},Ke=()=>Du().adapter,lo=()=>Du().localeText,yc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],bc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qy=["minDateTime","maxDateTime"],RM=[...yc,...bc,...qy],Gy=e=>RM.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),IM=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],Zy=(e,t)=>P.useMemo(()=>{const n=W({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return IM.forEach(r),t==="date"?yc.forEach(r):t==="time"?bc.forEach(r):t==="date-time"&&(yc.forEach(r),bc.forEach(r),qy.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),AM=({adapter:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return r},NM=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},_M=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},jM=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=wu(e,a),u=By(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",f=e.isValid(t);let p=f?e.formatByString(t,a):"",h=null;if(d)if(u)h=p===""?e.formatByString(i,a).length:p.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);h=c.maxLength,f&&(p=Su(Tu(Lo(p,r),h),r))}return W({},c,{format:a,maxLength:h,value:p,placeholder:_M(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},LM=e=>{var h;const{adapter:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=m=>o.find(g=>g.start<=m&&g.end>=m);let p=0;for(;p<n.length;){const m=f(p),g=m!=null,y=(h=c.exec(n.slice(p)))==null?void 0:h[1];if(!g&&y!=null&&u.test(y)){let v=y;for(;v.length>0;){const S=d.exec(v)[1];v=v.slice(S.length),i.push(jM(W({},e,{now:r,token:S,startSeparator:a}))),a=""}p+=y.length}else{const v=n[p];g&&(m==null?void 0:m.start)===p||(m==null?void 0:m.end)===p||(i.length===0?a+=v:(i[i.length-1].endSeparator+=v,i[i.length-1].isEndFormatSeparator=!0)),p+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},VM=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Bp=e=>{let t=AM(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=NM(W({},e,{expandedFormat:t})),o=LM(W({},e,{expandedFormat:t,escapedParts:n}));return VM(W({},e,{sections:o}))},Ru=()=>P.useContext(va),$M=()=>{const e=P.useContext(Ou);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
118
+ `));return e};function FM(e){return Te("MuiDatePickerToolbar",e)}Se("MuiDatePickerToolbar",["root","title"]);const BM=["toolbarFormat","toolbarPlaceholder","className","classes"],zM=e=>we({root:["root"],title:["title"]},FM,e),HM=ae.styled(Uy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),WM=ae.styled(ao,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Iu=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Me(o,BM),u=Ke(),{value:d,views:f,orientation:p}=Er(),h=lo(),m=Wy(),g=zM(l),y=P.useMemo(()=>{if(!u.isValid(d))return i;const v=Cu(u,{format:r,views:f},!0);return u.formatByString(d,v)},[d,r,i,u,f]);return b.jsx(HM,W({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:be(g.root,a)},c,{children:b.jsx(WM,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Iu.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Iu.propTypes={classes:s.object,className:s.string,hidden: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});const Fs=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,f=o.date(void 0,n);switch(!0){case!o.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,f)):return"disableFuture";case!!(l&&o.isBeforeDay(t,f)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(d&&o.isAfterDay(t,d)):return"maxDate";default:return null}};Fs.valueManager=Mn;function Ky(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Ke(),l=P.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(c);P.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=me(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const UM=()=>Du().defaultDates,xa=e=>{const t=Ke(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function YM(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Fs,internal_valueManager:Mn,internal_fieldValueManager:hM,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:GM,internal_useOpenPickerButtonAriaLabel:qM}),[t])}function qM(e){const t=Ke(),n=lo();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function GM(e){const t=Ke(),n=Bs(e);return P.useMemo(()=>W({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Bs(e){const t=Ke(),n=UM();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Dp(t,e.minDate,n.minDate),maxDate:Dp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Xy(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Bs(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:W({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return W({},n,o,{localeText:r},q6({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:W({toolbar:Iu},n.slots)})}function hr(e){return typeof e=="string"}function Qy(e,t,n){return e===void 0||hr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Jy(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function zp(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 e1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=be(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),m={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},g={...n,...r,...o};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=Jy({...r,...o}),l=zp(o),c=zp(r),u=t(a),d=be(u==null?void 0:u.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},p={...u,...n,...c,...l};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function je(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:tn(n,o),{props:l,internalRef:c}=e1({...i,externalSlotProps:a}),u=Le(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Qy(t,{...l,ref:u},o)}const Hp={};function t1(e,t){const n=P.useRef(Hp);return n.current===Hp&&(n.current=e(t)),n}const ZM=[];function KM(e){P.useEffect(e,ZM)}class Au{constructor(){fe(this,"currentId",null);fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fe(this,"disposeEffect",()=>this.clear)}static create(){return new Au}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Xn(){const e=t1(Au.create).current;return KM(e.disposeEffect),e}function Fn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function XM(e){const{prototype:t={}}=e;return!!t.isReactComponent}function n1(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!XM(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const zs=Fn(s.element,n1);zs.isRequired=Fn(s.element.isRequired,n1);function Hs(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function vc(e,t){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},vc(e,t)}function Nu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vc(e,t)}function QM(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function JM(e,t){e.classList?e.classList.add(t):QM(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Wp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eO(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Wp(e.className,t):e.setAttribute("class",Wp(e.className&&e.className.baseVal||"",t))}const Up={disabled:!1};var tO=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,nO=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 Wi=O.createContext(null);var o1=function(t){return t.scrollTop},Qr="unmounted",Po="exited",Eo="entering",Zo="entered",xc="exiting",an=function(e){Nu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Po,i.appearStatus=Eo):c=Zo:o.unmountOnExit||o.mountOnEnter?c=Qr:c=Po,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Qr?{status:Po}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Eo&&a!==Zo&&(i=Eo):(a===Eo||a===Zo)&&(i=xc)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Eo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Qo.findDOMNode(this);a&&o1(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Po&&this.setState({status:Qr})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[Qo.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||Up.disabled){this.safeSetState({status:Zo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Eo},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Zo},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Qo.findDOMNode(this);if(!i||Up.disabled){this.safeSetState({status:Po},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:xc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Po},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Qo.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Qr)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Me(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(Wi.Provider,{value:null},typeof a=="function"?a(r,l):O.cloneElement(O.Children.only(a),l))},t}(O.Component);an.contextType=Wi;an.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=tO;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Yo(){}an.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yo,onEntering:Yo,onEntered:Yo,onExit:Yo,onExiting:Yo,onExited:Yo};an.UNMOUNTED=Qr;an.EXITED=Po;an.ENTERING=Eo;an.ENTERED=Zo;an.EXITING=xc;var oO=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return JM(t,o)})},vl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return eO(t,o)})},_u=function(e){Nu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1];o.removeClasses(d,"exit"),o.addClass(d,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.addClass(d,p,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.removeClasses(d,p),o.addClass(d,p,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],p=u?f+"-active":c[l+"Active"],h=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&o1(r),l&&(this.appliedClasses[i][a]=l,oO(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&vl(r,l),c&&vl(r,c),u&&vl(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Me(r,["classNames"]);return O.createElement(an,W({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(O.Component);_u.defaultProps={classNames:""};_u.propTypes=process.env.NODE_ENV!=="production"?W({},an.propTypes,{classNames:nO,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function rO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(e,t){var n=function(i){return t&&O.isValidElement(i)?t(i):i},o=Object.create(null);return e&&O.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function sO(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Ro(e,t,n){return n[t]!=null?n[t]:e.props[t]}function iO(e,t){return ju(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ro(n,"appear",e),enter:Ro(n,"enter",e),exit:Ro(n,"exit",e)})})}function aO(e,t,n){var o=ju(e.children),r=sO(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(O.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=O.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=O.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Ro(a,"exit",e),enter:Ro(a,"enter",e)}):!c&&l&&!d?r[i]=O.cloneElement(a,{in:!1}):c&&l&&O.isValidElement(u)&&(r[i]=O.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Ro(a,"exit",e),enter:Ro(a,"enter",e)}))}}),r}var lO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cO={component:"div",childFactory:function(t){return t}},Ws=function(e){Nu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(rO(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?iO(r,l):aO(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=ju(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=W({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Me(r,["component","childFactory"]),c=this.state.contextValue,u=lO(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?O.createElement(Wi.Provider,{value:c},u):O.createElement(Wi.Provider,{value:c},O.createElement(i,l,u))},t}(O.Component);Ws.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Ws.defaultProps=cO;const r1=e=>e.scrollTop;function Ui(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function Cc(e){return`scale(${e}, ${e**2})`}const uO={entering:{opacity:1,transform:Cc(1)},entered:{opacity:1,transform:"none"}},xl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cs=P.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=an,...v}=t,S=Xn(),w=P.useRef(),C=ca(),T=P.useRef(null),E=Le(T,Hs(i),n),M=N=>k=>{if(N){const _=T.current;k===void 0?N(_):N(_,k)}},I=M(d),D=M((N,k)=>{r1(N);const{duration:_,delay:$,easing:F}=Ui({style:m,timeout:g,easing:a},{mode:"enter"});let B;g==="auto"?(B=C.transitions.getAutoHeightDuration(N.clientHeight),w.current=B):B=_,N.style.transition=[C.transitions.create("opacity",{duration:B,delay:$}),C.transitions.create("transform",{duration:xl?B:B*.666,delay:$,easing:F})].join(","),c&&c(N,k)}),V=M(u),j=M(h),x=M(N=>{const{duration:k,delay:_,easing:$}=Ui({style:m,timeout:g,easing:a},{mode:"exit"});let F;g==="auto"?(F=C.transitions.getAutoHeightDuration(N.clientHeight),w.current=F):F=k,N.style.transition=[C.transitions.create("opacity",{duration:F,delay:_}),C.transitions.create("transform",{duration:xl?F:F*.666,delay:xl?_:_||F*.333,easing:$})].join(","),N.style.opacity=0,N.style.transform=Cc(.75),f&&f(N)}),L=M(p),A=N=>{g==="auto"&&S.start(w.current||0,N),o&&o(T.current,N)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:D,onEntered:V,onEntering:I,onExit:x,onExited:L,onExiting:j,addEndListener:A,timeout:g==="auto"?null:g,...v,children:(N,{ownerState:k,..._})=>P.cloneElement(i,{style:{opacity:0,transform:Cc(.75),visibility:N==="exited"&&!l?"hidden":void 0,...uO[N],...m,...i.props.style},ref:E,..._})})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={addEndListener:s.func,appear:s.bool,children:zs.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Cs&&(Cs.muiSupportAuto=!0);const dO={entering:{opacity:1},entered:{opacity:1}},no=P.forwardRef(function(t,n){const o=ca(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:y,timeout:v=r,TransitionComponent:S=an,...w}=t,C=P.useRef(null),T=Le(C,Hs(l),n),E=A=>N=>{if(A){const k=C.current;N===void 0?A(k):A(k,N)}},M=E(p),I=E((A,N)=>{r1(A);const k=Ui({style:y,timeout:v,easing:c},{mode:"enter"});A.style.webkitTransition=o.transitions.create("opacity",k),A.style.transition=o.transitions.create("opacity",k),d&&d(A,N)}),D=E(f),V=E(g),j=E(A=>{const N=Ui({style:y,timeout:v,easing:c},{mode:"exit"});A.style.webkitTransition=o.transitions.create("opacity",N),A.style.transition=o.transitions.create("opacity",N),h&&h(A)}),x=E(m),L=A=>{i&&i(C.current,A)};return b.jsx(S,{appear:a,in:u,nodeRef:C,onEnter:I,onEntered:D,onEntering:M,onExit:j,onExited:x,onExiting:V,addEndListener:L,timeout:v,...w,children:(A,{ownerState:N,...k})=>P.cloneElement(l,{style:{opacity:0,visibility:A==="exited"&&!u?"hidden":void 0,...dO[A],...y,...l.props.style},ref:T,...k})})});process.env.NODE_ENV!=="production"&&(no.propTypes={addEndListener:s.func,appear:s.bool,children:zs.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function fO(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function s1(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=fO(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function i1(e,t,n,o){return e[t]===void 0?null:s1(e,t,n,o)}function wc(){return null}i1.isRequired=s1;wc.isRequired=wc;const a1=process.env.NODE_ENV==="production"?wc:i1;function pO(e){return Te("MuiPaper",e)}Se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const hO=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,pO,r)},mO=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Us=P.forwardRef(function(t,n){var h;const o=$e({props:t,name:"MuiPaper"}),r=ca(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,f={...o,component:a,elevation:l,square:c,variant:u},p=hO(f);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
119
+ `)),b.jsx(mO,{as:a,ownerState:f,className:be(p.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":(h=r.vars.overlays)==null?void 0:h[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Mi("#fff",Ll(l))}, ${Mi("#fff",Ll(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Us.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Fn(a1,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,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(["elevation","outlined"]),s.string])});function Vn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Bt="top",on="bottom",rn="right",zt="left",Lu="auto",Ys=[Bt,on,rn,zt],mr="start",ws="end",gO="clippingParents",l1="viewport",Fr="popper",yO="reference",Yp=Ys.reduce(function(e,t){return e.concat([t+"-"+mr,t+"-"+ws])},[]),c1=[].concat(Ys,[Lu]).reduce(function(e,t){return e.concat([t,t+"-"+mr,t+"-"+ws])},[]),bO="beforeRead",vO="read",xO="afterRead",CO="beforeMain",wO="main",SO="afterMain",TO="beforeWrite",PO="write",EO="afterWrite",MO=[bO,vO,xO,CO,wO,SO,TO,PO,EO];function On(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vo(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vu(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OO(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!nn(i)||!On(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function kO(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!nn(r)||!On(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const DO={name:"applyStyles",enabled:!0,phase:"write",fn:OO,effect:kO,requires:["computeStyles"]};function Tn(e){return e.split("-")[0]}var No=Math.max,Yi=Math.min,gr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u1(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function yr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&nn(e)&&(r=e.offsetWidth>0&&gr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&gr(o.height)/e.offsetHeight||1);var a=Vo(e)?Gt(e):window,l=a.visualViewport,c=!u1()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/i,f=o.width/r,p=o.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function $u(e){var t=yr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function d1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function $n(e){return Gt(e).getComputedStyle(e)}function RO(e){return["table","td","th"].indexOf(On(e))>=0}function co(e){return((Vo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ca(e){return On(e)==="html"?e:e.assignedSlot||e.parentNode||(Vu(e)?e.host:null)||co(e)}function qp(e){return!nn(e)||$n(e).position==="fixed"?null:e.offsetParent}function IO(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&nn(e)){var o=$n(e);if(o.position==="fixed")return null}var r=Ca(e);for(Vu(r)&&(r=r.host);nn(r)&&["html","body"].indexOf(On(r))<0;){var i=$n(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function qs(e){for(var t=Gt(e),n=qp(e);n&&RO(n)&&$n(n).position==="static";)n=qp(n);return n&&(On(n)==="html"||On(n)==="body"&&$n(n).position==="static")?t:n||IO(e)||t}function Fu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function as(e,t,n){return No(e,Yi(t,n))}function AO(e,t,n){var o=as(e,t,n);return o>n?n:o}function f1(){return{top:0,right:0,bottom:0,left:0}}function p1(e){return Object.assign({},f1(),e)}function h1(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var NO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,p1(typeof t!="number"?t:h1(t,Ys))};function _O(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Tn(n.placement),c=Fu(l),u=[zt,rn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=NO(r.padding,n),p=$u(i),h=c==="y"?Bt:zt,m=c==="y"?on:rn,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=qs(i),S=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,w=g/2-y/2,C=f[h],T=S-p[d]-f[m],E=S/2-p[d]/2+w,M=as(C,E,T),I=c;n.modifiersData[o]=(t={},t[I]=M,t.centerOffset=M-E,t)}}function jO(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||d1(t.elements.popper,r)&&(t.elements.arrow=r))}const LO={name:"arrow",enabled:!0,phase:"main",fn:_O,effect:jO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function br(e){return e.split("-")[1]}var VO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $O(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:gr(n*r)/r||0,y:gr(o*r)/r||0}}function Gp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,y=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var v=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),w=zt,C=Bt,T=window;if(u){var E=qs(n),M="clientHeight",I="clientWidth";if(E===Gt(n)&&(E=co(n),$n(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",I="scrollWidth")),E=E,r===Bt||(r===zt||r===rn)&&i===ws){C=on;var D=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=D-o.height,g*=c?1:-1}if(r===zt||(r===Bt||r===on)&&i===ws){w=rn;var V=f&&E===T&&T.visualViewport?T.visualViewport.width:E[I];h-=V-o.width,h*=c?1:-1}}var j=Object.assign({position:l},u&&VO),x=d===!0?$O({x:h,y:g},Gt(n)):{x:h,y:g};if(h=x.x,g=x.y,c){var L;return Object.assign({},j,(L={},L[C]=S?"0":"",L[w]=v?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},j,(t={},t[C]=S?g+"px":"",t[w]=v?h+"px":"",t.transform="",t))}function FO(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Tn(t.placement),variation:br(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Gp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FO,data:{}};var ui={passive:!0};function zO(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=Gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ui)}),l&&c.addEventListener("resize",n.update,ui),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ui)}),l&&c.removeEventListener("resize",n.update,ui)}}const HO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zO,data:{}};var WO={left:"right",right:"left",bottom:"top",top:"bottom"};function Ti(e){return e.replace(/left|right|bottom|top/g,function(t){return WO[t]})}var UO={start:"end",end:"start"};function Zp(e){return e.replace(/start|end/g,function(t){return UO[t]})}function Bu(e){var t=Gt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function zu(e){return yr(co(e)).left+Bu(e).scrollLeft}function YO(e,t){var n=Gt(e),o=co(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=u1();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+zu(e),y:c}}function qO(e){var t,n=co(e),o=Bu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=No(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=No(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+zu(e),c=-o.scrollTop;return $n(r||n).direction==="rtl"&&(l+=No(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Hu(e){var t=$n(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function m1(e){return["html","body","#document"].indexOf(On(e))>=0?e.ownerDocument.body:nn(e)&&Hu(e)?e:m1(Ca(e))}function ls(e,t){var n;t===void 0&&(t=[]);var o=m1(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Gt(o),a=r?[i].concat(i.visualViewport||[],Hu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(ls(Ca(a)))}function Tc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function GO(e,t){var n=yr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Kp(e,t,n){return t===l1?Tc(YO(e,n)):Vo(t)?GO(t,n):Tc(qO(co(e)))}function ZO(e){var t=ls(Ca(e)),n=["absolute","fixed"].indexOf($n(e).position)>=0,o=n&&nn(e)?qs(e):e;return Vo(o)?t.filter(function(r){return Vo(r)&&d1(r,o)&&On(r)!=="body"}):[]}function KO(e,t,n,o){var r=t==="clippingParents"?ZO(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Kp(e,u,o);return c.top=No(d.top,c.top),c.right=Yi(d.right,c.right),c.bottom=Yi(d.bottom,c.bottom),c.left=No(d.left,c.left),c},Kp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function g1(e){var t=e.reference,n=e.element,o=e.placement,r=o?Tn(o):null,i=o?br(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case Bt:c={x:a,y:t.y-n.height};break;case on:c={x:a,y:t.y+t.height};break;case rn:c={x:t.x+t.width,y:l};break;case zt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?Fu(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case mr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case ws:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Ss(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?gO:l,u=n.rootBoundary,d=u===void 0?l1:u,f=n.elementContext,p=f===void 0?Fr:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=p1(typeof y!="number"?y:h1(y,Ys)),S=p===Fr?yO:Fr,w=e.rects.popper,C=e.elements[m?S:p],T=KO(Vo(C)?C:C.contextElement||co(e.elements.popper),c,d,a),E=yr(e.elements.reference),M=g1({reference:E,element:w,placement:r}),I=Tc(Object.assign({},w,M)),D=p===Fr?I:E,V={top:T.top-D.top+v.top,bottom:D.bottom-T.bottom+v.bottom,left:T.left-D.left+v.left,right:D.right-T.right+v.right},j=e.modifiersData.offset;if(p===Fr&&j){var x=j[r];Object.keys(V).forEach(function(L){var A=[rn,on].indexOf(L)>=0?1:-1,N=[Bt,on].indexOf(L)>=0?"y":"x";V[L]+=x[N]*A})}return V}function XO(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?c1:c,d=br(o),f=d?l?Yp:Yp.filter(function(m){return br(m)===d}):Ys,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Ss(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[Tn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function QO(e){if(Tn(e)===Lu)return[];var t=Ti(e);return[Zp(e),t,Zp(t)]}function JO(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,y=t.options.placement,v=Tn(y),S=v===y,w=c||(S||!m?[Ti(y)]:QO(y)),C=[y].concat(w).reduce(function(K,re){return K.concat(Tn(re)===Lu?XO(t,{placement:re,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):re)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,I=!0,D=C[0],V=0;V<C.length;V++){var j=C[V],x=Tn(j),L=br(j)===mr,A=[Bt,on].indexOf(x)>=0,N=A?"width":"height",k=Ss(t,{placement:j,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),_=A?L?rn:zt:L?on:Bt;T[N]>E[N]&&(_=Ti(_));var $=Ti(_),F=[];if(i&&F.push(k[x]<=0),l&&F.push(k[_]<=0,k[$]<=0),F.every(function(K){return K})){D=j,I=!1;break}M.set(j,F)}if(I)for(var B=m?3:1,R=function(re){var Q=C.find(function(J){var ie=M.get(J);if(ie)return ie.slice(0,re).every(function(ee){return ee})});if(Q)return D=Q,"break"},U=B;U>0;U--){var Y=R(U);if(Y==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const ek={name:"flip",enabled:!0,phase:"main",fn:JO,requiresIfExists:["offset"],data:{_skip:!1}};function Xp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qp(e){return[Bt,rn,on,zt].some(function(t){return e[t]>=0})}function tk(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ss(t,{elementContext:"reference"}),l=Ss(t,{altBoundary:!0}),c=Xp(a,o),u=Xp(l,r,i),d=Qp(c),f=Qp(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const nk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tk};function ok(e,t,n){var o=Tn(e),r=[zt,Bt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[zt,rn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function rk(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=c1.reduce(function(d,f){return d[f]=ok(f,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const sk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rk};function ik(e){var t=e.state,n=e.name;t.modifiersData[n]=g1({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ak={name:"popperOffsets",enabled:!0,phase:"read",fn:ik,data:{}};function lk(e){return e==="x"?"y":"x"}function ck(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,y=Ss(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=Tn(t.placement),S=br(t.placement),w=!S,C=Fu(v),T=lk(C),E=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(E){if(i){var L,A=C==="y"?Bt:zt,N=C==="y"?on:rn,k=C==="y"?"height":"width",_=E[C],$=_+y[A],F=_-y[N],B=h?-I[k]/2:0,R=S===mr?M[k]:I[k],U=S===mr?-I[k]:-M[k],Y=t.elements.arrow,K=h&&Y?$u(Y):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:f1(),Q=re[A],J=re[N],ie=as(0,M[k],K[k]),ee=w?M[k]/2-B-ie-Q-V.mainAxis:R-ie-Q-V.mainAxis,H=w?-M[k]/2+B+ie+J+V.mainAxis:U+ie+J+V.mainAxis,G=t.elements.arrow&&qs(t.elements.arrow),z=G?C==="y"?G.clientTop||0:G.clientLeft||0:0,Z=(L=j==null?void 0:j[C])!=null?L:0,X=_+ee-Z-z,te=_+H-Z,oe=as(h?Yi($,X):$,_,h?No(F,te):F);E[C]=oe,x[C]=oe-_}if(l){var ue,se=C==="x"?Bt:zt,de=C==="x"?on:rn,le=E[T],he=T==="y"?"height":"width",pe=le+y[se],De=le-y[de],ke=[Bt,zt].indexOf(v)!==-1,Xe=(ue=j==null?void 0:j[T])!=null?ue:0,tt=ke?pe:le-M[he]-I[he]-Xe+V.altAxis,St=ke?le+M[he]+I[he]-Xe-V.altAxis:De,Et=h&&ke?AO(tt,le,St):as(h?tt:pe,le,h?St:De);E[T]=Et,x[T]=Et-le}t.modifiersData[o]=x}}const uk={name:"preventOverflow",enabled:!0,phase:"main",fn:ck,requiresIfExists:["offset"]};function dk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fk(e){return e===Gt(e)||!nn(e)?Bu(e):dk(e)}function pk(e){var t=e.getBoundingClientRect(),n=gr(t.width)/e.offsetWidth||1,o=gr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function hk(e,t,n){n===void 0&&(n=!1);var o=nn(t),r=nn(t)&&pk(t),i=co(t),a=yr(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((On(t)!=="body"||Hu(i))&&(l=fk(t)),nn(t)?(c=yr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=zu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function mk(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&r(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function gk(e){var t=mk(e);return MO.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function yk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bk(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Jp={placement:"bottom",modifiers:[],strategy:"absolute"};function eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function vk(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Jp:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jp,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(v){var S=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,S),d.scrollParents={reference:Vo(l)?ls(l):l.contextElement?ls(l.contextElement):[],popper:ls(c)};var w=gk(bk([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(C){return C.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,S=v.reference,w=v.popper;if(eh(S,w)){d.rects={reference:hk(S,qs(w),d.options.strategy==="fixed"),popper:$u(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],E=T.fn,M=T.options,I=M===void 0?{}:M,D=T.name;typeof E=="function"&&(d=E({state:d,options:I,name:D,instance:h})||d)}}}},update:yk(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!eh(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var v=y.name,S=y.options,w=S===void 0?{}:S,C=y.effect;if(typeof C=="function"){var T=C({state:d,name:v,instance:h,options:w}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var xk=[HO,ak,BO,DO,sk,ek,uk,LO,nk],Ck=vk({defaultModifiers:xk});function wk(e){return typeof e=="function"?e():e}const Ts=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=Le(P.isValidElement(o)?Hs(o):null,n);if(Pt(()=>{i||l(wk(r)||document.body)},[r,i]),Pt(()=>{if(a&&!i)return ef(n,a),()=>{ef(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const u={ref:c};return P.cloneElement(o,u)}return o}return a&&n0.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Ts.propTypes={children:s.node,container:s.oneOfType([Vn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Ts.propTypes=im(Ts.propTypes));function Sk(e){return Te("MuiPopper",e)}Se("MuiPopper",["root"]);function Tk(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function qi(e){return typeof e=="function"?e():e}function wa(e){return e.nodeType!==void 0}function Pk(e){return!wa(e)}const Ek=e=>{const{classes:t}=e;return we({root:["root"]},Sk,t)},Mk={},Ok=P.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:g,...y}=t,v=P.useRef(null),S=Le(v,n),w=P.useRef(null),C=Le(w,f),T=P.useRef(C);Pt(()=>{T.current=C},[C]),P.useImperativeHandle(f,()=>w.current,[]);const E=Tk(u,i),[M,I]=P.useState(E),[D,V]=P.useState(qi(o));P.useEffect(()=>{w.current&&w.current.forceUpdate()}),P.useEffect(()=>{o&&V(qi(o))},[o]),Pt(()=>{if(!D||!c)return;const N=$=>{I($.placement)};if(process.env.NODE_ENV!=="production"&&D&&wa(D)&&D.nodeType===1){const $=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
120
+ `))}let k=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{N($)}}];l!=null&&(k=k.concat(l)),d&&d.modifiers!=null&&(k=k.concat(d.modifiers));const _=Ck(D,v.current,{placement:E,...d,modifiers:k});return T.current(_),()=>{_.destroy(),T.current(null)}},[D,a,l,c,d,E]);const j={placement:M};m!==null&&(j.TransitionProps=m);const x=Ek(t),L=h.root??"div",A=je({elementType:L,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:x.root});return b.jsx(L,{...A,children:typeof r=="function"?r(j):r})}),y1=P.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=Mk,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:v={},...S}=t,[w,C]=P.useState(!0),T=()=>{C(!1)},E=()=>{C(!0)};if(!c&&!d&&(!g||w))return null;let M;if(i)M=i;else if(o){const V=qi(o);M=V&&wa(V)?Mt(V).body:Mt(null).body}const I=!d&&c&&(!g||w)?"none":void 0,D=g?{in:d,onEnter:T,onExited:E}:void 0;return b.jsx(Ts,{disablePortal:l,container:M,children:b.jsx(Ok,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!w:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:v,...S,style:{position:"fixed",top:0,left:0,display:I,...m},TransitionProps:D,children:r})})});process.env.NODE_ENV!=="production"&&(y1.propTypes={anchorEl:Fn(s.oneOfType([Vn,s.object,s.func]),e=>{if(e.open){const t=qi(e.anchorEl);if(t&&wa(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
121
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||Pk(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
122
+ `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Vn,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const kk=ve(y1,{name:"MuiPopper",slot:"Root"})({}),b1=P.forwardRef(function(t,n){const o=fn(),r=$e({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,slots:S,slotProps:w,...C}=r,T=(S==null?void 0:S.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,...C};return b.jsx(kk,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:w??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(b1.propTypes={anchorEl:s.oneOfType([Vn,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Vn,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:s.shape({root:s.oneOfType([s.func,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]),transition:s.bool});function Jr(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const Dk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rk(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ik(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ak(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ik(e))}function Nk(e){const t=[],n=[];return Array.from(e.querySelectorAll(Dk)).forEach((o,r)=>{const i=Rk(o);i===-1||!Ak(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function _k(){return!0}function Ps(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=Nk,isEnabled:a=_k,open:l}=e,c=P.useRef(!1),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),h=P.useRef(!1),m=P.useRef(null),g=Le(Hs(t),m),y=P.useRef(null);P.useEffect(()=>{!l||!m.current||(h.current=!n)},[n,l]),P.useEffect(()=>{if(!l||!m.current)return;const w=Mt(m.current),C=Jr(w);return m.current.contains(C)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
123
+ `)),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{r||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),P.useEffect(()=>{if(!l||!m.current)return;const w=Mt(m.current),C=M=>{if(y.current=M,o||!a()||M.key!=="Tab")return;Jr(w)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var V,j;const M=m.current;if(M===null)return;const I=Jr(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(I)||o&&I!==u.current&&I!==d.current)return;if(I!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let D=[];if((I===u.current||I===d.current)&&(D=i(m.current)),D.length>0){const x=!!((V=y.current)!=null&&V.shiftKey&&((j=y.current)==null?void 0:j.key)==="Tab"),L=D[0],A=D[D.length-1];typeof L!="string"&&typeof A!="string"&&(x?A.focus():L.focus())}else M.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",C,!0);const E=setInterval(()=>{const M=Jr(w);M&&M.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),w.removeEventListener("focusin",T),w.removeEventListener("keydown",C,!0)}},[n,o,r,a,l,i]);const v=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},S=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0};return b.jsxs(P.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:v}),b.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ps.propTypes={children:zs,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ps.propTypes=im(Ps.propTypes));function jk(e){return Te("MuiPickerPopper",e)}Se("MuiPickerPopper",["root","paper"]);function Lk(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Vk=e=>{setTimeout(e,0)},v1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?v1(t.shadowRoot):t:null},jt=e=>v1(Mt(e)),$k="@media (pointer: fine)",Fk=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Bk=e=>we({root:["root"],paper:["paper"]},jk,e),zk=ae.styled(b1,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),Hk=ae.styled(Us,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function Wk(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Uk(e,t){const n=P.useRef(!1),o=P.useRef(!1),r=P.useRef(null),i=P.useRef(!1);P.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=me(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Mt(r.current);if(!r.current||"clientX"in c&&Wk(c,d))return;if(n.current){n.current=!1;return}let f;c.composedPath?f=c.composedPath().indexOf(r.current)>-1:f=!d.documentElement.contains(c.target)||r.current.contains(c.target),!f&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return P.useEffect(()=>{if(e){const c=Mt(r.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),P.useEffect(()=>{if(e){const c=Mt(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const x1=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Me(e,Fk),d=je({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,W({},u,d,{onClick:f=>{var p;l(f),(p=d.onClick)==null||p.call(d,f)},onTouchStart:f=>{var p;c(f),(p=d.onTouchStart)==null||p.call(d,f)},ownerState:o,children:r}))});process.env.NODE_ENV!=="production"&&(x1.displayName="PickerPopperPaperWrapper");function Yk(e){const t=ae.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Er(),{ownerState:d,rootRefObject:f}=Dt(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:y}=Dt();P.useEffect(()=>{function _($){l&&$.key==="Escape"&&p()}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[p,l]);const v=P.useRef(null);P.useEffect(()=>{y==="tooltip"||h()==="field"||(l?v.current=jt(f.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,y,h,f]);const S=Bk(a),w=me(()=>{y==="tooltip"?Vk(()=>{var _,$;(_=f.current)!=null&&_.contains(jt(f.current))||($=c.current)!=null&&$.contains(jt(c.current))||p()}):p()}),[C,T,E]=Uk(l,w),M=P.useRef(null),I=Le(M,c),D=Le(I,C),V=_=>{_.key==="Escape"&&(_.stopPropagation(),p())},j=(r==null?void 0:r.desktopTransition)??u?no:Cs,x=(r==null?void 0:r.desktopTrapFocus)??Ps,L=(r==null?void 0:r.desktopPaper)??Hk,A=(r==null?void 0:r.popper)??zk,N=je({elementType:A,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:V},className:S.root,ownerState:d}),k=P.useMemo(()=>W({},d,{popperPlacement:N.placement}),[d,N.placement]);return b.jsx(A,W({},N,{children:({TransitionProps:_})=>b.jsx(x,W({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(j,W({},_,i==null?void 0:i.desktopTransition,{onExited:$=>{var F,B,R;m==null||m(),(B=(F=i==null?void 0:i.desktopTransition)==null?void 0:F.onExited)==null||B.call(F,$),(R=_==null?void 0:_.onExited)==null||R.call(_)},children:b.jsx(x1,{PaperComponent:L,ownerState:k,ref:D,onPaperClick:T,onPaperTouchStart:E,paperClasses:S.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const qk="@media (prefers-reduced-motion: reduce)",lr=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),th=lr&&lr[1]?parseInt(lr[1],10):null,nh=lr&&lr[2]?parseInt(lr[2],10):null,Gk=th&&th<10||nh&&nh<13||!1;function C1(e){const t=Ly(qk,{defaultMatches:!1});return e??(t||Gk)}const w1={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function Zk(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return w1;const i=t.findIndex(l=>n(r.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(W({},r,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(f=>n(l,f)),d=t.find(f=>n(c,f));return u===d}}}}let Cl=!1;function S1({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(Cl||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Cl=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Cl=!0)));const u=P.useRef(n),d=P.useRef(r),f=P.useRef(r.includes(n)?n:r[0]),[p,h]=Jn({name:"useViews",state:"view",controlled:o,default:f.current}),m=P.useRef(i?p:null),[g,y]=Jn({name:"useViews",state:"focusedView",controlled:a,default:m.current}),v=c?c({setView:h,view:p,defaultView:f.current,views:r}):w1;P.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(D=>!r.includes(D)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const S=r.indexOf(p),w=r[S-1]??null,C=r[S+1]??null,T=me((D,V)=>{y(V?D:j=>D===j?null:j),l==null||l(D,V)}),E=me(D=>{T(D,!0),D!==p&&(h(D),t&&t(D))}),M=me(()=>{C&&E(C)}),I=me((D,V,j)=>{const x=V==="finish",L=j?r.indexOf(j)<r.length-1:!!C;e(D,x&&L?"partial":V,j);let N=null;if(j!=null&&j!==p?N=j:x&&(N=p),N==null)return;const k=r[r.indexOf(N)+1];k==null||!v.areViewsInSameStep(N,k)||E(k)});return W({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:C,previousView:w,defaultView:r.includes(n)?n:r[0],goToNextView:M,setValueAndGoToNextView:I})}function oh(){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"}function Kk(e,t){const[n,o]=P.useState(oh);return Pt(()=>{const r=()=>{o(oh())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),Lk(e,["hours","minutes","seconds"])?"portrait":t??n}const rh=new Set;function T1(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
124
+ `):e;rh.has(n)||(rh.add(n),t==="error"?console.error(n):console.warn(n))}const Gs=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Ke(),[c,u]=Jn({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=P.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=me(g=>d==null?g:a.setTimezone(l,d,g)),p=P.useMemo(()=>t||d||(r?l.getTimezone(Array.isArray(r)?r[0]:r):"default"),[t,d,r,l]),h=P.useMemo(()=>a.setTimezone(l,p,c),[a,l,p,c]),m=me((g,...y)=>{const v=f(g);u(v),i==null||i(v,...y)});return{value:h,handleValueChange:m,timezone:p}};function Xk(e){const{props:t,valueManager:n,validator:o}=e,{value:r,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:f,onOpen:p,onClose:h}=t,{current:m}=P.useRef(i),{current:g}=P.useRef(r!==void 0),{current:y}=P.useRef(f!==void 0),v=Ke();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&T1(["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)."]),process.env.NODE_ENV!=="production"&&(P.useEffect(()=>{g!==(r!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a Picker to be ${g?"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(`
125
125
  `))},[r]),P.useEffect(()=>{!g&&m!==i&&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(`
126
- `))},[JSON.stringify(m)]));const{timezone:S,value:w,handleValueChange:C}=Qs({name:"a picker component",timezone:c,value:r,defaultValue:m,referenceDate:l,onChange:a,valueManager:n}),[T,E]=P.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=o1({props:t,validator:o,timezone:S,value:w,onError:t.onError}),R=me(x=>{const L=typeof x=="function"?x(T.open):x;b||E(A=>U({},A,{open:L})),L&&p&&p(),L||h==null||h()}),D=me((x,L)=>{const{changeImportance:A="accept",skipPublicationIfPristine:_=!1,validationError:O,shortcut:N,source:$,shouldClose:F=A==="accept"}=L??{};let B,I;!_&&!g&&!T.hasBeenModifiedSinceMount?(B=!0,I=A==="accept"):(B=!n.areValuesEqual(v,x,w),I=A==="accept"&&!n.areValuesEqual(v,x,T.lastCommittedValue)),E(Z=>U({},Z,{clockShallowValue:B?void 0:Z.clockShallowValue,lastCommittedValue:I?x:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const q=()=>{if(!Y){let Z;$?Z=$:N?Z="view":Z="unknown",Y={validationError:O??M(x),source:Z},N&&(Y.shortcut=N)}return Y};B&&C(x,q()),I&&d&&d(x,q()),F&&R(!1)});w!==T.lastExternalValue&&E(x=>U({},x,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=me((x,L="partial")=>{if(L==="shallow"){E(A=>U({},A,{clockShallowValue:x,hasBeenModifiedSinceMount:!0}));return}D(x,{changeImportance:L==="finish"&&u?"accept":"set",source:"view"})});P.useEffect(()=>{if(b){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");E(x=>U({},x,{open:f}))}},[b,f]);const j=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?w:T.clockShallowValue),[v,n,T.clockShallowValue,w]);return{timezone:S,state:T,setValue:D,setValueFromView:V,setOpen:R,value:w,viewValue:j}}const dD=["className","sx"],R1=({ref:e,props:t,valueManager:n,valueType:o,variant:r,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:d,viewContainerRole:u,getStepNavigation:f})=>{const{views:p,view:h,openTo:m,onViewChange:g,viewRenderers:b,reduceAnimations:v,orientation:S,disableOpenPicker:w,closeOnSelect:C,disabled:T,readOnly:E,formatDensity:M,enableAccessibleFieldDOMStructure:R,selectedSections:D,onSelectedSectionsChange:V,format:j,label:x,autoFocus:L,name:A}=t,{className:_,sx:O}=t,N=Me(t,dD),$=co(),F=Ze(),B=k1(v),I=cD(p,S),{current:Y}=P.useRef(m??null),[q,Z]=P.useState(null),re=P.useRef(null),Q=P.useRef(null),J=P.useRef(null),ie=Le(e,J),{timezone:ee,state:H,setOpen:G,setValue:z,setValueFromView:K,value:X,viewValue:te}=uD({props:t,valueManager:n,validator:i}),{view:oe,setView:ue,defaultView:se,focusedView:de,setFocusedView:le,setValueAndGoToNextView:he,goToNextStep:pe,hasNextStep:De,hasSeveralSteps:Oe}=D1({view:h,views:p,openTo:m,onChange:K,onViewChange:g,autoFocus:l,getStepNavigation:f}),Xe=me(()=>z(n.emptyValue,{source:"view"})),tt=me(()=>z(n.getTodayValue(F,ee,o),{source:"view"})),St=me(()=>z(X,{source:"view"})),Et=me(()=>z(H.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Pe=me(()=>{z(X,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Ee,viewModeLookup:ge,timeViewsCount:Ne}=P.useMemo(()=>p.reduce((ft,Ce)=>{const Ue=b[Ce]==null?"field":"UI";return ft.viewModeLookup[Ce]=Ue,Ue==="UI"&&(ft.hasUIView=!0,fM(Ce)&&(ft.timeViewsCount+=1)),ft},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[b,p]),Ve=ge[oe],it=me(()=>Ve),[Qe,Ft]=P.useState(Ve==="UI"?oe:null);Qe!==oe&&ge[oe]==="UI"&&Ft(oe),Pt(()=>{Ve==="field"&&H.open&&(G(!1),setTimeout(()=>{var ft,Ce;(ft=Q==null?void 0:Q.current)==null||ft.setSelectedSections(oe),(Ce=Q==null?void 0:Q.current)==null||Ce.focusField(oe)}))},[oe]),Pt(()=>{if(!H.open)return;let ft=oe;Ve==="field"&&Qe!=null&&(ft=Qe),ft!==se&&ge[ft]==="UI"&&ge[se]==="UI"&&(ft=se),ft!==oe&&ue(ft),le(ft,!0)},[H.open]);const ke=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(F,X,n.emptyValue),isPickerOpen:H.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:I,pickerVariant:r}),[F,n,X,H.open,I,r,t.disabled,t.readOnly]),dt=P.useMemo(()=>w||!Ee?"hidden":T||E?"disabled":"enabled",[w,Ee,T,E]),vt=me(pe),Rt=P.useMemo(()=>C&&!Oe?[]:["cancel","nextOrAccept"],[C,Oe]),mn=P.useMemo(()=>({setValue:z,setOpen:G,clearValue:Xe,setValueToToday:tt,acceptValueChanges:St,cancelValueChanges:Et,setView:ue,goToNextStep:vt}),[z,G,Xe,tt,St,Et,ue,vt]),ye=P.useMemo(()=>U({},mn,{value:X,timezone:ee,open:H.open,views:p,view:Qe,initialView:Y,disabled:T??!1,readOnly:E??!1,autoFocus:L??!1,variant:r,orientation:I,popupRef:re,reduceAnimations:B,triggerRef:Z,triggerStatus:dt,hasNextStep:De,fieldFormat:j??"",name:A,label:x,rootSx:O,rootRef:ie,rootClassName:_}),[mn,X,ie,r,I,B,T,E,j,_,A,x,O,dt,De,ee,H.open,Qe,p,Y,L]),Ae=P.useMemo(()=>({dismissViews:Pe,ownerState:ke,hasUIView:Ee,getCurrentViewMode:it,rootRefObject:J,labelId:$,triggerElement:q,viewContainerRole:u,defaultActionBarActions:Rt,onPopperExited:a}),[Pe,ke,Ee,it,$,q,u,Rt,a]),at=P.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:R,selectedSections:D,onSelectedSectionsChange:V,fieldRef:Q}),[M,R,D,V,Q]);return{providerProps:{localeText:d,contextValue:ye,privateContextValue:Ae,actionsContextValue:mn,fieldPrivateContextValue:at,isValidContextValue:ft=>{const Ce=i({adapter:F,value:ft,timezone:ee,props:t});return!n.hasError(Ce)}},renderCurrentView:()=>{if(Qe==null)return null;const ft=b[Qe];if(ft==null)return null;const Ce=U({},N,{views:p,timezone:ee,value:te,onChange:he,view:Qe,onViewChange:ue,showViewSwitcher:Ne>1,timeViewsCount:Ne},u==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:de,onFocusedViewChange:le});return c?y.jsx(c,{viewRenderers:b,popperView:Qe,rendererProps:Ce}):ft(Ce)},ownerState:ke}};function A1(e){return Te("MuiPickersLayout",e)}const xo=Se("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function fD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function pD(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!fD(i)&&(l="Did you accidentally provide a plain function component instead?"),i===P.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ka=Wn(s.elementType,pD);function mh(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(`
127
- `))}return!1}class Ji{constructor(){fe(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 Ji}static use(){const t=l1(Ji.create).current,[n,o]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=o,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=mD(),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 hD(){return Ji.use()}function mD(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function _1(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:d}=e,[u,f]=P.useState(!1),p=be(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=be(n.child,u&&n.childLeaving,o&&n.childPulsate);return!l&&!u&&f(!0),P.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,d);return()=>{clearTimeout(g)}}},[c,l,d]),y.jsx("span",{className:p,style:h,children:y.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(_1.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 Qt=Se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ac=550,gD=80,yD=Wt.keyframes`
126
+ `))},[JSON.stringify(m)]));const{timezone:S,value:w,handleValueChange:C}=Gs({name:"a picker component",timezone:c,value:r,defaultValue:m,referenceDate:l,onChange:a,valueManager:n}),[T,E]=P.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=Ky({props:t,validator:o,timezone:S,value:w,onError:t.onError}),I=me(x=>{const L=typeof x=="function"?x(T.open):x;y||E(A=>W({},A,{open:L})),L&&p&&p(),L||h==null||h()}),D=me((x,L)=>{const{changeImportance:A="accept",skipPublicationIfPristine:N=!1,validationError:k,shortcut:_,source:$,shouldClose:F=A==="accept"}=L??{};let B,R;!N&&!g&&!T.hasBeenModifiedSinceMount?(B=!0,R=A==="accept"):(B=!n.areValuesEqual(v,x,w),R=A==="accept"&&!n.areValuesEqual(v,x,T.lastCommittedValue)),E(K=>W({},K,{clockShallowValue:B?void 0:K.clockShallowValue,lastCommittedValue:R?x:K.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let U=null;const Y=()=>{if(!U){let K;$?K=$:_?K="view":K="unknown",U={validationError:k??M(x),source:K},_&&(U.shortcut=_)}return U};B&&C(x,Y()),R&&u&&u(x,Y()),F&&I(!1)});w!==T.lastExternalValue&&E(x=>W({},x,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=me((x,L="partial")=>{if(L==="shallow"){E(A=>W({},A,{clockShallowValue:x,hasBeenModifiedSinceMount:!0}));return}D(x,{changeImportance:L==="finish"&&d?"accept":"set",source:"view"})});P.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");E(x=>W({},x,{open:f}))}},[y,f]);const j=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?w:T.clockShallowValue),[v,n,T.clockShallowValue,w]);return{timezone:S,state:T,setValue:D,setValueFromView:V,setOpen:I,value:w,viewValue:j}}const Qk=["className","sx"],P1=({ref:e,props:t,valueManager:n,valueType:o,variant:r,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:p,view:h,openTo:m,onViewChange:g,viewRenderers:y,reduceAnimations:v,orientation:S,disableOpenPicker:w,closeOnSelect:C,disabled:T,readOnly:E,formatDensity:M,enableAccessibleFieldDOMStructure:I,selectedSections:D,onSelectedSectionsChange:V,format:j,label:x,autoFocus:L,name:A}=t,{className:N,sx:k}=t,_=Me(t,Qk),$=so(),F=Ke(),B=C1(v),R=Kk(p,S),{current:U}=P.useRef(m??null),[Y,K]=P.useState(null),re=P.useRef(null),Q=P.useRef(null),J=P.useRef(null),ie=Le(e,J),{timezone:ee,state:H,setOpen:G,setValue:z,setValueFromView:Z,value:X,viewValue:te}=Xk({props:t,valueManager:n,validator:i}),{view:oe,setView:ue,defaultView:se,focusedView:de,setFocusedView:le,setValueAndGoToNextView:he,goToNextStep:pe,hasNextStep:De,hasSeveralSteps:ke}=S1({view:h,views:p,openTo:m,onChange:Z,onViewChange:g,autoFocus:l,getStepNavigation:f}),Xe=me(()=>z(n.emptyValue,{source:"view"})),tt=me(()=>z(n.getTodayValue(F,ee,o),{source:"view"})),St=me(()=>z(X,{source:"view"})),Et=me(()=>z(H.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Pe=me(()=>{z(X,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Ee,viewModeLookup:ge,timeViewsCount:_e}=P.useMemo(()=>p.reduce((dt,Ce)=>{const Ue=y[Ce]==null?"field":"UI";return dt.viewModeLookup[Ce]=Ue,Ue==="UI"&&(dt.hasUIView=!0,J6(Ce)&&(dt.timeViewsCount+=1)),dt},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),Ve=ge[oe],st=me(()=>Ve),[Qe,$t]=P.useState(Ve==="UI"?oe:null);Qe!==oe&&ge[oe]==="UI"&&$t(oe),Pt(()=>{Ve==="field"&&H.open&&(G(!1),setTimeout(()=>{var dt,Ce;(dt=Q==null?void 0:Q.current)==null||dt.setSelectedSections(oe),(Ce=Q==null?void 0:Q.current)==null||Ce.focusField(oe)}))},[oe]),Pt(()=>{if(!H.open)return;let dt=oe;Ve==="field"&&Qe!=null&&(dt=Qe),dt!==se&&ge[dt]==="UI"&&ge[se]==="UI"&&(dt=se),dt!==oe&&ue(dt),le(dt,!0)},[H.open]);const Oe=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(F,X,n.emptyValue),isPickerOpen:H.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:R,pickerVariant:r}),[F,n,X,H.open,R,r,t.disabled,t.readOnly]),ut=P.useMemo(()=>w||!Ee?"hidden":T||E?"disabled":"enabled",[w,Ee,T,E]),bt=me(pe),Rt=P.useMemo(()=>C&&!ke?[]:["cancel","nextOrAccept"],[C,ke]),hn=P.useMemo(()=>({setValue:z,setOpen:G,clearValue:Xe,setValueToToday:tt,acceptValueChanges:St,cancelValueChanges:Et,setView:ue,goToNextStep:bt}),[z,G,Xe,tt,St,Et,ue,bt]),ye=P.useMemo(()=>W({},hn,{value:X,timezone:ee,open:H.open,views:p,view:Qe,initialView:U,disabled:T??!1,readOnly:E??!1,autoFocus:L??!1,variant:r,orientation:R,popupRef:re,reduceAnimations:B,triggerRef:K,triggerStatus:ut,hasNextStep:De,fieldFormat:j??"",name:A,label:x,rootSx:k,rootRef:ie,rootClassName:N}),[hn,X,ie,r,R,B,T,E,j,N,A,x,k,ut,De,ee,H.open,Qe,p,U,L]),Ne=P.useMemo(()=>({dismissViews:Pe,ownerState:Oe,hasUIView:Ee,getCurrentViewMode:st,rootRefObject:J,labelId:$,triggerElement:Y,viewContainerRole:d,defaultActionBarActions:Rt,onPopperExited:a}),[Pe,Oe,Ee,st,$,Y,d,Rt,a]),it=P.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:I,selectedSections:D,onSelectedSectionsChange:V,fieldRef:Q}),[M,I,D,V,Q]);return{providerProps:{localeText:u,contextValue:ye,privateContextValue:Ne,actionsContextValue:hn,fieldPrivateContextValue:it,isValidContextValue:dt=>{const Ce=i({adapter:F,value:dt,timezone:ee,props:t});return!n.hasError(Ce)}},renderCurrentView:()=>{if(Qe==null)return null;const dt=y[Qe];if(dt==null)return null;const Ce=W({},_,{views:p,timezone:ee,value:te,onChange:he,view:Qe,onViewChange:ue,showViewSwitcher:_e>1,timeViewsCount:_e},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:de,onFocusedViewChange:le});return c?b.jsx(c,{viewRenderers:y,popperView:Qe,rendererProps:Ce}):dt(Ce)},ownerState:Oe}};function E1(e){return Te("MuiPickersLayout",e)}const go=Se("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Jk(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eD(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Jk(i)&&(l="Did you accidentally provide a plain function component instead?"),i===P.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Sa=Fn(s.elementType,eD);function sh(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(`
127
+ `))}return!1}class Gi{constructor(){fe(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 Gi}static use(){const t=t1(Gi.create).current,[n,o]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=o,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=nD(),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 tD(){return Gi.use()}function nD(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function M1(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,f]=P.useState(!1),p=be(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=be(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&f(!0),P.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,l,u]),b.jsx("span",{className:p,style:h,children:b.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(M1.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 Xt=Se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Pc=550,oD=80,rD=Ht.keyframes`
128
128
  0% {
129
129
  transform: scale(0);
130
130
  opacity: 0.1;
@@ -134,7 +134,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
134
134
  transform: scale(1);
135
135
  opacity: 0.3;
136
136
  }
137
- `,bD=Wt.keyframes`
137
+ `,sD=Ht.keyframes`
138
138
  0% {
139
139
  opacity: 1;
140
140
  }
@@ -142,7 +142,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
142
142
  100% {
143
143
  opacity: 0;
144
144
  }
145
- `,vD=Wt.keyframes`
145
+ `,iD=Ht.keyframes`
146
146
  0% {
147
147
  transform: scale(1);
148
148
  }
@@ -154,23 +154,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
154
154
  100% {
155
155
  transform: scale(1);
156
156
  }
157
- `,xD=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CD=ve(_1,{name:"MuiTouchRipple",slot:"Ripple"})`
157
+ `,aD=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lD=ve(M1,{name:"MuiTouchRipple",slot:"Ripple"})`
158
158
  opacity: 0;
159
159
  position: absolute;
160
160
 
161
- &.${Qt.rippleVisible} {
161
+ &.${Xt.rippleVisible} {
162
162
  opacity: 0.3;
163
163
  transform: scale(1);
164
- animation-name: ${yD};
165
- animation-duration: ${Ac}ms;
164
+ animation-name: ${rD};
165
+ animation-duration: ${Pc}ms;
166
166
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
167
167
  }
168
168
 
169
- &.${Qt.ripplePulsate} {
169
+ &.${Xt.ripplePulsate} {
170
170
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
171
171
  }
172
172
 
173
- & .${Qt.child} {
173
+ & .${Xt.child} {
174
174
  opacity: 1;
175
175
  display: block;
176
176
  width: 100%;
@@ -179,25 +179,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
179
179
  background-color: currentColor;
180
180
  }
181
181
 
182
- & .${Qt.childLeaving} {
182
+ & .${Xt.childLeaving} {
183
183
  opacity: 0;
184
- animation-name: ${bD};
185
- animation-duration: ${Ac}ms;
184
+ animation-name: ${sD};
185
+ animation-duration: ${Pc}ms;
186
186
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
187
187
  }
188
188
 
189
- & .${Qt.childPulsate} {
189
+ & .${Xt.childPulsate} {
190
190
  position: absolute;
191
191
  /* @noflip */
192
192
  left: 0px;
193
193
  top: 0;
194
- animation-name: ${vD};
194
+ animation-name: ${iD};
195
195
  animation-duration: 2500ms;
196
196
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
197
197
  animation-iteration-count: infinite;
198
198
  animation-delay: 200ms;
199
199
  }
200
- `,N1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[c,d]=P.useState([]),u=P.useRef(0),f=P.useRef(null);P.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=P.useRef(!1),h=to(),m=P.useRef(null),g=P.useRef(null),b=P.useCallback(C=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:R,cb:D}=C;d(V=>[...V,y.jsx(CD,{classes:{ripple:be(i.ripple,Qt.ripple),rippleVisible:be(i.rippleVisible,Qt.rippleVisible),ripplePulsate:be(i.ripplePulsate,Qt.ripplePulsate),child:be(i.child,Qt.child),childLeaving:be(i.childLeaving,Qt.childLeaving),childPulsate:be(i.childPulsate,Qt.childPulsate)},timeout:Ac,pulsate:T,rippleX:E,rippleY:M,rippleSize:R},u.current)]),u.current+=1,f.current=D},[i]),v=P.useCallback((C={},T={},E=()=>{})=>{const{pulsate:M=!1,center:R=r||T.pulsate,fakeElement:D=!1}=T;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 V=D?null:g.current,j=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,L,A;if(R||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)x=Math.round(j.width/2),L=Math.round(j.height/2);else{const{clientX:_,clientY:O}=C.touches&&C.touches.length>0?C.touches[0]:C;x=Math.round(_-j.left),L=Math.round(O-j.top)}if(R)A=Math.sqrt((2*j.width**2+j.height**2)/3),A%2===0&&(A+=1);else{const _=Math.max(Math.abs((V?V.clientWidth:0)-x),x)*2+2,O=Math.max(Math.abs((V?V.clientHeight:0)-L),L)*2+2;A=Math.sqrt(_**2+O**2)}C!=null&&C.touches?m.current===null&&(m.current=()=>{b({pulsate:M,rippleX:x,rippleY:L,rippleSize:A,cb:E})},h.start(gD,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:M,rippleX:x,rippleY:L,rippleSize:A,cb:E})},[r,b,h]),S=P.useCallback(()=>{v({},{pulsate:!0})},[v]),w=P.useCallback((C,T)=>{if(h.clear(),(C==null?void 0:C.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{w(C,T)});return}m.current=null,d(E=>E.length>0?E.slice(1):E),f.current=T},[h]);return P.useImperativeHandle(n,()=>({pulsate:S,start:v,stop:w}),[S,v,w]),y.jsx(xD,{className:be(Qt.root,i.root,a),ref:g,...l,children:y.jsx(Gs,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(N1.propTypes={center:s.bool,classes:s.object,className:s.string});function wD(e){return Te("MuiButtonBase",e)}const SD=Se("MuiButtonBase",["root","disabled","focusVisible"]),TD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=we({root:["root",t&&"disabled",n&&"focusVisible"]},wD,r);return n&&o&&(a.root+=` ${o}`),a},PD=ve("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"},[`&.${SD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Sr=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:b,onContextMenu:v,onDragLeave:S,onFocus:w,onFocusVisible:C,onKeyDown:T,onKeyUp:E,onMouseDown:M,onMouseLeave:R,onMouseUp:D,onTouchEnd:V,onTouchMove:j,onTouchStart:x,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:_,type:O,...N}=o,$=P.useRef(null),F=hD(),B=Le(F.ref,_),[I,Y]=P.useState(!1);d&&I&&Y(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{Y(!0),$.current.focus()}}),[]);const q=F.shouldMount&&!u&&!d;P.useEffect(()=>{I&&p&&!u&&F.pulsate()},[u,p,I,F]);const Z=Rn(F,"start",M,f),re=Rn(F,"stop",v,f),Q=Rn(F,"stop",S,f),J=Rn(F,"stop",D,f),ie=Rn(F,"stop",pe=>{I&&pe.preventDefault(),R&&R(pe)},f),ee=Rn(F,"start",x,f),H=Rn(F,"stop",V,f),G=Rn(F,"stop",j,f),z=Rn(F,"stop",pe=>{mh(pe.target)||Y(!1),g&&g(pe)},!1),K=me(pe=>{$.current||($.current=pe.currentTarget),mh(pe.target)&&(Y(!0),C&&C(pe)),w&&w(pe)}),X=()=>{const pe=$.current;return c&&c!=="button"&&!(pe.tagName==="A"&&pe.href)},te=me(pe=>{p&&!pe.repeat&&I&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&X()&&pe.key===" "&&pe.preventDefault(),T&&T(pe),pe.target===pe.currentTarget&&X()&&pe.key==="Enter"&&!d&&(pe.preventDefault(),b&&b(pe))}),oe=me(pe=>{p&&pe.key===" "&&I&&!pe.defaultPrevented&&F.stop(pe,()=>{F.pulsate(pe)}),E&&E(pe),b&&pe.target===pe.currentTarget&&X()&&pe.key===" "&&!pe.defaultPrevented&&b(pe)});let ue=c;ue==="button"&&(N.href||N.to)&&(ue=m);const se={};if(ue==="button"){const pe=!!N.formAction;se.type=O===void 0&&!pe?"button":O,se.disabled=d}else!N.href&&!N.to&&(se.role="button"),d&&(se["aria-disabled"]=d);const de=Le(n,$),le={...o,centerRipple:i,component:c,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:L,focusVisible:I},he=TD(le);return y.jsxs(PD,{as:ue,className:be(he.root,l),ownerState:le,onBlur:z,onClick:b,onContextMenu:re,onFocus:K,onKeyDown:te,onKeyUp:oe,onMouseDown:Z,onMouseLeave:ie,onMouseUp:J,onDragLeave:Q,onTouchEnd:H,onTouchMove:G,onTouchStart:ee,ref:de,tabIndex:d?-1:L,type:O,...se,...N,children:[a,q?y.jsx(N1,{ref:B,center:i,...A}):null]})});function Rn(e,t,n,o=!1){return me(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(Sr.propTypes={action:wt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:ka,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function ED(e){return Te("MuiCircularProgress",e)}Se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const un=44,_c=Wt.keyframes`
200
+ `,O1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[c,u]=P.useState([]),d=P.useRef(0),f=P.useRef(null);P.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=P.useRef(!1),h=Xn(),m=P.useRef(null),g=P.useRef(null),y=P.useCallback(C=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:I,cb:D}=C;u(V=>[...V,b.jsx(lD,{classes:{ripple:be(i.ripple,Xt.ripple),rippleVisible:be(i.rippleVisible,Xt.rippleVisible),ripplePulsate:be(i.ripplePulsate,Xt.ripplePulsate),child:be(i.child,Xt.child),childLeaving:be(i.childLeaving,Xt.childLeaving),childPulsate:be(i.childPulsate,Xt.childPulsate)},timeout:Pc,pulsate:T,rippleX:E,rippleY:M,rippleSize:I},d.current)]),d.current+=1,f.current=D},[i]),v=P.useCallback((C={},T={},E=()=>{})=>{const{pulsate:M=!1,center:I=r||T.pulsate,fakeElement:D=!1}=T;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 V=D?null:g.current,j=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,L,A;if(I||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)x=Math.round(j.width/2),L=Math.round(j.height/2);else{const{clientX:N,clientY:k}=C.touches&&C.touches.length>0?C.touches[0]:C;x=Math.round(N-j.left),L=Math.round(k-j.top)}if(I)A=Math.sqrt((2*j.width**2+j.height**2)/3),A%2===0&&(A+=1);else{const N=Math.max(Math.abs((V?V.clientWidth:0)-x),x)*2+2,k=Math.max(Math.abs((V?V.clientHeight:0)-L),L)*2+2;A=Math.sqrt(N**2+k**2)}C!=null&&C.touches?m.current===null&&(m.current=()=>{y({pulsate:M,rippleX:x,rippleY:L,rippleSize:A,cb:E})},h.start(oD,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:M,rippleX:x,rippleY:L,rippleSize:A,cb:E})},[r,y,h]),S=P.useCallback(()=>{v({},{pulsate:!0})},[v]),w=P.useCallback((C,T)=>{if(h.clear(),(C==null?void 0:C.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{w(C,T)});return}m.current=null,u(E=>E.length>0?E.slice(1):E),f.current=T},[h]);return P.useImperativeHandle(n,()=>({pulsate:S,start:v,stop:w}),[S,v,w]),b.jsx(aD,{className:be(Xt.root,i.root,a),ref:g,...l,children:b.jsx(Ws,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(O1.propTypes={center:s.bool,classes:s.object,className:s.string});function cD(e){return Te("MuiButtonBase",e)}const uD=Se("MuiButtonBase",["root","disabled","focusVisible"]),dD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=we({root:["root",t&&"disabled",n&&"focusVisible"]},cD,r);return n&&o&&(a.root+=` ${o}`),a},fD=ve("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"},[`&.${uD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vr=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:v,onDragLeave:S,onFocus:w,onFocusVisible:C,onKeyDown:T,onKeyUp:E,onMouseDown:M,onMouseLeave:I,onMouseUp:D,onTouchEnd:V,onTouchMove:j,onTouchStart:x,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:N,type:k,..._}=o,$=P.useRef(null),F=tD(),B=Le(F.ref,N),[R,U]=P.useState(!1);u&&R&&U(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{U(!0),$.current.focus()}}),[]);const Y=F.shouldMount&&!d&&!u;P.useEffect(()=>{R&&p&&!d&&F.pulsate()},[d,p,R,F]);const K=Dn(F,"start",M,f),re=Dn(F,"stop",v,f),Q=Dn(F,"stop",S,f),J=Dn(F,"stop",D,f),ie=Dn(F,"stop",pe=>{R&&pe.preventDefault(),I&&I(pe)},f),ee=Dn(F,"start",x,f),H=Dn(F,"stop",V,f),G=Dn(F,"stop",j,f),z=Dn(F,"stop",pe=>{sh(pe.target)||U(!1),g&&g(pe)},!1),Z=me(pe=>{$.current||($.current=pe.currentTarget),sh(pe.target)&&(U(!0),C&&C(pe)),w&&w(pe)}),X=()=>{const pe=$.current;return c&&c!=="button"&&!(pe.tagName==="A"&&pe.href)},te=me(pe=>{p&&!pe.repeat&&R&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&X()&&pe.key===" "&&pe.preventDefault(),T&&T(pe),pe.target===pe.currentTarget&&X()&&pe.key==="Enter"&&!u&&(pe.preventDefault(),y&&y(pe))}),oe=me(pe=>{p&&pe.key===" "&&R&&!pe.defaultPrevented&&F.stop(pe,()=>{F.pulsate(pe)}),E&&E(pe),y&&pe.target===pe.currentTarget&&X()&&pe.key===" "&&!pe.defaultPrevented&&y(pe)});let ue=c;ue==="button"&&(_.href||_.to)&&(ue=m);const se={};if(ue==="button"){const pe=!!_.formAction;se.type=k===void 0&&!pe?"button":k,se.disabled=u}else!_.href&&!_.to&&(se.role="button"),u&&(se["aria-disabled"]=u);const de=Le(n,$),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:L,focusVisible:R},he=dD(le);return b.jsxs(fD,{as:ue,className:be(he.root,l),ownerState:le,onBlur:z,onClick:y,onContextMenu:re,onFocus:Z,onKeyDown:te,onKeyUp:oe,onMouseDown:K,onMouseLeave:ie,onMouseUp:J,onDragLeave:Q,onTouchEnd:H,onTouchMove:G,onTouchStart:ee,ref:de,tabIndex:u?-1:L,type:k,...se,..._,children:[a,Y?b.jsx(O1,{ref:B,center:i,...A}):null]})});function Dn(e,t,n,o=!1){return me(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(vr.propTypes={action:wt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Sa,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function pD(e){return Te("MuiCircularProgress",e)}Se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const cn=44,Ec=Ht.keyframes`
201
201
  0% {
202
202
  transform: rotate(0deg);
203
203
  }
@@ -205,7 +205,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
205
205
  100% {
206
206
  transform: rotate(360deg);
207
207
  }
208
- `,Nc=Wt.keyframes`
208
+ `,Mc=Ht.keyframes`
209
209
  0% {
210
210
  stroke-dasharray: 1px, 200px;
211
211
  stroke-dashoffset: 0;
@@ -220,26 +220,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
220
220
  stroke-dasharray: 1px, 200px;
221
221
  stroke-dashoffset: -126px;
222
222
  }
223
- `,MD=typeof _c!="string"?Wt.css`
224
- animation: ${_c} 1.4s linear infinite;
225
- `:null,kD=typeof Nc!="string"?Wt.css`
226
- animation: ${Nc} 1.4s ease-in-out infinite;
227
- `:null,OD=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,i={root:["root",n,`color${ce(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ce(n)}`,r&&"circleDisableShrink"]};return we(i,ED,t)},DD=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Ke(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:MD||{animation:`${_c} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ID=ve("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),RD=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ke(({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:kD||{animation:`${Nc} 1.4s ease-in-out infinite`}}]}))),AD=ve("circle",{name:"MuiCircularProgress",slot:"Track"})(Ke(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ed=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:u=3.6,value:f=0,variant:p="indeterminate",...h}=o,m={...o,color:i,disableShrink:a,size:c,thickness:u,value:f,variant:p,enableTrackSlot:l},g=OD(m),b={},v={},S={};if(p==="determinate"){const w=2*Math.PI*((un-u)/2);b.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return y.jsx(DD,{className:be(g.root,r),style:{width:c,height:c,...v,...d},ownerState:m,ref:n,role:"progressbar",...S,...h,children:y.jsxs(ID,{className:g.svg,ownerState:m,viewBox:`${un/2} ${un/2} ${un} ${un}`,children:[l?y.jsx(AD,{className:g.track,ownerState:m,cx:un,cy:un,r:(un-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,y.jsx(RD,{className:g.circle,style:b,ownerState:m,cx:un,cy:un,r:(un-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(ed.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Wn(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 _D(e){return Te("MuiButton",e)}const Co=Se("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"]),j1=P.createContext({});process.env.NODE_ENV!=="production"&&(j1.displayName="ButtonGroupContext");const L1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(L1.displayName="ButtonGroupButtonContext");const ND=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",i,`${i}${ce(t)}`,`size${ce(r)}`,`${i}Size${ce(r)}`,`color${ce(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${ce(l)}`],startIcon:["icon","startIcon",`iconSize${ce(r)}`],endIcon:["icon","endIcon",`iconSize${ce(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=we(d,_D,c);return{...c,...u}},V1=[{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}}}],jD=ve(Sr,{shouldForwardProp:e=>hn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ke(({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"},[`&.${Co.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]},[`&.${Co.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Co.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)",[`&.${Co.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(Gt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].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"},[`&.${Co.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Co.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}),[`&.${Co.loading}`]:{color:"transparent"}}}]}})),LD=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ce(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}},...V1]})),VD=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ce(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}},...V1]})),$D=ve("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}}]})),gh=ve("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Gn=P.forwardRef(function(t,n){const o=P.useContext(j1),r=P.useContext(L1),i=bs(o,t),a=$e({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:b=!1,id:v,loading:S=null,loadingIndicator:w,loadingPosition:C="center",size:T="medium",startIcon:E,type:M,variant:R="text",...D}=a,V=co(v),j=w??y.jsx(ed,{"aria-labelledby":V,color:"inherit",size:16}),x={...a,color:c,component:d,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:b,loading:S,loadingIndicator:j,loadingPosition:C,size:T,type:M,variant:R},L=ND(x),A=(E||S&&C==="start")&&y.jsx(LD,{className:L.startIcon,ownerState:x,children:E||y.jsx(gh,{className:L.loadingIconPlaceholder,ownerState:x})}),_=(m||S&&C==="end")&&y.jsx(VD,{className:L.endIcon,ownerState:x,children:m||y.jsx(gh,{className:L.loadingIconPlaceholder,ownerState:x})}),O=r||"",N=typeof S=="boolean"?y.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:S&&y.jsx($D,{className:L.loadingIndicator,ownerState:x,children:j})}):null;return y.jsxs(jD,{ownerState:x,className:be(o.className,L.root,u,O),component:d,disabled:f||S,focusRipple:!h,focusVisibleClassName:be(L.focusVisible,g),ref:n,type:M,id:S?V:v,...D,classes:L,children:[A,C!=="end"&&N,l,C==="end"&&N,_]})});process.env.NODE_ENV!=="production"&&(Gn.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 FD(e){return Te("MuiDialogActions",e)}Se("MuiDialogActions",["root","spacing"]);const BD=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},FD,t)},zD=ve("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}}}]}),$1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=BD(l);return y.jsx(zD,{className:be(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&($1.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 HD=["actions"],WD=ae.styled($1,{name:"MuiPickersLayout",slot:"ActionBar"})({});function F1(e){const{actions:t}=e,n=Me(e,HD),o=po(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:d}=Dr();if(t==null||t.length===0)return null;const u=t==null?void 0:t.map(f=>{switch(f){case"clear":return y.jsx(Gn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return y.jsx(Gn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return y.jsx(Gn,{onClick:a,children:o.okButtonLabel},f);case"today":return y.jsx(Gn,{onClick:i,children:o.todayButtonLabel},f);case"next":return y.jsx(Gn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return d?y.jsx(Gn,{onClick:c,children:o.nextStepButtonLabel},f):y.jsx(Gn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return y.jsx(WD,U({},n,{children:u}))}process.env.NODE_ENV!=="production"&&(F1.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const B1=P.memo(F1);process.env.NODE_ENV!=="production"&&(B1.displayName="PickersActionBar");const pr=P.createContext({});process.env.NODE_ENV!=="production"&&(pr.displayName="ListContext");function UD(e){return Te("MuiList",e)}Se("MuiList",["root","padding","dense","subheader"]);const YD=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},UD,t)},qD=ve("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}}]}),td=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=o,f=P.useMemo(()=>({dense:l}),[l]),p={...o,component:a,dense:l,disablePadding:c},h=YD(p);return y.jsx(pr.Provider,{value:f,children:y.jsxs(qD,{as:a,className:be(h.root,i),ref:n,ownerState:p,...u,children:[d,r]})})});process.env.NODE_ENV!=="production"&&(td.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 rt(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...p}=i,h=u[e]||o,m=nn(f[e],r),{props:{component:g,...b},internalRef:v}=a1({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),S=Le(v,m==null?void 0:m.ref,t.ref),w=e==="root"?g||d:g,C=s1(h,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...w&&!l&&{as:w},...w&&l&&{component:w},ref:S},r);return[h,C]}function GD(e){return Te("MuiListItem",e)}Se("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const KD=Se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ZD(e){return Te("MuiListItemSecondaryAction",e)}Se("MuiListItemSecondaryAction",["root","disableGutters"]);const XD=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},ZD,n)},QD=ve("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}}]}),nd=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(pr),l={...o,disableGutters:a.disableGutters},c=XD(l);return y.jsx(QD,{className:be(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(nd.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])});nd.muiName="ListItemSecondaryAction";const JD=(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]},eI=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return we({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},GD,n)},tI=ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:JD})(Ke(({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:{[`& > .${KD.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}}]}))),nI=ve("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),z1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,secondaryAction:v,slotProps:S={},slots:w={},...C}=o,T=P.useContext(pr),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),R=P.Children.toArray(i),D=R.length&&as(R[R.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:D},j=eI(V),x=Le(M,n),L={slots:w,slotProps:S},[A,_]=rt("secondaryAction",{elementType:nd,externalForwardedProps:L,ownerState:V,className:j.secondaryAction}),O=w.root||c.Root||tI,N=S.root||d.root||{},$={className:be(j.root,N.className,a),...C};let F=l||"li";return D?(F=!$.component&&!l?"div":F,u==="li"&&(F==="li"?F="div":$.component==="li"&&($.component="div")),y.jsx(pr.Provider,{value:E,children:y.jsxs(nI,{as:u,className:be(j.container,f),ref:x,ownerState:V,...p,children:[y.jsx(O,{...N,...!br(O)&&{as:F,ownerState:{...V,...N.ownerState}},...$,children:R}),R.pop()]})})):y.jsx(pr.Provider,{value:E,children:y.jsxs(O,{...N,as:F,ref:x,...!br(O)&&{ownerState:{...V,...N.ownerState}},...$,children:[R,v&&y.jsx(A,{..._,children:v})]})})});process.env.NODE_ENV!=="production"&&(z1.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Wn(s.node,e=>{const t=P.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(as(r,["ListItemSecondaryAction"])){n=o;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:ka,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object,secondaryAction:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,secondaryAction:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oI=st(y.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 rI(e){return Te("MuiChip",e)}const Ie=Se("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"]),sI=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ce(o)}`,`color${ce(r)}`,l&&"clickable",l&&`clickableColor${ce(r)}`,a&&"deletable",a&&`deletableColor${ce(r)}`,`${c}${ce(r)}`],label:["label",`label${ce(o)}`],avatar:["avatar",`avatar${ce(o)}`,`avatarColor${ce(r)}`],icon:["icon",`icon${ce(o)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(o)}`,`deleteIconColor${ce(r)}`,`deleteIcon${ce(c)}Color${ce(r)}`]};return we(d,rI,t)},iI=ve("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Ie.avatar}`]:t.avatar},{[`& .${Ie.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${Ie.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${Ie.icon}`]:t.icon},{[`& .${Ie.icon}`]:t[`icon${ce(l)}`]},{[`& .${Ie.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${Ie.deleteIcon}`]:t.deleteIcon},{[`& .${Ie.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${Ie.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${Ie.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(o)}`]},t.root,t[`size${ce(l)}`],t[`color${ce(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${ce(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${ce(o)}`],t[c],t[`${c}${ce(o)}`]]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,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",[`&.${Ie.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ie.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ie.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ie.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ie.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ie.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ie.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,[`& .${Ie.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ie.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Gt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ie.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:{[`& .${Ie.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ie.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ie.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(Gt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ie.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}`)},[`&.${Ie.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(Gt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ie.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]}`,[`&.${Ie.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ie.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ie.avatar}`]:{marginLeft:4},[`& .${Ie.avatarSmall}`]:{marginLeft:2},[`& .${Ie.icon}`]:{marginLeft:4},[`& .${Ie.iconSmall}`]:{marginLeft:2},[`& .${Ie.deleteIcon}`]:{marginRight:5},[`& .${Ie.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Gt()).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)}`,[`&.${Ie.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ie.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),aI=ve("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${ce(o)}`]]}})({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 yh(e){return e.key==="Backspace"||e.key==="Delete"}const H1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:f,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:b,size:v="medium",variant:S="filled",tabIndex:w,skipFocusWhenDisabled:C=!1,slots:T={},slotProps:E={},...M}=o,R=P.useRef(null),D=Le(R,n),V=Q=>{Q.stopPropagation(),m&&m(Q)},j=Q=>{Q.currentTarget===Q.target&&yh(Q)&&Q.preventDefault(),g&&g(Q)},x=Q=>{Q.currentTarget===Q.target&&m&&yh(Q)&&m(Q),b&&b(Q)},L=a!==!1&&h?!0:a,A=L||m?Sr:c||"div",_={...o,component:A,disabled:u,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:S},O=sI(_),N=A===Sr?{component:c||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let $=null;m&&($=d&&P.isValidElement(d)?P.cloneElement(d,{className:be(d.props.className,O.deleteIcon),onClick:V}):y.jsx(oI,{className:O.deleteIcon,onClick:V}));let F=null;r&&P.isValidElement(r)&&(F=P.cloneElement(r,{className:be(O.avatar,r.props.className)}));let B=null;f&&P.isValidElement(f)&&(B=P.cloneElement(f,{className:be(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&F&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const I={slots:T,slotProps:E},[Y,q]=rt("root",{elementType:iI,externalForwardedProps:{...I,...M},ownerState:_,shouldForwardComponentProp:!0,ref:D,className:be(O.root,i),additionalProps:{disabled:L&&u?!0:void 0,tabIndex:C&&u?-1:w,...N},getSlotProps:Q=>({...Q,onClick:J=>{var ie;(ie=Q.onClick)==null||ie.call(Q,J),h==null||h(J)},onKeyDown:J=>{var ie;(ie=Q.onKeyDown)==null||ie.call(Q,J),j(J)},onKeyUp:J=>{var ie;(ie=Q.onKeyUp)==null||ie.call(Q,J),x(J)}})}),[Z,re]=rt("label",{elementType:aI,externalForwardedProps:I,ownerState:_,className:O.label});return y.jsxs(Y,{as:A,...q,children:[F||B,y.jsx(Z,{...re,children:p}),$]})});process.env.NODE_ENV!=="production"&&(H1.propTypes={avatar:s.element,children:xC,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 Ds=36,Oa=2,Da=320,lI=280,od=336,cI=["items","changeImportance"],uI=["getValue"],dI=ae.styled(td,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function W1(e){const{items:t,changeImportance:n="accept"}=e,o=Me(e,cI),{setValue:r}=QM(),i=LM();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,d=Me(l,uI);const u=c({isValid:i});return U({},d,{label:d.label,onClick:()=>{r(u,{changeImportance:n,shortcut:d,source:"view"})},disabled:!i(u)})});return y.jsx(dI,U({dense:!0,sx:[{maxHeight:od,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>y.jsx(z1,{children:y.jsx(H1,U({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(W1.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const fI=["ownerState"];function pI(e){return e.view!==null}const hI=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},A1,e)},mI=e=>{const{ownerState:t,defaultActionBarActions:n}=It(),{view:o}=Dr(),r=pn(),{children:i,slots:a,slotProps:l,classes:c}=e,d=P.useMemo(()=>U({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),u=hI(c,d),f=(a==null?void 0:a.actionBar)??B1,p=je({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:u.actionBar,ownerState:d}),h=Me(p,fI),m=y.jsx(f,U({},h)),g=a==null?void 0:a.toolbar,b=je({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:u.toolbar,ownerState:d}),v=pI(b)&&g?y.jsx(g,U({},b)):null,S=i,w=a==null?void 0:a.tabs,C=o&&w?y.jsx(w,U({className:u.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??W1,E=je({elementType:T,externalSlotProps:l==null?void 0:l.shortcuts,className:u.shortcuts,ownerState:d}),M=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,R=o&&T?y.jsx(T,U({},E)):null;return{toolbar:v,content:S,tabs:C,actionBar:m,shortcuts:R,ownerState:U({},d,{hasShortcuts:M})}},gI=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},A1,e)},yI=ae.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${xo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${xo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${xo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${xo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${xo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${xo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${xo.shortcuts}`]:{gridColumn:4}}}]}),bI=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ia=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:d}=mI(o),{orientation:u,variant:f}=Dr(),{sx:p,className:h,classes:m}=o,g=gI(m,d);return y.jsxs(yI,{ref:n,sx:p,className:be(g.root,h),ownerState:d,children:[u==="landscape"?c:r,u==="landscape"?r:c,y.jsx(bI,{className:g.contentWrapper,ownerState:d,children:f==="desktop"?y.jsxs(P.Fragment,{children:[i,a]}):y.jsxs(P.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Ia.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Ia.propTypes={children:s.node,classes:s.object,className:s.string,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function U1(e){const{steps:t}=e;return lD({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:r,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&r(l)}})}const vI=["props","steps"],xI=["ownerState"],CI=e=>{var E;let{props:t,steps:n}=e,o=Me(e,vI);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,d=U1({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:p}=R1(U({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:d})),h=u.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,b=je({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Me(b,xI),S=r.layout??Ia;let w=h;m&&(a?w=`${h}-label`:w=void 0);const C=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),popper:U({"aria-labelledby":w},i==null?void 0:i.popper)}),T=()=>y.jsxs(Zy,U({},u,{children:[y.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},C,v.slotProps),inputRef:l})),y.jsx(sD,{slots:r,slotProps:C,children:y.jsx(S,U({},C==null?void 0:C.layout,{slots:r,slotProps:C,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Xo=e=>e.saveQuery!=null,Y1=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Ze(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),b=n.sections[p];if(n.characterQuery!=null&&(!m||m(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const S=`${n.characterQuery.value}${g}`,w=h(S,b);if(!Xo(w))return r({sectionIndex:p,value:S,sectionType:b.type}),w}const v=h(g,b);return Xo(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:b.type}),Xo(v)?null:v)},d=f=>{const p=(g,b,v)=>{const S=b.filter(w=>w.toLowerCase().startsWith(v));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},h=(g,b,v,S)=>{const w=C=>Yy(l,o,b.type,C);if(b.contentType==="letter")return p(b.format,w(b.format),g);if(v&&S!=null&&Ru(l,v).contentType==="letter"){const C=w(v),T=p(v,C,g);return Xo(T)?{saveQuery:!1}:U({},T,{sectionValue:S(T.sectionValue,C)})}return{saveQuery:!1}};return c(f,(g,b)=>{switch(b.type){case"month":{const v=S=>Up(l,S,l.formats.month,b.format);return h(g,b,l.formats.month,v)}case"weekDay":{const v=(S,w)=>w.indexOf(S).toString();return h(g,b,l.formats.weekday,v)}case"meridiem":return h(g,b);default:return{saveQuery:!1}}})},u=f=>{const p=({queryValue:m,skipIfBelowMinimum:g,section:b})=>{const v=Bo(m,e),S=Number(v),w=t[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(S>w.maximum)return{saveQuery:!1};if(g&&S<w.minimum)return{saveQuery:!0};const C=S*10>w.maximum||v.length===w.maximum.toString().length;return{sectionValue:qy(l,S,w,e,b),shouldGoToNextSection:C}};return c(f,(m,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return p({queryValue:m,skipIfBelowMinimum:!1,section:g});if(g.type==="month"){Gy(l,"digit","month","MM");const b=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Xo(b))return b;const v=Up(l,b.sectionValue,"MM",g.format);return U({},b,{sectionValue:v})}if(g.type==="weekDay"){const b=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Xo(b))return b;const v=wa(l,g.format)[Number(b.sectionValue)-1];return U({},b,{sectionValue:v})}return{saveQuery:!1}},m=>Wp(m,e))};return me(f=>{const p=n.sections[f.sectionIndex],m=Wp(f.keyPressed,e)?u(U({},f,{keyPressed:Au(f.keyPressed,e)})):d(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},wI=5e3,q1=e=>{var ue;const t=Ze(),n=po(),o=pn(),{manager:{validator:r,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:d,defaultValue:u,referenceDate:f,onChange:p,format:h,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:b,shouldRespectLeadingZeros:v=!1,timezone:S,enableAccessibleFieldDOMStructure:w=!0},forwardedProps:{error:C}}=e,{value:T,handleValueChange:E,timezone:M}=Qs({name:"a field component",timezone:S,value:d,defaultValue:u,referenceDate:f,onChange:p,valueManager:a}),R=P.useRef(T);P.useEffect(()=>{R.current=T},[T]);const{hasValidationError:D}=o1({props:c,validator:r,timezone:M,value:T,onError:c.onError}),V=P.useMemo(()=>yM(t),[t]),j=P.useMemo(()=>wM(t,V,M),[t,V,M]),x=P.useCallback(se=>l.getSectionsFromValue(se,de=>Xp({adapter:t,localeText:n,localizedDigits:V,format:h,date:de,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:w,isRtl:o})),[l,h,n,V,o,v,t,m,w]),[L,A]=P.useState(()=>{const se=x(T);qp(se,i);const de={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=hM(se),he=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return U({},de,{referenceValue:he})}),[_,O]=oo({controlled:g,default:null,name:"useField",state:"selectedSections"}),N=se=>{O(se),b==null||b(se)},$=P.useMemo(()=>Tc(_,L.sections),[_,L.sections]),F=$==="all"?0:$,B=P.useMemo(()=>PM(L.sections,o&&!w),[L.sections,o,w]),I=P.useMemo(()=>L.sections.every(se=>se.value===""),[L.sections]),Y=P.useMemo(()=>{if(F!=null)return!1;const se=L.sections.filter(de=>de.value!=="");return se.length>0&&L.sections.length-se.length>0},[L.sections,F]),q=P.useMemo(()=>C!==void 0?C:D||Y,[D,Y,C]),Z=se=>{const de={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,de)},re=(se,de)=>{const le=[...L.sections];return le[se]=U({},le[se],{value:de,modified:!0}),le},Q=P.useRef(null),J=to(),ie=se=>{F!=null&&(Q.current={sectionIndex:F,value:se},J.start(0,()=>{Q.current=null}))},ee=()=>{a.areValuesEqual(t,T,a.emptyValue)?A(se=>U({},se,{sections:se.sections.map(de=>U({},de,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(A(se=>U({},se,{characterQuery:null})),Z(a.emptyValue))},H=()=>{if(F==null)return;const se=L.sections[F];se.value!==""&&(ie(""),l.getDateFromSection(T,se)===null?A(de=>U({},de,{sections:re(F,""),tempValueStrAndroid:null,characterQuery:null})):(A(de=>U({},de,{characterQuery:null})),Z(l.updateDateInValue(T,se,null))))},G=se=>{const de=(he,pe)=>{const De=t.parse(he,h);if(!t.isValid(De))return null;const Oe=Xp({adapter:t,localeText:n,localizedDigits:V,format:h,date:De,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:w,isRtl:o});return Kp(t,De,Oe,pe,!1)},le=l.parseValueStr(se,L.referenceValue,de);Z(le)},z=to(),K=({section:se,newSectionValue:de,shouldGoToNextSection:le})=>{J.clear(),z.clear();const he=l.getDateFromSection(T,se);le&&F<L.sections.length-1&&N(F+1);const pe=re(F,de),De=l.getDateSectionsFromValue(pe,se),Oe=vM(t,De,V);if(t.isValid(Oe)){const Xe=Kp(t,Oe,De,l.getDateFromSection(L.referenceValue,se),!0);return he==null&&z.start(0,()=>{R.current===T&&A(tt=>U({},tt,{sections:l.clearDateSections(L.sections,se),tempValueStrAndroid:null}))}),Z(l.updateDateInValue(T,se,Xe))}return De.every(Xe=>Xe.value!=="")&&(he==null||t.isValid(he))?(ie(de),Z(l.updateDateInValue(T,se,Oe))):(he!=null&&(ie(de),Z(l.updateDateInValue(T,se,Oe))),A(Xe=>U({},Xe,{sections:pe,tempValueStrAndroid:null})))},X=se=>A(de=>U({},de,{tempValueStrAndroid:se})),te=me(se=>{A(de=>U({},de,{characterQuery:se}))});if(T!==L.lastExternalValue){const se=Q.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[Q.current.sectionIndex]));let de;se?de=re(Q.current.sectionIndex,Q.current.value):de=x(T),A(le=>U({},le,{lastExternalValue:T,sections:de,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==L.lastSectionsDependencies.isRtl||h!==L.lastSectionsDependencies.format||t.locale!==L.lastSectionsDependencies.locale){const se=x(T);qp(se,i),A(de=>U({},de,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}L.characterQuery!=null&&!q&&F==null&&te(null),L.characterQuery!=null&&((ue=L.sections[L.characterQuery.sectionIndex])==null?void 0:ue.type)!==L.characterQuery.sectionType&&te(null),P.useEffect(()=>{Q.current!=null&&(Q.current=null)});const oe=to();return P.useEffect(()=>(L.characterQuery!=null&&oe.start(wI,()=>te(null)),()=>{}),[L.characterQuery,te,oe]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&F!=null&&H()},[L.sections]),{activeSectionIndex:F,areAllSectionsEmpty:I,error:q,localizedDigits:V,parsedSelectedSections:$,sectionOrder:B,sectionsValueBoundaries:j,state:L,timezone:M,value:T,clearValue:ee,clearActiveSection:H,setCharacterQuery:te,setSelectedSections:N,setTempAndroidValueStr:X,updateSectionValue:K,updateValueFromValueStr:G,getSectionsFromValue:x}};function G1(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Bu(),i=Ky(),a=Le(n.unstableFieldRef,o?null:i==null?void 0:i.fieldRef),l=r==null?void 0:r.setValue,c=P.useCallback((u,f)=>l==null?void 0:l(u,{validationError:f.validationError,shouldClose:!1}),[l]),d=P.useMemo(()=>i!=null&&r!=null?U({value:r.value,onChange:c,timezone:r.timezone,disabled:r.disabled,readOnly:r.readOnly,autoFocus:r.autoFocus&&!r.open,focused:r.open?!0:void 0,format:r.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[r,i,n,c,a]);return t(d)}function rd(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=kt(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(Lt(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():r.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function K1(e){const t=Ze(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:r,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:d,sectionsValueBoundaries:u,localizedDigits:f,timezone:p,sectionOrder:h,clearValue:m,clearActiveSection:g,setSelectedSections:b,updateSectionValue:v}}=e;return me(S=>{if(!r)switch(!0){case((S.ctrlKey||S.metaKey)&&String.fromCharCode(S.keyCode)==="A"&&!S.shiftKey&&!S.altKey):{S.preventDefault(),b("all");break}case S.key==="ArrowRight":{if(S.preventDefault(),d==null)b(h.startIndex);else if(d==="all")b(h.endIndex);else{const w=h.neighbors[d].rightIndex;w!==null&&b(w)}break}case S.key==="ArrowLeft":{if(S.preventDefault(),d==null)b(h.endIndex);else if(d==="all")b(h.startIndex);else{const w=h.neighbors[d].leftIndex;w!==null&&b(w)}break}case S.key==="Delete":{if(S.preventDefault(),i)break;d==null||d==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(S.key):{if(S.preventDefault(),i||c==null)break;d==="all"&&b(c);const w=a.sections[c],C=TI(t,p,w,S.key,u,f,n.getDateFromSection(l,w),{minutesStep:o});v({section:w,newSectionValue:C,shouldGoToNextSection:!1});break}}})}function SI(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function TI(e,t,n,o,r,i,a,l){const c=SI(o),d=o==="Home",u=o==="End",f=n.value===""||d||u,p=()=>{const m=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=S=>qy(e,S,m,i,n),b=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let v;if(f){if(n.type==="year"&&!u&&!d)return e.formatByString(e.date(void 0,t),n.format);c>0||d?v=m.minimum:v=m.maximum}else v=parseInt(Bo(n.value,i),10)+c*b;return v%b!==0&&((c<0||d)&&(v+=b-(b+v)%b),(c>0||u)&&(v-=v%b)),v>m.maximum?g(m.minimum+(v-m.maximum-1)%(m.maximum-m.minimum+1)):v<m.minimum?g(m.maximum-(m.minimum-v-1)%(m.maximum-m.minimum+1)):g(v)},h=()=>{const m=Yy(e,t,n.type,n.format);if(m.length===0)return n.value;if(f)return c>0||d?m[0]:m[m.length-1];const v=((m.indexOf(n.value)+c)%m.length+m.length)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()}function PI(e){const{manager:t,focused:n,setFocused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:d,state:u,clearValue:f,setCharacterQuery:p,setSelectedSections:h,updateValueFromValueStr:m},internalPropsWithDefaults:{disabled:g=!1,readOnly:b=!1}}=e,v=K1({manager:t,internalPropsWithDefaults:l,stateResponse:i}),S=to(),w=me(R=>{g||!r.isReady()||(o(!0),c==="all"?S.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){h(d.startIndex);return}let V=0,j=0;for(;j<D&&V<u.sections.length;){const x=u.sections[V];V+=1,j+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(R.target)||h(d.startIndex):(o(!0),h(d.startIndex)))}),C=me(R=>{if(!r.isReady()||c!=="all")return;const V=R.target.textContent??"";r.getRoot().innerHTML=u.sections.map(j=>`${j.startSeparator}${j.value||j.placeholder}${j.endSeparator}`).join(""),rd({focused:n,domGetters:r,stateResponse:i}),V.length===0||V.charCodeAt(0)===10?(f(),h("all")):V.length>1?m(V):(c==="all"&&h(0),a({keyPressed:V,sectionIndex:0}))}),T=me(R=>{if(b||c!=="all"){R.preventDefault();return}const D=R.clipboardData.getData("text");R.preventDefault(),p(null),m(D)}),E=me(()=>{if(n||g||!r.isReady())return;const R=Lt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(R)!=null||h(d.startIndex)}),M=me(()=>{setTimeout(()=>{if(!r.isReady())return;const R=Lt(r.getRoot());!r.getRoot().contains(R)&&(o(!1),h(null))})});return{onKeyDown:v,onBlur:M,onFocus:E,onClick:w,onPaste:T,onInput:C,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function EI(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=me(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function MI(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=P.useCallback(r=>i=>{n||i.isDefaultPrevented()||t(r)},[n,t]);return P.useCallback(r=>({"data-sectionindex":r,onClick:o(r)}),[o])}function kI(e){const t=Ze(),n=po(),{focused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:d,state:u,value:f,clearActiveSection:p,setCharacterQuery:h,setSelectedSections:m,updateSectionValue:g,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:v=!1,readOnly:S=!1}}=e,w=c==="all",C=!w&&!v&&!S,T=me(j=>{if(!r.isReady())return;const x=u.sections[j];r.getSectionContent(j).innerHTML=x.value||x.placeholder,rd({focused:o,domGetters:r,stateResponse:i})}),E=me(j=>{if(!r.isReady())return;const x=j.target,L=x.textContent??"",A=r.getSectionIndexFromDOMElement(x),_=u.sections[A];if(S){T(A);return}if(L.length===0){if(_.value===""){T(A);return}const O=j.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(A);return}T(A),p();return}a({keyPressed:L,sectionIndex:A}),T(A)}),M=me(j=>{j.preventDefault()}),R=me(j=>{if(j.preventDefault(),S||v||typeof c!="number")return;const x=u.sections[c],L=j.clipboardData.getData("text"),A=/^[a-zA-Z]+$/.test(L),_=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);x.contentType==="letter"&&A||x.contentType==="digit"&&_||x.contentType==="digit-with-letter"&&O?(h(null),g({section:x,newSectionValue:L,shouldGoToNextSection:!0})):!A&&!_&&(h(null),b(L))}),D=me(j=>{j.preventDefault(),j.dataTransfer.dropEffect="none"}),V=P.useCallback(j=>()=>{v||m(j)},[v,m]);return P.useCallback((j,x)=>{const L=d[j.type]({currentDate:l.getDateFromSection(f,j),contentType:j.contentType,format:j.format});return{onInput:E,onPaste:R,onMouseUp:M,onDragOver:D,onFocus:V(x),"aria-readonly":S,"aria-valuenow":DI(j,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":j.value?OI(j,t):n.empty,"aria-label":n[j.type],"aria-disabled":v,tabIndex:!C||w||x>0?-1:0,contentEditable:!w&&!v&&!S,role:"spinbutton","data-range-position":j.dateName||void 0,spellCheck:C?!1:void 0,autoCapitalize:C?"none":void 0,autoCorrect:C?"off":void 0,children:j.value||j.placeholder,inputMode:j.contentType==="letter"?"text":"numeric"}},[d,w,v,S,C,n,t,E,R,M,D,V,l,f])}function OI(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const o=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(o)?t.format(o,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function DI(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const II=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=n1(t,r),c=G1({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:d,onBlur:u,onClick:f,onFocus:p,onInput:h,onPaste:m,onKeyDown:g,onClear:b,clearable:v}=l,{disabled:S=!1,readOnly:w=!1,autoFocus:C=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),R=Le(d,M),D=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:oe=>M.current.getSectionContainer(oe),getSectionContent:oe=>M.current.getSectionContent(oe),getSectionIndexFromDOMElement:oe=>M.current.getSectionIndexFromDOMElement(oe)}),[M]),V=q1({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:j,error:x,parsedSelectedSections:L,sectionOrder:A,state:_,value:O,clearValue:N,setSelectedSections:$}=V,F=Y1({stateResponse:V}),B=i(O),[I,Y]=P.useState(!1);function q(oe=0){if(S||!M.current||bh(M)!=null)return;const ue=Tc(oe,_.sections);Y(!0),M.current.getSectionContent(ue).focus()}const Z=PI({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:F,focused:I,setFocused:Y,domGetters:D}),re=EI({manager:n,stateResponse:V}),Q=MI({stateResponse:V,internalPropsWithDefaults:c}),J=kI({manager:n,stateResponse:V,applyCharacterEditing:F,internalPropsWithDefaults:c,domGetters:D,focused:I}),ie=me(oe=>{g==null||g(oe),Z.onKeyDown(oe)}),ee=me(oe=>{u==null||u(oe),Z.onBlur(oe)}),H=me(oe=>{p==null||p(oe),Z.onFocus(oe)}),G=me(oe=>{oe.isDefaultPrevented()||(f==null||f(oe),Z.onClick(oe))}),z=me(oe=>{m==null||m(oe),Z.onPaste(oe)}),K=me(oe=>{h==null||h(oe),Z.onInput(oe)}),X=me((oe,...ue)=>{oe.preventDefault(),b==null||b(oe,...ue),N(),vh(M)?$(A.startIndex):q(0)}),te=P.useMemo(()=>_.sections.map((oe,ue)=>{const se=J(oe,ue);return{container:Q(ue),content:J(oe,ue),before:{children:oe.startSeparator},after:{children:oe.endSeparator,"data-range-position":oe.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[_.sections,Q,J]);return P.useEffect(()=>{if(M.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
228
- `));C&&!S&&M.current&&M.current.getSectionContent(A.startIndex).focus()},[]),Pt(()=>{if(!(!I||!M.current)){if(L==="all")M.current.getRoot().focus();else if(typeof L=="number"){const oe=M.current.getSectionContent(L);oe&&oe.focus()}}},[L,I]),Pt(()=>{rd({focused:I,domGetters:D,stateResponse:V})}),P.useImperativeHandle(E,()=>({getSections:()=>_.sections,getActiveSectionIndex:()=>bh(M),setSelectedSections:oe=>{if(S||!M.current)return;const ue=Tc(oe,_.sections);Y((ue==="all"?0:ue)!==null),$(oe)},focusField:q,isFieldFocused:()=>vh(M)})),U({},l,Z,{onBlur:ee,onClick:G,onFocus:H,onInput:K,onPaste:z,onKeyDown:ie,onClear:X},re,{error:x,clearable:!!(v&&!j&&!w&&!S),focused:T??I,sectionListRef:R,enableAccessibleFieldDOMStructure:!0,elements:te,areAllSectionsEmpty:j,disabled:S,readOnly:w,autoFocus:C,openPickerAriaLabel:B})};function bh(e){var n;const t=Lt((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function vh(e){var n;const t=Lt((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const lr=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),RI=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],c=Nu(l,n?"input-rtl":"input-ltr",t),d=`${l.startSeparator}${c}${l.endSeparator}`,u=lr(d).length,f=d.length,p=lr(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(U({},l,{start:o,end:o+u,startInInput:h,endInInput:m})),o+=u,r+=f}return i},AI=e=>{const t=pn(),n=to(),o=to(),{props:r,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:d,internal_useOpenPickerButtonAriaLabel:u}}=e,{internalProps:f,forwardedProps:p}=n1(r,l),h=G1({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:b,onBlur:v,onKeyDown:S,onClear:w,clearable:C,inputRef:T,placeholder:E}=p,{readOnly:M=!1,disabled:R=!1,autoFocus:D=!1,focused:V,unstableFieldRef:j}=h,x=P.useRef(null),L=Le(T,x),A=q1({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:_,areAllSectionsEmpty:O,error:N,localizedDigits:$,parsedSelectedSections:F,sectionOrder:B,state:I,value:Y,clearValue:q,clearActiveSection:Z,setCharacterQuery:re,setSelectedSections:Q,setTempAndroidValueStr:J,updateSectionValue:ie,updateValueFromValueStr:ee,getSectionsFromValue:H}=A,G=Y1({stateResponse:A}),z=u(Y),K=P.useMemo(()=>RI(I.sections,$,t),[I.sections,$,t]);function X(){const Pe=x.current.selectionStart??0;let Ee;Pe<=K[0].startInInput||Pe>=K[K.length-1].endInInput?Ee=1:Ee=K.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>Pe);const ge=Ee===-1?K.length-1:Ee-1;Q(ge)}function te(Pe=0){var Ee;Lt(x.current)!==x.current&&((Ee=x.current)==null||Ee.focus(),Q(Pe))}const oe=me(Pe=>{m==null||m(Pe);const Ee=x.current;n.start(0,()=>{!Ee||Ee!==x.current||_==null&&(Ee.value.length&&Number(Ee.selectionEnd)-Number(Ee.selectionStart)===Ee.value.length?Q("all"):X())})}),ue=me((Pe,...Ee)=>{Pe.isDefaultPrevented()||(g==null||g(Pe,...Ee),X())}),se=me(Pe=>{if(b==null||b(Pe),Pe.preventDefault(),M||R)return;const Ee=Pe.clipboardData.getData("text");if(typeof F=="number"){const ge=I.sections[F],Ne=/^[a-zA-Z]+$/.test(Ee),Ve=/^[0-9]+$/.test(Ee),it=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ee);if(ge.contentType==="letter"&&Ne||ge.contentType==="digit"&&Ve||ge.contentType==="digit-with-letter"&&it){re(null),ie({section:ge,newSectionValue:Ee,shouldGoToNextSection:!0});return}if(Ne||Ve)return}re(null),ee(Ee)}),de=me(Pe=>{v==null||v(Pe),Q(null)}),le=me(Pe=>{if(M)return;const Ee=Pe.target.value;if(Ee===""){q();return}const ge=Pe.nativeEvent.data,Ne=ge&&ge.length>1,Ve=Ne?ge:Ee,it=lr(Ve);if(F==="all"&&Q(_),_==null||Ne){ee(Ne?ge:it);return}let Qe;if(F==="all"&&it.length===1)Qe=it;else{const Ft=lr(d.getV6InputValueFromSections(K,$,t));let ke=-1,dt=-1;for(let ye=0;ye<Ft.length;ye+=1)ke===-1&&Ft[ye]!==it[ye]&&(ke=ye),dt===-1&&Ft[Ft.length-ye-1]!==it[it.length-ye-1]&&(dt=ye);const vt=K[_];if(ke<vt.start||Ft.length-dt-1>vt.end)return;const mn=it.length-Ft.length+vt.end-lr(vt.endSeparator||"").length;Qe=it.slice(vt.start+lr(vt.startSeparator||"").length,mn)}if(Qe.length===0){TM()&&J(Ve),Z();return}G({keyPressed:Qe,sectionIndex:_})}),he=me((Pe,...Ee)=>{Pe.preventDefault(),w==null||w(Pe,...Ee),q(),xh(x)?Q(B.startIndex):te(0)}),pe=K1({manager:i,internalPropsWithDefaults:h,stateResponse:A}),De=me(Pe=>{S==null||S(Pe),pe(Pe)}),Oe=P.useMemo(()=>E!==void 0?E:d.getV6InputValueFromSections(H(c.emptyValue),$,t),[E,d,H,c.emptyValue,$,t]),Xe=P.useMemo(()=>I.tempValueStrAndroid??d.getV6InputValueFromSections(I.sections,$,t),[I.sections,d,I.tempValueStrAndroid,$,t]);P.useEffect(()=>{x.current&&x.current===Lt(x.current)&&Q("all")},[]),Pt(()=>{function Pe(){if(!x.current)return;if(F==null){x.current.scrollLeft&&(x.current.scrollLeft=0);return}if(x.current!==Lt(x.current))return;const Ee=x.current.scrollTop;if(F==="all")x.current.select();else{const ge=K[F],Ne=ge.type==="empty"?ge.startInInput-ge.startSeparator.length:ge.startInInput,Ve=ge.type==="empty"?ge.endInInput+ge.endSeparator.length:ge.endInInput;(Ne!==x.current.selectionStart||Ve!==x.current.selectionEnd)&&x.current===Lt(x.current)&&x.current.setSelectionRange(Ne,Ve),o.start(0,()=>{x.current&&x.current===Lt(x.current)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==Ne||x.current.selectionEnd!==Ve)&&Pe()})}x.current.scrollTop=Ee}Pe()});const tt=P.useMemo(()=>_==null||I.sections[_].contentType==="letter"?"text":"numeric",[_,I.sections]),Et=!(x.current&&x.current===Lt(x.current))&&O;return P.useImperativeHandle(j,()=>({getSections:()=>I.sections,getActiveSectionIndex:()=>{const Pe=x.current.selectionStart??0,Ee=x.current.selectionEnd??0;if(Pe===0&&Ee===0)return null;const ge=Pe<=K[0].startInInput?1:K.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>Pe);return ge===-1?K.length-1:ge-1},setSelectedSections:Pe=>Q(Pe),focusField:te,isFieldFocused:()=>xh(x)})),U({},p,{error:N,"aria-invalid":N,clearable:!!(C&&!O&&!M&&!R),onBlur:de,onClick:ue,onFocus:oe,onPaste:se,onKeyDown:De,onClear:he,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:Oe,inputMode:tt,autoComplete:"off",value:Et?"":Xe,onChange:le,focused:V,disabled:R,readOnly:M,autoFocus:D,openPickerAriaLabel:z})};function xh(e){return e.current===Lt(e.current)}const _I=e=>{const t=Ky();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?II:AI)(e)},NI=e=>{const t=sk(e);return _I({manager:t,props:e})};function mi(e){return parseInt(e,10)||0}const jI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function LI(e){for(const t in e)return!1;return!0}function Ch(e){return LI(e)||e.outerHeightStyle===0&&!e.overflowing}const Z1=P.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...c}=t,{current:d}=P.useRef(l!=null),u=P.useRef(null),f=Le(n,u),p=P.useRef(null),h=P.useRef(null),m=P.useCallback(()=>{const w=u.current,C=h.current;if(!w||!C)return;const E=$n(w).getComputedStyle(w);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=E.width,C.value=w.value||t.placeholder||"x",C.value.slice(-1)===`
229
- `&&(C.value+=" ");const M=E.boxSizing,R=mi(E.paddingBottom)+mi(E.paddingTop),D=mi(E.borderBottomWidth)+mi(E.borderTopWidth),V=C.scrollHeight;C.value="x";const j=C.scrollHeight;let x=V;i&&(x=Math.max(Number(i)*j,x)),r&&(x=Math.min(Number(r)*j,x)),x=Math.max(x,j);const L=x+(M==="border-box"?R+D:0),A=Math.abs(x-V)<=1;return{outerHeightStyle:L,overflowing:A}},[r,i,t.placeholder]),g=me(()=>{const w=u.current,C=m();if(!w||!C||Ch(C))return!1;const T=C.outerHeightStyle;return p.current!=null&&p.current!==T}),b=P.useCallback(()=>{const w=u.current,C=m();if(!w||!C||Ch(C))return;const T=C.outerHeightStyle;p.current!==T&&(p.current=T,w.style.height=`${T}px`),w.style.overflow=C.overflowing?"hidden":""},[m]),v=P.useRef(-1);Pt(()=>{const w=Tm(b),C=u==null?void 0:u.current;if(!C)return;const T=$n(C);T.addEventListener("resize",w);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{g()&&(E.unobserve(C),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{E.observe(C)}))}),E.observe(C)),()=>{w.clear(),cancelAnimationFrame(v.current),T.removeEventListener("resize",w),E&&E.disconnect()}},[m,b,g]),Pt(()=>{b()});const S=w=>{d||b();const C=w.target,T=C.value.length,E=C.value.endsWith(`
230
- `),M=C.selectionStart===T;E&&M&&C.setSelectionRange(T,T),o&&o(w)};return y.jsxs(P.Fragment,{children:[y.jsx("textarea",{value:l,onChange:S,ref:f,rows:i,style:a,...c}),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...jI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Z1.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function Ir({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Js=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Js.displayName="FormControlContext");function Un(){return P.useContext(Js)}function wh(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ea(e,t=!1){return e&&(wh(e.value)&&e.value!==""||t&&wh(e.defaultValue)&&e.defaultValue!=="")}function VI(e){return e.startAdornment}function $I(e){return Te("MuiInputBase",e)}const Tr=Se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Sh;const Ra=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Aa=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},FI=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:f,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${ce(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",p&&p!=="medium"&&`size${ce(p)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return we(g,$I,t)},_a=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ra})(Ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Tr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Na=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Aa})(Ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Tr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Tr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Th=mC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ja=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:c,components:d={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,error:g,fullWidth:b=!1,id:v,inputComponent:S="input",inputProps:w={},inputRef:C,margin:T,maxRows:E,minRows:M,multiline:R=!1,name:D,onBlur:V,onChange:j,onClick:x,onFocus:L,onKeyDown:A,onKeyUp:_,placeholder:O,readOnly:N,renderSuffix:$,rows:F,size:B,slotProps:I={},slots:Y={},startAdornment:q,type:Z="text",value:re,...Q}=o,J=w.value!=null?w.value:re,{current:ie}=P.useRef(J!=null),ee=P.useRef(),H=P.useCallback(ge=>{process.env.NODE_ENV!=="production"&&ge&&ge.nodeName!=="INPUT"&&!ge.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
231
- `))},[]),G=Le(ee,C,w.ref,H),[z,K]=P.useState(!1),X=Un();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(X)return X.registerEffect()},[X]);const te=Ir({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=X?X.focused:z,P.useEffect(()=>{!X&&p&&z&&(K(!1),V&&V())},[X,p,z,V]);const oe=X&&X.onFilled,ue=X&&X.onEmpty,se=P.useCallback(ge=>{ea(ge)?oe&&oe():ue&&ue()},[oe,ue]);Pt(()=>{ie&&se({value:J})},[J,se,ie]);const de=ge=>{L&&L(ge),w.onFocus&&w.onFocus(ge),X&&X.onFocus?X.onFocus(ge):K(!0)},le=ge=>{V&&V(ge),w.onBlur&&w.onBlur(ge),X&&X.onBlur?X.onBlur(ge):K(!1)},he=(ge,...Ne)=>{if(!ie){const Ve=ge.target||ee.current;if(Ve==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Mn(1));se({value:Ve.value})}w.onChange&&w.onChange(ge,...Ne),j&&j(ge,...Ne)};P.useEffect(()=>{se(ee.current)},[]);const pe=ge=>{ee.current&&ge.currentTarget===ge.target&&ee.current.focus(),x&&x(ge)};let De=S,Oe=w;R&&De==="input"&&(F?(process.env.NODE_ENV!=="production"&&(M||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe={type:void 0,minRows:F,maxRows:F,...Oe}):Oe={type:void 0,maxRows:E,minRows:M,...Oe},De=Z1);const Xe=ge=>{se(ge.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};P.useEffect(()=>{X&&X.setAdornedStart(!!q)},[X,q]);const tt={...o,color:te.color||"primary",disabled:te.disabled,endAdornment:m,error:te.error,focused:te.focused,formControl:X,fullWidth:b,hiddenLabel:te.hiddenLabel,multiline:R,size:te.size,startAdornment:q,type:Z},St=FI(tt),Et=Y.root||d.Root||_a,Pe=I.root||u.root||{},Ee=Y.input||d.Input||Na;return Oe={...Oe,...I.input??u.input},y.jsxs(P.Fragment,{children:[!h&&typeof Th=="function"&&(Sh||(Sh=y.jsx(Th,{}))),y.jsxs(Et,{...Pe,ref:n,onClick:pe,...Q,...!br(Et)&&{ownerState:{...tt,...Pe.ownerState}},className:be(St.root,Pe.className,l,N&&"MuiInputBase-readOnly"),children:[q,y.jsx(Js.Provider,{value:null,children:y.jsx(Ee,{"aria-invalid":te.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:te.disabled,id:v,onAnimationStart:Xe,name:D,placeholder:O,readOnly:N,required:te.required,rows:F,value:J,onKeyDown:A,onKeyUp:_,type:Z,...Oe,...!br(Ee)&&{as:De,ownerState:{...tt,...Oe.ownerState}},ref:G,className:be(St.input,Oe.className,N&&"MuiInputBase-readOnly"),onBlur:le,onChange:he,onFocus:de})}),m,$?$({...te,startAdornment:q}):null]})]})});process.env.NODE_ENV!=="production"&&(ja.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:ka,inputProps:s.object,inputRef:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function BI(e){return Te("MuiInput",e)}const Ur={...Tr,...Se("MuiInput",["root","underline","input"])},zI=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},BI,t);return{...t,...r}},HI=ve(_a,{shouldForwardProp:e=>hn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ra(e,t),!n.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ur.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ur.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ur.disabled}, .${Ur.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ur.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Gt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),WI=ve(Na,{name:"MuiInput",slot:"Input",overridesResolver:Aa})({}),La=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:p="text",...h}=o,m=zI(o),b={root:{ownerState:{disableUnderline:r}}},v=u??a?Nt(u??a,b):b,S=f.root??i.Root??HI,w=f.input??i.Input??WI;return y.jsx(ja,{slots:{root:S,input:w},slotProps:v,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(La.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});La.muiName="Input";function UI(e){return Te("MuiFilledInput",e)}const wo={...Tr,...Se("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},YI=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=we(c,UI,t);return{...t,...d}},qI=ve(_a,{shouldForwardProp:e=>hn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ra(e,t),!n.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${wo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${wo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wo.disabled}, .${wo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Gt()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),GI=ve(Na,{name:"MuiFilledInput",slot:"Input",overridesResolver:Aa})(Ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Va=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:p={},type:h="text",...m}=o,g={...o,disableUnderline:r,fullWidth:l,inputComponent:d,multiline:u,type:h},b=YI(o),v={root:{ownerState:g},input:{ownerState:g}},S=f??a?Nt(v,f??a):v,w=p.root??i.Root??qI,C=p.input??i.Input??GI;return y.jsx(ja,{slots:{root:w,input:C},slotProps:S,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:h,...m,classes:b})});process.env.NODE_ENV!=="production"&&(Va.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Va.muiName="Input";var Ph;const KI=ve("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:hn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ZI=ve("legend",{name:"MuiNotchedOutlined",shouldForwardProp:hn})(Ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function X1(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",c={...e,notched:i,withLabel:l};return y.jsx(KI,{"aria-hidden":!0,className:o,ownerState:c,...a,children:y.jsx(ZI,{ownerState:c,children:l?y.jsx("span",{children:r}):Ph||(Ph=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(X1.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function XI(e){return Te("MuiOutlinedInput",e)}const xn={...Tr,...Se("MuiOutlinedInput",["root","notchedOutline","input"])},QI=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},XI,t);return{...t,...o}},JI=ve(_a,{shouldForwardProp:e=>hn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ra})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${xn.focused} .${xn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Gt()).map(([n])=>({props:{color:n},style:{[`&.${xn.focused} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${xn.error} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xn.disabled} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),eR=ve(X1,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),tR=ve(Na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Aa})(Ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),$a=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiOutlinedInput"}),{components:r={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:d,slots:u={},slotProps:f={},type:p="text",...h}=o,m=QI(o),g=Un(),b=Ir({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:g,fullWidth:i,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:p},S=u.root??r.Root??JI,w=u.input??r.Input??tR,[C,T]=rt("notchedOutline",{elementType:eR,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?y.jsxs(P.Fragment,{children:[l," ","*"]}):l}});return y.jsx(ja,{slots:{root:S,input:w},slotProps:f,renderSuffix:E=>y.jsx(C,{...T,notched:typeof d<"u"?d:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:p,...h,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&($a.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,notchedOutline:s.oneOfType([s.func,s.object]),root:s.object}),slots:s.shape({input:s.elementType,notchedOutline:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});$a.muiName="Input";function nR(e){return Te("MuiFormLabel",e)}const ps=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),oR=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,c={root:["root",`color${ce(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return we(c,nR,t)},rR=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{[`&.${ps.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ps.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ps.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),sR=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ke(({theme:e})=>({[`&.${ps.error}`]:{color:(e.vars||e).palette.error.main}}))),Q1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:c,error:d,filled:u,focused:f,required:p,...h}=o,m=Un(),g=Ir({props:o,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),b={...o,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=oR(b);return y.jsxs(rR,{as:l,ownerState:b,className:be(v.root,i),ref:n,...h,children:[r,g.required&&y.jsxs(sR,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Q1.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function iR(e){return Te("MuiInputLabel",e)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const aR=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="medium"&&`size${ce(o)}`,a],asterisk:[l&&"asterisk"]},d=we(c,iR,t);return{...t,...d}},lR=ve(Q1,{shouldForwardProp:e=>hn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ps.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),sd=P.forwardRef(function(t,n){const o=$e({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...d}=o,u=Un();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const p=Ir({props:o,muiFormControl:u,states:["size","variant","required","focused"]}),h={...o,disableAnimation:r,formControl:u,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused},m=aR(h);return y.jsx(lR,{"data-shrink":f,ref:n,className:be(m.root,c),...d,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(sd.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function cR(e){return Te("MuiFormControl",e)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const uR=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,cR,t)},dR=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),id=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:b="outlined",...v}=o,S={...o,color:a,component:l,disabled:c,error:d,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:b},w=uR(S),[C,T]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{if(!as(N,["Input","Select"]))return;const $=as(N,["Select"])?N.props.input:N;$&&VI($.props)&&(O=!0)}),O}),[E,M]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{as(N,["Input","Select"])&&(ea(N.props,!0)||ea(N.props.inputProps,!0))&&(O=!0)}),O}),[R,D]=P.useState(!1);c&&R&&D(!1);const V=u!==void 0&&!c?u:R;let j;const x=P.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
232
- `)),x.current=!0,()=>{x.current=!1}));const L=P.useCallback(()=>{M(!0)},[]),A=P.useCallback(()=>{M(!1)},[]),_=P.useMemo(()=>({adornedStart:C,setAdornedStart:T,color:a,disabled:c,error:d,filled:E,focused:V,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:A,onFilled:L,registerEffect:j,required:m,variant:b}),[C,a,c,d,E,V,f,p,j,A,L,m,g,b]);return y.jsx(Js.Provider,{value:_,children:y.jsx(dR,{as:l,ownerState:S,className:be(w.root,i),ref:n,...v,children:r})})});process.env.NODE_ENV!=="production"&&(id.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function fR(e){return Te("MuiFormHelperText",e)}const Eh=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Mh;const pR=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:c}=e,d={root:["root",r&&"disabled",i&&"error",o&&`size${ce(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return we(d,fR,t)},hR=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Eh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Eh.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ad=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:f,required:p,variant:h,...m}=o,g=Un(),b=Ir({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...o,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const S=pR(v);return y.jsx(hR,{as:a,className:be(S.root,i),ref:n,...m,ownerState:v,children:r===" "?Mh||(Mh=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});process.env.NODE_ENV!=="production"&&(ad.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function J1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ml(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eb(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Yr(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!eb(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const tb=P.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:f="selectedMenu",...p}=t,h=P.useRef(null),m=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt(()=>{r&&h.current.focus()},[r]),P.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const T=!h.current.style.width;if(w.clientHeight<h.current.clientHeight&&T){const E=`${J1($n(w))}px`;h.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const g=w=>{const C=h.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const M=os(kt(C));if(T==="ArrowDown")w.preventDefault(),Yr(C,M,d,c,Ml);else if(T==="ArrowUp")w.preventDefault(),Yr(C,M,d,c,kh);else if(T==="Home")w.preventDefault(),Yr(C,null,d,c,Ml);else if(T==="End")w.preventDefault(),Yr(C,null,d,c,kh);else if(T.length===1){const R=m.current,D=T.toLowerCase(),V=performance.now();R.keys.length>0&&(V-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&D!==R.keys[0]&&(R.repeating=!1)),R.lastTime=V,R.keys.push(D);const j=M&&!R.repeating&&eb(M,R);R.previousKeyMatched&&(j||Yr(C,M,!1,c,Ml,R))?w.preventDefault():R.previousKeyMatched=!1}u&&u(w)},b=Le(h,n);let v=-1;P.Children.forEach(a,(w,C)=>{if(!P.isValidElement(w)){v===C&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Fo.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
233
- `)),w.props.disabled||(f==="selectedMenu"&&w.props.selected||v===-1)&&(v=C),v===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const S=P.Children.map(a,(w,C)=>{if(C===v){const T={};return i&&(T.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(w,T)}return w});return y.jsx(td,{role:"menu",ref:b,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:S})});process.env.NODE_ENV!=="production"&&(tb.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function mR(e){const t=kt(e);return t.body===e?$n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Oh(e){return parseFloat($n(e).getComputedStyle(e).paddingRight)||0}function gR(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Dh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!gR(a);l&&c&&hs(a,r)})}function kl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function yR(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(mR(o)){const a=J1($n(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Oh(o)+a}px`;const l=kt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Oh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=kt(o).body;else{const a=o.parentElement,l=$n(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function bR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class vR{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&hs(t.modalRef,!1);const r=bR(n);Dh(n,t.mount,t.modalRef,r,!0);const i=kl(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=kl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=yR(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=kl(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&hs(t.modalRef,n),Dh(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&hs(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function xR(e){return Te("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const CR=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},xR,t)},wR=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ld=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:f={},slots:p={},TransitionComponent:h,transitionDuration:m,...g}=o,b={...o,component:a,invisible:l},v=CR(b),S={transition:h,root:d.Root,...p},w={...u,...f},C={component:a,slots:S,slotProps:w},[T,E]=rt("root",{elementType:wR,externalForwardedProps:C,className:be(v.root,i),ownerState:b}),[M,R]=rt("transition",{elementType:io,externalForwardedProps:C,ownerState:b});return y.jsx(M,{in:c,timeout:m,...g,...R,children:y.jsx(T,{"aria-hidden":!0,...E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(ld.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function SR(e){return typeof e=="function"?e():e}function TR(e){return e?e.props.hasOwnProperty("in"):!1}const Ih=()=>{},gi=new vR;function PR(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:u}=e,f=P.useRef({}),p=P.useRef(null),h=P.useRef(null),m=Le(h,u),[g,b]=P.useState(!d),v=TR(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const w=()=>kt(p.current),C=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{gi.mount(C(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=me(()=>{const _=SR(t)||w().body;gi.add(C(),_),h.current&&T()}),M=()=>gi.isTopModal(C()),R=me(_=>{p.current=_,_&&(d&&M()?T():h.current&&hs(h.current,S))}),D=P.useCallback(()=>{gi.remove(C(),S)},[S]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{d?E():(!v||!r)&&D()},[d,D,v,r,E]);const V=_=>O=>{var N;(N=_.onKeyDown)==null||N.call(_,O),!(O.key!=="Escape"||O.which===229||!M())&&(n||(O.stopPropagation(),c&&c(O,"escapeKeyDown")))},j=_=>O=>{var N;(N=_.onClick)==null||N.call(_,O),O.target===O.currentTarget&&c&&c(O,"backdropClick")};return{getRootProps:(_={})=>{const O=i1(e);delete O.onTransitionEnter,delete O.onTransitionExited;const N={...O,..._};return{role:"presentation",...N,onKeyDown:V(N),ref:m}},getBackdropProps:(_={})=>{const O=_;return{"aria-hidden":!0,...O,onClick:j(O),open:d}},getTransitionProps:()=>{const _=()=>{b(!1),i&&i()},O=()=>{b(!0),a&&a(),r&&D()};return{onEnter:Ad(_,(l==null?void 0:l.props.onEnter)??Ih),onExited:Ad(O,(l==null?void 0:l.props.onExited)??Ih)}},rootRef:m,portalRef:R,isTopModal:M,exited:g,hasTransition:v}}function ER(e){return Te("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const MR=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ER,o)},kR=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),OR=ve(ld,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),cd=P.forwardRef(function(t,n){const o=$e({name:"MuiModal",props:t}),{BackdropComponent:r=OR,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:d,container:u,component:f,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:R,open:D,slotProps:V={},slots:j={},theme:x,...L}=o,A={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:C,keepMounted:T},{getRootProps:_,getBackdropProps:O,getTransitionProps:N,portalRef:$,isTopModal:F,exited:B,hasTransition:I}=PR({...A,rootRef:n}),Y={...A,exited:B},q=MR(Y),Z={};if(d.props.tabIndex===void 0&&(Z.tabIndex="-1"),I){const{onEnter:H,onExited:G}=N();Z.onEnter=H,Z.onExited=G}const re={slots:{root:p.Root,backdrop:p.Backdrop,...j},slotProps:{...h,...V}},[Q,J]=rt("root",{ref:n,elementType:kR,externalForwardedProps:{...re,...L,component:f},getSlotProps:_,ownerState:Y,className:be(l,q==null?void 0:q.root,!Y.open&&Y.exited&&(q==null?void 0:q.hidden))}),[ie,ee]=rt("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:H=>O({...H,onClick:G=>{H!=null&&H.onClick&&H.onClick(G)}}),className:be(i==null?void 0:i.className,q==null?void 0:q.backdrop),ownerState:Y});return!T&&!D&&(!I||B)?null:y.jsx(ks,{ref:$,container:u,disablePortal:v,children:y.jsxs(Q,{...J,children:[!C&&r?y.jsx(ie,{...ee}):null,y.jsx(Os,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:S,isEnabled:F,open:D,children:P.cloneElement(d,Z)})]})})});process.env.NODE_ENV!=="production"&&(cd.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Ys.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([zn,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function DR(e){return Te("MuiPopover",e)}Se("MuiPopover",["root","paper"]);function Rh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ah(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function _h(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function rs(e){return typeof e=="function"?e():e}const IR=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},DR,t)},RR=ve(cd,{name:"MuiPopover",slot:"Root"})({}),nb=ve(Ks,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ob=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:f,elevation:p=8,marginThreshold:h=16,open:m,PaperProps:g={},slots:b={},slotProps:v={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:C="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,R=P.useRef(),D={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:T},V=IR(D),j=P.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const H=rs(i),G=H&&H.nodeType===1?H:kt(R.current).body,z=G.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const K=G.getBoundingClientRect();process.env.NODE_ENV!=="test"&&K.top===0&&K.left===0&&K.right===0&&K.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
234
- `))}return{top:z.top+Rh(z,a.vertical),left:z.left+Ah(z,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),x=P.useCallback(H=>({vertical:Rh(H,S.vertical),horizontal:Ah(H,S.horizontal)}),[S.horizontal,S.vertical]),L=P.useCallback(H=>{const G={width:H.offsetWidth,height:H.offsetHeight},z=x(G);if(c==="none")return{top:null,left:null,transformOrigin:_h(z)};const K=j();let X=K.top-z.vertical,te=K.left-z.horizontal;const oe=X+G.height,ue=te+G.width,se=$n(rs(i)),de=se.innerHeight-h,le=se.innerWidth-h;if(h!==null&&X<h){const he=X-h;X-=he,z.vertical+=he}else if(h!==null&&oe>de){const he=oe-de;X-=he,z.vertical+=he}if(process.env.NODE_ENV!=="production"&&G.height>de&&G.height&&de&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${G.height-de}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
235
- `)),h!==null&&te<h){const he=te-h;te-=he,z.horizontal+=he}else if(ue>le){const he=ue-le;te-=he,z.horizontal+=he}return{top:`${Math.round(X)}px`,left:`${Math.round(te)}px`,transformOrigin:_h(z)}},[i,c,j,x,h]),[A,_]=P.useState(m),O=P.useCallback(()=>{const H=R.current;if(!H)return;const G=L(H);G.top!==null&&H.style.setProperty("top",G.top),G.left!==null&&(H.style.left=G.left),H.style.transformOrigin=G.transformOrigin,_(!0)},[L]);P.useEffect(()=>(E&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,E,O]);const N=()=>{O()},$=()=>{_(!1)};P.useEffect(()=>{m&&O()}),P.useImperativeHandle(r,()=>m?{updatePosition:()=>{O()}}:null,[m,O]),P.useEffect(()=>{if(!m)return;const H=Tm(()=>{O()}),G=$n(rs(i));return G.addEventListener("resize",H),()=>{H.clear(),G.removeEventListener("resize",H)}},[i,m,O]);let F=C;const B={slots:{transition:w,...b},slotProps:{transition:T,paper:g,...v}},[I,Y]=rt("transition",{elementType:Ps,externalForwardedProps:B,ownerState:D,getSlotProps:H=>({...H,onEntering:(G,z)=>{var K;(K=H.onEntering)==null||K.call(H,G,z),N()},onExited:G=>{var z;(z=H.onExited)==null||z.call(H,G),$()}}),additionalProps:{appear:!0,in:m}});C==="auto"&&!I.muiSupportAuto&&(F=void 0);const q=f||(i?kt(rs(i)).body:void 0),[Z,{slots:re,slotProps:Q,...J}]=rt("root",{ref:n,elementType:RR,externalForwardedProps:{...B,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:wC(typeof v.backdrop=="function"?v.backdrop(D):v.backdrop,{invisible:!0})},container:q,open:m},ownerState:D,className:be(V.root,u)}),[ie,ee]=rt("paper",{ref:R,className:V.paper,elementType:nb,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:A?void 0:{opacity:0}},ownerState:D});return y.jsx(Z,{...J,...!br(Z)&&{slots:re,slotProps:Q,disableScrollLock:E},children:y.jsx(I,{...Y,timeout:F,children:y.jsx(ie,{...ee,children:d})})})});process.env.NODE_ENV!=="production"&&(ob.propTypes={action:wt,anchorEl:Wn(s.oneOfType([zn,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=rs(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
223
+ `,hD=typeof Ec!="string"?Ht.css`
224
+ animation: ${Ec} 1.4s linear infinite;
225
+ `:null,mD=typeof Mc!="string"?Ht.css`
226
+ animation: ${Mc} 1.4s ease-in-out infinite;
227
+ `:null,gD=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,i={root:["root",n,`color${ce(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ce(n)}`,r&&"circleDisableShrink"]};return we(i,pD,t)},yD=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:hD||{animation:`${Ec} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bD=ve("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),vD=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ze(({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:mD||{animation:`${Mc} 1.4s ease-in-out infinite`}}]}))),xD=ve("circle",{name:"MuiCircularProgress",slot:"Track"})(Ze(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Wu=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:f=0,variant:p="indeterminate",...h}=o,m={...o,color:i,disableShrink:a,size:c,thickness:d,value:f,variant:p,enableTrackSlot:l},g=gD(m),y={},v={},S={};if(p==="determinate"){const w=2*Math.PI*((cn-d)/2);y.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(yD,{className:be(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...S,...h,children:b.jsxs(bD,{className:g.svg,ownerState:m,viewBox:`${cn/2} ${cn/2} ${cn} ${cn}`,children:[l?b.jsx(xD,{className:g.track,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(vD,{className:g.circle,style:y,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Wu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Fn(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 CD(e){return Te("MuiButton",e)}const yo=Se("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"]),k1=P.createContext({});process.env.NODE_ENV!=="production"&&(k1.displayName="ButtonGroupContext");const D1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(D1.displayName="ButtonGroupButtonContext");const wD=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${ce(t)}`,`size${ce(r)}`,`${i}Size${ce(r)}`,`color${ce(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${ce(l)}`],startIcon:["icon","startIcon",`iconSize${ce(r)}`],endIcon:["icon","endIcon",`iconSize${ce(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=we(u,CD,c);return{...c,...d}},R1=[{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}}}],SD=ve(vr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ze(({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"},[`&.${yo.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]},[`&.${yo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${yo.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)",[`&.${yo.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(qt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].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"},[`&.${yo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yo.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}),[`&.${yo.loading}`]:{color:"transparent"}}}]}})),TD=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ce(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}},...R1]})),PD=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ce(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}},...R1]})),ED=ve("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}}]})),ih=ve("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Wn=P.forwardRef(function(t,n){const o=P.useContext(k1),r=P.useContext(D1),i=hs(o,t),a=$e({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:y=!1,id:v,loading:S=null,loadingIndicator:w,loadingPosition:C="center",size:T="medium",startIcon:E,type:M,variant:I="text",...D}=a,V=so(v),j=w??b.jsx(Wu,{"aria-labelledby":V,color:"inherit",size:16}),x={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:S,loadingIndicator:j,loadingPosition:C,size:T,type:M,variant:I},L=wD(x),A=(E||S&&C==="start")&&b.jsx(TD,{className:L.startIcon,ownerState:x,children:E||b.jsx(ih,{className:L.loadingIconPlaceholder,ownerState:x})}),N=(m||S&&C==="end")&&b.jsx(PD,{className:L.endIcon,ownerState:x,children:m||b.jsx(ih,{className:L.loadingIconPlaceholder,ownerState:x})}),k=r||"",_=typeof S=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:S&&b.jsx(ED,{className:L.loadingIndicator,ownerState:x,children:j})}):null;return b.jsxs(SD,{ownerState:x,className:be(o.className,L.root,d,k),component:u,disabled:f||S,focusRipple:!h,focusVisibleClassName:be(L.focusVisible,g),ref:n,type:M,id:S?V:v,...D,classes:L,children:[A,C!=="end"&&_,l,C==="end"&&_,N]})});process.env.NODE_ENV!=="production"&&(Wn.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 MD(e){return Te("MuiDialogActions",e)}Se("MuiDialogActions",["root","spacing"]);const OD=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},MD,t)},kD=ve("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}}}]}),I1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=OD(l);return b.jsx(kD,{className:be(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(I1.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 DD=["actions"],RD=ae.styled(I1,{name:"MuiPickersLayout",slot:"ActionBar"})({});function A1(e){const{actions:t}=e,n=Me(e,DD),o=lo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Er();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Wn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Wn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Wn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Wn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Wn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Wn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Wn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(RD,W({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(A1.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const N1=P.memo(A1);process.env.NODE_ENV!=="production"&&(N1.displayName="PickersActionBar");const cr=P.createContext({});process.env.NODE_ENV!=="production"&&(cr.displayName="ListContext");function ID(e){return Te("MuiList",e)}Se("MuiList",["root","padding","dense","subheader"]);const AD=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},ID,t)},ND=ve("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}}]}),Uu=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,f=P.useMemo(()=>({dense:l}),[l]),p={...o,component:a,dense:l,disablePadding:c},h=AD(p);return b.jsx(cr.Provider,{value:f,children:b.jsxs(ND,{as:a,className:be(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Uu.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 rt(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...p}=i,h=d[e]||o,m=tn(f[e],r),{props:{component:g,...y},internalRef:v}=e1({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),S=Le(v,m==null?void 0:m.ref,t.ref),w=e==="root"?g||u:g,C=Qy(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...w&&!l&&{as:w},...w&&l&&{component:w},ref:S},r);return[h,C]}function _D(e){return Te("MuiListItem",e)}Se("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const jD=Se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function LD(e){return Te("MuiListItemSecondaryAction",e)}Se("MuiListItemSecondaryAction",["root","disableGutters"]);const VD=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},LD,n)},$D=ve("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}}]}),Yu=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(cr),l={...o,disableGutters:a.disableGutters},c=VD(l);return b.jsx($D,{className:be(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Yu.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])});Yu.muiName="ListItemSecondaryAction";const FD=(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]},BD=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return we({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},_D,n)},zD=ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:FD})(Ze(({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:{[`& > .${jD.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}}]}))),HD=ve("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),_1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:v,slotProps:S={},slots:w={},...C}=o,T=P.useContext(cr),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),I=P.Children.toArray(i),D=I.length&&os(I[I.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:D},j=BD(V),x=Le(M,n),L={slots:w,slotProps:S},[A,N]=rt("secondaryAction",{elementType:Yu,externalForwardedProps:L,ownerState:V,className:j.secondaryAction}),k=w.root||c.Root||zD,_=S.root||u.root||{},$={className:be(j.root,_.className,a),...C};let F=l||"li";return D?(F=!$.component&&!l?"div":F,d==="li"&&(F==="li"?F="div":$.component==="li"&&($.component="div")),b.jsx(cr.Provider,{value:E,children:b.jsxs(HD,{as:d,className:be(j.container,f),ref:x,ownerState:V,...p,children:[b.jsx(k,{..._,...!hr(k)&&{as:F,ownerState:{...V,..._.ownerState}},...$,children:I}),I.pop()]})})):b.jsx(cr.Provider,{value:E,children:b.jsxs(k,{..._,as:F,ref:x,...!hr(k)&&{ownerState:{...V,..._.ownerState}},...$,children:[I,v&&b.jsx(A,{...N,children:v})]})})});process.env.NODE_ENV!=="production"&&(_1.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Fn(s.node,e=>{const t=P.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(os(r,["ListItemSecondaryAction"])){n=o;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:Sa,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object,secondaryAction:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,secondaryAction:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const WD=yt(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 UD(e){return Te("MuiChip",e)}const Re=Se("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"]),YD=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ce(o)}`,`color${ce(r)}`,l&&"clickable",l&&`clickableColor${ce(r)}`,a&&"deletable",a&&`deletableColor${ce(r)}`,`${c}${ce(r)}`],label:["label",`label${ce(o)}`],avatar:["avatar",`avatar${ce(o)}`,`avatarColor${ce(r)}`],icon:["icon",`icon${ce(o)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(o)}`,`deleteIconColor${ce(r)}`,`deleteIcon${ce(c)}Color${ce(r)}`]};return we(u,UD,t)},qD=ve("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Re.avatar}`]:t.avatar},{[`& .${Re.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${Re.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${Re.icon}`]:t.icon},{[`& .${Re.icon}`]:t[`icon${ce(l)}`]},{[`& .${Re.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${Re.deleteIcon}`]:t.deleteIcon},{[`& .${Re.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${Re.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${Re.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(o)}`]},t.root,t[`size${ce(l)}`],t[`color${ce(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${ce(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${ce(o)}`],t[c],t[`${c}${ce(o)}`]]}})(Ze(({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",[`&.${Re.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Re.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Re.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Re.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Re.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Re.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Re.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,[`& .${Re.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Re.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(qt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Re.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:{[`& .${Re.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Re.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Re.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(qt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Re.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}`)},[`&.${Re.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(qt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Re.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]}`,[`&.${Re.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Re.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Re.avatar}`]:{marginLeft:4},[`& .${Re.avatarSmall}`]:{marginLeft:2},[`& .${Re.icon}`]:{marginLeft:4},[`& .${Re.iconSmall}`]:{marginLeft:2},[`& .${Re.deleteIcon}`]:{marginRight:5},[`& .${Re.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(qt()).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)}`,[`&.${Re.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Re.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Re.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),GD=ve("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${ce(o)}`]]}})({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 ah(e){return e.key==="Backspace"||e.key==="Delete"}const j1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:y,size:v="medium",variant:S="filled",tabIndex:w,skipFocusWhenDisabled:C=!1,slots:T={},slotProps:E={},...M}=o,I=P.useRef(null),D=Le(I,n),V=Q=>{Q.stopPropagation(),m&&m(Q)},j=Q=>{Q.currentTarget===Q.target&&ah(Q)&&Q.preventDefault(),g&&g(Q)},x=Q=>{Q.currentTarget===Q.target&&m&&ah(Q)&&m(Q),y&&y(Q)},L=a!==!1&&h?!0:a,A=L||m?vr:c||"div",N={...o,component:A,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:S},k=YD(N),_=A===vr?{component:c||"div",focusVisibleClassName:k.focusVisible,...m&&{disableRipple:!0}}:{};let $=null;m&&($=u&&P.isValidElement(u)?P.cloneElement(u,{className:be(u.props.className,k.deleteIcon),onClick:V}):b.jsx(WD,{className:k.deleteIcon,onClick:V}));let F=null;r&&P.isValidElement(r)&&(F=P.cloneElement(r,{className:be(k.avatar,r.props.className)}));let B=null;f&&P.isValidElement(f)&&(B=P.cloneElement(f,{className:be(k.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&F&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const R={slots:T,slotProps:E},[U,Y]=rt("root",{elementType:qD,externalForwardedProps:{...R,...M},ownerState:N,shouldForwardComponentProp:!0,ref:D,className:be(k.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:C&&d?-1:w,..._},getSlotProps:Q=>({...Q,onClick:J=>{var ie;(ie=Q.onClick)==null||ie.call(Q,J),h==null||h(J)},onKeyDown:J=>{var ie;(ie=Q.onKeyDown)==null||ie.call(Q,J),j(J)},onKeyUp:J=>{var ie;(ie=Q.onKeyUp)==null||ie.call(Q,J),x(J)}})}),[K,re]=rt("label",{elementType:GD,externalForwardedProps:R,ownerState:N,className:k.label});return b.jsxs(U,{as:A,...Y,children:[F||B,b.jsx(K,{...re,children:p}),$]})});process.env.NODE_ENV!=="production"&&(j1.propTypes={avatar:s.element,children:iC,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 Es=36,Ta=2,Pa=320,ZD=280,qu=336,KD=["items","changeImportance"],XD=["getValue"],QD=ae.styled(Uu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function L1(e){const{items:t,changeImportance:n="accept"}=e,o=Me(e,KD),{setValue:r}=$M(),i=TM();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Me(l,XD);const d=c({isValid:i});return W({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(QD,W({dense:!0,sx:[{maxHeight:qu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(_1,{children:b.jsx(j1,W({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(L1.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const JD=["ownerState"];function eR(e){return e.view!==null}const tR=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},E1,e)},nR=e=>{const{ownerState:t,defaultActionBarActions:n}=Dt(),{view:o}=Er(),r=fn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>W({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=tR(c,u),f=(a==null?void 0:a.actionBar)??N1,p=je({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Me(p,JD),m=b.jsx(f,W({},h)),g=a==null?void 0:a.toolbar,y=je({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=eR(y)&&g?b.jsx(g,W({},y)):null,S=i,w=a==null?void 0:a.tabs,C=o&&w?b.jsx(w,W({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??L1,E=je({elementType:T,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),M=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,I=o&&T?b.jsx(T,W({},E)):null;return{toolbar:v,content:S,tabs:C,actionBar:m,shortcuts:I,ownerState:W({},u,{hasShortcuts:M})}},oR=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},E1,e)},rR=ae.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${go.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${go.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${go.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${go.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${go.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${go.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${go.shortcuts}`]:{gridColumn:4}}}]}),sR=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ea=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=nR(o),{orientation:d,variant:f}=Er(),{sx:p,className:h,classes:m}=o,g=oR(m,u);return b.jsxs(rR,{ref:n,sx:p,className:be(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(sR,{className:g.contentWrapper,ownerState:u,children:f==="desktop"?b.jsxs(P.Fragment,{children:[i,a]}):b.jsxs(P.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Ea.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Ea.propTypes={children:s.node,classes:s.object,className:s.string,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function V1(e){const{steps:t}=e;return Zk({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:r,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&r(l)}})}const iR=["props","steps"],aR=["ownerState"],lR=e=>{var E;let{props:t,steps:n}=e,o=Me(e,iR);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=V1({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=P1(W({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,y=je({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:W({},m&&{id:h}),ownerState:p}),v=Me(y,aR),S=r.layout??Ea;let w=h;m&&(a?w=`${h}-label`:w=void 0);const C=W({},i,{toolbar:W({},i==null?void 0:i.toolbar,{titleId:h}),popper:W({"aria-labelledby":w},i==null?void 0:i.popper)}),T=()=>b.jsxs(Hy,W({},d,{children:[b.jsx(g,W({},v,{slots:W({},r,v.slots),slotProps:W({},C,v.slotProps),inputRef:l})),b.jsx(Yk,{slots:r,slotProps:C,children:b.jsx(S,W({},C==null?void 0:C.layout,{slots:r,slotProps:C,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},qo=e=>e.saveQuery!=null,$1=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Ke(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),y=n.sections[p];if(n.characterQuery!=null&&(!m||m(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const S=`${n.characterQuery.value}${g}`,w=h(S,y);if(!qo(w))return r({sectionIndex:p,value:S,sectionType:y.type}),w}const v=h(g,y);return qo(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),qo(v)?null:v)},u=f=>{const p=(g,y,v)=>{const S=y.filter(w=>w.toLowerCase().startsWith(v));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},h=(g,y,v,S)=>{const w=C=>$y(l,o,y.type,C);if(y.contentType==="letter")return p(y.format,w(y.format),g);if(v&&S!=null&&wu(l,v).contentType==="letter"){const C=w(v),T=p(v,C,g);return qo(T)?{saveQuery:!1}:W({},T,{sectionValue:S(T.sectionValue,C)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=S=>_p(l,S,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(S,w)=>w.indexOf(S).toString();return h(g,y,l.formats.weekday,v)}case"meridiem":return h(g,y);default:return{saveQuery:!1}}})},d=f=>{const p=({queryValue:m,skipIfBelowMinimum:g,section:y})=>{const v=Lo(m,e),S=Number(v),w=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(S>w.maximum)return{saveQuery:!1};if(g&&S<w.minimum)return{saveQuery:!0};const C=S*10>w.maximum||v.length===w.maximum.toString().length;return{sectionValue:Fy(l,S,w,e,y),shouldGoToNextSection:C}};return c(f,(m,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return p({queryValue:m,skipIfBelowMinimum:!1,section:g});if(g.type==="month"){By(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(qo(y))return y;const v=_p(l,y.sectionValue,"MM",g.format);return W({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(qo(y))return y;const v=ya(l,g.format)[Number(y.sectionValue)-1];return W({},y,{sectionValue:v})}return{saveQuery:!1}},m=>Np(m,e))};return me(f=>{const p=n.sections[f.sectionIndex],m=Np(f.keyPressed,e)?d(W({},f,{keyPressed:Su(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},cR=5e3,F1=e=>{var ue;const t=Ke(),n=lo(),o=fn(),{manager:{validator:r,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:h,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:v=!1,timezone:S,enableAccessibleFieldDOMStructure:w=!0},forwardedProps:{error:C}}=e,{value:T,handleValueChange:E,timezone:M}=Gs({name:"a field component",timezone:S,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),I=P.useRef(T);P.useEffect(()=>{I.current=T},[T]);const{hasValidationError:D}=Ky({props:c,validator:r,timezone:M,value:T,onError:c.onError}),V=P.useMemo(()=>rM(t),[t]),j=P.useMemo(()=>cM(t,V,M),[t,V,M]),x=P.useCallback(se=>l.getSectionsFromValue(se,de=>Bp({adapter:t,localeText:n,localizedDigits:V,format:h,date:de,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:w,isRtl:o})),[l,h,n,V,o,v,t,m,w]),[L,A]=P.useState(()=>{const se=x(T);Lp(se,i);const de={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=tM(se),he=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return W({},de,{referenceValue:he})}),[N,k]=Jn({controlled:g,default:null,name:"useField",state:"selectedSections"}),_=se=>{k(se),y==null||y(se)},$=P.useMemo(()=>gc(N,L.sections),[N,L.sections]),F=$==="all"?0:$,B=P.useMemo(()=>fM(L.sections,o&&!w),[L.sections,o,w]),R=P.useMemo(()=>L.sections.every(se=>se.value===""),[L.sections]),U=P.useMemo(()=>{if(F!=null)return!1;const se=L.sections.filter(de=>de.value!=="");return se.length>0&&L.sections.length-se.length>0},[L.sections,F]),Y=P.useMemo(()=>C!==void 0?C:D||U,[D,U,C]),K=se=>{const de={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,de)},re=(se,de)=>{const le=[...L.sections];return le[se]=W({},le[se],{value:de,modified:!0}),le},Q=P.useRef(null),J=Xn(),ie=se=>{F!=null&&(Q.current={sectionIndex:F,value:se},J.start(0,()=>{Q.current=null}))},ee=()=>{a.areValuesEqual(t,T,a.emptyValue)?A(se=>W({},se,{sections:se.sections.map(de=>W({},de,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(A(se=>W({},se,{characterQuery:null})),K(a.emptyValue))},H=()=>{if(F==null)return;const se=L.sections[F];se.value!==""&&(ie(""),l.getDateFromSection(T,se)===null?A(de=>W({},de,{sections:re(F,""),tempValueStrAndroid:null,characterQuery:null})):(A(de=>W({},de,{characterQuery:null})),K(l.updateDateInValue(T,se,null))))},G=se=>{const de=(he,pe)=>{const De=t.parse(he,h);if(!t.isValid(De))return null;const ke=Bp({adapter:t,localeText:n,localizedDigits:V,format:h,date:De,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:w,isRtl:o});return $p(t,De,ke,pe,!1)},le=l.parseValueStr(se,L.referenceValue,de);K(le)},z=Xn(),Z=({section:se,newSectionValue:de,shouldGoToNextSection:le})=>{J.clear(),z.clear();const he=l.getDateFromSection(T,se);le&&F<L.sections.length-1&&_(F+1);const pe=re(F,de),De=l.getDateSectionsFromValue(pe,se),ke=iM(t,De,V);if(t.isValid(ke)){const Xe=$p(t,ke,De,l.getDateFromSection(L.referenceValue,se),!0);return he==null&&z.start(0,()=>{I.current===T&&A(tt=>W({},tt,{sections:l.clearDateSections(L.sections,se),tempValueStrAndroid:null}))}),K(l.updateDateInValue(T,se,Xe))}return De.every(Xe=>Xe.value!=="")&&(he==null||t.isValid(he))?(ie(de),K(l.updateDateInValue(T,se,ke))):(he!=null&&(ie(de),K(l.updateDateInValue(T,se,ke))),A(Xe=>W({},Xe,{sections:pe,tempValueStrAndroid:null})))},X=se=>A(de=>W({},de,{tempValueStrAndroid:se})),te=me(se=>{A(de=>W({},de,{characterQuery:se}))});if(T!==L.lastExternalValue){const se=Q.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[Q.current.sectionIndex]));let de;se?de=re(Q.current.sectionIndex,Q.current.value):de=x(T),A(le=>W({},le,{lastExternalValue:T,sections:de,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==L.lastSectionsDependencies.isRtl||h!==L.lastSectionsDependencies.format||t.locale!==L.lastSectionsDependencies.locale){const se=x(T);Lp(se,i),A(de=>W({},de,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}L.characterQuery!=null&&!Y&&F==null&&te(null),L.characterQuery!=null&&((ue=L.sections[L.characterQuery.sectionIndex])==null?void 0:ue.type)!==L.characterQuery.sectionType&&te(null),P.useEffect(()=>{Q.current!=null&&(Q.current=null)});const oe=Xn();return P.useEffect(()=>(L.characterQuery!=null&&oe.start(cR,()=>te(null)),()=>{}),[L.characterQuery,te,oe]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&F!=null&&H()},[L.sections]),{activeSectionIndex:F,areAllSectionsEmpty:R,error:Y,localizedDigits:V,parsedSelectedSections:$,sectionOrder:B,sectionsValueBoundaries:j,state:L,timezone:M,value:T,clearValue:ee,clearActiveSection:H,setCharacterQuery:te,setSelectedSections:_,setTempAndroidValueStr:X,updateSectionValue:Z,updateValueFromValueStr:G,getSectionsFromValue:x}};function B1(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Ru(),i=zy(),a=Le(n.unstableFieldRef,o?null:i==null?void 0:i.fieldRef),l=r==null?void 0:r.setValue,c=P.useCallback((d,f)=>l==null?void 0:l(d,{validationError:f.validationError,shouldClose:!1}),[l]),u=P.useMemo(()=>i!=null&&r!=null?W({value:r.value,onChange:c,timezone:r.timezone,disabled:r.disabled,readOnly:r.readOnly,autoFocus:r.autoFocus&&!r.open,focused:r.open?!0:void 0,format:r.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[r,i,n,c,a]);return t(u)}function Gu(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Mt(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(jt(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():r.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function z1(e){const t=Ke(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:r,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:f,timezone:p,sectionOrder:h,clearValue:m,clearActiveSection:g,setSelectedSections:y,updateSectionValue:v}}=e;return me(S=>{if(!r)switch(!0){case((S.ctrlKey||S.metaKey)&&String.fromCharCode(S.keyCode)==="A"&&!S.shiftKey&&!S.altKey):{S.preventDefault(),y("all");break}case S.key==="ArrowRight":{if(S.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const w=h.neighbors[u].rightIndex;w!==null&&y(w)}break}case S.key==="ArrowLeft":{if(S.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const w=h.neighbors[u].leftIndex;w!==null&&y(w)}break}case S.key==="Delete":{if(S.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(S.key):{if(S.preventDefault(),i||c==null)break;u==="all"&&y(c);const w=a.sections[c],C=dR(t,p,w,S.key,d,f,n.getDateFromSection(l,w),{minutesStep:o});v({section:w,newSectionValue:C,shouldGoToNextSection:!1});break}}})}function uR(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function dR(e,t,n,o,r,i,a,l){const c=uR(o),u=o==="Home",d=o==="End",f=n.value===""||u||d,p=()=>{const m=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=S=>Fy(e,S,m,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let v;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?v=m.minimum:v=m.maximum}else v=parseInt(Lo(n.value,i),10)+c*y;return v%y!==0&&((c<0||u)&&(v+=y-(y+v)%y),(c>0||d)&&(v-=v%y)),v>m.maximum?g(m.minimum+(v-m.maximum-1)%(m.maximum-m.minimum+1)):v<m.minimum?g(m.maximum-(m.minimum-v-1)%(m.maximum-m.minimum+1)):g(v)},h=()=>{const m=$y(e,t,n.type,n.format);if(m.length===0)return n.value;if(f)return c>0||u?m[0]:m[m.length-1];const v=((m.indexOf(n.value)+c)%m.length+m.length)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()}function fR(e){const{manager:t,focused:n,setFocused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:f,setCharacterQuery:p,setSelectedSections:h,updateValueFromValueStr:m},internalPropsWithDefaults:{disabled:g=!1,readOnly:y=!1}}=e,v=z1({manager:t,internalPropsWithDefaults:l,stateResponse:i}),S=Xn(),w=me(I=>{g||!r.isReady()||(o(!0),c==="all"?S.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){h(u.startIndex);return}let V=0,j=0;for(;j<D&&V<d.sections.length;){const x=d.sections[V];V+=1,j+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(I.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),C=me(I=>{if(!r.isReady()||c!=="all")return;const V=I.target.textContent??"";r.getRoot().innerHTML=d.sections.map(j=>`${j.startSeparator}${j.value||j.placeholder}${j.endSeparator}`).join(""),Gu({focused:n,domGetters:r,stateResponse:i}),V.length===0||V.charCodeAt(0)===10?(f(),h("all")):V.length>1?m(V):(c==="all"&&h(0),a({keyPressed:V,sectionIndex:0}))}),T=me(I=>{if(y||c!=="all"){I.preventDefault();return}const D=I.clipboardData.getData("text");I.preventDefault(),p(null),m(D)}),E=me(()=>{if(n||g||!r.isReady())return;const I=jt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(I)!=null||h(u.startIndex)}),M=me(()=>{setTimeout(()=>{if(!r.isReady())return;const I=jt(r.getRoot());!r.getRoot().contains(I)&&(o(!1),h(null))})});return{onKeyDown:v,onBlur:M,onFocus:E,onClick:w,onPaste:T,onInput:C,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function pR(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=me(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function hR(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=P.useCallback(r=>i=>{n||i.isDefaultPrevented()||t(r)},[n,t]);return P.useCallback(r=>({"data-sectionindex":r,onClick:o(r)}),[o])}function mR(e){const t=Ke(),n=lo(),{focused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:f,clearActiveSection:p,setCharacterQuery:h,setSelectedSections:m,updateSectionValue:g,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:v=!1,readOnly:S=!1}}=e,w=c==="all",C=!w&&!v&&!S,T=me(j=>{if(!r.isReady())return;const x=d.sections[j];r.getSectionContent(j).innerHTML=x.value||x.placeholder,Gu({focused:o,domGetters:r,stateResponse:i})}),E=me(j=>{if(!r.isReady())return;const x=j.target,L=x.textContent??"",A=r.getSectionIndexFromDOMElement(x),N=d.sections[A];if(S){T(A);return}if(L.length===0){if(N.value===""){T(A);return}const k=j.nativeEvent.inputType;if(k==="insertParagraph"||k==="insertLineBreak"){T(A);return}T(A),p();return}a({keyPressed:L,sectionIndex:A}),T(A)}),M=me(j=>{j.preventDefault()}),I=me(j=>{if(j.preventDefault(),S||v||typeof c!="number")return;const x=d.sections[c],L=j.clipboardData.getData("text"),A=/^[a-zA-Z]+$/.test(L),N=/^[0-9]+$/.test(L),k=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);x.contentType==="letter"&&A||x.contentType==="digit"&&N||x.contentType==="digit-with-letter"&&k?(h(null),g({section:x,newSectionValue:L,shouldGoToNextSection:!0})):!A&&!N&&(h(null),y(L))}),D=me(j=>{j.preventDefault(),j.dataTransfer.dropEffect="none"}),V=P.useCallback(j=>()=>{v||m(j)},[v,m]);return P.useCallback((j,x)=>{const L=u[j.type]({currentDate:l.getDateFromSection(f,j),contentType:j.contentType,format:j.format});return{onInput:E,onPaste:I,onMouseUp:M,onDragOver:D,onFocus:V(x),"aria-readonly":S,"aria-valuenow":yR(j,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":j.value?gR(j,t):n.empty,"aria-label":n[j.type],"aria-disabled":v,tabIndex:!C||w||x>0?-1:0,contentEditable:!w&&!v&&!S,role:"spinbutton","data-range-position":j.dateName||void 0,spellCheck:C?!1:void 0,autoCapitalize:C?"none":void 0,autoCorrect:C?"off":void 0,children:j.value||j.placeholder,inputMode:j.contentType==="letter"?"text":"numeric"}},[u,w,v,S,C,n,t,E,I,M,D,V,l,f])}function gR(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const o=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(o)?t.format(o,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function yR(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const bR=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=Zy(t,r),c=B1({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:p,onInput:h,onPaste:m,onKeyDown:g,onClear:y,clearable:v}=l,{disabled:S=!1,readOnly:w=!1,autoFocus:C=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),I=Le(u,M),D=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:oe=>M.current.getSectionContainer(oe),getSectionContent:oe=>M.current.getSectionContent(oe),getSectionIndexFromDOMElement:oe=>M.current.getSectionIndexFromDOMElement(oe)}),[M]),V=F1({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:j,error:x,parsedSelectedSections:L,sectionOrder:A,state:N,value:k,clearValue:_,setSelectedSections:$}=V,F=$1({stateResponse:V}),B=i(k),[R,U]=P.useState(!1);function Y(oe=0){if(S||!M.current||lh(M)!=null)return;const ue=gc(oe,N.sections);U(!0),M.current.getSectionContent(ue).focus()}const K=fR({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:F,focused:R,setFocused:U,domGetters:D}),re=pR({manager:n,stateResponse:V}),Q=hR({stateResponse:V,internalPropsWithDefaults:c}),J=mR({manager:n,stateResponse:V,applyCharacterEditing:F,internalPropsWithDefaults:c,domGetters:D,focused:R}),ie=me(oe=>{g==null||g(oe),K.onKeyDown(oe)}),ee=me(oe=>{d==null||d(oe),K.onBlur(oe)}),H=me(oe=>{p==null||p(oe),K.onFocus(oe)}),G=me(oe=>{oe.isDefaultPrevented()||(f==null||f(oe),K.onClick(oe))}),z=me(oe=>{m==null||m(oe),K.onPaste(oe)}),Z=me(oe=>{h==null||h(oe),K.onInput(oe)}),X=me((oe,...ue)=>{oe.preventDefault(),y==null||y(oe,...ue),_(),ch(M)?$(A.startIndex):Y(0)}),te=P.useMemo(()=>N.sections.map((oe,ue)=>{const se=J(oe,ue);return{container:Q(ue),content:J(oe,ue),before:{children:oe.startSeparator},after:{children:oe.endSeparator,"data-range-position":oe.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[N.sections,Q,J]);return P.useEffect(()=>{if(M.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
228
+ `));C&&!S&&M.current&&M.current.getSectionContent(A.startIndex).focus()},[]),Pt(()=>{if(!(!R||!M.current)){if(L==="all")M.current.getRoot().focus();else if(typeof L=="number"){const oe=M.current.getSectionContent(L);oe&&oe.focus()}}},[L,R]),Pt(()=>{Gu({focused:R,domGetters:D,stateResponse:V})}),P.useImperativeHandle(E,()=>({getSections:()=>N.sections,getActiveSectionIndex:()=>lh(M),setSelectedSections:oe=>{if(S||!M.current)return;const ue=gc(oe,N.sections);U((ue==="all"?0:ue)!==null),$(oe)},focusField:Y,isFieldFocused:()=>ch(M)})),W({},l,K,{onBlur:ee,onClick:G,onFocus:H,onInput:Z,onPaste:z,onKeyDown:ie,onClear:X},re,{error:x,clearable:!!(v&&!j&&!w&&!S),focused:T??R,sectionListRef:I,enableAccessibleFieldDOMStructure:!0,elements:te,areAllSectionsEmpty:j,disabled:S,readOnly:w,autoFocus:C,openPickerAriaLabel:B})};function lh(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function ch(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const rr=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vR=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],c=Pu(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=rr(u).length,f=u.length,p=rr(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(W({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},xR=e=>{const t=fn(),n=Xn(),o=Xn(),{props:r,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:p}=Zy(r,l),h=B1({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:y,onBlur:v,onKeyDown:S,onClear:w,clearable:C,inputRef:T,placeholder:E}=p,{readOnly:M=!1,disabled:I=!1,autoFocus:D=!1,focused:V,unstableFieldRef:j}=h,x=P.useRef(null),L=Le(T,x),A=F1({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:N,areAllSectionsEmpty:k,error:_,localizedDigits:$,parsedSelectedSections:F,sectionOrder:B,state:R,value:U,clearValue:Y,clearActiveSection:K,setCharacterQuery:re,setSelectedSections:Q,setTempAndroidValueStr:J,updateSectionValue:ie,updateValueFromValueStr:ee,getSectionsFromValue:H}=A,G=$1({stateResponse:A}),z=d(U),Z=P.useMemo(()=>vR(R.sections,$,t),[R.sections,$,t]);function X(){const Pe=x.current.selectionStart??0;let Ee;Pe<=Z[0].startInInput||Pe>=Z[Z.length-1].endInInput?Ee=1:Ee=Z.findIndex(_e=>_e.startInInput-_e.startSeparator.length>Pe);const ge=Ee===-1?Z.length-1:Ee-1;Q(ge)}function te(Pe=0){var Ee;jt(x.current)!==x.current&&((Ee=x.current)==null||Ee.focus(),Q(Pe))}const oe=me(Pe=>{m==null||m(Pe);const Ee=x.current;n.start(0,()=>{!Ee||Ee!==x.current||N==null&&(Ee.value.length&&Number(Ee.selectionEnd)-Number(Ee.selectionStart)===Ee.value.length?Q("all"):X())})}),ue=me((Pe,...Ee)=>{Pe.isDefaultPrevented()||(g==null||g(Pe,...Ee),X())}),se=me(Pe=>{if(y==null||y(Pe),Pe.preventDefault(),M||I)return;const Ee=Pe.clipboardData.getData("text");if(typeof F=="number"){const ge=R.sections[F],_e=/^[a-zA-Z]+$/.test(Ee),Ve=/^[0-9]+$/.test(Ee),st=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ee);if(ge.contentType==="letter"&&_e||ge.contentType==="digit"&&Ve||ge.contentType==="digit-with-letter"&&st){re(null),ie({section:ge,newSectionValue:Ee,shouldGoToNextSection:!0});return}if(_e||Ve)return}re(null),ee(Ee)}),de=me(Pe=>{v==null||v(Pe),Q(null)}),le=me(Pe=>{if(M)return;const Ee=Pe.target.value;if(Ee===""){Y();return}const ge=Pe.nativeEvent.data,_e=ge&&ge.length>1,Ve=_e?ge:Ee,st=rr(Ve);if(F==="all"&&Q(N),N==null||_e){ee(_e?ge:st);return}let Qe;if(F==="all"&&st.length===1)Qe=st;else{const $t=rr(u.getV6InputValueFromSections(Z,$,t));let Oe=-1,ut=-1;for(let ye=0;ye<$t.length;ye+=1)Oe===-1&&$t[ye]!==st[ye]&&(Oe=ye),ut===-1&&$t[$t.length-ye-1]!==st[st.length-ye-1]&&(ut=ye);const bt=Z[N];if(Oe<bt.start||$t.length-ut-1>bt.end)return;const hn=st.length-$t.length+bt.end-rr(bt.endSeparator||"").length;Qe=st.slice(bt.start+rr(bt.startSeparator||"").length,hn)}if(Qe.length===0){dM()&&J(Ve),K();return}G({keyPressed:Qe,sectionIndex:N})}),he=me((Pe,...Ee)=>{Pe.preventDefault(),w==null||w(Pe,...Ee),Y(),uh(x)?Q(B.startIndex):te(0)}),pe=z1({manager:i,internalPropsWithDefaults:h,stateResponse:A}),De=me(Pe=>{S==null||S(Pe),pe(Pe)}),ke=P.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections(H(c.emptyValue),$,t),[E,u,H,c.emptyValue,$,t]),Xe=P.useMemo(()=>R.tempValueStrAndroid??u.getV6InputValueFromSections(R.sections,$,t),[R.sections,u,R.tempValueStrAndroid,$,t]);P.useEffect(()=>{x.current&&x.current===jt(x.current)&&Q("all")},[]),Pt(()=>{function Pe(){if(!x.current)return;if(F==null){x.current.scrollLeft&&(x.current.scrollLeft=0);return}if(x.current!==jt(x.current))return;const Ee=x.current.scrollTop;if(F==="all")x.current.select();else{const ge=Z[F],_e=ge.type==="empty"?ge.startInInput-ge.startSeparator.length:ge.startInInput,Ve=ge.type==="empty"?ge.endInInput+ge.endSeparator.length:ge.endInInput;(_e!==x.current.selectionStart||Ve!==x.current.selectionEnd)&&x.current===jt(x.current)&&x.current.setSelectionRange(_e,Ve),o.start(0,()=>{x.current&&x.current===jt(x.current)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==_e||x.current.selectionEnd!==Ve)&&Pe()})}x.current.scrollTop=Ee}Pe()});const tt=P.useMemo(()=>N==null||R.sections[N].contentType==="letter"?"text":"numeric",[N,R.sections]),Et=!(x.current&&x.current===jt(x.current))&&k;return P.useImperativeHandle(j,()=>({getSections:()=>R.sections,getActiveSectionIndex:()=>{const Pe=x.current.selectionStart??0,Ee=x.current.selectionEnd??0;if(Pe===0&&Ee===0)return null;const ge=Pe<=Z[0].startInInput?1:Z.findIndex(_e=>_e.startInInput-_e.startSeparator.length>Pe);return ge===-1?Z.length-1:ge-1},setSelectedSections:Pe=>Q(Pe),focusField:te,isFieldFocused:()=>uh(x)})),W({},p,{error:_,"aria-invalid":_,clearable:!!(C&&!k&&!M&&!I),onBlur:de,onClick:ue,onFocus:oe,onPaste:se,onKeyDown:De,onClear:he,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:ke,inputMode:tt,autoComplete:"off",value:Et?"":Xe,onChange:le,focused:V,disabled:I,readOnly:M,autoFocus:D,openPickerAriaLabel:z})};function uh(e){return e.current===jt(e.current)}const CR=e=>{const t=zy();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?bR:xR)(e)},wR=e=>{const t=YM(e);return CR({manager:t,props:e})};function di(e){return parseInt(e,10)||0}const SR={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function TR(e){for(const t in e)return!1;return!0}function dh(e){return TR(e)||e.outerHeightStyle===0&&!e.overflowing}const H1=P.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...c}=t,{current:u}=P.useRef(l!=null),d=P.useRef(null),f=Le(n,d),p=P.useRef(null),h=P.useRef(null),m=P.useCallback(()=>{const w=d.current,C=h.current;if(!w||!C)return;const E=_n(w).getComputedStyle(w);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=E.width,C.value=w.value||t.placeholder||"x",C.value.slice(-1)===`
229
+ `&&(C.value+=" ");const M=E.boxSizing,I=di(E.paddingBottom)+di(E.paddingTop),D=di(E.borderBottomWidth)+di(E.borderTopWidth),V=C.scrollHeight;C.value="x";const j=C.scrollHeight;let x=V;i&&(x=Math.max(Number(i)*j,x)),r&&(x=Math.min(Number(r)*j,x)),x=Math.max(x,j);const L=x+(M==="border-box"?I+D:0),A=Math.abs(x-V)<=1;return{outerHeightStyle:L,overflowing:A}},[r,i,t.placeholder]),g=me(()=>{const w=d.current,C=m();if(!w||!C||dh(C))return!1;const T=C.outerHeightStyle;return p.current!=null&&p.current!==T}),y=P.useCallback(()=>{const w=d.current,C=m();if(!w||!C||dh(C))return;const T=C.outerHeightStyle;p.current!==T&&(p.current=T,w.style.height=`${T}px`),w.style.overflow=C.overflowing?"hidden":""},[m]),v=P.useRef(-1);Pt(()=>{const w=gm(y),C=d==null?void 0:d.current;if(!C)return;const T=_n(C);T.addEventListener("resize",w);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{g()&&(E.unobserve(C),cancelAnimationFrame(v.current),y(),v.current=requestAnimationFrame(()=>{E.observe(C)}))}),E.observe(C)),()=>{w.clear(),cancelAnimationFrame(v.current),T.removeEventListener("resize",w),E&&E.disconnect()}},[m,y,g]),Pt(()=>{y()});const S=w=>{u||y();const C=w.target,T=C.value.length,E=C.value.endsWith(`
230
+ `),M=C.selectionStart===T;E&&M&&C.setSelectionRange(T,T),o&&o(w)};return b.jsxs(P.Fragment,{children:[b.jsx("textarea",{value:l,onChange:S,ref:f,rows:i,style:a,...c}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...SR.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(H1.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function Mr({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Zs=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Zs.displayName="FormControlContext");function Bn(){return P.useContext(Zs)}function fh(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zi(e,t=!1){return e&&(fh(e.value)&&e.value!==""||t&&fh(e.defaultValue)&&e.defaultValue!=="")}function PR(e){return e.startAdornment}function ER(e){return Te("MuiInputBase",e)}const xr=Se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ph;const Ma=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Oa=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},MR=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${ce(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",p&&p!=="medium"&&`size${ce(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return we(g,ER,t)},ka=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ma})(Ze(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${xr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Da=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Oa})(Ze(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${xr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${xr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),hh=tC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ra=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,error:g,fullWidth:y=!1,id:v,inputComponent:S="input",inputProps:w={},inputRef:C,margin:T,maxRows:E,minRows:M,multiline:I=!1,name:D,onBlur:V,onChange:j,onClick:x,onFocus:L,onKeyDown:A,onKeyUp:N,placeholder:k,readOnly:_,renderSuffix:$,rows:F,size:B,slotProps:R={},slots:U={},startAdornment:Y,type:K="text",value:re,...Q}=o,J=w.value!=null?w.value:re,{current:ie}=P.useRef(J!=null),ee=P.useRef(),H=P.useCallback(ge=>{process.env.NODE_ENV!=="production"&&ge&&ge.nodeName!=="INPUT"&&!ge.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
231
+ `))},[]),G=Le(ee,C,w.ref,H),[z,Z]=P.useState(!1),X=Bn();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(X)return X.registerEffect()},[X]);const te=Mr({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=X?X.focused:z,P.useEffect(()=>{!X&&p&&z&&(Z(!1),V&&V())},[X,p,z,V]);const oe=X&&X.onFilled,ue=X&&X.onEmpty,se=P.useCallback(ge=>{Zi(ge)?oe&&oe():ue&&ue()},[oe,ue]);Pt(()=>{ie&&se({value:J})},[J,se,ie]);const de=ge=>{L&&L(ge),w.onFocus&&w.onFocus(ge),X&&X.onFocus?X.onFocus(ge):Z(!0)},le=ge=>{V&&V(ge),w.onBlur&&w.onBlur(ge),X&&X.onBlur?X.onBlur(ge):Z(!1)},he=(ge,..._e)=>{if(!ie){const Ve=ge.target||ee.current;if(Ve==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Pn(1));se({value:Ve.value})}w.onChange&&w.onChange(ge,..._e),j&&j(ge,..._e)};P.useEffect(()=>{se(ee.current)},[]);const pe=ge=>{ee.current&&ge.currentTarget===ge.target&&ee.current.focus(),x&&x(ge)};let De=S,ke=w;I&&De==="input"&&(F?(process.env.NODE_ENV!=="production"&&(M||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ke={type:void 0,minRows:F,maxRows:F,...ke}):ke={type:void 0,maxRows:E,minRows:M,...ke},De=H1);const Xe=ge=>{se(ge.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};P.useEffect(()=>{X&&X.setAdornedStart(!!Y)},[X,Y]);const tt={...o,color:te.color||"primary",disabled:te.disabled,endAdornment:m,error:te.error,focused:te.focused,formControl:X,fullWidth:y,hiddenLabel:te.hiddenLabel,multiline:I,size:te.size,startAdornment:Y,type:K},St=MR(tt),Et=U.root||u.Root||ka,Pe=R.root||d.root||{},Ee=U.input||u.Input||Da;return ke={...ke,...R.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof hh=="function"&&(ph||(ph=b.jsx(hh,{}))),b.jsxs(Et,{...Pe,ref:n,onClick:pe,...Q,...!hr(Et)&&{ownerState:{...tt,...Pe.ownerState}},className:be(St.root,Pe.className,l,_&&"MuiInputBase-readOnly"),children:[Y,b.jsx(Zs.Provider,{value:null,children:b.jsx(Ee,{"aria-invalid":te.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:te.disabled,id:v,onAnimationStart:Xe,name:D,placeholder:k,readOnly:_,required:te.required,rows:F,value:J,onKeyDown:A,onKeyUp:N,type:K,...ke,...!hr(Ee)&&{as:De,ownerState:{...tt,...ke.ownerState}},ref:G,className:be(St.input,ke.className,_&&"MuiInputBase-readOnly"),onBlur:le,onChange:he,onFocus:de})}),m,$?$({...te,startAdornment:Y}):null]})]})});process.env.NODE_ENV!=="production"&&(Ra.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:Sa,inputProps:s.object,inputRef:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function OR(e){return Te("MuiInput",e)}const Br={...xr,...Se("MuiInput",["root","underline","input"])},kR=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},OR,t);return{...t,...r}},DR=ve(ka,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(Ze(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Br.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Br.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Br.disabled}, .${Br.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Br.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),RR=ve(Da,{name:"MuiInput",slot:"Input",overridesResolver:Oa})({}),Ia=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...h}=o,m=kR(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?Nt(d??a,y):y,S=f.root??i.Root??DR,w=f.input??i.Input??RR;return b.jsx(Ra,{slots:{root:S,input:w},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(Ia.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Ia.muiName="Input";function IR(e){return Te("MuiFilledInput",e)}const bo={...xr,...Se("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},AR=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=we(c,IR,t);return{...t,...u}},NR=ve(ka,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qt()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),_R=ve(Da,{name:"MuiFilledInput",slot:"Input",overridesResolver:Oa})(Ze(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Aa=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text",...m}=o,g={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:d,type:h},y=AR(o),v={root:{ownerState:g},input:{ownerState:g}},S=f??a?Nt(v,f??a):v,w=p.root??i.Root??NR,C=p.input??i.Input??_R;return b.jsx(Ra,{slots:{root:w,input:C},slotProps:S,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...m,classes:y})});process.env.NODE_ENV!=="production"&&(Aa.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Aa.muiName="Input";var mh;const jR=ve("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),LR=ve("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pn})(Ze(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function W1(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",c={...e,notched:i,withLabel:l};return b.jsx(jR,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(LR,{ownerState:c,children:l?b.jsx("span",{children:r}):mh||(mh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(W1.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function VR(e){return Te("MuiOutlinedInput",e)}const vn={...xr,...Se("MuiOutlinedInput",["root","notchedOutline","input"])},$R=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},VR,t);return{...t,...o}},FR=ve(ka,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ma})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(qt()).map(([n])=>({props:{color:n},style:{[`&.${vn.focused} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vn.disabled} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),BR=ve(W1,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),zR=ve(Da,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Oa})(Ze(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Na=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiOutlinedInput"}),{components:r={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:p="text",...h}=o,m=$R(o),g=Bn(),y=Mr({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:p},S=d.root??r.Root??FR,w=d.input??r.Input??zR,[C,T]=rt("notchedOutline",{elementType:BR,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&y.required?b.jsxs(P.Fragment,{children:[l," ","*"]}):l}});return b.jsx(Ra,{slots:{root:S,input:w},slotProps:f,renderSuffix:E=>b.jsx(C,{...T,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:p,...h,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Na.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,notchedOutline:s.oneOfType([s.func,s.object]),root:s.object}),slots:s.shape({input:s.elementType,notchedOutline:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Na.muiName="Input";function HR(e){return Te("MuiFormLabel",e)}const cs=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),WR=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,c={root:["root",`color${ce(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return we(c,HR,t)},UR=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(qt()).map(([t])=>({props:{color:t},style:{[`&.${cs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${cs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),YR=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ze(({theme:e})=>({[`&.${cs.error}`]:{color:(e.vars||e).palette.error.main}}))),U1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:f,required:p,...h}=o,m=Bn(),g=Mr({props:o,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=WR(y);return b.jsxs(UR,{as:l,ownerState:y,className:be(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(YR,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(U1.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function qR(e){return Te("MuiInputLabel",e)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const GR=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="medium"&&`size${ce(o)}`,a],asterisk:[l&&"asterisk"]},u=we(c,qR,t);return{...t,...u}},ZR=ve(U1,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cs.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ze(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Zu=P.forwardRef(function(t,n){const o=$e({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=Bn();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=Mr({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),h={...o,disableAnimation:r,formControl:d,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused},m=GR(h);return b.jsx(ZR,{"data-shrink":f,ref:n,className:be(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function KR(e){return Te("MuiFormControl",e)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XR=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,KR,t)},QR=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ku=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:y="outlined",...v}=o,S={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},w=XR(S),[C,T]=P.useState(()=>{let k=!1;return r&&P.Children.forEach(r,_=>{if(!os(_,["Input","Select"]))return;const $=os(_,["Select"])?_.props.input:_;$&&PR($.props)&&(k=!0)}),k}),[E,M]=P.useState(()=>{let k=!1;return r&&P.Children.forEach(r,_=>{os(_,["Input","Select"])&&(Zi(_.props,!0)||Zi(_.props.inputProps,!0))&&(k=!0)}),k}),[I,D]=P.useState(!1);c&&I&&D(!1);const V=d!==void 0&&!c?d:I;let j;const x=P.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
232
+ `)),x.current=!0,()=>{x.current=!1}));const L=P.useCallback(()=>{M(!0)},[]),A=P.useCallback(()=>{M(!1)},[]),N=P.useMemo(()=>({adornedStart:C,setAdornedStart:T,color:a,disabled:c,error:u,filled:E,focused:V,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:A,onFilled:L,registerEffect:j,required:m,variant:y}),[C,a,c,u,E,V,f,p,j,A,L,m,g,y]);return b.jsx(Zs.Provider,{value:N,children:b.jsx(QR,{as:l,ownerState:S,className:be(w.root,i),ref:n,...v,children:r})})});process.env.NODE_ENV!=="production"&&(Ku.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function JR(e){return Te("MuiFormHelperText",e)}const gh=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yh;const eI=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:c}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${ce(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return we(u,JR,t)},tI=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gh.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Xu=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:p,variant:h,...m}=o,g=Bn(),y=Mr({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete v.ownerState;const S=eI(v);return b.jsx(tI,{as:a,className:be(S.root,i),ref:n,...m,ownerState:v,children:r===" "?yh||(yh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function Y1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function wl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function q1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function zr(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!q1(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const G1=P.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...p}=t,h=P.useRef(null),m=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt(()=>{r&&h.current.focus()},[r]),P.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const T=!h.current.style.width;if(w.clientHeight<h.current.clientHeight&&T){const E=`${Y1(_n(w))}px`;h.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const g=w=>{const C=h.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const M=Jr(Mt(C));if(T==="ArrowDown")w.preventDefault(),zr(C,M,u,c,wl);else if(T==="ArrowUp")w.preventDefault(),zr(C,M,u,c,bh);else if(T==="Home")w.preventDefault(),zr(C,null,u,c,wl);else if(T==="End")w.preventDefault(),zr(C,null,u,c,bh);else if(T.length===1){const I=m.current,D=T.toLowerCase(),V=performance.now();I.keys.length>0&&(V-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&D!==I.keys[0]&&(I.repeating=!1)),I.lastTime=V,I.keys.push(D);const j=M&&!I.repeating&&q1(M,I);I.previousKeyMatched&&(j||zr(C,M,!1,c,wl,I))?w.preventDefault():I.previousKeyMatched=!1}d&&d(w)},y=Le(h,n);let v=-1;P.Children.forEach(a,(w,C)=>{if(!P.isValidElement(w)){v===C&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&jo.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
233
+ `)),w.props.disabled||(f==="selectedMenu"&&w.props.selected||v===-1)&&(v=C),v===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const S=P.Children.map(a,(w,C)=>{if(C===v){const T={};return i&&(T.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(w,T)}return w});return b.jsx(Uu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:S})});process.env.NODE_ENV!=="production"&&(G1.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function nI(e){const t=Mt(e);return t.body===e?_n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function us(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vh(e){return parseFloat(_n(e).getComputedStyle(e).paddingRight)||0}function oI(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function xh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!oI(a);l&&c&&us(a,r)})}function Sl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function rI(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(nI(o)){const a=Y1(_n(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${vh(o)+a}px`;const l=Mt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${vh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Mt(o).body;else{const a=o.parentElement,l=_n(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function sI(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iI{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&us(t.modalRef,!1);const r=sI(n);xh(n,t.mount,t.modalRef,r,!0);const i=Sl(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Sl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=rI(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Sl(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&us(t.modalRef,n),xh(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&us(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function aI(e){return Te("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const lI=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},aI,t)},cI=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Qu=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:p={},TransitionComponent:h,transitionDuration:m,...g}=o,y={...o,component:a,invisible:l},v=lI(y),S={transition:h,root:u.Root,...p},w={...d,...f},C={component:a,slots:S,slotProps:w},[T,E]=rt("root",{elementType:cI,externalForwardedProps:C,className:be(v.root,i),ownerState:y}),[M,I]=rt("transition",{elementType:no,externalForwardedProps:C,ownerState:y});return b.jsx(M,{in:c,timeout:m,...g,...I,children:b.jsx(T,{"aria-hidden":!0,...E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function uI(e){return typeof e=="function"?e():e}function dI(e){return e?e.props.hasOwnProperty("in"):!1}const Ch=()=>{},fi=new iI;function fI(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,f=P.useRef({}),p=P.useRef(null),h=P.useRef(null),m=Le(h,d),[g,y]=P.useState(!u),v=dI(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const w=()=>Mt(p.current),C=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{fi.mount(C(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=me(()=>{const N=uI(t)||w().body;fi.add(C(),N),h.current&&T()}),M=()=>fi.isTopModal(C()),I=me(N=>{p.current=N,N&&(u&&M()?T():h.current&&us(h.current,S))}),D=P.useCallback(()=>{fi.remove(C(),S)},[S]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{u?E():(!v||!r)&&D()},[u,D,v,r,E]);const V=N=>k=>{var _;(_=N.onKeyDown)==null||_.call(N,k),!(k.key!=="Escape"||k.which===229||!M())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},j=N=>k=>{var _;(_=N.onClick)==null||_.call(N,k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(N={})=>{const k=Jy(e);delete k.onTransitionEnter,delete k.onTransitionExited;const _={...k,...N};return{role:"presentation",..._,onKeyDown:V(_),ref:m}},getBackdropProps:(N={})=>{const k=N;return{"aria-hidden":!0,...k,onClick:j(k),open:u}},getTransitionProps:()=>{const N=()=>{y(!1),i&&i()},k=()=>{y(!0),a&&a(),r&&D()};return{onEnter:wd(N,(l==null?void 0:l.props.onEnter)??Ch),onExited:wd(k,(l==null?void 0:l.props.onExited)??Ch)}},rootRef:m,portalRef:I,isTopModal:M,exited:g,hasTransition:v}}function pI(e){return Te("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const hI=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pI,o)},mI=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ze(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),gI=ve(Qu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ju=P.forwardRef(function(t,n){const o=$e({name:"MuiModal",props:t}),{BackdropComponent:r=gI,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:v=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:I,open:D,slotProps:V={},slots:j={},theme:x,...L}=o,A={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:C,keepMounted:T},{getRootProps:N,getBackdropProps:k,getTransitionProps:_,portalRef:$,isTopModal:F,exited:B,hasTransition:R}=fI({...A,rootRef:n}),U={...A,exited:B},Y=hI(U),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),R){const{onEnter:H,onExited:G}=_();K.onEnter=H,K.onExited=G}const re={slots:{root:p.Root,backdrop:p.Backdrop,...j},slotProps:{...h,...V}},[Q,J]=rt("root",{ref:n,elementType:mI,externalForwardedProps:{...re,...L,component:f},getSlotProps:N,ownerState:U,className:be(l,Y==null?void 0:Y.root,!U.open&&U.exited&&(Y==null?void 0:Y.hidden))}),[ie,ee]=rt("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:H=>k({...H,onClick:G=>{H!=null&&H.onClick&&H.onClick(G)}}),className:be(i==null?void 0:i.className,Y==null?void 0:Y.backdrop),ownerState:U});return!T&&!D&&(!R||B)?null:b.jsx(Ts,{ref:$,container:d,disablePortal:v,children:b.jsxs(Q,{...J,children:[!C&&r?b.jsx(ie,{...ee}):null,b.jsx(Ps,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:S,isEnabled:F,open:D,children:P.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(Ju.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:zs.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Vn,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function yI(e){return Te("MuiPopover",e)}Se("MuiPopover",["root","paper"]);function wh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Sh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Th(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function es(e){return typeof e=="function"?e():e}const bI=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},yI,t)},vI=ve(Ju,{name:"MuiPopover",slot:"Root"})({}),Z1=ve(Us,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),K1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:p=8,marginThreshold:h=16,open:m,PaperProps:g={},slots:y={},slotProps:v={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:C="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,I=P.useRef(),D={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:T},V=bI(D),j=P.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const H=es(i),G=H&&H.nodeType===1?H:Mt(I.current).body,z=G.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Z=G.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Z.top===0&&Z.left===0&&Z.right===0&&Z.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
234
+ `))}return{top:z.top+wh(z,a.vertical),left:z.left+Sh(z,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),x=P.useCallback(H=>({vertical:wh(H,S.vertical),horizontal:Sh(H,S.horizontal)}),[S.horizontal,S.vertical]),L=P.useCallback(H=>{const G={width:H.offsetWidth,height:H.offsetHeight},z=x(G);if(c==="none")return{top:null,left:null,transformOrigin:Th(z)};const Z=j();let X=Z.top-z.vertical,te=Z.left-z.horizontal;const oe=X+G.height,ue=te+G.width,se=_n(es(i)),de=se.innerHeight-h,le=se.innerWidth-h;if(h!==null&&X<h){const he=X-h;X-=he,z.vertical+=he}else if(h!==null&&oe>de){const he=oe-de;X-=he,z.vertical+=he}if(process.env.NODE_ENV!=="production"&&G.height>de&&G.height&&de&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${G.height-de}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
235
+ `)),h!==null&&te<h){const he=te-h;te-=he,z.horizontal+=he}else if(ue>le){const he=ue-le;te-=he,z.horizontal+=he}return{top:`${Math.round(X)}px`,left:`${Math.round(te)}px`,transformOrigin:Th(z)}},[i,c,j,x,h]),[A,N]=P.useState(m),k=P.useCallback(()=>{const H=I.current;if(!H)return;const G=L(H);G.top!==null&&H.style.setProperty("top",G.top),G.left!==null&&(H.style.left=G.left),H.style.transformOrigin=G.transformOrigin,N(!0)},[L]);P.useEffect(()=>(E&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[i,E,k]);const _=()=>{k()},$=()=>{N(!1)};P.useEffect(()=>{m&&k()}),P.useImperativeHandle(r,()=>m?{updatePosition:()=>{k()}}:null,[m,k]),P.useEffect(()=>{if(!m)return;const H=gm(()=>{k()}),G=_n(es(i));return G.addEventListener("resize",H),()=>{H.clear(),G.removeEventListener("resize",H)}},[i,m,k]);let F=C;const B={slots:{transition:w,...y},slotProps:{transition:T,paper:g,...v}},[R,U]=rt("transition",{elementType:Cs,externalForwardedProps:B,ownerState:D,getSlotProps:H=>({...H,onEntering:(G,z)=>{var Z;(Z=H.onEntering)==null||Z.call(H,G,z),_()},onExited:G=>{var z;(z=H.onExited)==null||z.call(H,G),$()}}),additionalProps:{appear:!0,in:m}});C==="auto"&&!R.muiSupportAuto&&(F=void 0);const Y=f||(i?Mt(es(i)).body:void 0),[K,{slots:re,slotProps:Q,...J}]=rt("root",{ref:n,elementType:vI,externalForwardedProps:{...B,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:lC(typeof v.backdrop=="function"?v.backdrop(D):v.backdrop,{invisible:!0})},container:Y,open:m},ownerState:D,className:be(V.root,d)}),[ie,ee]=rt("paper",{ref:I,className:V.paper,elementType:Z1,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:A?void 0:{opacity:0}},ownerState:D});return b.jsx(K,{...J,...!hr(K)&&{slots:re,slotProps:Q,disableScrollLock:E},children:b.jsx(R,{...U,timeout:F,children:b.jsx(ie,{...ee,children:u})})})});process.env.NODE_ENV!=="production"&&(K1.propTypes={action:wt,anchorEl:Fn(s.oneOfType([Vn,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=es(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
236
236
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
237
- `))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([zn,s.func]),disableScrollLock:s.bool,elevation:h1,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:ka}),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function AR(e){return Te("MuiMenu",e)}Se("MuiMenu",["root","paper","list"]);const _R={vertical:"top",horizontal:"right"},NR={vertical:"top",horizontal:"left"},jR=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},AR,t)},LR=ve(ob,{shouldForwardProp:e=>hn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),VR=ve(nb,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$R=ve(tb,{name:"MuiMenu",slot:"List"})({outline:0}),rb=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:f={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:m,...g}={},variant:b="selectedMenu",slots:v={},slotProps:S={},...w}=o,C=pn(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:b},E=jR(T),M=r&&!l&&u,R=P.useRef(null),D=(F,B)=>{R.current&&R.current.adjustStyleForScrollbar(F,{direction:C?"rtl":"ltr"}),m&&m(F,B)},V=F=>{F.key==="Tab"&&(F.preventDefault(),d&&d(F,"tabKeyDown"))};let j=-1;P.Children.map(i,(F,B)=>{P.isValidElement(F)&&(process.env.NODE_ENV!=="production"&&Fo.isFragment(F)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
- `)),F.props.disabled||(b==="selectedMenu"&&F.props.selected||j===-1)&&(j=B))});const x={slots:v,slotProps:{list:c,transition:g,paper:f,...S}},L=je({elementType:v.root,externalSlotProps:S.root,ownerState:T,className:[E.root,a]}),[A,_]=rt("paper",{className:E.paper,elementType:VR,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:T}),[O,N]=rt("list",{className:be(E.list,c.className),elementType:$R,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:F=>({...F,onKeyDown:B=>{var I;V(B),(I=F.onKeyDown)==null||I.call(F,B)}}),ownerState:T}),$=typeof x.slotProps.transition=="function"?x.slotProps.transition(T):x.slotProps.transition;return y.jsx(LR,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?_R:NR,slots:{root:v.root,paper:A,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:L,paper:_,backdrop:typeof S.backdrop=="function"?S.backdrop(T):S.backdrop,transition:{...$,onEntering:(...F)=>{var B;D(...F),(B=$==null?void 0:$.onEntering)==null||B.call($,...F)}}},open:u,ref:n,transitionDuration:h,ownerState:T,...w,classes:p,children:y.jsx(O,{actions:R,autoFocus:r&&(j===-1||l),autoFocusItem:M,variant:b,...N,children:i})})});process.env.NODE_ENV!=="production"&&(rb.propTypes={anchorEl:s.oneOfType([zn,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),list:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,list:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function FR(e){return Te("MuiNativeSelect",e)}const ud=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),BR=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"]};return we(l,FR,t)},sb=ve("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ud.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),zR=ve(sb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ud.multiple}`]:t.multiple}]}})({}),ib=ve("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ud.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),HR=ve(ib,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),ab=P.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:r,variant:c,error:i},f=BR(u);return y.jsxs(P.Fragment,{children:[y.jsx(zR,{ownerState:u,className:be(f.select,o),disabled:r,ref:l||n,...d}),t.multiple?null:y.jsx(HR,{as:a,ownerState:u,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(ab.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function lb(e){return Te("MuiSelect",e)}const qr=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Nh;const WR=ve(sb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qr.select}`]:t.select},{[`&.${qr.select}`]:t[n.variant]},{[`&.${qr.error}`]:t.error},{[`&.${qr.multiple}`]:t.multiple}]}})({[`&.${qr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UR=ve(ib,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),YR=ve("input",{shouldForwardProp:e=>Sm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qR(e){return e==null||typeof e=="string"&&!e.trim()}const GR=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return we(l,lb,t)},cb=P.forwardRef(function(t,n){var dt,vt,Rt,mn;const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:g,labelId:b,MenuProps:v={},multiple:S,name:w,onBlur:C,onChange:T,onClose:E,onFocus:M,onKeyDown:R,onMouseDown:D,onOpen:V,open:j,readOnly:x,renderValue:L,required:A,SelectDisplayProps:_={},tabIndex:O,type:N,value:$,variant:F="standard",...B}=t,[I,Y]=oo({controlled:$,default:u,name:"Select"}),[q,Z]=oo({controlled:j,default:d,name:"Select"}),re=P.useRef(null),Q=P.useRef(null),[J,ie]=P.useState(null),{current:ee}=P.useRef(j!=null),[H,G]=P.useState(),z=Le(n,g),K=P.useCallback(ye=>{Q.current=ye,ye&&ie(ye)},[]),X=J==null?void 0:J.parentNode;P.useImperativeHandle(z,()=>({focus:()=>{Q.current.focus()},node:re.current,value:I}),[I]);const te=J!==null&&q;P.useEffect(()=>{if(!te||!X||a||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(()=>{G(X.clientWidth)});return ye.observe(X),()=>{ye.disconnect()}},[te,X,a]),P.useEffect(()=>{d&&q&&J&&!ee&&(G(a?null:X.clientWidth),Q.current.focus())},[J,a]),P.useEffect(()=>{i&&Q.current.focus()},[i]),P.useEffect(()=>{if(!b)return;const ye=kt(Q.current).getElementById(b);if(ye){const Ae=()=>{getSelection().isCollapsed&&Q.current.focus()};return ye.addEventListener("click",Ae),()=>{ye.removeEventListener("click",Ae)}}},[b]);const oe=(ye,Ae)=>{ye?V&&V(Ae):E&&E(Ae),ee||(G(a?null:X.clientWidth),Z(ye))},ue=ye=>{D==null||D(ye),ye.button===0&&(ye.preventDefault(),Q.current.focus(),oe(!0,ye))},se=ye=>{oe(!1,ye)},de=P.Children.toArray(l),le=ye=>{const Ae=de.find(at=>at.props.value===ye.target.value);Ae!==void 0&&(Y(Ae.props.value),T&&T(ye,Ae))},he=ye=>Ae=>{let at;if(Ae.currentTarget.hasAttribute("tabindex")){if(S){at=Array.isArray(I)?I.slice():[];const gn=I.indexOf(ye.props.value);gn===-1?at.push(ye.props.value):at.splice(gn,1)}else at=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Ae),I!==at&&(Y(at),T)){const gn=Ae.nativeEvent||Ae,Rr=new gn.constructor(gn.type,gn);Object.defineProperty(Rr,"target",{writable:!0,value:{value:at,name:w}}),T(Rr,ye)}S||oe(!1,Ae)}},pe=ye=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),oe(!0,ye)),R==null||R(ye))},De=ye=>{!te&&C&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:I,name:w}}),C(ye))};delete B["aria-invalid"];let Oe,Xe;const tt=[];let St=!1,Et=!1;(ea({value:I})||p)&&(L?Oe=L(I):St=!0);const Pe=de.map(ye=>{if(!P.isValidElement(ye))return null;process.env.NODE_ENV!=="production"&&Fo.isFragment(ye)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
239
- `));let Ae;if(S){if(!Array.isArray(I))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Mn(2));Ae=I.some(at=>jh(at,ye.props.value)),Ae&&St&&tt.push(ye.props.children)}else Ae=jh(I,ye.props.value),Ae&&St&&(Xe=ye.props.children);return Ae&&(Et=!0),P.cloneElement(ye,{"aria-selected":Ae?"true":"false",onClick:he(ye),onKeyUp:at=>{at.key===" "&&at.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(at)},role:"option",selected:Ae,value:void 0,"data-value":ye.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!Et&&!S&&I!==""){const ye=de.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ye.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
240
- `))}},[Et,de,S,w,I]),St&&(S?tt.length===0?Oe=null:Oe=tt.reduce((ye,Ae,at)=>(ye.push(Ae),at<tt.length-1&&ye.push(", "),ye),[]):Oe=Xe);let Ee=H;!a&&ee&&J&&(Ee=X.clientWidth);let ge;typeof O<"u"?ge=O:ge=f?null:0;const Ne=_.id||(w?`mui-component-select-${w}`:void 0),Ve={...t,variant:F,value:I,open:te,error:h},it=GR(Ve),Qe={...v.PaperProps,...typeof((dt=v.slotProps)==null?void 0:dt.paper)=="function"?v.slotProps.paper(Ve):(vt=v.slotProps)==null?void 0:vt.paper},Ft={...v.MenuListProps,...typeof((Rt=v.slotProps)==null?void 0:Rt.list)=="function"?v.slotProps.list(Ve):(mn=v.slotProps)==null?void 0:mn.list},ke=co();return y.jsxs(P.Fragment,{children:[y.jsx(WR,{as:"div",ref:K,tabIndex:ge,role:"combobox","aria-controls":te?ke:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[b,Ne].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":A?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:pe,onMouseDown:f||x?null:ue,onBlur:De,onFocus:M,..._,ownerState:Ve,className:be(_.className,it.select,c),id:Ne,children:qR(Oe)?Nh||(Nh=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Oe}),y.jsx(YR,{"aria-invalid":h,value:Array.isArray(I)?I.join(","):I,name:w,ref:re,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:it.nativeInput,autoFocus:i,required:A,...B,ownerState:Ve}),y.jsx(UR,{as:m,className:it.icon,ownerState:Ve}),y.jsx(rb,{id:`menu-${w||""}`,anchorEl:X,open:te,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:ke,...Ft},paper:{...Qe,style:{minWidth:Ee,...Qe!=null?Qe.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(cb.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:wt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,required:s.bool,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const KR=st(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ZR=e=>{const{classes:t}=e,o=we({root:["root"]},lb,t);return{...t,...o}},dd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>hn(e)&&e!=="variant"},XR=ve(La,dd)(""),QR=ve($a,dd)(""),JR=ve(Va,dd)(""),fd=P.forwardRef(function(t,n){const o=$e({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:u=KR,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:b,multiple:v=!1,native:S=!1,onClose:w,onOpen:C,open:T,renderValue:E,SelectDisplayProps:M,variant:R="outlined",...D}=o,V=S?ab:cb,j=Un(),x=Ir({props:o,muiFormControl:j,states:["variant","error"]}),L=x.variant||R,A={...o,variant:L,classes:a},_=ZR(A),{root:O,...N}=_,$=p||{standard:y.jsx(XR,{ownerState:A}),outlined:y.jsx(QR,{label:m,ownerState:A}),filled:y.jsx(JR,{ownerState:A})}[L],F=Le(n,qs($));return y.jsx(P.Fragment,{children:P.cloneElement($,{inputComponent:V,inputProps:{children:i,error:x.error,IconComponent:u,variant:L,type:void 0,multiple:v,...S?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:d,labelId:g,MenuProps:b,onClose:w,onOpen:C,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?Nt(N,h.classes):N,...p?p.props.inputProps:{}},...(v&&S||d)&&L==="outlined"?{notched:!0}:{},ref:F,className:be($.props.className,l,_.root),...!p&&{variant:L},...D})})});process.env.NODE_ENV!=="production"&&(fd.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});fd.muiName="Select";function eA(e){return Te("MuiTextField",e)}Se("MuiTextField",["root"]);const tA={standard:La,filled:Va,outlined:$a},nA=e=>{const{classes:t}=e;return we({root:["root"]},eA,t)},oA=ve(id,{name:"MuiTextField",slot:"Root"})({}),ub=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:b,inputProps:v,InputProps:S,inputRef:w,label:C,maxRows:T,minRows:E,multiline:M=!1,name:R,onBlur:D,onChange:V,onFocus:j,placeholder:x,required:L=!1,rows:A,select:_=!1,SelectProps:O,slots:N={},slotProps:$={},type:F,value:B,variant:I="outlined",...Y}=o,q={...o,autoFocus:i,color:c,disabled:u,error:f,fullWidth:h,multiline:M,required:L,select:_,variant:I},Z=nA(q);process.env.NODE_ENV!=="production"&&_&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const re=co(g),Q=m&&re?`${re}-helper-text`:void 0,J=C&&re?`${re}-label`:void 0,ie=tA[I],ee={slots:N,slotProps:{input:S,inputLabel:b,htmlInput:v,formHelperText:p,select:O,...$}},H={},G=ee.slotProps.inputLabel;I==="outlined"&&(G&&typeof G.shrink<"u"&&(H.notched=G.shrink),H.label=C),_&&((!O||!O.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[z,K]=rt("root",{elementType:oA,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,...Y},ownerState:q,className:be(Z.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:h,required:L,color:c,variant:I}}),[X,te]=rt("input",{elementType:ie,externalForwardedProps:ee,additionalProps:H,ownerState:q}),[oe,ue]=rt("inputLabel",{elementType:sd,externalForwardedProps:ee,ownerState:q}),[se,de]=rt("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:q}),[le,he]=rt("formHelperText",{elementType:ad,externalForwardedProps:ee,ownerState:q}),[pe,De]=rt("select",{elementType:fd,externalForwardedProps:ee,ownerState:q}),Oe=y.jsx(X,{"aria-describedby":Q,autoComplete:r,autoFocus:i,defaultValue:d,fullWidth:h,multiline:M,name:R,rows:A,maxRows:T,minRows:E,type:F,value:B,id:re,inputRef:w,onBlur:D,onChange:V,onFocus:j,placeholder:x,inputProps:de,slots:{input:N.htmlInput?se:void 0},...te});return y.jsxs(z,{...K,children:[C!=null&&C!==""&&y.jsx(oe,{htmlFor:re,id:J,...ue,children:C}),_?y.jsx(pe,{"aria-describedby":Q,id:re,labelId:J,value:B,input:Oe,...De,children:a}):Oe,m&&y.jsx(le,{id:Q,...he,children:m})]})});process.env.NODE_ENV!=="production"&&(ub.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,root:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});function rA(e){return Te("MuiIconButton",e)}const Lh=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),sA=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${ce(o)}`,r&&`edge${ce(r)}`,`size${ce(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return we(l,rA,t)},iA=ve(Sr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Ke(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.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}}]})),Ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Gt()).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)}}],[`&.${Lh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Lh.loading}`]:{color:"transparent"}}))),aA=ve("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"}}]})),Is=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:p=null,loadingIndicator:h,...m}=o,g=co(f),b=h??y.jsx(ed,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:d,loading:p,loadingIndicator:b,size:u},S=sA(v);return y.jsxs(iA,{id:p?g:f,className:be(S.root,a),centerRipple:!0,focusRipple:!d,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&y.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:y.jsx(aA,{className:S.loadingIndicator,ownerState:v,children:p&&b})}),i]})});process.env.NODE_ENV!=="production"&&(Is.propTypes={children:Wn(s.node,e=>P.Children.toArray(e.children).some(n=>P.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(`
241
- `)):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])});function lA(e){return Te("MuiInputAdornment",e)}const Vh=Se("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var $h;const cA=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},uA=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${ce(r)}`,a,o&&"hiddenLabel",i&&`size${ce(i)}`]};return we(l,lA,t)},dA=ve("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:cA})(Ke(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Vh.positionStart}&:not(.${Vh.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),db=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:u,...f}=o,p=Un()||{};let h=u;u&&p.variant&&process.env.NODE_ENV!=="production"&&u===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!h&&(h=p.variant);const m={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:d,variant:h},g=uA(m);return y.jsx(Js.Provider,{value:null,children:y.jsx(dA,{as:a,ownerState:m,className:be(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?y.jsx(fo,{color:"textSecondary",children:r}):y.jsxs(P.Fragment,{children:[d==="start"?$h||($h=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});process.env.NODE_ENV!=="production"&&(db.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Zn=7;function pd(e){const{ownerState:t}=It(),n=pn();return P.useMemo(()=>U({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const fA=st(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pA=st(y.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),hA=st(y.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),mA=st(y.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");st(y.jsxs(P.Fragment,{children:[y.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"}),y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");st(y.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");st(y.jsxs(P.Fragment,{children:[y.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"}),y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const gA=st(y.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 yA(e){return Te("MuiPickersTextField",e)}Se("MuiPickersTextField",["root","focused","disabled","error","required"]);const bA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function vA(e){return Te("MuiPickersInputBase",e)}const hr=Se("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function xA(e){return Te("MuiPickersSectionList",e)}const er=Se("MuiPickersSectionList",["root","section","sectionContent"]),CA=["slots","slotProps","elements","sectionListRef","classes"],fb=ae.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),pb=ae.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),hb=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),mb=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),wA=e=>we({root:["root"],section:["section"],sectionContent:["sectionContent"]},xA,e);function gb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=It(),a=(t==null?void 0:t.section)??pb,l=je({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??mb,d=je({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:i}),u=(t==null?void 0:t.sectionSeparator)??hb,f=je({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:U({},i,{separatorPosition:"before"})}),p=je({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:U({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=Le(d.ref,h),g=b=>{const v=b.relatedTarget,S=b.currentTarget.closest(`.${er.root}`);if(S&&v instanceof Node&&S.contains(v)){b.stopPropagation();return}};return y.jsxs(a,U({},l,{children:[y.jsx(u,U({},f)),y.jsx(c,U({},d,{ref:m,onBlur:g})),y.jsx(u,U({},p))]}))}process.env.NODE_ENV!=="production"&&(gb.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const hd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,d=Me(o,CA),u=wA(c),{ownerState:f}=It(),p=P.useRef(null),h=Le(n,p),m=v=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return p.current};P.useImperativeHandle(l,()=>({getRoot(){return m("getRoot")},getSectionContainer(v){return m("getSectionContainer").querySelector(`.${er.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${er.section}[data-sectionindex="${v}"] .${er.sectionContent}`)},getSectionIndexFromDOMElement(v){const S=m("getSectionIndexFromDOMElement");if(v==null||!S.contains(v))return null;let w=null;return v.classList.contains(er.section)?w=v:v.classList.contains(er.sectionContent)&&(w=v.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??fb,b=je({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:d,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:u.root,ownerState:f});return y.jsx(g,U({},b,{children:b.contentEditable?a.map(({content:v,before:S,after:w})=>`${S.children}${v.children}${w.children}`).join(""):y.jsx(P.Fragment,{children:a.map((v,S)=>y.jsx(gb,{slots:r,slotProps:i,element:v,classes:u},S))})}))});process.env.NODE_ENV!=="production"&&(hd.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(hd.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const md=P.createContext(null);process.env.NODE_ENV!=="production"&&(md.displayName="PickerTextFieldOwnerStateContext");const Fa=()=>{const e=P.useContext(md);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
242
- `));return e},SA=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],TA=e=>Math.round(e*1e5)/1e5,Ba=ae.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>U({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${TA(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),gd=ae.styled(fb,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),PA=ae.styled(pb,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),EA=ae.styled(mb,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),MA=ae.styled(hb,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),kA=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},bA)),OA=ae.styled("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),DA=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:r,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:d,hasEndAdornment:u}=t,f={root:["root",n&&!o&&"focused",o&&"disabled",r&&"readOnly",i&&"error",l&&"fullWidth",`color${ce(c)}`,a==="small"&&"inputSizeSmall",d&&"adornedStart",u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return we(f,vA,e)};function Fh(e,t,n,o){var r;if(e.content.id){const i=(r=t.current)==null?void 0:r.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function IA(e,t){var r,i,a,l,c;let n=0;if(((r=t.current)==null?void 0:r.getAttribute("data-active-range-position"))==="end")for(let d=e.length-1;d>=e.length/2;d-=1)n+=Fh(e[d],t,d,"end");else for(let d=0;d<e.length/2;d+=1)n+=Fh(e[d],t,d,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const ei=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:d,startAdornment:u,renderSuffix:f,slots:p,slotProps:h,contentEditable:m,tabIndex:g,onInput:b,onPaste:v,onKeyDown:S,name:w,readOnly:C,inputProps:T,inputRef:E,sectionListRef:M,onFocus:R,onBlur:D,classes:V,ownerState:j}=o,x=Me(o,SA),L=Fa(),A=P.useRef(null),_=P.useRef(null),O=P.useRef([]),N=Le(n,A),$=Le(T==null?void 0:T.ref,E),F=Un();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const B=j??L,I=H=>{var G;(G=F.onFocus)==null||G.call(F,H),R==null||R(H)},Y=H=>{I(H)},q=H=>{var G,z;if(S==null||S(H),H.key==="Enter"&&!H.defaultMuiPrevented){if((G=A.current)!=null&&G.dataset.multiInput)return;const K=(z=A.current)==null?void 0:z.closest("form"),X=K==null?void 0:K.querySelector('[type="submit"]');if(!K||!X)return;H.preventDefault(),K.requestSubmit(X)}},Z=H=>{var G;(G=F.onBlur)==null||G.call(F,H),D==null||D(H)};P.useEffect(()=>{F&&F.setAdornedStart(!!u)},[F,u]),P.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const re=DA(V,B),Q=(p==null?void 0:p.root)||Ba,J=je({elementType:Q,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:x,additionalProps:{"aria-invalid":F.error,ref:N},className:re.root,ownerState:B}),ie=(p==null?void 0:p.input)||gd,ee=r.some(H=>H.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!ee||!B.isPickerOpen)return;const{activeBarWidth:H,sectionOffsets:G}=IA(r,A);O.current=[G[0],G[1]],_.current&&(_.current.style.width=`${H}px`)},[r,ee,B.isPickerOpen]),y.jsxs(Q,U({},J,{children:[u,y.jsx(hd,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:re.sectionsContainer,onFocus:I,onBlur:Z,onInput:b,onPaste:v,onKeyDown:q,slots:{root:ie,section:PA,sectionContent:EA,sectionSeparator:MA},slotProps:{root:U({},h==null?void 0:h.input,{ownerState:B}),sectionContent:{className:hr.sectionContent},sectionSeparator:({separatorPosition:H})=>({className:H==="before"?hr.sectionBefore:hr.sectionAfter})}}),d,f?f(U({},F)):null,y.jsx(kA,U({name:w,className:re.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:F.required,disabled:F.disabled,onFocus:Y},T,{ref:$})),ee&&y.jsx(OA,{className:re.activeBar,ref:_,ownerState:{sectionOffsets:O.current}})]}))});process.env.NODE_ENV!=="production"&&(ei.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(ei.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function RA(e){return Te("MuiPickersOutlinedInput",e)}const dn=U({},hr,Se("MuiPickersOutlinedInput",["root","notchedOutline","input"])),AA=["children","className","label","notched","shrink"],_A=ae.styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Bh=ae.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),NA=ae.styled("legend",{slot:"internal",shouldForwardProp:e=>eo(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function jA(e){const{className:t,label:n,notched:o}=e,r=Me(e,AA),i=Fa();return y.jsx(_A,U({"aria-hidden":!0,className:t},r,{ownerState:i,children:y.jsx(NA,{ownerState:i,notched:o,children:n?y.jsx(Bh,{children:n}):y.jsx(Bh,{className:"notranslate",children:"​"})})}))}const LA=["label","autoFocus","ownerState","classes","notched"],VA=ae.styled(Ba,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${dn.focused} .${dn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${dn.disabled}`]:{[`& .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${dn.error} .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${dn.focused}:not(.${dn.error}) .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),$A=ae.styled(gd,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),FA=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},RA,e);return U({},e,n)},za=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Me(o,LA),c=Un(),d=FA(i);return y.jsx(ei,U({slots:{root:VA,input:$A},renderSuffix:u=>y.jsx(jA,{shrink:!!(a||u.adornedStart||u.focused||u.filled),notched:!!(a||u.adornedStart||u.focused||u.filled),className:d.notchedOutline,label:r!=null&&r!==""&&(c!=null&&c.required)?y.jsxs(P.Fragment,{children:[r," ","*"]}):r})},l,{label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(za.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(za.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});za.muiName="Input";function BA(e){return Te("MuiPickersFilledInput",e)}const So=U({},hr,Se("MuiPickersFilledInput",["root","underline","input"])),zA=["label","autoFocus","disableUnderline","hiddenLabel","classes"],HA=ae.styled(Ba,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${So.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${So.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${So.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${So.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${So.disabled}, .${So.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${So.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),WA=ae.styled(gd,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),UA=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},BA,e);return U({},e,r)},Ha=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Me(o,zA),d=Fa(),u=U({},d,{inputHasUnderline:!i}),f=UA(l,u);return y.jsx(ei,U({slots:{root:HA,input:WA},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:u}))});process.env.NODE_ENV!=="production"&&(Ha.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Ha.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Ha.muiName="Input";function YA(e){return Te("MuiPickersFilledInput",e)}const Gr=U({},hr,Se("MuiPickersInput",["root","underline","input"])),qA=["label","autoFocus","disableUnderline","ownerState","classes"],GA=ae.styled(Ba,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>eo(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gr.disabled}, .${Gr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),KA=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},YA,e);return U({},e,r)},Wa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Me(o,qA),c=Fa(),d=U({},c,{inputHasUnderline:!i}),u=KA(a,d);return y.jsx(ei,U({slots:{root:GA},slotProps:{root:{disableUnderline:i}}},l,{ownerState:d,label:r,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Wa.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(Wa.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Wa.muiName="Input";const ZA=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],XA={standard:Wa,filled:Ha,outlined:za},QA=ae.styled(id,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),JA=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},yA,e)},Ua=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,classes:l,color:c="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:m,inputProps:g,inputRef:b,sectionListRef:v,elements:S,areAllSectionsEmpty:w,onClick:C,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:R,endAdornment:D,startAdornment:V,tabIndex:j,contentEditable:x,focused:L,value:A,onChange:_,fullWidth:O,id:N,name:$,helperText:F,FormHelperTextProps:B,label:I,InputLabelProps:Y,"data-active-range-position":q}=o,Z=Me(o,ZA),re=P.useRef(null),Q=Le(n,re),J=co(N),ie=F&&J?`${J}-helper-text`:void 0,ee=I&&J?`${J}-label`:void 0,H=pd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),G=P.useMemo(()=>U({},H,{isFieldValueEmpty:w,isFieldFocused:L??!1,hasFieldError:u??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!I,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[H,w,L,u,o.size,c,O,V,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,I,Y==null?void 0:Y.shrink]),z=JA(l,G),K=XA[f],X={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(X.notched=Y.shrink),X.label=I):f==="filled"&&(X.hiddenLabel=h),y.jsx(md.Provider,{value:G,children:y.jsxs(QA,U({className:be(z.root,a),ref:Q,focused:L,disabled:d,variant:f,error:u,color:c,fullWidth:O,required:p,ownerState:G},Z,{children:[I!=null&&I!==""&&y.jsx(sd,U({htmlFor:J,id:ee},Y,{children:I})),y.jsx(K,U({elements:S,areAllSectionsEmpty:w,onClick:C,onKeyDown:T,onKeyUp:E,onInput:R,onPaste:M,onFocus:r,onBlur:i,endAdornment:D,startAdornment:V,tabIndex:j,contentEditable:x,value:A,onChange:_,id:J,fullWidth:O,inputProps:g,inputRef:b,sectionListRef:v,label:I,name:$,role:"group","aria-labelledby":ee,"aria-describedby":ie,"aria-live":ie?"polite":void 0,"data-active-range-position":q},X,m)),F&&y.jsx(ad,U({id:ie},B,{children:F}))]}))})});process.env.NODE_ENV!=="production"&&(Ua.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Ua.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const e7=["enableAccessibleFieldDOMStructure"],t7=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],n7=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],o7=["ownerState"],r7=["ownerState"],s7=["ownerState"],i7=["ownerState"],a7=["InputProps","inputProps"],Ol=()=>{},l7=e=>{var S,w,C,T,E,M,R,D,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Me(e,e7);if(t){const{InputProps:j,readOnly:x,onClear:L,clearable:A,clearButtonPosition:_,openPickerButtonPosition:O,openPickerAriaLabel:N}=n,$=Me(n,t7),F=Zn>=6&&((S=$==null?void 0:$.slotProps)!=null&&S.input)?ms((w=$==null?void 0:$.slotProps)==null?void 0:w.input,j):Ol;return{clearable:A,onClear:L,clearButtonPosition:_,openPickerButtonPosition:O,openPickerAriaLabel:N,textFieldProps:U({},$,Zn>=6&&((C=$==null?void 0:$.slotProps)!=null&&C.input)?{slotProps:U({},$==null?void 0:$.slotProps,{input:B=>U({},nn(F,B),{readOnly:x})})}:{InputProps:U({},j??{},{readOnly:x})})}}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:d,onClear:u,clearable:f,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m}=n,g=Me(n,n7),b=Zn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?ms((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):Ol,v=Zn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?ms((R=g==null?void 0:g.slotProps)==null?void 0:R.htmlInput,c):Ol;return{clearable:f,onClear:u,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:U({},g,Zn>=6&&((D=g==null?void 0:g.slotProps)!=null&&D.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:U({},g==null?void 0:g.slotProps,{input:j=>U({},nn(b,j),{readOnly:a}),htmlInput:j=>U({},nn(v,j),{inputMode:i,onPaste:o,onKeyDown:r,ref:d})})}:{InputProps:U({},l??{},{readOnly:a}),inputProps:U({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:d})})}},Ya=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ya.displayName="PickerFieldUIContext");function c7(e){var B,I,Y,q;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=po(),r=Bu(),i=P.useContext(Ya),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:d,clearButtonPosition:u="end",openPickerButtonPosition:f="end"}=l7(t),p=pd(a),h=me(Z=>{Z.preventDefault(),r==null||r.setOpen(re=>!re)}),m=r?r.triggerStatus:"hidden",g=c?u:null,b=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?ub:Ua),S=i.slots.inputAdornment??db,w=je({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:U({},p,{position:"start"})}),C=Me(w,o7),T=je({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:U({},p,{position:"end"})}),E=Me(T,r7),M=i.slots.openPickerButton??Is,R=je({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":d,edge:a.variant!=="standard"?b:!1},ownerState:p}),D=Me(R,s7),V=i.slots.openPickerIcon??n,j=je({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),x=i.slots.clearButton??Is,L=je({elementType:x,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&g!==b?g:!1},ownerState:p}),A=Me(L,i7),_=i.slots.clearIcon??gA,O=je({elementType:_,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=Le(a.ref,r==null?void 0:r.rootRef);const N={},$=nn((Zn>=6&&((B=a==null?void 0:a.slotProps)==null?void 0:B.input))??a.InputProps,p);r&&(N.ref=r.triggerRef),!($!=null&&$.startAdornment)&&(g==="start"||b==="start")&&(N.startAdornment=y.jsxs(S,U({},C,{children:[b==="start"&&y.jsx(M,U({},D,{children:y.jsx(V,U({},j))})),g==="start"&&y.jsx(x,U({},A,{children:y.jsx(_,U({},O))}))]}))),!($!=null&&$.endAdornment)&&(g==="end"||b==="end")&&(N.endAdornment=y.jsxs(S,U({},E,{children:[g==="end"&&y.jsx(x,U({},A,{children:y.jsx(_,U({},O))})),b==="end"&&y.jsx(M,U({},D,{children:y.jsx(V,U({},j))}))]}))),!(N!=null&&N.endAdornment)&&!(N!=null&&N.startAdornment)&&i.slots.inputAdornment&&(N.endAdornment=y.jsx(S,U({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const F=Zn>=6&&((I=a==null?void 0:a.slotProps)!=null&&I.input)?nn(ms($,N),p):U({},$,N);return a.inputProps=Zn>=6&&((Y=a==null?void 0:a.slotProps)!=null&&Y.htmlInput)?nn(a.slotProps.htmlInput,p):a.inputProps,(q=a==null?void 0:a.slotProps)==null||delete q.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),y.jsx(v,U({},a,{InputProps:F}))}function ms(e,t){return e?t?n=>U({},nn(t,n),nn(e,n)):e:t}function u7(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(Ya),i=Bu(),a=pd(n),{InputProps:l,inputProps:c}=n,d=Me(n,a7),u=je({elementType:Ua,externalSlotProps:ms(r.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:d,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:r.inputRef},ownerState:a});return u.inputProps=U({},c,u.inputProps),u.InputProps=U({},l,u.InputProps),u}function d7(e){const{slots:t={},slotProps:n={},inputRef:o,children:r}=e,i=P.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return y.jsx(Ya.Provider,{value:i,children:r})}const f7=["slots","slotProps"],qa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Me(o,f7),l=u7({slotProps:i,ref:n,externalForwardedProps:a}),c=NI(l);return y.jsx(d7,{slots:r,slotProps:i,inputRef:a.inputRef,children:y.jsx(c7,{fieldResponse:c,defaultOpenPickerIcon:mA})})});process.env.NODE_ENV!=="production"&&(qa.displayName="DateField");process.env.NODE_ENV!=="production"&&(qa.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,clearButtonPosition:s.oneOf(["end","start"]),color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,openPickerButtonPosition:s.oneOf(["end","start"]),readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const yb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ze();return P.useCallback(d=>Ws({adapter:c,value:d,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,o,r,i,a,l])},p7=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return U({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const r=o.newTimezone;if(t.getTimezone(n.currentMonth)===r)return n;let i=t.setTimezone(n.currentMonth,r);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),U({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return U({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},h7=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:d,shouldDisableDate:u,timezone:f,getCurrentMonthFromVisibleDate:p}=e,h=Ze(),m=P.useRef(p7(!!d,h)).current,g=P.useMemo(()=>On.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:Cn.day}),[n,f]),[b,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),S=yb({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const w=me(({target:T,reason:E})=>{if(E==="cell-interaction"&&b.focusedDay!=null&&h.isSameDay(T,b.focusedDay))return;const M=E==="cell-interaction";let R,D;if(E==="cell-interaction")R=p(T,b.currentMonth),D=T;else if(R=h.isSameMonth(T,b.currentMonth)?b.currentMonth:h.startOfMonth(T),D=T,S(D)){const x=h.startOfMonth(T),L=h.endOfMonth(T);D=Ts({adapter:h,date:D,minDate:h.isBefore(a,x)?x:a,maxDate:h.isAfter(i,L)?L:i,disablePast:r,disableFuture:o,isDateDisabled:S,timezone:f})}const V=!h.isSameMonth(b.currentMonth,R),j=!h.isSameYear(b.currentMonth,R);V&&(l==null||l(R)),j&&(c==null||c(h.startOfYear(R))),v({type:"setVisibleDate",month:R,direction:h.isAfterDay(R,b.currentMonth)?"left":"right",focusedDay:b.focusedDay!=null&&D!=null&&h.isSameDay(D,b.focusedDay)?b.focusedDay:D,skipAnimation:M})}),C=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:b,setVisibleDate:w,isDateDisabled:S,onMonthSwitchingAnimationEnd:C}},m7=e=>Te("MuiPickersFadeTransitionGroup",e);Se("MuiPickersFadeTransitionGroup",["root"]);const g7=["children"],y7=e=>we({root:["root"]},m7,e),b7=ae.styled(Gs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function bb(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Me(t,g7),c=y7(i),d=ae.useTheme();return o?a:y.jsx(b7,{className:be(c.root,n),ownerState:l,children:y.jsx(io,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:d.transitions.duration.enteringScreen,enter:d.transitions.duration.enteringScreen,exit:0},children:a},r)})}function v7(e){return Te("MuiPickersDay",e)}const To=Se("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function vb(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,d=Ze(),{ownerState:u}=It();return P.useMemo(()=>U({},u,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:r??!1,isDayStartOfWeek:d.isSameDay(i,d.startOfWeek(i)),isDayEndOfWeek:d.isSameDay(i,d.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[d,u,i,n,t,o,r,a,l,c])}const x7=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],C7=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,d=i&&!c;return we({root:["root",n&&!d&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",d&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},v7,e)},xb=({theme:e})=>U({},e.typography.caption,{width:Ds,height:Ds,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})`:ae.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${To.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${To.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}},[`&.${To.disabled}:not(.${To.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${To.disabled}&.${To.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Oa}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${To.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Cb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},w7=ae.styled(Sr,{name:"MuiPickersDay",slot:"Root",overridesResolver:Cb})(xb),S7=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Cb})(({theme:e})=>U({},xb({theme:e}),{opacity:0,pointerEvents:"none"})),Kr=()=>{},yd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:d,onFocus:u=Kr,onBlur:f=Kr,onKeyDown:p=Kr,onMouseDown:h=Kr,onMouseEnter:m=Kr,children:g,day:b,selected:v,disabled:S,today:w,outsideCurrentMonth:C,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,R=Me(o,x7),D=vb({day:b,selected:v,disabled:S,today:w,outsideCurrentMonth:C,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),V=C7(a,D),j=Ze(),x=P.useRef(null),L=Le(x,n);Pt(()=>{r&&!S&&!l&&!C&&x.current.focus()},[r,S,l,C]);const A=O=>{h(O),C&&O.preventDefault()},_=O=>{O.defaultMuiPrevented=!0,S||d(b),C&&O.currentTarget.focus(),c&&c(O)};return C&&!M?y.jsx(S7,{className:be(V.root,V.hiddenDaySpacingFiller,i),ownerState:D,role:R.role}):y.jsx(w7,U({className:be(V.root,i),ref:L,centerRipple:!0,disabled:S,tabIndex:v?0:-1,onKeyDown:O=>p(O,b),onFocus:O=>u(O,b),onBlur:O=>f(O,b),onMouseEnter:O=>m(O,b),onClick:_,onMouseDown:A},R,{ownerState:D,children:g??j.format(b,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(yd.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(yd.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 wb=P.memo(yd);process.env.NODE_ENV!=="production"&&(wb.displayName="PickersDay");const T7=e=>Te("MuiPickersSlideTransition",e),Zt=Se("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),P7=["children","className","reduceAnimations","slideDirection","transKey","classes"],E7=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,T7,e)},M7=ae.styled(Gs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Zt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Zt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Zt.slideEnterActive}`]:t.slideEnterActive},{[`.${Zt.slideExit}`]:t.slideExit},{[`.${Zt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Zt["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},[`& .${Zt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Zt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Zt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Zt.slideExit}`]:{transform:"translate(0%)"},[`& .${Zt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Zt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function k7(e){const t=ae.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Me(t,P7),{ownerState:d}=It(),u=U({},d,{slideDirection:i}),f=E7(l,u),p=ae.useTheme();if(r)return y.jsx("div",{className:be(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return y.jsx(M7,{className:be(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:u,children:y.jsx(Uu,U({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const O7=e=>Te("MuiDayCalendar",e);Se("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D7=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],I7=["ownerState"],R7=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},O7,e),Sb=(Ds+Oa*2)*6,A7=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),_7=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),N7=ae.styled(fo,{name:"MuiDayCalendar",slot:"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})),j7=ae.styled(fo,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),L7=ae.styled(fo,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>U({},e.typography.caption,{width:Ds,height:Ds,padding:0,margin:`0 ${Oa}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),V7=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Sb}),$7=ae.styled(k7,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:Sb}),F7=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),B7=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Oa}px 0`,display:"flex",justifyContent:"center"});function z7(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Me(e,D7);const{disabled:d,disableHighlightToday:u,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,b=Ze(),v=Pa(g),S=o!=null&&b.isSameDay(n,o),w=l&&S,C=r.some(A=>b.isSameDay(A,n)),T=b.isSameDay(n,v),E=P.useMemo(()=>d||i(n),[d,i,n]),M=P.useMemo(()=>b.getMonth(n)!==a,[b,n,a]),R=vb({day:n,selected:C,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:u,showDaysOutsideCurrentMonth:p}),D=(h==null?void 0:h.day)??wb,V=je({elementType:D,externalSlotProps:m==null?void 0:m.day,additionalProps:U({disableHighlightToday:u,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":b.toJsDate(n).valueOf()},c),ownerState:U({},R,{day:n,isDayDisabled:E,isDaySelected:C})}),j=Me(V,I7),x=P.useMemo(()=>{const A=b.startOfMonth(b.setMonth(n,a));return p?b.isSameDay(n,b.startOfWeek(A)):b.isSameDay(n,A)},[a,n,p,b]),L=P.useMemo(()=>{const A=b.endOfMonth(b.setMonth(n,a));return p?b.isSameDay(n,b.endOfWeek(A)):b.isSameDay(n,A)},[a,n,p,b]);return y.jsx(D,U({},j,{day:n,disabled:E,autoFocus:!M&&w,today:T,outsideCurrentMonth:M,isFirstVisibleCell:x,isLastVisibleCell:L,selected:C,tabIndex:S?0:-1,"aria-selected":C,"aria-current":T?"date":void 0}))}function H7(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Ze(),{onFocusedDayChange:o,className:r,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:m=()=>y.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:b,disablePast:v,disableFuture:S,minDate:w,maxDate:C,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:R=G=>n.format(G,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:V,gridLabelId:j,displayWeekNumber:x,fixedWeekNumber:L,timezone:A}=t,_=Pa(A),O=R7(i),N=pn(),$=yb({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:w,maxDate:C,disablePast:v,disableFuture:S,timezone:A}),F=po(),B=me(G=>{p||u(G)}),I=G=>{$(G)||(o(G),V==null||V(!0))},Y=me((G,z)=>{switch(G.key){case"ArrowUp":I(n.addDays(z,-7)),G.preventDefault();break;case"ArrowDown":I(n.addDays(z,7)),G.preventDefault();break;case"ArrowLeft":{const K=n.addDays(z,N?1:-1),X=n.addMonths(z,N?1:-1),te=Ts({adapter:n,date:K,minDate:N?K:n.startOfMonth(X),maxDate:N?n.endOfMonth(X):K,isDateDisabled:$,timezone:A});I(te||K),G.preventDefault();break}case"ArrowRight":{const K=n.addDays(z,N?-1:1),X=n.addMonths(z,N?-1:1),te=Ts({adapter:n,date:K,minDate:N?n.startOfMonth(X):K,maxDate:N?K:n.endOfMonth(X),isDateDisabled:$,timezone:A});I(te||K),G.preventDefault();break}case"Home":I(n.startOfWeek(z)),G.preventDefault();break;case"End":I(n.endOfWeek(z)),G.preventDefault();break;case"PageUp":I(n.addMonths(z,1)),G.preventDefault();break;case"PageDown":I(n.addMonths(z,-1)),G.preventDefault();break}}),q=me((G,z)=>I(z)),Z=me((G,z)=>{c!=null&&n.isSameDay(c,z)&&(V==null||V(!1))}),re=n.getMonth(a),Q=n.getYear(a),J=P.useMemo(()=>l.filter(G=>!!G).map(G=>n.startOfDay(G)),[n,l]),ie=`${Q}-${re}`,ee=P.useMemo(()=>P.createRef(),[ie]),H=P.useMemo(()=>{const G=n.getWeekArray(a);let z=n.addMonths(a,1);for(;L&&G.length<L;){const K=n.getWeekArray(z),X=n.isSameDay(G[G.length-1][0],K[0][0]);K.slice(X?1:0).forEach(te=>{G.length<L&&G.push(te)}),z=n.addMonths(z,1)}return G},[a,L,n]);return y.jsxs(A7,{role:"grid","aria-labelledby":j,className:O.root,children:[y.jsxs(_7,{role:"row",className:O.header,children:[x&&y.jsx(j7,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),uM(n,_).map((G,z)=>y.jsx(N7,{variant:"caption",role:"columnheader","aria-label":n.format(G,"weekday"),className:O.weekDayLabel,children:R(G)},z.toString()))]}),d?y.jsx(V7,{className:O.loadingContainer,children:m()}):y.jsx($7,U({transKey:ie,onExited:f,reduceAnimations:h,slideDirection:g,className:be(r,O.slideTransition)},b,{nodeRef:ee,children:y.jsx(F7,{ref:ee,role:"rowgroup",className:O.monthContainer,children:H.map((G,z)=>y.jsxs(B7,{role:"row",className:O.weekContainer,"aria-rowindex":z+1,children:[x&&y.jsx(L7,{className:O.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(G[0])),children:F.calendarWeekNumberText(n.getWeekNumber(G[0]))}),G.map((K,X)=>y.jsx(z7,{parentProps:t,day:K,selectedDays:J,isViewFocused:D,focusedDay:c,onKeyDown:Y,onFocus:q,onBlur:Z,onDaySelect:B,isDateDisabled:$,currentMonthNumber:re,"aria-colindex":X+1},K.toString()))]},`week-${G[0]}`))})}))]})}function Tb(e){return Te("MuiMonthCalendar",e)}const yi=Se("MuiMonthCalendar",["root","button","disabled","selected"]),W7=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],U7=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,Tb,e)},Y7=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${yi.disabled}`]:t.disabled},{[`&.${yi.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${yi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${yi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Pb=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:d,onBlur:u,slots:f,slotProps:p}=t,h=Me(t,W7),m=P.useRef(null),{ownerState:g}=It(),b=U({},g,{isMonthDisabled:r,isMonthSelected:i}),v=U7(o,b);Pt(()=>{var C;n&&((C=m.current)==null||C.focus())},[n]);const S=(f==null?void 0:f.monthButton)??Y7,w=je({elementType:S,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:C=>l(C,a),onKeyDown:C=>c(C,a),onFocus:C=>d(C,a),onBlur:C=>u(C,a)},ownerState:b,className:v.button});return y.jsx(S,U({},w))});process.env.NODE_ENV!=="production"&&(Pb.displayName="MonthCalendarButton");const q7=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],G7=e=>we({root:["root"]},Tb,e);function K7(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Us(n);return U({},n,o,{monthsPerRow:n.monthsPerRow??3})}const zh=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),Z7=ae.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>eo(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Da,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),bd=P.forwardRef(function(t,n){const o=K7(t,"MuiMonthCalendar"),{autoFocus:r,className:i,currentMonth:a,classes:l,value:c,defaultValue:d,referenceDate:u,disabled:f,disableFuture:p,disablePast:h,maxDate:m,minDate:g,onChange:b,shouldDisableMonth:v,readOnly:S,onMonthFocus:w,hasFocus:C,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:R,slots:D,slotProps:V}=o,j=Me(o,q7),{value:x,handleValueChange:L,timezone:A}=Qs({name:"MonthCalendar",timezone:M,value:c,defaultValue:d,referenceDate:u,onChange:b,valueManager:On}),_=Pa(A),O=pn(),N=Ze(),{ownerState:$}=It(),F=P.useMemo(()=>On.getInitialReferenceValue({value:x,adapter:N,props:o,timezone:A,referenceDate:u,granularity:Cn.month}),[]),B=G7(l),I=P.useMemo(()=>N.getMonth(_),[N,_]),Y=P.useMemo(()=>x!=null?N.getMonth(x):null,[x,N]),[q,Z]=P.useState(()=>Y||N.getMonth(F)),[re,Q]=oo({name:"MonthCalendar",state:"hasFocus",controlled:C,default:r??!1}),J=me(X=>{Q(X),T&&T(X)}),ie=P.useCallback(X=>{const te=N.startOfMonth(h&&N.isAfter(_,g)?_:g),oe=N.startOfMonth(p&&N.isBefore(_,m)?_:m),ue=N.startOfMonth(X);return N.isBefore(ue,te)||N.isAfter(ue,oe)?!0:v?v(ue):!1},[p,h,m,g,_,v,N]),ee=me((X,te)=>{if(S)return;const ue=(x&&a&&!N.isSameYear(x,a)?N.setYear(x,N.getYear(a)):x)??a??F,se=N.setMonth(ue,te);L(se)}),H=me(X=>{ie(N.setMonth(x??a??F,X))||(Z(X),J(!0),w&&w(X))});P.useEffect(()=>{Z(X=>Y!==null&&X!==Y?Y:X)},[Y]);const G=me((X,te)=>{switch(X.key){case"ArrowUp":H((12+te-3)%12),X.preventDefault();break;case"ArrowDown":H((12+te+3)%12),X.preventDefault();break;case"ArrowLeft":H((12+te+(O?1:-1))%12),X.preventDefault();break;case"ArrowRight":H((12+te+(O?-1:1))%12),X.preventDefault();break}}),z=me((X,te)=>{H(te)}),K=me((X,te)=>{q===te&&J(!1)});return y.jsx(Z7,U({ref:n,className:be(B.root,i),ownerState:$,role:"radiogroup","aria-labelledby":R,monthsPerRow:E},j,{children:Du(N,a??x??F).map(X=>{const te=N.getMonth(X),oe=N.format(X,"monthShort"),ue=N.format(X,"month"),se=zh(te,Y,X,x,N),de=f||ie(X);return y.jsx(Pb,{selected:se,value:te,onClick:ee,onKeyDown:G,autoFocus:re&&te===q,disabled:de,tabIndex:te===q&&!de?0:-1,onFocus:z,onBlur:K,"aria-current":zh(te,I,X,_,N)?"date":void 0,"aria-label":ue,slots:D,slotProps:V,classes:l,children:oe},oe)})}))});process.env.NODE_ENV!=="production"&&(bd.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(bd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,currentMonth:s.object,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 Eb(e){return Te("MuiYearCalendar",e)}const bi=Se("MuiYearCalendar",["root","button","disabled","selected"]),X7=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Q7=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,Eb,e)},J7=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${bi.disabled}`]:t.disabled},{[`&.${bi.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Mb=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:d,onBlur:u,slots:f,slotProps:p}=t,h=Me(t,X7),m=P.useRef(null),{ownerState:g}=It(),b=U({},g,{isYearDisabled:r,isYearSelected:i}),v=Q7(o,b);Pt(()=>{var C;n&&((C=m.current)==null||C.focus())},[n]);const S=(f==null?void 0:f.yearButton)??J7,w=je({elementType:S,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:C=>l(C,a),onKeyDown:C=>c(C,a),onFocus:C=>d(C,a),onBlur:C=>u(C,a)},ownerState:b,className:v.button});return y.jsx(S,U({},w))});process.env.NODE_ENV!=="production"&&(Mb.displayName="YearCalendarButton");const e4=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],t4=e=>we({root:["root"]},Eb,e);function n4(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Us(n);return U({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const o4=ae.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>eo(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Da,maxHeight:lI,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),r4=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),vd=P.forwardRef(function(t,n){const o=n4(t,"MuiYearCalendar"),{autoFocus:r,className:i,classes:a,value:l,defaultValue:c,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:h,minDate:m,onChange:g,readOnly:b,shouldDisableYear:v,onYearFocus:S,hasFocus:w,onFocusedViewChange:C,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:R,slots:D,slotProps:V}=o,j=Me(o,e4),{value:x,handleValueChange:L,timezone:A}=Qs({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:d,onChange:g,valueManager:On}),_=Pa(A),O=pn(),N=Ze(),{ownerState:$}=It(),F=P.useMemo(()=>On.getInitialReferenceValue({value:x,adapter:N,props:o,timezone:A,referenceDate:d,granularity:Cn.year}),[]),B=t4(a),I=P.useMemo(()=>N.getYear(_),[N,_]),Y=P.useMemo(()=>x!=null?N.getYear(x):null,[x,N]),[q,Z]=P.useState(()=>Y||N.getYear(F)),[re,Q]=oo({name:"YearCalendar",state:"hasFocus",controlled:w,default:r??!1}),J=me(le=>{Q(le),C&&C(le)}),ie=P.useCallback(le=>{if(p&&N.isBeforeYear(le,_)||f&&N.isAfterYear(le,_)||m&&N.isBeforeYear(le,m)||h&&N.isAfterYear(le,h))return!0;if(!v)return!1;const he=N.startOfYear(le);return v(he)},[f,p,h,m,_,v,N]),ee=me((le,he)=>{if(b)return;const pe=N.setYear(x??F,he);L(pe)}),H=me(le=>{ie(N.setYear(x??F,le))||(Z(le),J(!0),S==null||S(le))});P.useEffect(()=>{Z(le=>Y!==null&&le!==Y?Y:le)},[Y]);const G=T!=="desc"?E*1:E*-1,z=O&&T==="asc"||!O&&T==="desc"?-1:1,K=me((le,he)=>{switch(le.key){case"ArrowUp":H(he-G),le.preventDefault();break;case"ArrowDown":H(he+G),le.preventDefault();break;case"ArrowLeft":H(he-z),le.preventDefault();break;case"ArrowRight":H(he+z),le.preventDefault();break}}),X=me((le,he)=>{H(he)}),te=me((le,he)=>{q===he&&J(!1)}),oe=P.useRef(null),ue=Le(n,oe);P.useEffect(()=>{if(r||oe.current===null)return;const le=oe.current.querySelector('[tabindex="0"]');if(!le)return;const he=le.offsetHeight,pe=le.offsetTop,De=oe.current.clientHeight,Oe=oe.current.scrollTop,Xe=pe+he;he>De||pe<Oe||(oe.current.scrollTop=Xe-De/2-he/2)},[r]);const se=N.getYearRange([m,h]);T==="desc"&&se.reverse();let de=E-se.length%E;return de===E&&(de=0),y.jsxs(o4,U({ref:ue,className:be(B.root,i),ownerState:$,role:"radiogroup","aria-labelledby":R,yearsPerRow:E},j,{children:[se.map(le=>{const he=N.getYear(le),pe=he===Y,De=u||ie(le);return y.jsx(Mb,{selected:pe,value:he,onClick:ee,onKeyDown:K,autoFocus:re&&he===q,disabled:De,tabIndex:he===q&&!De?0:-1,onFocus:X,onBlur:te,"aria-current":I===he?"date":void 0,slots:D,slotProps:V,classes:a,children:N.format(le,"year")},N.format(le,"year"))}),Array.from({length:de},(le,he)=>y.jsx(r4,{},he))]}))});process.env.NODE_ENV!=="production"&&(vd.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(vd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const s4=e=>Te("MuiPickersCalendarHeader",e),i4=Se("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function a4(e){return Te("MuiPickersArrowSwitcher",e)}Se("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const l4=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],c4=["ownerState"],u4=["ownerState"],d4=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),f4=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Hh=ae.styled(Is,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),p4=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},a4,e),kb=P.forwardRef(function(t,n){const o=pn(),r=ae.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:d,isNextHidden:u,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:b,labelId:v,classes:S}=r,w=Me(r,l4),{ownerState:C}=It(),T=p4(S),E={isDisabled:d,isHidden:u,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:b},R=(l==null?void 0:l.previousIconButton)??Hh,D=je({elementType:R,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:U({},C,{isButtonHidden:M.isHidden??!1}),className:be(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Hh,j=je({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:U({},C,{isButtonHidden:E.isHidden??!1}),className:be(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??pA,L=je({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:T.leftArrowIcon}),A=Me(L,c4),_=(l==null?void 0:l.rightArrowIcon)??hA,O=je({elementType:_,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:T.rightArrowIcon}),N=Me(O,u4);return y.jsxs(d4,U({ref:n,className:be(T.root,a),ownerState:C},w,{children:[y.jsx(R,U({},D,{children:o?y.jsx(_,U({},N)):y.jsx(x,U({},A))})),i?y.jsx(fo,{variant:"subtitle1",component:"span",id:v,children:i}):y.jsx(f4,{className:T.spacer,ownerState:C}),y.jsx(V,U({},j,{children:o?y.jsx(x,U({},A)):y.jsx(_,U({},N))}))]}))});process.env.NODE_ENV!=="production"&&(kb.displayName="PickersArrowSwitcher");function h4(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ze();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function m4(e,{disablePast:t,minDate:n,timezone:o}){const r=Ze();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const g4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],y4=["ownerState"],b4=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},s4,e),v4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),x4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>U({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),C4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),w4=ae.styled(Is,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${i4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),S4=ae.styled(fA,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),xd=P.forwardRef(function(t,n){const o=po(),r=Ze(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:b,reduceAnimations:v,views:S,labelId:w,className:C,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,R=Me(i,g4),{ownerState:D}=It(),V=b4(T),j=(a==null?void 0:a.switchViewButton)??w4,x=je({elementType:j,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(b)},ownerState:U({},D,{view:b}),className:V.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??S4,A=je({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:V.switchViewIcon}),_=Me(A,y4),O=()=>m(r.addMonths(c,1)),N=()=>m(r.addMonths(c,-1)),$=h4(c,{disableFuture:u,maxDate:p,timezone:E}),F=m4(c,{disablePast:f,minDate:h,timezone:E}),B=()=>{if(!(S.length===1||!g||d))if(S.length===2)g(S.find(Y=>Y!==b)||S[0]);else{const Y=S.indexOf(b)!==0?0:1;g(S[Y])}};if(S.length===1&&S[0]==="year")return null;const I=r.formatByString(c,M);return y.jsxs(v4,U({},R,{ownerState:D,className:be(V.root,C),ref:n,children:[y.jsxs(x4,{role:"presentation",onClick:B,ownerState:D,"aria-live":"polite",className:V.labelContainer,children:[y.jsx(bb,{reduceAnimations:v,transKey:I,children:y.jsx(C4,{id:w,ownerState:D,className:V.label,children:I})}),S.length>1&&!d&&y.jsx(j,U({},x,{children:y.jsx(L,U({},_))}))]}),y.jsx(io,{in:b==="day",appear:!v,enter:!v,children:y.jsx(kb,{slots:a,slotProps:l,onGoToPrevious:N,isPreviousDisabled:F,previousLabel:o.previousMonth,onGoToNext:O,isNextDisabled:$,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(xd.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(xd.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 T4=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Da,maxHeight:od,display:"flex",flexDirection:"column",margin:"0 auto"}),P4=e=>Te("MuiDateCalendar",e);Se("MuiDateCalendar",["root","viewTransitionContainer"]);const E4=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],M4=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},P4,e);function k4(e,t){const n=ae.useThemeProps({props:e,name:t}),o=k1(n.reduceAnimations),r=Us(n);return U({},n,r,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>y.jsx("span",{children:"..."}))})}const O4=ae.styled(T4,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:od}),D4=ae.styled(bb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),Cd=P.forwardRef(function(t,n){const o=Ze(),{ownerState:r}=It(),i=co(),a=k4(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:h,onChange:m,onMonthChange:g,reduceAnimations:b,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:w,view:C,views:T,openTo:E,className:M,classes:R,disabled:D,readOnly:V,minDate:j,maxDate:x,disableHighlightToday:L,focusedView:A,onFocusedViewChange:_,showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:$,slots:F,slotProps:B,loading:I,renderLoading:Y,displayWeekNumber:q,yearsOrder:Z,yearsPerRow:re,monthsPerRow:Q,timezone:J}=a,ie=Me(a,E4),{value:ee,handleValueChange:H,timezone:G}=Qs({name:"DateCalendar",timezone:J,value:d,defaultValue:u,referenceDate:f,onChange:m,valueManager:On}),{view:z,setView:K,focusedView:X,setFocusedView:te,goToNextView:oe,setValueAndGoToNextView:ue}=D1({view:C,views:T,openTo:E,onChange:H,onViewChange:c,autoFocus:l,focusedView:A,onFocusedViewChange:_}),{referenceDate:se,calendarState:de,setVisibleDate:le,isDateDisabled:he,onMonthSwitchingAnimationEnd:pe}=h7({value:ee,referenceDate:f,reduceAnimations:b,onMonthChange:g,minDate:j,maxDate:x,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:G,getCurrentMonthFromVisibleDate:(ke,dt)=>o.isSameMonth(ke,dt)?dt:o.startOfMonth(ke)}),De=D&&ee||j,Oe=D&&ee||x,Xe=`${i}-grid-label`,tt=X!==null,St=(F==null?void 0:F.calendarHeader)??xd,Et=je({elementType:St,externalSlotProps:B==null?void 0:B.calendarHeader,additionalProps:{views:T,view:z,currentMonth:de.currentMonth,onViewChange:K,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:De,maxDate:Oe,disabled:D,disablePast:h,disableFuture:p,reduceAnimations:b,timezone:G,labelId:Xe},ownerState:r}),Pe=me(ke=>{const dt=o.startOfMonth(ke),vt=o.endOfMonth(ke),Rt=he(ke)?Ts({adapter:o,date:ke,minDate:o.isBefore(j,dt)?dt:j,maxDate:o.isAfter(x,vt)?vt:x,disablePast:h,disableFuture:p,isDateDisabled:he,timezone:G}):ke;Rt?(ue(Rt,"finish"),le({target:Rt,reason:"cell-interaction"})):(oe(),le({target:dt,reason:"cell-interaction"}))}),Ee=me(ke=>{const dt=o.startOfYear(ke),vt=o.endOfYear(ke),Rt=he(ke)?Ts({adapter:o,date:ke,minDate:o.isBefore(j,dt)?dt:j,maxDate:o.isAfter(x,vt)?vt:x,disablePast:h,disableFuture:p,isDateDisabled:he,timezone:G}):ke;Rt?(ue(Rt,"finish"),le({target:Rt,reason:"cell-interaction"})):(oe(),le({target:dt,reason:"cell-interaction"}))}),ge=me(ke=>H(ke&&qi(o,ke,ee??se),"finish",z));P.useEffect(()=>{o.isValid(ee)&&le({target:ee,reason:"controlled-value-change"})},[ee]);const Ne=M4(R),Ve={disablePast:h,disableFuture:p,maxDate:x,minDate:j},it={disableHighlightToday:L,readOnly:V,disabled:D,timezone:G,gridLabelId:Xe,slots:F,slotProps:B},Qe=P.useRef(z);P.useEffect(()=>{Qe.current!==z&&(X===Qe.current&&te(z,!0),Qe.current=z)},[X,te,z]);const Ft=P.useMemo(()=>[ee],[ee]);return y.jsxs(O4,U({ref:n,className:be(Ne.root,M),ownerState:r},ie,{children:[y.jsx(St,U({},Et,{slots:F,slotProps:B})),y.jsx(D4,{reduceAnimations:b,className:Ne.viewTransitionContainer,transKey:z,ownerState:r,children:y.jsxs("div",{children:[z==="year"&&y.jsx(vd,U({},Ve,it,{value:ee,onChange:Ee,shouldDisableYear:w,hasFocus:tt,onFocusedViewChange:ke=>te("year",ke),yearsOrder:Z,yearsPerRow:re,referenceDate:se})),z==="month"&&y.jsx(bd,U({},Ve,it,{currentMonth:de.currentMonth,hasFocus:tt,className:M,value:ee,onChange:Pe,shouldDisableMonth:S,onFocusedViewChange:ke=>te("month",ke),monthsPerRow:Q,referenceDate:se})),z==="day"&&y.jsx(H7,U({},de,Ve,it,{onMonthSwitchingAnimationEnd:pe,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:Ft,onSelectedDaysChange:ge,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:w,onFocusedViewChange:ke=>te("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:$,displayWeekNumber:q,loading:I,renderLoading:Y}))]})})]}))});process.env.NODE_ENV!=="production"&&(Cd.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(Cd.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 $o=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:d,classes:u,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:b,shouldDisableYear:v,reduceAnimations:S,onMonthChange:w,monthsPerRow:C,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:R,slotProps:D,loading:V,renderLoading:j,disableHighlightToday:x,readOnly:L,disabled:A,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:O,sx:N,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:B,timezone:I})=>y.jsx(Cd,{view:e,onViewChange:t,views:n.filter(Bp),focusedView:o&&Bp(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:d,classes:u,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:b,shouldDisableYear:v,reduceAnimations:S,onMonthChange:w,monthsPerRow:C,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:R,slotProps:D,loading:V,renderLoading:j,disableHighlightToday:x,readOnly:L,disabled:A,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:O,sx:N,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:B,timezone:I});process.env.NODE_ENV!=="production"&&($o.displayName="renderDateViewCalendar");const wd=P.forwardRef(function(t,n){var c;const o=Ze(),r=r1(t,"MuiDesktopDatePicker"),i=U({day:$o,month:$o,year:$o},r.viewRenderers),a=U({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:Iu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:U({field:qa},r.slots),slotProps:U({},r.slotProps,{field:d=>{var u;return U({},nn((u=r.slotProps)==null?void 0:u.field,d),t1(r))},toolbar:U({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=CI({ref:n,props:a,valueManager:On,valueType:"date",validator:Ws,steps:null});return l()});process.env.NODE_ENV!=="production"&&(wd.displayName="DesktopDatePicker");wd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};function I4(e){return Te("MuiDialogContent",e)}Se("MuiDialogContent",["root","dividers"]);const R4=Se("MuiDialogTitle",["root"]),A4=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},I4,t)},_4=ve("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${R4.root} + &`]:{paddingTop:0}}}]}))),Ob=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=A4(l);return y.jsx(_4,{className:be(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ob.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function N4(e){return Te("MuiDialog",e)}const gs=Se("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Db=P.createContext({});process.env.NODE_ENV!=="production"&&(Db.displayName="DialogContext");const j4=ve(ld,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),L4=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return we(a,N4,t)},V4=ve(cd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),$4=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),F4=ve(Ks,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${gs.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${gs.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${gs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ib=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiDialog"}),r=ha(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:d,BackdropProps:u,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:b="sm",onClick:v,onClose:S,open:w,PaperComponent:C=Ks,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:R={},TransitionComponent:D=io,transitionDuration:V=i,TransitionProps:j,...x}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:b,scroll:E},A=L4(L),_=P.useRef(),O=K=>{_.current=K.target===K.currentTarget},N=K=>{v&&v(K),_.current&&(_.current=null,S&&S(K,"backdropClick"))},$=co(l),F=P.useMemo(()=>({titleId:$}),[$]),B={transition:D,...M},I={transition:j,paper:T,backdrop:u,...R},Y={slots:B,slotProps:I},[q,Z]=rt("root",{elementType:V4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:be(A.root,p),ref:n}),[re,Q]=rt("backdrop",{elementType:j4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:A.backdrop}),[J,ie]=rt("paper",{elementType:F4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:be(A.paper,T.className)}),[ee,H]=rt("container",{elementType:$4,externalForwardedProps:Y,ownerState:L,className:A.container}),[G,z]=rt("transition",{elementType:io,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:w,timeout:V,role:"presentation"}});return y.jsx(q,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:V,as:d,...Q}},disableEscapeKeyDown:h,onClose:S,open:w,onClick:N,...Z,...x,children:y.jsx(G,{...z,children:y.jsx(ee,{onMouseDown:O,...H,children:y.jsx(J,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":$,"aria-modal":c,...ie,children:y.jsx(Db.Provider,{value:F,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Ib.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),container:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,container:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const B4=ae.styled(Ib,{slot:"internal"})({[`& .${gs.container}`]:{outline:0},[`& .${gs.paper}`]:{outline:0,minWidth:Da}}),z4=ae.styled(Ob,{slot:"internal"})({"&:first-of-type":{padding:0}});function H4(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Dr(),{dismissViews:i,onPopperExited:a}=It(),l=(n==null?void 0:n.dialog)??B4,c=(n==null?void 0:n.mobileTransition)??io;return y.jsx(l,U({open:r,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:y.jsx(z4,{children:t})}))}const W4=["props","steps"],U4=["ownerState"],Y4=e=>{var E;let{props:t,steps:n}=e,o=Me(e,W4);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,d=U1({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:p}=R1(U({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:d})),h=u.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,b=je({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Me(b,U4),S=r.layout??Ia;let w=h;m&&(a?w=`${h}-label`:w=void 0);const C=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:U({"aria-labelledby":w},i==null?void 0:i.mobilePaper)}),T=()=>y.jsxs(Zy,U({},u,{children:[y.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},C,v.slotProps),inputRef:l})),y.jsx(H4,{slots:r,slotProps:C,children:y.jsx(S,U({},C==null?void 0:C.layout,{slots:r,slotProps:C,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Sd=P.forwardRef(function(t,n){var c;const o=Ze(),r=r1(t,"MuiMobileDatePicker"),i=U({day:$o,month:$o,year:$o},r.viewRenderers),a=U({},r,{viewRenderers:i,format:Iu(o,r,!1),slots:U({field:qa},r.slots),slotProps:U({},r.slotProps,{field:d=>{var u;return U({},nn((u=r.slotProps)==null?void 0:u.field,d),t1(r))},toolbar:U({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=Y4({ref:n,props:a,valueManager:On,valueType:"date",validator:Ws,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Sd.displayName="MobileDatePicker");Sd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const q4=["desktopModeMediaQuery"],Td=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=QO}=o,i=Me(o,q4);return Wy(r,{defaultMatches:!0})?y.jsx(wd,U({ref:n},i)):y.jsx(Sd,U({ref:n},i))});process.env.NODE_ENV!=="production"&&(Td.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(Td.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});var Rb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",c="hour",d="day",u="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var _=["th","st","nd","rd"],O=A%100;return"["+A+(_[(O-20)%10]||_[O]||_[0])+"]"}},w=function(A,_,O){var N=String(A);return!N||N.length>=_?A:""+Array(_+1-N.length).join(O)+A},C={s:w,z:function(A){var _=-A.utcOffset(),O=Math.abs(_),N=Math.floor(O/60),$=O%60;return(_<=0?"+":"-")+w(N,2,"0")+":"+w($,2,"0")},m:function A(_,O){if(_.date()<O.date())return-A(O,_);var N=12*(O.year()-_.year())+(O.month()-_.month()),$=_.clone().add(N,f),F=O-$<0,B=_.clone().add(N+(F?-1:1),f);return+(-(N+(O-$)/(F?$-B:B-$))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:f,y:h,w:u,d,D:m,h:c,m:l,s:a,ms:i,Q:p}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},T="en",E={};E[T]=S;var M="$isDayjsObject",R=function(A){return A instanceof x||!(!A||!A[M])},D=function A(_,O,N){var $;if(!_)return T;if(typeof _=="string"){var F=_.toLowerCase();E[F]&&($=F),O&&(E[F]=O,$=F);var B=_.split("-");if(!$&&B.length>1)return A(B[0])}else{var I=_.name;E[I]=_,$=I}return!N&&$&&(T=$),$||!N&&T},V=function(A,_){if(R(A))return A.clone();var O=typeof _=="object"?_:{};return O.date=A,O.args=arguments,new x(O)},j=C;j.l=D,j.i=R,j.w=function(A,_){return V(A,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var x=function(){function A(O){this.$L=D(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var _=A.prototype;return _.parse=function(O){this.$d=function(N){var $=N.date,F=N.utc;if($===null)return new Date(NaN);if(j.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var B=$.match(b);if(B){var I=B[2]-1||0,Y=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],I,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)):new Date(B[1],I,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)}}return new Date($)}(O),this.init()},_.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},_.$utils=function(){return j},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(O,N){var $=V(O);return this.startOf(N)<=$&&$<=this.endOf(N)},_.isAfter=function(O,N){return V(O)<this.startOf(N)},_.isBefore=function(O,N){return this.endOf(N)<V(O)},_.$g=function(O,N,$){return j.u(O)?this[N]:this.set($,O)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(O,N){var $=this,F=!!j.u(N)||N,B=j.p(O),I=function(ee,H){var G=j.w($.$u?Date.UTC($.$y,H,ee):new Date($.$y,H,ee),$);return F?G:G.endOf(d)},Y=function(ee,H){return j.w($.toDate()[ee].apply($.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(H)),$)},q=this.$W,Z=this.$M,re=this.$D,Q="set"+(this.$u?"UTC":"");switch(B){case h:return F?I(1,0):I(31,11);case f:return F?I(1,Z):I(0,Z+1);case u:var J=this.$locale().weekStart||0,ie=(q<J?q+7:q)-J;return I(F?re-ie:re+(6-ie),Z);case d:case m:return Y(Q+"Hours",0);case c:return Y(Q+"Minutes",1);case l:return Y(Q+"Seconds",2);case a:return Y(Q+"Milliseconds",3);default:return this.clone()}},_.endOf=function(O){return this.startOf(O,!1)},_.$set=function(O,N){var $,F=j.p(O),B="set"+(this.$u?"UTC":""),I=($={},$[d]=B+"Date",$[m]=B+"Date",$[f]=B+"Month",$[h]=B+"FullYear",$[c]=B+"Hours",$[l]=B+"Minutes",$[a]=B+"Seconds",$[i]=B+"Milliseconds",$)[F],Y=F===d?this.$D+(N-this.$W):N;if(F===f||F===h){var q=this.clone().set(m,1);q.$d[I](Y),q.init(),this.$d=q.set(m,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](Y);return this.init(),this},_.set=function(O,N){return this.clone().$set(O,N)},_.get=function(O){return this[j.p(O)]()},_.add=function(O,N){var $,F=this;O=Number(O);var B=j.p(N),I=function(Z){var re=V(F);return j.w(re.date(re.date()+Math.round(Z*O)),F)};if(B===f)return this.set(f,this.$M+O);if(B===h)return this.set(h,this.$y+O);if(B===d)return I(1);if(B===u)return I(7);var Y=($={},$[l]=o,$[c]=r,$[a]=n,$)[B]||1,q=this.$d.getTime()+O*Y;return j.w(q,this)},_.subtract=function(O,N){return this.add(-1*O,N)},_.format=function(O){var N=this,$=this.$locale();if(!this.isValid())return $.invalidDate||g;var F=O||"YYYY-MM-DDTHH:mm:ssZ",B=j.z(this),I=this.$H,Y=this.$m,q=this.$M,Z=$.weekdays,re=$.months,Q=$.meridiem,J=function(H,G,z,K){return H&&(H[G]||H(N,F))||z[G].slice(0,K)},ie=function(H){return j.s(I%12||12,H,"0")},ee=Q||function(H,G,z){var K=H<12?"AM":"PM";return z?K.toLowerCase():K};return F.replace(v,function(H,G){return G||function(z){switch(z){case"YY":return String(N.$y).slice(-2);case"YYYY":return j.s(N.$y,4,"0");case"M":return q+1;case"MM":return j.s(q+1,2,"0");case"MMM":return J($.monthsShort,q,re,3);case"MMMM":return J(re,q);case"D":return N.$D;case"DD":return j.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return J($.weekdaysMin,N.$W,Z,2);case"ddd":return J($.weekdaysShort,N.$W,Z,3);case"dddd":return Z[N.$W];case"H":return String(I);case"HH":return j.s(I,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ee(I,Y,!0);case"A":return ee(I,Y,!1);case"m":return String(Y);case"mm":return j.s(Y,2,"0");case"s":return String(N.$s);case"ss":return j.s(N.$s,2,"0");case"SSS":return j.s(N.$ms,3,"0");case"Z":return B}return null}(H)||B.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(O,N,$){var F,B=this,I=j.p(N),Y=V(O),q=(Y.utcOffset()-this.utcOffset())*o,Z=this-Y,re=function(){return j.m(B,Y)};switch(I){case h:F=re()/12;break;case f:F=re();break;case p:F=re()/3;break;case u:F=(Z-q)/6048e5;break;case d:F=(Z-q)/864e5;break;case c:F=Z/r;break;case l:F=Z/o;break;case a:F=Z/n;break;default:F=Z}return $?F:j.a(F)},_.daysInMonth=function(){return this.endOf(f).$D},_.$locale=function(){return E[this.$L]},_.locale=function(O,N){if(!O)return this.$L;var $=this.clone(),F=D(O,N,!0);return F&&($.$L=F),$},_.clone=function(){return j.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},A}(),L=x.prototype;return V.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",d],["$M",f],["$y",h],["$D",m]].forEach(function(A){L[A[1]]=function(_){return this.$g(_,A[0],A[1])}}),V.extend=function(A,_){return A.$i||(A(_,x,V),A.$i=!0),V},V.locale=D,V.isDayjs=R,V.unix=function(A){return V(1e3*A)},V.en=E[T],V.Ls=E,V.p={},V})})(Rb);var G4=Rb.exports;const xt=ao(G4);var Ab={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pr,function(){var n="week",o="year";return function(r,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=a(this).startOf(o).add(1,o).date(d),f=a(this).endOf(n);if(u.isBefore(f))return 1}var p=a(this).startOf(o).date(d).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ab);var K4=Ab.exports;const Z4=ao(K4);var _b={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},d=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(v){this[b]=+v}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var S=v.match(/([+-]|\d\d)/g),w=60*S[1]+(+S[2]||0);return w===0?0:S[0]==="+"?-w:w}(b)}],p=function(b){var v=c[b];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(b,v){var S,w=c.meridiem;if(w){for(var C=1;C<=24;C+=1)if(b.indexOf(w(C,0,v))>-1){S=C>12;break}}else S=b===(v?"pm":"PM");return S},m={A:[l,function(b){this.afternoon=h(b,!1)}],a:[l,function(b){this.afternoon=h(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[l,function(b){var v=c.ordinal,S=b.match(/\d+/);if(this.day=S[0],v)for(var w=1;w<=31;w+=1)v(w).replace(/\[|\]/g,"")===b&&(this.day=w)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[l,function(b){var v=p("months"),S=(p("monthsShort")||v.map(function(w){return w.slice(0,3)})).indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(b){var v=p("months").indexOf(b)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(b){this.year=d(b)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(b){var v,S;v=b,S=c&&c.formats;for(var w=(b=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,j,x){var L=x&&x.toUpperCase();return j||S[x]||n[x]||S[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,_,O){return _||O.slice(1)})})).match(o),C=w.length,T=0;T<C;T+=1){var E=w[T],M=m[E],R=M&&M[0],D=M&&M[1];w[T]=D?{regex:R,parser:D}:E.replace(/^\[|\]$/g,"")}return function(V){for(var j={},x=0,L=0;x<C;x+=1){var A=w[x];if(typeof A=="string")L+=A.length;else{var _=A.regex,O=A.parser,N=V.slice(L),$=_.exec(N)[0];O.call(j,$),V=V.replace($,"")}}return function(F){var B=F.afternoon;if(B!==void 0){var I=F.hours;B?I<12&&(F.hours+=12):I===12&&(F.hours=0),delete F.afternoon}}(j),j}}return function(b,v,S){S.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(d=b.parseTwoDigitYear);var w=v.prototype,C=w.parse;w.parse=function(T){var E=T.date,M=T.utc,R=T.args;this.$u=M;var D=R[1];if(typeof D=="string"){var V=R[2]===!0,j=R[3]===!0,x=V||j,L=R[2];j&&(L=R[2]),c=this.$locale(),!V&&L&&(c=S.Ls[L]),this.$d=function(N,$,F,B){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*N);var I=g($)(N),Y=I.year,q=I.month,Z=I.day,re=I.hours,Q=I.minutes,J=I.seconds,ie=I.milliseconds,ee=I.zone,H=I.week,G=new Date,z=Z||(Y||q?1:G.getDate()),K=Y||G.getFullYear(),X=0;Y&&!q||(X=q>0?q-1:G.getMonth());var te,oe=re||0,ue=Q||0,se=J||0,de=ie||0;return ee?new Date(Date.UTC(K,X,z,oe,ue,se,de+60*ee.offset*1e3)):F?new Date(Date.UTC(K,X,z,oe,ue,se,de)):(te=new Date(K,X,z,oe,ue,se,de),H&&(te=B(te).week(H).toDate()),te)}catch{return new Date("")}}(E,D,M,S),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),x&&E!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var A=D.length,_=1;_<=A;_+=1){R[1]=D[_-1];var O=S.apply(this,R);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}_===A&&(this.$d=new Date(""))}else C.call(this,T)}}})})(_b);var X4=_b.exports;const Q4=ao(X4);var Nb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,r,i){var a=r.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var b=g&&g.toUpperCase();return m||p[g]||n[g]||p[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,S,w){return S||w.slice(1)})})}(c,d===void 0?{}:d);return l.call(this,u)}}})})(Nb);var J4=Nb.exports;const e_=ao(J4);var jb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pr,function(){return function(n,o,r){o.prototype.isBetween=function(i,a,l,c){var d=r(i),u=r(a),f=(c=c||"()")[0]==="(",p=c[1]===")";return(f?this.isAfter(d,l):!this.isBefore(d,l))&&(p?this.isBefore(u,l):!this.isAfter(u,l))||(f?this.isBefore(d,l):!this.isAfter(d,l))&&(p?this.isAfter(u,l):!this.isBefore(u,l))}}})})(jb);var t_=jb.exports;const n_=ao(t_);var Lb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pr,function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return i.bind(this)(u)}}})})(Lb);var o_=Lb.exports;const r_=ao(o_);xt.extend(e_);xt.extend(Z4);xt.extend(n_);xt.extend(r_);const s_={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},i_={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Dl=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
243
- `),Wh=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
244
- `);class a_{constructor({locale:t,formats:n}={}){fe(this,"isMUIAdapter",!0);fe(this,"isTimezoneCompatible",!0);fe(this,"lib","dayjs");fe(this,"escapedCharacters",{start:"[",end:"]"});fe(this,"formatTokenMap",s_);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof xt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof xt.tz<"u");fe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});fe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return xt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=xt.tz.guess();o==="UTC"?n=xt(t):n=xt.tz(t,o)}else n=xt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(Dl);return this.setLocaleToValue(xt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Dl);if(!this.hasTimezonePlugin())throw new Error(Wh);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(xt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=xt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&I1(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});fe(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});fe(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));fe(this,"getInvalidDate",()=>xt(new Date("Invalid date")));fe(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});fe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(Dl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Wh)}return this.setLocaleToValue(xt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:xt(t,n,this.locale,!0));fe(this,"getCurrentLocaleCode",()=>this.locale||"en");fe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));fe(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});fe(this,"isValid",t=>t==null?!1:t.isValid());fe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));fe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));fe(this,"formatNumber",t=>t);fe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());fe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));fe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));fe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));fe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));fe(this,"isAfter",(t,n)=>t>n);fe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));fe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));fe(this,"isBefore",(t,n)=>t<n);fe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));fe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));fe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);fe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));fe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));fe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));fe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));fe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));fe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));fe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));fe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));fe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));fe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));fe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));fe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));fe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));fe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));fe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));fe(this,"getYear",t=>t.year());fe(this,"getMonth",t=>t.month());fe(this,"getDate",t=>t.date());fe(this,"getHours",t=>t.hour());fe(this,"getMinutes",t=>t.minute());fe(this,"getSeconds",t=>t.second());fe(this,"getMilliseconds",t=>t.millisecond());fe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));fe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));fe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));fe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));fe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));fe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));fe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));fe(this,"getDaysInMonth",t=>t.daysInMonth());fe(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let r=0,i=n;const a=[];for(;i<o;){const l=Math.floor(r/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),r+=1}return a});fe(this,"getWeekNumber",t=>t.week());fe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=U({},i_,n),xt.extend(Q4)}getDayOfWeek(t){return t.day()+1}}const l_="_root_1tj4p_1",c_="_container_1tj4p_72",u_="_header_1tj4p_79",d_="_headerText_1tj4p_88",f_="_headerTitle_1tj4p_93",p_="_headerSubtitle_1tj4p_98",h_="_controls_1tj4p_104",m_="_headerButton_1tj4p_111",g_="_zoomGroup_1tj4p_131",y_="_zoomLabel_1tj4p_142",b_="_tracksWrapper_1tj4p_151",v_="_tracksWithHeader_1tj4p_156",x_="_layers_1tj4p_160",C_="_timeScale_1tj4p_166",w_="_videoTrack_1tj4p_170",S_="_trackBox_1tj4p_178",T_="_trackLabelRow_1tj4p_183",P_="_trackArea_1tj4p_200",E_="_tick_1tj4p_206",M_="_tickMajor_1tj4p_214",k_="_tickMinor_1tj4p_218",O_="_tickLabel_1tj4p_222",D_="_segment_1tj4p_234",I_="_selectionOverlay_1tj4p_274",R_="_playhead_1tj4p_283",A_="_playheadLine_1tj4p_293",__="_playheadHandle_1tj4p_303",ze={root:l_,container:c_,header:u_,headerText:d_,headerTitle:f_,headerSubtitle:p_,controls:h_,headerButton:m_,zoomGroup:g_,zoomLabel:y_,tracksWrapper:b_,tracksWithHeader:v_,layers:x_,timeScale:C_,videoTrack:w_,trackBox:S_,trackLabelRow:T_,trackArea:P_,tick:E_,tickMajor:M_,tickMinor:k_,tickLabel:O_,segment:D_,selectionOverlay:I_,playhead:R_,playheadLine:A_,playheadHandle:__};function lt(e,t,n){return Math.min(n,Math.max(t,e))}function Jn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function tr(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function ot(e){return String(Math.floor(e)).padStart(2,"0")}function N_(e){return String(Math.floor(e)).padStart(4,"0")}function Uh(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60);return`${N_(t.getFullYear())}${ot(t.getMonth()+1)}${ot(t.getDate())}T${ot(o)}${ot(r)}${ot(i)}Z`}function cr(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Il(e){const t=Math.max(0,e),n=Math.floor(t/3600)%24,o=Math.floor(t%3600/60),r=Math.floor(t%60);return`${ot(n)}:${ot(o)}:${ot(r)}`}function j_(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return`${ot(o)}:${ot(r)}:${ot(i)}:${ot(l)}`}function Rl(e){const t=Math.max(0,e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=Math.floor(t%60);return n>0?`${ot(n)}:${ot(o)}:${ot(r)}`:`${ot(o)}:${ot(r)}`}function L_(e,t){const n=Math.max(0,e),o=Math.floor(n/3600),r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return o>0?`${ot(o)}:${ot(r)}:${ot(i)}:${ot(l)}`:`${ot(r)}:${ot(i)}:${ot(l)}`}function V_(e){const{width:t,windowSeconds:n,fps:o}=e,r=t>0?t/n:0,i=1/Math.max(1,o),a=[i,2*i,5*i,.25,.5,1,2,5,10,15,30,60,2*60,5*60,10*60,15*60,30*60,60*60,2*60*60,3*60*60,6*60*60],l=90,c=45;let d=a[a.length-1];for(const p of a)if(p*r>=l){d=p;break}const u=[d/2,d/5,d/10].filter(p=>p>0);let f=u[0]??d;for(const p of u)if(p*r>=c){f=p;break}return{majorStep:d,minorStep:f}}const $_=(e,t,n)=>t>=3600||t>=60||t>=1?Il(e).slice(0,5):j_(e,n),F_=(e,t,n)=>t>=3600||t>=60||t>=1?Rl(e):L_(e,n);function B_(){const e=k.useRef(null),[t,n]=k.useState(0);return k.useLayoutEffect(()=>{const o=e.current;if(!o)return;const r=new ResizeObserver(()=>{n(o.getBoundingClientRect().width)});return r.observe(o),n(o.getBoundingClientRect().width),()=>r.disconnect()},[]),{ref:e,width:t}}function z_(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i,isLive:a=!1,date:l,onChangePeriod:c,segments:d,events:u,fps:f=30}=e,[p,h]=k.useState(()=>a?cr():0),[m,g]=k.useState(a),[b,v]=k.useState(null),[S,w]=k.useState({windowSeconds:t,fps:f});k.useEffect(()=>{a&&(g(!0),h(cr()))},[a]),k.useEffect(()=>{if(!m)return;const z=setInterval(()=>{h(cr())},1e3);return()=>clearInterval(z)},[m]);const{ref:C,width:T}=B_(),E=10,R=Math.max(0,T-E-10),[D,V]=k.useState(0),j=k.useMemo(()=>{const z=Math.max(1/Math.max(1,S.fps),.05);return lt(S.windowSeconds,z,t)},[S.windowSeconds,S.fps,t]);k.useEffect(()=>{if(!m||T<=0)return;const z=lt(p-j*.9,0,Math.max(0,t-j));V(z)},[p,m,T,j,t]);const x=k.useMemo(()=>{const z=lt(D,0,Math.max(0,t-j)),K=z+j;return{start:z,end:K,seconds:j}},[D,t,j]),L=k.useMemo(()=>{if(R<=0)return[];const{majorStep:z,minorStep:K}=V_({width:R,windowSeconds:x.seconds,fps:S.fps}),X=Math.floor(x.start/K)*K,te=x.end,oe=[],ue=K*1e-6;for(let se=X;se<=te+ue;se+=K){const de=Jn({time:se,windowStart:x.start,windowSeconds:x.seconds,width:R});if(de<-1||de>R+1)continue;const le=Math.abs(se/z-Math.round(se/z))<1e-6;oe.push({time:se,px:de,kind:le?"major":"minor",label:le?r(se,z,S.fps):void 0})}return oe},[R,r,x.end,x.seconds,x.start,S.fps]),A=k.useRef(c);A.current=c;const _=k.useRef(l);_.current=l;const O=k.useCallback((z,K)=>{const X=A.current;if(!X)return;const te=_.current;X({startDate:Uh(z,te),endDate:Uh(K,te)})},[]),N=k.useRef(null),$=k.useRef(null),F=z=>{$.current=z,N.current==null&&(N.current=requestAnimationFrame(()=>{N.current=null;const K=$.current;$.current=null,K==null||K()}))};k.useEffect(()=>()=>{N.current!=null&&cancelAnimationFrame(N.current)},[]);const B=k.useRef(null),I=z=>{const K=C.current;if(!K)return 0;const X=K.getBoundingClientRect();return lt(z-X.left-E,0,R)},Y=z=>{if(z.button!==0)return;const K=C.current;if(!K)return;K.setPointerCapture(z.pointerId);const X=I(z.clientX),te=lt(tr({px:X,windowStart:x.start,windowSeconds:x.seconds,width:R}),0,t);g(!1),B.current={mode:"playhead",pointerId:z.pointerId,startPx:X,startTime:te},h(te)},q=z=>{if(z.button!==0)return;const K=C.current;if(!K)return;K.setPointerCapture(z.pointerId);const X=I(z.clientX),te=lt(tr({px:X,windowStart:x.start,windowSeconds:x.seconds,width:R}),0,t);g(!1),B.current={mode:"select",pointerId:z.pointerId,startPx:X,startTime:te},v({start:te,end:te})},Z=z=>{if(z.button!==0)return;const K=C.current;if(!K)return;K.setPointerCapture(z.pointerId);const X=I(z.clientX),te=lt(tr({px:X,windowStart:x.start,windowSeconds:x.seconds,width:R}),0,t);g(!1),B.current={mode:"playhead",pointerId:z.pointerId,startPx:X,startTime:te},h(te)},re=z=>{const K=B.current;if(!K||K.pointerId!==z.pointerId)return;const X=I(z.clientX);F(()=>{const te=lt(tr({px:X,windowStart:x.start,windowSeconds:x.seconds,width:R}),0,t);if(K.mode==="playhead")h(te);else{const oe=Math.min(K.startTime,te),ue=Math.max(K.startTime,te);v({start:oe,end:ue})}})},Q=z=>{const K=B.current;if(!(!K||K.pointerId!==z.pointerId)&&(B.current=null,K.mode==="select"&&b)){const X=Math.abs(b.end-b.start);if(X<Math.max(1/Math.max(1,S.fps),.1))v(null),h(K.startTime),O(K.startTime,K.startTime);else if(O(b.start,b.end),o){const te=lt(X*1.05,Math.max(1/Math.max(1,S.fps),.05),t),oe=lt(b.start,0,Math.max(0,t-te));w(ue=>({...ue,windowSeconds:te})),V(oe)}}},J=z=>{if(!n||T<=0)return;z.preventDefault(),g(!1);const K=I(z.clientX),X=lt(tr({px:K,windowStart:x.start,windowSeconds:x.seconds,width:R}),0,t),oe=z.deltaY<0?.8:1.25,ue=lt(x.seconds*oe,Math.max(1/Math.max(1,S.fps),.05),t),se=lt(X-K/Math.max(1,R)*ue,0,Math.max(0,t-ue));w(de=>({...de,windowSeconds:ue})),V(se)},ie=(z,K)=>{g(!1);const X=lt(z,0,t);h(X),O(K.start,K.end)},ee=z=>{i&&v(null),g(!1);const K=lt(z,0,t);h(K),O(K,K),V(lt(z-x.seconds/2,0,Math.max(0,t-x.seconds)))},H=()=>{g(!1),w(z=>({...z,windowSeconds:t})),V(0)},G=k.useCallback(()=>{g(!0),h(cr()),v(null)},[]);return{viewportRef:C,width:T,axisLeft:E,axisWidth:R,totalSeconds:t,zoom:S,setZoom:w,isLive:m,setIsLive:g,currentTime:p,selectedRange:b,setSelectedRange:v,videoSegments:d,events:u,view:x,ticks:L,onWheel:J,onPointerDownScrub:Y,onPointerDownSelect:q,onPointerDownPlayhead:Z,onPointerMove:re,onPointerUp:Q,onClickSegment:ie,onClickEvent:ee,resetView:H,goLive:G}}const Vb=({ticks:e})=>y.jsx("div",{className:ze.trackArea,children:e.map(t=>y.jsxs("div",{children:[y.jsx("div",{className:`${ze.tick} ${t.kind==="minor"?ze.tickMinor:ze.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?y.jsx("div",{className:ze.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});Vb.displayName="TimeScale";const $b=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:lt(c.start,0,r),end:lt(c.end,0,r)})).filter(c=>c.end>c.start).map(c=>({original:c.original,start:Math.max(c.start,t),end:Math.min(c.end,t+n)})).filter(c=>c.end>c.start),l=(c,d)=>{if(!i)return;c.stopPropagation();const u=c.currentTarget.getBoundingClientRect(),f=c.clientX-u.left,h=Jn({time:d.start,windowStart:t,windowSeconds:n,width:o})+f,m=lt(tr({px:h,windowStart:t,windowSeconds:n,width:o}),d.original.start,d.original.end);i(m,d.original)};return y.jsx("div",{className:ze.trackArea,children:a.map((c,d)=>{const u=Jn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Jn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-u);return y.jsx("div",{className:ze.segment,style:{left:`${u}px`,width:`${p}px`},onClick:i?h=>l(h,c):void 0,onPointerDown:i?h=>h.stopPropagation():void 0,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?`Segmento ${c.original.start.toFixed(0)}s → ${c.original.end.toFixed(0)}s`:void 0,"aria-hidden":!i},`${c.start}-${c.end}-${d}`)})})};$b.displayName="VideoTrack";const Fb=k.forwardRef(({className:e,sx:t,title:n="Timeline",subtitle:o="Arraste para aplicar zoom no período desejado",showHeader:r=!0,timeScaleMode:i="day24h",tickLabelFormatter:a,totalSeconds:l=24*60*60,enableWheelZoom:c=!1,height:d=80,autoZoomOnSelection:u=!0,showZoomControls:f=!0,enableScrubOnTracks:p=!1,clearSelectionOnEventClick:h=!0,isLive:m=!1,onDownloadClick:g,date:b,onDateChange:v,videoLabel:S="Vídeo",eventsLabel:w="Eventos",downloadLabel:C="Baixar vídeo",onChangePeriod:T,onSegmentClick:E,onEventClick:M,segments:R,events:D},V)=>{const x=ae.useTheme().palette.mode==="dark",[L,A]=k.useState(!1),_=a??(i==="duration"?F_:$_),{viewportRef:O,axisLeft:N,axisWidth:$,zoom:F,currentTime:B,selectedRange:I,videoSegments:Y,view:q,ticks:Z,onWheel:re,onPointerDownScrub:Q,onPointerDownSelect:J,onPointerDownPlayhead:ie,onPointerMove:ee,onPointerUp:H,onClickSegment:G,setZoom:z,goLive:K}=z_({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:u,tickLabelFormatter:_,clearSelectionOnEventClick:h,isLive:m,date:b??new Date,onChangePeriod:T,segments:R??[],events:D??[]});k.useImperativeHandle(V,()=>({goLive:K}),[K]);const X=$?N+Jn({time:B,windowStart:q.start,windowSeconds:q.seconds,width:$}):N,te=Math.max(1/Math.max(1,F.fps),.5),oe=te/l,ue=(()=>{const le=lt(q.seconds,te,l);if(oe<=0||oe>=1)return 0;const he=Math.log(le/l)/Math.log(oe)*100;return lt(he,0,100)})(),se=le=>{const he=lt(le,0,100),pe=l*Math.pow(oe,he/100);z(De=>({...De,windowSeconds:lt(pe,te,l)}))},de=`${Math.round(ue)}%`;return y.jsxs(W.Card,{elevation:0,className:`${ze.root} ${ze.container} ${e??""}`.trim(),"data-theme":x?"dark":"light",sx:t,children:[r?y.jsxs("div",{className:ze.header,children:[y.jsxs("div",{className:ze.headerText,children:[y.jsx(W.Typography,{variant:"subtitle1",className:ze.headerTitle,children:n}),y.jsx(W.Typography,{variant:"caption",className:ze.headerSubtitle,children:o})]}),y.jsxs("div",{className:ze.controls,children:[g?y.jsxs("button",{type:"button",className:ze.headerButton,onClick:g,"aria-label":C,children:[y.jsx(eM,{fontSize:"small"}),C]}):null,b!==void 0?y.jsx(Sa,{dateAdapter:a_,children:y.jsx(Td,{open:L,onOpen:()=>A(!0),onClose:()=>A(!1),value:xt(b),onChange:le=>{le&&v&&v(le.toDate())},format:"DD/MM/YYYY",slots:{field:()=>y.jsxs("button",{type:"button",className:ze.headerButton,onClick:()=>A(!0),"aria-label":"Selecionar data",children:[y.jsx(tM,{fontSize:"small"}),xt(b).format("DD/MM/YYYY")]})}})}):null,f?y.jsxs(W.Box,{className:ze.zoomGroup,"aria-label":"Zoom controls",children:[y.jsx(W.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>se(ue-10),children:y.jsx(JE,{fontSize:"small"})}),y.jsx("span",{className:ze.zoomLabel,children:de}),y.jsx(W.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>se(ue+10),children:y.jsx(QE,{fontSize:"small"})})]}):null]})]}):null,y.jsx(W.Box,{className:`${ze.tracksWrapper} ${r?ze.tracksWithHeader:""}`.trim(),style:{height:d,padding:"0 16px"},children:y.jsxs("div",{ref:O,className:ze.layers,onWheel:re,onPointerMove:ee,onPointerUp:H,children:[y.jsxs("div",{className:ze.playhead,style:{left:`${X}px`},onPointerDown:ie,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":B,tabIndex:0,children:[y.jsx("div",{className:ze.playheadHandle}),y.jsx("div",{className:ze.playheadLine})]}),y.jsx("div",{className:`${ze.trackLabelRow} ${ze.timeScale}`.trim(),onPointerDown:Q,style:{cursor:"ew-resize"},"aria-label":"Régua do tempo",children:y.jsx(Vb,{ticks:Z})}),y.jsxs(W.Box,{className:ze.trackBox,onPointerDown:J,children:[I?y.jsx("div",{className:ze.selectionOverlay,style:{left:`${N+Jn({time:I.start,windowStart:q.start,windowSeconds:q.seconds,width:$})}px`,width:`${Math.max(0,Jn({time:I.end,windowStart:q.start,windowSeconds:q.seconds,width:$})-Jn({time:I.start,windowStart:q.start,windowSeconds:q.seconds,width:$}))}px`}}):null,y.jsx("div",{className:`${ze.trackLabelRow} ${ze.videoTrack}`.trim(),onPointerDown:p?Q:void 0,children:y.jsx($b,{segments:Y,viewStart:q.start,viewSeconds:q.seconds,width:$,totalSeconds:l,onClickSegment:(le,he)=>{G(le,he),E==null||E(le,he)}})})]})]})})]})});Fb.displayName="VideoTimeline";const H_=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=Ca(),[a,l]=Yi(jy),[c,d]=Yi(Ly),u=Ny(lE),f=k.useRef(-1);return k.useEffect(()=>{if(!e||(d(!0),!t))return;l(cr());const p=setInterval(()=>{l(cr())},1e3);return()=>clearInterval(p)},[e,l,d,t]),k.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;const h=()=>{if(n&&u){const b=Math.max(0,u.start),v=Math.max(b,u.end);p.currentTime<b?p.currentTime=b:p.currentTime>v&&(o?p.currentTime=b:(p.pause(),p.currentTime=v))}if(l(p.currentTime),Number.isFinite(p.duration)&&p.duration>0){const b=p.duration-p.currentTime<=r;d(b)}},m=()=>{if(!n||!u)return;const b=Math.max(0,u.start),v=Math.max(b,u.end);(p.currentTime<b||p.currentTime>v)&&(p.currentTime=b)},g=()=>{c&&Number.isFinite(p.duration)&&p.duration>0&&(p.currentTime=p.duration)};return p.addEventListener("timeupdate",h),p.addEventListener("play",m),p.addEventListener("loadedmetadata",g),()=>{p.removeEventListener("timeupdate",h),p.removeEventListener("play",m),p.removeEventListener("loadedmetadata",g)}},[n,e,c,r,o,u,l,d,i]),k.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;if(c){if(Number.isFinite(p.duration)&&p.duration>0){const m=p.duration;Math.abs(p.currentTime-m)>.25&&(p.currentTime=m,f.current=m)}return}if(Math.abs(f.current-a)<.05)return;let h=a;if(n&&u){const m=Math.max(0,u.start),g=Math.max(m,u.end);h=Math.min(g,Math.max(m,h))}Math.abs(p.currentTime-h)>.25&&(p.currentTime=h,f.current=a)},[n,a,c,e,u,i]),k.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p||!n||!u)return;const h=Math.max(0,u.start),m=!p.paused;p.currentTime=h,f.current=h,d(!1),l(h),m&&p.play().catch(()=>{})},[n,e,u,l,d,i]),null},Bb=({stream:e=null,src:t,autoPlay:n=!0,muted:o=!0,playsInline:r=!0,className:i,updateTimeForLiveStream:a=!0,constrainToSelectedRange:l=!0,loopSelection:c=!1,availableQualities:d,initialQuality:u,onQualityChange:f,poster:p,sx:h,liveThresholdSeconds:m=2,allowPlaybackRateForStream:g,playbackRates:b,zoomLevels:v,width:S,height:w,aspectRatio:C,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:R,borderRadius:D,loading:V,unavailable:j,unavailableIcon:x,unavailableMessage:L})=>{const A=!!e,_=d??(t?[{value:"default",label:"Auto",src:t}]:[]);return y.jsxs(Fy,{children:[y.jsx(Ou,{stream:e,availableQualities:_,initialQuality:u??(t&&!d?"default":void 0),onQualityChange:f,autoPlay:n,muted:o,playsInline:r,poster:p,className:i,sx:h,liveThresholdSeconds:m,allowPlaybackRateForStream:g,playbackRates:b,zoomLevels:v,width:S,height:w,aspectRatio:C,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:R,borderRadius:D,loading:V,unavailable:j,unavailableIcon:x,unavailableMessage:L}),y.jsx(H_,{isStream:A,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Bb.displayName="VideoPlayerWebRTC";const Pd=st(y.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),W_="_container_1vjy6_1",U_="_segment_1vjy6_7",Y_="_selected_1vjy6_20",q_="_label_1vjy6_28",G_="_icon_1vjy6_37",K_="_checkIcon_1vjy6_47",Z_="_unselected_1vjy6_53",Po={container:W_,segment:U_,selected:Y_,label:q_,icon:G_,checkIcon:K_,unselected:Z_},zb=({items:e,className:t,sx:n,...o})=>{const i=W.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return y.jsx(W.Box,{className:`${Po.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>y.jsxs(W.Box,{className:`${Po.segment} ${l.selected?Po.selected:Po.unselected}`,onClick:d=>a(l,d),children:[l.selected&&y.jsx(W.Box,{className:Po.icon,children:y.jsx(Pd,{className:Po.checkIcon})}),y.jsx(W.Box,{className:Po.label,children:l.label})]},c))})};zb.displayName="DisplayTypes";const X_=600,Al=[.32,.72,0,1],_l=400,Hb=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=X_,className:l,sx:c})=>{const d=W.useTheme(),u=W.useMediaQuery(`(max-width:${a}px)`),f=!u||i==="left"||i==="both",p=!u||i==="right"||i==="both",h=d.spacing(n),m=`flex ${_l}ms cubic-bezier(${Al.join(",")}), min-width ${_l}ms cubic-bezier(${Al.join(",")})`;if(u&&i!=="both")return y.jsxs(W.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[y.jsx(W.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),y.jsx(W.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:p?"flex":"none",flexDirection:"column"},children:t})]});const g=r?0:o,b=r?0:void 0,v=r?"none":"auto";return y.jsxs(W.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${_l}ms cubic-bezier(${Al.join(",")})`,...c},children:[y.jsx(W.Box,{sx:{flex:g,minWidth:b,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),y.jsx(W.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};Hb.displayName="SplitLayout";const Q_=256,Wb=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=Q_,gap:r=2,className:i,sx:a})=>{const c=W.useTheme().spacing(r),d=n-1;return y.jsx(W.Box,{className:i,sx:{"--responsive-grid-gap":c,display:"grid",gap:c,width:"100%",minHeight:0,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(${o}px, calc((100% - ${d} * var(--responsive-grid-gap)) / ${n}))), 1fr))`,alignContent:"start",...a},children:e})};Wb.displayName="ResponsiveGrid";const Ub=st(y.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var J_=e=>e.type==="checkbox",ss=e=>e instanceof Date,Ed=e=>e==null;const Yb=e=>typeof e=="object";var Ho=e=>!Ed(e)&&!Array.isArray(e)&&Yb(e)&&!ss(e),eN=e=>Ho(e)&&e.target?J_(e.target)?e.target.checked:e.target.value:e,tN=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,nN=(e,t)=>e.has(tN(t)),oN=e=>{const t=e.constructor&&e.constructor.prototype;return Ho(t)&&t.hasOwnProperty("isPrototypeOf")},rN=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qb(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(rN&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Ho(e)&&oN(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=qb(e[r]));return o}var Gb=e=>/^\w*$/.test(e),jc=e=>e===void 0,sN=e=>Array.isArray(e)?e.filter(Boolean):[],Kb=e=>sN(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Bt=(e,t,n)=>{if(!t||!Ho(e))return n;const o=(Gb(t)?[t]:Kb(t)).reduce((r,i)=>Ed(r)?r:r[i],e);return jc(o)||o===e?jc(e[t])?n:e[t]:o},Nl=e=>typeof e=="boolean",vi=e=>typeof e=="function",Yh=(e,t,n)=>{let o=-1;const r=Gb(t)?[t]:Kb(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const d=e[l];c=Ho(d)||Array.isArray(d)?d:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const qh={BLUR:"blur",CHANGE:"change"},Gh={all:"all"},Zb=k.createContext(null);Zb.displayName="HookFormControlContext";const Md=()=>k.useContext(Zb);var iN=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Gh.all&&(t._proxyFormState[a]=!o||Gh.all),n&&(n[a]=!0),e[a]}});return r};const Xb=typeof window<"u"?k.useLayoutEffect:k.useEffect;function aN(e){const t=Md(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=k.useState(n._formState),c=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Xb(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:d=>{!o&&l({...n._formState,...d})}}),[r,o,i]),k.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),k.useMemo(()=>iN(a,n,c.current,!1),[a,n])}var lN=e=>typeof e=="string",Kh=(e,t,n,o,r)=>lN(e)?Bt(n,e,r):Array.isArray(e)?e.map(i=>Bt(n,i)):n,Zh=e=>Ed(e)||!Yb(e);function Oi(e,t,n=new WeakSet){if(Zh(e)||Zh(t))return Object.is(e,t);if(ss(e)&&ss(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(ss(a)&&ss(l)||Ho(a)&&Ho(l)||Array.isArray(a)&&Array.isArray(l)?!Oi(a,l,n):!Object.is(a,l))return!1}}return!0}function cN(e){const t=Md(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=k.useRef(r),d=k.useRef(l),u=k.useRef(void 0),f=k.useRef(n),p=k.useRef(o);d.current=l;const[h,m]=k.useState(()=>{const C=n._getWatch(o,c.current);return d.current?d.current(C):C}),g=k.useCallback(C=>{const T=Kh(o,n._names,C||n._formValues,!1,c.current);return d.current?d.current(T):T},[n._formValues,n._names,o]),b=k.useCallback(C=>{if(!i){const T=Kh(o,n._names,C||n._formValues,!1,c.current);if(d.current){const E=d.current(T);Oi(E,u.current)||(m(E),u.current=E)}else m(T)}},[n._formValues,n._names,i,o]);Xb(()=>((f.current!==n||!Oi(p.current,o))&&(f.current=n,p.current=o,b()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:C=>{b(C.values)}})),[n,a,o,b]),k.useEffect(()=>n._removeUnmounted());const v=f.current!==n,S=p.current,w=k.useMemo(()=>{if(i)return null;const C=!v&&!Oi(S,o);return v||C?g():null},[i,v,o,S,g]);return w!==null?w:h}function uN(e){const t=Md(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=nN(r._names.array,n),d=k.useMemo(()=>Bt(r._formValues,n,Bt(r._defaultValues,n,a)),[r,n,a]),u=cN({control:r,name:n,defaultValue:d,exact:l}),f=aN({control:r,name:n,exact:l}),p=k.useRef(e),h=k.useRef(void 0),m=k.useRef(r.register(n,{...e.rules,value:u,...Nl(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=k.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Bt(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Bt(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Bt(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Bt(f.validatingFields,n)},error:{enumerable:!0,get:()=>Bt(f.errors,n)}}),[f,n]),b=k.useCallback(C=>m.current.onChange({target:{value:eN(C),name:n},type:qh.CHANGE}),[n]),v=k.useCallback(()=>m.current.onBlur({target:{value:Bt(r._formValues,n),name:n},type:qh.BLUR}),[n,r._formValues]),S=k.useCallback(C=>{const T=Bt(r._fields,n);T&&T._f&&C&&(T._f.ref={focus:()=>vi(C.focus)&&C.focus(),select:()=>vi(C.select)&&C.select(),setCustomValidity:E=>vi(C.setCustomValidity)&&C.setCustomValidity(E),reportValidity:()=>vi(C.reportValidity)&&C.reportValidity()})},[r._fields,n]),w=k.useMemo(()=>({name:n,value:u,...Nl(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:b,onBlur:v,ref:S}),[n,o,f.disabled,b,v,S,u]);return k.useEffect(()=>{const C=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...Nl(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,R)=>{const D=Bt(r._fields,M);D&&D._f&&(D._f.mount=R)};if(E(n,!0),C){const M=qb(Bt(r._options.defaultValues,n,p.current.defaultValue));Yh(r._defaultValues,n,M),jc(Bt(r._formValues,n))&&Yh(r._formValues,n,M)}return!c&&r.register(n),h.current=n,()=>{(c?C&&!r._state.action:C)?r.unregister(n):E(n,!1)}},[n,r,c,i]),k.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),k.useMemo(()=>({field:w,formState:f,fieldState:g}),[w,f,g])}const kd=e=>e.render(uN(e)),dN=k.createContext(null);dN.displayName="HookFormContext";const fN="_formSelect_22dj6_1",pN="_labelWrapper_22dj6_5",hN="_inputLabel_22dj6_9",mN="_placeholder_22dj6_77",gN="_helperText_22dj6_125",Eo={formSelect:fN,labelWrapper:pN,inputLabel:hN,placeholder:mN,helperText:gN},Qb=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,renderValue:d,className:u,...f})=>{const h=W.useTheme().palette.mode==="dark";return y.jsx(kd,{name:t,control:e,render:({field:m,fieldState:g})=>{var w;const b=!!g.error,v=b||!!i,S=b?(w=g.error)==null?void 0:w.message:i;return y.jsxs("div",{className:`${Eo.formSelect} ${u||""}`,"data-theme":h?"dark":"light",children:[y.jsx("div",{className:Eo.labelWrapper,children:y.jsxs("span",{className:Eo.inputLabel,children:[n,a?" *":""]})}),y.jsxs(W.FormControl,{error:b,fullWidth:l,disabled:c,children:[y.jsxs(W.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:d||(C=>{if(C===""||C===null||C===void 0)return y.jsx("span",{className:Eo.placeholder,children:r||""});const T=o.find(E=>E.value===C);return(T==null?void 0:T.label)||String(C)}),className:Eo.select,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...h?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...h?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...h?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...h?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:h?"#101111":"#FAF9F9",width:20,height:20}}},children:[r&&y.jsx(W.MenuItem,{value:"",disabled:!0,children:y.jsx("span",{className:Eo.placeholder,children:r})}),o.map(C=>{const T=m.value===C.value;return y.jsxs(W.MenuItem,{value:C.value,disabled:C.disabled,children:[T&&y.jsx(W.ListItemIcon,{sx:{minWidth:20},children:y.jsx(Ub,{sx:{fontSize:20}})}),C.label]},String(C.value))})]}),v&&y.jsx(W.FormHelperText,{className:Eo.helperText,children:S})]})]})}})};Qb.displayName="FormSelect";const yN="_formMultiSelect_1q1t9_1",bN="_labelWrapper_1q1t9_5",vN="_inputLabel_1q1t9_9",xN="_placeholder_1q1t9_77",CN="_helperText_1q1t9_128",wN="_chipsContainer_1q1t9_157",SN="_chip_1q1t9_157",An={formMultiSelect:yN,labelWrapper:bN,inputLabel:vN,placeholder:xN,helperText:CN,chipsContainer:wN,chip:SN},Jb=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,chipVariant:d="filled",maxChipsDisplay:u,renderValue:f,className:p,open:h,onOpen:m,onClose:g,...b})=>{const S=W.useTheme().palette.mode==="dark";return y.jsx(kd,{name:t,control:e,render:({field:w,fieldState:C})=>{var j;const T=!!C.error,E=T||!!i,M=T?(j=C.error)==null?void 0:j.message:i,R=Array.isArray(w.value)?w.value:[];R.length>0;const V=f||(x=>{if(!Array.isArray(x)||x.length===0)return y.jsx("span",{className:An.placeholder,children:r||""});const L=u?x.slice(0,u):x,A=u&&x.length>u?x.length-u:0;return y.jsxs(W.Box,{className:An.chipsContainer,children:[L.map(_=>{const O=o.find(N=>N.value===_);return y.jsx(W.Chip,{label:(O==null?void 0:O.label)||String(_),size:"small",variant:d,className:An.chip},String(_))}),A>0&&y.jsx(W.Chip,{label:`+${A}`,size:"small",variant:d,className:An.chip})]})});return y.jsxs("div",{className:`${An.formMultiSelect} ${p||""}`,"data-theme":S?"dark":"light",children:[y.jsx("div",{className:An.labelWrapper,children:y.jsxs("span",{className:An.inputLabel,children:[n,a?" *":""]})}),y.jsxs(W.FormControl,{error:T,fullWidth:l,disabled:c,children:[y.jsx(W.Select,{...w,...b,variant:"outlined",multiple:!0,value:R,onChange:x=>{w.onChange(x.target.value)},displayEmpty:!!r,renderValue:V,className:An.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:m,onClose:g,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...S?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...S?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...S?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...S?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...S?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...S?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...S?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...S?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:S?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(x=>{const L=R.includes(x.value);return y.jsxs(W.MenuItem,{value:x.value,disabled:x.disabled,children:[L&&y.jsx(W.ListItemIcon,{sx:{minWidth:20},children:y.jsx(Ub,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),E&&y.jsx(W.FormHelperText,{className:An.helperText,children:M})]})]})}})};Jb.displayName="FormMultiSelect";const ev=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})),tv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM11 13H13V7H11V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"})),TN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})),PN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 2.09961L1 12H4V21H11V15H13V21H20V12H23L12 2.09961Z",fill:"currentColor"})),EN=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M5.33335 26.6667C4.60002 26.6667 3.96669 26.4112 3.43335 25.9C2.92224 25.3667 2.66669 24.7334 2.66669 24V8.00004C2.66669 7.26671 2.92224 6.64449 3.43335 6.13337C3.96669 5.60004 4.60002 5.33337 5.33335 5.33337H21.3334C22.0667 5.33337 22.6889 5.60004 23.2 6.13337C23.7334 6.64449 24 7.26671 24 8.00004V14L29.3334 8.66671V23.3334L24 18V24C24 24.7334 23.7334 25.3667 23.2 25.9C22.6889 26.4112 22.0667 26.6667 21.3334 26.6667H5.33335ZM5.33335 24H21.3334V8.00004H5.33335V24ZM5.33335 24V8.00004V24Z",fill:"currentColor"})),MN=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:"currentColor"}),P.createElement("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:"currentColor"})),kN=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3.99998 26.3333C3.99998 27.2543 4.74571 28 5.66665 28H9.99998V30.6666H5.66665C3.27295 30.6666 1.33331 28.727 1.33331 26.3333V22H3.99998V26.3333ZM30.6666 26.3333C30.6666 28.727 28.727 30.6666 26.3333 30.6666H22V28H26.3333C27.2543 28 28 27.2543 28 26.3333V22H30.6666V26.3333ZM25.3333 7.99998H15.7331L14.3997 12H25.3333V14.6666H13.3333V21.3333H25.3333V24H14.6666V25.3333C14.6666 26 14.1333 26.6666 13.3333 26.6666H12C11.3333 26.6666 10.6666 26 10.6666 25.3333V14.6666L13.4661 6.66665C13.7328 5.86665 14.4 5.33331 15.3333 5.33331H25.3333V7.99998ZM16.6666 16C17.7333 16 18.6666 16.9333 18.6666 18C18.6666 19.0666 17.7333 20 16.6666 20C15.6 20 14.6666 19.0666 14.6666 18C14.6666 16.9333 15.6 16 16.6666 16ZM9.99998 3.99998H5.66665C4.74569 3.99998 3.99998 4.74569 3.99998 5.66665V9.99998H1.33331V5.66665C1.33331 3.27293 3.27293 1.33331 5.66665 1.33331H9.99998V3.99998ZM26.3333 1.33331C28.727 1.33331 30.6666 3.27293 30.6666 5.66665V9.99998H28V5.66665C28 4.74569 27.2543 3.99998 26.3333 3.99998H22V1.33331H26.3333Z",fill:"currentColor"})),ON=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 22C11.0667 22 10.2778 21.6778 9.63333 21.0334C8.98889 20.3889 8.66667 19.6 8.66667 18.6667C8.66667 17.7334 8.98889 16.9445 9.63333 16.3C10.2778 15.6556 11.0667 15.3334 12 15.3334C12.9333 15.3334 13.7222 15.6556 14.3667 16.3C15.0111 16.9445 15.3333 17.7334 15.3333 18.6667C15.3333 19.6 15.0111 20.3889 14.3667 21.0334C13.7222 21.6778 12.9333 22 12 22ZM6.66667 29.3334C5.93333 29.3334 5.30556 29.0722 4.78333 28.55C4.26111 28.0278 4 27.4 4 26.6667V8.00002C4 7.26669 4.26111 6.63891 4.78333 6.11669C5.30556 5.59446 5.93333 5.33335 6.66667 5.33335H8V2.66669H10.6667V5.33335H21.3333V2.66669H24V5.33335H25.3333C26.0667 5.33335 26.6944 5.59446 27.2167 6.11669C27.7389 6.63891 28 7.26669 28 8.00002V26.6667C28 27.4 27.7389 28.0278 27.2167 28.55C26.6944 29.0722 26.0667 29.3334 25.3333 29.3334H6.66667ZM6.66667 26.6667H25.3333V13.3334H6.66667V26.6667Z",fill:"currentColor"})),DN=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V6.66667H6.66667V25.3333ZM8 22.6667H24L19 16L15 21.3333L12 17.3333L8 22.6667ZM6.66667 25.3333V6.66667V25.3333Z",fill:"currentColor"})),IN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3 19.75C3 20.4407 3.55928 21 4.25 21H7.5V23H4.25C2.45472 23 1 21.5453 1 19.75V16.5H3V19.75ZM23 19.75C23 21.5453 21.5453 23 19.75 23H16.5V21H19.75C20.4407 21 21 20.4407 21 19.75V16.5H23V19.75ZM18.8467 8.46973C19.061 8.25522 19.3838 8.19085 19.6641 8.30664C19.9444 8.42269 20.1279 8.6966 20.1279 9V14.002C20.1279 14.416 19.7919 14.7517 19.3779 14.752C18.9638 14.7519 18.6279 14.4161 18.6279 14.002V10.8076C18.3336 11.0722 17.881 11.0643 17.5977 10.7812C17.3047 10.4885 17.305 10.0137 17.5977 9.7207L18.8467 8.46973ZM15.1064 8.25781C15.3516 8.29292 15.5664 8.44755 15.6758 8.6748C15.8007 8.93465 15.766 9.24362 15.5859 9.46875L12.5605 13.25H15C15.4142 13.25 15.75 13.5858 15.75 14C15.75 14.4142 15.4142 14.75 15 14.75H11C10.7118 14.75 10.4492 14.5849 10.3242 14.3252C10.1993 14.0653 10.234 13.7564 10.4141 13.5312L13.4395 9.75H11C10.5858 9.75 10.25 9.41421 10.25 9C10.25 8.58579 10.5858 8.25 11 8.25H15L15.1064 8.25781ZM7 8.25977C7.27423 8.30412 7.50603 8.49803 7.59375 8.76855L9.21387 13.7686C9.34152 14.1626 9.1254 14.5861 8.73145 14.7139C8.33744 14.8415 7.91386 14.6254 7.78613 14.2314L7.62988 13.75H4.87012L4.71387 14.2314C4.58614 14.6254 4.16256 14.8415 3.76855 14.7139C3.3746 14.5861 3.15848 14.1626 3.28613 13.7686L3.58105 12.8555C3.59232 12.7977 3.61106 12.7426 3.63477 12.6904L4.90625 8.76855L4.95215 8.6582C5.07878 8.41056 5.3354 8.25 5.62012 8.25H6.87988L7 8.25977ZM5.35547 12.25H7.14453L6.33496 9.75H6.16504L5.35547 12.25ZM7.5 3H4.25C3.55928 3 3 3.55928 3 4.25V7.5H1V4.25C1 2.45472 2.45472 1 4.25 1H7.5V3ZM19.75 1C21.5453 1 23 2.45472 23 4.25V7.5H21V4.25C21 3.55928 20.4407 3 19.75 3H16.5V1H19.75Z",fill:"currentColor"})),RN=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12.3333 29.3334L11.8 25.0667C11.5111 24.9556 11.2389 24.8222 10.9833 24.6667C10.7278 24.5111 10.4778 24.3445 10.2333 24.1667L6.26664 25.8334L2.59998 19.5L6.03331 16.9C6.01109 16.7445 5.99998 16.5945 5.99998 16.45V15.55C5.99998 15.4056 6.01109 15.2556 6.03331 15.1L2.59998 12.5L6.26664 6.16669L10.2333 7.83335C10.4778 7.65558 10.7333 7.48891 11 7.33335C11.2666 7.1778 11.5333 7.04446 11.8 6.93335L12.3333 2.66669H19.6666L20.2 6.93335C20.4889 7.04446 20.7611 7.1778 21.0166 7.33335C21.2722 7.48891 21.5222 7.65558 21.7666 7.83335L25.7333 6.16669L29.4 12.5L25.9666 15.1C25.9889 15.2556 26 15.4056 26 15.55V16.45C26 16.5945 25.9778 16.7445 25.9333 16.9L29.3666 19.5L25.7 25.8334L21.7666 24.1667C21.5222 24.3445 21.2666 24.5111 21 24.6667C20.7333 24.8222 20.4666 24.9556 20.2 25.0667L19.6666 29.3334H12.3333ZM14.6666 26.6667H17.3L17.7666 23.1334C18.4555 22.9556 19.0944 22.6945 19.6833 22.35C20.2722 22.0056 20.8111 21.5889 21.3 21.1L24.6 22.4667L25.9 20.2L23.0333 18.0334C23.1444 17.7222 23.2222 17.3945 23.2666 17.05C23.3111 16.7056 23.3333 16.3556 23.3333 16C23.3333 15.6445 23.3111 15.2945 23.2666 14.95C23.2222 14.6056 23.1444 14.2778 23.0333 13.9667L25.9 11.8L24.6 9.53335L21.3 10.9334C20.8111 10.4222 20.2722 9.99446 19.6833 9.65002C19.0944 9.30558 18.4555 9.04446 17.7666 8.86669L17.3333 5.33335H14.7L14.2333 8.86669C13.5444 9.04446 12.9055 9.30558 12.3166 9.65002C11.7278 9.99446 11.1889 10.4111 10.7 10.9L7.39998 9.53335L6.09998 11.8L8.96664 13.9334C8.85553 14.2667 8.77775 14.6 8.73331 14.9334C8.68886 15.2667 8.66664 15.6222 8.66664 16C8.66664 16.3556 8.68886 16.7 8.73331 17.0334C8.77775 17.3667 8.85553 17.7 8.96664 18.0334L6.09998 20.2L7.39998 22.4667L10.7 21.0667C11.1889 21.5778 11.7278 22.0056 12.3166 22.35C12.9055 22.6945 13.5444 22.9556 14.2333 23.1334L14.6666 26.6667ZM16.0666 20.6667C17.3555 20.6667 18.4555 20.2111 19.3666 19.3C20.2778 18.3889 20.7333 17.2889 20.7333 16C20.7333 14.7111 20.2778 13.6111 19.3666 12.7C18.4555 11.7889 17.3555 11.3334 16.0666 11.3334C14.7555 11.3334 13.65 11.7889 12.75 12.7C11.85 13.6111 11.4 14.7111 11.4 16C11.4 17.2889 11.85 18.3889 12.75 19.3C13.65 20.2111 14.7555 20.6667 16.0666 20.6667Z",fill:"currentColor"})),AN=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V21.3333H21.3333C20.6667 22.1778 19.8667 22.8333 18.9333 23.3C18.0222 23.7667 17.0444 24 16 24C14.9556 24 13.9667 23.7667 13.0333 23.3C12.1222 22.8333 11.3333 22.1778 10.6667 21.3333H6.66667V25.3333ZM16 21.3333C16.8444 21.3333 17.6111 21.0889 18.3 20.6C18.9889 20.1111 19.4667 19.4667 19.7333 18.6667H25.3333V6.66667H6.66667V18.6667H12.2667C12.5333 19.4667 13.0111 20.1111 13.7 20.6C14.3889 21.0889 15.1556 21.3333 16 21.3333ZM6.66667 25.3333H10.6667C11.3333 25.3333 12.1222 25.3333 13.0333 25.3333C13.9667 25.3333 14.9556 25.3333 16 25.3333C17.0444 25.3333 18.0222 25.3333 18.9333 25.3333C19.8667 25.3333 20.6667 25.3333 21.3333 25.3333H25.3333H6.66667Z",fill:"currentColor"})),_N=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:"currentColor"})),NN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M20.15 13H8V11H20.15L18.6 9.45L20 8L24 12L20 16L18.6 14.55L20.15 13ZM15 9V5H5V19H15V15H17V19C17 19.55 16.8042 20.0208 16.4125 20.4125C16.0208 20.8042 15.55 21 15 21H5C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H15C15.55 3 16.0208 3.19583 16.4125 3.5875C16.8042 3.97917 17 4.45 17 5V9H15Z",fill:"currentColor"})),jN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 15C12.8333 15 13.5417 14.7083 14.125 14.125C14.7083 13.5417 15 12.8333 15 12C15 11.1667 14.7083 10.4583 14.125 9.875C13.5417 9.29167 12.8333 9 12 9C11.1667 9 10.4583 9.29167 9.875 9.875C9.29167 10.4583 9 11.1667 9 12C9 12.8333 9.29167 13.5417 9.875 14.125C10.4583 14.7083 11.1667 15 12 15ZM12 17C10.6167 17 9.4375 16.5125 8.4625 15.5375C7.4875 14.5625 7 13.3833 7 12C7 10.6167 7.4875 9.4375 8.4625 8.4625C9.4375 7.4875 10.6167 7 12 7C13.3833 7 14.5625 7.4875 15.5375 8.4625C16.5125 9.4375 17 10.6167 17 12C17 13.3833 16.5125 14.5625 15.5375 15.5375C14.5625 16.5125 13.3833 17 12 17ZM5 13H1V11H5V13ZM23 13H19V11H23V13ZM11 5V1H13V5H11ZM11 23V19H13V23H11ZM6.4 7.75L3.875 5.325L5.3 3.85L7.7 6.35L6.4 7.75ZM18.7 20.15L16.275 17.625L17.6 16.25L20.125 18.675L18.7 20.15ZM16.25 6.4L18.675 3.875L20.15 5.3L17.65 7.7L16.25 6.4ZM3.85 18.7L6.375 16.275L7.75 17.6L5.325 20.125L3.85 18.7Z",fill:"currentColor"})),LN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 21C9.5 21 7.375 20.125 5.625 18.375C3.875 16.625 3 14.5 3 12C3 9.5 3.875 7.375 5.625 5.625C7.375 3.875 9.5 3 12 3C12.2333 3 12.4625 3.00833 12.6875 3.025C12.9125 3.04167 13.1333 3.06667 13.35 3.1C12.6667 3.58333 12.1208 4.2125 11.7125 4.9875C11.3042 5.7625 11.1 6.6 11.1 7.5C11.1 9 11.625 10.275 12.675 11.325C13.725 12.375 15 12.9 16.5 12.9C17.4167 12.9 18.2583 12.6958 19.025 12.2875C19.7917 11.8792 20.4167 11.3333 20.9 10.65C20.9333 10.8667 20.9583 11.0875 20.975 11.3125C20.9917 11.5375 21 11.7667 21 12C21 14.5 20.125 16.625 18.375 18.375C16.625 20.125 14.5 21 12 21ZM12 19C13.4667 19 14.7833 18.5958 15.95 17.7875C17.1167 16.9792 17.9667 15.925 18.5 14.625C18.1667 14.7083 17.8333 14.775 17.5 14.825C17.1667 14.875 16.8333 14.9 16.5 14.9C14.45 14.9 12.7042 14.1792 11.2625 12.7375C9.82083 11.2958 9.1 9.55 9.1 7.5C9.1 7.16667 9.125 6.83333 9.175 6.5C9.225 6.16667 9.29167 5.83333 9.375 5.5C8.075 6.03333 7.02083 6.88333 6.2125 8.05C5.40417 9.21667 5 10.5333 5 12C5 13.9333 5.68333 15.5833 7.05 16.95C8.41667 18.3167 10.0667 19 12 19Z",fill:"currentColor"})),VN=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4 19V17H6V10C6 8.61667 6.41667 7.39167 7.25 6.325C8.08333 5.24167 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6417 2.73333 10.925 2.45C11.225 2.15 11.5833 2 12 2C12.4167 2 12.7667 2.15 13.05 2.45C13.35 2.73333 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.24167 16.75 6.325C17.5833 7.39167 18 8.61667 18 10V17H20V19H4ZM12 22C11.45 22 10.975 21.8083 10.575 21.425C10.1917 21.025 10 20.55 10 20H14C14 20.55 13.8 21.025 13.4 21.425C13.0167 21.8083 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z",fill:"currentColor"})),$N=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 12C10.9 12 9.95833 11.6083 9.175 10.825C8.39167 10.0417 8 9.1 8 8C8 6.9 8.39167 5.95833 9.175 5.175C9.95833 4.39167 10.9 4 12 4C13.1 4 14.0417 4.39167 14.825 5.175C15.6083 5.95833 16 6.9 16 8C16 9.1 15.6083 10.0417 14.825 10.825C14.0417 11.6083 13.1 12 12 12ZM4 20V17.2C4 16.6333 4.14583 16.1125 4.4375 15.6375C4.72917 15.1625 5.11667 14.8 5.6 14.55C6.63333 14.0333 7.68333 13.6458 8.75 13.3875C9.81667 13.1292 10.9 13 12 13C13.1 13 14.1833 13.1292 15.25 13.3875C16.3167 13.6458 17.3667 14.0333 18.4 14.55C18.8833 14.8 19.2708 15.1625 19.5625 15.6375C19.8542 16.1125 20 16.6333 20 17.2V20H4ZM6 18H18V17.2C18 17.0167 17.9542 16.85 17.8625 16.7C17.7708 16.55 17.65 16.4333 17.5 16.35C16.6 15.9 15.6917 15.5625 14.775 15.3375C13.8583 15.1125 12.9333 15 12 15C11.0667 15 10.1417 15.1125 9.225 15.3375C8.30833 15.5625 7.4 15.9 6.5 16.35C6.35 16.4333 6.22917 16.55 6.1375 16.7C6.04583 16.85 6 17.0167 6 17.2V18ZM12 10C12.55 10 13.0208 9.80417 13.4125 9.4125C13.8042 9.02083 14 8.55 14 8C14 7.45 13.8042 6.97917 13.4125 6.5875C13.0208 6.19583 12.55 6 12 6C11.45 6 10.9792 6.19583 10.5875 6.5875C10.1958 6.97917 10 7.45 10 8C10 8.55 10.1958 9.02083 10.5875 9.4125C10.9792 9.80417 11.45 10 12 10Z",fill:"currentColor"})),FN="_formInput_kzwwo_1",BN="_labelWrapper_kzwwo_5",zN="_inputLabel_kzwwo_9",HN="_startAdornment_kzwwo_175",WN="_endAdornment_kzwwo_182",UN="_iconButton_kzwwo_189",YN="_clearButton_kzwwo_209",qN="_errorButton_kzwwo_228",Yt={formInput:FN,labelWrapper:BN,inputLabel:zN,startAdornment:HN,endAdornment:WN,iconButton:UN,clearButton:YN,errorButton:qN},nv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:d,startIcon:u,endIcon:f,onEndIconClick:p,clearable:h=!1,...m})=>{const b=W.useTheme().palette.mode==="dark";return y.jsx(kd,{name:t,control:e,render:({field:v,fieldState:S})=>{var D;const w=!!S.error,C=w?(D=S.error)==null?void 0:D.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=u?y.jsx(W.InputAdornment,{position:"start",className:Yt.startAdornment,children:y.jsx("span",{className:Yt.iconButton,children:u})}):void 0;let R;return f?R=y.jsx(W.InputAdornment,{position:"end",className:Yt.endAdornment,children:y.jsx("span",{onClick:p,className:Yt.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(w?R=y.jsx(W.InputAdornment,{position:"end",className:Yt.endAdornment,children:y.jsx("span",{className:Yt.errorButton,children:y.jsx(tv,{})})}):R=y.jsx(W.InputAdornment,{position:"end",className:Yt.endAdornment,children:y.jsx("span",{onClick:E,className:Yt.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:y.jsx(ev,{})})})),y.jsxs("div",{className:`${Yt.formInput} ${d||""}`,"data-theme":b?"dark":"light",children:[y.jsx("div",{className:Yt.labelWrapper,children:y.jsxs("span",{className:Yt.inputLabel,children:[n,a?" *":""]})}),y.jsx(W.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:w,helperText:C,variant:"outlined",className:Yt.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Yt.inputRoot,...M&&{startAdornment:M},...R&&{endAdornment:R}}})]})}})};nv.displayName="FormInput";const GN="_viewChip_18qqe_1",KN="_active_18qqe_61",ZN="_icon_18qqe_76",XN="_label_18qqe_81",xi={viewChip:GN,active:KN,icon:ZN,label:XN},ov=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=W.useTheme().palette.mode==="dark";return y.jsxs(W.Box,{ref:i,className:`${xi.viewChip} ${n?xi.active:""} ${o||""}`.trim(),"data-theme":c?"dark":"light",onClick:r,role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),r==null||r(d))},"aria-label":e,"aria-pressed":n,component:"div",...a,children:[t&&y.jsx(W.Box,{className:xi.icon,component:"div",children:t}),y.jsx(W.Box,{className:xi.label,component:"span",children:e})]})};ov.displayName="ViewChip";const rv=st(y.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),QN="_sortDropdown_1u702_1",JN="_chevronIcon_1u702_50",ej="_chevronOpen_1u702_56",tj="_menuItem_1u702_60",nj="_menuItemSelected_1u702_69",oj="_checkIcon_1u702_92",Qo={sortDropdown:QN,chevronIcon:JN,chevronOpen:ej,menuItem:tj,menuItemSelected:nj,checkIcon:oj},sv=k.forwardRef(({options:e,value:t,onChange:n,prefix:o="Ordenar por:",className:r,sx:i,...a},l)=>{const d=W.useTheme().palette.mode==="dark",[u,f]=k.useState(null),p=!!u,h=e.find(S=>S.value===t),m=o?`${o} ${(h==null?void 0:h.label)??""}`:(h==null?void 0:h.label)??"",g=k.useCallback(S=>{f(S.currentTarget)},[]),b=k.useCallback(()=>{f(null)},[]),v=k.useCallback(S=>{n(S),f(null)},[n]);return y.jsxs(y.Fragment,{children:[y.jsxs(W.Box,{ref:l,className:`${Qo.sortDropdown} ${r||""}`,"data-theme":d?"dark":"light",onClick:g,sx:i,...a,children:[m,y.jsx(rv,{className:`${Qo.chevronIcon} ${p?Qo.chevronOpen:""}`})]}),y.jsx(W.Menu,{anchorEl:u,open:p,onClose:b,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{mt:.5,borderRadius:"12px",overflow:"hidden"},"data-theme":d?"dark":"light"}},children:e.map(S=>{const w=S.value===t;return y.jsxs(W.MenuItem,{selected:w,onClick:()=>v(S.value),className:`${Qo.menuItem} ${w?Qo.menuItemSelected:""}`,children:[w&&y.jsx(Pd,{fontSize:"small",className:Qo.checkIcon}),S.label]},S.value)})})]})});sv.displayName="SortDropdown";const rj="_pageHeader_1rptk_1",sj="_textContent_1rptk_10",ij="_title_1rptk_18",aj="_titleDark_1rptk_27",lj="_titleLight_1rptk_31",cj="_description_1rptk_35",uj="_descriptionDark_1rptk_44",dj="_descriptionLight_1rptk_48",fj="_actions_1rptk_52",_n={pageHeader:rj,textContent:sj,title:ij,titleDark:aj,titleLight:lj,description:cj,descriptionDark:uj,descriptionLight:dj,actions:fj},iv=k.forwardRef(({title:e,count:t,description:n,actions:o,className:r,sx:i,...a},l)=>{const d=W.useTheme().palette.mode==="dark",u=t!==void 0?`${e} (${t})`:e;return y.jsxs(W.Box,{ref:l,className:`${_n.pageHeader} ${r||""}`,sx:i,...a,children:[y.jsxs("div",{className:_n.textContent,children:[y.jsx("h2",{className:`${_n.title} ${d?_n.titleDark:_n.titleLight}`,children:u}),n&&y.jsx("p",{className:`${_n.description} ${d?_n.descriptionDark:_n.descriptionLight}`,children:n})]}),o&&y.jsx("div",{className:_n.actions,children:o})]})});iv.displayName="PageHeader";const pj=st(y.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),hj=st(y.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),mj="_pagination_1m4r2_1",gj="_pages_1m4r2_11",yj="_pageButton_1m4r2_18",bj="_pageButtonActive_1m4r2_42",vj="_ellipsis_1m4r2_42 _pageButton_1m4r2_18",xj="_arrowButton_1m4r2_83 _pageButton_1m4r2_18",Cj="_arrowDisabled_1m4r2_91",wj="_pageSizeContainer_1m4r2_104",Sj="_pageSizeLabel_1m4r2_112",Tj="_pageSizeButton_1m4r2_138",Pj="_chevronIcon_1m4r2_168",Ej="_chevronOpen_1m4r2_174",Mj="_menuItem_1m4r2_178",kj="_menuItemSelected_1m4r2_187",Oj="_checkIcon_1m4r2_210",Mt={pagination:mj,pages:gj,pageButton:yj,pageButtonActive:bj,ellipsis:vj,arrowButton:xj,arrowDisabled:Cj,pageSizeContainer:wj,pageSizeLabel:Sj,pageSizeButton:Tj,chevronIcon:Pj,chevronOpen:Ej,menuItem:Mj,menuItemSelected:kj,checkIcon:Oj},Dj=[10,20,50,100];function Ij(e,t){if(t<=7)return Array.from({length:t},(o,r)=>r+1);const n=[];return e<=3?n.push(1,2,3,"ellipsis",t):e>=t-2?n.push(1,"ellipsis",t-2,t-1,t):n.push(1,"ellipsis",e-1,e,e+1,"ellipsis",t),n}const av=k.forwardRef(({page:e,totalPages:t,pageSize:n,pageSizeOptions:o=Dj,onPageChange:r,onPageSizeChange:i,className:a,sx:l,...c},d)=>{const f=W.useTheme().palette.mode==="dark",[p,h]=k.useState(null),m=!!p,g=k.useMemo(()=>Ij(e,t),[e,t]),b=k.useCallback(()=>{e>1&&r(e-1)},[e,r]),v=k.useCallback(()=>{e<t&&r(e+1)},[e,t,r]),S=k.useCallback(T=>{h(T.currentTarget)},[]),w=k.useCallback(()=>{h(null)},[]),C=k.useCallback(T=>{i==null||i(T),h(null)},[i]);return t<=0?null:y.jsxs(W.Box,{ref:d,className:`${Mt.pagination} ${a||""}`,"data-theme":f?"dark":"light",sx:l,...c,children:[y.jsxs("div",{className:Mt.pages,children:[y.jsx("button",{type:"button",className:`${Mt.arrowButton} ${e<=1?Mt.arrowDisabled:""}`,onClick:b,"aria-label":"Página anterior",children:y.jsx(pj,{})}),g.map((T,E)=>T==="ellipsis"?y.jsx("span",{className:Mt.ellipsis,children:"···"},`ellipsis-${E}`):y.jsx("button",{type:"button",className:`${Mt.pageButton} ${T===e?Mt.pageButtonActive:""}`,onClick:()=>r(T),"aria-label":`Página ${T}`,"aria-current":T===e?"page":void 0,children:T},T)),y.jsx("button",{type:"button",className:`${Mt.arrowButton} ${e>=t?Mt.arrowDisabled:""}`,onClick:v,"aria-label":"Próxima página",children:y.jsx(hj,{})})]}),i&&y.jsxs(W.Box,{className:Mt.pageSizeContainer,children:[y.jsxs(W.Box,{className:Mt.pageSizeLabel,children:[n," itens por página"]}),y.jsx(W.Box,{className:`${Mt.pageSizeButton} ${m?Mt.pageSizeButtonOpen:""}`,onClick:S,role:"button",tabIndex:0,children:y.jsx(rv,{className:`${Mt.chevronIcon} ${m?Mt.chevronOpen:""}`})}),y.jsx(W.Menu,{anchorEl:p,open:m,onClose:w,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},slotProps:{paper:{sx:{mb:.5,borderRadius:"12px",overflow:"hidden"},"data-theme":f?"dark":"light"}},children:o.map(T=>{const E=T===n;return y.jsxs(W.MenuItem,{selected:E,onClick:()=>C(T),className:`${Mt.menuItem} ${E?Mt.menuItemSelected:""}`,children:[E&&y.jsx(Pd,{fontSize:"small",className:Mt.checkIcon}),T," itens por página"]},T)})})]})]})});av.displayName="Pagination";const Rj="_contentCard_13tu6_1",Aj="_section_13tu6_34",_j="_divider_13tu6_39",jl={contentCard:Rj,section:Aj,divider:_j},lv=k.forwardRef(({sections:e,minHeight:t=196,cardPadding:n=16,sectionGap:o=24,className:r,style:i,...a},l)=>{const d=W.useTheme().palette.mode==="dark",u={"--ContentCard-Padding":typeof n=="number"?`${n}px`:n,"--ContentCard-Section-Gap":typeof o=="number"?`${o}px`:o},f=Nj(e);return y.jsx(W.Box,{ref:l,className:`${jl.contentCard} ${r||""}`,"data-theme":d?"dark":"light",style:{...u,minHeight:t,gap:f?void 0:o,...i},...a,children:e.map((p,h)=>{const m=h===e.length-1,g=p.dividerAfter??!m,b=!m&&!g&&f;return y.jsxs(k.Fragment,{children:[y.jsx("div",{className:jl.section,style:{flex:p.flex??1,...b?{marginRight:`var(--ContentCard-Section-Gap, ${typeof o=="number"?`${o}px`:o})`}:{}},children:p.content}),g&&y.jsx("div",{className:jl.divider})]},h)})})});lv.displayName="ContentCard";function Nj(e){return e.some((t,n)=>{const o=n===e.length-1;return t.dividerAfter??!o})}const jj="_listPageLayout_reoal_1",Lj="_actionBar_reoal_11",Vj="_actionBarRow_reoal_19",$j="_searchFilterContainer_reoal_35",Fj="_actionsContainer_reoal_49",Bj="_chipsContainer_reoal_61",zj="_chipsRow_reoal_70",Hj="_pageHeaderSection_reoal_77",Wj="_content_reoal_82",Uj="_paginationSection_reoal_88",wn={listPageLayout:jj,actionBar:Lj,actionBarRow:Vj,searchFilterContainer:$j,actionsContainer:Fj,chipsContainer:Bj,chipsRow:zj,pageHeaderSection:Hj,content:Wj,paginationSection:Uj},cv=k.forwardRef(({actionBar:e,pageHeader:t,pagination:n,children:o},r)=>y.jsxs(W.Box,{ref:r,className:wn.listPageLayout,children:[e,t&&y.jsx(W.Box,{className:wn.pageHeaderSection,children:t}),y.jsx(W.Box,{className:wn.content,children:o}),n&&y.jsx(W.Box,{className:wn.paginationSection,children:n})]}));cv.displayName="ListPageLayout";const Ll=[.32,.72,0,1],uv=k.forwardRef(({searchValue:e,onSearchChange:t,onSearch:n,searchPlaceholder:o="Busque por câmera, ponto ou bairro",onFilterClick:r,actions:i,chips:a=[],onRemoveChip:l,onClearFilters:c},d)=>{const u=a.length>0;return y.jsxs(W.Box,{ref:d,className:wn.actionBar,children:[y.jsxs(W.Box,{className:wn.actionBarRow,children:[y.jsxs(W.Box,{className:wn.searchFilterContainer,children:[y.jsx(Mu,{sx:{flex:1},placeholder:o,value:e,onChange:f=>t(f.target.value),onEndIconClick:n}),r&&y.jsx(Vc,{onClick:r})]}),i&&y.jsx(W.Box,{className:wn.actionsContainer,children:i})]}),y.jsx(Nn.div,{initial:!1,animate:{height:u?"auto":0,opacity:u?1:0},transition:{duration:.3,ease:Ll},style:{overflow:"hidden",pointerEvents:u?"auto":"none"},className:wn.chipsContainer,"data-collapsed":!u,children:y.jsx(W.Box,{className:wn.chipsRow,children:y.jsxs(pc,{children:[a.map(({filterId:f,value:p,label:h})=>y.jsx(Nn.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.2,ease:Ll},children:y.jsx(Di,{label:h,icon:y.jsx(gt.Check,{}),onRemove:()=>l==null?void 0:l(f,p)})},`${f}-${p}`)),u&&y.jsx(Nn.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.2,ease:Ll},children:y.jsx(Di,{label:"Limpar filtros",icon:y.jsx(gt.Close,{}),onRemove:()=>c==null?void 0:c(),variant:"text"})},"clear-filters")]})})})]})});uv.displayName="ListPageActionBar";exports.Button=Lc;exports.CAMERA_ALGORITHM_FACIAL=Bs;exports.CAMERA_ALGORITHM_LPR=zs;exports.CameraCard=KT;exports.CancelIcon=ev;exports.CarIcon=kN;exports.ContentCard=lv;exports.CountCard=c2;exports.DarkModeIcon=LN;exports.DisplayTypes=zb;exports.ErrorIcon=tv;exports.FacialIcon=$s;exports.FacialNewIcon=MN;exports.FilterButton=Vc;exports.FilterChip=Di;exports.FilterModal=Pm;exports.FormInput=nv;exports.FormMultiSelect=Jb;exports.FormSelect=Qb;exports.GoogleMap=vy;exports.HomeIcon=PN;exports.InboxIcon=AN;exports.LPRIcon=Fs;exports.LightModeIcon=jN;exports.ListPageActionBar=uv;exports.ListPageLayout=cv;exports.LogoutIcon=NN;exports.LprIcon=_N;exports.MapContent=Pu;exports.MapMarkers=Sy;exports.MapSpot=Su;exports.ModuleMenu=My;exports.NotFoundContent=Ty;exports.NotificationsIcon=VN;exports.PageHeader=iv;exports.Pagination=av;exports.PersonIcon=$N;exports.PhotoIcon=DN;exports.PlateCloneIcon=IN;exports.ResponsiveGrid=Wb;exports.SearchBar=Mu;exports.SearchIcon=TN;exports.SettingsIcon=RN;exports.SidebarMenu=Ey;exports.SortDropdown=sv;exports.SplitLayout=Hb;exports.TodayIcon=ON;exports.VideoControlProvider=Fy;exports.VideoPlayer=Ou;exports.VideoPlayerWebRTC=Bb;exports.VideoTimeline=Fb;exports.VideocamIcon=EN;exports.ViewChip=ov;exports.VisioThemeProvider=xv;exports.ZoomControls=nP;exports.darkColors=yt;exports.darkTheme=nm;exports.lightColors=pt;exports.lightTheme=tm;exports.radiiTokens=Ci;exports.spacingScale=yv;exports.spacingTokens=Jh;exports.typographyTokens=Ot;exports.useGoogleMapContext=Tu;exports.useVideoControl=Ca;exports.useVideoControlRequired=cE;exports.useVisioTheme=Cv;
237
+ `))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Vn,s.func]),disableScrollLock:s.bool,elevation:a1,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Sa}),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function xI(e){return Te("MuiMenu",e)}Se("MuiMenu",["root","paper","list"]);const CI={vertical:"top",horizontal:"right"},wI={vertical:"top",horizontal:"left"},SI=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},xI,t)},TI=ve(K1,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),PI=ve(Z1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),EI=ve(G1,{name:"MuiMenu",slot:"List"})({outline:0}),X1=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:m,...g}={},variant:y="selectedMenu",slots:v={},slotProps:S={},...w}=o,C=fn(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},E=SI(T),M=r&&!l&&d,I=P.useRef(null),D=(F,B)=>{I.current&&I.current.adjustStyleForScrollbar(F,{direction:C?"rtl":"ltr"}),m&&m(F,B)},V=F=>{F.key==="Tab"&&(F.preventDefault(),u&&u(F,"tabKeyDown"))};let j=-1;P.Children.map(i,(F,B)=>{P.isValidElement(F)&&(process.env.NODE_ENV!=="production"&&jo.isFragment(F)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
+ `)),F.props.disabled||(y==="selectedMenu"&&F.props.selected||j===-1)&&(j=B))});const x={slots:v,slotProps:{list:c,transition:g,paper:f,...S}},L=je({elementType:v.root,externalSlotProps:S.root,ownerState:T,className:[E.root,a]}),[A,N]=rt("paper",{className:E.paper,elementType:PI,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:T}),[k,_]=rt("list",{className:be(E.list,c.className),elementType:EI,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:F=>({...F,onKeyDown:B=>{var R;V(B),(R=F.onKeyDown)==null||R.call(F,B)}}),ownerState:T}),$=typeof x.slotProps.transition=="function"?x.slotProps.transition(T):x.slotProps.transition;return b.jsx(TI,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?CI:wI,slots:{root:v.root,paper:A,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:L,paper:N,backdrop:typeof S.backdrop=="function"?S.backdrop(T):S.backdrop,transition:{...$,onEntering:(...F)=>{var B;D(...F),(B=$==null?void 0:$.onEntering)==null||B.call($,...F)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...w,classes:p,children:b.jsx(k,{actions:I,autoFocus:r&&(j===-1||l),autoFocusItem:M,variant:y,..._,children:i})})});process.env.NODE_ENV!=="production"&&(X1.propTypes={anchorEl:s.oneOfType([Vn,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),list:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,list:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function MI(e){return Te("MuiNativeSelect",e)}const ed=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OI=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"]};return we(l,MI,t)},Q1=ve("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ed.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),kI=ve(Q1,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ed.multiple}`]:t.multiple}]}})({}),J1=ve("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ed.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),DI=ve(J1,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),eb=P.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:r,variant:c,error:i},f=OI(d);return b.jsxs(P.Fragment,{children:[b.jsx(kI,{ownerState:d,className:be(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:b.jsx(DI,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(eb.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function tb(e){return Te("MuiSelect",e)}const Hr=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ph;const RI=ve(Q1,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Hr.select}`]:t.select},{[`&.${Hr.select}`]:t[n.variant]},{[`&.${Hr.error}`]:t.error},{[`&.${Hr.multiple}`]:t.multiple}]}})({[`&.${Hr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),II=ve(J1,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),AI=ve("input",{shouldForwardProp:e=>mm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Eh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NI(e){return e==null||typeof e=="string"&&!e.trim()}const _I=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return we(l,tb,t)},nb=P.forwardRef(function(t,n){var ut,bt,Rt,hn;const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:g,labelId:y,MenuProps:v={},multiple:S,name:w,onBlur:C,onChange:T,onClose:E,onFocus:M,onKeyDown:I,onMouseDown:D,onOpen:V,open:j,readOnly:x,renderValue:L,required:A,SelectDisplayProps:N={},tabIndex:k,type:_,value:$,variant:F="standard",...B}=t,[R,U]=Jn({controlled:$,default:d,name:"Select"}),[Y,K]=Jn({controlled:j,default:u,name:"Select"}),re=P.useRef(null),Q=P.useRef(null),[J,ie]=P.useState(null),{current:ee}=P.useRef(j!=null),[H,G]=P.useState(),z=Le(n,g),Z=P.useCallback(ye=>{Q.current=ye,ye&&ie(ye)},[]),X=J==null?void 0:J.parentNode;P.useImperativeHandle(z,()=>({focus:()=>{Q.current.focus()},node:re.current,value:R}),[R]);const te=J!==null&&Y;P.useEffect(()=>{if(!te||!X||a||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(()=>{G(X.clientWidth)});return ye.observe(X),()=>{ye.disconnect()}},[te,X,a]),P.useEffect(()=>{u&&Y&&J&&!ee&&(G(a?null:X.clientWidth),Q.current.focus())},[J,a]),P.useEffect(()=>{i&&Q.current.focus()},[i]),P.useEffect(()=>{if(!y)return;const ye=Mt(Q.current).getElementById(y);if(ye){const Ne=()=>{getSelection().isCollapsed&&Q.current.focus()};return ye.addEventListener("click",Ne),()=>{ye.removeEventListener("click",Ne)}}},[y]);const oe=(ye,Ne)=>{ye?V&&V(Ne):E&&E(Ne),ee||(G(a?null:X.clientWidth),K(ye))},ue=ye=>{D==null||D(ye),ye.button===0&&(ye.preventDefault(),Q.current.focus(),oe(!0,ye))},se=ye=>{oe(!1,ye)},de=P.Children.toArray(l),le=ye=>{const Ne=de.find(it=>it.props.value===ye.target.value);Ne!==void 0&&(U(Ne.props.value),T&&T(ye,Ne))},he=ye=>Ne=>{let it;if(Ne.currentTarget.hasAttribute("tabindex")){if(S){it=Array.isArray(R)?R.slice():[];const mn=R.indexOf(ye.props.value);mn===-1?it.push(ye.props.value):it.splice(mn,1)}else it=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Ne),R!==it&&(U(it),T)){const mn=Ne.nativeEvent||Ne,Or=new mn.constructor(mn.type,mn);Object.defineProperty(Or,"target",{writable:!0,value:{value:it,name:w}}),T(Or,ye)}S||oe(!1,Ne)}},pe=ye=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),oe(!0,ye)),I==null||I(ye))},De=ye=>{!te&&C&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:R,name:w}}),C(ye))};delete B["aria-invalid"];let ke,Xe;const tt=[];let St=!1,Et=!1;(Zi({value:R})||p)&&(L?ke=L(R):St=!0);const Pe=de.map(ye=>{if(!P.isValidElement(ye))return null;process.env.NODE_ENV!=="production"&&jo.isFragment(ye)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
239
+ `));let Ne;if(S){if(!Array.isArray(R))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Pn(2));Ne=R.some(it=>Eh(it,ye.props.value)),Ne&&St&&tt.push(ye.props.children)}else Ne=Eh(R,ye.props.value),Ne&&St&&(Xe=ye.props.children);return Ne&&(Et=!0),P.cloneElement(ye,{"aria-selected":Ne?"true":"false",onClick:he(ye),onKeyUp:it=>{it.key===" "&&it.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(it)},role:"option",selected:Ne,value:void 0,"data-value":ye.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!Et&&!S&&R!==""){const ye=de.map(Ne=>Ne.props.value);console.warn([`MUI: You have provided an out-of-range value \`${R}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ye.filter(Ne=>Ne!=null).map(Ne=>`\`${Ne}\``).join(", ")||'""'}.`].join(`
240
+ `))}},[Et,de,S,w,R]),St&&(S?tt.length===0?ke=null:ke=tt.reduce((ye,Ne,it)=>(ye.push(Ne),it<tt.length-1&&ye.push(", "),ye),[]):ke=Xe);let Ee=H;!a&&ee&&J&&(Ee=X.clientWidth);let ge;typeof k<"u"?ge=k:ge=f?null:0;const _e=N.id||(w?`mui-component-select-${w}`:void 0),Ve={...t,variant:F,value:R,open:te,error:h},st=_I(Ve),Qe={...v.PaperProps,...typeof((ut=v.slotProps)==null?void 0:ut.paper)=="function"?v.slotProps.paper(Ve):(bt=v.slotProps)==null?void 0:bt.paper},$t={...v.MenuListProps,...typeof((Rt=v.slotProps)==null?void 0:Rt.list)=="function"?v.slotProps.list(Ve):(hn=v.slotProps)==null?void 0:hn.list},Oe=so();return b.jsxs(P.Fragment,{children:[b.jsx(RI,{as:"div",ref:Z,tabIndex:ge,role:"combobox","aria-controls":te?Oe:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,_e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":A?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:pe,onMouseDown:f||x?null:ue,onBlur:De,onFocus:M,...N,ownerState:Ve,className:be(N.className,st.select,c),id:_e,children:NI(ke)?Ph||(Ph=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ke}),b.jsx(AI,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:w,ref:re,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:st.nativeInput,autoFocus:i,required:A,...B,ownerState:Ve}),b.jsx(II,{as:m,className:st.icon,ownerState:Ve}),b.jsx(X1,{id:`menu-${w||""}`,anchorEl:X,open:te,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Oe,...$t},paper:{...Qe,style:{minWidth:Ee,...Qe!=null?Qe.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(nb.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:wt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,required:s.bool,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const jI=yt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),LI=e=>{const{classes:t}=e,o=we({root:["root"]},tb,t);return{...t,...o}},td={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pn(e)&&e!=="variant"},VI=ve(Ia,td)(""),$I=ve(Na,td)(""),FI=ve(Aa,td)(""),nd=P.forwardRef(function(t,n){const o=$e({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=jI,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:S=!1,onClose:w,onOpen:C,open:T,renderValue:E,SelectDisplayProps:M,variant:I="outlined",...D}=o,V=S?eb:nb,j=Bn(),x=Mr({props:o,muiFormControl:j,states:["variant","error"]}),L=x.variant||I,A={...o,variant:L,classes:a},N=LI(A),{root:k,..._}=N,$=p||{standard:b.jsx(VI,{ownerState:A}),outlined:b.jsx($I,{label:m,ownerState:A}),filled:b.jsx(FI,{ownerState:A})}[L],F=Le(n,Hs($));return b.jsx(P.Fragment,{children:P.cloneElement($,{inputComponent:V,inputProps:{children:i,error:x.error,IconComponent:d,variant:L,type:void 0,multiple:v,...S?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:w,onOpen:C,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?Nt(_,h.classes):_,...p?p.props.inputProps:{}},...(v&&S||u)&&L==="outlined"?{notched:!0}:{},ref:F,className:be($.props.className,l,N.root),...!p&&{variant:L},...D})})});process.env.NODE_ENV!=="production"&&(nd.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});nd.muiName="Select";function BI(e){return Te("MuiTextField",e)}Se("MuiTextField",["root"]);const zI={standard:Ia,filled:Aa,outlined:Na},HI=e=>{const{classes:t}=e;return we({root:["root"]},BI,t)},WI=ve(Ku,{name:"MuiTextField",slot:"Root"})({}),ob=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:y,inputProps:v,InputProps:S,inputRef:w,label:C,maxRows:T,minRows:E,multiline:M=!1,name:I,onBlur:D,onChange:V,onFocus:j,placeholder:x,required:L=!1,rows:A,select:N=!1,SelectProps:k,slots:_={},slotProps:$={},type:F,value:B,variant:R="outlined",...U}=o,Y={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:N,variant:R},K=HI(Y);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const re=so(g),Q=m&&re?`${re}-helper-text`:void 0,J=C&&re?`${re}-label`:void 0,ie=zI[R],ee={slots:_,slotProps:{input:S,inputLabel:y,htmlInput:v,formHelperText:p,select:k,...$}},H={},G=ee.slotProps.inputLabel;R==="outlined"&&(G&&typeof G.shrink<"u"&&(H.notched=G.shrink),H.label=C),N&&((!k||!k.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[z,Z]=rt("root",{elementType:WI,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,...U},ownerState:Y,className:be(K.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:L,color:c,variant:R}}),[X,te]=rt("input",{elementType:ie,externalForwardedProps:ee,additionalProps:H,ownerState:Y}),[oe,ue]=rt("inputLabel",{elementType:Zu,externalForwardedProps:ee,ownerState:Y}),[se,de]=rt("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:Y}),[le,he]=rt("formHelperText",{elementType:Xu,externalForwardedProps:ee,ownerState:Y}),[pe,De]=rt("select",{elementType:nd,externalForwardedProps:ee,ownerState:Y}),ke=b.jsx(X,{"aria-describedby":Q,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:I,rows:A,maxRows:T,minRows:E,type:F,value:B,id:re,inputRef:w,onBlur:D,onChange:V,onFocus:j,placeholder:x,inputProps:de,slots:{input:_.htmlInput?se:void 0},...te});return b.jsxs(z,{...Z,children:[C!=null&&C!==""&&b.jsx(oe,{htmlFor:re,id:J,...ue,children:C}),N?b.jsx(pe,{"aria-describedby":Q,id:re,labelId:J,value:B,input:ke,...De,children:a}):ke,m&&b.jsx(le,{id:Q,...he,children:m})]})});process.env.NODE_ENV!=="production"&&(ob.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,root:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});function UI(e){return Te("MuiIconButton",e)}const Mh=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),YI=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${ce(o)}`,r&&`edge${ce(r)}`,`size${ce(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return we(l,UI,t)},qI=ve(vr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Ze(({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}}]})),Ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(qt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(qt()).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)}}],[`&.${Mh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Mh.loading}`]:{color:"transparent"}}))),GI=ve("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"}}]})),Ms=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:p=null,loadingIndicator:h,...m}=o,g=so(f),y=h??b.jsx(Wu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},S=YI(v);return b.jsxs(qI,{id:p?g:f,className:be(S.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:b.jsx(GI,{className:S.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={children:Fn(s.node,e=>P.Children.toArray(e.children).some(n=>P.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(`
241
+ `)):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])});function ZI(e){return Te("MuiInputAdornment",e)}const Oh=Se("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var kh;const KI=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},XI=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${ce(r)}`,a,o&&"hiddenLabel",i&&`size${ce(i)}`]};return we(l,ZI,t)},QI=ve("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:KI})(Ze(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Oh.positionStart}&:not(.${Oh.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),rb=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=o,p=Bn()||{};let h=d;d&&p.variant&&process.env.NODE_ENV!=="production"&&d===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!h&&(h=p.variant);const m={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:u,variant:h},g=XI(m);return b.jsx(Zs.Provider,{value:null,children:b.jsx(QI,{as:a,ownerState:m,className:be(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?b.jsx(ao,{color:"textSecondary",children:r}):b.jsxs(P.Fragment,{children:[u==="start"?kh||(kh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});process.env.NODE_ENV!=="production"&&(rb.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Yn=7;function od(e){const{ownerState:t}=Dt(),n=fn();return P.useMemo(()=>W({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const JI=yt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),e7=yt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),t7=yt(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),n7=yt(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");yt(b.jsxs(P.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");yt(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");yt(b.jsxs(P.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");const o7=yt(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 r7(e){return Te("MuiPickersTextField",e)}Se("MuiPickersTextField",["root","focused","disabled","error","required"]);const s7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function i7(e){return Te("MuiPickersInputBase",e)}const ur=Se("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function a7(e){return Te("MuiPickersSectionList",e)}const Ko=Se("MuiPickersSectionList",["root","section","sectionContent"]),l7=["slots","slotProps","elements","sectionListRef","classes"],sb=ae.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),ib=ae.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),ab=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),lb=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),c7=e=>we({root:["root"],section:["section"],sectionContent:["sectionContent"]},a7,e);function cb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=Dt(),a=(t==null?void 0:t.section)??ib,l=je({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??lb,u=je({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??ab,f=je({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:W({},i,{separatorPosition:"before"})}),p=je({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:W({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=Le(u.ref,h),g=y=>{const v=y.relatedTarget,S=y.currentTarget.closest(`.${Ko.root}`);if(S&&v instanceof Node&&S.contains(v)){y.stopPropagation();return}};return b.jsxs(a,W({},l,{children:[b.jsx(d,W({},f)),b.jsx(c,W({},u,{ref:m,onBlur:g})),b.jsx(d,W({},p))]}))}process.env.NODE_ENV!=="production"&&(cb.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const rd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Me(o,l7),d=c7(c),{ownerState:f}=Dt(),p=P.useRef(null),h=Le(n,p),m=v=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return p.current};P.useImperativeHandle(l,()=>({getRoot(){return m("getRoot")},getSectionContainer(v){return m("getSectionContainer").querySelector(`.${Ko.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${Ko.section}[data-sectionindex="${v}"] .${Ko.sectionContent}`)},getSectionIndexFromDOMElement(v){const S=m("getSectionIndexFromDOMElement");if(v==null||!S.contains(v))return null;let w=null;return v.classList.contains(Ko.section)?w=v:v.classList.contains(Ko.sectionContent)&&(w=v.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??sb,y=je({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:f});return b.jsx(g,W({},y,{children:y.contentEditable?a.map(({content:v,before:S,after:w})=>`${S.children}${v.children}${w.children}`).join(""):b.jsx(P.Fragment,{children:a.map((v,S)=>b.jsx(cb,{slots:r,slotProps:i,element:v,classes:d},S))})}))});process.env.NODE_ENV!=="production"&&(rd.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(rd.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const sd=P.createContext(null);process.env.NODE_ENV!=="production"&&(sd.displayName="PickerTextFieldOwnerStateContext");const _a=()=>{const e=P.useContext(sd);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
242
+ `));return e},u7=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],d7=e=>Math.round(e*1e5)/1e5,ja=ae.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>W({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${d7(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),id=ae.styled(sb,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),f7=ae.styled(ib,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),p7=ae.styled(lb,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),h7=ae.styled(ab,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),m7=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(W({},s7)),g7=ae.styled("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),y7=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:r,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,f={root:["root",n&&!o&&"focused",o&&"disabled",r&&"readOnly",i&&"error",l&&"fullWidth",`color${ce(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return we(f,i7,e)};function Dh(e,t,n,o){var r;if(e.content.id){const i=(r=t.current)==null?void 0:r.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function b7(e,t){var r,i,a,l,c;let n=0;if(((r=t.current)==null?void 0:r.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Dh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Dh(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const Ks=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:p,slotProps:h,contentEditable:m,tabIndex:g,onInput:y,onPaste:v,onKeyDown:S,name:w,readOnly:C,inputProps:T,inputRef:E,sectionListRef:M,onFocus:I,onBlur:D,classes:V,ownerState:j}=o,x=Me(o,u7),L=_a(),A=P.useRef(null),N=P.useRef(null),k=P.useRef([]),_=Le(n,A),$=Le(T==null?void 0:T.ref,E),F=Bn();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const B=j??L,R=H=>{var G;(G=F.onFocus)==null||G.call(F,H),I==null||I(H)},U=H=>{R(H)},Y=H=>{var G,z;if(S==null||S(H),H.key==="Enter"&&!H.defaultMuiPrevented){if((G=A.current)!=null&&G.dataset.multiInput)return;const Z=(z=A.current)==null?void 0:z.closest("form"),X=Z==null?void 0:Z.querySelector('[type="submit"]');if(!Z||!X)return;H.preventDefault(),Z.requestSubmit(X)}},K=H=>{var G;(G=F.onBlur)==null||G.call(F,H),D==null||D(H)};P.useEffect(()=>{F&&F.setAdornedStart(!!d)},[F,d]),P.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const re=y7(V,B),Q=(p==null?void 0:p.root)||ja,J=je({elementType:Q,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:x,additionalProps:{"aria-invalid":F.error,ref:_},className:re.root,ownerState:B}),ie=(p==null?void 0:p.input)||id,ee=r.some(H=>H.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!ee||!B.isPickerOpen)return;const{activeBarWidth:H,sectionOffsets:G}=b7(r,A);k.current=[G[0],G[1]],N.current&&(N.current.style.width=`${H}px`)},[r,ee,B.isPickerOpen]),b.jsxs(Q,W({},J,{children:[d,b.jsx(rd,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:re.sectionsContainer,onFocus:R,onBlur:K,onInput:y,onPaste:v,onKeyDown:Y,slots:{root:ie,section:f7,sectionContent:p7,sectionSeparator:h7},slotProps:{root:W({},h==null?void 0:h.input,{ownerState:B}),sectionContent:{className:ur.sectionContent},sectionSeparator:({separatorPosition:H})=>({className:H==="before"?ur.sectionBefore:ur.sectionAfter})}}),u,f?f(W({},F)):null,b.jsx(m7,W({name:w,className:re.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:F.required,disabled:F.disabled,onFocus:U},T,{ref:$})),ee&&b.jsx(g7,{className:re.activeBar,ref:N,ownerState:{sectionOffsets:k.current}})]}))});process.env.NODE_ENV!=="production"&&(Ks.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Ks.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function v7(e){return Te("MuiPickersOutlinedInput",e)}const un=W({},ur,Se("MuiPickersOutlinedInput",["root","notchedOutline","input"])),x7=["children","className","label","notched","shrink"],C7=ae.styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Rh=ae.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),w7=ae.styled("legend",{slot:"internal",shouldForwardProp:e=>Kn(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function S7(e){const{className:t,label:n,notched:o}=e,r=Me(e,x7),i=_a();return b.jsx(C7,W({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(w7,{ownerState:i,notched:o,children:n?b.jsx(Rh,{children:n}):b.jsx(Rh,{className:"notranslate",children:"​"})})}))}const T7=["label","autoFocus","ownerState","classes","notched"],P7=ae.styled(ja,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${un.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${un.focused} .${un.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${un.disabled}`]:{[`& .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${un.error} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${un.focused}:not(.${un.error}) .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),E7=ae.styled(id,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),M7=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v7,e);return W({},e,n)},La=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Me(o,T7),c=Bn(),u=M7(i);return b.jsx(Ks,W({slots:{root:P7,input:E7},renderSuffix:d=>b.jsx(S7,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:r!=null&&r!==""&&(c!=null&&c.required)?b.jsxs(P.Fragment,{children:[r," ","*"]}):r})},l,{label:r,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(La.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(La.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});La.muiName="Input";function O7(e){return Te("MuiPickersFilledInput",e)}const vo=W({},ur,Se("MuiPickersFilledInput",["root","underline","input"])),k7=["label","autoFocus","disableUnderline","hiddenLabel","classes"],D7=ae.styled(ja,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ht.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),R7=ae.styled(id,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ht.shouldForwardProp(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),I7=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},O7,e);return W({},e,r)},Va=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Me(o,k7),u=_a(),d=W({},u,{inputHasUnderline:!i}),f=I7(l,d);return b.jsx(Ks,W({slots:{root:D7,input:R7},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Va.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Va.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Va.muiName="Input";function A7(e){return Te("MuiPickersFilledInput",e)}const Wr=W({},ur,Se("MuiPickersInput",["root","underline","input"])),N7=["label","autoFocus","disableUnderline","ownerState","classes"],_7=ae.styled(ja,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),j7=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},A7,e);return W({},e,r)},$a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Me(o,N7),c=_a(),u=W({},c,{inputHasUnderline:!i}),d=j7(a,u);return b.jsx(Ks,W({slots:{root:_7},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&($a.displayName="PickersInput");process.env.NODE_ENV!=="production"&&($a.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});$a.muiName="Input";const L7=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],V7={standard:$a,filled:Va,outlined:La},$7=ae.styled(Ku,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),F7=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},r7,e)},Fa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:S,areAllSectionsEmpty:w,onClick:C,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:I,endAdornment:D,startAdornment:V,tabIndex:j,contentEditable:x,focused:L,value:A,onChange:N,fullWidth:k,id:_,name:$,helperText:F,FormHelperTextProps:B,label:R,InputLabelProps:U,"data-active-range-position":Y}=o,K=Me(o,L7),re=P.useRef(null),Q=Le(n,re),J=so(_),ie=F&&J?`${J}-helper-text`:void 0,ee=R&&J?`${J}-label`:void 0,H=od({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),G=P.useMemo(()=>W({},H,{isFieldValueEmpty:w,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:k??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(U!=null&&U.shrink)}),[H,w,L,d,o.size,c,k,V,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,R,U==null?void 0:U.shrink]),z=F7(l,G),Z=V7[f],X={};return f==="outlined"?(U&&typeof U.shrink<"u"&&(X.notched=U.shrink),X.label=R):f==="filled"&&(X.hiddenLabel=h),b.jsx(sd.Provider,{value:G,children:b.jsxs($7,W({className:be(z.root,a),ref:Q,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:k,required:p,ownerState:G},K,{children:[R!=null&&R!==""&&b.jsx(Zu,W({htmlFor:J,id:ee},U,{children:R})),b.jsx(Z,W({elements:S,areAllSectionsEmpty:w,onClick:C,onKeyDown:T,onKeyUp:E,onInput:I,onPaste:M,onFocus:r,onBlur:i,endAdornment:D,startAdornment:V,tabIndex:j,contentEditable:x,value:A,onChange:N,id:J,fullWidth:k,inputProps:g,inputRef:y,sectionListRef:v,label:R,name:$,role:"group","aria-labelledby":ee,"aria-describedby":ie,"aria-live":ie?"polite":void 0,"data-active-range-position":Y},X,m)),F&&b.jsx(Xu,W({id:ie},B,{children:F}))]}))})});process.env.NODE_ENV!=="production"&&(Fa.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Fa.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const B7=["enableAccessibleFieldDOMStructure"],z7=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],H7=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],W7=["ownerState"],U7=["ownerState"],Y7=["ownerState"],q7=["ownerState"],G7=["InputProps","inputProps"],Tl=()=>{},Z7=e=>{var S,w,C,T,E,M,I,D,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Me(e,B7);if(t){const{InputProps:j,readOnly:x,onClear:L,clearable:A,clearButtonPosition:N,openPickerButtonPosition:k,openPickerAriaLabel:_}=n,$=Me(n,z7),F=Yn>=6&&((S=$==null?void 0:$.slotProps)!=null&&S.input)?ds((w=$==null?void 0:$.slotProps)==null?void 0:w.input,j):Tl;return{clearable:A,onClear:L,clearButtonPosition:N,openPickerButtonPosition:k,openPickerAriaLabel:_,textFieldProps:W({},$,Yn>=6&&((C=$==null?void 0:$.slotProps)!=null&&C.input)?{slotProps:W({},$==null?void 0:$.slotProps,{input:B=>W({},tn(F,B),{readOnly:x})})}:{InputProps:W({},j??{},{readOnly:x})})}}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:f,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m}=n,g=Me(n,H7),y=Yn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?ds((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):Tl,v=Yn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?ds((I=g==null?void 0:g.slotProps)==null?void 0:I.htmlInput,c):Tl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:W({},g,Yn>=6&&((D=g==null?void 0:g.slotProps)!=null&&D.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:W({},g==null?void 0:g.slotProps,{input:j=>W({},tn(y,j),{readOnly:a}),htmlInput:j=>W({},tn(v,j),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:W({},l??{},{readOnly:a}),inputProps:W({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},Ba=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ba.displayName="PickerFieldUIContext");function K7(e){var B,R,U,Y;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=lo(),r=Ru(),i=P.useContext(Ba),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=Z7(t),p=od(a),h=me(K=>{K.preventDefault(),r==null||r.setOpen(re=>!re)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?ob:Fa),S=i.slots.inputAdornment??rb,w=je({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:W({},p,{position:"start"})}),C=Me(w,W7),T=je({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:W({},p,{position:"end"})}),E=Me(T,U7),M=i.slots.openPickerButton??Ms,I=je({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),D=Me(I,Y7),V=i.slots.openPickerIcon??n,j=je({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),x=i.slots.clearButton??Ms,L=je({elementType:x,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&g!==y?g:!1},ownerState:p}),A=Me(L,q7),N=i.slots.clearIcon??o7,k=je({elementType:N,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=Le(a.ref,r==null?void 0:r.rootRef);const _={},$=tn((Yn>=6&&((B=a==null?void 0:a.slotProps)==null?void 0:B.input))??a.InputProps,p);r&&(_.ref=r.triggerRef),!($!=null&&$.startAdornment)&&(g==="start"||y==="start")&&(_.startAdornment=b.jsxs(S,W({},C,{children:[y==="start"&&b.jsx(M,W({},D,{children:b.jsx(V,W({},j))})),g==="start"&&b.jsx(x,W({},A,{children:b.jsx(N,W({},k))}))]}))),!($!=null&&$.endAdornment)&&(g==="end"||y==="end")&&(_.endAdornment=b.jsxs(S,W({},E,{children:[g==="end"&&b.jsx(x,W({},A,{children:b.jsx(N,W({},k))})),y==="end"&&b.jsx(M,W({},D,{children:b.jsx(V,W({},j))}))]}))),!(_!=null&&_.endAdornment)&&!(_!=null&&_.startAdornment)&&i.slots.inputAdornment&&(_.endAdornment=b.jsx(S,W({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const F=Yn>=6&&((R=a==null?void 0:a.slotProps)!=null&&R.input)?tn(ds($,_),p):W({},$,_);return a.inputProps=Yn>=6&&((U=a==null?void 0:a.slotProps)!=null&&U.htmlInput)?tn(a.slotProps.htmlInput,p):a.inputProps,(Y=a==null?void 0:a.slotProps)==null||delete Y.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,W({},a,{InputProps:F}))}function ds(e,t){return e?t?n=>W({},tn(t,n),tn(e,n)):e:t}function X7(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(Ba),i=Ru(),a=od(n),{InputProps:l,inputProps:c}=n,u=Me(n,G7),d=je({elementType:Fa,externalSlotProps:ds(r.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:r.inputRef},ownerState:a});return d.inputProps=W({},c,d.inputProps),d.InputProps=W({},l,d.InputProps),d}function Q7(e){const{slots:t={},slotProps:n={},inputRef:o,children:r}=e,i=P.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(Ba.Provider,{value:i,children:r})}const J7=["slots","slotProps"],za=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Me(o,J7),l=X7({slotProps:i,ref:n,externalForwardedProps:a}),c=wR(l);return b.jsx(Q7,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(K7,{fieldResponse:c,defaultOpenPickerIcon:n7})})});process.env.NODE_ENV!=="production"&&(za.displayName="DateField");process.env.NODE_ENV!=="production"&&(za.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,clearButtonPosition:s.oneOf(["end","start"]),color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,openPickerButtonPosition:s.oneOf(["end","start"]),readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const ub=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ke();return P.useCallback(u=>Fs({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,o,r,i,a,l])},eA=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return W({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const r=o.newTimezone;if(t.getTimezone(n.currentMonth)===r)return n;let i=t.setTimezone(n.currentMonth,r);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),W({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return W({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},tA=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f,getCurrentMonthFromVisibleDate:p}=e,h=Ke(),m=P.useRef(eA(!!u,h)).current,g=P.useMemo(()=>Mn.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:xn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),S=ub({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const w=me(({target:T,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const M=E==="cell-interaction";let I,D;if(E==="cell-interaction")I=p(T,y.currentMonth),D=T;else if(I=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),D=T,S(D)){const x=h.startOfMonth(T),L=h.endOfMonth(T);D=xs({adapter:h,date:D,minDate:h.isBefore(a,x)?x:a,maxDate:h.isAfter(i,L)?L:i,disablePast:r,disableFuture:o,isDateDisabled:S,timezone:f})}const V=!h.isSameMonth(y.currentMonth,I),j=!h.isSameYear(y.currentMonth,I);V&&(l==null||l(I)),j&&(c==null||c(h.startOfYear(I))),v({type:"setVisibleDate",month:I,direction:h.isAfterDay(I,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&D!=null&&h.isSameDay(D,y.focusedDay)?y.focusedDay:D,skipAnimation:M})}),C=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:w,isDateDisabled:S,onMonthSwitchingAnimationEnd:C}},nA=e=>Te("MuiPickersFadeTransitionGroup",e);Se("MuiPickersFadeTransitionGroup",["root"]);const oA=["children"],rA=e=>we({root:["root"]},nA,e),sA=ae.styled(Ws,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function db(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Me(t,oA),c=rA(i),u=ae.useTheme();return o?a:b.jsx(sA,{className:be(c.root,n),ownerState:l,children:b.jsx(no,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function iA(e){return Te("MuiPickersDay",e)}const xo=Se("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function fb(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Ke(),{ownerState:d}=Dt();return P.useMemo(()=>W({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:r??!1,isDayStartOfWeek:u.isSameDay(i,u.startOfWeek(i)),isDayEndOfWeek:u.isSameDay(i,u.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,i,n,t,o,r,a,l,c])}const aA=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],lA=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return we({root:["root",n&&!u&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},iA,e)},pb=({theme:e})=>W({},e.typography.caption,{width:Es,height:Es,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})`:ae.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xo.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}},[`&.${xo.disabled}:not(.${xo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xo.disabled}&.${xo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ta}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${xo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),hb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},cA=ae.styled(vr,{name:"MuiPickersDay",slot:"Root",overridesResolver:hb})(pb),uA=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:hb})(({theme:e})=>W({},pb({theme:e}),{opacity:0,pointerEvents:"none"})),Ur=()=>{},ad=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Ur,onBlur:f=Ur,onKeyDown:p=Ur,onMouseDown:h=Ur,onMouseEnter:m=Ur,children:g,day:y,selected:v,disabled:S,today:w,outsideCurrentMonth:C,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,I=Me(o,aA),D=fb({day:y,selected:v,disabled:S,today:w,outsideCurrentMonth:C,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),V=lA(a,D),j=Ke(),x=P.useRef(null),L=Le(x,n);Pt(()=>{r&&!S&&!l&&!C&&x.current.focus()},[r,S,l,C]);const A=k=>{h(k),C&&k.preventDefault()},N=k=>{k.defaultMuiPrevented=!0,S||u(y),C&&k.currentTarget.focus(),c&&c(k)};return C&&!M?b.jsx(uA,{className:be(V.root,V.hiddenDaySpacingFiller,i),ownerState:D,role:I.role}):b.jsx(cA,W({className:be(V.root,i),ref:L,centerRipple:!0,disabled:S,tabIndex:v?0:-1,onKeyDown:k=>p(k,y),onFocus:k=>d(k,y),onBlur:k=>f(k,y),onMouseEnter:k=>m(k,y),onClick:N,onMouseDown:A},I,{ownerState:D,children:g??j.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(ad.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(ad.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 mb=P.memo(ad);process.env.NODE_ENV!=="production"&&(mb.displayName="PickersDay");const dA=e=>Te("MuiPickersSlideTransition",e),Zt=Se("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),fA=["children","className","reduceAnimations","slideDirection","transKey","classes"],pA=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,dA,e)},hA=ae.styled(Ws,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Zt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Zt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Zt.slideEnterActive}`]:t.slideEnterActive},{[`.${Zt.slideExit}`]:t.slideExit},{[`.${Zt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Zt["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},[`& .${Zt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Zt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Zt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Zt.slideExit}`]:{transform:"translate(0%)"},[`& .${Zt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Zt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function mA(e){const t=ae.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Me(t,fA),{ownerState:u}=Dt(),d=W({},u,{slideDirection:i}),f=pA(l,d),p=ae.useTheme();if(r)return b.jsx("div",{className:be(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx(hA,{className:be(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(_u,W({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const gA=e=>Te("MuiDayCalendar",e);Se("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const yA=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],bA=["ownerState"],vA=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},gA,e),gb=(Es+Ta*2)*6,xA=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),CA=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),wA=ae.styled(ao,{name:"MuiDayCalendar",slot:"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})),SA=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),TA=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>W({},e.typography.caption,{width:Es,height:Es,padding:0,margin:`0 ${Ta}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),PA=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:gb}),EA=ae.styled(mA,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:gb}),MA=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),OA=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Ta}px 0`,display:"flex",justifyContent:"center"});function kA(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Me(e,yA);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ke(),v=xa(g),S=o!=null&&y.isSameDay(n,o),w=l&&S,C=r.some(A=>y.isSameDay(A,n)),T=y.isSameDay(n,v),E=P.useMemo(()=>u||i(n),[u,i,n]),M=P.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),I=fb({day:n,selected:C,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),D=(h==null?void 0:h.day)??mb,V=je({elementType:D,externalSlotProps:m==null?void 0:m.day,additionalProps:W({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:W({},I,{day:n,isDayDisabled:E,isDaySelected:C})}),j=Me(V,bA),x=P.useMemo(()=>{const A=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(A)):y.isSameDay(n,A)},[a,n,p,y]),L=P.useMemo(()=>{const A=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(A)):y.isSameDay(n,A)},[a,n,p,y]);return b.jsx(D,W({},j,{day:n,disabled:E,autoFocus:!M&&w,today:T,outsideCurrentMonth:M,isFirstVisibleCell:x,isLastVisibleCell:L,selected:C,tabIndex:S?0:-1,"aria-selected":C,"aria-current":T?"date":void 0}))}function DA(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Ke(),{onFocusedDayChange:o,className:r,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:m=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:y,disablePast:v,disableFuture:S,minDate:w,maxDate:C,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:I=G=>n.format(G,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:V,gridLabelId:j,displayWeekNumber:x,fixedWeekNumber:L,timezone:A}=t,N=xa(A),k=vA(i),_=fn(),$=ub({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:w,maxDate:C,disablePast:v,disableFuture:S,timezone:A}),F=lo(),B=me(G=>{p||d(G)}),R=G=>{$(G)||(o(G),V==null||V(!0))},U=me((G,z)=>{switch(G.key){case"ArrowUp":R(n.addDays(z,-7)),G.preventDefault();break;case"ArrowDown":R(n.addDays(z,7)),G.preventDefault();break;case"ArrowLeft":{const Z=n.addDays(z,_?1:-1),X=n.addMonths(z,_?1:-1),te=xs({adapter:n,date:Z,minDate:_?Z:n.startOfMonth(X),maxDate:_?n.endOfMonth(X):Z,isDateDisabled:$,timezone:A});R(te||Z),G.preventDefault();break}case"ArrowRight":{const Z=n.addDays(z,_?-1:1),X=n.addMonths(z,_?-1:1),te=xs({adapter:n,date:Z,minDate:_?n.startOfMonth(X):Z,maxDate:_?Z:n.endOfMonth(X),isDateDisabled:$,timezone:A});R(te||Z),G.preventDefault();break}case"Home":R(n.startOfWeek(z)),G.preventDefault();break;case"End":R(n.endOfWeek(z)),G.preventDefault();break;case"PageUp":R(n.addMonths(z,1)),G.preventDefault();break;case"PageDown":R(n.addMonths(z,-1)),G.preventDefault();break}}),Y=me((G,z)=>R(z)),K=me((G,z)=>{c!=null&&n.isSameDay(c,z)&&(V==null||V(!1))}),re=n.getMonth(a),Q=n.getYear(a),J=P.useMemo(()=>l.filter(G=>!!G).map(G=>n.startOfDay(G)),[n,l]),ie=`${Q}-${re}`,ee=P.useMemo(()=>P.createRef(),[ie]),H=P.useMemo(()=>{const G=n.getWeekArray(a);let z=n.addMonths(a,1);for(;L&&G.length<L;){const Z=n.getWeekArray(z),X=n.isSameDay(G[G.length-1][0],Z[0][0]);Z.slice(X?1:0).forEach(te=>{G.length<L&&G.push(te)}),z=n.addMonths(z,1)}return G},[a,L,n]);return b.jsxs(xA,{role:"grid","aria-labelledby":j,className:k.root,children:[b.jsxs(CA,{role:"row",className:k.header,children:[x&&b.jsx(SA,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:k.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),X6(n,N).map((G,z)=>b.jsx(wA,{variant:"caption",role:"columnheader","aria-label":n.format(G,"weekday"),className:k.weekDayLabel,children:I(G)},z.toString()))]}),u?b.jsx(PA,{className:k.loadingContainer,children:m()}):b.jsx(EA,W({transKey:ie,onExited:f,reduceAnimations:h,slideDirection:g,className:be(r,k.slideTransition)},y,{nodeRef:ee,children:b.jsx(MA,{ref:ee,role:"rowgroup",className:k.monthContainer,children:H.map((G,z)=>b.jsxs(OA,{role:"row",className:k.weekContainer,"aria-rowindex":z+1,children:[x&&b.jsx(TA,{className:k.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(G[0])),children:F.calendarWeekNumberText(n.getWeekNumber(G[0]))}),G.map((Z,X)=>b.jsx(kA,{parentProps:t,day:Z,selectedDays:J,isViewFocused:D,focusedDay:c,onKeyDown:U,onFocus:Y,onBlur:K,onDaySelect:B,isDateDisabled:$,currentMonthNumber:re,"aria-colindex":X+1},Z.toString()))]},`week-${G[0]}`))})}))]})}function yb(e){return Te("MuiMonthCalendar",e)}const pi=Se("MuiMonthCalendar",["root","button","disabled","selected"]),RA=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],IA=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,yb,e)},AA=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${pi.disabled}`]:t.disabled},{[`&.${pi.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${pi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${pi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bb=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Me(t,RA),m=P.useRef(null),{ownerState:g}=Dt(),y=W({},g,{isMonthDisabled:r,isMonthSelected:i}),v=IA(o,y);Pt(()=>{var C;n&&((C=m.current)==null||C.focus())},[n]);const S=(f==null?void 0:f.monthButton)??AA,w=je({elementType:S,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:C=>l(C,a),onKeyDown:C=>c(C,a),onFocus:C=>u(C,a),onBlur:C=>d(C,a)},ownerState:y,className:v.button});return b.jsx(S,W({},w))});process.env.NODE_ENV!=="production"&&(bb.displayName="MonthCalendarButton");const NA=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],_A=e=>we({root:["root"]},yb,e);function jA(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Bs(n);return W({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ih=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),LA=ae.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Pa,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),ld=P.forwardRef(function(t,n){const o=jA(t,"MuiMonthCalendar"),{autoFocus:r,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:f,disableFuture:p,disablePast:h,maxDate:m,minDate:g,onChange:y,shouldDisableMonth:v,readOnly:S,onMonthFocus:w,hasFocus:C,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:I,slots:D,slotProps:V}=o,j=Me(o,NA),{value:x,handleValueChange:L,timezone:A}=Gs({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:Mn}),N=xa(A),k=fn(),_=Ke(),{ownerState:$}=Dt(),F=P.useMemo(()=>Mn.getInitialReferenceValue({value:x,adapter:_,props:o,timezone:A,referenceDate:d,granularity:xn.month}),[]),B=_A(l),R=P.useMemo(()=>_.getMonth(N),[_,N]),U=P.useMemo(()=>x!=null?_.getMonth(x):null,[x,_]),[Y,K]=P.useState(()=>U||_.getMonth(F)),[re,Q]=Jn({name:"MonthCalendar",state:"hasFocus",controlled:C,default:r??!1}),J=me(X=>{Q(X),T&&T(X)}),ie=P.useCallback(X=>{const te=_.startOfMonth(h&&_.isAfter(N,g)?N:g),oe=_.startOfMonth(p&&_.isBefore(N,m)?N:m),ue=_.startOfMonth(X);return _.isBefore(ue,te)||_.isAfter(ue,oe)?!0:v?v(ue):!1},[p,h,m,g,N,v,_]),ee=me((X,te)=>{if(S)return;const ue=(x&&a&&!_.isSameYear(x,a)?_.setYear(x,_.getYear(a)):x)??a??F,se=_.setMonth(ue,te);L(se)}),H=me(X=>{ie(_.setMonth(x??a??F,X))||(K(X),J(!0),w&&w(X))});P.useEffect(()=>{K(X=>U!==null&&X!==U?U:X)},[U]);const G=me((X,te)=>{switch(X.key){case"ArrowUp":H((12+te-3)%12),X.preventDefault();break;case"ArrowDown":H((12+te+3)%12),X.preventDefault();break;case"ArrowLeft":H((12+te+(k?1:-1))%12),X.preventDefault();break;case"ArrowRight":H((12+te+(k?-1:1))%12),X.preventDefault();break}}),z=me((X,te)=>{H(te)}),Z=me((X,te)=>{Y===te&&J(!1)});return b.jsx(LA,W({ref:n,className:be(B.root,i),ownerState:$,role:"radiogroup","aria-labelledby":I,monthsPerRow:E},j,{children:xu(_,a??x??F).map(X=>{const te=_.getMonth(X),oe=_.format(X,"monthShort"),ue=_.format(X,"month"),se=Ih(te,U,X,x,_),de=f||ie(X);return b.jsx(bb,{selected:se,value:te,onClick:ee,onKeyDown:G,autoFocus:re&&te===Y,disabled:de,tabIndex:te===Y&&!de?0:-1,onFocus:z,onBlur:Z,"aria-current":Ih(te,R,X,N,_)?"date":void 0,"aria-label":ue,slots:D,slotProps:V,classes:l,children:oe},oe)})}))});process.env.NODE_ENV!=="production"&&(ld.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(ld.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,currentMonth:s.object,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 vb(e){return Te("MuiYearCalendar",e)}const hi=Se("MuiYearCalendar",["root","button","disabled","selected"]),VA=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],$A=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,vb,e)},FA=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${hi.disabled}`]:t.disabled},{[`&.${hi.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${hi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${hi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),xb=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Me(t,VA),m=P.useRef(null),{ownerState:g}=Dt(),y=W({},g,{isYearDisabled:r,isYearSelected:i}),v=$A(o,y);Pt(()=>{var C;n&&((C=m.current)==null||C.focus())},[n]);const S=(f==null?void 0:f.yearButton)??FA,w=je({elementType:S,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:C=>l(C,a),onKeyDown:C=>c(C,a),onFocus:C=>u(C,a),onBlur:C=>d(C,a)},ownerState:y,className:v.button});return b.jsx(S,W({},w))});process.env.NODE_ENV!=="production"&&(xb.displayName="YearCalendarButton");const BA=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],zA=e=>we({root:["root"]},vb,e);function HA(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Bs(n);return W({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const WA=ae.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Pa,maxHeight:ZD,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),UA=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),cd=P.forwardRef(function(t,n){const o=HA(t,"MuiYearCalendar"),{autoFocus:r,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:h,minDate:m,onChange:g,readOnly:y,shouldDisableYear:v,onYearFocus:S,hasFocus:w,onFocusedViewChange:C,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:I,slots:D,slotProps:V}=o,j=Me(o,BA),{value:x,handleValueChange:L,timezone:A}=Gs({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:Mn}),N=xa(A),k=fn(),_=Ke(),{ownerState:$}=Dt(),F=P.useMemo(()=>Mn.getInitialReferenceValue({value:x,adapter:_,props:o,timezone:A,referenceDate:u,granularity:xn.year}),[]),B=zA(a),R=P.useMemo(()=>_.getYear(N),[_,N]),U=P.useMemo(()=>x!=null?_.getYear(x):null,[x,_]),[Y,K]=P.useState(()=>U||_.getYear(F)),[re,Q]=Jn({name:"YearCalendar",state:"hasFocus",controlled:w,default:r??!1}),J=me(le=>{Q(le),C&&C(le)}),ie=P.useCallback(le=>{if(p&&_.isBeforeYear(le,N)||f&&_.isAfterYear(le,N)||m&&_.isBeforeYear(le,m)||h&&_.isAfterYear(le,h))return!0;if(!v)return!1;const he=_.startOfYear(le);return v(he)},[f,p,h,m,N,v,_]),ee=me((le,he)=>{if(y)return;const pe=_.setYear(x??F,he);L(pe)}),H=me(le=>{ie(_.setYear(x??F,le))||(K(le),J(!0),S==null||S(le))});P.useEffect(()=>{K(le=>U!==null&&le!==U?U:le)},[U]);const G=T!=="desc"?E*1:E*-1,z=k&&T==="asc"||!k&&T==="desc"?-1:1,Z=me((le,he)=>{switch(le.key){case"ArrowUp":H(he-G),le.preventDefault();break;case"ArrowDown":H(he+G),le.preventDefault();break;case"ArrowLeft":H(he-z),le.preventDefault();break;case"ArrowRight":H(he+z),le.preventDefault();break}}),X=me((le,he)=>{H(he)}),te=me((le,he)=>{Y===he&&J(!1)}),oe=P.useRef(null),ue=Le(n,oe);P.useEffect(()=>{if(r||oe.current===null)return;const le=oe.current.querySelector('[tabindex="0"]');if(!le)return;const he=le.offsetHeight,pe=le.offsetTop,De=oe.current.clientHeight,ke=oe.current.scrollTop,Xe=pe+he;he>De||pe<ke||(oe.current.scrollTop=Xe-De/2-he/2)},[r]);const se=_.getYearRange([m,h]);T==="desc"&&se.reverse();let de=E-se.length%E;return de===E&&(de=0),b.jsxs(WA,W({ref:ue,className:be(B.root,i),ownerState:$,role:"radiogroup","aria-labelledby":I,yearsPerRow:E},j,{children:[se.map(le=>{const he=_.getYear(le),pe=he===U,De=d||ie(le);return b.jsx(xb,{selected:pe,value:he,onClick:ee,onKeyDown:Z,autoFocus:re&&he===Y,disabled:De,tabIndex:he===Y&&!De?0:-1,onFocus:X,onBlur:te,"aria-current":R===he?"date":void 0,slots:D,slotProps:V,classes:a,children:_.format(le,"year")},_.format(le,"year"))}),Array.from({length:de},(le,he)=>b.jsx(UA,{},he))]}))});process.env.NODE_ENV!=="production"&&(cd.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(cd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const YA=e=>Te("MuiPickersCalendarHeader",e),qA=Se("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function GA(e){return Te("MuiPickersArrowSwitcher",e)}Se("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const ZA=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],KA=["ownerState"],XA=["ownerState"],QA=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),JA=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Ah=ae.styled(Ms,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),e4=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},GA,e),Cb=P.forwardRef(function(t,n){const o=fn(),r=ae.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:v,classes:S}=r,w=Me(r,ZA),{ownerState:C}=Dt(),T=e4(S),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},I=(l==null?void 0:l.previousIconButton)??Ah,D=je({elementType:I,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:W({},C,{isButtonHidden:M.isHidden??!1}),className:be(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Ah,j=je({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:W({},C,{isButtonHidden:E.isHidden??!1}),className:be(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??e7,L=je({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:T.leftArrowIcon}),A=Me(L,KA),N=(l==null?void 0:l.rightArrowIcon)??t7,k=je({elementType:N,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:T.rightArrowIcon}),_=Me(k,XA);return b.jsxs(QA,W({ref:n,className:be(T.root,a),ownerState:C},w,{children:[b.jsx(I,W({},D,{children:o?b.jsx(N,W({},_)):b.jsx(x,W({},A))})),i?b.jsx(ao,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(JA,{className:T.spacer,ownerState:C}),b.jsx(V,W({},j,{children:o?b.jsx(x,W({},A)):b.jsx(N,W({},_))}))]}))});process.env.NODE_ENV!=="production"&&(Cb.displayName="PickersArrowSwitcher");function t4(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ke();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function n4(e,{disablePast:t,minDate:n,timezone:o}){const r=Ke();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const o4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],r4=["ownerState"],s4=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},YA,e),i4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),a4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>W({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),l4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),c4=ae.styled(Ms,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${qA.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),u4=ae.styled(JI,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ud=P.forwardRef(function(t,n){const o=lo(),r=Ke(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:v,views:S,labelId:w,className:C,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,I=Me(i,o4),{ownerState:D}=Dt(),V=s4(T),j=(a==null?void 0:a.switchViewButton)??c4,x=je({elementType:j,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:W({},D,{view:y}),className:V.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??u4,A=je({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:V.switchViewIcon}),N=Me(A,r4),k=()=>m(r.addMonths(c,1)),_=()=>m(r.addMonths(c,-1)),$=t4(c,{disableFuture:d,maxDate:p,timezone:E}),F=n4(c,{disablePast:f,minDate:h,timezone:E}),B=()=>{if(!(S.length===1||!g||u))if(S.length===2)g(S.find(U=>U!==y)||S[0]);else{const U=S.indexOf(y)!==0?0:1;g(S[U])}};if(S.length===1&&S[0]==="year")return null;const R=r.formatByString(c,M);return b.jsxs(i4,W({},I,{ownerState:D,className:be(V.root,C),ref:n,children:[b.jsxs(a4,{role:"presentation",onClick:B,ownerState:D,"aria-live":"polite",className:V.labelContainer,children:[b.jsx(db,{reduceAnimations:v,transKey:R,children:b.jsx(l4,{id:w,ownerState:D,className:V.label,children:R})}),S.length>1&&!u&&b.jsx(j,W({},x,{children:b.jsx(L,W({},N))}))]}),b.jsx(no,{in:y==="day",appear:!v,enter:!v,children:b.jsx(Cb,{slots:a,slotProps:l,onGoToPrevious:_,isPreviousDisabled:F,previousLabel:o.previousMonth,onGoToNext:k,isNextDisabled:$,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(ud.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(ud.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 d4=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Pa,maxHeight:qu,display:"flex",flexDirection:"column",margin:"0 auto"}),f4=e=>Te("MuiDateCalendar",e);Se("MuiDateCalendar",["root","viewTransitionContainer"]);const p4=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],h4=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},f4,e);function m4(e,t){const n=ae.useThemeProps({props:e,name:t}),o=C1(n.reduceAnimations),r=Bs(n);return W({},n,r,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>b.jsx("span",{children:"..."}))})}const g4=ae.styled(d4,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:qu}),y4=ae.styled(db,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),dd=P.forwardRef(function(t,n){const o=Ke(),{ownerState:r}=Dt(),i=so(),a=m4(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:h,onChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:w,view:C,views:T,openTo:E,className:M,classes:I,disabled:D,readOnly:V,minDate:j,maxDate:x,disableHighlightToday:L,focusedView:A,onFocusedViewChange:N,showDaysOutsideCurrentMonth:k,fixedWeekNumber:_,dayOfWeekFormatter:$,slots:F,slotProps:B,loading:R,renderLoading:U,displayWeekNumber:Y,yearsOrder:K,yearsPerRow:re,monthsPerRow:Q,timezone:J}=a,ie=Me(a,p4),{value:ee,handleValueChange:H,timezone:G}=Gs({name:"DateCalendar",timezone:J,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:Mn}),{view:z,setView:Z,focusedView:X,setFocusedView:te,goToNextView:oe,setValueAndGoToNextView:ue}=S1({view:C,views:T,openTo:E,onChange:H,onViewChange:c,autoFocus:l,focusedView:A,onFocusedViewChange:N}),{referenceDate:se,calendarState:de,setVisibleDate:le,isDateDisabled:he,onMonthSwitchingAnimationEnd:pe}=tA({value:ee,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:j,maxDate:x,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:G,getCurrentMonthFromVisibleDate:(Oe,ut)=>o.isSameMonth(Oe,ut)?ut:o.startOfMonth(Oe)}),De=D&&ee||j,ke=D&&ee||x,Xe=`${i}-grid-label`,tt=X!==null,St=(F==null?void 0:F.calendarHeader)??ud,Et=je({elementType:St,externalSlotProps:B==null?void 0:B.calendarHeader,additionalProps:{views:T,view:z,currentMonth:de.currentMonth,onViewChange:Z,onMonthChange:Oe=>le({target:Oe,reason:"header-navigation"}),minDate:De,maxDate:ke,disabled:D,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:G,labelId:Xe},ownerState:r}),Pe=me(Oe=>{const ut=o.startOfMonth(Oe),bt=o.endOfMonth(Oe),Rt=he(Oe)?xs({adapter:o,date:Oe,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(x,bt)?bt:x,disablePast:h,disableFuture:p,isDateDisabled:he,timezone:G}):Oe;Rt?(ue(Rt,"finish"),le({target:Rt,reason:"cell-interaction"})):(oe(),le({target:ut,reason:"cell-interaction"}))}),Ee=me(Oe=>{const ut=o.startOfYear(Oe),bt=o.endOfYear(Oe),Rt=he(Oe)?xs({adapter:o,date:Oe,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(x,bt)?bt:x,disablePast:h,disableFuture:p,isDateDisabled:he,timezone:G}):Oe;Rt?(ue(Rt,"finish"),le({target:Rt,reason:"cell-interaction"})):(oe(),le({target:ut,reason:"cell-interaction"}))}),ge=me(Oe=>H(Oe&&zi(o,Oe,ee??se),"finish",z));P.useEffect(()=>{o.isValid(ee)&&le({target:ee,reason:"controlled-value-change"})},[ee]);const _e=h4(I),Ve={disablePast:h,disableFuture:p,maxDate:x,minDate:j},st={disableHighlightToday:L,readOnly:V,disabled:D,timezone:G,gridLabelId:Xe,slots:F,slotProps:B},Qe=P.useRef(z);P.useEffect(()=>{Qe.current!==z&&(X===Qe.current&&te(z,!0),Qe.current=z)},[X,te,z]);const $t=P.useMemo(()=>[ee],[ee]);return b.jsxs(g4,W({ref:n,className:be(_e.root,M),ownerState:r},ie,{children:[b.jsx(St,W({},Et,{slots:F,slotProps:B})),b.jsx(y4,{reduceAnimations:y,className:_e.viewTransitionContainer,transKey:z,ownerState:r,children:b.jsxs("div",{children:[z==="year"&&b.jsx(cd,W({},Ve,st,{value:ee,onChange:Ee,shouldDisableYear:w,hasFocus:tt,onFocusedViewChange:Oe=>te("year",Oe),yearsOrder:K,yearsPerRow:re,referenceDate:se})),z==="month"&&b.jsx(ld,W({},Ve,st,{currentMonth:de.currentMonth,hasFocus:tt,className:M,value:ee,onChange:Pe,shouldDisableMonth:S,onFocusedViewChange:Oe=>te("month",Oe),monthsPerRow:Q,referenceDate:se})),z==="day"&&b.jsx(DA,W({},de,Ve,st,{onMonthSwitchingAnimationEnd:pe,hasFocus:tt,onFocusedDayChange:Oe=>le({target:Oe,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:$t,onSelectedDaysChange:ge,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:w,onFocusedViewChange:Oe=>te("day",Oe),showDaysOutsideCurrentMonth:k,fixedWeekNumber:_,dayOfWeekFormatter:$,displayWeekNumber:Y,loading:R,renderLoading:U}))]})})]}))});process.env.NODE_ENV!=="production"&&(dd.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(dd.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 _o=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:S,onMonthChange:w,monthsPerRow:C,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:I,slotProps:D,loading:V,renderLoading:j,disableHighlightToday:x,readOnly:L,disabled:A,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:k,sx:_,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:B,timezone:R})=>b.jsx(dd,{view:e,onViewChange:t,views:n.filter(Rp),focusedView:o&&Rp(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:S,onMonthChange:w,monthsPerRow:C,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:I,slotProps:D,loading:V,renderLoading:j,disableHighlightToday:x,readOnly:L,disabled:A,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:k,sx:_,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:B,timezone:R});process.env.NODE_ENV!=="production"&&(_o.displayName="renderDateViewCalendar");const fd=P.forwardRef(function(t,n){var c;const o=Ke(),r=Xy(t,"MuiDesktopDatePicker"),i=W({day:_o,month:_o,year:_o},r.viewRenderers),a=W({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:Cu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:W({field:za},r.slots),slotProps:W({},r.slotProps,{field:u=>{var d;return W({},tn((d=r.slotProps)==null?void 0:d.field,u),Gy(r))},toolbar:W({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=lR({ref:n,props:a,valueManager:Mn,valueType:"date",validator:Fs,steps:null});return l()});process.env.NODE_ENV!=="production"&&(fd.displayName="DesktopDatePicker");fd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};function b4(e){return Te("MuiDialogContent",e)}Se("MuiDialogContent",["root","dividers"]);const v4=Se("MuiDialogTitle",["root"]),x4=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},b4,t)},C4=ve("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ze(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${v4.root} + &`]:{paddingTop:0}}}]}))),wb=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=x4(l);return b.jsx(C4,{className:be(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(wb.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function w4(e){return Te("MuiDialog",e)}const fs=Se("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Sb=P.createContext({});process.env.NODE_ENV!=="production"&&(Sb.displayName="DialogContext");const S4=ve(Qu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),T4=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return we(a,w4,t)},P4=ve(Ju,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),E4=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),M4=ve(Us,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ze(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${fs.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${fs.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${fs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Tb=P.forwardRef(function(t,n){const o=$e({props:t,name:"MuiDialog"}),r=ca(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:v,onClose:S,open:w,PaperComponent:C=Us,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:I={},TransitionComponent:D=no,transitionDuration:V=i,TransitionProps:j,...x}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},A=T4(L),N=P.useRef(),k=Z=>{N.current=Z.target===Z.currentTarget},_=Z=>{v&&v(Z),N.current&&(N.current=null,S&&S(Z,"backdropClick"))},$=so(l),F=P.useMemo(()=>({titleId:$}),[$]),B={transition:D,...M},R={transition:j,paper:T,backdrop:d,...I},U={slots:B,slotProps:R},[Y,K]=rt("root",{elementType:P4,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:L,className:be(A.root,p),ref:n}),[re,Q]=rt("backdrop",{elementType:S4,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:L,className:A.backdrop}),[J,ie]=rt("paper",{elementType:M4,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:L,className:be(A.paper,T.className)}),[ee,H]=rt("container",{elementType:E4,externalForwardedProps:U,ownerState:L,className:A.container}),[G,z]=rt("transition",{elementType:no,externalForwardedProps:U,ownerState:L,additionalProps:{appear:!0,in:w,timeout:V,role:"presentation"}});return b.jsx(Y,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:V,as:u,...Q}},disableEscapeKeyDown:h,onClose:S,open:w,onClick:_,...K,...x,children:b.jsx(G,{...z,children:b.jsx(ee,{onMouseDown:k,...H,children:b.jsx(J,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":$,"aria-modal":c,...ie,children:b.jsx(Sb.Provider,{value:F,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Tb.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),container:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,container:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const O4=ae.styled(Tb,{slot:"internal"})({[`& .${fs.container}`]:{outline:0},[`& .${fs.paper}`]:{outline:0,minWidth:Pa}}),k4=ae.styled(wb,{slot:"internal"})({"&:first-of-type":{padding:0}});function D4(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Er(),{dismissViews:i,onPopperExited:a}=Dt(),l=(n==null?void 0:n.dialog)??O4,c=(n==null?void 0:n.mobileTransition)??no;return b.jsx(l,W({open:r,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:b.jsx(k4,{children:t})}))}const R4=["props","steps"],I4=["ownerState"],A4=e=>{var E;let{props:t,steps:n}=e,o=Me(e,R4);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=V1({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=P1(W({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,y=je({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:W({},m&&{id:h}),ownerState:p}),v=Me(y,I4),S=r.layout??Ea;let w=h;m&&(a?w=`${h}-label`:w=void 0);const C=W({},i,{toolbar:W({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:W({"aria-labelledby":w},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(Hy,W({},d,{children:[b.jsx(g,W({},v,{slots:W({},r,v.slots),slotProps:W({},C,v.slotProps),inputRef:l})),b.jsx(D4,{slots:r,slotProps:C,children:b.jsx(S,W({},C==null?void 0:C.layout,{slots:r,slotProps:C,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},pd=P.forwardRef(function(t,n){var c;const o=Ke(),r=Xy(t,"MuiMobileDatePicker"),i=W({day:_o,month:_o,year:_o},r.viewRenderers),a=W({},r,{viewRenderers:i,format:Cu(o,r,!1),slots:W({field:za},r.slots),slotProps:W({},r.slotProps,{field:u=>{var d;return W({},tn((d=r.slotProps)==null?void 0:d.field,u),Gy(r))},toolbar:W({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=A4({ref:n,props:a,valueManager:Mn,valueType:"date",validator:Fs,steps:null});return l()});process.env.NODE_ENV!=="production"&&(pd.displayName="MobileDatePicker");pd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const N4=["desktopModeMediaQuery"],hd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=$k}=o,i=Me(o,N4);return Ly(r,{defaultMatches:!0})?b.jsx(fd,W({ref:n},i)):b.jsx(pd,W({ref:n},i))});process.env.NODE_ENV!=="production"&&(hd.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(hd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});var Pb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var N=["th","st","nd","rd"],k=A%100;return"["+A+(N[(k-20)%10]||N[k]||N[0])+"]"}},w=function(A,N,k){var _=String(A);return!_||_.length>=N?A:""+Array(N+1-_.length).join(k)+A},C={s:w,z:function(A){var N=-A.utcOffset(),k=Math.abs(N),_=Math.floor(k/60),$=k%60;return(N<=0?"+":"-")+w(_,2,"0")+":"+w($,2,"0")},m:function A(N,k){if(N.date()<k.date())return-A(k,N);var _=12*(k.year()-N.year())+(k.month()-N.month()),$=N.clone().add(_,f),F=k-$<0,B=N.clone().add(_+(F?-1:1),f);return+(-(_+(k-$)/(F?$-B:B-$))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},T="en",E={};E[T]=S;var M="$isDayjsObject",I=function(A){return A instanceof x||!(!A||!A[M])},D=function A(N,k,_){var $;if(!N)return T;if(typeof N=="string"){var F=N.toLowerCase();E[F]&&($=F),k&&(E[F]=k,$=F);var B=N.split("-");if(!$&&B.length>1)return A(B[0])}else{var R=N.name;E[R]=N,$=R}return!_&&$&&(T=$),$||!_&&T},V=function(A,N){if(I(A))return A.clone();var k=typeof N=="object"?N:{};return k.date=A,k.args=arguments,new x(k)},j=C;j.l=D,j.i=I,j.w=function(A,N){return V(A,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var x=function(){function A(k){this.$L=D(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[M]=!0}var N=A.prototype;return N.parse=function(k){this.$d=function(_){var $=_.date,F=_.utc;if($===null)return new Date(NaN);if(j.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var B=$.match(y);if(B){var R=B[2]-1||0,U=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,U)):new Date(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,U)}}return new Date($)}(k),this.init()},N.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},N.$utils=function(){return j},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(k,_){var $=V(k);return this.startOf(_)<=$&&$<=this.endOf(_)},N.isAfter=function(k,_){return V(k)<this.startOf(_)},N.isBefore=function(k,_){return this.endOf(_)<V(k)},N.$g=function(k,_,$){return j.u(k)?this[_]:this.set($,k)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(k,_){var $=this,F=!!j.u(_)||_,B=j.p(k),R=function(ee,H){var G=j.w($.$u?Date.UTC($.$y,H,ee):new Date($.$y,H,ee),$);return F?G:G.endOf(u)},U=function(ee,H){return j.w($.toDate()[ee].apply($.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(H)),$)},Y=this.$W,K=this.$M,re=this.$D,Q="set"+(this.$u?"UTC":"");switch(B){case h:return F?R(1,0):R(31,11);case f:return F?R(1,K):R(0,K+1);case d:var J=this.$locale().weekStart||0,ie=(Y<J?Y+7:Y)-J;return R(F?re-ie:re+(6-ie),K);case u:case m:return U(Q+"Hours",0);case c:return U(Q+"Minutes",1);case l:return U(Q+"Seconds",2);case a:return U(Q+"Milliseconds",3);default:return this.clone()}},N.endOf=function(k){return this.startOf(k,!1)},N.$set=function(k,_){var $,F=j.p(k),B="set"+(this.$u?"UTC":""),R=($={},$[u]=B+"Date",$[m]=B+"Date",$[f]=B+"Month",$[h]=B+"FullYear",$[c]=B+"Hours",$[l]=B+"Minutes",$[a]=B+"Seconds",$[i]=B+"Milliseconds",$)[F],U=F===u?this.$D+(_-this.$W):_;if(F===f||F===h){var Y=this.clone().set(m,1);Y.$d[R](U),Y.init(),this.$d=Y.set(m,Math.min(this.$D,Y.daysInMonth())).$d}else R&&this.$d[R](U);return this.init(),this},N.set=function(k,_){return this.clone().$set(k,_)},N.get=function(k){return this[j.p(k)]()},N.add=function(k,_){var $,F=this;k=Number(k);var B=j.p(_),R=function(K){var re=V(F);return j.w(re.date(re.date()+Math.round(K*k)),F)};if(B===f)return this.set(f,this.$M+k);if(B===h)return this.set(h,this.$y+k);if(B===u)return R(1);if(B===d)return R(7);var U=($={},$[l]=o,$[c]=r,$[a]=n,$)[B]||1,Y=this.$d.getTime()+k*U;return j.w(Y,this)},N.subtract=function(k,_){return this.add(-1*k,_)},N.format=function(k){var _=this,$=this.$locale();if(!this.isValid())return $.invalidDate||g;var F=k||"YYYY-MM-DDTHH:mm:ssZ",B=j.z(this),R=this.$H,U=this.$m,Y=this.$M,K=$.weekdays,re=$.months,Q=$.meridiem,J=function(H,G,z,Z){return H&&(H[G]||H(_,F))||z[G].slice(0,Z)},ie=function(H){return j.s(R%12||12,H,"0")},ee=Q||function(H,G,z){var Z=H<12?"AM":"PM";return z?Z.toLowerCase():Z};return F.replace(v,function(H,G){return G||function(z){switch(z){case"YY":return String(_.$y).slice(-2);case"YYYY":return j.s(_.$y,4,"0");case"M":return Y+1;case"MM":return j.s(Y+1,2,"0");case"MMM":return J($.monthsShort,Y,re,3);case"MMMM":return J(re,Y);case"D":return _.$D;case"DD":return j.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return J($.weekdaysMin,_.$W,K,2);case"ddd":return J($.weekdaysShort,_.$W,K,3);case"dddd":return K[_.$W];case"H":return String(R);case"HH":return j.s(R,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ee(R,U,!0);case"A":return ee(R,U,!1);case"m":return String(U);case"mm":return j.s(U,2,"0");case"s":return String(_.$s);case"ss":return j.s(_.$s,2,"0");case"SSS":return j.s(_.$ms,3,"0");case"Z":return B}return null}(H)||B.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(k,_,$){var F,B=this,R=j.p(_),U=V(k),Y=(U.utcOffset()-this.utcOffset())*o,K=this-U,re=function(){return j.m(B,U)};switch(R){case h:F=re()/12;break;case f:F=re();break;case p:F=re()/3;break;case d:F=(K-Y)/6048e5;break;case u:F=(K-Y)/864e5;break;case c:F=K/r;break;case l:F=K/o;break;case a:F=K/n;break;default:F=K}return $?F:j.a(F)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return E[this.$L]},N.locale=function(k,_){if(!k)return this.$L;var $=this.clone(),F=D(k,_,!0);return F&&($.$L=F),$},N.clone=function(){return j.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},A}(),L=x.prototype;return V.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(A){L[A[1]]=function(N){return this.$g(N,A[0],A[1])}}),V.extend=function(A,N){return A.$i||(A(N,x,V),A.$i=!0),V},V.locale=D,V.isDayjs=I,V.unix=function(A){return V(1e3*A)},V.en=E[T],V.Ls=E,V.p={},V})})(Pb);var _4=Pb.exports;const vt=oo(_4);var Eb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n="week",o="year";return function(r,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),f=a(this).endOf(n);if(d.isBefore(f))return 1}var p=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Eb);var j4=Eb.exports;const L4=oo(j4);var Mb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var S=v.match(/([+-]|\d\d)/g),w=60*S[1]+(+S[2]||0);return w===0?0:S[0]==="+"?-w:w}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var S,w=c.meridiem;if(w){for(var C=1;C<=24;C+=1)if(y.indexOf(w(C,0,v))>-1){S=C>12;break}}else S=y===(v?"pm":"PM");return S},m={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[r,function(y){this.month=3*(y-1)+1}],S:[r,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var v=c.ordinal,S=y.match(/\d+/);if(this.day=S[0],v)for(var w=1;w<=31;w+=1)v(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),S=(p("monthsShort")||v.map(function(w){return w.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var v=p("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var v,S;v=y,S=c&&c.formats;for(var w=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,j,x){var L=x&&x.toUpperCase();return j||S[x]||n[x]||S[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,N,k){return N||k.slice(1)})})).match(o),C=w.length,T=0;T<C;T+=1){var E=w[T],M=m[E],I=M&&M[0],D=M&&M[1];w[T]=D?{regex:I,parser:D}:E.replace(/^\[|\]$/g,"")}return function(V){for(var j={},x=0,L=0;x<C;x+=1){var A=w[x];if(typeof A=="string")L+=A.length;else{var N=A.regex,k=A.parser,_=V.slice(L),$=N.exec(_)[0];k.call(j,$),V=V.replace($,"")}}return function(F){var B=F.afternoon;if(B!==void 0){var R=F.hours;B?R<12&&(F.hours+=12):R===12&&(F.hours=0),delete F.afternoon}}(j),j}}return function(y,v,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var w=v.prototype,C=w.parse;w.parse=function(T){var E=T.date,M=T.utc,I=T.args;this.$u=M;var D=I[1];if(typeof D=="string"){var V=I[2]===!0,j=I[3]===!0,x=V||j,L=I[2];j&&(L=I[2]),c=this.$locale(),!V&&L&&(c=S.Ls[L]),this.$d=function(_,$,F,B){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*_);var R=g($)(_),U=R.year,Y=R.month,K=R.day,re=R.hours,Q=R.minutes,J=R.seconds,ie=R.milliseconds,ee=R.zone,H=R.week,G=new Date,z=K||(U||Y?1:G.getDate()),Z=U||G.getFullYear(),X=0;U&&!Y||(X=Y>0?Y-1:G.getMonth());var te,oe=re||0,ue=Q||0,se=J||0,de=ie||0;return ee?new Date(Date.UTC(Z,X,z,oe,ue,se,de+60*ee.offset*1e3)):F?new Date(Date.UTC(Z,X,z,oe,ue,se,de)):(te=new Date(Z,X,z,oe,ue,se,de),H&&(te=B(te).week(H).toDate()),te)}catch{return new Date("")}}(E,D,M,S),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),x&&E!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var A=D.length,N=1;N<=A;N+=1){I[1]=D[N-1];var k=S.apply(this,I);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}N===A&&(this.$d=new Date(""))}else C.call(this,T)}}})})(Mb);var V4=Mb.exports;const $4=oo(V4);var Ob={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,r,i){var a=r.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var y=g&&g.toUpperCase();return m||p[g]||n[g]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,S,w){return S||w.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Ob);var F4=Ob.exports;const B4=oo(F4);var kb={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){return function(n,o,r){o.prototype.isBetween=function(i,a,l,c){var u=r(i),d=r(a),f=(c=c||"()")[0]==="(",p=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(kb);var z4=kb.exports;const H4=oo(z4);var Db={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})})(Db);var W4=Db.exports;const U4=oo(W4);vt.extend(B4);vt.extend(L4);vt.extend(H4);vt.extend(U4);const Y4={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},q4={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Pl=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
243
+ `),Nh=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
244
+ `);class G4{constructor({locale:t,formats:n}={}){fe(this,"isMUIAdapter",!0);fe(this,"isTimezoneCompatible",!0);fe(this,"lib","dayjs");fe(this,"escapedCharacters",{start:"[",end:"]"});fe(this,"formatTokenMap",Y4);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof vt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof vt.tz<"u");fe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});fe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return vt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=vt.tz.guess();o==="UTC"?n=vt(t):n=vt.tz(t,o)}else n=vt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(Pl);return this.setLocaleToValue(vt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Pl);if(!this.hasTimezonePlugin())throw new Error(Nh);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(vt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=vt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&T1(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});fe(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});fe(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));fe(this,"getInvalidDate",()=>vt(new Date("Invalid date")));fe(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});fe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(Pl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Nh)}return this.setLocaleToValue(vt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:vt(t,n,this.locale,!0));fe(this,"getCurrentLocaleCode",()=>this.locale||"en");fe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));fe(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});fe(this,"isValid",t=>t==null?!1:t.isValid());fe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));fe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));fe(this,"formatNumber",t=>t);fe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());fe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));fe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));fe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));fe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));fe(this,"isAfter",(t,n)=>t>n);fe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));fe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));fe(this,"isBefore",(t,n)=>t<n);fe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));fe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));fe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);fe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));fe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));fe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));fe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));fe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));fe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));fe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));fe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));fe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));fe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));fe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));fe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));fe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));fe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));fe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));fe(this,"getYear",t=>t.year());fe(this,"getMonth",t=>t.month());fe(this,"getDate",t=>t.date());fe(this,"getHours",t=>t.hour());fe(this,"getMinutes",t=>t.minute());fe(this,"getSeconds",t=>t.second());fe(this,"getMilliseconds",t=>t.millisecond());fe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));fe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));fe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));fe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));fe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));fe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));fe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));fe(this,"getDaysInMonth",t=>t.daysInMonth());fe(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let r=0,i=n;const a=[];for(;i<o;){const l=Math.floor(r/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),r+=1}return a});fe(this,"getWeekNumber",t=>t.week());fe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=W({},q4,n),vt.extend($4)}getDayOfWeek(t){return t.day()+1}}const Z4="_root_1tj4p_1",K4="_container_1tj4p_72",X4="_header_1tj4p_79",Q4="_headerText_1tj4p_88",J4="_headerTitle_1tj4p_93",eN="_headerSubtitle_1tj4p_98",tN="_controls_1tj4p_104",nN="_headerButton_1tj4p_111",oN="_zoomGroup_1tj4p_131",rN="_zoomLabel_1tj4p_142",sN="_tracksWrapper_1tj4p_151",iN="_tracksWithHeader_1tj4p_156",aN="_layers_1tj4p_160",lN="_timeScale_1tj4p_166",cN="_videoTrack_1tj4p_170",uN="_trackBox_1tj4p_178",dN="_trackLabelRow_1tj4p_183",fN="_trackArea_1tj4p_200",pN="_tick_1tj4p_206",hN="_tickMajor_1tj4p_214",mN="_tickMinor_1tj4p_218",gN="_tickLabel_1tj4p_222",yN="_segment_1tj4p_234",bN="_selectionOverlay_1tj4p_274",vN="_playhead_1tj4p_283",xN="_playheadLine_1tj4p_293",CN="_playheadHandle_1tj4p_303",ze={root:Z4,container:K4,header:X4,headerText:Q4,headerTitle:J4,headerSubtitle:eN,controls:tN,headerButton:nN,zoomGroup:oN,zoomLabel:rN,tracksWrapper:sN,tracksWithHeader:iN,layers:aN,timeScale:lN,videoTrack:cN,trackBox:uN,trackLabelRow:dN,trackArea:fN,tick:pN,tickMajor:hN,tickMinor:mN,tickLabel:gN,segment:yN,selectionOverlay:bN,playhead:vN,playheadLine:xN,playheadHandle:CN};function at(e,t,n){return Math.min(n,Math.max(t,e))}function Zn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Xo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function ot(e){return String(Math.floor(e)).padStart(2,"0")}function wN(e){return String(Math.floor(e)).padStart(4,"0")}function _h(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60);return`${wN(t.getFullYear())}${ot(t.getMonth()+1)}${ot(t.getDate())}T${ot(o)}${ot(r)}${ot(i)}Z`}function sr(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function El(e){const t=Math.max(0,e),n=Math.floor(t/3600)%24,o=Math.floor(t%3600/60),r=Math.floor(t%60);return`${ot(n)}:${ot(o)}:${ot(r)}`}function SN(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return`${ot(o)}:${ot(r)}:${ot(i)}:${ot(l)}`}function Ml(e){const t=Math.max(0,e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=Math.floor(t%60);return n>0?`${ot(n)}:${ot(o)}:${ot(r)}`:`${ot(o)}:${ot(r)}`}function TN(e,t){const n=Math.max(0,e),o=Math.floor(n/3600),r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return o>0?`${ot(o)}:${ot(r)}:${ot(i)}:${ot(l)}`:`${ot(r)}:${ot(i)}:${ot(l)}`}function PN(e){const{width:t,windowSeconds:n,fps:o}=e,r=t>0?t/n:0,i=1/Math.max(1,o),a=[i,2*i,5*i,.25,.5,1,2,5,10,15,30,60,2*60,5*60,10*60,15*60,30*60,60*60,2*60*60,3*60*60,6*60*60],l=90,c=45;let u=a[a.length-1];for(const p of a)if(p*r>=l){u=p;break}const d=[u/2,u/5,u/10].filter(p=>p>0);let f=d[0]??u;for(const p of d)if(p*r>=c){f=p;break}return{majorStep:u,minorStep:f}}const EN=(e,t,n)=>t>=3600||t>=60||t>=1?El(e).slice(0,5):SN(e,n),MN=(e,t,n)=>t>=3600||t>=60||t>=1?Ml(e):TN(e,n);function ON(){const e=O.useRef(null),[t,n]=O.useState(0);return O.useLayoutEffect(()=>{const o=e.current;if(!o)return;const r=new ResizeObserver(()=>{n(o.getBoundingClientRect().width)});return r.observe(o),n(o.getBoundingClientRect().width),()=>r.disconnect()},[]),{ref:e,width:t}}function kN(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i,isLive:a=!1,date:l,onChangePeriod:c,segments:u,events:d,fps:f=30}=e,[p,h]=O.useState(()=>a?sr():0),[m,g]=O.useState(a),[y,v]=O.useState(null),[S,w]=O.useState({windowSeconds:t,fps:f});O.useEffect(()=>{a&&(g(!0),h(sr()))},[a]),O.useEffect(()=>{if(!m)return;const z=setInterval(()=>{h(sr())},1e3);return()=>clearInterval(z)},[m]);const{ref:C,width:T}=ON(),E=10,I=Math.max(0,T-E-10),[D,V]=O.useState(0),j=O.useMemo(()=>{const z=Math.max(1/Math.max(1,S.fps),.05);return at(S.windowSeconds,z,t)},[S.windowSeconds,S.fps,t]);O.useEffect(()=>{if(!m||T<=0)return;const z=at(p-j*.9,0,Math.max(0,t-j));V(z)},[p,m,T,j,t]);const x=O.useMemo(()=>{const z=at(D,0,Math.max(0,t-j)),Z=z+j;return{start:z,end:Z,seconds:j}},[D,t,j]),L=O.useMemo(()=>{if(I<=0)return[];const{majorStep:z,minorStep:Z}=PN({width:I,windowSeconds:x.seconds,fps:S.fps}),X=Math.floor(x.start/Z)*Z,te=x.end,oe=[],ue=Z*1e-6;for(let se=X;se<=te+ue;se+=Z){const de=Zn({time:se,windowStart:x.start,windowSeconds:x.seconds,width:I});if(de<-1||de>I+1)continue;const le=Math.abs(se/z-Math.round(se/z))<1e-6;oe.push({time:se,px:de,kind:le?"major":"minor",label:le?r(se,z,S.fps):void 0})}return oe},[I,r,x.end,x.seconds,x.start,S.fps]),A=O.useRef(c);A.current=c;const N=O.useRef(l);N.current=l;const k=O.useCallback((z,Z)=>{const X=A.current;if(!X)return;const te=N.current;X({startDate:_h(z,te),endDate:_h(Z,te)})},[]),_=O.useRef(null),$=O.useRef(null),F=z=>{$.current=z,_.current==null&&(_.current=requestAnimationFrame(()=>{_.current=null;const Z=$.current;$.current=null,Z==null||Z()}))};O.useEffect(()=>()=>{_.current!=null&&cancelAnimationFrame(_.current)},[]);const B=O.useRef(null),R=z=>{const Z=C.current;if(!Z)return 0;const X=Z.getBoundingClientRect();return at(z-X.left-E,0,I)},U=z=>{if(z.button!==0)return;const Z=C.current;if(!Z)return;Z.setPointerCapture(z.pointerId);const X=R(z.clientX),te=at(Xo({px:X,windowStart:x.start,windowSeconds:x.seconds,width:I}),0,t);g(!1),B.current={mode:"playhead",pointerId:z.pointerId,startPx:X,startTime:te},h(te)},Y=z=>{if(z.button!==0)return;const Z=C.current;if(!Z)return;Z.setPointerCapture(z.pointerId);const X=R(z.clientX),te=at(Xo({px:X,windowStart:x.start,windowSeconds:x.seconds,width:I}),0,t);g(!1),B.current={mode:"select",pointerId:z.pointerId,startPx:X,startTime:te},v({start:te,end:te})},K=z=>{if(z.button!==0)return;const Z=C.current;if(!Z)return;Z.setPointerCapture(z.pointerId);const X=R(z.clientX),te=at(Xo({px:X,windowStart:x.start,windowSeconds:x.seconds,width:I}),0,t);g(!1),B.current={mode:"playhead",pointerId:z.pointerId,startPx:X,startTime:te},h(te)},re=z=>{const Z=B.current;if(!Z||Z.pointerId!==z.pointerId)return;const X=R(z.clientX);F(()=>{const te=at(Xo({px:X,windowStart:x.start,windowSeconds:x.seconds,width:I}),0,t);if(Z.mode==="playhead")h(te);else{const oe=Math.min(Z.startTime,te),ue=Math.max(Z.startTime,te);v({start:oe,end:ue})}})},Q=z=>{const Z=B.current;if(!(!Z||Z.pointerId!==z.pointerId)&&(B.current=null,Z.mode==="select"&&y)){const X=Math.abs(y.end-y.start);if(X<Math.max(1/Math.max(1,S.fps),.1))v(null),h(Z.startTime),k(Z.startTime,Z.startTime);else if(k(y.start,y.end),o){const te=at(X*1.05,Math.max(1/Math.max(1,S.fps),.05),t),oe=at(y.start,0,Math.max(0,t-te));w(ue=>({...ue,windowSeconds:te})),V(oe)}}},J=z=>{if(!n||T<=0)return;z.preventDefault(),g(!1);const Z=R(z.clientX),X=at(Xo({px:Z,windowStart:x.start,windowSeconds:x.seconds,width:I}),0,t),oe=z.deltaY<0?.8:1.25,ue=at(x.seconds*oe,Math.max(1/Math.max(1,S.fps),.05),t),se=at(X-Z/Math.max(1,I)*ue,0,Math.max(0,t-ue));w(de=>({...de,windowSeconds:ue})),V(se)},ie=(z,Z)=>{g(!1);const X=at(z,0,t);h(X),k(Z.start,Z.end)},ee=z=>{i&&v(null),g(!1);const Z=at(z,0,t);h(Z),k(Z,Z),V(at(z-x.seconds/2,0,Math.max(0,t-x.seconds)))},H=()=>{g(!1),w(z=>({...z,windowSeconds:t})),V(0)},G=O.useCallback(()=>{g(!0),h(sr()),v(null)},[]);return{viewportRef:C,width:T,axisLeft:E,axisWidth:I,totalSeconds:t,zoom:S,setZoom:w,isLive:m,setIsLive:g,currentTime:p,selectedRange:y,setSelectedRange:v,videoSegments:u,events:d,view:x,ticks:L,onWheel:J,onPointerDownScrub:U,onPointerDownSelect:Y,onPointerDownPlayhead:K,onPointerMove:re,onPointerUp:Q,onClickSegment:ie,onClickEvent:ee,resetView:H,goLive:G}}const Rb=({ticks:e})=>b.jsx("div",{className:ze.trackArea,children:e.map(t=>b.jsxs("div",{children:[b.jsx("div",{className:`${ze.tick} ${t.kind==="minor"?ze.tickMinor:ze.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?b.jsx("div",{className:ze.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});Rb.displayName="TimeScale";const Ib=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:at(c.start,0,r),end:at(c.end,0,r)})).filter(c=>c.end>c.start).map(c=>({original:c.original,start:Math.max(c.start,t),end:Math.min(c.end,t+n)})).filter(c=>c.end>c.start),l=(c,u)=>{if(!i)return;c.stopPropagation();const d=c.currentTarget.getBoundingClientRect(),f=c.clientX-d.left,h=Zn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=at(Xo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return b.jsx("div",{className:ze.trackArea,children:a.map((c,u)=>{const d=Zn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Zn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return b.jsx("div",{className:ze.segment,style:{left:`${d}px`,width:`${p}px`},onClick:i?h=>l(h,c):void 0,onPointerDown:i?h=>h.stopPropagation():void 0,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?`Segmento ${c.original.start.toFixed(0)}s → ${c.original.end.toFixed(0)}s`:void 0,"aria-hidden":!i},`${c.start}-${c.end}-${u}`)})})};Ib.displayName="VideoTrack";const Ab=O.forwardRef(({className:e,sx:t,title:n="Timeline",subtitle:o="Arraste para aplicar zoom no período desejado",showHeader:r=!0,timeScaleMode:i="day24h",tickLabelFormatter:a,totalSeconds:l=24*60*60,enableWheelZoom:c=!1,height:u=80,autoZoomOnSelection:d=!0,showZoomControls:f=!0,enableScrubOnTracks:p=!1,clearSelectionOnEventClick:h=!0,isLive:m=!1,onDownloadClick:g,date:y,onDateChange:v,videoLabel:S="Vídeo",eventsLabel:w="Eventos",downloadLabel:C="Baixar vídeo",onChangePeriod:T,onSegmentClick:E,onEventClick:M,segments:I,events:D},V)=>{const x=ae.useTheme().palette.mode==="dark",[L,A]=O.useState(!1),N=a??(i==="duration"?MN:EN),{viewportRef:k,axisLeft:_,axisWidth:$,zoom:F,currentTime:B,selectedRange:R,videoSegments:U,view:Y,ticks:K,onWheel:re,onPointerDownScrub:Q,onPointerDownSelect:J,onPointerDownPlayhead:ie,onPointerMove:ee,onPointerUp:H,onClickSegment:G,setZoom:z,goLive:Z}=kN({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:N,clearSelectionOnEventClick:h,isLive:m,date:y??new Date,onChangePeriod:T,segments:I??[],events:D??[]});O.useImperativeHandle(V,()=>({goLive:Z}),[Z]);const X=$?_+Zn({time:B,windowStart:Y.start,windowSeconds:Y.seconds,width:$}):_,te=Math.max(1/Math.max(1,F.fps),.5),oe=te/l,ue=(()=>{const le=at(Y.seconds,te,l);if(oe<=0||oe>=1)return 0;const he=Math.log(le/l)/Math.log(oe)*100;return at(he,0,100)})(),se=le=>{const he=at(le,0,100),pe=l*Math.pow(oe,he/100);z(De=>({...De,windowSeconds:at(pe,te,l)}))},de=`${Math.round(ue)}%`;return b.jsxs(q.Card,{elevation:0,className:`${ze.root} ${ze.container} ${e??""}`.trim(),"data-theme":x?"dark":"light",sx:t,children:[r?b.jsxs("div",{className:ze.header,children:[b.jsxs("div",{className:ze.headerText,children:[b.jsx(q.Typography,{variant:"subtitle1",className:ze.headerTitle,children:n}),b.jsx(q.Typography,{variant:"caption",className:ze.headerSubtitle,children:o})]}),b.jsxs("div",{className:ze.controls,children:[g?b.jsxs("button",{type:"button",className:ze.headerButton,onClick:g,"aria-label":C,children:[b.jsx(B6,{fontSize:"small"}),C]}):null,y!==void 0?b.jsx(ba,{dateAdapter:G4,children:b.jsx(hd,{open:L,onOpen:()=>A(!0),onClose:()=>A(!1),value:vt(y),onChange:le=>{le&&v&&v(le.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:ze.headerButton,onClick:()=>A(!0),"aria-label":"Selecionar data",children:[b.jsx(z6,{fontSize:"small"}),vt(y).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(q.Box,{className:ze.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(q.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>se(ue-10),children:b.jsx(F6,{fontSize:"small"})}),b.jsx("span",{className:ze.zoomLabel,children:de}),b.jsx(q.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>se(ue+10),children:b.jsx($6,{fontSize:"small"})})]}):null]})]}):null,b.jsx(q.Box,{className:`${ze.tracksWrapper} ${r?ze.tracksWithHeader:""}`.trim(),style:{height:u,padding:"0 16px"},children:b.jsxs("div",{ref:k,className:ze.layers,onWheel:re,onPointerMove:ee,onPointerUp:H,children:[b.jsxs("div",{className:ze.playhead,style:{left:`${X}px`},onPointerDown:ie,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":B,tabIndex:0,children:[b.jsx("div",{className:ze.playheadHandle}),b.jsx("div",{className:ze.playheadLine})]}),b.jsx("div",{className:`${ze.trackLabelRow} ${ze.timeScale}`.trim(),onPointerDown:Q,style:{cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(Rb,{ticks:K})}),b.jsxs(q.Box,{className:ze.trackBox,onPointerDown:J,children:[R?b.jsx("div",{className:ze.selectionOverlay,style:{left:`${_+Zn({time:R.start,windowStart:Y.start,windowSeconds:Y.seconds,width:$})}px`,width:`${Math.max(0,Zn({time:R.end,windowStart:Y.start,windowSeconds:Y.seconds,width:$})-Zn({time:R.start,windowStart:Y.start,windowSeconds:Y.seconds,width:$}))}px`}}):null,b.jsx("div",{className:`${ze.trackLabelRow} ${ze.videoTrack}`.trim(),onPointerDown:p?Q:void 0,children:b.jsx(Ib,{segments:U,viewStart:Y.start,viewSeconds:Y.seconds,width:$,totalSeconds:l,onClickSegment:(le,he)=>{G(le,he),E==null||E(le,he)}})})]})]})})]})});Ab.displayName="VideoTimeline";const DN=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=ga(),[a,l]=Bi(ky),[c,u]=Bi(Dy),d=Oy(ZE),f=O.useRef(-1);return O.useEffect(()=>{if(!e||(u(!0),!t))return;l(sr());const p=setInterval(()=>{l(sr())},1e3);return()=>clearInterval(p)},[e,l,u,t]),O.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;const h=()=>{if(n&&d){const y=Math.max(0,d.start),v=Math.max(y,d.end);p.currentTime<y?p.currentTime=y:p.currentTime>v&&(o?p.currentTime=y:(p.pause(),p.currentTime=v))}if(l(p.currentTime),Number.isFinite(p.duration)&&p.duration>0){const y=p.duration-p.currentTime<=r;u(y)}},m=()=>{if(!n||!d)return;const y=Math.max(0,d.start),v=Math.max(y,d.end);(p.currentTime<y||p.currentTime>v)&&(p.currentTime=y)},g=()=>{c&&Number.isFinite(p.duration)&&p.duration>0&&(p.currentTime=p.duration)};return p.addEventListener("timeupdate",h),p.addEventListener("play",m),p.addEventListener("loadedmetadata",g),()=>{p.removeEventListener("timeupdate",h),p.removeEventListener("play",m),p.removeEventListener("loadedmetadata",g)}},[n,e,c,r,o,d,l,u,i]),O.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;if(c){if(Number.isFinite(p.duration)&&p.duration>0){const m=p.duration;Math.abs(p.currentTime-m)>.25&&(p.currentTime=m,f.current=m)}return}if(Math.abs(f.current-a)<.05)return;let h=a;if(n&&d){const m=Math.max(0,d.start),g=Math.max(m,d.end);h=Math.min(g,Math.max(m,h))}Math.abs(p.currentTime-h)>.25&&(p.currentTime=h,f.current=a)},[n,a,c,e,d,i]),O.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p||!n||!d)return;const h=Math.max(0,d.start),m=!p.paused;p.currentTime=h,f.current=h,u(!1),l(h),m&&p.play().catch(()=>{})},[n,e,d,l,u,i]),null},Nb=({stream:e=null,src:t,autoPlay:n=!0,muted:o=!0,playsInline:r=!0,className:i,updateTimeForLiveStream:a=!0,constrainToSelectedRange:l=!0,loopSelection:c=!1,availableQualities:u,initialQuality:d,onQualityChange:f,poster:p,sx:h,liveThresholdSeconds:m=2,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:S,height:w,aspectRatio:C,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:I,borderRadius:D,loading:V,unavailable:j,unavailableIcon:x,unavailableMessage:L})=>{const A=!!e,N=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(Ay,{children:[b.jsx(vu,{stream:e,availableQualities:N,initialQuality:d??(t&&!u?"default":void 0),onQualityChange:f,autoPlay:n,muted:o,playsInline:r,poster:p,className:i,sx:h,liveThresholdSeconds:m,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:S,height:w,aspectRatio:C,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:I,borderRadius:D,loading:V,unavailable:j,unavailableIcon:x,unavailableMessage:L}),b.jsx(DN,{isStream:A,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Nb.displayName="VideoPlayerWebRTC";const RN=yt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),IN="_container_1vjy6_1",AN="_segment_1vjy6_7",NN="_selected_1vjy6_20",_N="_label_1vjy6_28",jN="_icon_1vjy6_37",LN="_checkIcon_1vjy6_47",VN="_unselected_1vjy6_53",Co={container:IN,segment:AN,selected:NN,label:_N,icon:jN,checkIcon:LN,unselected:VN},_b=({items:e,className:t,sx:n,...o})=>{const i=q.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(q.Box,{className:`${Co.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(q.Box,{className:`${Co.segment} ${l.selected?Co.selected:Co.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(q.Box,{className:Co.icon,children:b.jsx(RN,{className:Co.checkIcon})}),b.jsx(q.Box,{className:Co.label,children:l.label})]},c))})};_b.displayName="DisplayTypes";const $N=600,Ol=[.32,.72,0,1],kl=400,jb=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=$N,className:l,sx:c})=>{const u=q.useTheme(),d=q.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${kl}ms cubic-bezier(${Ol.join(",")}), min-width ${kl}ms cubic-bezier(${Ol.join(",")})`;if(d&&i!=="both")return b.jsxs(q.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:p?"flex":"none",flexDirection:"column"},children:t})]});const g=r?0:o,y=r?0:void 0,v=r?"none":"auto";return b.jsxs(q.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${kl}ms cubic-bezier(${Ol.join(",")})`,...c},children:[b.jsx(q.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(q.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};jb.displayName="SplitLayout";const FN=256,Lb=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=FN,gap:r=2,className:i,sx:a})=>{const c=q.useTheme().spacing(r),u=n-1;return b.jsx(q.Box,{className:i,sx:{"--responsive-grid-gap":c,display:"grid",gap:c,width:"100%",minHeight:0,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(${o}px, calc((100% - ${u} * var(--responsive-grid-gap)) / ${n}))), 1fr))`,alignContent:"start",...a},children:e})};Lb.displayName="ResponsiveGrid";const Vb=yt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var BN=e=>e.type==="checkbox",ts=e=>e instanceof Date,md=e=>e==null;const $b=e=>typeof e=="object";var $o=e=>!md(e)&&!Array.isArray(e)&&$b(e)&&!ts(e),zN=e=>$o(e)&&e.target?BN(e.target)?e.target.checked:e.target.value:e,HN=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,WN=(e,t)=>e.has(HN(t)),UN=e=>{const t=e.constructor&&e.constructor.prototype;return $o(t)&&t.hasOwnProperty("isPrototypeOf")},YN=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Fb(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(YN&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!($o(e)&&UN(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Fb(e[r]));return o}var Bb=e=>/^\w*$/.test(e),Oc=e=>e===void 0,qN=e=>Array.isArray(e)?e.filter(Boolean):[],zb=e=>qN(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,n)=>{if(!t||!$o(e))return n;const o=(Bb(t)?[t]:zb(t)).reduce((r,i)=>md(r)?r:r[i],e);return Oc(o)||o===e?Oc(e[t])?n:e[t]:o},Dl=e=>typeof e=="boolean",mi=e=>typeof e=="function",jh=(e,t,n)=>{let o=-1;const r=Bb(t)?[t]:zb(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const u=e[l];c=$o(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Lh={BLUR:"blur",CHANGE:"change"},Vh={all:"all"},Hb=O.createContext(null);Hb.displayName="HookFormControlContext";const gd=()=>O.useContext(Hb);var GN=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Vh.all&&(t._proxyFormState[a]=!o||Vh.all),n&&(n[a]=!0),e[a]}});return r};const Wb=typeof window<"u"?O.useLayoutEffect:O.useEffect;function ZN(e){const t=gd(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=O.useState(n._formState),c=O.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Wb(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),O.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),O.useMemo(()=>GN(a,n,c.current,!1),[a,n])}var KN=e=>typeof e=="string",$h=(e,t,n,o,r)=>KN(e)?Ft(n,e,r):Array.isArray(e)?e.map(i=>Ft(n,i)):n,Fh=e=>md(e)||!$b(e);function Pi(e,t,n=new WeakSet){if(Fh(e)||Fh(t))return Object.is(e,t);if(ts(e)&&ts(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(ts(a)&&ts(l)||$o(a)&&$o(l)||Array.isArray(a)&&Array.isArray(l)?!Pi(a,l,n):!Object.is(a,l))return!1}}return!0}function XN(e){const t=gd(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=O.useRef(r),u=O.useRef(l),d=O.useRef(void 0),f=O.useRef(n),p=O.useRef(o);u.current=l;const[h,m]=O.useState(()=>{const C=n._getWatch(o,c.current);return u.current?u.current(C):C}),g=O.useCallback(C=>{const T=$h(o,n._names,C||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=O.useCallback(C=>{if(!i){const T=$h(o,n._names,C||n._formValues,!1,c.current);if(u.current){const E=u.current(T);Pi(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);Wb(()=>((f.current!==n||!Pi(p.current,o))&&(f.current=n,p.current=o,y()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:C=>{y(C.values)}})),[n,a,o,y]),O.useEffect(()=>n._removeUnmounted());const v=f.current!==n,S=p.current,w=O.useMemo(()=>{if(i)return null;const C=!v&&!Pi(S,o);return v||C?g():null},[i,v,o,S,g]);return w!==null?w:h}function QN(e){const t=gd(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=WN(r._names.array,n),u=O.useMemo(()=>Ft(r._formValues,n,Ft(r._defaultValues,n,a)),[r,n,a]),d=XN({control:r,name:n,defaultValue:u,exact:l}),f=ZN({control:r,name:n,exact:l}),p=O.useRef(e),h=O.useRef(void 0),m=O.useRef(r.register(n,{...e.rules,value:d,...Dl(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=O.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ft(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ft(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ft(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ft(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ft(f.errors,n)}}),[f,n]),y=O.useCallback(C=>m.current.onChange({target:{value:zN(C),name:n},type:Lh.CHANGE}),[n]),v=O.useCallback(()=>m.current.onBlur({target:{value:Ft(r._formValues,n),name:n},type:Lh.BLUR}),[n,r._formValues]),S=O.useCallback(C=>{const T=Ft(r._fields,n);T&&T._f&&C&&(T._f.ref={focus:()=>mi(C.focus)&&C.focus(),select:()=>mi(C.select)&&C.select(),setCustomValidity:E=>mi(C.setCustomValidity)&&C.setCustomValidity(E),reportValidity:()=>mi(C.reportValidity)&&C.reportValidity()})},[r._fields,n]),w=O.useMemo(()=>({name:n,value:d,...Dl(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:S}),[n,o,f.disabled,y,v,S,d]);return O.useEffect(()=>{const C=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...Dl(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,I)=>{const D=Ft(r._fields,M);D&&D._f&&(D._f.mount=I)};if(E(n,!0),C){const M=Fb(Ft(r._options.defaultValues,n,p.current.defaultValue));jh(r._defaultValues,n,M),Oc(Ft(r._formValues,n))&&jh(r._formValues,n,M)}return!c&&r.register(n),h.current=n,()=>{(c?C&&!r._state.action:C)?r.unregister(n):E(n,!1)}},[n,r,c,i]),O.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),O.useMemo(()=>({field:w,formState:f,fieldState:g}),[w,f,g])}const yd=e=>e.render(QN(e)),JN=O.createContext(null);JN.displayName="HookFormContext";const e_="_formSelect_22dj6_1",t_="_labelWrapper_22dj6_5",n_="_inputLabel_22dj6_9",o_="_placeholder_22dj6_77",r_="_helperText_22dj6_125",wo={formSelect:e_,labelWrapper:t_,inputLabel:n_,placeholder:o_,helperText:r_},Ub=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,renderValue:u,className:d,...f})=>{const h=q.useTheme().palette.mode==="dark";return b.jsx(yd,{name:t,control:e,render:({field:m,fieldState:g})=>{var w;const y=!!g.error,v=y||!!i,S=y?(w=g.error)==null?void 0:w.message:i;return b.jsxs("div",{className:`${wo.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:wo.labelWrapper,children:b.jsxs("span",{className:wo.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(q.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(C=>{if(C===""||C===null||C===void 0)return b.jsx("span",{className:wo.placeholder,children:r||""});const T=o.find(E=>E.value===C);return(T==null?void 0:T.label)||String(C)}),className:wo.select,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...h?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...h?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...h?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...h?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:h?"#101111":"#FAF9F9",width:20,height:20}}},children:[r&&b.jsx(q.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:wo.placeholder,children:r})}),o.map(C=>{const T=m.value===C.value;return b.jsxs(q.MenuItem,{value:C.value,disabled:C.disabled,children:[T&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Vb,{sx:{fontSize:20}})}),C.label]},String(C.value))})]}),v&&b.jsx(q.FormHelperText,{className:wo.helperText,children:S})]})]})}})};Ub.displayName="FormSelect";const s_="_formMultiSelect_1q1t9_1",i_="_labelWrapper_1q1t9_5",a_="_inputLabel_1q1t9_9",l_="_placeholder_1q1t9_77",c_="_helperText_1q1t9_128",u_="_chipsContainer_1q1t9_157",d_="_chip_1q1t9_157",Rn={formMultiSelect:s_,labelWrapper:i_,inputLabel:a_,placeholder:l_,helperText:c_,chipsContainer:u_,chip:d_},Yb=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,chipVariant:u="filled",maxChipsDisplay:d,renderValue:f,className:p,open:h,onOpen:m,onClose:g,...y})=>{const S=q.useTheme().palette.mode==="dark";return b.jsx(yd,{name:t,control:e,render:({field:w,fieldState:C})=>{var j;const T=!!C.error,E=T||!!i,M=T?(j=C.error)==null?void 0:j.message:i,I=Array.isArray(w.value)?w.value:[];I.length>0;const V=f||(x=>{if(!Array.isArray(x)||x.length===0)return b.jsx("span",{className:Rn.placeholder,children:r||""});const L=d?x.slice(0,d):x,A=d&&x.length>d?x.length-d:0;return b.jsxs(q.Box,{className:Rn.chipsContainer,children:[L.map(N=>{const k=o.find(_=>_.value===N);return b.jsx(q.Chip,{label:(k==null?void 0:k.label)||String(N),size:"small",variant:u,className:Rn.chip},String(N))}),A>0&&b.jsx(q.Chip,{label:`+${A}`,size:"small",variant:u,className:Rn.chip})]})});return b.jsxs("div",{className:`${Rn.formMultiSelect} ${p||""}`,"data-theme":S?"dark":"light",children:[b.jsx("div",{className:Rn.labelWrapper,children:b.jsxs("span",{className:Rn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(q.Select,{...w,...y,variant:"outlined",multiple:!0,value:I,onChange:x=>{w.onChange(x.target.value)},displayEmpty:!!r,renderValue:V,className:Rn.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:m,onClose:g,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...S?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...S?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...S?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...S?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...S?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...S?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...S?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...S?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:S?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(x=>{const L=I.includes(x.value);return b.jsxs(q.MenuItem,{value:x.value,disabled:x.disabled,children:[L&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Vb,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),E&&b.jsx(q.FormHelperText,{className:Rn.helperText,children:M})]})]})}})};Yb.displayName="FormMultiSelect";const qb=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})),Gb=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM11 13H13V7H11V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"})),f_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})),p_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 2.09961L1 12H4V21H11V15H13V21H20V12H23L12 2.09961Z",fill:"currentColor"})),h_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M5.33335 26.6667C4.60002 26.6667 3.96669 26.4112 3.43335 25.9C2.92224 25.3667 2.66669 24.7334 2.66669 24V8.00004C2.66669 7.26671 2.92224 6.64449 3.43335 6.13337C3.96669 5.60004 4.60002 5.33337 5.33335 5.33337H21.3334C22.0667 5.33337 22.6889 5.60004 23.2 6.13337C23.7334 6.64449 24 7.26671 24 8.00004V14L29.3334 8.66671V23.3334L24 18V24C24 24.7334 23.7334 25.3667 23.2 25.9C22.6889 26.4112 22.0667 26.6667 21.3334 26.6667H5.33335ZM5.33335 24H21.3334V8.00004H5.33335V24ZM5.33335 24V8.00004V24Z",fill:"currentColor"})),m_=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:"currentColor"}),P.createElement("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:"currentColor"})),g_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3.99998 26.3333C3.99998 27.2543 4.74571 28 5.66665 28H9.99998V30.6666H5.66665C3.27295 30.6666 1.33331 28.727 1.33331 26.3333V22H3.99998V26.3333ZM30.6666 26.3333C30.6666 28.727 28.727 30.6666 26.3333 30.6666H22V28H26.3333C27.2543 28 28 27.2543 28 26.3333V22H30.6666V26.3333ZM25.3333 7.99998H15.7331L14.3997 12H25.3333V14.6666H13.3333V21.3333H25.3333V24H14.6666V25.3333C14.6666 26 14.1333 26.6666 13.3333 26.6666H12C11.3333 26.6666 10.6666 26 10.6666 25.3333V14.6666L13.4661 6.66665C13.7328 5.86665 14.4 5.33331 15.3333 5.33331H25.3333V7.99998ZM16.6666 16C17.7333 16 18.6666 16.9333 18.6666 18C18.6666 19.0666 17.7333 20 16.6666 20C15.6 20 14.6666 19.0666 14.6666 18C14.6666 16.9333 15.6 16 16.6666 16ZM9.99998 3.99998H5.66665C4.74569 3.99998 3.99998 4.74569 3.99998 5.66665V9.99998H1.33331V5.66665C1.33331 3.27293 3.27293 1.33331 5.66665 1.33331H9.99998V3.99998ZM26.3333 1.33331C28.727 1.33331 30.6666 3.27293 30.6666 5.66665V9.99998H28V5.66665C28 4.74569 27.2543 3.99998 26.3333 3.99998H22V1.33331H26.3333Z",fill:"currentColor"})),y_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 22C11.0667 22 10.2778 21.6778 9.63333 21.0334C8.98889 20.3889 8.66667 19.6 8.66667 18.6667C8.66667 17.7334 8.98889 16.9445 9.63333 16.3C10.2778 15.6556 11.0667 15.3334 12 15.3334C12.9333 15.3334 13.7222 15.6556 14.3667 16.3C15.0111 16.9445 15.3333 17.7334 15.3333 18.6667C15.3333 19.6 15.0111 20.3889 14.3667 21.0334C13.7222 21.6778 12.9333 22 12 22ZM6.66667 29.3334C5.93333 29.3334 5.30556 29.0722 4.78333 28.55C4.26111 28.0278 4 27.4 4 26.6667V8.00002C4 7.26669 4.26111 6.63891 4.78333 6.11669C5.30556 5.59446 5.93333 5.33335 6.66667 5.33335H8V2.66669H10.6667V5.33335H21.3333V2.66669H24V5.33335H25.3333C26.0667 5.33335 26.6944 5.59446 27.2167 6.11669C27.7389 6.63891 28 7.26669 28 8.00002V26.6667C28 27.4 27.7389 28.0278 27.2167 28.55C26.6944 29.0722 26.0667 29.3334 25.3333 29.3334H6.66667ZM6.66667 26.6667H25.3333V13.3334H6.66667V26.6667Z",fill:"currentColor"})),b_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V6.66667H6.66667V25.3333ZM8 22.6667H24L19 16L15 21.3333L12 17.3333L8 22.6667ZM6.66667 25.3333V6.66667V25.3333Z",fill:"currentColor"})),v_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3 19.75C3 20.4407 3.55928 21 4.25 21H7.5V23H4.25C2.45472 23 1 21.5453 1 19.75V16.5H3V19.75ZM23 19.75C23 21.5453 21.5453 23 19.75 23H16.5V21H19.75C20.4407 21 21 20.4407 21 19.75V16.5H23V19.75ZM18.8467 8.46973C19.061 8.25522 19.3838 8.19085 19.6641 8.30664C19.9444 8.42269 20.1279 8.6966 20.1279 9V14.002C20.1279 14.416 19.7919 14.7517 19.3779 14.752C18.9638 14.7519 18.6279 14.4161 18.6279 14.002V10.8076C18.3336 11.0722 17.881 11.0643 17.5977 10.7812C17.3047 10.4885 17.305 10.0137 17.5977 9.7207L18.8467 8.46973ZM15.1064 8.25781C15.3516 8.29292 15.5664 8.44755 15.6758 8.6748C15.8007 8.93465 15.766 9.24362 15.5859 9.46875L12.5605 13.25H15C15.4142 13.25 15.75 13.5858 15.75 14C15.75 14.4142 15.4142 14.75 15 14.75H11C10.7118 14.75 10.4492 14.5849 10.3242 14.3252C10.1993 14.0653 10.234 13.7564 10.4141 13.5312L13.4395 9.75H11C10.5858 9.75 10.25 9.41421 10.25 9C10.25 8.58579 10.5858 8.25 11 8.25H15L15.1064 8.25781ZM7 8.25977C7.27423 8.30412 7.50603 8.49803 7.59375 8.76855L9.21387 13.7686C9.34152 14.1626 9.1254 14.5861 8.73145 14.7139C8.33744 14.8415 7.91386 14.6254 7.78613 14.2314L7.62988 13.75H4.87012L4.71387 14.2314C4.58614 14.6254 4.16256 14.8415 3.76855 14.7139C3.3746 14.5861 3.15848 14.1626 3.28613 13.7686L3.58105 12.8555C3.59232 12.7977 3.61106 12.7426 3.63477 12.6904L4.90625 8.76855L4.95215 8.6582C5.07878 8.41056 5.3354 8.25 5.62012 8.25H6.87988L7 8.25977ZM5.35547 12.25H7.14453L6.33496 9.75H6.16504L5.35547 12.25ZM7.5 3H4.25C3.55928 3 3 3.55928 3 4.25V7.5H1V4.25C1 2.45472 2.45472 1 4.25 1H7.5V3ZM19.75 1C21.5453 1 23 2.45472 23 4.25V7.5H21V4.25C21 3.55928 20.4407 3 19.75 3H16.5V1H19.75Z",fill:"currentColor"})),x_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12.3333 29.3334L11.8 25.0667C11.5111 24.9556 11.2389 24.8222 10.9833 24.6667C10.7278 24.5111 10.4778 24.3445 10.2333 24.1667L6.26664 25.8334L2.59998 19.5L6.03331 16.9C6.01109 16.7445 5.99998 16.5945 5.99998 16.45V15.55C5.99998 15.4056 6.01109 15.2556 6.03331 15.1L2.59998 12.5L6.26664 6.16669L10.2333 7.83335C10.4778 7.65558 10.7333 7.48891 11 7.33335C11.2666 7.1778 11.5333 7.04446 11.8 6.93335L12.3333 2.66669H19.6666L20.2 6.93335C20.4889 7.04446 20.7611 7.1778 21.0166 7.33335C21.2722 7.48891 21.5222 7.65558 21.7666 7.83335L25.7333 6.16669L29.4 12.5L25.9666 15.1C25.9889 15.2556 26 15.4056 26 15.55V16.45C26 16.5945 25.9778 16.7445 25.9333 16.9L29.3666 19.5L25.7 25.8334L21.7666 24.1667C21.5222 24.3445 21.2666 24.5111 21 24.6667C20.7333 24.8222 20.4666 24.9556 20.2 25.0667L19.6666 29.3334H12.3333ZM14.6666 26.6667H17.3L17.7666 23.1334C18.4555 22.9556 19.0944 22.6945 19.6833 22.35C20.2722 22.0056 20.8111 21.5889 21.3 21.1L24.6 22.4667L25.9 20.2L23.0333 18.0334C23.1444 17.7222 23.2222 17.3945 23.2666 17.05C23.3111 16.7056 23.3333 16.3556 23.3333 16C23.3333 15.6445 23.3111 15.2945 23.2666 14.95C23.2222 14.6056 23.1444 14.2778 23.0333 13.9667L25.9 11.8L24.6 9.53335L21.3 10.9334C20.8111 10.4222 20.2722 9.99446 19.6833 9.65002C19.0944 9.30558 18.4555 9.04446 17.7666 8.86669L17.3333 5.33335H14.7L14.2333 8.86669C13.5444 9.04446 12.9055 9.30558 12.3166 9.65002C11.7278 9.99446 11.1889 10.4111 10.7 10.9L7.39998 9.53335L6.09998 11.8L8.96664 13.9334C8.85553 14.2667 8.77775 14.6 8.73331 14.9334C8.68886 15.2667 8.66664 15.6222 8.66664 16C8.66664 16.3556 8.68886 16.7 8.73331 17.0334C8.77775 17.3667 8.85553 17.7 8.96664 18.0334L6.09998 20.2L7.39998 22.4667L10.7 21.0667C11.1889 21.5778 11.7278 22.0056 12.3166 22.35C12.9055 22.6945 13.5444 22.9556 14.2333 23.1334L14.6666 26.6667ZM16.0666 20.6667C17.3555 20.6667 18.4555 20.2111 19.3666 19.3C20.2778 18.3889 20.7333 17.2889 20.7333 16C20.7333 14.7111 20.2778 13.6111 19.3666 12.7C18.4555 11.7889 17.3555 11.3334 16.0666 11.3334C14.7555 11.3334 13.65 11.7889 12.75 12.7C11.85 13.6111 11.4 14.7111 11.4 16C11.4 17.2889 11.85 18.3889 12.75 19.3C13.65 20.2111 14.7555 20.6667 16.0666 20.6667Z",fill:"currentColor"})),C_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V21.3333H21.3333C20.6667 22.1778 19.8667 22.8333 18.9333 23.3C18.0222 23.7667 17.0444 24 16 24C14.9556 24 13.9667 23.7667 13.0333 23.3C12.1222 22.8333 11.3333 22.1778 10.6667 21.3333H6.66667V25.3333ZM16 21.3333C16.8444 21.3333 17.6111 21.0889 18.3 20.6C18.9889 20.1111 19.4667 19.4667 19.7333 18.6667H25.3333V6.66667H6.66667V18.6667H12.2667C12.5333 19.4667 13.0111 20.1111 13.7 20.6C14.3889 21.0889 15.1556 21.3333 16 21.3333ZM6.66667 25.3333H10.6667C11.3333 25.3333 12.1222 25.3333 13.0333 25.3333C13.9667 25.3333 14.9556 25.3333 16 25.3333C17.0444 25.3333 18.0222 25.3333 18.9333 25.3333C19.8667 25.3333 20.6667 25.3333 21.3333 25.3333H25.3333H6.66667Z",fill:"currentColor"})),w_=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:"currentColor"})),S_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M20.15 13H8V11H20.15L18.6 9.45L20 8L24 12L20 16L18.6 14.55L20.15 13ZM15 9V5H5V19H15V15H17V19C17 19.55 16.8042 20.0208 16.4125 20.4125C16.0208 20.8042 15.55 21 15 21H5C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H15C15.55 3 16.0208 3.19583 16.4125 3.5875C16.8042 3.97917 17 4.45 17 5V9H15Z",fill:"currentColor"})),T_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 15C12.8333 15 13.5417 14.7083 14.125 14.125C14.7083 13.5417 15 12.8333 15 12C15 11.1667 14.7083 10.4583 14.125 9.875C13.5417 9.29167 12.8333 9 12 9C11.1667 9 10.4583 9.29167 9.875 9.875C9.29167 10.4583 9 11.1667 9 12C9 12.8333 9.29167 13.5417 9.875 14.125C10.4583 14.7083 11.1667 15 12 15ZM12 17C10.6167 17 9.4375 16.5125 8.4625 15.5375C7.4875 14.5625 7 13.3833 7 12C7 10.6167 7.4875 9.4375 8.4625 8.4625C9.4375 7.4875 10.6167 7 12 7C13.3833 7 14.5625 7.4875 15.5375 8.4625C16.5125 9.4375 17 10.6167 17 12C17 13.3833 16.5125 14.5625 15.5375 15.5375C14.5625 16.5125 13.3833 17 12 17ZM5 13H1V11H5V13ZM23 13H19V11H23V13ZM11 5V1H13V5H11ZM11 23V19H13V23H11ZM6.4 7.75L3.875 5.325L5.3 3.85L7.7 6.35L6.4 7.75ZM18.7 20.15L16.275 17.625L17.6 16.25L20.125 18.675L18.7 20.15ZM16.25 6.4L18.675 3.875L20.15 5.3L17.65 7.7L16.25 6.4ZM3.85 18.7L6.375 16.275L7.75 17.6L5.325 20.125L3.85 18.7Z",fill:"currentColor"})),P_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 21C9.5 21 7.375 20.125 5.625 18.375C3.875 16.625 3 14.5 3 12C3 9.5 3.875 7.375 5.625 5.625C7.375 3.875 9.5 3 12 3C12.2333 3 12.4625 3.00833 12.6875 3.025C12.9125 3.04167 13.1333 3.06667 13.35 3.1C12.6667 3.58333 12.1208 4.2125 11.7125 4.9875C11.3042 5.7625 11.1 6.6 11.1 7.5C11.1 9 11.625 10.275 12.675 11.325C13.725 12.375 15 12.9 16.5 12.9C17.4167 12.9 18.2583 12.6958 19.025 12.2875C19.7917 11.8792 20.4167 11.3333 20.9 10.65C20.9333 10.8667 20.9583 11.0875 20.975 11.3125C20.9917 11.5375 21 11.7667 21 12C21 14.5 20.125 16.625 18.375 18.375C16.625 20.125 14.5 21 12 21ZM12 19C13.4667 19 14.7833 18.5958 15.95 17.7875C17.1167 16.9792 17.9667 15.925 18.5 14.625C18.1667 14.7083 17.8333 14.775 17.5 14.825C17.1667 14.875 16.8333 14.9 16.5 14.9C14.45 14.9 12.7042 14.1792 11.2625 12.7375C9.82083 11.2958 9.1 9.55 9.1 7.5C9.1 7.16667 9.125 6.83333 9.175 6.5C9.225 6.16667 9.29167 5.83333 9.375 5.5C8.075 6.03333 7.02083 6.88333 6.2125 8.05C5.40417 9.21667 5 10.5333 5 12C5 13.9333 5.68333 15.5833 7.05 16.95C8.41667 18.3167 10.0667 19 12 19Z",fill:"currentColor"})),E_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4 19V17H6V10C6 8.61667 6.41667 7.39167 7.25 6.325C8.08333 5.24167 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6417 2.73333 10.925 2.45C11.225 2.15 11.5833 2 12 2C12.4167 2 12.7667 2.15 13.05 2.45C13.35 2.73333 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.24167 16.75 6.325C17.5833 7.39167 18 8.61667 18 10V17H20V19H4ZM12 22C11.45 22 10.975 21.8083 10.575 21.425C10.1917 21.025 10 20.55 10 20H14C14 20.55 13.8 21.025 13.4 21.425C13.0167 21.8083 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z",fill:"currentColor"})),M_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 12C10.9 12 9.95833 11.6083 9.175 10.825C8.39167 10.0417 8 9.1 8 8C8 6.9 8.39167 5.95833 9.175 5.175C9.95833 4.39167 10.9 4 12 4C13.1 4 14.0417 4.39167 14.825 5.175C15.6083 5.95833 16 6.9 16 8C16 9.1 15.6083 10.0417 14.825 10.825C14.0417 11.6083 13.1 12 12 12ZM4 20V17.2C4 16.6333 4.14583 16.1125 4.4375 15.6375C4.72917 15.1625 5.11667 14.8 5.6 14.55C6.63333 14.0333 7.68333 13.6458 8.75 13.3875C9.81667 13.1292 10.9 13 12 13C13.1 13 14.1833 13.1292 15.25 13.3875C16.3167 13.6458 17.3667 14.0333 18.4 14.55C18.8833 14.8 19.2708 15.1625 19.5625 15.6375C19.8542 16.1125 20 16.6333 20 17.2V20H4ZM6 18H18V17.2C18 17.0167 17.9542 16.85 17.8625 16.7C17.7708 16.55 17.65 16.4333 17.5 16.35C16.6 15.9 15.6917 15.5625 14.775 15.3375C13.8583 15.1125 12.9333 15 12 15C11.0667 15 10.1417 15.1125 9.225 15.3375C8.30833 15.5625 7.4 15.9 6.5 16.35C6.35 16.4333 6.22917 16.55 6.1375 16.7C6.04583 16.85 6 17.0167 6 17.2V18ZM12 10C12.55 10 13.0208 9.80417 13.4125 9.4125C13.8042 9.02083 14 8.55 14 8C14 7.45 13.8042 6.97917 13.4125 6.5875C13.0208 6.19583 12.55 6 12 6C11.45 6 10.9792 6.19583 10.5875 6.5875C10.1958 6.97917 10 7.45 10 8C10 8.55 10.1958 9.02083 10.5875 9.4125C10.9792 9.80417 11.45 10 12 10Z",fill:"currentColor"})),O_="_formInput_kzwwo_1",k_="_labelWrapper_kzwwo_5",D_="_inputLabel_kzwwo_9",R_="_startAdornment_kzwwo_175",I_="_endAdornment_kzwwo_182",A_="_iconButton_kzwwo_189",N_="_clearButton_kzwwo_209",__="_errorButton_kzwwo_228",Ut={formInput:O_,labelWrapper:k_,inputLabel:D_,startAdornment:R_,endAdornment:I_,iconButton:A_,clearButton:N_,errorButton:__},Zb=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,startIcon:d,endIcon:f,onEndIconClick:p,clearable:h=!1,...m})=>{const y=q.useTheme().palette.mode==="dark";return b.jsx(yd,{name:t,control:e,render:({field:v,fieldState:S})=>{var D;const w=!!S.error,C=w?(D=S.error)==null?void 0:D.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=d?b.jsx(q.InputAdornment,{position:"start",className:Ut.startAdornment,children:b.jsx("span",{className:Ut.iconButton,children:d})}):void 0;let I;return f?I=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:p,className:Ut.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(w?I=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{className:Ut.errorButton,children:b.jsx(Gb,{})})}):I=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:E,className:Ut.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(qb,{})})})),b.jsxs("div",{className:`${Ut.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Ut.labelWrapper,children:b.jsxs("span",{className:Ut.inputLabel,children:[n,a?" *":""]})}),b.jsx(q.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:w,helperText:C,variant:"outlined",className:Ut.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Ut.inputRoot,...M&&{startAdornment:M},...I&&{endAdornment:I}}})]})}})};Zb.displayName="FormInput";const j_="_viewChip_18qqe_1",L_="_active_18qqe_61",V_="_icon_18qqe_76",$_="_label_18qqe_81",gi={viewChip:j_,active:L_,icon:V_,label:$_},Kb=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=q.useTheme().palette.mode==="dark";return b.jsxs(q.Box,{ref:i,className:`${gi.viewChip} ${n?gi.active:""} ${o||""}`.trim(),"data-theme":c?"dark":"light",onClick:r,role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),r==null||r(u))},"aria-label":e,"aria-pressed":n,component:"div",...a,children:[t&&b.jsx(q.Box,{className:gi.icon,component:"div",children:t}),b.jsx(q.Box,{className:gi.label,component:"span",children:e})]})};Kb.displayName="ViewChip";exports.Button=kc;exports.CAMERA_ALGORITHM_FACIAL=Ls;exports.CAMERA_ALGORITHM_LPR=Vs;exports.CameraCard=jT;exports.CancelIcon=qb;exports.CarIcon=g_;exports.CountCard=ZC;exports.DarkModeIcon=P_;exports.DisplayTypes=_b;exports.ErrorIcon=Gb;exports.FacialIcon=_s;exports.FacialNewIcon=m_;exports.FilterButton=Gh;exports.FilterChip=Zh;exports.FilterModal=ym;exports.FormInput=Zb;exports.FormMultiSelect=Yb;exports.FormSelect=Ub;exports.GoogleMap=dy;exports.HomeIcon=p_;exports.InboxIcon=C_;exports.LPRIcon=js;exports.LightModeIcon=T_;exports.LogoutIcon=S_;exports.LprIcon=w_;exports.MapContent=gu;exports.MapMarkers=my;exports.MapSpot=hu;exports.ModuleMenu=xy;exports.NotFoundContent=yy;exports.NotificationsIcon=E_;exports.PersonIcon=M_;exports.PhotoIcon=b_;exports.PlateCloneIcon=v_;exports.ResponsiveGrid=Lb;exports.SearchBar=gy;exports.SearchIcon=f_;exports.SettingsIcon=x_;exports.SidebarMenu=vy;exports.SplitLayout=jb;exports.TodayIcon=y_;exports.VideoControlProvider=Ay;exports.VideoPlayer=vu;exports.VideoPlayerWebRTC=Nb;exports.VideoTimeline=Ab;exports.VideocamIcon=h_;exports.ViewChip=Kb;exports.VisioThemeProvider=i0;exports.ZoomControls=HT;exports.darkColors=mt;exports.darkTheme=Yh;exports.lightColors=ft;exports.lightTheme=Uh;exports.radiiTokens=yi;exports.spacingScale=o0;exports.spacingTokens=Hh;exports.typographyTokens=Ot;exports.useGoogleMapContext=mu;exports.useVideoControl=ga;exports.useVideoControlRequired=KE;exports.useVisioTheme=a0;
245
245
  //# sourceMappingURL=index.cjs.js.map