@visio-io/design-system 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +70 -70
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6220 -6151
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/CameraCard/CameraCard.d.ts +3 -1
- package/dist/types/components/FilterChip/FilterChip.d.ts +1 -1
- package/dist/types/components/FilterChip/types.d.ts +2 -0
- package/dist/types/components/GoogleMap/components/MapMarkers.d.ts +1 -1
- package/dist/types/components/GoogleMap/constants.d.ts +0 -2
- package/dist/types/components/GoogleMap/context/GoogleMapContext.d.ts +1 -0
- package/dist/types/components/GoogleMap/index.d.ts +1 -1
- package/dist/types/components/GoogleMap/types.d.ts +8 -2
- package/dist/types/components/MapSpot/MapSpot.d.ts +1 -1
- package/package.json +11 -12
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Wv=Object.defineProperty;var Uv=(e,t,n)=>t in e?Wv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>Uv(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("@mui/material/styles"),_=require("react"),H=require("@mui/material"),Ot=require("@mui/icons-material"),Ft=require("@mui/system"),Hv=require("@emotion/styled"),Yv=require("@emotion/react"),qo=require("react-dom");function Fh(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=Fh(_),qv=Fh(qo),it={primary:"#006399",onPrimary:"#ffffff",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:"#42474e",outline:"#72787e",inverseSurface:"#2f3033",inverseOnSurface:"#f1f0f4",inversePrimary:"#98cbff"},at={primary:"#98cbff",onPrimary:"#003354",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:"#1a1c1e",onSurface:"#e2e2e6",surfaceVariant:"#42474e",onSurfaceVariant:"#c2c7cf",outline:"#8c9198",inverseSurface:"#e2e2e6",inverseOnSurface:"#2f3033",inversePrimary:"#006399"},Tt={fontFamily:'"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}},Bh={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},ii={sm:4,md:8,lg:12,xl:16,pill:999},zh={shape:{borderRadius:ii.md,borderRadiusSm:ii.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:ii.md,fontWeight:Tt.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:Tt.fontFamily,fontWeightRegular:Tt.fontWeight.regular,fontWeightMedium:Tt.fontWeight.medium,fontWeightBold:Tt.fontWeight.bold,h1:{fontSize:Tt.fontSize.xxl,fontWeight:Tt.fontWeight.bold,lineHeight:Tt.lineHeight.tight},h2:{fontSize:Tt.fontSize.xl,fontWeight:Tt.fontWeight.bold,lineHeight:Tt.lineHeight.tight},body1:{fontSize:Tt.fontSize.md,lineHeight:Tt.lineHeight.normal},body2:{fontSize:Tt.fontSize.sm,lineHeight:Tt.lineHeight.normal},button:{fontWeight:Tt.fontWeight.semibold,textTransform:"none"}}},Wh=ie.createTheme({...zh,palette:{mode:"light",primary:{main:it.primary,contrastText:it.onPrimary},secondary:{main:it.secondary,contrastText:it.onSecondary},error:{main:it.error,contrastText:it.onError},background:{default:it.surface,paper:it.surface},text:{primary:it.onSurface,secondary:it.onSurfaceVariant},divider:it.outline},visio:{surfaceVariant:it.surfaceVariant,onSurfaceVariant:it.onSurfaceVariant,inverseSurface:it.inverseSurface,inverseOnSurface:it.inverseOnSurface,inversePrimary:it.inversePrimary,outline:it.outline,tertiary:{main:it.tertiary,contrastText:it.onTertiary,container:it.tertiaryContainer,onContainer:it.onTertiaryContainer}}}),Uh=ie.createTheme({...zh,palette:{mode:"dark",primary:{main:at.primary,contrastText:at.onPrimary},secondary:{main:at.secondary,contrastText:at.onSecondary},error:{main:at.error,contrastText:at.onError},background:{default:at.surface,paper:at.surface},text:{primary:at.onSurface,secondary:at.onSurfaceVariant},divider:at.outline},visio:{surfaceVariant:at.surfaceVariant,onSurfaceVariant:at.onSurfaceVariant,inverseSurface:at.inverseSurface,inverseOnSurface:at.inverseOnSurface,inversePrimary:at.inversePrimary,outline:at.outline,tertiary:{main:at.tertiary,contrastText:at.onTertiary,container:at.tertiaryContainer,onContainer:at.onTertiaryContainer}}}),Gv=Bh;var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cl={exports:{}},Cr={};/**
|
|
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
|
|
9
|
+
*/var bd;function Kv(){if(bd)return Cr;bd=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 Cr.Fragment=t,Cr.jsx=n,Cr.jsxs=n,Cr}var Tr={};/**
|
|
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
|
|
17
|
+
*/var vd;function Zv(){return vd||(vd=1,process.env.NODE_ENV!=="production"&&function(){function e(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===L?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case y:return"Fragment";case C: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 w:return R.displayName||"Context";case S:return(R._context.displayName||"Context")+".Consumer";case T:var W=R.render;return R=R.displayName,R||(R=W.displayName||W.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case A:return W=R.displayName||null,W!==null?W:e(R.type)||"Memo";case k:W=R._payload,R=R._init;try{return e(R(W))}catch{}}return null}function t(R){return""+R}function n(R){try{t(R);var W=!1}catch{W=!0}if(W){W=console;var K=W.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return K.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(R)}}function o(R){if(R===y)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===k)return"<...>";try{var W=e(R);return W?"<"+W+">":"<...>"}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(j.call(R,"key")){var W=Object.getOwnPropertyDescriptor(R,"key").get;if(W&&W.isReactWarning)return!1}return R.key!==void 0}function l(R,W){function K(){D||(D=!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)",W))}K.isReactWarning=!0,Object.defineProperty(R,"key",{get:K,configurable:!0})}function c(){var R=e(this.type);return N[R]||(N[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,W,K,G,Z,U){var Q=K.ref;return R={$$typeof:m,type:R,key:W,props:K,_owner:G},(Q!==void 0?Q: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:Z}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function d(R,W,K,G,Z,U){var Q=W.children;if(Q!==void 0)if(G)if(O(Q)){for(G=0;G<Q.length;G++)f(Q[G]);Object.freeze&&Object.freeze(Q)}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(Q);if(j.call(W,"key")){Q=e(R);var J=Object.keys(W).filter(function(q){return q!=="key"});G=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",$[Q+G]||(J=0<J.length?"{"+J.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,G,Q,J,Q),$[Q+G]=!0)}if(Q=null,K!==void 0&&(n(K),Q=""+K),a(W)&&(n(W.key),Q=""+W.key),"key"in W){K={};for(var ee in W)ee!=="key"&&(K[ee]=W[ee])}else K=W;return Q&&l(K,typeof
|
|
22
|
+
<%s key={someKey} {...props} />`,G,Q,J,Q),$[Q+G]=!0)}if(Q=null,K!==void 0&&(n(K),Q=""+K),a(W)&&(n(W.key),Q=""+W.key),"key"in W){K={};for(var ee in W)ee!=="key"&&(K[ee]=W[ee])}else K=W;return Q&&l(K,typeof R=="function"?R.displayName||R.name||"Unknown":R),u(R,Q,K,r(),Z,U)}function f(R){p(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===k&&(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=_,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),w=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,O=Array.isArray,I=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(R){return R()}};var D,N={},B=h.react_stack_bottom_frame.bind(h,i)(),F=I(o(i)),$={};Tr.Fragment=y,Tr.jsx=function(R,W,K){var G=1e4>x.recentlyCreatedOwnerStacks++;return d(R,W,K,!1,G?Error("react-stack-top-frame"):B,G?I(o(R)):F)},Tr.jsxs=function(R,W,K){var G=1e4>x.recentlyCreatedOwnerStacks++;return d(R,W,K,!0,G?Error("react-stack-top-frame"):B,G?I(o(R)):F)}}()),Tr}process.env.NODE_ENV==="production"?Cl.exports=Kv():Cl.exports=Zv();var b=Cl.exports;const Hh=_.createContext(null),Xv=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=_.useState(n??t),l=n??i;_.useEffect(()=>{n&&a(n)},[n]);const c=_.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),u=_.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),d=_.useMemo(()=>l==="dark"?Uh:Wh,[l]),f=_.useMemo(()=>({mode:l,setMode:c,toggleMode:u,theme:d}),[l,c,u,d]);return b.jsx(Hh.Provider,{value:f,children:b.jsxs(H.ThemeProvider,{theme:d,children:[r?b.jsx(H.CssBaseline,{}):null,e]})})},Qv=()=>{const e=_.useContext(Hh);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},Jv="_button_1x96v_1",e0="_borderRadiusNone_1x96v_8",t0="_borderRadiusSmall_1x96v_12",n0="_borderRadiusMedium_1x96v_16",o0="_borderRadiusLarge_1x96v_20",r0="_borderRadiusRound_1x96v_24",bo={button:Jv,borderRadiusNone:e0,borderRadiusSmall:t0,borderRadiusMedium:n0,borderRadiusLarge:o0,borderRadiusRound:r0},s0=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return bo.borderRadiusNone;case"small":return bo.borderRadiusSmall;case"medium":return bo.borderRadiusMedium;case"large":return bo.borderRadiusLarge;case"round":return bo.borderRadiusRound;default:return bo.borderRadiusMedium}},i0=e=>{if(typeof e=="number")return`${e}px`},a0=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},wc=_.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,C=s0(c),S=i0(c),w=a0(v,h,m),T=`${bo.button} ${C} ${p||""}`.trim();return b.jsx(H.Button,{ref:y,variant:i,size:a,color:l,fullWidth:u,disabled:v,type:f,onClick:w,startIcon:t?b.jsx(H.CircularProgress,{size:a==="small"?16:a==="medium"?20:24,color:"inherit"}):o,endIcon:t?void 0:r,className:T,style:S?{borderRadius:S}:void 0,...g,children:t&&n?n:e})});wc.displayName="Button";const l0=e=>{if(e)return t=>{e(t)}},c0="_filterButton_8fgad_1",u0={filterButton:c0},Yh=_.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=H.useTheme().palette.mode==="dark",l=l0(t);return b.jsx(H.Button,{ref:r,variant:"outlined",onClick:l,className:`${u0.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});Yh.displayName="FilterButton";const d0=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},f0="_filterChip_l6gto_1",p0="_textVariant_l6gto_52",h0="_icon_l6gto_64",m0="_label_l6gto_80",g0="_overlay_l6gto_92",y0="_deleteIcon_l6gto_106",_o={filterChip:f0,textVariant:p0,icon:h0,label:m0,overlay:g0,deleteIcon:y0},qh=({label:e,icon:t,onRemove:n,className:o,onClick:r,variant:i="outlined",ref:a,...l})=>{const u=H.useTheme().palette.mode==="dark",d=d0(n,r),f=i==="text";return b.jsxs(H.Box,{ref:a,className:`${_o.filterChip} ${f?_o.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(H.Box,{className:_o.icon,component:"div",children:t}),b.jsx(H.Box,{className:_o.label,component:"span",children:e}),!f&&b.jsx(H.Box,{className:_o.overlay,component:"div",children:b.jsx(Ot.Delete,{className:_o.deleteIcon})})]})};qh.displayName="FilterChip";const xd=e=>e,b0=()=>{let e=xd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xd}}},v0=b0();function bn(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.":bn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sd(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var Tl={exports:{}},Bs={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
|
|
29
|
+
*/var wd;function x0(){if(wd)return Fe;wd=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,C=e?Symbol.for("react.scope"):60119;function S(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 w(T){return S(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 w(T)||S(T)===c},Fe.isConcurrentMode=w,Fe.isContextConsumer=function(T){return S(T)===l},Fe.isContextProvider=function(T){return S(T)===a},Fe.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Fe.isForwardRef=function(T){return S(T)===d},Fe.isFragment=function(T){return S(T)===o},Fe.isLazy=function(T){return S(T)===m},Fe.isMemo=function(T){return S(T)===h},Fe.isPortal=function(T){return S(T)===n},Fe.isProfiler=function(T){return S(T)===i},Fe.isStrictMode=function(T){return S(T)===r},Fe.isSuspense=function(T){return S(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===C||T.$$typeof===g)},Fe.typeOf=S,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
|
|
36
|
+
*/var Cd;function S0(){return Cd||(Cd=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,C=e?Symbol.for("react.scope"):60119;function S(Y){return typeof Y=="string"||typeof Y=="function"||Y===o||Y===u||Y===i||Y===r||Y===f||Y===p||typeof Y=="object"&&Y!==null&&(Y.$$typeof===m||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===l||Y.$$typeof===d||Y.$$typeof===y||Y.$$typeof===v||Y.$$typeof===C||Y.$$typeof===g)}function w(Y){if(typeof Y=="object"&&Y!==null){var oe=Y.$$typeof;switch(oe){case t:var te=Y.type;switch(te){case c:case u:case o:case i:case r:case f:return te;default:var ae=te&&te.$$typeof;switch(ae){case l:case d:case m:case h:case a:return ae;default:return oe}}case n:return oe}}}var T=c,E=u,M=l,A=a,k=t,V=d,L=o,x=m,j=h,O=n,I=i,D=r,N=f,B=!1;function F(Y){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(Y)||w(Y)===c}function $(Y){return w(Y)===u}function R(Y){return w(Y)===l}function W(Y){return w(Y)===a}function K(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function G(Y){return w(Y)===d}function Z(Y){return w(Y)===o}function U(Y){return w(Y)===m}function Q(Y){return w(Y)===h}function J(Y){return w(Y)===n}function ee(Y){return w(Y)===i}function q(Y){return w(Y)===r}function X(Y){return w(Y)===f}Be.AsyncMode=T,Be.ConcurrentMode=E,Be.ContextConsumer=M,Be.ContextProvider=A,Be.Element=k,Be.ForwardRef=V,Be.Fragment=L,Be.Lazy=x,Be.Memo=j,Be.Portal=O,Be.Profiler=I,Be.StrictMode=D,Be.Suspense=N,Be.isAsyncMode=F,Be.isConcurrentMode=$,Be.isContextConsumer=R,Be.isContextProvider=W,Be.isElement=K,Be.isForwardRef=G,Be.isFragment=Z,Be.isLazy=U,Be.isMemo=Q,Be.isPortal=J,Be.isProfiler=ee,Be.isStrictMode=q,Be.isSuspense=X,Be.isValidElementType=S,Be.typeOf=w}()),Be}var Td;function Gh(){return Td||(Td=1,process.env.NODE_ENV==="production"?Bs.exports=x0():Bs.exports=S0()),Bs.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var Na,
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys($),null," "));var Y=X(Q,q,G,Z,U+"."+q,n);if(Y)return Y}return null}return y(
|
|
40
|
+
*/var Na,Pd;function w0(){if(Pd)return Na;Pd=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 Na=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},Na}var _a,Ed;function Cc(){if(Ed)return _a;Ed=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _a=e,_a}var ja,Md;function Kh(){return Md||(Md=1,ja=Function.call.bind(Object.prototype.hasOwnProperty)),ja}var La,Od;function C0(){if(Od)return La;Od=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cc(),n={},o=Kh();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={})},La=r,La}var $a,kd;function T0(){if(kd)return $a;kd=1;var e=Gh(),t=w0(),n=Cc(),o=Kh(),r=C0(),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 $a=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f($){var R=$&&(u&&$[u]||$[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:C(),arrayOf:S,element:w(),elementType:T(),instanceOf:E,node:V(),objectOf:A,oneOf:M,oneOfType:k,shape:x,exact:j};function m($,R){return $===R?$!==0||1/$===1/R:$!==$&&R!==R}function g($,R){this.message=$,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var R={},W=0;function K(Z,U,Q,J,ee,q,X){if(J=J||p,q=q||Q,X!==n){if(c){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=J+":"+Q;!R[oe]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+J+"`. 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[oe]=!0,W++)}}return U[Q]==null?Z?U[Q]===null?new g("The "+ee+" `"+q+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new g("The "+ee+" `"+q+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:$(U,Q,J,ee,q)}var G=K.bind(null,!1);return G.isRequired=K.bind(null,!0),G}function v($){function R(W,K,G,Z,U,Q){var J=W[K],ee=D(J);if(ee!==$){var q=N(J);return new g("Invalid "+Z+" `"+U+"` of type "+("`"+q+"` supplied to `"+G+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(R)}function C(){return y(a)}function S($){function R(W,K,G,Z,U){if(typeof $!="function")return new g("Property `"+U+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Q=W[K];if(!Array.isArray(Q)){var J=D(Q);return new g("Invalid "+Z+" `"+U+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an array."))}for(var ee=0;ee<Q.length;ee++){var q=$(Q,ee,G,Z,U+"["+ee+"]",n);if(q instanceof Error)return q}return null}return y(R)}function w(){function $(R,W,K,G,Z){var U=R[W];if(!l(U)){var Q=D(U);return new g("Invalid "+G+" `"+Z+"` of type "+("`"+Q+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return y($)}function T(){function $(R,W,K,G,Z){var U=R[W];if(!e.isValidElementType(U)){var Q=D(U);return new g("Invalid "+G+" `"+Z+"` of type "+("`"+Q+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return y($)}function E($){function R(W,K,G,Z,U){if(!(W[K]instanceof $)){var Q=$.name||p,J=F(W[K]);return new g("Invalid "+Z+" `"+U+"` of type "+("`"+J+"` supplied to `"+G+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(R)}function M($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function R(W,K,G,Z,U){for(var Q=W[K],J=0;J<$.length;J++)if(m(Q,$[J]))return null;var ee=JSON.stringify($,function(X,Y){var oe=N(Y);return oe==="symbol"?String(Y):Y});return new g("Invalid "+Z+" `"+U+"` of value `"+String(Q)+"` "+("supplied to `"+G+"`, expected one of "+ee+"."))}return y(R)}function A($){function R(W,K,G,Z,U){if(typeof $!="function")return new g("Property `"+U+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Q=W[K],J=D(Q);if(J!=="object")return new g("Invalid "+Z+" `"+U+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an object."));for(var ee in Q)if(o(Q,ee)){var q=$(Q,ee,G,Z,U+"."+ee,n);if(q instanceof Error)return q}return null}return y(R)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<$.length;R++){var W=$[R];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(W)+" at index "+R+"."),a}function K(G,Z,U,Q,J){for(var ee=[],q=0;q<$.length;q++){var X=$[q],Y=X(G,Z,U,Q,J,n);if(Y==null)return null;Y.data&&o(Y.data,"expectedType")&&ee.push(Y.data.expectedType)}var oe=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+Q+" `"+J+"` supplied to "+("`"+U+"`"+oe+"."))}return y(K)}function V(){function $(R,W,K,G,Z){return O(R[W])?null:new g("Invalid "+G+" `"+Z+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return y($)}function L($,R,W,K,G){return new g(($||"React class")+": "+R+" type `"+W+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function x($){function R(W,K,G,Z,U){var Q=W[K],J=D(Q);if(J!=="object")return new g("Invalid "+Z+" `"+U+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));for(var ee in $){var q=$[ee];if(typeof q!="function")return L(G,Z,U,ee,N(q));var X=q(Q,ee,G,Z,U+"."+ee,n);if(X)return X}return null}return y(R)}function j($){function R(W,K,G,Z,U){var Q=W[K],J=D(Q);if(J!=="object")return new g("Invalid "+Z+" `"+U+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));var ee=t({},W[K],$);for(var q in ee){var X=$[q];if(o($,q)&&typeof X!="function")return L(G,Z,U,q,N(X));if(!X)return new g("Invalid "+Z+" `"+U+"` key `"+q+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(W[K],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var Y=X(Q,q,G,Z,U+"."+q,n);if(Y)return Y}return null}return y(R)}function O($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(O);if($===null||l($))return!0;var R=f($);if(R){var W=R.call($),K;if(R!==$.entries){for(;!(K=W.next()).done;)if(!O(K.value))return!1}else for(;!(K=W.next()).done;){var G=K.value;if(G&&!O(G[1]))return!1}}else return!1;return!0;default:return!1}}function I($,R){return $==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function D($){var R=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":I(R,$)?"symbol":R}function N($){if(typeof $>"u"||$===null)return""+$;var R=D($);if(R==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return R}function B($){var R=N($);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function F($){return!$.constructor||!$.constructor.name?p:$.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},$a}var Va,Dd;function P0(){if(Dd)return Va;Dd=1;var e=Cc();function t(){}function n(){}return n.resetWarningCache=t,Va=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},Va}if(process.env.NODE_ENV!=="production"){var E0=Gh(),M0=!0;Tl.exports=T0()(E0.isElement,M0)}else Tl.exports=P0()();var O0=Tl.exports;const s=Qn(O0);function Zh(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=Zh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ge(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Zh(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 Pl={exports:{}},Ue={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-is.production.js
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var Y=X(Q,q,G,Z,U+"."+q,
|
|
|
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
|
|
49
|
+
*/var Rd;function k0(){if(Rd)return Ue;Rd=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 Ue.ContextConsumer=i,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=l,Ue.Fragment=n,Ue.Lazy=f,Ue.Memo=d,Ue.Portal=t,Ue.Profiler=r,Ue.StrictMode=o,Ue.Suspense=c,Ue.SuspenseList=u,Ue.isContextConsumer=function(g){return m(g)===i},Ue.isContextProvider=function(g){return m(g)===a},Ue.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ue.isForwardRef=function(g){return m(g)===l},Ue.isFragment=function(g){return m(g)===n},Ue.isLazy=function(g){return m(g)===f},Ue.isMemo=function(g){return m(g)===d},Ue.isPortal=function(g){return m(g)===t},Ue.isProfiler=function(g){return m(g)===r},Ue.isStrictMode=function(g){return m(g)===o},Ue.isSuspense=function(g){return m(g)===c},Ue.isSuspenseList=function(g){return m(g)===u},Ue.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)},Ue.typeOf=m,Ue}var He={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.development.js
|
|
52
52
|
*
|
|
@@ -54,14 +54,14 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var Y=X(Q,q,G,Z,U+"."+q,
|
|
|
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
|
|
58
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:bn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function
|
|
57
|
+
*/var Id;function D0(){return Id||(Id=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");He.ContextConsumer=a,He.ContextProvider=l,He.Element=t,He.ForwardRef=c,He.Fragment=o,He.Lazy=p,He.Memo=f,He.Portal=n,He.Profiler=i,He.StrictMode=r,He.Suspense=u,He.SuspenseList=d,He.isContextConsumer=function(g){return e(g)===a},He.isContextProvider=function(g){return e(g)===l},He.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},He.isForwardRef=function(g){return e(g)===c},He.isFragment=function(g){return e(g)===o},He.isLazy=function(g){return e(g)===p},He.isMemo=function(g){return e(g)===f},He.isPortal=function(g){return e(g)===n},He.isProfiler=function(g){return e(g)===i},He.isStrictMode=function(g){return e(g)===r},He.isSuspense=function(g){return e(g)===u},He.isSuspenseList=function(g){return e(g)===d},He.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)},He.typeOf=e}()),He}process.env.NODE_ENV==="production"?Pl.exports=k0():Pl.exports=D0();var Ro=Pl.exports;function hn(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 Xh(e){if(P.isValidElement(e)||Ro.isValidElementType(e)||!hn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xh(e[n])}),t}function Dt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return hn(e)&&hn(t)&&Object.keys(t).forEach(r=>{P.isValidElement(t[r])||Ro.isValidElementType(t[r])?o[r]=t[r]:hn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&hn(e[r])?o[r]=Dt(e[r],t[r],n):n.clone?o[r]=hn(t[r])?Xh(t[r]):t[r]:o[r]=t[r]}),o}function Gr(e,t){return t?Dt(e,t,{clone:!1}):e}const Jn=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Ad(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 R0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function I0(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\`.`:bn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function A0(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 Vi={xs:0,sm:600,md:900,lg:1200,xl:1536},Nd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vi[e]}px)`},N0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function On(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Nd;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||Nd;return Object.keys(t).reduce((a,l)=>{if(R0(i.keys,l)){const c=I0(o.containerQueries?o:N0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Vi).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 _0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function _d(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Fi(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 mi(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Fi(e,n)||o,t&&(r=t(r,o,e)),r}function dt(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=Fi(c,o)||{};return On(a,l,f=>{let p=mi(u,r,f);return f===p&&typeof f=="string"&&(p=mi(u,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Jn}:{},i.filterProps=[t],i}function j0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const L0={m:"margin",p:"padding"},$0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},V0=j0(e=>{if(e.length>2)if(jd[e])e=jd[e];else return[e];const[t,n]=e.split(""),o=L0[t],r=$0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Bi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],F0=[...Bi,...zi];function xs(e,t,n,o){const r=Fi(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
|
|
61
|
+
`)),()=>{})}function Tc(e){return xs(e,"spacing",8,"spacing")}function Ss(e,t){return typeof t=="string"||t==null?t:e(t)}function B0(e,t){return n=>e.reduce((o,r)=>(o[r]=Ss(t,n),o),{})}function z0(e,t,n,o){if(!t.includes(n))return null;const r=V0(n),i=B0(r,o),a=e[n];return On(e,a,i)}function Qh(e,t){const n=Tc(e.theme);return Object.keys(e).map(o=>z0(e,t,o,n)).reduce(Gr,{})}function lt(e){return Qh(e,Bi)}lt.propTypes=process.env.NODE_ENV!=="production"?Bi.reduce((e,t)=>(e[t]=Jn,e),{}):{};lt.filterProps=Bi;function ct(e){return Qh(e,zi)}ct.propTypes=process.env.NODE_ENV!=="production"?zi.reduce((e,t)=>(e[t]=Jn,e),{}):{};ct.filterProps=zi;process.env.NODE_ENV!=="production"&&F0.reduce((e,t)=>(e[t]=Jn,e),{});function Wi(...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]?Gr(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 en(e,t){return dt({prop:e,themeKey:"borders",transform:t})}const W0=en("border",qt),U0=en("borderTop",qt),H0=en("borderRight",qt),Y0=en("borderBottom",qt),q0=en("borderLeft",qt),G0=en("borderColor"),K0=en("borderTopColor"),Z0=en("borderRightColor"),X0=en("borderBottomColor"),Q0=en("borderLeftColor"),J0=en("outline",qt),ex=en("outlineColor"),Ui=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xs(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Ss(t,o)});return On(e,e.borderRadius,n)}return null};Ui.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jn}:{};Ui.filterProps=["borderRadius"];Wi(W0,U0,H0,Y0,q0,G0,K0,Z0,X0,Q0,Ui,J0,ex);const Hi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xs(e.theme,"spacing",8,"gap"),n=o=>({gap:Ss(t,o)});return On(e,e.gap,n)}return null};Hi.propTypes=process.env.NODE_ENV!=="production"?{gap:Jn}:{};Hi.filterProps=["gap"];const Yi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xs(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Ss(t,o)});return On(e,e.columnGap,n)}return null};Yi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jn}:{};Yi.filterProps=["columnGap"];const qi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xs(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Ss(t,o)});return On(e,e.rowGap,n)}return null};qi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jn}:{};qi.filterProps=["rowGap"];const tx=dt({prop:"gridColumn"}),nx=dt({prop:"gridRow"}),ox=dt({prop:"gridAutoFlow"}),rx=dt({prop:"gridAutoColumns"}),sx=dt({prop:"gridAutoRows"}),ix=dt({prop:"gridTemplateColumns"}),ax=dt({prop:"gridTemplateRows"}),lx=dt({prop:"gridTemplateAreas"}),cx=dt({prop:"gridArea"});Wi(Hi,Yi,qi,tx,nx,ox,rx,sx,ix,ax,lx,cx);function er(e,t){return t==="grey"?t:e}const ux=dt({prop:"color",themeKey:"palette",transform:er}),dx=dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:er}),fx=dt({prop:"backgroundColor",themeKey:"palette",transform:er});Wi(ux,dx,fx);function Bt(e){return e<=1&&e!==0?`${e*100}%`:e}const px=dt({prop:"width",transform:Bt}),Pc=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])||Vi[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:Bt(n)}};return On(e,e.maxWidth,t)}return null};Pc.filterProps=["maxWidth"];const hx=dt({prop:"minWidth",transform:Bt}),mx=dt({prop:"height",transform:Bt}),gx=dt({prop:"maxHeight",transform:Bt}),yx=dt({prop:"minHeight",transform:Bt});dt({prop:"size",cssProperty:"width",transform:Bt});dt({prop:"size",cssProperty:"height",transform:Bt});const bx=dt({prop:"boxSizing"});Wi(px,Pc,hx,mx,gx,yx,bx);const ws={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:Ui},color:{themeKey:"palette",transform:er},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:er},backgroundColor:{themeKey:"palette",transform:er},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:Hi},rowGap:{style:qi},columnGap:{style:Yi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bt},maxWidth:{style:Pc},minWidth:{transform:Bt},height:{transform:Bt},maxHeight:{transform:Bt},minHeight:{transform:Bt},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 vx(...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 xx(e,t){return typeof e=="function"?e(t):e}function Sx(){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=Fi(r,u)||{};return f?f(a):On(a,o,m=>{let g=mi(p,d,m);return m===g&&typeof m=="string"&&(g=mi(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??ws;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=_0(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=xx(u[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=Gr(p,e(h,m,r,a));else{const g=On({theme:r},m,y=>({[h]:y}));vx(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=Gr(p,g)}else p=Gr(p,e(h,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Ad(r,_d(f,p))}:Ad(r,_d(f,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const sr=Sx();sr.filterProps=["sx"];const wx=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??ws;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Cx(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=wx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return hn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function Tx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ec(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}].`),Tx(e,t,n)}function Px(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(Px(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
62
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:bn(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.`:bn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const
|
|
64
|
-
`))}return v}const h=({color:y,name:v,mainShade:C=500,lightShade:
|
|
63
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:bn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const Ex=e=>{const t=qn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Vr=(e,t)=>{try{return Ex(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Gi(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 Jh(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])),Gi({type:l,values:c})}function El(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(Jh(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 Ld(e,t){const n=El(e),o=El(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function gi(e,t){return e=qn(e),t=Ec(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gi(e)}function io(e,t,n){try{return gi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ki(e,t){if(e=qn(e),t=Ec(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 Gi(e)}function ze(e,t,n){try{return Ki(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Zi(e,t){if(e=qn(e),t=Ec(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 Gi(e)}function We(e,t,n){try{return Zi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Mx(e,t=.15){return El(e)>.5?Ki(e,t):Zi(e,t)}function zs(e,t,n){try{return Mx(e,t)}catch{return e}}const ss={black:"#000",white:"#fff"},Ox={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"},jo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Lo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},$o={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Vo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Fo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function em(){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:ss.white,default:ss.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 tm=em();function nm(){return{text:{primary:ss.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:ss.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 Ml=nm();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=Zi(e.main,r):t==="dark"&&(e.dark=Ki(e.main,i)))}function Vd(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 kx(e="light"){return e==="dark"?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[700],light:$o[400],dark:$o[800]}}function Dx(e="light"){return e==="dark"?{main:jo[200],light:jo[50],dark:jo[400]}:{main:jo[500],light:jo[300],dark:jo[700]}}function Rx(e="light"){return e==="dark"?{main:Lo[500],light:Lo[300],dark:Lo[700]}:{main:Lo[700],light:Lo[400],dark:Lo[800]}}function Ix(e="light"){return e==="dark"?{main:Vo[400],light:Vo[300],dark:Vo[700]}:{main:Vo[700],light:Vo[500],dark:Vo[900]}}function Ax(e="light"){return e==="dark"?{main:Fo[400],light:Fo[300],dark:Fo[700]}:{main:Fo[800],light:Fo[500],dark:Fo[900]}}function Nx(e="light"){return e==="dark"?{main:Pr[400],light:Pr[300],dark:Pr[700]}:{main:"#ed6c02",light:Pr[500],dark:Pr[900]}}function _x(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Mc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||kx(t),l=e.secondary||Dx(t),c=e.error||Rx(t),u=e.info||Ix(t),d=e.success||Ax(t),f=e.warning||Nx(t);function p(y){if(r)return _x(y);const v=Ld(y,Ml.text.primary)>=n?Ml.text.primary:tm.text.primary;if(process.env.NODE_ENV!=="production"){const C=Ld(y,v);C<3&&console.error([`MUI: The contrast ratio of ${C}: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:C=500,lightShade:S=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[C]&&(y.main=y[C]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
65
65
|
The color object needs to have a \`main\` property or a \`${C}\` property.`:bn(11,v?` (${v})`:"",C));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
66
|
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
67
67
|
|
|
@@ -75,56 +75,56 @@ const theme1 = createTheme({ palette: {
|
|
|
75
75
|
|
|
76
76
|
const theme2 = createTheme({ palette: {
|
|
77
77
|
primary: { main: green[500] },
|
|
78
|
-
} });`:bn(12,v?` (${v})`:"",JSON.stringify(y.main)));return r?(
|
|
78
|
+
} });`:bn(12,v?` (${v})`:"",JSON.stringify(y.main)));return r?(Vd(r,y,"light",S,o),Vd(r,y,"dark",w,o)):($d(y,"light",S,o),$d(y,"dark",w,o)),y.contrastText||(y.contrastText=p(y.main)),y};let m;return t==="light"?m=em():t==="dark"&&(m=nm()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Dt({common:{...ss},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:Ox,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function jx(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 Lx={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 $x(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Vx=/[A-Z]|^ms/g,Fx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,om=function(t){return t.charCodeAt(1)===45},Fd=function(t){return t!=null&&typeof t!="boolean"},Fa=$x(function(e){return om(e)?e:e.replace(Vx,"-$&").toLowerCase()}),Bd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fx,function(o,r,i){return zn={name:r,styles:i,next:zn},r})}return Lx[t]!==1&&!om(t)&&typeof n=="number"&&n!==0?n+"px":n};function yi(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 zn={name:r.name,styles:r.styles,next:zn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)zn={name:a.name,styles:a.styles,next:zn},a=a.next;var l=i.styles+";";return l}return Bx(e,t,n)}}var c=n;return c}function Bx(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=yi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Fd(l)&&(o+=Fa(i)+":"+Bd(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Fd(a[c])&&(o+=Fa(i)+":"+Bd(i,a[c])+";");else{var u=yi(e,t,a);switch(i){case"animation":case"animationName":{o+=Fa(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var zd=/label:\s*([^\s;{]+)\s*(;|$)/g,zn;function zx(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="";zn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=yi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=yi(n,t,e[l]),o){var c=i;r+=c[l]}zd.lastIndex=0;for(var u="",d;(d=zd.exec(r))!==null;)u+="-"+d[1];var f=jx(r)+u;return{name:f,styles:r,next:zn}}/**
|
|
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
|
|
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 Bx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const zd=[];function Eo(e){return zd[0]=e,Vx(zd)}const zx="exact-prop: ";function tm(e){return process.env.NODE_ENV==="production"?e:{...e,[zx]: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 St=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Wx(e){return Object.keys(e).length===0}function Ux(e=null){const t=P.useContext(Uv.ThemeContext);return!t||Wx(t)?e:t}const Hx=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const ln=()=>P.useContext(Hx)??!1;function is(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]=is(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ge(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 Yx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function qx(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?is(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?is(r,o,t.components.mergeClassNameAndStyle):o}function Gx({props:e,name:t}){const n=P.useContext(Yx);return qx({props:e,name:t,theme:{components:n}})}let Wd=0;function Kx(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Wd+=1,n(`mui-${Wd}`))},[t]),o}const Zx={...P},Ud=Zx.useId;function eo(e){if(Ud!==void 0){const t=Ud();return e??t}return Kx(e)}const Xx=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 Qx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=Xx(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 Jx={borderRadius:4};function e1(e=8,t=Cc({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 t1(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 nm(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=Qx(n),c=e1(r);let u=Dt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...Jx,...i}},a);return u=D0(u),u.applyStyles=t1,u=t.reduce((d,f)=>Dt(d,f),u),u.unstable_sxConfig={...ws,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return rr({sx:f,theme:this})},u}const Hd=(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])})},n1=(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)},o1=(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 Ba(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return n1(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=o1(l,c);Object.assign(r,{[d]:f}),Hd(i,l,`var(${d})`,u),Hd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function r1(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}=Ba(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([S,T])=>{const{vars:E,css:M,varsWithDefaults:A}=Ba(T,t);h=Dt(h,A),m[S]={css:M,vars:E}}),g){const{css:S,vars:T,varsWithDefaults:E}=Ba(g,t);h=Dt(h,E),m[c]={css:S,vars:T}}function v(S,T){var M,A;let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((A=(M=a[S])==null?void 0:M.palette)==null?void 0:A.mode)||S})`]:{":root":T}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...d};return Object.entries(m).forEach(([,{vars:T}])=>{S=Dt(S,T)}),S},generateStyleSheets:()=>{var O,V;const S=[],T=e.defaultColorScheme||"light";function E(j,w){Object.keys(w).length&&S.push(typeof j=="string"?{[j]:{...w}}:j)}E(n(void 0,{...f}),f);const{[T]:M,...A}=m;if(M){const{css:j}=M,w=(V=(O=a[T])==null?void 0:O.palette)==null?void 0:V.mode,N=!o&&w?{colorScheme:w,...j}:{...j};E(n(T,{...N}),N)}return Object.entries(A).forEach(([j,{css:w}])=>{var I,D;const N=(D=(I=a[j])==null?void 0:I.palette)==null?void 0:D.mode,R=!o&&N?{colorScheme:N,...w}:{...w};E(n(j,{...R}),R)}),i&&S.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)"}}),S}}}function s1(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 i1(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 a1={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=a1[t];return o?`${n}-${o}`:`${g0.generate(e)}-${t}`}function l1(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function c1(e){return Math.round(e*1e5)/1e5}const Yd={textTransform:"uppercase"},qd='"Roboto", "Helvetica", "Arial", sans-serif';function u1(e,t){const{fontFamily:n=qd,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,C,x,S)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:C,...n===qd?{letterSpacing:`${c1(x/v)}em`}:{},...S,...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,Yd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Yd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dt({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const d1=.2,f1=.14,p1=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${d1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${f1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${p1})`].join(",")}const h1=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],m1={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)"},g1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gd(e){return`${Math.round(e)}ms`}function y1(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function b1(e){const t={...m1,...e.easing},n={...g1,...e.duration};return{getAutoHeightDuration:y1,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:
|
|
84
|
+
*/function Wx(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 Ux(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wd=[];function Mo(e){return Wd[0]=e,zx(Wd)}const Hx="exact-prop: ";function rm(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 St=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Yx(e){return Object.keys(e).length===0}function qx(e=null){const t=P.useContext(Yv.ThemeContext);return!t||Yx(t)?e:t}const Gx=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const ln=()=>P.useContext(Gx)??!1;function is(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]=is(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ge(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 Kx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Zx(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?is(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?is(r,o,t.components.mergeClassNameAndStyle):o}function Xx({props:e,name:t}){const n=P.useContext(Kx);return Zx({props:e,name:t,theme:{components:n}})}let Ud=0;function Qx(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Ud+=1,n(`mui-${Ud}`))},[t]),o}const Jx={...P},Hd=Jx.useId;function eo(e){if(Hd!==void 0){const t=Hd();return e??t}return Qx(e)}const e1=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 t1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=e1(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 n1={borderRadius:4};function o1(e=8,t=Tc({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 r1(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 sm(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=t1(n),c=o1(r);let u=Dt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...n1,...i}},a);return u=A0(u),u.applyStyles=r1,u=t.reduce((d,f)=>Dt(d,f),u),u.unstable_sxConfig={...ws,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return sr({sx:f,theme:this})},u}const Yd=(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])})},s1=(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)},i1=(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 Ba(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return s1(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=i1(l,c);Object.assign(r,{[d]:f}),Yd(i,l,`var(${d})`,u),Yd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function a1(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}=Ba(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([w,T])=>{const{vars:E,css:M,varsWithDefaults:A}=Ba(T,t);h=Dt(h,A),m[w]={css:M,vars:E}}),g){const{css:w,vars:T,varsWithDefaults:E}=Ba(g,t);h=Dt(h,E),m[c]={css:w,vars:T}}function v(w,T){var M,A;let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),w){if(E==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((A=(M=a[w])==null?void 0:M.palette)==null?void 0:A.mode)||w})`]:{":root":T}};if(E)return e.defaultColorScheme===w?`:root, ${E.replace("%s",String(w))}`:E.replace("%s",String(w))}return":root"}return{vars:h,generateThemeVars:()=>{let w={...d};return Object.entries(m).forEach(([,{vars:T}])=>{w=Dt(w,T)}),w},generateStyleSheets:()=>{var k,V;const w=[],T=e.defaultColorScheme||"light";function E(L,x){Object.keys(x).length&&w.push(typeof L=="string"?{[L]:{...x}}:L)}E(n(void 0,{...f}),f);const{[T]:M,...A}=m;if(M){const{css:L}=M,x=(V=(k=a[T])==null?void 0:k.palette)==null?void 0:V.mode,j=!o&&x?{colorScheme:x,...L}:{...L};E(n(T,{...j}),j)}return Object.entries(A).forEach(([L,{css:x}])=>{var I,D;const j=(D=(I=a[L])==null?void 0:I.palette)==null?void 0:D.mode,O=!o&&j?{colorScheme:j,...x}:{...x};E(n(L,{...O}),O)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function l1(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 c1(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 u1={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=u1[t];return o?`${n}-${o}`:`${v0.generate(e)}-${t}`}function d1(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function f1(e){return Math.round(e*1e5)/1e5}const qd={textTransform:"uppercase"},Gd='"Roboto", "Helvetica", "Arial", sans-serif';function p1(e,t){const{fontFamily:n=Gd,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,C,S,w)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:C,...n===Gd?{letterSpacing:`${f1(S/v)}em`}:{},...w,...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,qd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,qd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dt({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const h1=.2,m1=.14,g1=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${h1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${m1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${g1})`].join(",")}const y1=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],b1={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)"},v1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kd(e){return`${Math.round(e)}ms`}function x1(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function S1(e){const t={...b1,...e.easing},n={...v1,...e.duration};return{getAutoHeightDuration:x1,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 w1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function C1(e){return hn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function im(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];!C1(l)||a.startsWith("unstable_")?delete o[a]:hn(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
|
|
94
|
-
`))}y[C]={}}}};Object.keys(h.components).forEach(y=>{const v=h.components[y].styleOverrides;v&&y.startsWith("Mui")&&g(v,y)})}return h.unstable_sxConfig={...ws,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return
|
|
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 k1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const un=e=>{try{return e()}catch{}},D1=(e="mui")=>Ft.unstable_createGetCssVar(e);function za(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=T1({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Ml({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...rm(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||sm(i)},l}function R1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=P1,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=D1(i),{[p]:m,light:g,dark:y,...v}=n,C={...v};let x=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:bn(21,p));let S;a&&(S="oklch");const T=za(S,C,x,d,p);g&&!C.light&&za(S,C,g,void 0,"light"),y&&!C.dark&&za(S,C,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:C,font:{...s1(T.typography),...T.font},spacing:k1(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const w=E.colorSchemes[j].palette,N=I=>{const D=I.split("-"),_=D[1],F=D[2];return h(I,w[_][F])};w.mode==="light"&&(ne(w.common,"background","#fff"),ne(w.common,"onBackground","#000")),w.mode==="dark"&&(ne(w.common,"background","#000"),ne(w.common,"onBackground","#fff"));function R(I,D,_){if(S){let F;return I===io&&(F=`transparent ${((1-_)*100).toFixed(0)}%`),I===ze&&(F=`#000 ${(_*100).toFixed(0)}%`),I===We&&(F=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${S}, ${D}, ${F})`}return I(D,_)}if(O1(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){ne(w.Alert,"errorColor",R(ze,w.error.light,.6)),ne(w.Alert,"infoColor",R(ze,w.info.light,.6)),ne(w.Alert,"successColor",R(ze,w.success.light,.6)),ne(w.Alert,"warningColor",R(ze,w.warning.light,.6)),ne(w.Alert,"errorFilledBg",N("palette-error-main")),ne(w.Alert,"infoFilledBg",N("palette-info-main")),ne(w.Alert,"successFilledBg",N("palette-success-main")),ne(w.Alert,"warningFilledBg",N("palette-warning-main")),ne(w.Alert,"errorFilledColor",un(()=>w.getContrastText(w.error.main))),ne(w.Alert,"infoFilledColor",un(()=>w.getContrastText(w.info.main))),ne(w.Alert,"successFilledColor",un(()=>w.getContrastText(w.success.main))),ne(w.Alert,"warningFilledColor",un(()=>w.getContrastText(w.warning.main))),ne(w.Alert,"errorStandardBg",R(We,w.error.light,.9)),ne(w.Alert,"infoStandardBg",R(We,w.info.light,.9)),ne(w.Alert,"successStandardBg",R(We,w.success.light,.9)),ne(w.Alert,"warningStandardBg",R(We,w.warning.light,.9)),ne(w.Alert,"errorIconColor",N("palette-error-main")),ne(w.Alert,"infoIconColor",N("palette-info-main")),ne(w.Alert,"successIconColor",N("palette-success-main")),ne(w.Alert,"warningIconColor",N("palette-warning-main")),ne(w.AppBar,"defaultBg",N("palette-grey-100")),ne(w.Avatar,"defaultBg",N("palette-grey-400")),ne(w.Button,"inheritContainedBg",N("palette-grey-300")),ne(w.Button,"inheritContainedHoverBg",N("palette-grey-A100")),ne(w.Chip,"defaultBorder",N("palette-grey-400")),ne(w.Chip,"defaultAvatarColor",N("palette-grey-700")),ne(w.Chip,"defaultIconColor",N("palette-grey-700")),ne(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(w.LinearProgress,"primaryBg",R(We,w.primary.main,.62)),ne(w.LinearProgress,"secondaryBg",R(We,w.secondary.main,.62)),ne(w.LinearProgress,"errorBg",R(We,w.error.main,.62)),ne(w.LinearProgress,"infoBg",R(We,w.info.main,.62)),ne(w.LinearProgress,"successBg",R(We,w.success.main,.62)),ne(w.LinearProgress,"warningBg",R(We,w.warning.main,.62)),ne(w.Skeleton,"bg",S?R(io,w.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),ne(w.Slider,"primaryTrack",R(We,w.primary.main,.62)),ne(w.Slider,"secondaryTrack",R(We,w.secondary.main,.62)),ne(w.Slider,"errorTrack",R(We,w.error.main,.62)),ne(w.Slider,"infoTrack",R(We,w.info.main,.62)),ne(w.Slider,"successTrack",R(We,w.success.main,.62)),ne(w.Slider,"warningTrack",R(We,w.warning.main,.62));const I=S?R(ze,w.background.default,.6825):zs(w.background.default,.8);ne(w.SnackbarContent,"bg",I),ne(w.SnackbarContent,"color",un(()=>S?El.text.primary:w.getContrastText(I))),ne(w.SpeedDialAction,"fabHoverBg",zs(w.background.paper,.15)),ne(w.StepConnector,"border",N("palette-grey-400")),ne(w.StepContent,"border",N("palette-grey-400")),ne(w.Switch,"defaultColor",N("palette-common-white")),ne(w.Switch,"defaultDisabledColor",N("palette-grey-100")),ne(w.Switch,"primaryDisabledColor",R(We,w.primary.main,.62)),ne(w.Switch,"secondaryDisabledColor",R(We,w.secondary.main,.62)),ne(w.Switch,"errorDisabledColor",R(We,w.error.main,.62)),ne(w.Switch,"infoDisabledColor",R(We,w.info.main,.62)),ne(w.Switch,"successDisabledColor",R(We,w.success.main,.62)),ne(w.Switch,"warningDisabledColor",R(We,w.warning.main,.62)),ne(w.TableCell,"border",R(We,R(io,w.divider,1),.88)),ne(w.Tooltip,"bg",R(io,w.grey[700],.92))}if(w.mode==="dark"){ne(w.Alert,"errorColor",R(We,w.error.light,.6)),ne(w.Alert,"infoColor",R(We,w.info.light,.6)),ne(w.Alert,"successColor",R(We,w.success.light,.6)),ne(w.Alert,"warningColor",R(We,w.warning.light,.6)),ne(w.Alert,"errorFilledBg",N("palette-error-dark")),ne(w.Alert,"infoFilledBg",N("palette-info-dark")),ne(w.Alert,"successFilledBg",N("palette-success-dark")),ne(w.Alert,"warningFilledBg",N("palette-warning-dark")),ne(w.Alert,"errorFilledColor",un(()=>w.getContrastText(w.error.dark))),ne(w.Alert,"infoFilledColor",un(()=>w.getContrastText(w.info.dark))),ne(w.Alert,"successFilledColor",un(()=>w.getContrastText(w.success.dark))),ne(w.Alert,"warningFilledColor",un(()=>w.getContrastText(w.warning.dark))),ne(w.Alert,"errorStandardBg",R(ze,w.error.light,.9)),ne(w.Alert,"infoStandardBg",R(ze,w.info.light,.9)),ne(w.Alert,"successStandardBg",R(ze,w.success.light,.9)),ne(w.Alert,"warningStandardBg",R(ze,w.warning.light,.9)),ne(w.Alert,"errorIconColor",N("palette-error-main")),ne(w.Alert,"infoIconColor",N("palette-info-main")),ne(w.Alert,"successIconColor",N("palette-success-main")),ne(w.Alert,"warningIconColor",N("palette-warning-main")),ne(w.AppBar,"defaultBg",N("palette-grey-900")),ne(w.AppBar,"darkBg",N("palette-background-paper")),ne(w.AppBar,"darkColor",N("palette-text-primary")),ne(w.Avatar,"defaultBg",N("palette-grey-600")),ne(w.Button,"inheritContainedBg",N("palette-grey-800")),ne(w.Button,"inheritContainedHoverBg",N("palette-grey-700")),ne(w.Chip,"defaultBorder",N("palette-grey-700")),ne(w.Chip,"defaultAvatarColor",N("palette-grey-300")),ne(w.Chip,"defaultIconColor",N("palette-grey-300")),ne(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(w.LinearProgress,"primaryBg",R(ze,w.primary.main,.5)),ne(w.LinearProgress,"secondaryBg",R(ze,w.secondary.main,.5)),ne(w.LinearProgress,"errorBg",R(ze,w.error.main,.5)),ne(w.LinearProgress,"infoBg",R(ze,w.info.main,.5)),ne(w.LinearProgress,"successBg",R(ze,w.success.main,.5)),ne(w.LinearProgress,"warningBg",R(ze,w.warning.main,.5)),ne(w.Skeleton,"bg",S?R(io,w.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),ne(w.Slider,"primaryTrack",R(ze,w.primary.main,.5)),ne(w.Slider,"secondaryTrack",R(ze,w.secondary.main,.5)),ne(w.Slider,"errorTrack",R(ze,w.error.main,.5)),ne(w.Slider,"infoTrack",R(ze,w.info.main,.5)),ne(w.Slider,"successTrack",R(ze,w.success.main,.5)),ne(w.Slider,"warningTrack",R(ze,w.warning.main,.5));const I=S?R(We,w.background.default,.985):zs(w.background.default,.98);ne(w.SnackbarContent,"bg",I),ne(w.SnackbarContent,"color",un(()=>S?Qh.text.primary:w.getContrastText(I))),ne(w.SpeedDialAction,"fabHoverBg",zs(w.background.paper,.15)),ne(w.StepConnector,"border",N("palette-grey-600")),ne(w.StepContent,"border",N("palette-grey-600")),ne(w.Switch,"defaultColor",N("palette-grey-300")),ne(w.Switch,"defaultDisabledColor",N("palette-grey-600")),ne(w.Switch,"primaryDisabledColor",R(ze,w.primary.main,.55)),ne(w.Switch,"secondaryDisabledColor",R(ze,w.secondary.main,.55)),ne(w.Switch,"errorDisabledColor",R(ze,w.error.main,.55)),ne(w.Switch,"infoDisabledColor",R(ze,w.info.main,.55)),ne(w.Switch,"successDisabledColor",R(ze,w.success.main,.55)),ne(w.Switch,"warningDisabledColor",R(ze,w.warning.main,.55)),ne(w.TableCell,"border",R(ze,R(io,w.divider,1),.68)),ne(w.Tooltip,"bg",R(io,w.grey[700],.92))}wn(w.background,"default"),wn(w.background,"paper"),wn(w.common,"background"),wn(w.common,"onBackground"),wn(w,"divider"),Object.keys(w).forEach(I=>{const D=w[I];I!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&ne(w[I],"mainChannel",Vr(Fr(D.main))),D.light&&ne(w[I],"lightChannel",Vr(Fr(D.light))),D.dark&&ne(w[I],"darkChannel",Vr(Fr(D.dark))),D.contrastText&&ne(w[I],"contrastTextChannel",Vr(Fr(D.contrastText))),I==="text"&&(wn(w[I],"primary"),wn(w[I],"secondary")),I==="action"&&(D.active&&wn(w[I],"active"),D.selected&&wn(w[I],"selected")))})}),E=t.reduce((j,w)=>Dt(j,w),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:M1(E),enableContrastVars:a},{vars:A,generateThemeVars:O,generateStyleSheets:V}=r1(E,M);return E.vars=A,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,w])=>{E[j]=w}),E.generateThemeVars=O,E.generateStyleSheets=V,E.generateSpacing=function(){return Ft.createSpacing(d.spacing,Cc(this))},E.getColorSchemeSelector=i1(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...ws,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(w){return rr({sx:w,theme:this})},E.toRuntimeSource=om,E}function Zd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ec({...n===!0?{}:n.palette,mode:t})})}function I1(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 Ml(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Ml({...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},Zd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Zd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),R1({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Mc=I1(),Xi="$$material";function Qi(){const e=Ft.useTheme(Mc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[Xi]||e}function im(e){return b.jsx(Ft.GlobalStyles,{...e,defaultTheme:Mc,themeId:Xi})}process.env.NODE_ENV!=="production"&&(im.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function am(e,t=""){return e.displayName||e.name||t}function Xd(e,t,n){const o=am(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function A1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return am(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Do.ForwardRef:return Xd(e,e.render,"ForwardRef");case Do.Memo:return Xd(e,e.type,"memo");default:return}}}function N1(e){const{variants:t,...n}=e,o={variants:t,style:Eo(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Eo(r.style))}),o}const _1=nm();function Hn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function wo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function j1(e){return e?(t,n)=>n[e]:null}function L1(e,t,n){e.theme=B1(e.theme)?n:e.theme[t]||e.theme}function ai(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>ai(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?wo(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?wo(Eo(a),n):a}return lm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?wo(Eo(o.style),n):o.style:n?wo(Eo(o),n):o}function lm(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?wo(Eo(l.style(r)),o):l.style(r))):n.push(o?wo(Eo(l.style),o):l.style)}return n}function $1(e={}){const{themeId:t,defaultTheme:n=_1,rootShouldForwardProp:o=Hn,slotShouldForwardProp:r=Hn}=e;function i(l){L1(l,t,n)}return(l,c={})=>{Bx(l,E=>E.filter(M=>M!==rr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=j1(cm(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 C=Hn;d==="Root"||d==="root"?C=o:d?C=r:z1(l)&&(C=void 0);const x=Fx(l,{shouldForwardProp:C,label:F1(u,d),...m}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(A){return ai(A,E,A.theme.modularCssLayers?g:void 0)};if(hn(E)){const M=N1(E);return function(O){return M.variants?ai(O,M,O.theme.modularCssLayers?g:void 0):O.theme.modularCssLayers?wo(M.style,g):M.style}}return E},T=(...E)=>{const M=[],A=E.map(S),O=[];if(M.push(i),u&&h&&O.push(function(N){var _,F;const I=(F=(_=N.theme.components)==null?void 0:_[u])==null?void 0:F.styleOverrides;if(!I)return null;const D={};for(const B in I)D[B]=ai(N,I[B],N.theme.modularCssLayers?"theme":void 0);return h(N,D)}),u&&!y&&O.push(function(N){var D,_;const R=N.theme,I=(_=(D=R==null?void 0:R.components)==null?void 0:D[u])==null?void 0:_.variants;return I?lm(N,I,[],N.theme.modularCssLayers?"theme":void 0):null}),v||O.push(rr),Array.isArray(A[0])){const w=A.shift(),N=new Array(M.length).fill(""),R=new Array(O.length).fill("");let I;I=[...N,...w,...R],I.raw=[...N,...w.raw,...R],M.unshift(I)}const V=[...M,...A,...O],j=x(...V);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=V1(u,d,l)),j};return x.withConfig&&(T.withConfig=x.withConfig),T}}function V1(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${A1(n)})`}function F1(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${cm(t||"Root")}`),n}function B1(e){for(const t in e)return!1;return!0}function z1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function um(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cn=e=>um(e)&&e!=="classes",ye=$1({themeId:Xi,defaultTheme:Mc,rootShouldForwardProp:cn});function W1(e){return function(n){return b.jsx(im,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function U1(){return xx}const qe=Ft.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Le(e){return Gx(e)}function Ce(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function H1(e){return Te("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Y1=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,H1,o)},q1=ye("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)}`]]}})(qe(({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}}]}})),bi=P.forwardRef(function(t,n){const o=Le({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=Y1(g);return b.jsxs(q1,{as:l,className:ge(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"&&(bi.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});bi.muiName="SvgIcon";function ft(e,t){function n(o,r){return b.jsx(bi,{"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=bi.muiName,P.memo(P.forwardRef(n))}function dm(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 Kr(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 Ct(e){return e&&e.ownerDocument||document}function kn(e){return Ct(e).defaultView||window}function Qd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function G1(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 Gn(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(`
|
|
93
|
+
export default theme;`}function Zd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const T1=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 P1(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})`:gi(t,T1(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Zd(n)})`:Zi(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Zd(n)})`:Ki(t,n)}})}function Ol(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.":bn(20));const f=Mc({...i,colorSpace:u}),p=sm(e);let h=Dt(p,{mixins:d1(p.breakpoints,o),palette:f,shadows:y1.slice(),typography:p1(f,l),transitions:S1(a),zIndex:{...w1}});if(h=Dt(h,d),h=t.reduce((m,g)=>Dt(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(y,v)=>{let C;for(C in y){const S=y[C];if(m.includes(C)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const w=Te("",C);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
94
|
+
`))}y[C]={}}}};Object.keys(h.components).forEach(y=>{const v=h.components[y].styleOverrides;v&&y.startsWith("Mui")&&g(v,y)})}return h.unstable_sxConfig={...ws,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return sr({sx:g,theme:this})},h.toRuntimeSource=im,P1(h),h}function kl(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 E1=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=kl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function am(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function lm(e){return e==="dark"?E1:[]}function M1(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Mc({...t,colorSpace:r});return{palette:a,opacity:{...am(a.mode),...n},overlays:o||lm(a.mode),...i}}function O1(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 k1=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],D1=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 k1(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 R1(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Fr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Jh(e)}function wn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Vr(Fr(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 I1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const un=e=>{try{return e()}catch{}},A1=(e="mui")=>Ft.unstable_createGetCssVar(e);function za(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=M1({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Ol({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...am(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||lm(i)},l}function N1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=O1,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=A1(i),{[p]:m,light:g,dark:y,...v}=n,C={...v};let S=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:bn(21,p));let w;a&&(w="oklch");const T=za(w,C,S,d,p);g&&!C.light&&za(w,C,g,void 0,"light"),y&&!C.dark&&za(w,C,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:C,font:{...l1(T.typography),...T.font},spacing:I1(d.spacing)};Object.keys(E.colorSchemes).forEach(L=>{const x=E.colorSchemes[L].palette,j=I=>{const D=I.split("-"),N=D[1],B=D[2];return h(I,x[N][B])};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 O(I,D,N){if(w){let B;return I===io&&(B=`transparent ${((1-N)*100).toFixed(0)}%`),I===ze&&(B=`#000 ${(N*100).toFixed(0)}%`),I===We&&(B=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${w}, ${D}, ${B})`}return I(D,N)}if(R1(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",O(ze,x.error.light,.6)),ne(x.Alert,"infoColor",O(ze,x.info.light,.6)),ne(x.Alert,"successColor",O(ze,x.success.light,.6)),ne(x.Alert,"warningColor",O(ze,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",j("palette-error-main")),ne(x.Alert,"infoFilledBg",j("palette-info-main")),ne(x.Alert,"successFilledBg",j("palette-success-main")),ne(x.Alert,"warningFilledBg",j("palette-warning-main")),ne(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.main))),ne(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.main))),ne(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.main))),ne(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.main))),ne(x.Alert,"errorStandardBg",O(We,x.error.light,.9)),ne(x.Alert,"infoStandardBg",O(We,x.info.light,.9)),ne(x.Alert,"successStandardBg",O(We,x.success.light,.9)),ne(x.Alert,"warningStandardBg",O(We,x.warning.light,.9)),ne(x.Alert,"errorIconColor",j("palette-error-main")),ne(x.Alert,"infoIconColor",j("palette-info-main")),ne(x.Alert,"successIconColor",j("palette-success-main")),ne(x.Alert,"warningIconColor",j("palette-warning-main")),ne(x.AppBar,"defaultBg",j("palette-grey-100")),ne(x.Avatar,"defaultBg",j("palette-grey-400")),ne(x.Button,"inheritContainedBg",j("palette-grey-300")),ne(x.Button,"inheritContainedHoverBg",j("palette-grey-A100")),ne(x.Chip,"defaultBorder",j("palette-grey-400")),ne(x.Chip,"defaultAvatarColor",j("palette-grey-700")),ne(x.Chip,"defaultIconColor",j("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",O(We,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",O(We,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",O(We,x.error.main,.62)),ne(x.LinearProgress,"infoBg",O(We,x.info.main,.62)),ne(x.LinearProgress,"successBg",O(We,x.success.main,.62)),ne(x.LinearProgress,"warningBg",O(We,x.warning.main,.62)),ne(x.Skeleton,"bg",w?O(io,x.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",O(We,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",O(We,x.secondary.main,.62)),ne(x.Slider,"errorTrack",O(We,x.error.main,.62)),ne(x.Slider,"infoTrack",O(We,x.info.main,.62)),ne(x.Slider,"successTrack",O(We,x.success.main,.62)),ne(x.Slider,"warningTrack",O(We,x.warning.main,.62));const I=w?O(ze,x.background.default,.6825):zs(x.background.default,.8);ne(x.SnackbarContent,"bg",I),ne(x.SnackbarContent,"color",un(()=>w?Ml.text.primary:x.getContrastText(I))),ne(x.SpeedDialAction,"fabHoverBg",zs(x.background.paper,.15)),ne(x.StepConnector,"border",j("palette-grey-400")),ne(x.StepContent,"border",j("palette-grey-400")),ne(x.Switch,"defaultColor",j("palette-common-white")),ne(x.Switch,"defaultDisabledColor",j("palette-grey-100")),ne(x.Switch,"primaryDisabledColor",O(We,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",O(We,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",O(We,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",O(We,x.info.main,.62)),ne(x.Switch,"successDisabledColor",O(We,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",O(We,x.warning.main,.62)),ne(x.TableCell,"border",O(We,O(io,x.divider,1),.88)),ne(x.Tooltip,"bg",O(io,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",O(We,x.error.light,.6)),ne(x.Alert,"infoColor",O(We,x.info.light,.6)),ne(x.Alert,"successColor",O(We,x.success.light,.6)),ne(x.Alert,"warningColor",O(We,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",j("palette-error-dark")),ne(x.Alert,"infoFilledBg",j("palette-info-dark")),ne(x.Alert,"successFilledBg",j("palette-success-dark")),ne(x.Alert,"warningFilledBg",j("palette-warning-dark")),ne(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.dark))),ne(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.dark))),ne(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.dark))),ne(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.dark))),ne(x.Alert,"errorStandardBg",O(ze,x.error.light,.9)),ne(x.Alert,"infoStandardBg",O(ze,x.info.light,.9)),ne(x.Alert,"successStandardBg",O(ze,x.success.light,.9)),ne(x.Alert,"warningStandardBg",O(ze,x.warning.light,.9)),ne(x.Alert,"errorIconColor",j("palette-error-main")),ne(x.Alert,"infoIconColor",j("palette-info-main")),ne(x.Alert,"successIconColor",j("palette-success-main")),ne(x.Alert,"warningIconColor",j("palette-warning-main")),ne(x.AppBar,"defaultBg",j("palette-grey-900")),ne(x.AppBar,"darkBg",j("palette-background-paper")),ne(x.AppBar,"darkColor",j("palette-text-primary")),ne(x.Avatar,"defaultBg",j("palette-grey-600")),ne(x.Button,"inheritContainedBg",j("palette-grey-800")),ne(x.Button,"inheritContainedHoverBg",j("palette-grey-700")),ne(x.Chip,"defaultBorder",j("palette-grey-700")),ne(x.Chip,"defaultAvatarColor",j("palette-grey-300")),ne(x.Chip,"defaultIconColor",j("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",O(ze,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",O(ze,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",O(ze,x.error.main,.5)),ne(x.LinearProgress,"infoBg",O(ze,x.info.main,.5)),ne(x.LinearProgress,"successBg",O(ze,x.success.main,.5)),ne(x.LinearProgress,"warningBg",O(ze,x.warning.main,.5)),ne(x.Skeleton,"bg",w?O(io,x.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",O(ze,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",O(ze,x.secondary.main,.5)),ne(x.Slider,"errorTrack",O(ze,x.error.main,.5)),ne(x.Slider,"infoTrack",O(ze,x.info.main,.5)),ne(x.Slider,"successTrack",O(ze,x.success.main,.5)),ne(x.Slider,"warningTrack",O(ze,x.warning.main,.5));const I=w?O(We,x.background.default,.985):zs(x.background.default,.98);ne(x.SnackbarContent,"bg",I),ne(x.SnackbarContent,"color",un(()=>w?tm.text.primary:x.getContrastText(I))),ne(x.SpeedDialAction,"fabHoverBg",zs(x.background.paper,.15)),ne(x.StepConnector,"border",j("palette-grey-600")),ne(x.StepContent,"border",j("palette-grey-600")),ne(x.Switch,"defaultColor",j("palette-grey-300")),ne(x.Switch,"defaultDisabledColor",j("palette-grey-600")),ne(x.Switch,"primaryDisabledColor",O(ze,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",O(ze,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",O(ze,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",O(ze,x.info.main,.55)),ne(x.Switch,"successDisabledColor",O(ze,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",O(ze,x.warning.main,.55)),ne(x.TableCell,"border",O(ze,O(io,x.divider,1),.68)),ne(x.Tooltip,"bg",O(io,x.grey[700],.92))}wn(x.background,"default"),wn(x.background,"paper"),wn(x.common,"background"),wn(x.common,"onBackground"),wn(x,"divider"),Object.keys(x).forEach(I=>{const D=x[I];I!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&ne(x[I],"mainChannel",Vr(Fr(D.main))),D.light&&ne(x[I],"lightChannel",Vr(Fr(D.light))),D.dark&&ne(x[I],"darkChannel",Vr(Fr(D.dark))),D.contrastText&&ne(x[I],"contrastTextChannel",Vr(Fr(D.contrastText))),I==="text"&&(wn(x[I],"primary"),wn(x[I],"secondary")),I==="action"&&(D.active&&wn(x[I],"active"),D.selected&&wn(x[I],"selected")))})}),E=t.reduce((L,x)=>Dt(L,x),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:D1(E),enableContrastVars:a},{vars:A,generateThemeVars:k,generateStyleSheets:V}=a1(E,M);return E.vars=A,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([L,x])=>{E[L]=x}),E.generateThemeVars=k,E.generateStyleSheets=V,E.generateSpacing=function(){return Ft.createSpacing(d.spacing,Tc(this))},E.getColorSchemeSelector=c1(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...ws,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(x){return sr({sx:x,theme:this})},E.toRuntimeSource=im,E}function Xd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Mc({...n===!0?{}:n.palette,mode:t})})}function _1(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 Ol(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Ol({...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},Xd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Xd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),N1({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Oc=_1(),Xi="$$material";function Qi(){const e=Ft.useTheme(Oc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[Xi]||e}function cm(e){return b.jsx(Ft.GlobalStyles,{...e,defaultTheme:Oc,themeId:Xi})}process.env.NODE_ENV!=="production"&&(cm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function um(e,t=""){return e.displayName||e.name||t}function Qd(e,t,n){const o=um(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function j1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return um(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ro.ForwardRef:return Qd(e,e.render,"ForwardRef");case Ro.Memo:return Qd(e,e.type,"memo");default:return}}}function L1(e){const{variants:t,...n}=e,o={variants:t,style:Mo(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Mo(r.style))}),o}const $1=sm();function Hn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Co(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function V1(e){return e?(t,n)=>n[e]:null}function F1(e,t,n){e.theme=U1(e.theme)?n:e.theme[t]||e.theme}function ai(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>ai(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?Co(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?Co(Mo(a),n):a}return dm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Co(Mo(o.style),n):o.style:n?Co(Mo(o),n):o}function dm(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?Co(Mo(l.style(r)),o):l.style(r))):n.push(o?Co(Mo(l.style),o):l.style)}return n}function B1(e={}){const{themeId:t,defaultTheme:n=$1,rootShouldForwardProp:o=Hn,slotShouldForwardProp:r=Hn}=e;function i(l){F1(l,t,n)}return(l,c={})=>{Ux(l,E=>E.filter(M=>M!==sr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=V1(fm(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 C=Hn;d==="Root"||d==="root"?C=o:d?C=r:H1(l)&&(C=void 0);const S=Wx(l,{shouldForwardProp:C,label:W1(u,d),...m}),w=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(A){return ai(A,E,A.theme.modularCssLayers?g:void 0)};if(hn(E)){const M=L1(E);return function(k){return M.variants?ai(k,M,k.theme.modularCssLayers?g:void 0):k.theme.modularCssLayers?Co(M.style,g):M.style}}return E},T=(...E)=>{const M=[],A=E.map(w),k=[];if(M.push(i),u&&h&&k.push(function(j){var N,B;const I=(B=(N=j.theme.components)==null?void 0:N[u])==null?void 0:B.styleOverrides;if(!I)return null;const D={};for(const F in I)D[F]=ai(j,I[F],j.theme.modularCssLayers?"theme":void 0);return h(j,D)}),u&&!y&&k.push(function(j){var D,N;const O=j.theme,I=(N=(D=O==null?void 0:O.components)==null?void 0:D[u])==null?void 0:N.variants;return I?dm(j,I,[],j.theme.modularCssLayers?"theme":void 0):null}),v||k.push(sr),Array.isArray(A[0])){const x=A.shift(),j=new Array(M.length).fill(""),O=new Array(k.length).fill("");let I;I=[...j,...x,...O],I.raw=[...j,...x.raw,...O],M.unshift(I)}const V=[...M,...A,...k],L=S(...V);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=z1(u,d,l)),L};return S.withConfig&&(T.withConfig=S.withConfig),T}}function z1(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${j1(n)})`}function W1(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${fm(t||"Root")}`),n}function U1(e){for(const t in e)return!1;return!0}function H1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function pm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cn=e=>pm(e)&&e!=="classes",ye=B1({themeId:Xi,defaultTheme:Oc,rootShouldForwardProp:cn});function Y1(e){return function(n){return b.jsx(cm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function q1(){return Cx}const qe=Ft.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Le(e){return Xx(e)}function Ce(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function G1(e){return Te("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const K1=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,G1,o)},Z1=ye("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)}`]]}})(qe(({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}}]}})),bi=P.forwardRef(function(t,n){const o=Le({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=K1(g);return b.jsxs(Z1,{as:l,className:ge(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"&&(bi.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});bi.muiName="SvgIcon";function ft(e,t){function n(o,r){return b.jsx(bi,{"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=bi.muiName,P.memo(P.forwardRef(n))}function hm(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 Kr(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 Ct(e){return e&&e.ownerDocument||document}function kn(e){return Ct(e).defaultView||window}function Jd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function X1(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 Gn(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
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 pe(e){const t=P.useRef(e);return St(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function je(...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 K1(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Z1(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{K1(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=ge(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=ge(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 X1=ft(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Q1=ft(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),J1=ft(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"),eS=(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)},tS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},nS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},oS=(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)},rS="_modal_1ktm2_1",sS="_content_1ktm2_67",iS="_contentWrapper_1ktm2_74",aS="_closeButton_1ktm2_81",lS="_header_1ktm2_93",cS="_title_1ktm2_100",uS="_description_1ktm2_109",dS="_filtersContent_1ktm2_118",fS="_filterGroup_1ktm2_128",pS="_expandableHeader_1ktm2_135",hS="_expandableLabel_1ktm2_145",mS="_chevronIcon_1ktm2_153",gS="_chevron_1ktm2_153",yS="_filterItems_1ktm2_166",bS="_filterItem_1ktm2_166",vS="_filterItemSize1_1ktm2_178",xS="_filterItemSize2_1ktm2_182",SS="_filterItemSize3_1ktm2_186",wS="_filterItemSize4_1ktm2_190",CS="_filterItemSize5_1ktm2_194",TS="_filterItemSize6_1ktm2_198",PS="_filterInput_1ktm2_202",ES="_inputLabel_1ktm2_206",MS="_select_1ktm2_210",OS="_placeholder_1ktm2_227",kS="_helperText_1ktm2_231",DS="_footer_1ktm2_238",RS="_clearButton_1ktm2_245",IS="_applyButton_1ktm2_267",Ye={modal:rS,content:sS,contentWrapper:iS,closeButton:aS,header:lS,title:cS,description:uS,filtersContent:dS,filterGroup:fS,expandableHeader:pS,expandableLabel:hS,chevronIcon:mS,chevron:gS,filterItems:yS,filterItem:bS,filterItemSize1:vS,filterItemSize2:xS,filterItemSize3:SS,filterItemSize4:wS,filterItemSize5:CS,filterItemSize6:TS,filterInput:PS,inputLabel:ES,select:MS,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:OS,helperText:kS,footer:DS,clearButton:RS,applyButton:IS},fm=({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=H.useTheme(),g=m.palette.mode==="dark",y=H.useMediaQuery(m.breakpoints.down("md")),[v,C]=L.useState(a??[]),x=!!r;L.useEffect(()=>{C(a??[])},[a]);const S=eS(v,l),T=tS(v,c,C),E=(M,A)=>{var w;const O=oS(A,M.id,v,C),V=M.size||6,j=Ye[`filterItemSize${V}`];if(M.render)return b.jsx(H.Box,{className:`${Ye.filterItem} ${j}`,children:M.render(M,O)},M.id);switch(M.type){case"select":case"multi-select":const N=M.type==="multi-select";let R;N?M.value!==void 0&&M.value!==null?R=Array.isArray(M.value)?M.value:[M.value]:R=[]:R=M.value!==void 0&&M.value!==null?M.value:"";const I=N?Array.isArray(R)&&R.length>0:R!==""&&R!==null&&R!==void 0;return b.jsx(H.Box,{className:`${Ye.filterItem} ${j}`,children:b.jsxs(H.FormControl,{fullWidth:!0,className:Ye.filterInput,children:[b.jsx(H.InputLabel,{id:`${M.id}-label`,className:Ye.inputLabel,shrink:I,children:M.label}),b.jsx(H.Select,{labelId:`${M.id}-label`,value:R,onChange:D=>O(D.target.value),multiple:N,label:M.label,className:Ye.select,displayEmpty:!0,renderValue:D=>{var F;if(N){const B=Array.isArray(D)?D:[];return B.length===0?b.jsx(H.Box,{component:"span",style:{opacity:0},children:M.label}):B.map(k=>{var W,K;return((K=(W=M.options)==null?void 0:W.find(G=>G.value===k))==null?void 0:K.label)||k}).join(", ")}if(!D||D==="")return b.jsx(H.Box,{component:"span",style:{opacity:0},children:M.label});const _=(F=M.options)==null?void 0:F.find(B=>B.value===D);return(_==null?void 0:_.label)||D},notched:I,children:(w=M.options)==null?void 0:w.map(D=>b.jsx(H.MenuItem,{value:D.value,children:D.label},D.value))}),M.helperText&&b.jsx(H.Box,{className:Ye.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(H.Box,{className:`${Ye.filterItem} ${j}`,children:b.jsx(H.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:D=>O(D.target.value),className:Ye.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ye.helperText}})},M.id);default:return null}};return b.jsx(H.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ye.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(H.DialogContent,{className:Ye.content,children:b.jsxs(H.Box,{className:Ye.contentWrapper,children:[b.jsx(H.IconButton,{className:Ye.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(J1,{})}),b.jsxs(H.Box,{className:Ye.header,children:[b.jsx(H.Box,{className:Ye.title,children:n}),b.jsx(H.Box,{className:Ye.description,children:o})]}),b.jsx(H.Box,{className:Ye.filtersContent,children:x?r:v.map(M=>{const A=nS(M.id,v,C),O=M.expanded!==!1;return b.jsxs(H.Box,{className:Ye.filterGroup,children:[b.jsxs(H.Box,{className:Ye.expandableHeader,onClick:A,children:[b.jsx(H.Box,{className:Ye.expandableLabel,children:M.label}),b.jsx(H.Box,{className:Ye.chevronIcon,children:O?b.jsx(Q1,{className:Ye.chevron}):b.jsx(X1,{className:Ye.chevron})})]}),O&&b.jsx(H.Box,{className:Ye.filterItems,children:M.items.map(V=>E(V,M.id))})]},M.id)})}),b.jsxs(H.Box,{className:Ye.footer,children:[b.jsx(H.Button,{onClick:T,className:Ye.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(H.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:S,className:Ye.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};fm.displayName="FilterModal";const AS="_container_1hyey_1",NS="_card_1hyey_7",_S="_icon_1hyey_18",jS="_text_1hyey_32",Ws={container:AS,card:NS,icon:_S,text:jS},LS=({items:e,className:t,sx:n})=>{const o=H.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(H.Box,{className:`${Ws.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(H.Box,{className:Ws.card,sx:r,children:[l.icon&&b.jsx(H.Box,{className:Ws.icon,sx:i,children:l.icon}),b.jsxs(H.Typography,{component:"span",className:Ws.text,sx:a,children:[l.count," ",l.label]})]},c))})},Oc=L.createContext({});function kc(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}const pm=typeof window<"u",hm=pm?L.useLayoutEffect:L.useEffect,Ji=L.createContext(null);function Dc(e,t){e.indexOf(t)===-1&&e.push(t)}function Rc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const vn=(e,t,n)=>n>t?t:n<e?e:n;function kl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let mr=()=>{},Dn=()=>{};var jh;typeof process<"u"&&((jh=process.env)==null?void 0:jh.NODE_ENV)!=="production"&&(mr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(kl(t,n))},Dn=(e,t,n)=>{if(!e)throw new Error(kl(t,n))});const Rn={},mm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gm(e){return typeof e=="object"&&e!==null}const ym=e=>/^0[^.\s]+$/u.test(e);function Ic(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kt=e=>e,$S=(e,t)=>n=>t(e(n)),Cs=(...e)=>e.reduce($S),as=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Ac{constructor(){this.subscriptions=[]}add(t){return Dc(this.subscriptions,t),()=>Rc(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 mn=e=>e*1e3,Gt=e=>e/1e3;function bm(e,t){return t?e*(1e3/t):0}const Jd=new Set;function Nc(e,t,n){e||Jd.has(t)||(console.warn(kl(t,n)),Jd.add(t))}const vm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VS=1e-7,FS=12;function BS(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=vm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>VS&&++l<FS);return a}function Ts(e,t,n,o){if(e===t&&n===o)return Kt;const r=i=>BS(i,0,1,e,n);return i=>i===0||i===1?i:vm(r(i),t,o)}const xm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sm=e=>t=>1-e(1-t),wm=Ts(.33,1.53,.69,.99),_c=Sm(wm),Cm=xm(_c),Tm=e=>(e*=2)<1?.5*_c(e):.5*(2-Math.pow(2,-10*(e-1))),jc=e=>1-Math.sin(Math.acos(e)),Pm=Sm(jc),Em=xm(jc),zS=Ts(.42,0,1,1),WS=Ts(0,0,.58,1),Mm=Ts(.42,0,.58,1),US=e=>Array.isArray(e)&&typeof e[0]!="number",Om=e=>Array.isArray(e)&&typeof e[0]=="number",ef={linear:Kt,easeIn:zS,easeInOut:Mm,easeOut:WS,circIn:jc,circInOut:Em,circOut:Pm,backIn:_c,backInOut:Cm,backOut:wm,anticipate:Tm},HS=e=>typeof e=="string",tf=e=>{if(Om(e)){Dn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Ts(t,n,o,r)}else if(HS(e))return Dn(ef[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ef[e];return e},Us=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function YS(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 qS=40;function km(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Us.reduce((x,S)=>(x[S]=YS(i),x),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const x=Rn.useManualTiming?r.timestamp:performance.now();n=!1,Rn.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(x-r.timestamp,qS),1)),r.timestamp=x,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:Us.reduce((x,S)=>{const T=a[S];return x[S]=(E,M=!1,A=!1)=>(n||y(),T.schedule(E,M,A)),x},{}),cancel:x=>{for(let S=0;S<Us.length;S++)a[Us[S]].cancel(x)},state:r,steps:a}}const{schedule:Qe,cancel:Kn,state:Pt,steps:Wa}=km(typeof requestAnimationFrame<"u"?requestAnimationFrame:Kt,!0);let li;function GS(){li=void 0}const At={now:()=>(li===void 0&&At.set(Pt.isProcessing||Rn.useManualTiming?Pt.timestamp:performance.now()),li),set:e=>{li=e,queueMicrotask(GS)}},Dm=e=>t=>typeof t=="string"&&t.startsWith(e),Rm=Dm("--"),KS=Dm("var(--"),Lc=e=>KS(e)?ZS.test(e.split("/*")[0].trim()):!1,ZS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function nf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...gr,transform:e=>vn(0,1,e)},Hs={...gr,default:1},Zr=e=>Math.round(e*1e5)/1e5,$c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XS(e){return e==null}const QS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vc=(e,t)=>n=>!!(typeof n=="string"&&QS.test(n)&&n.startsWith(e)||t&&!XS(n)&&Object.prototype.hasOwnProperty.call(n,t)),Im=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match($c);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},JS=e=>vn(0,255,e),Ua={...gr,transform:e=>Math.round(JS(e))},Co={test:Vc("rgb","red"),parse:Im("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ua.transform(e)+", "+Ua.transform(t)+", "+Ua.transform(n)+", "+Zr(ls.transform(o))+")"};function ew(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 Dl={test:Vc("#"),parse:ew,transform:Co.transform},Ps=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ln=Ps("deg"),gn=Ps("%"),ve=Ps("px"),tw=Ps("vh"),nw=Ps("vw"),of={...gn,parse:e=>gn.parse(e)/100,transform:e=>gn.transform(e*100)},Yo={test:Vc("hsl","hue"),parse:Im("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+gn.transform(Zr(t))+", "+gn.transform(Zr(n))+", "+Zr(ls.transform(o))+")"},gt={test:e=>Co.test(e)||Dl.test(e)||Yo.test(e),parse:e=>Co.test(e)?Co.parse(e):Yo.test(e)?Yo.parse(e):Dl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Co.transform(e):Yo.transform(e),getAnimatableNone:e=>{const t=gt.parse(e);return t.alpha=0,gt.transform(t)}},ow=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match($c))==null?void 0:t.length)||0)+(((n=e.match(ow))==null?void 0:n.length)||0)>0}const Am="number",Nm="color",sw="var",iw="var(",rf="${}",aw=/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(aw,c=>(gt.test(c)?(o.color.push(i),r.push(Nm),n.push(gt.parse(c))):c.startsWith(iw)?(o.var.push(i),r.push(sw),n.push(c)):(o.number.push(i),r.push(Am),n.push(parseFloat(c))),++i,rf)).split(rf);return{values:n,split:l,indexes:o,types:r}}function _m(e){return cs(e).values}function jm(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===Am?i+=Zr(r[a]):l===Nm?i+=gt.transform(r[a]):i+=r[a]}return i}}const lw=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e;function cw(e){const t=_m(e);return jm(e)(t.map(lw))}const Zn={test:rw,parse:_m,createTransformer:jm,getAnimatableNone:cw};function Ha(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 uw({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=Ha(c,l,e+1/3),i=Ha(c,l,e),a=Ha(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function vi(e,t){return n=>n>0?t:e}const st=(e,t,n)=>e+(t-e)*n,Ya=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},dw=[Dl,Co,Yo],fw=e=>dw.find(t=>t.test(e));function sf(e){const t=fw(e);if(mr(!!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===Yo&&(n=uw(n)),n}const af=(e,t)=>{const n=sf(e),o=sf(t);if(!n||!o)return vi(e,t);const r={...n};return i=>(r.red=Ya(n.red,o.red,i),r.green=Ya(n.green,o.green,i),r.blue=Ya(n.blue,o.blue,i),r.alpha=st(n.alpha,o.alpha,i),Co.transform(r))},Rl=new Set(["none","hidden"]);function pw(e,t){return Rl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hw(e,t){return n=>st(e,t,n)}function Fc(e){return typeof e=="number"?hw:typeof e=="string"?Lc(e)?vi:gt.test(e)?af:yw:Array.isArray(e)?Lm:typeof e=="object"?gt.test(e)?af:mw:vi}function Lm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Fc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function mw(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Fc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function gw(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 yw=(e,t)=>{const n=Zn.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?Rl.has(e)&&!r.values.length||Rl.has(t)&&!o.values.length?pw(e,t):Cs(Lm(gw(o,r),r.values),n):(mr(!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"),vi(e,t))};function $m(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?st(e,t,n):Fc(e)(e,t)}const bw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Qe.update(t,n),stop:()=>Kn(t),now:()=>Pt.isProcessing?Pt.timestamp:At.now()}},Vm=(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)})`},xi=2e4;function Bc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<xi;)t+=n,o=e.next(t);return t>=xi?1/0:t}function vw(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(Bc(o),xi);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Gt(r)}}const xw=5;function Fm(e,t,n){const o=Math.max(t-xw,0);return bm(n-e(o),t-o)}const rt={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},qa=.001;function Sw({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:o=rt.mass}){let r,i;mr(e<=mn(rt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=vn(rt.minDamping,rt.maxDamping,a),e=vn(rt.minDuration,rt.maxDuration,Gt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Il(u,a),m=Math.exp(-f);return qa-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=Il(Math.pow(u,2),a);return(-r(u)+qa>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-qa+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=Cw(r,i,l);if(e=mn(e),isNaN(c))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const ww=12;function Cw(e,t,n){let o=n;for(let r=1;r<ww;r++)o=o-e(o)/t(o);return o}function Il(e,t){return e*Math.sqrt(1-t*t)}const Tw=["duration","bounce"],Pw=["stiffness","damping","mass"];function lf(e,t){return t.some(n=>e[n]!==void 0)}function Ew(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!lf(e,Pw)&&lf(e,Tw))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*vn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:rt.mass,stiffness:r,damping:i}}else{const n=Sw(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function Si(e=rt.visualDuration,t=rt.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}=Ew({...n,velocity:-Gt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Gt(Math.sqrt(c/d)),C=Math.abs(y)<5;o||(o=C?rt.restSpeed.granular:rt.restSpeed.default),r||(r=C?rt.restDelta.granular:rt.restDelta.default);let x;if(g<1){const T=Il(v,g);x=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)x=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);x=E=>{const M=Math.exp(-g*v*E),A=Math.min(T*E,300);return a-M*((m+g*v*y)*Math.sinh(A)+T*y*Math.cosh(A))/T}}const S={calculatedDuration:h&&f||null,next:T=>{const E=x(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?mn(m):Fm(x,T,E));const A=Math.abs(M)<=o,O=Math.abs(a-E)<=r;l.done=A&&O}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(Bc(S),xi),E=Vm(M=>S.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return S}Si.applyToOptions=e=>{const t=vw(e,100,Si);return e.ease=t.ease,e.duration=mn(t.duration),e.type="keyframes",e};function Al({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=A=>l!==void 0&&A<l||c!==void 0&&A>c,m=A=>l===void 0?c:c===void 0||Math.abs(l-A)<Math.abs(c-A)?l:c;let g=n*t;const y=f+g,v=a===void 0?y:a(y);v!==y&&(g=v-f);const C=A=>-g*Math.exp(-A/o),x=A=>v+C(A),S=A=>{const O=C(A),V=x(A);p.done=Math.abs(O)<=u,p.value=p.done?v:V};let T,E;const M=A=>{h(p.value)&&(T=A,E=Si({keyframes:[p.value,m(p.value)],velocity:Fm(x,A,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:A=>{let O=!1;return!E&&T===void 0&&(O=!0,S(A),M(A)),T!==void 0&&A>=T?E.next(A-T):(!O&&S(A),p)}}}function Mw(e,t,n){const o=[],r=n||Rn.mix||$m,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]||Kt:t;l=Cs(c,l)}o.push(l)}return o}function Ow(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Dn(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=Mw(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=as(e[f],e[f+1],d);return l[f](p)};return n?d=>u(vn(e[0],e[i-1],d)):u}function kw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=as(0,t,o);e.push(st(n,1,r))}}function Dw(e){const t=[0];return kw(t,e.length-1),t}function Rw(e,t){return e.map(n=>n*t)}function Iw(e,t){return e.map(()=>t||Mm).splice(0,e.length-1)}function qo({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=US(o)?o.map(tf):tf(o),i={done:!1,value:t[0]},a=Rw(n&&n.length===t.length?n:Dw(t),e),l=Ow(a,t,{ease:Array.isArray(r)?r:Iw(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const Aw=e=>e!==null;function zc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(Aw),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Nw={decay:Al,inertia:Al,tween:qo,keyframes:qo,spring:Si};function Bm(e){typeof e.type=="string"&&(e.type=Nw[e.type])}class Wc{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 _w=e=>e/100;class Uc extends Wc{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!==At.now()&&this.tick(At.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;Bm(t);const{type:n=qo,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||qo;process.env.NODE_ENV!=="production"&&c!==qo&&Dn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==qo&&typeof l[0]!="number"&&(this.mixKeyframes=Cs(_w,$m(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=Bc(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),C=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,S=o;if(f){const A=Math.min(this.currentTime,r)/l;let O=Math.floor(A),V=A%1;!V&&A>=1&&(V=1),V===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(S=a)),x=vn(0,1,V)*l}const T=C?{done:!1,value:d[0]}:S.next(x);i&&(T.value=i(T.value));let{done:E}=T;!C&&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!==Al&&(T.value=zc(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 Gt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Gt(t)}get time(){return Gt(this.currentTime)}set time(t){var n;t=mn(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(At.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Gt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=bw,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(At.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 jw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const To=e=>e*180/Math.PI,Nl=e=>{const t=To(Math.atan2(e[1],e[0]));return _l(t)},Lw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Nl,rotateZ:Nl,skewX:e=>To(Math.atan(e[1])),skewY:e=>To(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_l=e=>(e=e%360,e<0&&(e+=360),e),cf=Nl,uf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),df=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$w={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uf,scaleY:df,scale:e=>(uf(e)+df(e))/2,rotateX:e=>_l(To(Math.atan2(e[6],e[5]))),rotateY:e=>_l(To(Math.atan2(-e[2],e[0]))),rotateZ:cf,rotate:cf,skewX:e=>To(Math.atan(e[4])),skewY:e=>To(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function jl(e){return e.includes("scale")?1:0}function Ll(e,t){if(!e||e==="none")return jl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=$w,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Lw,r=l}if(!r)return jl(t);const i=o[t],a=r[1].split(",").map(Fw);return typeof i=="function"?i(a):a[i]}const Vw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ll(n,t)};function Fw(e){return parseFloat(e.trim())}const yr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],br=new Set(yr),ff=e=>e===gr||e===ve,Bw=new Set(["x","y","z"]),zw=yr.filter(e=>!Bw.has(e));function Ww(e){const t=[];return zw.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Wn={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})=>Ll(t,"x"),y:(e,{transform:t})=>Ll(t,"y")};Wn.translateX=Wn.x;Wn.translateY=Wn.y;const Mo=new Set;let $l=!1,Vl=!1,Fl=!1;function zm(){if(Vl){const e=Array.from(Mo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Ww(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)})}Vl=!1,$l=!1,Mo.forEach(e=>e.complete(Fl)),Mo.clear()}function Wm(){Mo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vl=!0)})}function Uw(){Fl=!0,Wm(),zm(),Fl=!1}class Hc{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?(Mo.add(this),$l||($l=!0,Qe.read(Wm),Qe.resolveKeyframes(zm))):(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])}jw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Mo.delete(this)}cancel(){this.state==="scheduled"&&(Mo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Hw=e=>e.startsWith("--");function Yw(e,t,n){Hw(t)?e.style.setProperty(t,n):e.style[t]=n}const qw=Ic(()=>window.ScrollTimeline!==void 0),Gw={};function Kw(e,t){const n=Ic(e);return()=>Gw[t]??n()}const Um=Kw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Br=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,pf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Br([0,.65,.55,1]),circOut:Br([.55,0,1,.45]),backIn:Br([.31,.01,.66,-.59]),backOut:Br([.33,1.53,.69,.99])};function Hm(e,t){if(e)return typeof e=="function"?Um()?Vm(e,t):"ease-out":Om(e)?Br(e):Array.isArray(e)?e.map(n=>Hm(n,t)||pf.easeOut):pf[e]}function Zw(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=Hm(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 Ym(e){return typeof e=="function"&&"applyToOptions"in e}function Xw({type:e,...t}){return Ym(e)&&Um()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Qw extends Wc{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,Dn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Xw(t);this.animation=Zw(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=zc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):Yw(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 Gt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Gt(t)}get time(){return Gt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mn(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&&qw()?(this.animation.timeline=t,Kt):n(this)}}const qm={anticipate:Tm,backInOut:Cm,circInOut:Em};function Jw(e){return e in qm}function eC(e){typeof e.ease=="string"&&Jw(e.ease)&&(e.ease=qm[e.ease])}const Ga=10;class tC extends Qw{constructor(t){eC(t),Bm(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 Uc({...a,autoplay:!1}),c=Math.max(Ga,At.now()-this.startTime),u=vn(0,Ga,c-Ga);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const hf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zn.test(e)||e==="0")&&!e.startsWith("url("));function nC(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 oC(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=hf(r,t),l=hf(i,t);return mr(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:nC(e)||(n==="spring"||Ym(n))&&o}function Bl(e){e.duration=0,e.type="keyframes"}const rC=new Set(["opacity","clipPath","filter","transform"]),sC=Ic(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iC(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 sC()&&n&&rC.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const aC=40;class lC extends Wc{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=At.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)||Hc;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=At.now(),oC(t,i,a,l)||((Rn.instantAnimations||!c)&&(d==null||d(zc(t,o,n))),t[0]=t[t.length-1],Bl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>aC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&iC(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new tC({...p,element:m}):new Uc(p);g.finished.then(()=>{this.notifyFinished()}).catch(Kt),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(),Uw()),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 Gm(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 cC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uC(e){const t=cC.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const dC=4;function Km(e,t,n=1){Dn(n<=dC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=uC(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return mm(a)?parseFloat(a):a}return Lc(r)?Km(r,t,n+1):r}const fC={type:"spring",stiffness:500,damping:25,restSpeed:10},pC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hC={type:"keyframes",duration:.8},mC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gC=(e,{keyframes:t})=>t.length>2?hC:br.has(e)?e.startsWith("scale")?pC(t[1]):fC:mC,yC=e=>e!==null;function bC(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(yC),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function Yc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function vC({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 qc=(e,t,n,o={},r,i)=>a=>{const l=Yc(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-mn(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};vC(l)||Object.assign(d,gC(e,d)),d.duration&&(d.duration=mn(d.duration)),d.repeatDelay&&(d.repeatDelay=mn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Bl(d),d.delay===0&&(f=!0)),(Rn.instantAnimations||Rn.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,Bl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=bC(d.keyframes,l);if(p!==void 0){Qe.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Uc(d):new lC(d)};function mf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Gc(e,t,n,o){if(typeof t=="function"){const[r,i]=mf(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]=mf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function er(e,t,n){const o=e.getProps();return Gc(o,t,n!==void 0?n:o.custom,e)}const Zm=new Set(["width","height","top","left","right","bottom",...yr]),gf=30,xC=e=>!isNaN(parseFloat(e));class SC{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=At.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=At.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Nc(!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 Ac);const o=this.events[t].add(n);return t==="change"?()=>{o(),Qe.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=At.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gf);return bm(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 sr(e,t){return new SC(e,t)}const zl=e=>Array.isArray(e);function wC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sr(n))}function CC(e){return zl(e)?e[e.length-1]||0:e}function TC(e,t){const n=er(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=CC(i[a]);wC(e,a,l)}}const kt=e=>!!(e&&e.getVelocity);function PC(e){return!!(kt(e)&&e.add)}function Wl(e,t){const n=e.getValue("willChange");if(PC(n))return n.add(t);if(!n&&Rn.WillChange){const o=new Rn.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Kc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const EC="framerAppearId",Xm="data-"+Kc(EC);function Qm(e){return e.props[Xm]}function MC({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Jm(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&&MC(d,f))continue;const m={delay:n,...Yc(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 x=Qm(e);if(x){const S=window.MotionHandoffAnimation(x,f,Qe);S!==null&&(m.startTime=S,y=!0)}}Wl(e,f);const v=c??e.shouldReduceMotion;p.start(qc(f,p,h,v&&Zm.has(f)?{type:!1}:m,e,y));const C=p.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{Qe.update(()=>{a&&TC(e,a)})}),u}function Ul(e,t,n={}){var c;const o=er(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(Jm(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return OC(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 OC(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(Ul(c,t,{...a,delay:n+(typeof o=="function"?0:o)+Gm(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function kC(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Ul(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Ul(e,t,n);else{const r=typeof t=="function"?er(e,t,n.custom):t;o=Promise.all(Jm(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const DC={test:e=>e==="auto",parse:e=>e},eg=e=>t=>t.test(e),tg=[gr,ve,gn,Ln,nw,tw,DC],yf=e=>tg.find(eg(e));function RC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ym(e):!0}const IC=new Set(["brightness","contrast","saturate","opacity"]);function AC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match($c)||[];if(!o)return e;const r=n.replace(o,"");let i=IC.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const NC=/\b([a-z-]*)\(.*?\)/gu,Hl={...Zn,getAnimatableNone:e=>{const t=e.match(NC);return t?t.map(AC).join(" "):e}},bf={...gr,transform:Math.round},_C={rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:Hs,scaleX:Hs,scaleY:Hs,scaleZ:Hs,skew:Ln,skewX:Ln,skewY:Ln,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:ls,originX:of,originY:of,originZ:ve},Zc={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,inset:ve,insetBlock:ve,insetBlockStart:ve,insetBlockEnd:ve,insetInline:ve,insetInlineStart:ve,insetInlineEnd:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,paddingBlock:ve,paddingBlockStart:ve,paddingBlockEnd:ve,paddingInline:ve,paddingInlineStart:ve,paddingInlineEnd:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,marginBlock:ve,marginBlockStart:ve,marginBlockEnd:ve,marginInline:ve,marginInlineStart:ve,marginInlineEnd:ve,fontSize:ve,backgroundPositionX:ve,backgroundPositionY:ve,..._C,zIndex:bf,fillOpacity:ls,strokeOpacity:ls,numOctaves:bf},jC={...Zc,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Hl,WebkitFilter:Hl},ng=e=>jC[e];function og(e,t){let n=ng(e);return n!==Hl&&(n=Zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const LC=new Set(["auto","none","0"]);function $C(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!LC.has(i)&&cs(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=og(n,r)}class VC extends Hc{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(),Lc(f))){const p=Km(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Zm.has(o)||t.length!==2)return;const[r,i]=t,a=yf(r),l=yf(i),c=nf(r),u=nf(i);if(c!==u&&Wn[o]){this.needsMeasurement=!0;return}if(a!==l)if(ff(a)&&ff(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Wn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||RC(t[r]))&&o.push(r);o.length&&$C(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=Wn[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]=Wn[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 FC(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 rg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Yl(e){return gm(e)&&"offsetHeight"in e}const{schedule:Xc}=km(queueMicrotask,!1),an={x:!1,y:!1};function sg(){return an.x||an.y}function BC(e){return e==="x"||e==="y"?an[e]?null:(an[e]=!0,()=>{an[e]=!1}):an.x||an.y?null:(an.x=an.y=!0,()=>{an.x=an.y=!1})}function ig(e,t){const n=FC(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function vf(e){return!(e.pointerType==="touch"||sg())}function zC(e,t,n={}){const[o,r,i]=ig(e,n),a=l=>{if(!vf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{vf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const ag=(e,t)=>t?e===t?!0:ag(e,t.parentElement):!1,Qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,WC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lg(e){return WC.has(e.tagName)||e.isContentEditable===!0}const ci=new WeakSet;function xf(e){return t=>{t.key==="Enter"&&e(t)}}function Ka(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const UC=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=xf(()=>{if(ci.has(n))return;Ka(n,"down");const r=xf(()=>{Ka(n,"up")}),i=()=>Ka(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 Qc(e)&&!sg()}function HC(e,t,n={}){const[o,r,i]=ig(e,n),a=l=>{const c=l.currentTarget;if(!Sf(l))return;ci.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),ci.has(c)&&ci.delete(c),Sf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||ag(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),Yl(l)&&(l.addEventListener("focus",u=>UC(u,r)),!lg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function cg(e){return gm(e)&&"ownerSVGElement"in e}function YC(e){return cg(e)&&e.tagName==="svg"}const qC=[...tg,gt,Zn],GC=e=>qC.find(eg(e)),wf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Go=()=>({x:wf(),y:wf()}),Cf=()=>({min:0,max:0}),vt=()=>({x:Cf(),y:Cf()}),ql={current:null},ug={current:!1},KC=typeof window<"u";function ZC(){if(ug.current=!0,!!KC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ql.current=e.matches;e.addEventListener("change",t),t()}else ql.current=!1}const XC=new WeakMap;function ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function us(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eu=["initial",...Jc];function ta(e){return ea(e.animate)||eu.some(t=>us(e[t]))}function dg(e){return!!(ta(e)||e.variants)}function QC(e,t,n){for(const o in t){const r=t[o],i=n[o];if(kt(r))e.addValue(o,r);else if(kt(i))e.addValue(o,sr(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,sr(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Tf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wi={};function fg(e){wi=e}function JC(){return wi}class eT{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=Hc,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=At.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Qe.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=ta(n),this.isVariantNode=dg(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&&kt(m)&&m.set(u[h])}}mount(t){var n;this.current=t,XC.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:(ug.current||ZC(),this.shouldReduceMotion=ql.current),process.env.NODE_ENV!=="production"&&Nc(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(),Kn(this.notifyUpdate),Kn(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=br.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Qe.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 wi){const n=wi[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):vt()}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<Tf.length;o++){const r=Tf[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=QC(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=sr(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"&&(mm(o)||ym(o))?o=parseFloat(o):!GC(o)&&Zn.test(n)&&(o=og(t,n)),this.setBaseTarget(t,kt(o)?o.get():o)),kt(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=Gc(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&&!kt(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 Ac),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Xc.render(this.render)}}class pg extends eT{constructor(){super(...arguments),this.KeyframeResolver=VC}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;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class to{constructor(t){this.isMounted=!1,this.node=t}update(){}}function hg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function tT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nT(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 Za(e){return e===void 0||e===1}function Gl({scale:e,scaleX:t,scaleY:n}){return!Za(e)||!Za(t)||!Za(n)}function vo(e){return Gl(e)||mg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mg(e){return Pf(e.x)||Pf(e.y)}function Pf(e){return e&&e!=="0%"}function Ci(e,t,n){const o=e-n,r=t*o;return n+r}function Ef(e,t,n,o,r){return r!==void 0&&(e=Ci(e,r,o)),Ci(e,n,o)+t}function Kl(e,t=0,n=1,o,r){e.min=Ef(e.min,t,n,o,r),e.max=Ef(e.max,t,n,o,r)}function gg(e,{x:t,y:n}){Kl(e.x,t.translate,t.scale,t.originPoint),Kl(e.y,n.translate,n.scale,n.originPoint)}const Mf=.999999999999,Of=1.0000000000001;function oT(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&&Zo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gg(e,a)),o&&vo(i.latestValues)&&Zo(e,i.latestValues))}t.x<Of&&t.x>Mf&&(t.x=1),t.y<Of&&t.y>Mf&&(t.y=1)}function Ko(e,t){e.min=e.min+t,e.max=e.max+t}function kf(e,t,n,o,r=.5){const i=st(e.min,e.max,r);Kl(e,t,n,i,o)}function Zo(e,t){kf(e.x,t.x,t.scaleX,t.scale,t.originX),kf(e.y,t.y,t.scaleY,t.scale,t.originY)}function yg(e,t){return hg(nT(e.getBoundingClientRect(),t))}function rT(e,t,n){const o=yg(e,n),{scroll:r}=t;return r&&(Ko(o.x,r.offset.x),Ko(o.y,r.offset.y)),o}const sT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iT=yr.length;function aT(e,t,n){let o="",r=!0;for(let i=0;i<iT;i++){const a=yr[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=rg(l,Zc[a]);if(!c){r=!1;const d=sT[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function tu(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(br.has(c)){a=!0;continue}else if(Rm(c)){r[c]=u;continue}else{const d=rg(u,Zc[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=aT(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 bg(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 Df(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Er={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=Df(e,t.target.x),o=Df(e,t.target.y);return`${n}% ${o}%`}},lT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Zn.parse(e);if(r.length>5)return o;const i=Zn.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=st(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},Zl={borderRadius:{...Er,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Er,borderTopRightRadius:Er,borderBottomLeftRadius:Er,borderBottomRightRadius:Er,boxShadow:lT};function vg(e,{layout:t,layoutId:n}){return br.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zl[e]||e==="opacity")}function nu(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)(kt(o[l])||r&&kt(r[l])||vg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function cT(e){return window.getComputedStyle(e)}class uT extends pg{constructor(){super(...arguments),this.type="html",this.renderInstance=bg}readValueFromInstance(t,n){var o;if(br.has(n))return(o=this.projection)!=null&&o.isProjecting?jl(n):Vw(t,n);{const r=cT(t),i=(Rm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yg(t,n)}build(t,n,o){tu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return nu(t,n,o)}}const dT={offset:"stroke-dashoffset",array:"stroke-dasharray"},fT={offset:"strokeDashoffset",array:"strokeDasharray"};function pT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?dT:fT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const hT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(tu(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 hT)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&&pT(f,r,i,a,!1)}const Sg=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"]),wg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mT(e,t,n,o){bg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Sg.has(r)?r:Kc(r),t.attrs[r])}function Cg(e,t,n){const o=nu(e,t,n);for(const r in e)if(kt(e[r])||kt(t[r])){const i=yr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class gT extends pg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(br.has(n)){const o=ng(n);return o&&o.default||0}return n=Sg.has(n)?n:Kc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Cg(t,n,o)}build(t,n,o){xg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){mT(t,n,o,r)}mount(t){this.isSVGTag=wg(t.tagName),super.mount(t)}}const yT=eu.length;function Tg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Tg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<yT;n++){const o=eu[n],r=e.props[o];(us(r)||r===!1)&&(t[o]=r)}return t}function Pg(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 bT=[...Jc].reverse(),vT=Jc.length;function xT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>kC(e,n,o)))}function ST(e){let t=xT(e),n=Rf(),o=!0;const r=c=>(u,d)=>{var p;const f=er(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=Tg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<vT;y++){const v=bT[y],C=n[v],x=u[v]!==void 0?u[v]:d[v],S=us(x),T=v===c?C.isActive:null;T===!1&&(m=y);let E=x===d[v]&&x!==u[v]&&S;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),C.protectedKeys={...h},!C.isActive&&T===null||!x&&!C.prevProp||ea(x)||typeof x=="boolean")continue;const M=wT(C.prevProp,x);let A=M||v===c&&C.isActive&&!E&&S||y>m&&S,O=!1;const V=Array.isArray(x)?x:[x];let j=V.reduce(r(v),{});T===!1&&(j={});const{prevResolvedValues:w={}}=C,N={...w,...j},R=_=>{A=!0,p.has(_)&&(O=!0,p.delete(_)),C.needsAnimating[_]=!0;const F=e.getValue(_);F&&(F.liveStyle=!1)};for(const _ in N){const F=j[_],B=w[_];if(h.hasOwnProperty(_))continue;let $=!1;zl(F)&&zl(B)?$=!Pg(F,B):$=F!==B,$?F!=null?R(_):p.add(_):F!==void 0&&p.has(_)?R(_):C.protectedKeys[_]=!0}C.prevProp=x,C.prevResolvedValues=j,C.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(A=!1);const I=E&&M;A&&(!I||O)&&f.push(...V.map(_=>{const F={type:v};if(typeof _=="string"&&o&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,$=er(B,_);if(B.enteringChildren&&$){const{delayChildren:k}=$.transition||{};F.delay=Gm(B.enteringChildren,e,k)}}return{animation:_,options:F}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=er(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{const C=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),y[v]=C??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=Rf()}}}function wT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pg(t,e):!1}function ao(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rf(){return{animate:ao(!0),whileInView:ao(),whileHover:ao(),whileTap:ao(),whileDrag:ao(),whileFocus:ao(),exit:ao()}}function If(e,t){e.min=t.min,e.max=t.max}function on(e,t){If(e.x,t.x),If(e.y,t.y)}function Af(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Eg=1e-4,CT=1-Eg,TT=1+Eg,Mg=.01,PT=0-Mg,ET=0+Mg;function Nt(e){return e.max-e.min}function MT(e,t,n){return Math.abs(e-t)<=n}function Nf(e,t,n,o=.5){e.origin=o,e.originPoint=st(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=st(n.min,n.max,e.origin)-e.originPoint,(e.scale>=CT&&e.scale<=TT||isNaN(e.scale))&&(e.scale=1),(e.translate>=PT&&e.translate<=ET||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,o){Nf(e.x,t.x,n.x,o?o.originX:void 0),Nf(e.y,t.y,n.y,o?o.originY:void 0)}function _f(e,t,n){e.min=n.min+t.min,e.max=e.min+Nt(t)}function OT(e,t,n){_f(e.x,t.x,n.x),_f(e.y,t.y,n.y)}function jf(e,t,n){e.min=t.min-n.min,e.max=e.min+Nt(t)}function Ti(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function Lf(e,t,n,o,r){return e-=t,e=Ci(e,1/n,o),r!==void 0&&(e=Ci(e,1/r,o)),e}function kT(e,t=0,n=1,o=.5,r,i=e,a=e){if(gn.test(t)&&(t=parseFloat(t),t=st(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=st(i.min,i.max,o);e===i&&(l-=t),e.min=Lf(e.min,t,n,l,r),e.max=Lf(e.max,t,n,l,r)}function $f(e,t,[n,o,r],i,a){kT(e,t[n],t[o],t[r],t.scale,i,a)}const DT=["x","scaleX","originX"],RT=["y","scaleY","originY"];function Vf(e,t,n,o){$f(e.x,t,DT,n?n.x:void 0,o?o.x:void 0),$f(e.y,t,RT,n?n.y:void 0,o?o.y:void 0)}function Ff(e){return e.translate===0&&e.scale===1}function Og(e){return Ff(e.x)&&Ff(e.y)}function Bf(e,t){return e.min===t.min&&e.max===t.max}function IT(e,t){return Bf(e.x,t.x)&&Bf(e.y,t.y)}function zf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function kg(e,t){return zf(e.x,t.x)&&zf(e.y,t.y)}function Wf(e){return Nt(e.x)/Nt(e.y)}function Uf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ht(e){return[e("x"),e("y")]}function AT(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 Dg=["TopLeft","TopRight","BottomLeft","BottomRight"],NT=Dg.length,Hf=e=>typeof e=="string"?parseFloat(e):e,Yf=e=>typeof e=="number"||ve.test(e);function _T(e,t,n,o,r,i){r?(e.opacity=st(0,n.opacity??1,jT(o)),e.opacityExit=st(t.opacity??1,0,LT(o))):i&&(e.opacity=st(t.opacity??1,n.opacity??1,o));for(let a=0;a<NT;a++){const l=`border${Dg[a]}Radius`;let c=qf(t,l),u=qf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Yf(c)===Yf(u)?(e[l]=Math.max(st(Hf(c),Hf(u),o),0),(gn.test(u)||gn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=st(t.rotate||0,n.rotate||0,o))}function qf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jT=Rg(0,.5,Pm),LT=Rg(.5,.95,Kt);function Rg(e,t,n){return o=>o<e?0:o>t?1:n(as(e,t,o))}function $T(e,t,n){const o=kt(e)?e:sr(e);return o.start(qc("",o,t,n)),o.animation}function ds(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const VT=(e,t)=>e.depth-t.depth;class FT{constructor(){this.children=[],this.isDirty=!1}add(t){Dc(this.children,t),this.isDirty=!0}remove(t){Rc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VT),this.isDirty=!1,this.children.forEach(t)}}function BT(e,t){const n=At.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(Kn(o),e(i-t))};return Qe.setup(o,!0),()=>Kn(o)}function ui(e){return kt(e)?e.get():e}class zT{constructor(){this.members=[]}add(t){Dc(this.members,t),t.scheduleRender()}remove(t){if(Rc(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 di={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xa=["","X","Y","Z"],WT=1e3;let UT=0;function Qa(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Ig(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Qm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qe,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Ig(o)}function Ag({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=UT++,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(qT),this.nodes.forEach(XT),this.nodes.forEach(QT),this.nodes.forEach(GT)},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 FT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Ac),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=cg(a)&&!YC(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;Qe.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=BT(p,250),di.hasAnimatedSinceResize&&(di.hasAnimatedSinceResize=!1,this.nodes.forEach(Zf)))})}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()||oP,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!kg(this.targetLayout,h),C=!f&&p;if(this.options.layoutRoot||this.resumeFrom||C||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Yc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,C)}else f||Zf(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(),Kn(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(JT),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&&Ig(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(Gf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Kf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ZT),this.nodes.forEach(HT),this.nodes.forEach(YT)):this.nodes.forEach(Kf),this.clearAllSnapshots();const l=At.now();Pt.delta=vn(0,1e3/60,l-Pt.timestamp),Pt.timestamp=l,Pt.isProcessing=!0,Wa.update.process(Pt),Wa.preRender.process(Pt),Wa.render.process(Pt),Pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(KT),this.sharedNodes.forEach(eP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(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=vt(),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&&!Og(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||vo(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)),rP(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return vt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(sP))){const{scroll:d}=this.root;d&&(Ko(l.x,d.offset.x),Ko(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=vt();if(on(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&&on(l,a),Ko(l.x,f.offset.x),Ko(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=vt();on(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&&Zo(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vo(d.latestValues)&&Zo(c,d.latestValues)}return vo(this.latestValues)&&Zo(c,this.latestValues),c}removeTransform(a){const l=vt();on(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!vo(u.latestValues))continue;Gl(u.latestValues)&&u.updateSnapshot();const d=vt(),f=u.measurePageBox();on(d,f),Vf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return vo(this.latestValues)&&Vf(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!==Pt.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=Pt.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=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),OT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),gg(this.target,this.targetDelta)):on(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||Gl(this.parent.latestValues)||mg(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=vt(),this.relativeTargetOrigin=vt(),Ti(this.relativeTargetOrigin,l,c),on(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===Pt.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;on(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;oT(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=vt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Af(this.prevProjectionDelta.x,this.projectionDelta.x),Af(this.prevProjectionDelta.y,this.projectionDelta.y)),Xr(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Uf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uf(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=Go(),this.projectionDelta=Go(),this.projectionDeltaWithTransform=Go()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=vt(),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,C=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(nP));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const T=S/1e3;Xf(f.x,a.x,T),Xf(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ti(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),tP(this.relativeTarget,this.relativeTargetOrigin,p,T),x&&IT(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=vt()),on(x,this.relativeTarget)),g&&(this.animationValues=d,_T(d,u,this.latestValues,T,C,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&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{di.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=sr(0)),this.currentAnimation=$T(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(WT),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&&Ng(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||vt();const f=Nt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Nt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}on(l,c),Zo(l,d),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new zT),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&&Qa("z",a,u,this.animationValues);for(let d=0;d<Xa.length;d++)Qa(`rotate${Xa[d]}`,a,u,this.animationValues),Qa(`skew${Xa[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=ui(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=ui(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!vo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=AT(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 Zl){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=Zl[m],C=f==="none"?d[m]:g(d[m],u);if(y){const x=y.length;for(let S=0;S<x;S++)a[y[S]]=C}else v?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=u===this?ui(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(Gf),this.root.sharedNodes.clear()}}}function HT(e){e.updateLayout()}function YT(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"?Ht(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Nt(p);p.min=o[f].min,p.max=p.min+h}):Ng(i,t.layoutBox,o)&&Ht(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Nt(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=Go();Xr(l,o,t.layoutBox);const c=Go();a?Xr(c,e.applyTransform(r,!0),t.measuredBox):Xr(c,o,t.layoutBox);const u=!Og(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=vt();Ti(m,t.layoutBox,p.layoutBox);const g=vt();Ti(g,o,h.layoutBox),kg(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 qT(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 GT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KT(e){e.clearSnapshot()}function Gf(e){e.clearMeasurements()}function Kf(e){e.isLayoutDirty=!1}function ZT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XT(e){e.resolveTargetDelta()}function QT(e){e.calcProjection()}function JT(e){e.resetSkewAndRotation()}function eP(e){e.removeLeadSnapshot()}function Xf(e,t,n){e.translate=st(t.translate,0,n),e.scale=st(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qf(e,t,n,o){e.min=st(t.min,n.min,o),e.max=st(t.max,n.max,o)}function tP(e,t,n,o){Qf(e.x,t.x,n.x,o),Qf(e.y,t.y,n.y,o)}function nP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oP={duration:.45,ease:[.4,0,.1,1]},Jf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ep=Jf("applewebkit/")&&!Jf("chrome/")?Math.round:Kt;function tp(e){e.min=ep(e.min),e.max=ep(e.max)}function rP(e){tp(e.x),tp(e.y)}function Ng(e,t,n){return e==="position"||e==="preserve-aspect"&&!MT(Wf(t),Wf(n),.2)}function sP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const iP=Ag({attachResizeListener:(e,t)=>ds(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}),Ja={current:void 0},_g=Ag({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ja.current){const e=new iP({});e.mount(window),e.setOptions({layoutScroll:!0}),Ja.current=e}return Ja.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ou=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function np(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function aP(...e){return t=>{let n=!1;const o=e.map(r=>{const i=np(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():np(e[r],null)}}}}function lP(...e){return P.useCallback(aP(...e),e)}class cP extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=Yl(o)&&o.offsetWidth||0,i=Yl(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 uP({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=L.useId(),a=L.useRef(null),l=L.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=L.useContext(ou),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=lP(a,u);return L.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:y,bottom:v}=l.current;if(t||!a.current||!p||!h)return;const C=n==="left"?`left: ${g}`:`right: ${y}`,x=o==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=i;const S=document.createElement("style");c&&(S.nonce=c);const T=r??document.head;return T.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
|
97
|
+
`))},[JSON.stringify(n)])}const u=P.useCallback(d=>{i||l(d)},[]);return[c,u]}function pe(e){const t=P.useRef(e);return St(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function je(...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 Q1(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function J1(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{Q1(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=ge(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=ge(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 eS=ft(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),tS=ft(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),nS=ft(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"),oS=(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)},rS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},sS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},iS=(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)},aS="_modal_1ktm2_1",lS="_content_1ktm2_67",cS="_contentWrapper_1ktm2_74",uS="_closeButton_1ktm2_81",dS="_header_1ktm2_93",fS="_title_1ktm2_100",pS="_description_1ktm2_109",hS="_filtersContent_1ktm2_118",mS="_filterGroup_1ktm2_128",gS="_expandableHeader_1ktm2_135",yS="_expandableLabel_1ktm2_145",bS="_chevronIcon_1ktm2_153",vS="_chevron_1ktm2_153",xS="_filterItems_1ktm2_166",SS="_filterItem_1ktm2_166",wS="_filterItemSize1_1ktm2_178",CS="_filterItemSize2_1ktm2_182",TS="_filterItemSize3_1ktm2_186",PS="_filterItemSize4_1ktm2_190",ES="_filterItemSize5_1ktm2_194",MS="_filterItemSize6_1ktm2_198",OS="_filterInput_1ktm2_202",kS="_inputLabel_1ktm2_206",DS="_select_1ktm2_210",RS="_placeholder_1ktm2_227",IS="_helperText_1ktm2_231",AS="_footer_1ktm2_238",NS="_clearButton_1ktm2_245",_S="_applyButton_1ktm2_267",Ye={modal:aS,content:lS,contentWrapper:cS,closeButton:uS,header:dS,title:fS,description:pS,filtersContent:hS,filterGroup:mS,expandableHeader:gS,expandableLabel:yS,chevronIcon:bS,chevron:vS,filterItems:xS,filterItem:SS,filterItemSize1:wS,filterItemSize2:CS,filterItemSize3:TS,filterItemSize4:PS,filterItemSize5:ES,filterItemSize6:MS,filterInput:OS,inputLabel:kS,select:DS,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:RS,helperText:IS,footer:AS,clearButton:NS,applyButton:_S},mm=({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=H.useTheme(),g=m.palette.mode==="dark",y=H.useMediaQuery(m.breakpoints.down("md")),[v,C]=_.useState(a??[]),S=!!r;_.useEffect(()=>{C(a??[])},[a]);const w=oS(v,l),T=rS(v,c,C),E=(M,A)=>{var x;const k=iS(A,M.id,v,C),V=M.size||6,L=Ye[`filterItemSize${V}`];if(M.render)return b.jsx(H.Box,{className:`${Ye.filterItem} ${L}`,children:M.render(M,k)},M.id);switch(M.type){case"select":case"multi-select":const j=M.type==="multi-select";let O;j?M.value!==void 0&&M.value!==null?O=Array.isArray(M.value)?M.value:[M.value]:O=[]:O=M.value!==void 0&&M.value!==null?M.value:"";const I=j?Array.isArray(O)&&O.length>0:O!==""&&O!==null&&O!==void 0;return b.jsx(H.Box,{className:`${Ye.filterItem} ${L}`,children:b.jsxs(H.FormControl,{fullWidth:!0,className:Ye.filterInput,children:[b.jsx(H.InputLabel,{id:`${M.id}-label`,className:Ye.inputLabel,shrink:I,children:M.label}),b.jsx(H.Select,{labelId:`${M.id}-label`,value:O,onChange:D=>k(D.target.value),multiple:j,label:M.label,className:Ye.select,displayEmpty:!0,renderValue:D=>{var B;if(j){const F=Array.isArray(D)?D:[];return F.length===0?b.jsx(H.Box,{component:"span",style:{opacity:0},children:M.label}):F.map(R=>{var W,K;return((K=(W=M.options)==null?void 0:W.find(G=>G.value===R))==null?void 0:K.label)||R}).join(", ")}if(!D||D==="")return b.jsx(H.Box,{component:"span",style:{opacity:0},children:M.label});const N=(B=M.options)==null?void 0:B.find(F=>F.value===D);return(N==null?void 0:N.label)||D},notched:I,children:(x=M.options)==null?void 0:x.map(D=>b.jsx(H.MenuItem,{value:D.value,children:D.label},D.value))}),M.helperText&&b.jsx(H.Box,{className:Ye.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(H.Box,{className:`${Ye.filterItem} ${L}`,children:b.jsx(H.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:D=>k(D.target.value),className:Ye.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ye.helperText}})},M.id);default:return null}};return b.jsx(H.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ye.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(H.DialogContent,{className:Ye.content,children:b.jsxs(H.Box,{className:Ye.contentWrapper,children:[b.jsx(H.IconButton,{className:Ye.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(nS,{})}),b.jsxs(H.Box,{className:Ye.header,children:[b.jsx(H.Box,{className:Ye.title,children:n}),b.jsx(H.Box,{className:Ye.description,children:o})]}),b.jsx(H.Box,{className:Ye.filtersContent,children:S?r:v.map(M=>{const A=sS(M.id,v,C),k=M.expanded!==!1;return b.jsxs(H.Box,{className:Ye.filterGroup,children:[b.jsxs(H.Box,{className:Ye.expandableHeader,onClick:A,children:[b.jsx(H.Box,{className:Ye.expandableLabel,children:M.label}),b.jsx(H.Box,{className:Ye.chevronIcon,children:k?b.jsx(tS,{className:Ye.chevron}):b.jsx(eS,{className:Ye.chevron})})]}),k&&b.jsx(H.Box,{className:Ye.filterItems,children:M.items.map(V=>E(V,M.id))})]},M.id)})}),b.jsxs(H.Box,{className:Ye.footer,children:[b.jsx(H.Button,{onClick:T,className:Ye.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(H.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:w,className:Ye.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};mm.displayName="FilterModal";const jS="_container_1hyey_1",LS="_card_1hyey_7",$S="_icon_1hyey_18",VS="_text_1hyey_32",Ws={container:jS,card:LS,icon:$S,text:VS},FS=({items:e,className:t,sx:n})=>{const o=H.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(H.Box,{className:`${Ws.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(H.Box,{className:Ws.card,sx:r,children:[l.icon&&b.jsx(H.Box,{className:Ws.icon,sx:i,children:l.icon}),b.jsxs(H.Typography,{component:"span",className:Ws.text,sx:a,children:[l.count," ",l.label]})]},c))})},kc=_.createContext({});function Dc(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const gm=typeof window<"u",ym=gm?_.useLayoutEffect:_.useEffect,Ji=_.createContext(null);function Rc(e,t){e.indexOf(t)===-1&&e.push(t)}function Ic(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const vn=(e,t,n)=>n>t?t:n<e?e:n;function Dl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let gr=()=>{},Dn=()=>{};var Vh;typeof process<"u"&&((Vh=process.env)==null?void 0:Vh.NODE_ENV)!=="production"&&(gr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Dl(t,n))},Dn=(e,t,n)=>{if(!e)throw new Error(Dl(t,n))});const Rn={},bm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function vm(e){return typeof e=="object"&&e!==null}const xm=e=>/^0[^.\s]+$/u.test(e);function Ac(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kt=e=>e,BS=(e,t)=>n=>t(e(n)),Cs=(...e)=>e.reduce(BS),as=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Nc{constructor(){this.subscriptions=[]}add(t){return Rc(this.subscriptions,t),()=>Ic(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 mn=e=>e*1e3,Gt=e=>e/1e3;function Sm(e,t){return t?e*(1e3/t):0}const ef=new Set;function _c(e,t,n){e||ef.has(t)||(console.warn(Dl(t,n)),ef.add(t))}const wm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zS=1e-7,WS=12;function US(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=wm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>zS&&++l<WS);return a}function Ts(e,t,n,o){if(e===t&&n===o)return Kt;const r=i=>US(i,0,1,e,n);return i=>i===0||i===1?i:wm(r(i),t,o)}const Cm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tm=e=>t=>1-e(1-t),Pm=Ts(.33,1.53,.69,.99),jc=Tm(Pm),Em=Cm(jc),Mm=e=>(e*=2)<1?.5*jc(e):.5*(2-Math.pow(2,-10*(e-1))),Lc=e=>1-Math.sin(Math.acos(e)),Om=Tm(Lc),km=Cm(Lc),HS=Ts(.42,0,1,1),YS=Ts(0,0,.58,1),Dm=Ts(.42,0,.58,1),qS=e=>Array.isArray(e)&&typeof e[0]!="number",Rm=e=>Array.isArray(e)&&typeof e[0]=="number",tf={linear:Kt,easeIn:HS,easeInOut:Dm,easeOut:YS,circIn:Lc,circInOut:km,circOut:Om,backIn:jc,backInOut:Em,backOut:Pm,anticipate:Mm},GS=e=>typeof e=="string",nf=e=>{if(Rm(e)){Dn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Ts(t,n,o,r)}else if(GS(e))return Dn(tf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),tf[e];return e},Us=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KS(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 ZS=40;function Im(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Us.reduce((S,w)=>(S[w]=KS(i),S),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const S=Rn.useManualTiming?r.timestamp:performance.now();n=!1,Rn.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(S-r.timestamp,ZS),1)),r.timestamp=S,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:Us.reduce((S,w)=>{const T=a[w];return S[w]=(E,M=!1,A=!1)=>(n||y(),T.schedule(E,M,A)),S},{}),cancel:S=>{for(let w=0;w<Us.length;w++)a[Us[w]].cancel(S)},state:r,steps:a}}const{schedule:Qe,cancel:Kn,state:Pt,steps:Wa}=Im(typeof requestAnimationFrame<"u"?requestAnimationFrame:Kt,!0);let li;function XS(){li=void 0}const At={now:()=>(li===void 0&&At.set(Pt.isProcessing||Rn.useManualTiming?Pt.timestamp:performance.now()),li),set:e=>{li=e,queueMicrotask(XS)}},Am=e=>t=>typeof t=="string"&&t.startsWith(e),Nm=Am("--"),QS=Am("var(--"),$c=e=>QS(e)?JS.test(e.split("/*")[0].trim()):!1,JS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...yr,transform:e=>vn(0,1,e)},Hs={...yr,default:1},Zr=e=>Math.round(e*1e5)/1e5,Vc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ew(e){return e==null}const tw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fc=(e,t)=>n=>!!(typeof n=="string"&&tw.test(n)&&n.startsWith(e)||t&&!ew(n)&&Object.prototype.hasOwnProperty.call(n,t)),_m=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(Vc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},nw=e=>vn(0,255,e),Ua={...yr,transform:e=>Math.round(nw(e))},To={test:Fc("rgb","red"),parse:_m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ua.transform(e)+", "+Ua.transform(t)+", "+Ua.transform(n)+", "+Zr(ls.transform(o))+")"};function ow(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 Rl={test:Fc("#"),parse:ow,transform:To.transform},Ps=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ln=Ps("deg"),gn=Ps("%"),ve=Ps("px"),rw=Ps("vh"),sw=Ps("vw"),rf={...gn,parse:e=>gn.parse(e)/100,transform:e=>gn.transform(e*100)},Go={test:Fc("hsl","hue"),parse:_m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+gn.transform(Zr(t))+", "+gn.transform(Zr(n))+", "+Zr(ls.transform(o))+")"},gt={test:e=>To.test(e)||Rl.test(e)||Go.test(e),parse:e=>To.test(e)?To.parse(e):Go.test(e)?Go.parse(e):Rl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?To.transform(e):Go.transform(e),getAnimatableNone:e=>{const t=gt.parse(e);return t.alpha=0,gt.transform(t)}},iw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function aw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vc))==null?void 0:t.length)||0)+(((n=e.match(iw))==null?void 0:n.length)||0)>0}const jm="number",Lm="color",lw="var",cw="var(",sf="${}",uw=/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(uw,c=>(gt.test(c)?(o.color.push(i),r.push(Lm),n.push(gt.parse(c))):c.startsWith(cw)?(o.var.push(i),r.push(lw),n.push(c)):(o.number.push(i),r.push(jm),n.push(parseFloat(c))),++i,sf)).split(sf);return{values:n,split:l,indexes:o,types:r}}function $m(e){return cs(e).values}function Vm(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===jm?i+=Zr(r[a]):l===Lm?i+=gt.transform(r[a]):i+=r[a]}return i}}const dw=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e;function fw(e){const t=$m(e);return Vm(e)(t.map(dw))}const Zn={test:aw,parse:$m,createTransformer:Vm,getAnimatableNone:fw};function Ha(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 pw({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=Ha(c,l,e+1/3),i=Ha(c,l,e),a=Ha(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function vi(e,t){return n=>n>0?t:e}const st=(e,t,n)=>e+(t-e)*n,Ya=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},hw=[Rl,To,Go],mw=e=>hw.find(t=>t.test(e));function af(e){const t=mw(e);if(gr(!!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===Go&&(n=pw(n)),n}const lf=(e,t)=>{const n=af(e),o=af(t);if(!n||!o)return vi(e,t);const r={...n};return i=>(r.red=Ya(n.red,o.red,i),r.green=Ya(n.green,o.green,i),r.blue=Ya(n.blue,o.blue,i),r.alpha=st(n.alpha,o.alpha,i),To.transform(r))},Il=new Set(["none","hidden"]);function gw(e,t){return Il.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yw(e,t){return n=>st(e,t,n)}function Bc(e){return typeof e=="number"?yw:typeof e=="string"?$c(e)?vi:gt.test(e)?lf:xw:Array.isArray(e)?Fm:typeof e=="object"?gt.test(e)?lf:bw:vi}function Fm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Bc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function bw(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Bc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function vw(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 xw=(e,t)=>{const n=Zn.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?Il.has(e)&&!r.values.length||Il.has(t)&&!o.values.length?gw(e,t):Cs(Fm(vw(o,r),r.values),n):(gr(!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"),vi(e,t))};function Bm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?st(e,t,n):Bc(e)(e,t)}const Sw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Qe.update(t,n),stop:()=>Kn(t),now:()=>Pt.isProcessing?Pt.timestamp:At.now()}},zm=(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)})`},xi=2e4;function zc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<xi;)t+=n,o=e.next(t);return t>=xi?1/0:t}function ww(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(zc(o),xi);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Gt(r)}}const Cw=5;function Wm(e,t,n){const o=Math.max(t-Cw,0);return Sm(n-e(o),t-o)}const rt={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},qa=.001;function Tw({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:o=rt.mass}){let r,i;gr(e<=mn(rt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=vn(rt.minDamping,rt.maxDamping,a),e=vn(rt.minDuration,rt.maxDuration,Gt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Al(u,a),m=Math.exp(-f);return qa-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=Al(Math.pow(u,2),a);return(-r(u)+qa>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-qa+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=Ew(r,i,l);if(e=mn(e),isNaN(c))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const Pw=12;function Ew(e,t,n){let o=n;for(let r=1;r<Pw;r++)o=o-e(o)/t(o);return o}function Al(e,t){return e*Math.sqrt(1-t*t)}const Mw=["duration","bounce"],Ow=["stiffness","damping","mass"];function cf(e,t){return t.some(n=>e[n]!==void 0)}function kw(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!cf(e,Ow)&&cf(e,Mw))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*vn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:rt.mass,stiffness:r,damping:i}}else{const n=Tw(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function Si(e=rt.visualDuration,t=rt.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}=kw({...n,velocity:-Gt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Gt(Math.sqrt(c/d)),C=Math.abs(y)<5;o||(o=C?rt.restSpeed.granular:rt.restSpeed.default),r||(r=C?rt.restDelta.granular:rt.restDelta.default);let S;if(g<1){const T=Al(v,g);S=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)S=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);S=E=>{const M=Math.exp(-g*v*E),A=Math.min(T*E,300);return a-M*((m+g*v*y)*Math.sinh(A)+T*y*Math.cosh(A))/T}}const w={calculatedDuration:h&&f||null,next:T=>{const E=S(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?mn(m):Wm(S,T,E));const A=Math.abs(M)<=o,k=Math.abs(a-E)<=r;l.done=A&&k}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(zc(w),xi),E=zm(M=>w.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return w}Si.applyToOptions=e=>{const t=ww(e,100,Si);return e.ease=t.ease,e.duration=mn(t.duration),e.type="keyframes",e};function Nl({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=A=>l!==void 0&&A<l||c!==void 0&&A>c,m=A=>l===void 0?c:c===void 0||Math.abs(l-A)<Math.abs(c-A)?l:c;let g=n*t;const y=f+g,v=a===void 0?y:a(y);v!==y&&(g=v-f);const C=A=>-g*Math.exp(-A/o),S=A=>v+C(A),w=A=>{const k=C(A),V=S(A);p.done=Math.abs(k)<=u,p.value=p.done?v:V};let T,E;const M=A=>{h(p.value)&&(T=A,E=Si({keyframes:[p.value,m(p.value)],velocity:Wm(S,A,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:A=>{let k=!1;return!E&&T===void 0&&(k=!0,w(A),M(A)),T!==void 0&&A>=T?E.next(A-T):(!k&&w(A),p)}}}function Dw(e,t,n){const o=[],r=n||Rn.mix||Bm,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]||Kt:t;l=Cs(c,l)}o.push(l)}return o}function Rw(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Dn(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=Dw(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=as(e[f],e[f+1],d);return l[f](p)};return n?d=>u(vn(e[0],e[i-1],d)):u}function Iw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=as(0,t,o);e.push(st(n,1,r))}}function Aw(e){const t=[0];return Iw(t,e.length-1),t}function Nw(e,t){return e.map(n=>n*t)}function _w(e,t){return e.map(()=>t||Dm).splice(0,e.length-1)}function Ko({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=qS(o)?o.map(nf):nf(o),i={done:!1,value:t[0]},a=Nw(n&&n.length===t.length?n:Aw(t),e),l=Rw(a,t,{ease:Array.isArray(r)?r:_w(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const jw=e=>e!==null;function Wc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(jw),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Lw={decay:Nl,inertia:Nl,tween:Ko,keyframes:Ko,spring:Si};function Um(e){typeof e.type=="string"&&(e.type=Lw[e.type])}class Uc{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 $w=e=>e/100;class Hc extends Uc{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!==At.now()&&this.tick(At.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;Um(t);const{type:n=Ko,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||Ko;process.env.NODE_ENV!=="production"&&c!==Ko&&Dn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==Ko&&typeof l[0]!="number"&&(this.mixKeyframes=Cs($w,Bm(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),C=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let S=this.currentTime,w=o;if(f){const A=Math.min(this.currentTime,r)/l;let k=Math.floor(A),V=A%1;!V&&A>=1&&(V=1),V===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(w=a)),S=vn(0,1,V)*l}const T=C?{done:!1,value:d[0]}:w.next(S);i&&(T.value=i(T.value));let{done:E}=T;!C&&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!==Nl&&(T.value=Wc(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 Gt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Gt(t)}get time(){return Gt(this.currentTime)}set time(t){var n;t=mn(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(At.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Gt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=Sw,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(At.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 Vw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Po=e=>e*180/Math.PI,_l=e=>{const t=Po(Math.atan2(e[1],e[0]));return jl(t)},Fw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_l,rotateZ:_l,skewX:e=>Po(Math.atan(e[1])),skewY:e=>Po(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jl=e=>(e=e%360,e<0&&(e+=360),e),uf=_l,df=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ff=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:df,scaleY:ff,scale:e=>(df(e)+ff(e))/2,rotateX:e=>jl(Po(Math.atan2(e[6],e[5]))),rotateY:e=>jl(Po(Math.atan2(-e[2],e[0]))),rotateZ:uf,rotate:uf,skewX:e=>Po(Math.atan(e[4])),skewY:e=>Po(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ll(e){return e.includes("scale")?1:0}function $l(e,t){if(!e||e==="none")return Ll(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Bw,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Fw,r=l}if(!r)return Ll(t);const i=o[t],a=r[1].split(",").map(Ww);return typeof i=="function"?i(a):a[i]}const zw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return $l(n,t)};function Ww(e){return parseFloat(e.trim())}const br=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vr=new Set(br),pf=e=>e===yr||e===ve,Uw=new Set(["x","y","z"]),Hw=br.filter(e=>!Uw.has(e));function Yw(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 Wn={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})=>$l(t,"x"),y:(e,{transform:t})=>$l(t,"y")};Wn.translateX=Wn.x;Wn.translateY=Wn.y;const Oo=new Set;let Vl=!1,Fl=!1,Bl=!1;function Hm(){if(Fl){const e=Array.from(Oo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Yw(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)})}Fl=!1,Vl=!1,Oo.forEach(e=>e.complete(Bl)),Oo.clear()}function Ym(){Oo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fl=!0)})}function qw(){Bl=!0,Ym(),Hm(),Bl=!1}class Yc{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?(Oo.add(this),Vl||(Vl=!0,Qe.read(Ym),Qe.resolveKeyframes(Hm))):(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])}Vw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Oo.delete(this)}cancel(){this.state==="scheduled"&&(Oo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Gw=e=>e.startsWith("--");function Kw(e,t,n){Gw(t)?e.style.setProperty(t,n):e.style[t]=n}const Zw=Ac(()=>window.ScrollTimeline!==void 0),Xw={};function Qw(e,t){const n=Ac(e);return()=>Xw[t]??n()}const qm=Qw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Br=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Br([0,.65,.55,1]),circOut:Br([.55,0,1,.45]),backIn:Br([.31,.01,.66,-.59]),backOut:Br([.33,1.53,.69,.99])};function Gm(e,t){if(e)return typeof e=="function"?qm()?zm(e,t):"ease-out":Rm(e)?Br(e):Array.isArray(e)?e.map(n=>Gm(n,t)||hf.easeOut):hf[e]}function Jw(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=Gm(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 Km(e){return typeof e=="function"&&"applyToOptions"in e}function eC({type:e,...t}){return Km(e)&&qm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class tC extends Uc{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,Dn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=eC(t);this.animation=Jw(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Wc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):Kw(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 Gt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Gt(t)}get time(){return Gt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mn(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&&Zw()?(this.animation.timeline=t,Kt):n(this)}}const Zm={anticipate:Mm,backInOut:Em,circInOut:km};function nC(e){return e in Zm}function oC(e){typeof e.ease=="string"&&nC(e.ease)&&(e.ease=Zm[e.ease])}const Ga=10;class rC extends tC{constructor(t){oC(t),Um(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 Hc({...a,autoplay:!1}),c=Math.max(Ga,At.now()-this.startTime),u=vn(0,Ga,c-Ga);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const mf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zn.test(e)||e==="0")&&!e.startsWith("url("));function sC(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 iC(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 gr(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:sC(e)||(n==="spring"||Km(n))&&o}function zl(e){e.duration=0,e.type="keyframes"}const aC=new Set(["opacity","clipPath","filter","transform"]),lC=Ac(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function cC(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 lC()&&n&&aC.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const uC=40;class dC extends Uc{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=At.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)||Yc;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=At.now(),iC(t,i,a,l)||((Rn.instantAnimations||!c)&&(d==null||d(Wc(t,o,n))),t[0]=t[t.length-1],zl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>uC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&cC(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new rC({...p,element:m}):new Hc(p);g.finished.then(()=>{this.notifyFinished()}).catch(Kt),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(),qw()),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 Xm(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 fC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pC(e){const t=fC.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const hC=4;function Qm(e,t,n=1){Dn(n<=hC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=pC(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return bm(a)?parseFloat(a):a}return $c(r)?Qm(r,t,n+1):r}const mC={type:"spring",stiffness:500,damping:25,restSpeed:10},gC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yC={type:"keyframes",duration:.8},bC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vC=(e,{keyframes:t})=>t.length>2?yC:vr.has(e)?e.startsWith("scale")?gC(t[1]):mC:bC,xC=e=>e!==null;function SC(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(xC),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function qc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function wC({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 Gc=(e,t,n,o={},r,i)=>a=>{const l=qc(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-mn(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};wC(l)||Object.assign(d,vC(e,d)),d.duration&&(d.duration=mn(d.duration)),d.repeatDelay&&(d.repeatDelay=mn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(zl(d),d.delay===0&&(f=!0)),(Rn.instantAnimations||Rn.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,zl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=SC(d.keyframes,l);if(p!==void 0){Qe.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Hc(d):new dC(d)};function gf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Kc(e,t,n,o){if(typeof t=="function"){const[r,i]=gf(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]=gf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function tr(e,t,n){const o=e.getProps();return Kc(o,t,n!==void 0?n:o.custom,e)}const Jm=new Set(["width","height","top","left","right","bottom",...br]),yf=30,CC=e=>!isNaN(parseFloat(e));class TC{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=At.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=At.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&_c(!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 Nc);const o=this.events[t].add(n);return t==="change"?()=>{o(),Qe.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=At.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yf);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 ir(e,t){return new TC(e,t)}const Wl=e=>Array.isArray(e);function PC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ir(n))}function EC(e){return Wl(e)?e[e.length-1]||0:e}function MC(e,t){const n=tr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=EC(i[a]);PC(e,a,l)}}const kt=e=>!!(e&&e.getVelocity);function OC(e){return!!(kt(e)&&e.add)}function Ul(e,t){const n=e.getValue("willChange");if(OC(n))return n.add(t);if(!n&&Rn.WillChange){const o=new Rn.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Zc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const kC="framerAppearId",eg="data-"+Zc(kC);function tg(e){return e.props[eg]}function DC({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function ng(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&&DC(d,f))continue;const m={delay:n,...qc(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 S=tg(e);if(S){const w=window.MotionHandoffAnimation(S,f,Qe);w!==null&&(m.startTime=w,y=!0)}}Ul(e,f);const v=c??e.shouldReduceMotion;p.start(Gc(f,p,h,v&&Jm.has(f)?{type:!1}:m,e,y));const C=p.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{Qe.update(()=>{a&&MC(e,a)})}),u}function Hl(e,t,n={}){var c;const o=tr(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(ng(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return RC(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 RC(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(Hl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+Xm(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function IC(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Hl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Hl(e,t,n);else{const r=typeof t=="function"?tr(e,t,n.custom):t;o=Promise.all(ng(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const AC={test:e=>e==="auto",parse:e=>e},og=e=>t=>t.test(e),rg=[yr,ve,gn,Ln,sw,rw,AC],bf=e=>rg.find(og(e));function NC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||xm(e):!0}const _C=new Set(["brightness","contrast","saturate","opacity"]);function jC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Vc)||[];if(!o)return e;const r=n.replace(o,"");let i=_C.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const LC=/\b([a-z-]*)\(.*?\)/gu,Yl={...Zn,getAnimatableNone:e=>{const t=e.match(LC);return t?t.map(jC).join(" "):e}},vf={...yr,transform:Math.round},$C={rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:Hs,scaleX:Hs,scaleY:Hs,scaleZ:Hs,skew:Ln,skewX:Ln,skewY:Ln,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:ls,originX:rf,originY:rf,originZ:ve},Xc={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,inset:ve,insetBlock:ve,insetBlockStart:ve,insetBlockEnd:ve,insetInline:ve,insetInlineStart:ve,insetInlineEnd:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,paddingBlock:ve,paddingBlockStart:ve,paddingBlockEnd:ve,paddingInline:ve,paddingInlineStart:ve,paddingInlineEnd:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,marginBlock:ve,marginBlockStart:ve,marginBlockEnd:ve,marginInline:ve,marginInlineStart:ve,marginInlineEnd:ve,fontSize:ve,backgroundPositionX:ve,backgroundPositionY:ve,...$C,zIndex:vf,fillOpacity:ls,strokeOpacity:ls,numOctaves:vf},VC={...Xc,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Yl,WebkitFilter:Yl},sg=e=>VC[e];function ig(e,t){let n=sg(e);return n!==Yl&&(n=Zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const FC=new Set(["auto","none","0"]);function BC(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!FC.has(i)&&cs(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=ig(n,r)}class zC extends Yc{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(),$c(f))){const p=Qm(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Jm.has(o)||t.length!==2)return;const[r,i]=t,a=bf(r),l=bf(i),c=of(r),u=of(i);if(c!==u&&Wn[o]){this.needsMeasurement=!0;return}if(a!==l)if(pf(a)&&pf(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Wn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||NC(t[r]))&&o.push(r);o.length&&BC(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=Wn[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]=Wn[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 WC(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 ag=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ql(e){return vm(e)&&"offsetHeight"in e}const{schedule:Qc}=Im(queueMicrotask,!1),an={x:!1,y:!1};function lg(){return an.x||an.y}function UC(e){return e==="x"||e==="y"?an[e]?null:(an[e]=!0,()=>{an[e]=!1}):an.x||an.y?null:(an.x=an.y=!0,()=>{an.x=an.y=!1})}function cg(e,t){const n=WC(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function xf(e){return!(e.pointerType==="touch"||lg())}function HC(e,t,n={}){const[o,r,i]=cg(e,n),a=l=>{if(!xf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{xf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const ug=(e,t)=>t?e===t?!0:ug(e,t.parentElement):!1,Jc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dg(e){return YC.has(e.tagName)||e.isContentEditable===!0}const ci=new WeakSet;function Sf(e){return t=>{t.key==="Enter"&&e(t)}}function Ka(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const qC=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Sf(()=>{if(ci.has(n))return;Ka(n,"down");const r=Sf(()=>{Ka(n,"up")}),i=()=>Ka(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 wf(e){return Jc(e)&&!lg()}function GC(e,t,n={}){const[o,r,i]=cg(e,n),a=l=>{const c=l.currentTarget;if(!wf(l))return;ci.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),ci.has(c)&&ci.delete(c),wf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||ug(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),ql(l)&&(l.addEventListener("focus",u=>qC(u,r)),!dg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function fg(e){return vm(e)&&"ownerSVGElement"in e}function KC(e){return fg(e)&&e.tagName==="svg"}const ZC=[...rg,gt,Zn],XC=e=>ZC.find(og(e)),Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zo=()=>({x:Cf(),y:Cf()}),Tf=()=>({min:0,max:0}),vt=()=>({x:Tf(),y:Tf()}),Gl={current:null},pg={current:!1},QC=typeof window<"u";function JC(){if(pg.current=!0,!!QC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gl.current=e.matches;e.addEventListener("change",t),t()}else Gl.current=!1}const eT=new WeakMap;function ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function us(e){return typeof e=="string"||Array.isArray(e)}const eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tu=["initial",...eu];function ta(e){return ea(e.animate)||tu.some(t=>us(e[t]))}function hg(e){return!!(ta(e)||e.variants)}function tT(e,t,n){for(const o in t){const r=t[o],i=n[o];if(kt(r))e.addValue(o,r);else if(kt(i))e.addValue(o,ir(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,ir(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Pf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wi={};function mg(e){wi=e}function nT(){return wi}class oT{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=Yc,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=At.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Qe.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=ta(n),this.isVariantNode=hg(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&&kt(m)&&m.set(u[h])}}mount(t){var n;this.current=t,eT.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:(pg.current||JC(),this.shouldReduceMotion=Gl.current),process.env.NODE_ENV!=="production"&&_c(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(),Kn(this.notifyUpdate),Kn(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=vr.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Qe.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 wi){const n=wi[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):vt()}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<Pf.length;o++){const r=Pf[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=tT(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=ir(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"&&(bm(o)||xm(o))?o=parseFloat(o):!XC(o)&&Zn.test(n)&&(o=ig(t,n)),this.setBaseTarget(t,kt(o)?o.get():o)),kt(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=Kc(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&&!kt(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 Nc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Qc.render(this.render)}}class gg extends oT{constructor(){super(...arguments),this.KeyframeResolver=zC}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;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class to{constructor(t){this.isMounted=!1,this.node=t}update(){}}function yg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function rT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sT(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 Za(e){return e===void 0||e===1}function Kl({scale:e,scaleX:t,scaleY:n}){return!Za(e)||!Za(t)||!Za(n)}function vo(e){return Kl(e)||bg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bg(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Ci(e,t,n){const o=e-n,r=t*o;return n+r}function Mf(e,t,n,o,r){return r!==void 0&&(e=Ci(e,r,o)),Ci(e,n,o)+t}function Zl(e,t=0,n=1,o,r){e.min=Mf(e.min,t,n,o,r),e.max=Mf(e.max,t,n,o,r)}function vg(e,{x:t,y:n}){Zl(e.x,t.translate,t.scale,t.originPoint),Zl(e.y,n.translate,n.scale,n.originPoint)}const Of=.999999999999,kf=1.0000000000001;function iT(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&&Qo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,vg(e,a)),o&&vo(i.latestValues)&&Qo(e,i.latestValues))}t.x<kf&&t.x>Of&&(t.x=1),t.y<kf&&t.y>Of&&(t.y=1)}function Xo(e,t){e.min=e.min+t,e.max=e.max+t}function Df(e,t,n,o,r=.5){const i=st(e.min,e.max,r);Zl(e,t,n,i,o)}function Qo(e,t){Df(e.x,t.x,t.scaleX,t.scale,t.originX),Df(e.y,t.y,t.scaleY,t.scale,t.originY)}function xg(e,t){return yg(sT(e.getBoundingClientRect(),t))}function aT(e,t,n){const o=xg(e,n),{scroll:r}=t;return r&&(Xo(o.x,r.offset.x),Xo(o.y,r.offset.y)),o}const lT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cT=br.length;function uT(e,t,n){let o="",r=!0;for(let i=0;i<cT;i++){const a=br[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=ag(l,Xc[a]);if(!c){r=!1;const d=lT[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function nu(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(vr.has(c)){a=!0;continue}else if(Nm(c)){r[c]=u;continue}else{const d=ag(u,Xc[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=uT(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 Rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Er={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=Rf(e,t.target.x),o=Rf(e,t.target.y);return`${n}% ${o}%`}},dT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Zn.parse(e);if(r.length>5)return o;const i=Zn.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=st(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},Xl={borderRadius:{...Er,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Er,borderTopRightRadius:Er,borderBottomLeftRadius:Er,borderBottomRightRadius:Er,boxShadow:dT};function wg(e,{layout:t,layoutId:n}){return vr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xl[e]||e==="opacity")}function ou(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)(kt(o[l])||r&&kt(r[l])||wg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function fT(e){return window.getComputedStyle(e)}class pT extends gg{constructor(){super(...arguments),this.type="html",this.renderInstance=Sg}readValueFromInstance(t,n){var o;if(vr.has(n))return(o=this.projection)!=null&&o.isProjecting?Ll(n):zw(t,n);{const r=fT(t),i=(Nm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xg(t,n)}build(t,n,o){nu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return ou(t,n,o)}}const hT={offset:"stroke-dashoffset",array:"stroke-dasharray"},mT={offset:"strokeDashoffset",array:"strokeDasharray"};function gT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?hT:mT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const yT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Cg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(nu(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 yT)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&&gT(f,r,i,a,!1)}const Tg=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"]),Pg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bT(e,t,n,o){Sg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Tg.has(r)?r:Zc(r),t.attrs[r])}function Eg(e,t,n){const o=ou(e,t,n);for(const r in e)if(kt(e[r])||kt(t[r])){const i=br.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class vT extends gg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vr.has(n)){const o=sg(n);return o&&o.default||0}return n=Tg.has(n)?n:Zc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Eg(t,n,o)}build(t,n,o){Cg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){bT(t,n,o,r)}mount(t){this.isSVGTag=Pg(t.tagName),super.mount(t)}}const xT=tu.length;function Mg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Mg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<xT;n++){const o=tu[n],r=e.props[o];(us(r)||r===!1)&&(t[o]=r)}return t}function Og(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 ST=[...eu].reverse(),wT=eu.length;function CT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>IC(e,n,o)))}function TT(e){let t=CT(e),n=If(),o=!0;const r=c=>(u,d)=>{var p;const f=tr(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=Mg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<wT;y++){const v=ST[y],C=n[v],S=u[v]!==void 0?u[v]:d[v],w=us(S),T=v===c?C.isActive:null;T===!1&&(m=y);let E=S===d[v]&&S!==u[v]&&w;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),C.protectedKeys={...h},!C.isActive&&T===null||!S&&!C.prevProp||ea(S)||typeof S=="boolean")continue;const M=PT(C.prevProp,S);let A=M||v===c&&C.isActive&&!E&&w||y>m&&w,k=!1;const V=Array.isArray(S)?S:[S];let L=V.reduce(r(v),{});T===!1&&(L={});const{prevResolvedValues:x={}}=C,j={...x,...L},O=N=>{A=!0,p.has(N)&&(k=!0,p.delete(N)),C.needsAnimating[N]=!0;const B=e.getValue(N);B&&(B.liveStyle=!1)};for(const N in j){const B=L[N],F=x[N];if(h.hasOwnProperty(N))continue;let $=!1;Wl(B)&&Wl(F)?$=!Og(B,F):$=B!==F,$?B!=null?O(N):p.add(N):B!==void 0&&p.has(N)?O(N):C.protectedKeys[N]=!0}C.prevProp=S,C.prevResolvedValues=L,C.isActive&&(h={...h,...L}),o&&e.blockInitialAnimation&&(A=!1);const I=E&&M;A&&(!I||k)&&f.push(...V.map(N=>{const B={type:v};if(typeof N=="string"&&o&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,$=tr(F,N);if(F.enteringChildren&&$){const{delayChildren:R}=$.transition||{};B.delay=Xm(F.enteringChildren,e,R)}}return{animation:N,options:B}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=tr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{const C=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),y[v]=C??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=If()}}}function PT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Og(t,e):!1}function ao(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function If(){return{animate:ao(!0),whileInView:ao(),whileHover:ao(),whileTap:ao(),whileDrag:ao(),whileFocus:ao(),exit:ao()}}function Af(e,t){e.min=t.min,e.max=t.max}function on(e,t){Af(e.x,t.x),Af(e.y,t.y)}function Nf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const kg=1e-4,ET=1-kg,MT=1+kg,Dg=.01,OT=0-Dg,kT=0+Dg;function Nt(e){return e.max-e.min}function DT(e,t,n){return Math.abs(e-t)<=n}function _f(e,t,n,o=.5){e.origin=o,e.originPoint=st(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),e.translate=st(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ET&&e.scale<=MT||isNaN(e.scale))&&(e.scale=1),(e.translate>=OT&&e.translate<=kT||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,o){_f(e.x,t.x,n.x,o?o.originX:void 0),_f(e.y,t.y,n.y,o?o.originY:void 0)}function jf(e,t,n){e.min=n.min+t.min,e.max=e.min+Nt(t)}function RT(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function Lf(e,t,n){e.min=t.min-n.min,e.max=e.min+Nt(t)}function Ti(e,t,n){Lf(e.x,t.x,n.x),Lf(e.y,t.y,n.y)}function $f(e,t,n,o,r){return e-=t,e=Ci(e,1/n,o),r!==void 0&&(e=Ci(e,1/r,o)),e}function IT(e,t=0,n=1,o=.5,r,i=e,a=e){if(gn.test(t)&&(t=parseFloat(t),t=st(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=st(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 Vf(e,t,[n,o,r],i,a){IT(e,t[n],t[o],t[r],t.scale,i,a)}const AT=["x","scaleX","originX"],NT=["y","scaleY","originY"];function Ff(e,t,n,o){Vf(e.x,t,AT,n?n.x:void 0,o?o.x:void 0),Vf(e.y,t,NT,n?n.y:void 0,o?o.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Rg(e){return Bf(e.x)&&Bf(e.y)}function zf(e,t){return e.min===t.min&&e.max===t.max}function _T(e,t){return zf(e.x,t.x)&&zf(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 Ig(e,t){return Wf(e.x,t.x)&&Wf(e.y,t.y)}function Uf(e){return Nt(e.x)/Nt(e.y)}function Hf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ht(e){return[e("x"),e("y")]}function jT(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 Ag=["TopLeft","TopRight","BottomLeft","BottomRight"],LT=Ag.length,Yf=e=>typeof e=="string"?parseFloat(e):e,qf=e=>typeof e=="number"||ve.test(e);function $T(e,t,n,o,r,i){r?(e.opacity=st(0,n.opacity??1,VT(o)),e.opacityExit=st(t.opacity??1,0,FT(o))):i&&(e.opacity=st(t.opacity??1,n.opacity??1,o));for(let a=0;a<LT;a++){const l=`border${Ag[a]}Radius`;let c=Gf(t,l),u=Gf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||qf(c)===qf(u)?(e[l]=Math.max(st(Yf(c),Yf(u),o),0),(gn.test(u)||gn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=st(t.rotate||0,n.rotate||0,o))}function Gf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const VT=Ng(0,.5,Om),FT=Ng(.5,.95,Kt);function Ng(e,t,n){return o=>o<e?0:o>t?1:n(as(e,t,o))}function BT(e,t,n){const o=kt(e)?e:ir(e);return o.start(Gc("",o,t,n)),o.animation}function ds(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const zT=(e,t)=>e.depth-t.depth;class WT{constructor(){this.children=[],this.isDirty=!1}add(t){Rc(this.children,t),this.isDirty=!0}remove(t){Ic(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zT),this.isDirty=!1,this.children.forEach(t)}}function UT(e,t){const n=At.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(Kn(o),e(i-t))};return Qe.setup(o,!0),()=>Kn(o)}function ui(e){return kt(e)?e.get():e}class HT{constructor(){this.members=[]}add(t){Rc(this.members,t),t.scheduleRender()}remove(t){if(Ic(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 di={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xa=["","X","Y","Z"],YT=1e3;let qT=0;function Qa(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function _g(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=tg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qe,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&_g(o)}function jg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=qT++,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(ZT),this.nodes.forEach(eP),this.nodes.forEach(tP),this.nodes.forEach(XT)},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 WT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Nc),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=fg(a)&&!KC(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;Qe.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=UT(p,250),di.hasAnimatedSinceResize&&(di.hasAnimatedSinceResize=!1,this.nodes.forEach(Xf)))})}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()||iP,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Ig(this.targetLayout,h),C=!f&&p;if(this.options.layoutRoot||this.resumeFrom||C||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...qc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(d,C)}else f||Xf(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(),Kn(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(nP),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&&_g(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(Zf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(JT),this.nodes.forEach(GT),this.nodes.forEach(KT)):this.nodes.forEach(Zf),this.clearAllSnapshots();const l=At.now();Pt.delta=vn(0,1e3/60,l-Pt.timestamp),Pt.timestamp=l,Pt.isProcessing=!0,Wa.update.process(Pt),Wa.preRender.process(Pt),Wa.render.process(Pt),Pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QT),this.sharedNodes.forEach(oP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(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=vt(),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&&!Rg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||vo(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)),aP(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return vt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(lP))){const{scroll:d}=this.root;d&&(Xo(l.x,d.offset.x),Xo(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=vt();if(on(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&&on(l,a),Xo(l.x,f.offset.x),Xo(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=vt();on(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&&Qo(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vo(d.latestValues)&&Qo(c,d.latestValues)}return vo(this.latestValues)&&Qo(c,this.latestValues),c}removeTransform(a){const l=vt();on(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!vo(u.latestValues))continue;Kl(u.latestValues)&&u.updateSnapshot();const d=vt(),f=u.measurePageBox();on(d,f),Ff(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return vo(this.latestValues)&&Ff(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!==Pt.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=Pt.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=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),RT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),vg(this.target,this.targetDelta)):on(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||Kl(this.parent.latestValues)||bg(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=vt(),this.relativeTargetOrigin=vt(),Ti(this.relativeTargetOrigin,l,c),on(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===Pt.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;on(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;iT(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=vt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Nf(this.prevProjectionDelta.x,this.projectionDelta.x),Nf(this.prevProjectionDelta.y,this.projectionDelta.y)),Xr(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Hf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hf(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=Zo(),this.projectionDelta=Zo(),this.projectionDeltaWithTransform=Zo()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Zo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=vt(),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,C=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(sP));this.animationProgress=0;let S;this.mixTargetDelta=w=>{const T=w/1e3;Qf(f.x,a.x,T),Qf(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ti(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rP(this.relativeTarget,this.relativeTargetOrigin,p,T),S&&_T(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=vt()),on(S,this.relativeTarget)),g&&(this.animationValues=d,$T(d,u,this.latestValues,T,C,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&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{di.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ir(0)),this.currentAnimation=BT(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(YT),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&&Lg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||vt();const f=Nt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Nt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}on(l,c),Qo(l,d),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new HT),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&&Qa("z",a,u,this.animationValues);for(let d=0;d<Xa.length;d++)Qa(`rotate${Xa[d]}`,a,u,this.animationValues),Qa(`skew${Xa[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=ui(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=ui(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!vo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=jT(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 Xl){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=Xl[m],C=f==="none"?d[m]:g(d[m],u);if(y){const S=y.length;for(let w=0;w<S;w++)a[y[w]]=C}else v?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=u===this?ui(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 GT(e){e.updateLayout()}function KT(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"?Ht(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Nt(p);p.min=o[f].min,p.max=p.min+h}):Lg(i,t.layoutBox,o)&&Ht(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Nt(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=Zo();Xr(l,o,t.layoutBox);const c=Zo();a?Xr(c,e.applyTransform(r,!0),t.measuredBox):Xr(c,o,t.layoutBox);const u=!Rg(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=vt();Ti(m,t.layoutBox,p.layoutBox);const g=vt();Ti(g,o,h.layoutBox),Ig(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 ZT(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 XT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QT(e){e.clearSnapshot()}function Kf(e){e.clearMeasurements()}function Zf(e){e.isLayoutDirty=!1}function JT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eP(e){e.resolveTargetDelta()}function tP(e){e.calcProjection()}function nP(e){e.resetSkewAndRotation()}function oP(e){e.removeLeadSnapshot()}function Qf(e,t,n){e.translate=st(t.translate,0,n),e.scale=st(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jf(e,t,n,o){e.min=st(t.min,n.min,o),e.max=st(t.max,n.max,o)}function rP(e,t,n,o){Jf(e.x,t.x,n.x,o),Jf(e.y,t.y,n.y,o)}function sP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const iP={duration:.45,ease:[.4,0,.1,1]},ep=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tp=ep("applewebkit/")&&!ep("chrome/")?Math.round:Kt;function np(e){e.min=tp(e.min),e.max=tp(e.max)}function aP(e){np(e.x),np(e.y)}function Lg(e,t,n){return e==="position"||e==="preserve-aspect"&&!DT(Uf(t),Uf(n),.2)}function lP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const cP=jg({attachResizeListener:(e,t)=>ds(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}),Ja={current:void 0},$g=jg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ja.current){const e=new cP({});e.mount(window),e.setOptions({layoutScroll:!0}),Ja.current=e}return Ja.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ru=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function op(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uP(...e){return t=>{let n=!1;const o=e.map(r=>{const i=op(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():op(e[r],null)}}}}function dP(...e){return P.useCallback(uP(...e),e)}class fP extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=ql(o)&&o.offsetWidth||0,i=ql(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 pP({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=_.useId(),a=_.useRef(null),l=_.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=_.useContext(ru),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=dP(a,u);return _.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:y,bottom:v}=l.current;if(t||!a.current||!p||!h)return;const C=n==="left"?`left: ${g}`:`right: ${y}`,S=o==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=i;const w=document.createElement("style");c&&(w.nonce=c);const T=r??document.head;return T.appendChild(w),w.sheet&&w.sheet.insertRule(`
|
|
98
98
|
[data-motion-pop-id="${i}"] {
|
|
99
99
|
position: absolute !important;
|
|
100
100
|
width: ${p}px !important;
|
|
101
101
|
height: ${h}px !important;
|
|
102
102
|
${C}px !important;
|
|
103
|
-
${
|
|
103
|
+
${S}px !important;
|
|
104
104
|
}
|
|
105
|
-
`),()=>{T.contains(S)&&T.removeChild(S)}},[t]),b.jsx(cP,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const dP=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=kc(fP),f=L.useId();let p=!0,h=L.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}),L.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),P.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=b.jsx(uP,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(Ji.Provider,{value:h,children:e})};function fP(){return new Map}function jg(e=!0){const t=L.useContext(Ji);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=L.useId();L.useEffect(()=>{if(e)return r(i)},[e]);const a=L.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const Ys=e=>e.key||"";function op(e){const t=[];return L.Children.forEach(e,n=>{L.isValidElement(n)&&t.push(n)}),t}const rp=({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]=jg(a),p=L.useMemo(()=>op(e),[e]),h=a&&!d?[]:p.map(Ys),m=L.useRef(!0),g=L.useRef(p),y=kc(()=>new Map),v=L.useRef(new Set),[C,x]=L.useState(p),[S,T]=L.useState(p);hm(()=>{m.current=!1,g.current=p;for(let A=0;A<S.length;A++){const O=Ys(S[A]);h.includes(O)?(y.delete(O),v.current.delete(O)):y.get(O)!==!0&&y.set(O,!1)}},[S,h.length,h.join("-")]);const E=[];if(p!==C){let A=[...p];for(let O=0;O<S.length;O++){const V=S[O],j=Ys(V);h.includes(j)||(A.splice(O,0,V),E.push(V))}return i==="wait"&&E.length&&(A=E),T(op(A)),x(p),null}process.env.NODE_ENV!=="production"&&i==="wait"&&S.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}=L.useContext(Oc);return b.jsx(b.Fragment,{children:S.map(A=>{const O=Ys(A),V=a&&!d?!1:p===S||h.includes(O),j=()=>{if(v.current.has(O))return;if(v.current.add(O),y.has(O))y.set(O,!0);else return;let w=!0;y.forEach(N=>{N||(w=!1)}),w&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(dP,{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:A},O)})})},Lg=L.createContext({strict:!1}),sp={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 ip=!1;function pP(){if(ip)return;const e={};for(const t in sp)e[t]={isEnabled:n=>sp[t].some(o=>!!n[o])};fg(e),ip=!0}function $g(){return pP(),JC()}function hP(e){const t=$g();for(const n in e)t[n]={...t[n],...e[n]};fg(t)}const mP=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 Pi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mP.has(e)}let Vg=e=>!Pi(e);function gP(e){typeof e=="function"&&(Vg=t=>t.startsWith("on")?!Pi(t):e(t))}try{gP(require("@emotion/is-prop-valid").default)}catch{}function yP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Vg(r)||n===!0&&Pi(r)||!t&&!Pi(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const na=L.createContext({});function bP(e,t){if(ta(e)){const{initial:n,animate:o}=e;return{initial:n===!1||us(n)?n:void 0,animate:us(o)?o:void 0}}return e.inherit!==!1?t:{}}function vP(e){const{initial:t,animate:n}=bP(e,L.useContext(na));return L.useMemo(()=>({initial:t,animate:n}),[ap(t),ap(n)])}function ap(e){return Array.isArray(e)?e.join(" "):e}const ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fg(e,t,n){for(const o in t)!kt(t[o])&&!vg(o,n)&&(e[o]=t[o])}function xP({transformTemplate:e},t){return L.useMemo(()=>{const n=ru();return tu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function SP(e,t){const n=e.style||{},o={};return Fg(o,n,e),Object.assign(o,xP(e,t)),o}function wP(e,t){const n={},o=SP(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 Bg=()=>({...ru(),attrs:{}});function CP(e,t,n,o){const r=L.useMemo(()=>{const i=Bg();return xg(i,t,wg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fg(i,e.style,e),r.style={...i,...r.style}}return r}const TP=["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 su(e){return typeof e!="string"||e.includes("-")?!1:!!(TP.indexOf(e)>-1||/[A-Z]/u.test(e))}function PP(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??su(e)?CP:wP)(t,o,r,e),u=yP(t,typeof e=="string",i),d=e!==L.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=L.useMemo(()=>kt(f)?f.get():f,[f]);return L.createElement(e,{...d,children:p})}function EP({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:MP(n,o,r,e),renderState:t()}}function MP(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=ui(i[p]);let{initial:a,animate:l}=e;const c=ta(e),u=dg(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"&&!ea(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=Gc(e,p[h]);if(m){const{transitionEnd:g,transition:y,...v}=m;for(const C in v){let x=v[C];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(r[C]=x)}for(const C in g)r[C]=g[C]}}}return r}const zg=e=>(t,n)=>{const o=L.useContext(na),r=L.useContext(Ji),i=()=>EP(e,t,o,r);return n?i():kc(i)},OP=zg({scrapeMotionValuesFromProps:nu,createRenderState:ru}),kP=zg({scrapeMotionValuesFromProps:Cg,createRenderState:Bg}),DP=Symbol.for("motionComponentSymbol");function RP(e,t,n){const o=L.useRef(n);L.useInsertionEffect(()=>{o.current=n});const r=L.useRef(null);return L.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 Wg=L.createContext({});function zr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IP(e,t,n,o,r,i){var x,S;const{visualElement:a}=L.useContext(na),l=L.useContext(Lg),c=L.useContext(Ji),u=L.useContext(ou),d=u.reducedMotion,f=u.skipAnimations,p=L.useRef(null),h=L.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=L.useContext(Wg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&AP(p.current,n,r,g);const y=L.useRef(!1);L.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[Xm],C=L.useRef(!!v&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,v))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,v)));return hm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),L.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),C.current=!1),m.enteringChildren=void 0)}),m}function AP(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:Ug(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 Ug(e){if(e)return e.options.allowProjection!==!1?e.projection:Ug(e.parent)}function el(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&hP(o);const i=n?n==="svg":su(e),a=i?kP:OP;function l(u,d){let f;const p={...L.useContext(ou),...u,layoutId:NP(u)},{isStatic:h}=p,m=vP(u),g=a(u,h);if(!h&&pm){_P(p,o);const y=jP(p);f=y.MeasureLayout,m.visualElement=IP(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(na.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,PP(e,u,RP(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=L.forwardRef(l);return c[DP]=e,c}function NP({layoutId:e}){const t=L.useContext(Oc).id;return t&&e!==void 0?t+"-"+e:e}function _P(e,t){const n=L.useContext(Lg).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?mr(!1,o,"lazy-strict-mode"):Dn(!1,o,"lazy-strict-mode")}}function jP(e){const t=$g(),{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 LP(e,t){if(typeof Proxy>"u")return el;const n=new Map,o=(i,a)=>el(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&Nc(!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,el(a,void 0,e,t)),n.get(a))})}const $P=(e,t)=>t.isSVG??su(e)?new gT(t):new uT(t,{allowProjection:e!==L.Fragment});class VP extends to{constructor(t){super(t),t.animationState||(t.animationState=ST(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ea(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 FP=0;class BP extends to{constructor(){super(...arguments),this.id=FP++}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 zP={animation:{Feature:VP},exit:{Feature:BP}};function Es(e){return{point:{x:e.pageX,y:e.pageY}}}const WP=e=>t=>Qc(t)&&e(t,Es(t));function Qr(e,t,n,o){return ds(e,t,WP(n),o)}const Hg=({current:e})=>e?e.ownerDocument.defaultView:null,lp=(e,t)=>Math.abs(e-t);function UP(e,t){const n=lp(e.x,t.x),o=lp(e.y,t.y);return Math.sqrt(n**2+o**2)}const cp=new Set(["auto","scroll"]);class Yg{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=nl(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=UP(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=Pt;this.history.push({...y,timestamp:v});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=tl(m,this.transformPagePoint),Qe.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 C=nl(h.type==="pointercancel"?this.lastMoveEventInfo:tl(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!Qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Es(t),u=tl(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Pt;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,nl(u,this.history)),this.removeListeners=Cs(Qr(this.contextWindow,"pointermove",this.handlePointerMove),Qr(this.contextWindow,"pointerup",this.handlePointerUp),Qr(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),Qe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kn(this.updatePoint)}}function tl(e,t){return t?{point:t(e.point)}:e}function up(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nl({point:e},t){return{point:e,delta:up(e,qg(t)),offset:up(e,HP(t)),velocity:YP(t,.1)}}function HP(e){return e[0]}function qg(e){return e[e.length-1]}function YP(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>mn(t)));)n--;if(!o)return{x:0,y:0};const i=Gt(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 qP(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?st(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?st(n,e,o.max):Math.min(e,n)),e}function dp(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 GP(e,{top:t,left:n,bottom:o,right:r}){return{x:dp(e.x,n,r),y:dp(e.y,t,o)}}function fp(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 KP(e,t){return{x:fp(e.x,t.x),y:fp(e.y,t.y)}}function ZP(e,t){let n=.5;const o=Nt(e),r=Nt(t);return r>o?n=as(t.min,t.max-o,e.min):o>r&&(n=as(e.min,e.max-r,t.min)),vn(0,1,n)}function XP(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 Xl=.35;function QP(e=Xl){return e===!1?e=0:e===!0&&(e=Xl),{x:pp(e,"left","right"),y:pp(e,"top","bottom")}}function pp(e,t,n){return{min:hp(e,t),max:hp(e,n)}}function hp(e,t){return typeof e=="number"?e:e[t]||0}const JP=new WeakMap;class eE{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=vt(),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(Es(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=BC(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),Ht(v=>{let C=this.getAxisMotionValue(v).get()||0;if(gn.test(C)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(C=Nt(S)*(parseFloat(C)/100))}}this.originPoint[v]=C}),g&&Qe.postRender(()=>g(f,p)),Wl(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=tE(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=()=>Ht(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 Yg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Hg(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&&Qe.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||!qs(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=qP(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=GP(o.layoutBox,t):this.constraints=!1,this.elastic=QP(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ht(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=XP(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zr(t))return!1;const o=t.current;Dn(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=rT(o,r.root,this.visualElement.getTransformPagePoint());let a=KP(r.layout.layoutBox,i);if(n){const l=n(tT(a));this.hasMutatedConstraints=!!l,l&&(a=hg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Ht(d=>{if(!qs(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 Wl(this.visualElement,t),o.start(qc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Ht(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ht(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){Ht(n=>{const{drag:o}=this.getProps();if(!qs(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]-st(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};Ht(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=ZP({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(),Ht(a=>{if(!qs(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(st(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;JP.set(this.visualElement,this);const t=this.visualElement.current,n=Qr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&lg(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()),Qe.read(o);const a=ds(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ht(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=Xl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function qs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nE extends to{constructor(t){super(t),this.removeGroupControls=Kt,this.removeListeners=Kt,this.controls=new eE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kt}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&&Qe.postRender(()=>e(t,n))};class oE extends to{constructor(){super(...arguments),this.removePointerDownListener=Kt}onPointerDown(t){this.session=new Yg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hg(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&&Qe.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=Qr(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 ol=!1;class rE extends L.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),ol&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),di.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}),ol=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Qe.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;ol=!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 Gg(e){const[t,n]=jg(),o=L.useContext(Oc);return b.jsx(rE,{...e,layoutGroup:o,switchLayoutGroup:L.useContext(Wg),isPresent:t,safeToRemove:n})}const sE={pan:{Feature:oE},drag:{Feature:nE,ProjectionNode:_g,MeasureLayout:Gg}};function gp(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&&Qe.postRender(()=>i(t,Es(t)))}class iE extends to{mount(){const{current:t}=this.node;t&&(this.unmount=zC(t,(n,o)=>(gp(this.node,o,"Start"),r=>gp(this.node,r,"End"))))}unmount(){}}class aE extends to{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=Cs(ds(this.node.current,"focus",()=>this.onFocus()),ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yp(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&&Qe.postRender(()=>i(t,Es(t)))}class lE extends to{mount(){const{current:t}=this.node;t&&(this.unmount=HC(t,(n,o)=>(yp(this.node,o,"Start"),(r,{success:i})=>yp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ql=new WeakMap,rl=new WeakMap,cE=e=>{const t=Ql.get(e.target);t&&t(e)},uE=e=>{e.forEach(cE)};function dE({root:e,...t}){const n=e||document;rl.has(n)||rl.set(n,{});const o=rl.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(uE,{root:e,...t})),o[r]}function fE(e,t,n){const o=dE(t);return Ql.set(e,n),o.observe(e),()=>{Ql.delete(e),o.unobserve(e)}}const pE={some:0,all:1};class hE extends to{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:pE[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 fE(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(mE(t,n))&&this.startObserver()}unmount(){}}function mE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const gE={inView:{Feature:hE},tap:{Feature:lE},focus:{Feature:aE},hover:{Feature:iE}},yE={layout:{ProjectionNode:_g,MeasureLayout:Gg}},bE={...zP,...gE,...sE,...yE},Bo=LP(bE,$P),Xo=15.5,vE=18,xE=16,SE=Xo,iu=({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})]});iu.displayName="FacialIcon";const au=({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})});au.displayName="LPRIcon";const Ms="Facial",Os="LPR",wE=[Ms,Os];function CE(e,t){return e===Ms?b.jsx(iu,{fill:t,size:16}):e===Os?b.jsx(au,{fill:t,size:16}):null}function TE(e,t=18,n){return e===Ms?b.jsx(iu,{fill:n,size:t}):e===Os?b.jsx(au,{fill:n,size:t}):null}function PE(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&wE.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:CE(o,t)}))}const EE="_spotWrapper_p7ng0_1",ME="_mapSpot_p7ng0_8",OE="_selected_p7ng0_24",kE="_rotationLines_p7ng0_36",DE="_rotationLine_p7ng0_36",RE="_rotationLineInner_p7ng0_56",IE="_rotationConeSvg_p7ng0_63",AE="_rotationLineSvg_p7ng0_77",NE="_cameraButtonAtTip_p7ng0_89",_E="_cameraButtonSelected_p7ng0_107",jE="_cameraButtonAtTipIcon_p7ng0_129",LE="_count_p7ng0_137",$E="_cameraTypesContainer_p7ng0_157",VE="_cameraTypeItem_p7ng0_164",FE="_cameraTypeCount_p7ng0_171",BE="_cameraTypeIcon_p7ng0_182",Mt={spotWrapper:EE,mapSpot:ME,selected:OE,rotationLines:kE,rotationLine:DE,rotationLineInner:RE,rotationConeSvg:IE,rotationLineSvg:AE,cameraButtonAtTip:NE,cameraButtonSelected:_E,cameraButtonAtTipIcon:jE,count:LE,cameraTypesContainer:$E,cameraTypeItem:VE,cameraTypeCount:FE,cameraTypeIcon:BE},Kg=({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})]});Kg.displayName="ArrowIcon";const Zg=({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})`})]})};Zg.displayName="ConeIcon";const zE=Bo(H.Box),lu=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,selectedCameraId:i,disableClick:a=!1,className:l,onClick:c,onCameraClick:u,sx:d})=>{const p=H.useTheme().palette.mode==="dark",h=p?"#101111":"#FDFCFC",m=L.useMemo(()=>PE(n,h),[n,h]),g=m&&m.length>0,y=!r&&g&&o>=Xo,v=p?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",x=r?p?"var(--Tertiary-Tertiary, #CEE643)":"var(--Tertiary-Tertiary, #44808C)":v,S=p?"#101111":"#ffffff",T=p?"#CEE643":"#44808C",E=8,M=n??[],A=r&&M.length>0;return b.jsxs("div",{className:Mt.spotWrapper,"data-theme":p?"dark":"light",children:[b.jsx(rp,{children:A&&b.jsx(Bo.div,{className:Mt.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:M.map((O,V)=>{const j=i===O.id,w=p?"#101111":"#FDFCFC";return b.jsx("div",{className:Mt.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${O.orientation??0}deg)`},children:b.jsxs(Bo.div,{className:Mt.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:V*.08},children:[b.jsx(Zg,{fill:T,className:Mt.rotationConeSvg}),b.jsx(Kg,{fill:S,className:Mt.rotationLineSvg}),b.jsx("button",{type:"button",className:`${Mt.cameraButtonAtTip} ${j?Mt.cameraButtonSelected:""}`,onClick:N=>{N.stopPropagation(),u==null||u(O)},"aria-label":`Câmera ${O.algorithm??"câmera"}`,children:b.jsx("span",{className:Mt.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(O.orientation??0)}deg)`},children:TE(O.algorithm,18,w)})})]})},O.id??V)})})}),b.jsx(zE,{className:`${Mt.mapSpot} ${r?Mt.selected:""} ${l||""}`,onClick:a?void 0:c,sx:{...d,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${E}px solid transparent`,borderRight:`${E}px solid transparent`,borderTop:`${E}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"}},style:{"--arrow-color":v,"--arrow-opacity":y?1:0},animate:{width:y?"auto":r?34:30,height:y?"auto":r?28:30,borderRadius:"100px",backgroundColor:x,padding:y?"4px 8px":0,y:y?-E:0,"--arrow-opacity":y?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(rp,{mode:"wait",children:y?b.jsx(Bo.div,{className:Mt.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:m.map((O,V)=>b.jsxs(Bo.div,{className:Mt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:V*.05},children:[b.jsx(H.Typography,{className:Mt.cameraTypeCount,children:O.count}),O.icon&&b.jsx(H.Box,{className:Mt.cameraTypeIcon,children:O.icon})]},V))},"expanded"):b.jsx(Bo.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(H.Typography,{className:Mt.count,children:e})},"collapsed")})})]})};lu.displayName="MapSpot";const WE="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%203.1875C0.75%201.84104%201.84104%200.75%203.1875%200.75L5.625%200.75V2.25H3.1875C2.66946%202.25%202.25%202.66946%202.25%203.1875V5.625H0.75L0.75%203.1875Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M0.75%2014.8125L0.75%2012.375H2.25V14.8125C2.25%2015.3305%202.66946%2015.75%203.1875%2015.75H5.625V17.25H3.1875C1.84104%2017.25%200.75%2016.159%200.75%2014.8125Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M15.75%2014.8125V12.375H17.25V14.8125C17.25%2016.159%2016.159%2017.25%2014.8125%2017.25H12.375V15.75H14.8125C15.3305%2015.75%2015.75%2015.3305%2015.75%2014.8125Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M15.75%203.1875C15.75%202.66946%2015.3305%202.25%2014.8125%202.25H12.375V0.75L14.8125%200.75C16.159%200.75%2017.25%201.84104%2017.25%203.1875V5.625H15.75V3.1875Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M10.8889%2010.5C11.6372%2010.5%2012.3895%2010.6845%2012.991%2011.053L12.9902%2011.0537C13.3468%2011.2719%2013.6565%2011.5584%2013.8684%2011.9092L14.5298%2013.0049L13.2451%2013.7798L12.5845%2012.6841C12.5191%2012.576%2012.3992%2012.4499%2012.2073%2012.3325C11.8787%2012.1312%2011.4076%2012%2010.8889%2012H7.11108C6.59216%2012%206.1214%2012.1305%205.79199%2012.3318L5.79272%2012.3325C5.64854%2012.4207%205.54509%2012.5138%205.47485%2012.6006L5.41553%2012.6841L4.75488%2013.7798L3.47021%2013.0049L4.13086%2011.9092C4.34281%2011.5583%204.6531%2011.2712%205.00977%2011.053C5.6104%2010.6859%206.36112%2010.5%207.11108%2010.5H10.8889Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M10.5%206.75C10.5%205.92157%209.82843%205.25%209%205.25C8.17157%205.25%207.5%205.92157%207.5%206.75C7.5%207.57843%208.17157%208.25%209%208.25C9.82843%208.25%2010.5%207.57843%2010.5%206.75ZM12%206.75C12%208.40685%2010.6569%209.75%209%209.75C7.34315%209.75%206%208.40685%206%206.75C6%205.09315%207.34315%203.75%209%203.75C10.6569%203.75%2012%205.09315%2012%206.75Z'%20fill='%23FDFCFC'/%3e%3c/svg%3e",UE="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.25%2014.8125C2.25%2015.3305%202.66946%2015.75%203.1875%2015.75H5.625V17.25H3.1875C1.84104%2017.25%200.75%2016.159%200.75%2014.8125L0.75%2012.375H2.25V14.8125ZM17.25%2014.8125C17.25%2016.159%2016.159%2017.25%2014.8125%2017.25H12.375L12.375%2015.75H14.8125C15.3305%2015.75%2015.75%2015.3305%2015.75%2014.8125V12.375L17.25%2012.375V14.8125ZM14.135%206.35229C14.2958%206.19142%2014.5379%206.14314%2014.748%206.22998C14.9583%206.31702%2015.0959%206.52245%2015.0959%206.75V10.5015C15.0959%2010.812%2014.8439%2011.0638%2014.5334%2011.064C14.2228%2011.0639%2013.9709%2010.8121%2013.9709%2010.5015V8.10571C13.7502%208.30415%2013.4107%208.29824%2013.1982%208.08594C12.9785%207.86637%2012.9787%207.51027%2013.1982%207.29053L14.135%206.35229ZM11.3298%206.19336C11.5137%206.21969%2011.6748%206.33566%2011.7568%206.5061C11.8505%206.70099%2011.8245%206.93272%2011.6895%207.10156L9.42041%209.9375H11.25C11.5607%209.9375%2011.8125%2010.1893%2011.8125%2010.5C11.8125%2010.8107%2011.5607%2011.0625%2011.25%2011.0625H8.25C8.03386%2011.0625%207.83688%2010.9386%207.74316%2010.7439C7.6495%2010.549%207.67547%2010.3173%207.81055%2010.1484L10.0796%207.3125L8.25%207.3125C7.93934%207.3125%207.6875%207.06066%207.6875%206.75C7.6875%206.43934%207.93934%206.1875%208.25%206.1875L11.25%206.1875L11.3298%206.19336ZM5.25%206.19482C5.45567%206.22809%205.62952%206.37352%205.69531%206.57642L6.9104%2010.3264C7.00614%2010.6219%206.84405%2010.9396%206.54858%2011.0354C6.25308%2011.1311%205.93539%2010.9691%205.8396%2010.6736L5.72241%2010.3125H3.65259L3.5354%2010.6736C3.43961%2010.9691%203.12192%2011.1311%202.82642%2011.0354C2.53095%2010.9396%202.36886%2010.6219%202.4646%2010.3264L2.68579%209.6416C2.69424%209.59828%202.7083%209.55696%202.72607%209.51782L3.67969%206.57642L3.71411%206.49365C3.80908%206.30792%204.00155%206.1875%204.21509%206.1875H5.15991L5.25%206.19482ZM4.0166%209.1875H5.3584L4.75122%207.3125H4.62378L4.0166%209.1875ZM5.625%202.25H3.1875C2.66946%202.25%202.25%202.66946%202.25%203.1875V5.625H0.75L0.75%203.1875C0.75%201.84104%201.84104%200.75%203.1875%200.75L5.625%200.75V2.25ZM14.8125%200.75C16.159%200.75%2017.25%201.84104%2017.25%203.1875V5.625H15.75V3.1875C15.75%202.66946%2015.3305%202.25%2014.8125%202.25H12.375V0.75L14.8125%200.75Z'%20fill='%23FDFCFC'/%3e%3c/svg%3e",HE="_cameraCard_1u27d_2",YE="_topContainer_1u27d_52",qE="_mediaImage_1u27d_66",GE="_mediaPlaceholder_1u27d_73",KE="_menuButton_1u27d_79",ZE="_menuButtonIcon_1u27d_98",XE="_closeButton_1u27d_104",QE="_closeButtonIcon_1u27d_123",JE="_bottomContainer_1u27d_129",eM="_infoRow_1u27d_141",tM="_iconWrapper_1u27d_148",nM="_cameraIcon_1u27d_156",oM="_cameraTypeImage_1u27d_163",rM="_textColumn_1u27d_171",sM="_headerText_1u27d_180",iM="_subheadText_1u27d_190",aM="_streetText_1u27d_200",lM="_supportText_1u27d_201",cM="_tagsContainer_1u27d_211",uM="_tag_1u27d_211",dM="_tagOverflow_1u27d_224",fM="_recordingButtonContainer_1u27d_245",pM="_menuButtonInline_1u27d_254",hM="_menuButtonInlineIcon_1u27d_273",mM="_recordingButton_1u27d_245",gM="_recordingButtonIcon_1u27d_304",yM="_recordingButtonText_1u27d_307",bM="_cameraCardMenuPaper_1u27d_338",vM="_cameraCardMenuList_1u27d_362",xM="_cameraCardMenuItem_1u27d_370",SM="_cameraCardMenuItemText_1u27d_409",Ne={cameraCard:HE,topContainer:YE,mediaImage:qE,mediaPlaceholder:GE,menuButton:KE,menuButtonIcon:ZE,closeButton:XE,closeButtonIcon:QE,bottomContainer:JE,infoRow:eM,iconWrapper:tM,cameraIcon:nM,cameraTypeImage:oM,textColumn:rM,headerText:sM,subheadText:iM,streetText:aM,supportText:lM,tagsContainer:cM,tag:uM,tagOverflow:dM,recordingButtonContainer:fM,menuButtonInline:pM,menuButtonInlineIcon:hM,recordingButton:mM,recordingButtonIcon:gM,recordingButtonText:yM,cameraCardMenuPaper:bM,cameraCardMenuList:vM,cameraCardMenuItem:xM,cameraCardMenuItemText:SM};function wM(e){return e===Ms?b.jsx("img",{src:WE,alt:"Facial",width:20,height:20,className:Ne.cameraTypeImage}):e===Os?b.jsx("img",{src:UE,alt:"LPR",width:20,height:20,className:Ne.cameraTypeImage}):b.jsx(Ot.VideocamOutlined,{className:Ne.cameraIcon})}const CM=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u,recordingButton:d,onClose:f})=>{const h=ie.useTheme().palette.mode==="dark",m=o??"",g=n??"",y=L.useRef(null),v=L.useRef(null),[C,x]=L.useState(r.length),[S,T]=L.useState(!1),E=L.useRef(!1),M=((l==null?void 0:l.length)??0)>0||c,A=((l==null?void 0:l.length)??0)>0;L.useLayoutEffect(()=>{r.length!==0&&(x(r.length),E.current=!1)},[r.length]),L.useLayoutEffect(()=>{const N=y.current;if(!N||r.length===0)return;const R=()=>{if(!N)return;const{scrollWidth:D,clientWidth:_}=N;D>_?(E.current=!0,x(F=>Math.max(0,F-1))):!E.current&&C<r.length?x(F=>Math.min(r.length,F+1)):E.current=!1};R();const I=new ResizeObserver(R);return I.observe(N),()=>I.disconnect()},[r.length,C]);const O=C<r.length,V=O?r.slice(0,C):r,j=O?r.length-C:0,w=r.length>0?r.join(", "):"";return b.jsxs(H.Box,{className:`${Ne.cameraCard} ${u||""}`.trim(),"data-theme":h?"dark":"light",children:[b.jsxs(H.Box,{className:Ne.topContainer,children:[i?b.jsx("img",{src:i,alt:"",className:Ne.mediaImage}):b.jsx(H.Box,{className:Ne.mediaPlaceholder,"aria-hidden":!0}),d&&f&&b.jsx(H.IconButton,{onClick:f,className:Ne.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(Ot.Close,{className:Ne.closeButtonIcon})}),M&&!d&&b.jsx(H.IconButton,{ref:v,onClick:()=>{A?T(!0):c==null||c()},className:Ne.menuButton,"aria-label":"Opções","aria-haspopup":A?"menu":void 0,"aria-expanded":S,size:"small",children:b.jsx(Ot.MoreHoriz,{className:Ne.menuButtonIcon})})]}),A&&b.jsx(H.Popover,{open:S,anchorEl:v.current,onClose:()=>T(!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(H.Box,{className:Ne.cameraCardMenuPaper,"data-theme":h?"dark":"light",children:b.jsx(H.Box,{className:Ne.cameraCardMenuList,role:"menu",children:l.map(N=>b.jsx("button",{type:"button",className:Ne.cameraCardMenuItem,role:"menuitem",onClick:()=>{var R;(R=N.onClick)==null||R.call(N),T(!1)},children:b.jsx("span",{className:Ne.cameraCardMenuItemText,children:N.label})},N.label))})})}),b.jsxs(H.Box,{className:Ne.bottomContainer,children:[b.jsxs(H.Box,{className:Ne.infoRow,children:[b.jsx(H.Box,{className:Ne.iconWrapper,children:wM(a)}),b.jsxs(H.Box,{className:Ne.textColumn,children:[b.jsx("span",{className:Ne.headerText,children:e}),g&&b.jsx("span",{className:Ne.subheadText,children:g}),b.jsx("span",{className:Ne.streetText,children:t}),m&&b.jsx("span",{className:Ne.supportText,children:m})]})]}),d?b.jsxs(H.Box,{className:Ne.recordingButtonContainer,children:[M&&b.jsx(H.IconButton,{ref:v,onClick:()=>{A?T(!0):c==null||c()},className:Ne.menuButtonInline,"aria-label":"Opções","aria-haspopup":A?"menu":void 0,"aria-expanded":S,size:"small",children:b.jsx(Ot.MoreHoriz,{className:Ne.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:Ne.recordingButton,onClick:N=>{N.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(Ot.VideocamOutlined,{className:Ne.recordingButtonIcon}),b.jsx("span",{className:Ne.recordingButtonText,children:"Ver gravação"})]})]}):r.length>0&&b.jsx(H.Tooltip,{title:w,placement:"top",enterDelay:300,children:b.jsxs(H.Box,{ref:y,className:Ne.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[V.map(N=>b.jsx("span",{className:Ne.tag,children:N},N)),O&&b.jsxs("span",{className:Ne.tagOverflow,children:["+",j]})]})})]})]})},TM=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},PM=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},EM="_container_1whpg_2",MM="_zoomButton_1whpg_10",OM="_stateLayer_1whpg_43",kM="_icon_1whpg_59",dn={container:EM,zoomButton:MM,stateLayer:OM,icon:kM},DM=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=H.useTheme().palette.mode==="dark",u=TM(e,o,i),d=PM(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(H.Box,{className:`${dn.container} ${t||""}`,sx:n,children:[b.jsx(H.IconButton,{className:dn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(H.Box,{className:dn.stateLayer,children:b.jsx(Ot.Add,{className:dn.icon,sx:p})})}),b.jsx(H.IconButton,{className:dn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(H.Box,{className:dn.stateLayer,children:b.jsx(Ot.Remove,{className:dn.icon,sx:p})})}),b.jsx(H.IconButton,{className:dn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(H.Box,{className:dn.stateLayer,children:b.jsx(Ot.ZoomOutMap,{className:dn.icon,sx:p})})})]})};var RM=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 IM=Qn(RM),AM="1.7.1";function ir(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 Jl(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 Pn={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},NM="https://maps.googleapis.com/maps/api/js";class Ei{static load(t,n){return Jl(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=Pn.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=NM+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=Pn.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=Pn.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=Pn.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=Pn.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)}}Ei.loadingStatus=Pn.NOT_LOADED;Ei.listeners=[];const _M="GMP_visgl_rgmlibrary_v1_default",jM=[`gmp_visgl_reactgooglemaps_v${AM}`],ks=L.createContext(null);function LM(){const[e,t]=L.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=ir(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function $M(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=ir(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=L.useState(Ei.loadingStatus),[u,d]=L.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=L.useMemo(()=>i==null?void 0:i.join(","),[i]),p=L.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=L.useCallback(m=>Jl(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 L.useEffect(()=>{Jl(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=_M:m.solutionChannel===""&&delete m.solutionChannel,yield Ei.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 VM(e){return L.useMemo(()=>e.disableUsageAttribution?null:jM,[e.disableUsageAttribution])}const FM=e=>{const{children:t}=e,n=ir(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=LM(),{status:l,loadedLibraries:c,importLibrary:u}=$M(n),d=VM(n),f=L.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 L.createElement(ks.Provider,{value:f},t)};function BM(e,t){for(const n of HM){const o=t[n],r=Xg[n];L.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(zM(r,e,a))});return()=>i.remove()},[e,r,o])}}function zM(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(WM.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(UM.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 Xg={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"},WM=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],UM=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],HM=Object.keys(Xg);function YM(e){const t=L.useRef(void 0);return L.useEffect(()=>{t.current=e}),t.current}function qM(e,t){const n=YM(e);return L.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function GM(e,t,n){L.useEffect(e,[qM(t,n)])}function KM(e,t){GM(e,t,IM)}const ZM=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 XM(e,t){const n={},o=Object.keys(t);for(const r of o)ZM.has(r)&&(n[r]=t[r]);KM(()=>{e&&e.setOptions(n)},[n])}function Qg(){var e;return((e=L.useContext(ks))===null||e===void 0?void 0:e.status)||Pn.NOT_LOADED}function QM(e,t){const{viewport:n,viewState:o}=t,r=!!n;return L.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 JM(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function Jg(e){return JM(e)?e:e.toJSON()}function eO(e,t,n){const o=n.center?Jg(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;L.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 tO=()=>{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 L.createElement("div",{style:e},L.createElement("h2",null,"Error: AuthFailure"),L.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",L.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function nO(){const[e,t]=L.useState(null),n=L.useCallback(o=>t(o),[t]);return[e,n]}function ey(){return Qg()===Pn.LOADED}function oO(){const[,e]=L.useReducer(t=>t+1,0);return e}function rO(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 sO(e){const t=oO(),n=L.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return L.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{rO(e,n),t()});return()=>o.remove()},[e,t]),n}class fi{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)}}fi.entries={};function iO(e,t){const n=ey(),[o,r]=L.useState(null),[i,a]=nO(),l=sO(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=ir(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),C=e.zoom!==void 0||e.defaultZoom!==void 0,x=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!C||!x)&&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 S=v.internalUsageAttributionIds;S==null?v.internalUsageAttributionIds=t.internalUsageAttributionIds:v.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...S];for(const E of Object.keys(v))v[E]===void 0&&delete v[E];const T=L.useRef(void 0);return L.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:A}=e,O=`${A||"default"}:${g||"default"}:${y||"LIGHT"}`;let V,j;if(m&&fi.has(O)?(j=fi.pop(O),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:w}=u,N=ir(u,["padding"]);j.fitBounds(N,w)}else(!C||!x)&&j.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:w,cameraState:N}=T.current;w!==A&&j.setOptions(N)}return()=>{T.current={mapId:A,cameraState:l.current},V.remove(),m?fi.push(O,j):google.maps.event.clearInstanceListeners(j),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const ty=L.createContext(null),ny=e=>{const{children:t,id:n,className:o,style:r}=e,i=L.useContext(ks),a=Qg();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=iO(e,i);eO(l,u,e),BM(l,e),XM(l,e);const d=QM(l,e),f=!!e.controlled;L.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?Jg(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=L.useMemo(()=>{var C,x,S;return{center:{lat:h??0,lng:m??0},zoom:(C=e.zoom)!==null&&C!==void 0?C:0,heading:(x=e.heading)!==null&&x!==void 0?x:0,tilt:(S=e.tilt)!==null&&S!==void 0?S:0}},[h,m,e.zoom,e.heading,e.tilt]);L.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const C=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>C.remove()},[l,f,g]);const y=L.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),v=L.useMemo(()=>({map:l}),[l]);return a===Pn.AUTH_FAILURE?L.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},L.createElement(tO,null)):L.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?L.createElement(ty.Provider,{value:v},t):null)};ny.deckGLViewProps=!0;const bp=new Set;function aO(...e){const t=JSON.stringify(e);bp.has(t)||(bp.add(t),console.error(...e))}const oa=(e=null)=>{const t=L.useContext(ks),{map:n}=L.useContext(ty)||{};if(t===null)return aO("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 lO(e){const t=ey(),n=L.useContext(ks);return L.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function Gs(e,t,n){L.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function Ks(e,t,n){L.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function vp(e,t,n){L.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class cO{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(w)&&T.removeChild(w)}},[t]),b.jsx(fP,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const hP=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Dc(mP),f=_.useId();let p=!0,h=_.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}),_.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),P.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=b.jsx(pP,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(Ji.Provider,{value:h,children:e})};function mP(){return new Map}function Vg(e=!0){const t=_.useContext(Ji);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=_.useId();_.useEffect(()=>{if(e)return r(i)},[e]);const a=_.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const Ys=e=>e.key||"";function rp(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const sp=({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]=Vg(a),p=_.useMemo(()=>rp(e),[e]),h=a&&!d?[]:p.map(Ys),m=_.useRef(!0),g=_.useRef(p),y=Dc(()=>new Map),v=_.useRef(new Set),[C,S]=_.useState(p),[w,T]=_.useState(p);ym(()=>{m.current=!1,g.current=p;for(let A=0;A<w.length;A++){const k=Ys(w[A]);h.includes(k)?(y.delete(k),v.current.delete(k)):y.get(k)!==!0&&y.set(k,!1)}},[w,h.length,h.join("-")]);const E=[];if(p!==C){let A=[...p];for(let k=0;k<w.length;k++){const V=w[k],L=Ys(V);h.includes(L)||(A.splice(k,0,V),E.push(V))}return i==="wait"&&E.length&&(A=E),T(rp(A)),S(p),null}process.env.NODE_ENV!=="production"&&i==="wait"&&w.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}=_.useContext(kc);return b.jsx(b.Fragment,{children:w.map(A=>{const k=Ys(A),V=a&&!d?!1:p===w||h.includes(k),L=()=>{if(v.current.has(k))return;if(v.current.add(k),y.has(k))y.set(k,!0);else return;let x=!0;y.forEach(j=>{j||(x=!1)}),x&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(hP,{isPresent:V,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:V?void 0:L,anchorX:l,anchorY:c,children:A},k)})})},Fg=_.createContext({strict:!1}),ip={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 ap=!1;function gP(){if(ap)return;const e={};for(const t in ip)e[t]={isEnabled:n=>ip[t].some(o=>!!n[o])};mg(e),ap=!0}function Bg(){return gP(),nT()}function yP(e){const t=Bg();for(const n in e)t[n]={...t[n],...e[n]};mg(t)}const bP=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 Pi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bP.has(e)}let zg=e=>!Pi(e);function vP(e){typeof e=="function"&&(zg=t=>t.startsWith("on")?!Pi(t):e(t))}try{vP(require("@emotion/is-prop-valid").default)}catch{}function xP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(zg(r)||n===!0&&Pi(r)||!t&&!Pi(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const na=_.createContext({});function SP(e,t){if(ta(e)){const{initial:n,animate:o}=e;return{initial:n===!1||us(n)?n:void 0,animate:us(o)?o:void 0}}return e.inherit!==!1?t:{}}function wP(e){const{initial:t,animate:n}=SP(e,_.useContext(na));return _.useMemo(()=>({initial:t,animate:n}),[lp(t),lp(n)])}function lp(e){return Array.isArray(e)?e.join(" "):e}const su=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wg(e,t,n){for(const o in t)!kt(t[o])&&!wg(o,n)&&(e[o]=t[o])}function CP({transformTemplate:e},t){return _.useMemo(()=>{const n=su();return nu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TP(e,t){const n=e.style||{},o={};return Wg(o,n,e),Object.assign(o,CP(e,t)),o}function PP(e,t){const n={},o=TP(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 Ug=()=>({...su(),attrs:{}});function EP(e,t,n,o){const r=_.useMemo(()=>{const i=Ug();return Cg(i,t,Pg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wg(i,e.style,e),r.style={...i,...r.style}}return r}const MP=["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 iu(e){return typeof e!="string"||e.includes("-")?!1:!!(MP.indexOf(e)>-1||/[A-Z]/u.test(e))}function OP(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??iu(e)?EP:PP)(t,o,r,e),u=xP(t,typeof e=="string",i),d=e!==_.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=_.useMemo(()=>kt(f)?f.get():f,[f]);return _.createElement(e,{...d,children:p})}function kP({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:DP(n,o,r,e),renderState:t()}}function DP(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=ui(i[p]);let{initial:a,animate:l}=e;const c=ta(e),u=hg(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"&&!ea(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=Kc(e,p[h]);if(m){const{transitionEnd:g,transition:y,...v}=m;for(const C in v){let S=v[C];if(Array.isArray(S)){const w=d?S.length-1:0;S=S[w]}S!==null&&(r[C]=S)}for(const C in g)r[C]=g[C]}}}return r}const Hg=e=>(t,n)=>{const o=_.useContext(na),r=_.useContext(Ji),i=()=>kP(e,t,o,r);return n?i():Dc(i)},RP=Hg({scrapeMotionValuesFromProps:ou,createRenderState:su}),IP=Hg({scrapeMotionValuesFromProps:Eg,createRenderState:Ug}),AP=Symbol.for("motionComponentSymbol");function NP(e,t,n){const o=_.useRef(n);_.useInsertionEffect(()=>{o.current=n});const r=_.useRef(null);return _.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 Yg=_.createContext({});function zr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _P(e,t,n,o,r,i){var S,w;const{visualElement:a}=_.useContext(na),l=_.useContext(Fg),c=_.useContext(Ji),u=_.useContext(ru),d=u.reducedMotion,f=u.skipAnimations,p=_.useRef(null),h=_.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=_.useContext(Yg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&jP(p.current,n,r,g);const y=_.useRef(!1);_.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[eg],C=_.useRef(!!v&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,v))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,v)));return ym(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),_.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),C.current=!1),m.enteringChildren=void 0)}),m}function jP(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:qg(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 qg(e){if(e)return e.options.allowProjection!==!1?e.projection:qg(e.parent)}function el(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&yP(o);const i=n?n==="svg":iu(e),a=i?IP:RP;function l(u,d){let f;const p={..._.useContext(ru),...u,layoutId:LP(u)},{isStatic:h}=p,m=wP(u),g=a(u,h);if(!h&&gm){$P(p,o);const y=VP(p);f=y.MeasureLayout,m.visualElement=_P(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(na.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,OP(e,u,NP(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=_.forwardRef(l);return c[AP]=e,c}function LP({layoutId:e}){const t=_.useContext(kc).id;return t&&e!==void 0?t+"-"+e:e}function $P(e,t){const n=_.useContext(Fg).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?gr(!1,o,"lazy-strict-mode"):Dn(!1,o,"lazy-strict-mode")}}function VP(e){const t=Bg(),{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 FP(e,t){if(typeof Proxy>"u")return el;const n=new Map,o=(i,a)=>el(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&_c(!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,el(a,void 0,e,t)),n.get(a))})}const BP=(e,t)=>t.isSVG??iu(e)?new vT(t):new pT(t,{allowProjection:e!==_.Fragment});class zP extends to{constructor(t){super(t),t.animationState||(t.animationState=TT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ea(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 WP=0;class UP extends to{constructor(){super(...arguments),this.id=WP++}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 HP={animation:{Feature:zP},exit:{Feature:UP}};function Es(e){return{point:{x:e.pageX,y:e.pageY}}}const YP=e=>t=>Jc(t)&&e(t,Es(t));function Qr(e,t,n,o){return ds(e,t,YP(n),o)}const Gg=({current:e})=>e?e.ownerDocument.defaultView:null,cp=(e,t)=>Math.abs(e-t);function qP(e,t){const n=cp(e.x,t.x),o=cp(e.y,t.y);return Math.sqrt(n**2+o**2)}const up=new Set(["auto","scroll"]);class Kg{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=nl(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=qP(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=Pt;this.history.push({...y,timestamp:v});const{onStart:C,onMove:S}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=tl(m,this.transformPagePoint),Qe.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 C=nl(h.type==="pointercancel"?this.lastMoveEventInfo:tl(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!Jc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Es(t),u=tl(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Pt;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,nl(u,this.history)),this.removeListeners=Cs(Qr(this.contextWindow,"pointermove",this.handlePointerMove),Qr(this.contextWindow,"pointerup",this.handlePointerUp),Qr(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(up.has(o.overflowX)||up.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),Qe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kn(this.updatePoint)}}function tl(e,t){return t?{point:t(e.point)}:e}function dp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nl({point:e},t){return{point:e,delta:dp(e,Zg(t)),offset:dp(e,GP(t)),velocity:KP(t,.1)}}function GP(e){return e[0]}function Zg(e){return e[e.length-1]}function KP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Zg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>mn(t)));)n--;if(!o)return{x:0,y:0};const i=Gt(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 ZP(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?st(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?st(n,e,o.max):Math.min(e,n)),e}function fp(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 XP(e,{top:t,left:n,bottom:o,right:r}){return{x:fp(e.x,n,r),y:fp(e.y,t,o)}}function pp(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 QP(e,t){return{x:pp(e.x,t.x),y:pp(e.y,t.y)}}function JP(e,t){let n=.5;const o=Nt(e),r=Nt(t);return r>o?n=as(t.min,t.max-o,e.min):o>r&&(n=as(e.min,e.max-r,t.min)),vn(0,1,n)}function eE(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 Ql=.35;function tE(e=Ql){return e===!1?e=0:e===!0&&(e=Ql),{x:hp(e,"left","right"),y:hp(e,"top","bottom")}}function hp(e,t,n){return{min:mp(e,t),max:mp(e,n)}}function mp(e,t){return typeof e=="number"?e:e[t]||0}const nE=new WeakMap;class oE{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=vt(),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(Es(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=UC(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),Ht(v=>{let C=this.getAxisMotionValue(v).get()||0;if(gn.test(C)){const{projection:S}=this.visualElement;if(S&&S.layout){const w=S.layout.layoutBox[v];w&&(C=Nt(w)*(parseFloat(C)/100))}}this.originPoint[v]=C}),g&&Qe.postRender(()=>g(f,p)),Ul(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=rE(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=()=>Ht(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 Kg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Gg(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&&Qe.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||!qs(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=ZP(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=XP(o.layoutBox,t):this.constraints=!1,this.elastic=tE(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ht(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=eE(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zr(t))return!1;const o=t.current;Dn(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=aT(o,r.root,this.visualElement.getTransformPagePoint());let a=QP(r.layout.layoutBox,i);if(n){const l=n(rT(a));this.hasMutatedConstraints=!!l,l&&(a=yg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Ht(d=>{if(!qs(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 Ul(this.visualElement,t),o.start(Gc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Ht(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ht(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){Ht(n=>{const{drag:o}=this.getProps();if(!qs(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]-st(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};Ht(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=JP({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(),Ht(a=>{if(!qs(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(st(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;nE.set(this.visualElement,this);const t=this.visualElement.current,n=Qr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&dg(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()),Qe.read(o);const a=ds(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ht(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=Ql,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function qs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class sE extends to{constructor(t){super(t),this.removeGroupControls=Kt,this.removeListeners=Kt,this.controls=new oE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kt}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 gp=e=>(t,n)=>{e&&Qe.postRender(()=>e(t,n))};class iE extends to{constructor(){super(...arguments),this.removePointerDownListener=Kt}onPointerDown(t){this.session=new Kg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:gp(t),onStart:gp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&Qe.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=Qr(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 ol=!1;class aE extends _.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),ol&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),di.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}),ol=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Qe.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;ol=!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 Xg(e){const[t,n]=Vg(),o=_.useContext(kc);return b.jsx(aE,{...e,layoutGroup:o,switchLayoutGroup:_.useContext(Yg),isPresent:t,safeToRemove:n})}const lE={pan:{Feature:iE},drag:{Feature:sE,ProjectionNode:$g,MeasureLayout:Xg}};function yp(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&&Qe.postRender(()=>i(t,Es(t)))}class cE extends to{mount(){const{current:t}=this.node;t&&(this.unmount=HC(t,(n,o)=>(yp(this.node,o,"Start"),r=>yp(this.node,r,"End"))))}unmount(){}}class uE extends to{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=Cs(ds(this.node.current,"focus",()=>this.onFocus()),ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bp(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&&Qe.postRender(()=>i(t,Es(t)))}class dE extends to{mount(){const{current:t}=this.node;t&&(this.unmount=GC(t,(n,o)=>(bp(this.node,o,"Start"),(r,{success:i})=>bp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Jl=new WeakMap,rl=new WeakMap,fE=e=>{const t=Jl.get(e.target);t&&t(e)},pE=e=>{e.forEach(fE)};function hE({root:e,...t}){const n=e||document;rl.has(n)||rl.set(n,{});const o=rl.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(pE,{root:e,...t})),o[r]}function mE(e,t,n){const o=hE(t);return Jl.set(e,n),o.observe(e),()=>{Jl.delete(e),o.unobserve(e)}}const gE={some:0,all:1};class yE extends to{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:gE[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 mE(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(bE(t,n))&&this.startObserver()}unmount(){}}function bE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vE={inView:{Feature:yE},tap:{Feature:dE},focus:{Feature:uE},hover:{Feature:cE}},xE={layout:{ProjectionNode:$g,MeasureLayout:Xg}},SE={...HP,...vE,...lE,...xE},Wo=FP(SE,BP),wo=15.5,sl=18,wE=wo,au=({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})]});au.displayName="FacialIcon";const lu=({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})});lu.displayName="LPRIcon";const Ms="Facial",Os="LPR",CE=[Ms,Os];function TE(e,t){return e===Ms?b.jsx(au,{fill:t,size:16}):e===Os?b.jsx(lu,{fill:t,size:16}):null}function PE(e,t=18,n){return e===Ms?b.jsx(au,{fill:n,size:t}):e===Os?b.jsx(lu,{fill:n,size:t}):null}function EE(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&CE.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:TE(o,t)}))}const ME="_spotWrapper_p7ng0_1",OE="_mapSpot_p7ng0_8",kE="_selected_p7ng0_24",DE="_rotationLines_p7ng0_36",RE="_rotationLine_p7ng0_36",IE="_rotationLineInner_p7ng0_56",AE="_rotationConeSvg_p7ng0_63",NE="_rotationLineSvg_p7ng0_77",_E="_cameraButtonAtTip_p7ng0_89",jE="_cameraButtonSelected_p7ng0_107",LE="_cameraButtonAtTipIcon_p7ng0_129",$E="_count_p7ng0_137",VE="_cameraTypesContainer_p7ng0_157",FE="_cameraTypeItem_p7ng0_164",BE="_cameraTypeCount_p7ng0_171",zE="_cameraTypeIcon_p7ng0_182",Mt={spotWrapper:ME,mapSpot:OE,selected:kE,rotationLines:DE,rotationLine:RE,rotationLineInner:IE,rotationConeSvg:AE,rotationLineSvg:NE,cameraButtonAtTip:_E,cameraButtonSelected:jE,cameraButtonAtTipIcon:LE,count:$E,cameraTypesContainer:VE,cameraTypeItem:FE,cameraTypeCount:BE,cameraTypeIcon:zE},Qg=({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})]});Qg.displayName="ArrowIcon";const Jg=({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})`})]})};Jg.displayName="ConeIcon";const WE=Wo(H.Box),cu=({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=H.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",y=_.useMemo(()=>EE(n,g),[n,g]),v=y&&y.length>0,C=n&&n.length===1,S=!r&&v&&(C||o>=wo),w=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:w,M=m?"#101111":"#ffffff",A=m?"#CEE643":"#44808C",k=8,V=n??[],L=r&&V.length>0;return b.jsxs("div",{className:Mt.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(sp,{children:L&&b.jsx(Wo.div,{className:Mt.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:V.map((x,j)=>{const O=i===x.id||l===x.id,I=m?"#101111":"#FDFCFC";return b.jsx("div",{className:Mt.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${x.orientation??0}deg)`},children:b.jsxs(Wo.div,{className:Mt.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:j*.08},children:[b.jsx(Jg,{fill:A,className:Mt.rotationConeSvg}),b.jsx(Qg,{fill:M,className:Mt.rotationLineSvg}),b.jsx("button",{type:"button",className:`${Mt.cameraButtonAtTip} ${O?Mt.cameraButtonSelected:""}`,onClick:D=>{D.stopPropagation(),f==null||f(x)},"aria-label":`Câmera ${x.algorithm??"câmera"}`,children:b.jsx("span",{className:Mt.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(x.orientation??0)}deg)`},children:PE(x.algorithm,18,I)})})]})},x.id??j)})})}),b.jsx(WE,{className:`${Mt.mapSpot} ${r?Mt.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:`${k}px solid transparent`,borderRight:`${k}px solid transparent`,borderTop:`${k}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:w,"--arrow-opacity":S?1:0,backgroundColor:E},animate:{width:S?"auto":r?34:30,height:S?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:S?"4px 8px":0,y:S?-k:0,"--arrow-opacity":S?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(sp,{mode:"wait",children:S?b.jsx(Wo.div,{className:Mt.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,j)=>b.jsxs(Wo.div,{className:Mt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:j*.05},children:[b.jsx(H.Typography,{className:Mt.cameraTypeCount,children:x.count}),x.icon&&b.jsx(H.Box,{className:Mt.cameraTypeIcon,children:x.icon})]},j))},"expanded"):b.jsx(Wo.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(H.Typography,{className:Mt.count,children:e})},"collapsed")})})]})};cu.displayName="MapSpot";const UE="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%203.1875C0.75%201.84104%201.84104%200.75%203.1875%200.75L5.625%200.75V2.25H3.1875C2.66946%202.25%202.25%202.66946%202.25%203.1875V5.625H0.75L0.75%203.1875Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M0.75%2014.8125L0.75%2012.375H2.25V14.8125C2.25%2015.3305%202.66946%2015.75%203.1875%2015.75H5.625V17.25H3.1875C1.84104%2017.25%200.75%2016.159%200.75%2014.8125Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M15.75%2014.8125V12.375H17.25V14.8125C17.25%2016.159%2016.159%2017.25%2014.8125%2017.25H12.375V15.75H14.8125C15.3305%2015.75%2015.75%2015.3305%2015.75%2014.8125Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M15.75%203.1875C15.75%202.66946%2015.3305%202.25%2014.8125%202.25H12.375V0.75L14.8125%200.75C16.159%200.75%2017.25%201.84104%2017.25%203.1875V5.625H15.75V3.1875Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M10.8889%2010.5C11.6372%2010.5%2012.3895%2010.6845%2012.991%2011.053L12.9902%2011.0537C13.3468%2011.2719%2013.6565%2011.5584%2013.8684%2011.9092L14.5298%2013.0049L13.2451%2013.7798L12.5845%2012.6841C12.5191%2012.576%2012.3992%2012.4499%2012.2073%2012.3325C11.8787%2012.1312%2011.4076%2012%2010.8889%2012H7.11108C6.59216%2012%206.1214%2012.1305%205.79199%2012.3318L5.79272%2012.3325C5.64854%2012.4207%205.54509%2012.5138%205.47485%2012.6006L5.41553%2012.6841L4.75488%2013.7798L3.47021%2013.0049L4.13086%2011.9092C4.34281%2011.5583%204.6531%2011.2712%205.00977%2011.053C5.6104%2010.6859%206.36112%2010.5%207.11108%2010.5H10.8889Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M10.5%206.75C10.5%205.92157%209.82843%205.25%209%205.25C8.17157%205.25%207.5%205.92157%207.5%206.75C7.5%207.57843%208.17157%208.25%209%208.25C9.82843%208.25%2010.5%207.57843%2010.5%206.75ZM12%206.75C12%208.40685%2010.6569%209.75%209%209.75C7.34315%209.75%206%208.40685%206%206.75C6%205.09315%207.34315%203.75%209%203.75C10.6569%203.75%2012%205.09315%2012%206.75Z'%20fill='%23FDFCFC'/%3e%3c/svg%3e",HE="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.25%2014.8125C2.25%2015.3305%202.66946%2015.75%203.1875%2015.75H5.625V17.25H3.1875C1.84104%2017.25%200.75%2016.159%200.75%2014.8125L0.75%2012.375H2.25V14.8125ZM17.25%2014.8125C17.25%2016.159%2016.159%2017.25%2014.8125%2017.25H12.375L12.375%2015.75H14.8125C15.3305%2015.75%2015.75%2015.3305%2015.75%2014.8125V12.375L17.25%2012.375V14.8125ZM14.135%206.35229C14.2958%206.19142%2014.5379%206.14314%2014.748%206.22998C14.9583%206.31702%2015.0959%206.52245%2015.0959%206.75V10.5015C15.0959%2010.812%2014.8439%2011.0638%2014.5334%2011.064C14.2228%2011.0639%2013.9709%2010.8121%2013.9709%2010.5015V8.10571C13.7502%208.30415%2013.4107%208.29824%2013.1982%208.08594C12.9785%207.86637%2012.9787%207.51027%2013.1982%207.29053L14.135%206.35229ZM11.3298%206.19336C11.5137%206.21969%2011.6748%206.33566%2011.7568%206.5061C11.8505%206.70099%2011.8245%206.93272%2011.6895%207.10156L9.42041%209.9375H11.25C11.5607%209.9375%2011.8125%2010.1893%2011.8125%2010.5C11.8125%2010.8107%2011.5607%2011.0625%2011.25%2011.0625H8.25C8.03386%2011.0625%207.83688%2010.9386%207.74316%2010.7439C7.6495%2010.549%207.67547%2010.3173%207.81055%2010.1484L10.0796%207.3125L8.25%207.3125C7.93934%207.3125%207.6875%207.06066%207.6875%206.75C7.6875%206.43934%207.93934%206.1875%208.25%206.1875L11.25%206.1875L11.3298%206.19336ZM5.25%206.19482C5.45567%206.22809%205.62952%206.37352%205.69531%206.57642L6.9104%2010.3264C7.00614%2010.6219%206.84405%2010.9396%206.54858%2011.0354C6.25308%2011.1311%205.93539%2010.9691%205.8396%2010.6736L5.72241%2010.3125H3.65259L3.5354%2010.6736C3.43961%2010.9691%203.12192%2011.1311%202.82642%2011.0354C2.53095%2010.9396%202.36886%2010.6219%202.4646%2010.3264L2.68579%209.6416C2.69424%209.59828%202.7083%209.55696%202.72607%209.51782L3.67969%206.57642L3.71411%206.49365C3.80908%206.30792%204.00155%206.1875%204.21509%206.1875H5.15991L5.25%206.19482ZM4.0166%209.1875H5.3584L4.75122%207.3125H4.62378L4.0166%209.1875ZM5.625%202.25H3.1875C2.66946%202.25%202.25%202.66946%202.25%203.1875V5.625H0.75L0.75%203.1875C0.75%201.84104%201.84104%200.75%203.1875%200.75L5.625%200.75V2.25ZM14.8125%200.75C16.159%200.75%2017.25%201.84104%2017.25%203.1875V5.625H15.75V3.1875C15.75%202.66946%2015.3305%202.25%2014.8125%202.25H12.375V0.75L14.8125%200.75Z'%20fill='%23FDFCFC'/%3e%3c/svg%3e",YE="_cameraCard_1scfk_2",qE="_selected_1scfk_14",GE="_topContainer_1scfk_62",KE="_mediaImage_1scfk_76",ZE="_mediaPlaceholder_1scfk_83",XE="_menuButton_1scfk_89",QE="_menuButtonIcon_1scfk_108",JE="_closeButton_1scfk_114",eM="_closeButtonIcon_1scfk_133",tM="_bottomContainer_1scfk_139",nM="_infoRow_1scfk_151",oM="_iconWrapper_1scfk_158",rM="_cameraIcon_1scfk_166",sM="_cameraTypeImage_1scfk_173",iM="_textColumn_1scfk_181",aM="_headerText_1scfk_190",lM="_subheadText_1scfk_200",cM="_streetText_1scfk_210",uM="_supportText_1scfk_211",dM="_tagsContainer_1scfk_221",fM="_tag_1scfk_221",pM="_tagOverflow_1scfk_234",hM="_recordingButtonContainer_1scfk_255",mM="_menuButtonInline_1scfk_264",gM="_menuButtonInlineIcon_1scfk_283",yM="_recordingButton_1scfk_255",bM="_recordingButtonIcon_1scfk_314",vM="_recordingButtonText_1scfk_317",xM="_cameraCardMenuPaper_1scfk_348",SM="_cameraCardMenuList_1scfk_372",wM="_cameraCardMenuItem_1scfk_380",CM="_cameraCardMenuItemText_1scfk_419",Ne={cameraCard:YE,selected:qE,topContainer:GE,mediaImage:KE,mediaPlaceholder:ZE,menuButton:XE,menuButtonIcon:QE,closeButton:JE,closeButtonIcon:eM,bottomContainer:tM,infoRow:nM,iconWrapper:oM,cameraIcon:rM,cameraTypeImage:sM,textColumn:iM,headerText:aM,subheadText:lM,streetText:cM,supportText:uM,tagsContainer:dM,tag:fM,tagOverflow:pM,recordingButtonContainer:hM,menuButtonInline:mM,menuButtonInlineIcon:gM,recordingButton:yM,recordingButtonIcon:bM,recordingButtonText:vM,cameraCardMenuPaper:xM,cameraCardMenuList:SM,cameraCardMenuItem:wM,cameraCardMenuItemText:CM};function TM(e){return e===Ms?b.jsx("img",{src:UE,alt:"Facial",width:20,height:20,className:Ne.cameraTypeImage}):e===Os?b.jsx("img",{src:HE,alt:"LPR",width:20,height:20,className:Ne.cameraTypeImage}):b.jsx(Ot.VideocamOutlined,{className:Ne.cameraIcon})}const PM=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u,recordingButton:d,onClose:f,selected:p})=>{const m=ie.useTheme().palette.mode==="dark",g=o??"",y=n??"",v=_.useRef(null),C=_.useRef(null),[S,w]=_.useState(r.length),[T,E]=_.useState(!1),M=_.useRef(!1),A=((l==null?void 0:l.length)??0)>0||c,k=((l==null?void 0:l.length)??0)>0;_.useLayoutEffect(()=>{r.length!==0&&(w(r.length),M.current=!1)},[r.length]),_.useLayoutEffect(()=>{const O=v.current;if(!O||r.length===0)return;const I=()=>{if(!O)return;const{scrollWidth:N,clientWidth:B}=O;N>B?(M.current=!0,w(F=>Math.max(0,F-1))):!M.current&&S<r.length?w(F=>Math.min(r.length,F+1)):M.current=!1};I();const D=new ResizeObserver(I);return D.observe(O),()=>D.disconnect()},[r.length,S]);const V=S<r.length,L=V?r.slice(0,S):r,x=V?r.length-S:0,j=r.length>0?r.join(", "):"";return b.jsxs(H.Box,{className:`${Ne.cameraCard} ${p?Ne.selected:""} ${u||""}`.trim(),"data-theme":m?"dark":"light",children:[b.jsxs(H.Box,{className:Ne.topContainer,children:[i?b.jsx("img",{src:i,alt:"",className:Ne.mediaImage}):b.jsx(H.Box,{className:Ne.mediaPlaceholder,"aria-hidden":!0}),d&&f&&b.jsx(H.IconButton,{onClick:f,className:Ne.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(Ot.Close,{className:Ne.closeButtonIcon})}),A&&!d&&b.jsx(H.IconButton,{ref:C,onClick:()=>{k?E(!0):c==null||c()},className:Ne.menuButton,"aria-label":"Opções","aria-haspopup":k?"menu":void 0,"aria-expanded":T,size:"small",children:b.jsx(Ot.MoreHoriz,{className:Ne.menuButtonIcon})})]}),k&&b.jsx(H.Popover,{open:T,anchorEl:C.current,onClose:()=>E(!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(H.Box,{className:Ne.cameraCardMenuPaper,"data-theme":m?"dark":"light",children:b.jsx(H.Box,{className:Ne.cameraCardMenuList,role:"menu",children:l.map(O=>b.jsx("button",{type:"button",className:Ne.cameraCardMenuItem,role:"menuitem",onClick:()=>{var I;(I=O.onClick)==null||I.call(O),E(!1)},children:b.jsx("span",{className:Ne.cameraCardMenuItemText,children:O.label})},O.label))})})}),b.jsxs(H.Box,{className:Ne.bottomContainer,children:[b.jsxs(H.Box,{className:Ne.infoRow,children:[b.jsx(H.Box,{className:Ne.iconWrapper,children:TM(a)}),b.jsxs(H.Box,{className:Ne.textColumn,children:[b.jsx("span",{className:Ne.headerText,children:e}),y&&b.jsx("span",{className:Ne.subheadText,children:y}),b.jsx("span",{className:Ne.streetText,children:t}),g&&b.jsx("span",{className:Ne.supportText,children:g})]})]}),d?b.jsxs(H.Box,{className:Ne.recordingButtonContainer,children:[A&&b.jsx(H.IconButton,{ref:C,onClick:()=>{k?E(!0):c==null||c()},className:Ne.menuButtonInline,"aria-label":"Opções","aria-haspopup":k?"menu":void 0,"aria-expanded":T,size:"small",children:b.jsx(Ot.MoreHoriz,{className:Ne.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:Ne.recordingButton,onClick:O=>{O.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(Ot.VideocamOutlined,{className:Ne.recordingButtonIcon}),b.jsx("span",{className:Ne.recordingButtonText,children:"Ver gravação"})]})]}):r.length>0&&b.jsx(H.Tooltip,{title:j,placement:"top",enterDelay:300,children:b.jsxs(H.Box,{ref:v,className:Ne.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[L.map(O=>b.jsx("span",{className:Ne.tag,children:O},O)),V&&b.jsxs("span",{className:Ne.tagOverflow,children:["+",x]})]})})]})]})},EM=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},MM=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},OM="_container_1whpg_2",kM="_zoomButton_1whpg_10",DM="_stateLayer_1whpg_43",RM="_icon_1whpg_59",dn={container:OM,zoomButton:kM,stateLayer:DM,icon:RM},IM=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=H.useTheme().palette.mode==="dark",u=EM(e,o,i),d=MM(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(H.Box,{className:`${dn.container} ${t||""}`,sx:n,children:[b.jsx(H.IconButton,{className:dn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(H.Box,{className:dn.stateLayer,children:b.jsx(Ot.Add,{className:dn.icon,sx:p})})}),b.jsx(H.IconButton,{className:dn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(H.Box,{className:dn.stateLayer,children:b.jsx(Ot.Remove,{className:dn.icon,sx:p})})}),b.jsx(H.IconButton,{className:dn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(H.Box,{className:dn.stateLayer,children:b.jsx(Ot.ZoomOutMap,{className:dn.icon,sx:p})})})]})};var AM=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 NM=Qn(AM),_M="1.7.1";function ar(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 ec(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 Pn={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},jM="https://maps.googleapis.com/maps/api/js";class Ei{static load(t,n){return ec(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=Pn.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=jM+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=Pn.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=Pn.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=Pn.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=Pn.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)}}Ei.loadingStatus=Pn.NOT_LOADED;Ei.listeners=[];const LM="GMP_visgl_rgmlibrary_v1_default",$M=[`gmp_visgl_reactgooglemaps_v${_M}`],ks=_.createContext(null);function VM(){const[e,t]=_.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=ar(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function FM(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=ar(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=_.useState(Ei.loadingStatus),[u,d]=_.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=_.useMemo(()=>i==null?void 0:i.join(","),[i]),p=_.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=_.useCallback(m=>ec(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 _.useEffect(()=>{ec(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=LM:m.solutionChannel===""&&delete m.solutionChannel,yield Ei.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 BM(e){return _.useMemo(()=>e.disableUsageAttribution?null:$M,[e.disableUsageAttribution])}const zM=e=>{const{children:t}=e,n=ar(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=VM(),{status:l,loadedLibraries:c,importLibrary:u}=FM(n),d=BM(n),f=_.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 _.createElement(ks.Provider,{value:f},t)};function WM(e,t){for(const n of qM){const o=t[n],r=ey[n];_.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(UM(r,e,a))});return()=>i.remove()},[e,r,o])}}function UM(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(HM.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(YM.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 ey={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"},HM=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],YM=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],qM=Object.keys(ey);function GM(e){const t=_.useRef(void 0);return _.useEffect(()=>{t.current=e}),t.current}function KM(e,t){const n=GM(e);return _.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function ZM(e,t,n){_.useEffect(e,[KM(t,n)])}function XM(e,t){ZM(e,t,NM)}const QM=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 JM(e,t){const n={},o=Object.keys(t);for(const r of o)QM.has(r)&&(n[r]=t[r]);XM(()=>{e&&e.setOptions(n)},[n])}function ty(){var e;return((e=_.useContext(ks))===null||e===void 0?void 0:e.status)||Pn.NOT_LOADED}function eO(e,t){const{viewport:n,viewState:o}=t,r=!!n;return _.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 tO(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function ny(e){return tO(e)?e:e.toJSON()}function nO(e,t,n){const o=n.center?ny(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;_.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 oO=()=>{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 _.createElement("div",{style:e},_.createElement("h2",null,"Error: AuthFailure"),_.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",_.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function rO(){const[e,t]=_.useState(null),n=_.useCallback(o=>t(o),[t]);return[e,n]}function oy(){return ty()===Pn.LOADED}function sO(){const[,e]=_.useReducer(t=>t+1,0);return e}function iO(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 aO(e){const t=sO(),n=_.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return _.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{iO(e,n),t()});return()=>o.remove()},[e,t]),n}class fi{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)}}fi.entries={};function lO(e,t){const n=oy(),[o,r]=_.useState(null),[i,a]=rO(),l=aO(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=ar(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),C=e.zoom!==void 0||e.defaultZoom!==void 0,S=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!C||!S)&&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 w=v.internalUsageAttributionIds;w==null?v.internalUsageAttributionIds=t.internalUsageAttributionIds:v.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...w];for(const E of Object.keys(v))v[E]===void 0&&delete v[E];const T=_.useRef(void 0);return _.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:A}=e,k=`${A||"default"}:${g||"default"}:${y||"LIGHT"}`;let V,L;if(m&&fi.has(k)?(L=fi.pop(k),V=L.getDiv(),i.appendChild(V),L.setOptions(v),setTimeout(()=>L.setCenter(L.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",i.appendChild(V),L=new google.maps.Map(V,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(L),E(L,c),u){const{padding:x}=u,j=ar(u,["padding"]);L.fitBounds(j,x)}else(!C||!S)&&L.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:x,cameraState:j}=T.current;x!==A&&L.setOptions(j)}return()=>{T.current={mapId:A,cameraState:l.current},V.remove(),m?fi.push(k,L):google.maps.event.clearInstanceListeners(L),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const ry=_.createContext(null),sy=e=>{const{children:t,id:n,className:o,style:r}=e,i=_.useContext(ks),a=ty();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=lO(e,i);nO(l,u,e),WM(l,e),JM(l,e);const d=eO(l,e),f=!!e.controlled;_.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?ny(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=_.useMemo(()=>{var C,S,w;return{center:{lat:h??0,lng:m??0},zoom:(C=e.zoom)!==null&&C!==void 0?C:0,heading:(S=e.heading)!==null&&S!==void 0?S:0,tilt:(w=e.tilt)!==null&&w!==void 0?w:0}},[h,m,e.zoom,e.heading,e.tilt]);_.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const C=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>C.remove()},[l,f,g]);const y=_.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),v=_.useMemo(()=>({map:l}),[l]);return a===Pn.AUTH_FAILURE?_.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},_.createElement(oO,null)):_.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?_.createElement(ry.Provider,{value:v},t):null)};sy.deckGLViewProps=!0;const vp=new Set;function cO(...e){const t=JSON.stringify(e);vp.has(t)||(vp.add(t),console.error(...e))}const oa=(e=null)=>{const t=_.useContext(ks),{map:n}=_.useContext(ry)||{};if(t===null)return cO("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 uO(e){const t=oy(),n=_.useContext(ks);return _.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function Gs(e,t,n){_.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function Ks(e,t,n){_.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function xp(e,t,n){_.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class dO{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 uO=new cO;function dO(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 fO=L.createContext(null),pO={BOTTOM:["50%","100%"]},oy=L.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=mO(e),c=L.useMemo(()=>a?{marker:a}:null,[a]);return L.useImperativeHandle(t,()=>a,[a]),l?L.createElement(fO.Provider,{value:c},Ho.createPortal(L.createElement(hO,{anchorPoint:i,styles:o,className:r},n),l)):null});oy.displayName="AdvancedMarker";function ec(e){return e.nodeType===Node.ELEMENT_NODE}const hO=({children:e,styles:t,className:n})=>L.createElement("div",{className:n,style:t},e);function mO(e){const[t,n]=L.useState(null),[o,r]=L.useState(null),i=oa(),a=lO("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:C,title:x,zIndex:S,anchorPoint:T,anchorLeft:E,anchorTop:M}=e,A=L.Children.count(l);return L.useEffect(()=>{if(!i||!a)return;const O=new a.AdvancedMarkerElement;O.map=i,n(O);let V=null;return A>0&&(V=document.createElement("div"),O.content=V,r(V)),()=>{O.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,A]),L.useEffect(()=>{!(t!=null&&t.content)||!ec(t.content)||A>0||(t.content.className=u??"")},[t,u,A]),gO(t,T,E,M,A>0),Ks(t,"position",C),Ks(t,"title",x??""),Ks(t,"zIndex",S),Ks(t,"collisionBehavior",g),L.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),L.useEffect(()=>{if(!t)return;const O=y!==void 0||!!c||!!d||!!f;t.gmpClickable=O,O&&(t!=null&&t.content)&&ec(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),Gs(t,"click",c),Gs(t,"drag",p),Gs(t,"dragstart",h),Gs(t,"dragend",m),vp(t==null?void 0:t.element,"mouseenter",d),vp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function gO(e,t,n,o,r){L.useEffect(()=>{if(!e||!r)return;const i=dO(3,62),a=e.content;if(!(!a||!ec(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??pO.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",uO.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function yO(e){const[t,n]=L.useState(null),o=oa(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=ir(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return L.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]),L.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]),L.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),L.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const bO=L.forwardRef((e,t)=>{const n=yO(e);return L.useImperativeHandle(t,()=>n,[n]),L.createElement(L.Fragment,null)});bO.displayName="Marker";const ry=L.createContext(void 0),cu=()=>{const e=L.useContext(ry);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},uu=({children:e})=>{const t=oa(),[n,o]=L.useState(13),[r,i]=L.useState(null);L.useEffect(()=>{if(!t)return;const l=t.getZoom();l!==void 0&&o(l);const c=t.getBounds();if(c){const f=c.getNorthEast(),p=c.getSouthWest(),h=[p.lng(),p.lat(),f.lng(),f.lat()];i(h)}const u=t.addListener("zoom_changed",()=>{const f=t.getZoom();f!==void 0&&(console.log("[MapContent] Zoom changed:",f),o(f))}),d=t.addListener("bounds_changed",()=>{const f=t.getBounds();if(f){const p=f.getNorthEast(),h=f.getSouthWest(),m=[h.lng(),h.lat(),p.lng(),p.lat()];i(m)}});return()=>{u&&google.maps.event.removeListener(u),d&&google.maps.event.removeListener(d)}},[t]);const a=(l,c=16)=>{t&&(t.setCenter(l),t.setZoom(c))};return t?b.jsx(ry.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:a},children:e}):null};uu.displayName="MapContent";const vO=180,sy=()=>{const{map:e}=cu(),t=L.useRef(null),n=L.useRef(null);return L.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}},vO)});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"}})};sy.displayName="MapResizeHandler";const xO="_googleMap_1gh3l_1",SO="_container_1gh3l_14",wO="_errorContainer_1gh3l_29",Zs={googleMap:xO,container:SO,errorContainer:wO},CO={lat:-26.3044,lng:-48.8487},TO=13,PO={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},EO=({colorScheme:e,options:t,onLoad:n,children:o})=>{const r=oa();return L.useEffect(()=>{r&&(r.setOptions(PO),t&&r.setOptions(t),n&&n(r))},[r,t,n]),b.jsx(b.Fragment,{children:o})},iy=({center:e=CO,zoom:t=TO,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:`${Zs.container} ${Zs.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:Zs.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(FM,{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:`${Zs.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(ny,{...f,style:{width:"100%",height:"100%"},children:b.jsx(EO,{colorScheme:d,options:l,onLoad:c,children:b.jsxs(uu,{children:[b.jsx(sy,{}),o]})})},p)})})};iy.displayName="GoogleMap";const xp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],sl=1,Mr=8;class du{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!==sl)throw new Error(`Got v${r} data when expected v${sl}.`);const i=xp[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 du(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=xp.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,Mr,t),this.coords=new this.ArrayType(this.data,Mr+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Mr+a+l+c),this.ids=new this.IndexArrayType(this.data,Mr,t),this.coords=new this.ArrayType(this.data,Mr+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(sl<<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 tc(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],C=a[2*y+1];v>=t&&v<=o&&C>=n&&C<=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 tc(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;ay(e,t,a,o,r,i),tc(e,t,n,o,a-1,1-i),tc(e,t,n,a+1,r,1-i)}function ay(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));ay(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(Or(e,t,o,n),t[2*r+i]>a&&Or(e,t,o,r);l<c;){for(Or(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?Or(e,t,o,c):(c++,Or(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function Or(e,t,n,o){il(e,n,o),il(t,2*n,2*o),il(t,2*n+1,2*o+1)}function il(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 MO={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},wp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),lo=2,Fn=3,al=4,$n=5,ly=6;class cy{constructor(t){this.options=Object.assign(Object.create(MO),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=wp(Xs(d)),h=wp(Qs(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(Xs(o),Qs(a),Xs(i),Qs(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+$n]>1?Cp(u,p,this.clusterProps):this.points[u[p+Fn]])}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+al]===t&&f.push(a[h+$n]>1?Cp(a,h,this.clusterProps):this.points[a[h+Fn]])}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 du(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+$n]>1;let d,f,p;if(u)d=uy(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Fn]];d=g.properties;const[y,v]=g.geometry.coordinates;f=Xs(y),p=Qs(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+Fn]:m=this.points[n[c+Fn]].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+lo]<=n)continue;c[f+lo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+$n];let y=g;for(const v of m){const C=v*d;c[C+lo]>n&&(y+=c[C+$n])}if(y>g&&y>=a){let v=p*g,C=h*g,x,S=-1;const T=((f/d|0)<<5)+(n+1)+this.points.length;for(const E of m){const M=E*d;if(c[M+lo]<=n)continue;c[M+lo]=n;const A=c[M+$n];v+=c[M]*A,C+=c[M+1]*A,c[M+al]=T,i&&(x||(x=this._map(c,f,!0),S=this.clusterProps.length,this.clusterProps.push(x)),i(x,this._map(c,M)))}c[f+al]=T,u.push(v/y,C/y,1/0,T,-1,y),i&&u.push(S)}else{for(let v=0;v<d;v++)u.push(c[f+v]);if(y>1)for(const v of m){const C=v*d;if(!(c[C+lo]<=n)){c[C+lo]=n;for(let x=0;x<d;x++)u.push(c[C+x])}}}}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+$n]>1){const a=this.clusterProps[t[n+ly]];return o?Object.assign({},a):a}const r=this.points[t[n+Fn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Cp(e,t,n){return{type:"Feature",id:e[t+Fn],properties:uy(e,t,n),geometry:{type:"Point",coordinates:[OO(e[t]),kO(e[t+1])]}}}function uy(e,t,n){const o=e[t+$n],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+ly],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Fn],point_count:o,point_count_abbreviated:r})}function Xs(e){return e/360+.5}function Qs(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 OO(e){return(e-.5)*360}function kO(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const DO={radius:30,maxZoom:13,minZoom:0,minPoints:2};function RO(e,t,n,o={}){const r=L.useRef(null),[i,a]=L.useState([]),l={...DO,...o};return L.useEffect(()=>{if(!e||e.length===0){a([]);return}const c=e.map(u=>({type:"Feature",properties:u,geometry:{type:"Point",coordinates:[u.lng,u.lat]}}));r.current=new cy({radius:l.radius,maxZoom:l.maxZoom,minZoom:l.minZoom,minPoints:l.minPoints}),r.current.load(c)},[e,l.radius,l.maxZoom,l.minZoom,l.minPoints]),L.useEffect(()=>{if(!r.current||!n){a(e);return}const u=r.current.getClusters(n,Math.floor(t)).map(d=>{const[f,p]=d.geometry.coordinates,h=d.properties;if(h.cluster){const m=h.cluster_id,g=r.current.getLeaves(m,1/0),y=g.flatMap(C=>C.properties.cameras||[]),v=g.reduce((C,x)=>C+x.properties.count,0);return{id:`cluster-${m}`,lat:p,lng:f,count:v,cameras:y,isCluster:!0,pointCount:h.point_count,clusterId:m}}else{const m=h;return{id:m.id,lat:p,lng:f,count:m.count,addressText:m.addressText,cameras:m.cameras}}});a(u)},[e,t,n]),i}const dy=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=SE,selectedZoomLevel:r=vE,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,animateOnClick:c,disableClick:u,onDeselectWhenZoomOut:d})=>{const{isLoaded:f,currentZoom:p,bounds:h,zoomToPosition:m}=cu(),g=L.useRef(null),y=!!(a??i!=null);L.useEffect(()=>{p<=xE&&y&&(d==null||d())},[p,y,d]);const v=RO(e,p,h);if(v.length>0&&h){const x=e.map(S=>({type:"Feature",properties:S,geometry:{type:"Point",coordinates:[S.lng,S.lat]}}));g.current||(g.current=new cy({radius:30,maxZoom:13,minZoom:0,minPoints:2})),g.current.load(x)}const C=x=>{if(x.isCluster&&x.clusterId&&g.current)try{const S=g.current.getClusterExpansionZoom(x.clusterId);m({lat:x.lat,lng:x.lng},S)}catch(S){console.error("Error getting cluster expansion zoom:",S),m({lat:x.lat,lng:x.lng},o)}else if(u)m({lat:x.lat,lng:x.lng},p<Xo?Xo:r??o);else{const S=a?a.id===x.id:i===x.id;p<Xo?m({lat:x.lat,lng:x.lng},Xo):(S||m({lat:x.lat,lng:x.lng},r??o),t==null||t(x))}};return f?b.jsx(b.Fragment,{children:v.map((x,S)=>b.jsx(oy,{position:{lat:x.lat,lng:x.lng},onClick:()=>C(x),children:b.jsx(lu,{count:x.count,addressText:x.addressText,cameras:x.cameras,currentZoom:p,isSelected:!u&&!x.isCluster&&(a?a.id===x.id:i===x.id),selectedCameraId:l,animateOnClick:c,disableClick:u,onCameraClick:n?T=>n(T,x):void 0})},x.id??S))}):null};dy.displayName="MapMarkers";const IO="_searchBar_15mix_1",AO="_startIconContainer_15mix_106",NO="_endIconContainer_15mix_117",_O="_endIconContainerClickable_15mix_153",jO="_defaultIcon_15mix_157",Wr={searchBar:IO,startIconContainer:AO,endIconContainer:NO,endIconContainerClickable:_O,defaultIcon:jO},LO=e=>()=>{e&&e()},$O=e=>t=>{e&&e(t)},VO=()=>b.jsx(Ot.Search,{className:Wr.defaultIcon}),FO=e=>e||VO(),fy=L.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=H.useTheme().palette.mode==="dark",f=FO(t),p=LO(n),h=$O(i);return b.jsx(H.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Wr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(H.InputAdornment,{position:"start",className:Wr.startIconContainer,children:e}):null,endAdornment:b.jsx(H.InputAdornment,{position:"end",className:`${Wr.endIconContainer} ${n?Wr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});fy.displayName="SearchBar";const BO=ft(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),zO=ft([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"),WO="_container_1mb8b_1",UO="_iconWrapper_1mb8b_11",HO="_icon_1mb8b_11",YO="_title_1mb8b_21",qO="_subtitle_1mb8b_30",GO="_description_1mb8b_34",KO="_button_1mb8b_38",co={container:WO,iconWrapper:UO,icon:HO,title:YO,subtitle:qO,description:GO,button:KO},py=({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(H.Container,{maxWidth:"sm",children:b.jsxs(H.Box,{className:`${co.container} ${i||""}`,children:[b.jsx(H.Box,{className:co.iconWrapper,children:b.jsx(zO,{className:co.icon,color:"primary"})}),b.jsx(H.Typography,{variant:"h1",className:co.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(H.Typography,{variant:"h4",component:"h2",className:co.subtitle,color:"text.primary",children:n}),b.jsx(H.Typography,{variant:"body1",className:co.description,color:"text.secondary",children:o}),e&&b.jsx(Sc,{variant:"contained",size:"large",startIcon:b.jsx(BO,{}),onClick:e,className:co.button,children:t})]})});py.displayName="NotFoundContent";const ZO=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}},XO=({items:e,isExpanded:t=!0,onClick:n})=>{const o=L.useMemo(()=>ZO(e),[e]),[r,i]=L.useState(o.itemId),[a,l]=L.useState(o.subItemId),[c,u]=L.useState(o.expandedItemId),[d,f]=L.useState(null),[p,h]=L.useState(null);L.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 A;const M=a?!!((A=E.submenu)!=null&&A.some(O=>O.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 A,O;i(E.id),l(null),(A=E.submenu)!=null&&A.length?t?u(V=>V===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(O=E.onClick)==null||O.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,A,O)=>{var V;i(E.id),l(M.id),O!=null&&O.closeMenu&&(f(null),h(null)),(V=M.onClick)==null||V.call(M,A),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},hy=e=>typeof e=="number"?`${e*4}px`:e,QO=({item:e,onClick:t,isActive:n})=>{const o=ie.useTheme();return b.jsx(H.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:hy(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(H.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},my=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ie.useTheme(),i=hy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=XO({items:e,isExpanded:t,onClick:o});return b.jsxs(H.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const y=u(g),v=f(g),C=t?r.spacing(2):r.spacing(4),x=t?y?r.palette.primary.main:r.palette.action.hover:"transparent",S=t?"transparent":y?r.palette.primary.main:r.palette.action.hover,T=!t&&y?r.palette.primary.contrastText:r.palette.text.primary;return b.jsxs(H.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(H.ButtonBase,{onClick:A=>p(g,A),"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,justifyContent:t?"flex-start":"center",textAlign:"left",color:r.palette.text.primary,backgroundColor:x,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t?r.palette.action.hover:"transparent"}},children:b.jsxs(H.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[b.jsx(H.Box,{sx:{width:64,height:C,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:S,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?ie.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(H.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?b.jsx(H.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(H.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(H.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(A=>{const O=d(A);return b.jsx(QO,{item:A,isActive:O,onClick:V=>h(g,A,V)},A.id)})})}):null]},g.id)}),b.jsx(H.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]}},children:c.map(g=>{const y=d(g);return b.jsx(H.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};my.displayName="SidebarMenu";const JO=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},e2=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=L.useMemo(()=>JO(e),[e]),[r,i]=L.useState(o),[a,l]=L.useState(null);L.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)}}},t2=e=>typeof e=="number"?`${e*4}px`:e,gy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var D,_;const d=ie.useTheme(),f=L.useRef(null),p=t2(d.shape.borderRadius),[h,m]=L.useState(!1),g=L.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:C,openMenu:x,closeMenu:S,handleItemClick:T}=e2({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((D=e[0])==null?void 0:D.label)??"",M=o??(y==null?void 0:y.icon)??((_=e[0])==null?void 0:_.icon)??null,A=l||!M,O=F=>{if(l){m(B=>!B);return}x(F)},V=(F,B)=>{T(F,B),m(!1)},j=b.jsx(H.Stack,{direction:"column",spacing:.5,children:e.map(F=>{const B=C(F);return b.jsxs(H.MenuItem,{selected:B,onClick:$=>V(F,$),sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[F.icon?b.jsx(H.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:F.icon}):null,b.jsx(H.Typography,{variant:"body1",sx:{fontWeight:B?600:500},children:F.label})]},F.id)})}),w=b.jsxs(H.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3],display:"flex",flexDirection:"column",maxHeight:d.spacing(50)},children:[i?b.jsx(H.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(H.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(H.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:j})]}),N=a?b.jsxs(H.MenuItem,{onClick:a.onClick,sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(H.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(H.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,R=N?b.jsx(H.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:N}):null,I=b.jsxs(H.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[w,R]});return b.jsxs(H.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(H.ButtonBase,{onClick:O,"aria-label":E,ref:f,sx:{width:l?d.spacing(28):"64px",height:l?"auto":"64px",borderRadius:p,px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",backgroundColor:d.palette.action.hover,"&:hover":{backgroundColor:d.palette.action.selected}},children:b.jsxs(H.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(H.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,A?b.jsxs(H.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(H.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(H.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(H.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(H.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(H.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:I})}):null:b.jsx(H.Menu,{anchorEl:v,open:!!v,onClose:S,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:I})]})};gy.displayName="ModuleMenu";const fu=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,n2=(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}}),En={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function yy(e){return"init"in e}function nc(e){return!!e.write}function Tp(e){return"v"in e||"e"in e}function Mi(e){if("e"in e)throw e.e;if((En?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Oi=new WeakMap;function by(e){var t;return ki(e)&&!!((t=Oi.get(e))!=null&&t[0])}function o2(e){const t=Oi.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function oc(e,t){let n=Oi.get(e);if(!n){n=[!0,new Set],Oi.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function ki(e){return typeof(e==null?void 0:e.then)=="function"}function vy(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function xy(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 r2=(e,t,...n)=>t.read(...n),s2=(e,t,...n)=>t.write(...n),i2=(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)},a2=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},l2=(e,t)=>{var n;const o=Rt(e),r=o[0],i=o[6],a=o[9];if((En?"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},c2=e=>{const t=Rt(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)},u2=e=>{const t=Rt(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((En?"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 xy(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)}},rc=new WeakSet,d2=(e,t)=>{var n,o;const r=Rt(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(Tp(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let O=!1;for(const[V,j]of v.d)if(h(e,V).n!==j){O=!0;break}if(!O)return v}v.d.clear();let C=!0;function x(){i.has(t)&&(g(e,t),p(e),f(e))}function S(O){var V;if(O===t){const w=d(e,O);if(!Tp(w))if(yy(O))y(e,O,O.init);else throw new Error("no atom init");return Mi(w)}const j=h(e,O);try{return Mi(j)}finally{v.d.set(O,j.n),by(v.v)&&vy(t,v.v,j),i.has(t)&&((V=i.get(O))==null||V.t.add(t)),C||x()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(En?"production":void 0)!=="production"&&!nc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&nc(t)&&(E=(...O)=>{if((En?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)try{return m(e,t,...O)}finally{p(e),f(e)}}),E}},A=v.n;try{(En?"production":void 0)!=="production"&&rc.delete(e);const O=u(e,t,S,M);return(En?"production":void 0)!=="production"&&rc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,O),ki(O)&&(oc(O,()=>T==null?void 0:T.abort()),O.then(x,x)),(n=c.r)==null||n.call(c,t),v}catch(O){return delete v.v,v.e=O,++v.n,v}finally{C=!1,A!==v.n&&a.get(t)===A&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},f2=(e,t)=>{const n=Rt(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 xy(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},p2=(e,t,...n)=>{const o=Rt(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=C=>Mi(d(e,C)),v=(C,...x)=>{var S;const T=l(e,C);try{if(C===t){if(!yy(C))throw new Error("atom not writable");(En?"production":void 0)!=="production"&&rc.add(e);const E=T.n,M=x[0];m(e,C,M),h(e,C),E!==T.n&&(r.add(C),f(e,C),(S=i.c)==null||S.call(i,C));return}else return p(e,C,...x)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},h2=(e,t)=>{var n;const o=Rt(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&&!by(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)}}},m2=(e,t)=>{var n;const o=Rt(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),nc(t)){const y=()=>{let v=!0;const C=(...x)=>{try{return p(e,t,...x)}finally{v||(d(e),u(e))}};try{const x=l(e,t,C);x&&(g.u=()=>{v=!0;try{x()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},g2=(e,t)=>{var n,o;const r=Rt(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},y2=(e,t,n)=>{const o=Rt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(ki(n))for(const l of r.d.keys())vy(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,ki(a)&&o2(a))},b2=(e,t)=>{const n=Rt(e)[14];return Mi(n(e,t))},v2=(e,t,...n)=>{const o=Rt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},x2=(e,t,n)=>{const o=Rt(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)}},Sy=new WeakMap,Rt=e=>{const t=Sy.get(e);if((En?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function S2(...e){const t={get(o){const r=Rt(t)[21];return r(t,o)},set(o,...r){const i=Rt(t)[22];return i(t,o,...r)},sub(o,r){const i=Rt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},r2,s2,i2,a2,l2,c2,u2,d2,f2,p2,h2,m2,g2,y2,b2,v2,x2,void 0].map((o,r)=>e[r]||o);return Sy.set(t,Object.freeze(n)),t}const wy={};let w2=0;function vr(e,t){const n=`atom${++w2}`,o={toString(){return(wy?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=C2,o.write=T2),o}function C2(e){return e(this)}function T2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function P2(){return S2()}let kr;function E2(){return kr||(kr=P2(),(wy?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=kr),globalThis.__JOTAI_DEFAULT_STORE__!==kr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),kr}const M2={},O2=L.createContext(void 0);function Cy(e){return L.useContext(O2)||E2()}const sc=e=>typeof(e==null?void 0:e.then)=="function",ic=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},k2=L.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(ic(e),e)}),ll=new WeakMap,Pp=(e,t)=>{let n=ll.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();sc(u)?(ll.set(u,n),i=u,u.then(a(u),l(u)),oc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),oc(e,c)}),ll.set(e,n)),n};function Di(e,t){const{delay:n,unstable_promiseStatus:o=!L.use}={},r=Cy(),[[i,a,l],c]=L.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)),L.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);sc(f)&&ic(Pp(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),L.useDebugValue(u),sc(u)){const d=Pp(u,()=>r.get(e));return o&&ic(d),k2(d)}return u}function ac(e,t){const n=Cy();return L.useCallback((...r)=>{if((M2?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Un(e,t){return[Di(e),ac(e)]}const ra=vr(0),sa=vr(!0),pu=vr(null),Ty=vr({windowSeconds:24*60*60,fps:30}),hu=vr([]),mu=vr([]),gu=L.createContext(null),Py=({children:e})=>{const t=L.useRef(null),[n,o]=Un(ra),[r,i]=Un(sa),[a,l]=L.useState(!1),[c,u]=L.useState(0),[d,f]=L.useState(!1);L.useEffect(()=>{const x=t.current;if(!x)return;const S=()=>{if(o(x.currentTime),x.seekable&&x.seekable.length>0){const M=x.seekable.end(x.seekable.length-1);u(M),f(M>0)}else x.duration&&isFinite(x.duration)&&(u(x.duration),f(!0))},T=()=>l(!0),E=()=>l(!1);return x.addEventListener("timeupdate",S),x.addEventListener("durationchange",S),x.addEventListener("loadedmetadata",S),x.addEventListener("progress",S),x.addEventListener("play",T),x.addEventListener("pause",E),S(),()=>{x.removeEventListener("timeupdate",S),x.removeEventListener("durationchange",S),x.removeEventListener("loadedmetadata",S),x.removeEventListener("progress",S),x.removeEventListener("play",T),x.removeEventListener("pause",E)}},[o]);const p=L.useCallback(x=>{o(x)},[o]),h=L.useCallback(x=>{i(x)},[i]),m=L.useCallback(x=>{const S=t.current;!S||!d||(S.currentTime=x,o(x),i(!1))},[d,o,i]),g=L.useCallback(async()=>{const x=t.current;if(x)try{await x.play(),l(!0)}catch(S){console.error("Failed to play video:",S)}},[]),y=L.useCallback(()=>{const x=t.current;x&&(x.pause(),l(!1))},[]),v=L.useCallback(()=>{a?y():g()},[a,g,y]),C={videoRef:t,currentTime:n,setCurrentTime:p,isLive:r,setIsLive:h,seekTo:m,play:g,pause:y,togglePlay:v,isPlaying:a,duration:c,canSeek:d};return b.jsx(gu.Provider,{value:C,children:e})},ia=()=>L.useContext(gu),D2=()=>{const e=L.useContext(gu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},R2=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=L.useRef(null),l=ia(),c=L.useRef(null),u=L.useCallback($=>{c.current=$,l!=null&&l.videoRef&&(l.videoRef.current=$)},[l]),d=L.useMemo(()=>{if(!t||!t.length)return null;if(n){const $=t.find(k=>k.value===n);if($)return $}return t[0]},[t,n]),[f,p]=L.useState(d),[h,m]=L.useState(!1),[g,y]=L.useState(!0),[v,C]=L.useState(!1),[x,S]=L.useState(0),[T,E]=L.useState(0),[M,A]=L.useState(1),[O,V]=L.useState(1),[j,w]=L.useState(!1),[N,R]=L.useState(!0),I=(f==null?void 0:f.stream)??e??null,D=(f==null?void 0:f.src)??null,F=!!!I||i;L.useEffect(()=>{p(d)},[d]);const B=L.useCallback(()=>{const $=c.current;if(!$)return;if(!$.seekable||$.seekable.length===0){y(!0),C(!1),l&&l.setIsLive(!0);return}const k=fu($),W=Math.max(0,k-$.currentTime);E(k),S($.currentTime),C(k>0);const K=W<=(r??2);y(K),l&&(l.setCurrentTime($.currentTime),l.setIsLive(K))},[r,l]);return L.useEffect(()=>{const $=c.current;if(!$)return;const k=()=>m(!0),W=()=>m(!1),K=()=>R(!0),G=()=>R(!0),Z=()=>R(!1),U=()=>R(!1);return $.addEventListener("play",k),$.addEventListener("pause",W),$.addEventListener("waiting",K),$.addEventListener("loadstart",G),$.addEventListener("canplay",Z),$.addEventListener("playing",U),$.addEventListener("timeupdate",B),$.addEventListener("durationchange",B),$.addEventListener("loadedmetadata",B),$.addEventListener("progress",B),()=>{$.removeEventListener("play",k),$.removeEventListener("pause",W),$.removeEventListener("waiting",K),$.removeEventListener("loadstart",G),$.removeEventListener("canplay",Z),$.removeEventListener("playing",U),$.removeEventListener("timeupdate",B),$.removeEventListener("durationchange",B),$.removeEventListener("loadedmetadata",B),$.removeEventListener("progress",B)}},[B]),L.useEffect(()=>{const $=c.current;$&&(R(!0),I?($.srcObject!==I&&($.srcObject=I),$.getAttribute("src")&&$.removeAttribute("src")):D?($.srcObject&&($.srcObject=null),$.src!==D&&($.src=D,$.load())):($.srcObject&&($.srcObject=null),$.getAttribute("src")&&$.removeAttribute("src")),o&&$.play().then(()=>{}).catch(()=>{}))},[I,D,o]),L.useEffect(()=>{const $=c.current;$&&(F?$.playbackRate=M:($.playbackRate=1,A(1)))},[M,F]),L.useEffect(()=>{const $=()=>{w(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",$),()=>{document.removeEventListener("fullscreenchange",$)}},[]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:x,setCurrentTime:S,seekableEnd:T,playbackRate:M,setPlaybackRate:A,zoom:O,setZoom:V,isFullscreen:j,isLoading:N,canAdjustPlaybackRate:F,updateLiveStatus:B}},I2="_container_12m9a_1",A2="_loader_12m9a_78",N2="_video_12m9a_88",_2="_timestampOverlay_12m9a_96",j2="_timestampText_12m9a_109",L2="_controlsOverlay_12m9a_121",$2="_timeline_12m9a_142",V2="_controlsRow_12m9a_149",F2="_controlGroup_12m9a_167",B2="_iconButton_12m9a_184",z2="_seekButton_12m9a_202",W2="_menuButton_12m9a_229",U2="_liveBadge_12m9a_250",H2="_liveBadgeActive_12m9a_267",Y2="_liveBadgeInactive_12m9a_272",q2="_recordingBadge_12m9a_277",G2="_recordingDot_12m9a_296",K2="_controlMenuWrapper_12m9a_325",Ge={container:I2,loader:A2,video:N2,timestampOverlay:_2,timestampText:j2,controlsOverlay:L2,timeline:$2,controlsRow:V2,controlGroup:F2,iconButton:B2,seekButton:z2,menuButton:W2,liveBadge:U2,liveBadgeActive:H2,liveBadgeInactive:Y2,recordingBadge:q2,recordingDot:G2,controlMenuWrapper:K2},cl=({label:e,valueLabel:t,selectedValue:n,options:o,onChange:r,disabled:i,ariaLabel:a})=>{const[l,c]=L.useState(null),u=!!l;return b.jsxs(b.Fragment,{children:[b.jsx(H.ButtonBase,{disabled:i,className:`${Ge.menuButton} ${Ge.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),b.jsx(H.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:o.map(d=>b.jsx(H.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{r(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},Z2=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},X2=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=fu(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},Q2=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},J2=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},ek=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},tk=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=fu(i);i.currentTime=Math.min(Math.max(a,0),l),n()},yu=({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.2,1.5],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:C=!0,isRecording:x=!1,recordingLabel:S="Gravação",borderRadius:T})=>{const M=ie.useTheme().palette.mode==="dark",[A,O]=L.useState(""),[V,j]=L.useState(!0),w=L.useRef(null);L.useEffect(()=>{if(!v)return;const ke=()=>{const Se=new Date,Pe=String(Se.getDate()).padStart(2,"0"),xe=String(Se.getMonth()+1).padStart(2,"0"),$e=Se.getFullYear(),Ve=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Se.getDay()],ot=String(Se.getHours()).padStart(2,"0"),Xe=String(Se.getMinutes()).padStart(2,"0"),_t=String(Se.getSeconds()).padStart(2,"0");O(`${Pe}-${xe}-${$e}, ${Ve} ${ot}:${Xe}:${_t}`)};ke();const ut=setInterval(ke,1e3);return()=>clearInterval(ut)},[v]),L.useEffect(()=>{const ke=N.current;if(!ke)return;const ut=()=>{w.current&&(clearTimeout(w.current),w.current=null),j(!0)},Se=()=>{w.current=setTimeout(()=>{j(!1)},1e4)},Pe=()=>{V||j(!0),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{j(!1)},1e4)};return ke.addEventListener("mouseenter",ut),ke.addEventListener("mouseleave",Se),ke.addEventListener("mousemove",Pe),()=>{ke.removeEventListener("mouseenter",ut),ke.removeEventListener("mouseleave",Se),ke.removeEventListener("mousemove",Pe),w.current&&clearTimeout(w.current)}},[V]);const{containerRef:N,videoRef:R,setVideoRef:I,selectedQuality:D,setSelectedQuality:_,isPlaying:F,isLive:B,canSeek:$,currentTime:k,setCurrentTime:W,seekableEnd:K,playbackRate:G,setPlaybackRate:Z,zoom:U,setZoom:Q,isFullscreen:J,isLoading:ee,canAdjustPlaybackRate:q,updateLiveStatus:X}=R2({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),Y=Z2(R),oe=X2(R,$,X),te=Q2(N),ae=J2(t,_,o),re=ek($,W),be=tk(R,$,X),se=h.map(ke=>({value:ke,label:`${Math.round(ke*100)}%`})),he=p.map(ke=>({value:ke,label:`${ke}x`})),le=t.map(ke=>({value:ke.value,label:ke.label})),ue=(D==null?void 0:D.label)??"Auto",de=`${Math.round(U*100)}%`,Ie=`${G}x`,Me=$&&K>0,Ze=n2(m,g,y),Je=T!=null?{...Ze,"--vp-radius":typeof T=="number"?`${T}px`:T}:Ze;return b.jsxs(H.Box,{ref:N,className:`${Ge.container} ${c||""}`.trim(),"data-theme":M?"dark":"light",style:Je,sx:u,children:[ee&&b.jsx(H.Box,{className:Ge.loader,children:b.jsx(H.CircularProgress,{size:60,sx:{color:"var(--vp-control-color)",width:{xs:"48px",sm:"60px"},height:{xs:"48px",sm:"60px"}}})}),b.jsx("video",{ref:I,className:Ge.video,autoPlay:r,playsInline:i,muted:a,poster:l,style:{transform:`scale(${U})`}}),v&&A&&b.jsx(H.Box,{className:Ge.timestampOverlay,children:b.jsx(H.Typography,{variant:"body2",className:Ge.timestampText,children:A})}),x&&!V&&b.jsx(H.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsxs("span",{className:Ge.recordingBadge,children:[b.jsx("span",{className:Ge.recordingDot}),S]})}),B&&!x&&!V&&b.jsx(H.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsx("span",{className:`${Ge.liveBadge} ${Ge.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs(H.Box,{className:Ge.controlsOverlay,sx:{opacity:V?1:0,visibility:V?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[C&&b.jsx(H.Box,{className:Ge.timeline,children:b.jsx(H.Slider,{size:"small",min:0,max:Me?K:1,step:1,value:Me?k:0,disabled:!Me,onChange:re,onChangeCommitted:be,"aria-label":"Linha do tempo do video",sx:{color:"var(--vp-slider-color)","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-track":{border:"none",backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-rail":{backgroundColor:"var(--vp-slider-rail)",opacity:1}}})}),b.jsxs(H.Box,{className:Ge.controlsRow,children:[b.jsxs(H.Box,{className:Ge.controlGroup,children:[x?b.jsxs("span",{className:Ge.recordingBadge,children:[b.jsx("span",{className:Ge.recordingDot}),S]}):b.jsx("span",{className:`${Ge.liveBadge} ${B?Ge.liveBadgeActive:Ge.liveBadgeInactive}`,children:"ao vivo"}),b.jsx("button",{className:Ge.seekButton,onClick:()=>oe(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:()=>oe(-15),"aria-label":"Recuar 15 segundos",children:b.jsx(Ot.FastRewind,{fontSize:"small"})}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:Y,"aria-label":"Play/Pause",children:F?b.jsx(Ot.Pause,{fontSize:"small"}):b.jsx(Ot.PlayArrow,{fontSize:"small"})}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:()=>oe(15),"aria-label":"Avançar 15 segundos",children:b.jsx(Ot.FastForward,{fontSize:"small"})}),b.jsx("button",{className:Ge.seekButton,onClick:()=>oe(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),b.jsxs(H.Box,{className:Ge.controlGroup,children:[b.jsx(cl,{label:"",valueLabel:Ie,selectedValue:G,options:he,ariaLabel:"Selecionar velocidade de reprodução",onChange:Z,disabled:!q}),le.length>0?b.jsx(cl,{label:"",valueLabel:ue,selectedValue:(D==null?void 0:D.value)??"auto",options:le,ariaLabel:"Selecionar qualidade do vídeo",onChange:ae}):null,b.jsx(cl,{label:"",valueLabel:de,selectedValue:U,options:se,ariaLabel:"Selecionar zoom do vídeo",onChange:Q}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:te,"aria-label":"Fullscreen",children:J?b.jsx(Ot.FullscreenExit,{fontSize:"small"}):b.jsx(Ot.Fullscreen,{fontSize:"small"})})]})]})]})]})};yu.displayName="VideoPlayer";const nk=ft(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),ok=ft(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),rk=ft(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"),sk=ft(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 z(){return z=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},z.apply(null,arguments)}function Ee(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 ik(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:is(t.components[n].defaultProps,o)}function ak(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return St(()=>{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 lk={...P},Ey=lk.useSyncExternalStore;function ck(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 Ey(c,l,a)}function My(e={}){const{themeId:t}=e;return function(o,r={}){let i=Ux();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}=ik({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 fO=new dO;function pO(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 hO=_.createContext(null),mO={BOTTOM:["50%","100%"]},iy=_.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=yO(e),c=_.useMemo(()=>a?{marker:a}:null,[a]);return _.useImperativeHandle(t,()=>a,[a]),l?_.createElement(hO.Provider,{value:c},qo.createPortal(_.createElement(gO,{anchorPoint:i,styles:o,className:r},n),l)):null});iy.displayName="AdvancedMarker";function tc(e){return e.nodeType===Node.ELEMENT_NODE}const gO=({children:e,styles:t,className:n})=>_.createElement("div",{className:n,style:t},e);function yO(e){const[t,n]=_.useState(null),[o,r]=_.useState(null),i=oa(),a=uO("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:C,title:S,zIndex:w,anchorPoint:T,anchorLeft:E,anchorTop:M}=e,A=_.Children.count(l);return _.useEffect(()=>{if(!i||!a)return;const k=new a.AdvancedMarkerElement;k.map=i,n(k);let V=null;return A>0&&(V=document.createElement("div"),k.content=V,r(V)),()=>{k.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,A]),_.useEffect(()=>{!(t!=null&&t.content)||!tc(t.content)||A>0||(t.content.className=u??"")},[t,u,A]),bO(t,T,E,M,A>0),Ks(t,"position",C),Ks(t,"title",S??""),Ks(t,"zIndex",w),Ks(t,"collisionBehavior",g),_.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),_.useEffect(()=>{if(!t)return;const k=y!==void 0||!!c||!!d||!!f;t.gmpClickable=k,k&&(t!=null&&t.content)&&tc(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),Gs(t,"click",c),Gs(t,"drag",p),Gs(t,"dragstart",h),Gs(t,"dragend",m),xp(t==null?void 0:t.element,"mouseenter",d),xp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function bO(e,t,n,o,r){_.useEffect(()=>{if(!e||!r)return;const i=pO(3,62),a=e.content;if(!(!a||!tc(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??mO.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",fO.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function vO(e){const[t,n]=_.useState(null),o=oa(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=ar(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return _.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]),_.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]),_.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),_.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const xO=_.forwardRef((e,t)=>{const n=vO(e);return _.useImperativeHandle(t,()=>n,[n]),_.createElement(_.Fragment,null)});xO.displayName="Marker";const ay=_.createContext(void 0),uu=()=>{const e=_.useContext(ay);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},du=({children:e})=>{const t=oa(),[n,o]=_.useState(13),[r,i]=_.useState(null);_.useEffect(()=>{if(!t)return;const c=t.getZoom();c!==void 0&&o(c);const u=t.getBounds();if(u){const p=u.getNorthEast(),h=u.getSouthWest(),m=[h.lng(),h.lat(),p.lng(),p.lat()];i(m)}const d=t.addListener("zoom_changed",()=>{const p=t.getZoom();p!==void 0&&o(p)}),f=t.addListener("bounds_changed",()=>{const p=t.getBounds();if(p){const h=p.getNorthEast(),m=p.getSouthWest(),g=[m.lng(),m.lat(),h.lng(),h.lat()];i(g)}});return()=>{d&&google.maps.event.removeListener(d),f&&google.maps.event.removeListener(f)}},[t]);const a=(c,u=16)=>{t&&(t.setCenter(c),t.setZoom(u))},l=(c,u)=>{t&&t.fitBounds(c,u)};return t?b.jsx(ay.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:a,fitBounds:l},children:e}):null};du.displayName="MapContent";const SO=180,ly=()=>{const{map:e}=uu(),t=_.useRef(null),n=_.useRef(null);return _.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}},SO)});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"}})};ly.displayName="MapResizeHandler";const wO="_googleMap_1gh3l_1",CO="_container_1gh3l_14",TO="_errorContainer_1gh3l_29",Zs={googleMap:wO,container:CO,errorContainer:TO},PO={lat:-26.3044,lng:-48.8487},EO=13,MO={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},OO=({options:e,onLoad:t,children:n})=>{const o=oa();return _.useEffect(()=>{o&&(o.setOptions(MO),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},cy=({center:e=PO,zoom:t=EO,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:`${Zs.container} ${Zs.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:Zs.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(zM,{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:`${Zs.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(sy,{...f,style:{width:"100%",height:"100%"},children:b.jsx(OO,{options:l,onLoad:c,children:b.jsxs(du,{children:[b.jsx(ly,{}),o]})})},p)})})};cy.displayName="GoogleMap";const Sp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],il=1,Mr=8;class fu{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!==il)throw new Error(`Got v${r} data when expected v${il}.`);const i=Sp[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 fu(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=Sp.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,Mr,t),this.coords=new this.ArrayType(this.data,Mr+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Mr+a+l+c),this.ids=new this.IndexArrayType(this.data,Mr,t),this.coords=new this.ArrayType(this.data,Mr+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(il<<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 nc(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],C=a[2*y+1];v>=t&&v<=o&&C>=n&&C<=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++)wp(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];wp(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 nc(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;uy(e,t,a,o,r,i),nc(e,t,n,o,a-1,1-i),nc(e,t,n,a+1,r,1-i)}function uy(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));uy(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(Or(e,t,o,n),t[2*r+i]>a&&Or(e,t,o,r);l<c;){for(Or(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?Or(e,t,o,c):(c++,Or(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function Or(e,t,n,o){al(e,n,o),al(t,2*n,2*o),al(t,2*n+1,2*o+1)}function al(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function wp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const kO={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Cp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),lo=2,Fn=3,ll=4,$n=5,dy=6;class DO{constructor(t){this.options=Object.assign(Object.create(kO),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=Cp(Xs(d)),h=Cp(Qs(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(Xs(o),Qs(a),Xs(i),Qs(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+$n]>1?Tp(u,p,this.clusterProps):this.points[u[p+Fn]])}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+ll]===t&&f.push(a[h+$n]>1?Tp(a,h,this.clusterProps):this.points[a[h+Fn]])}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 fu(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+$n]>1;let d,f,p;if(u)d=fy(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Fn]];d=g.properties;const[y,v]=g.geometry.coordinates;f=Xs(y),p=Qs(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+Fn]:m=this.points[n[c+Fn]].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+lo]<=n)continue;c[f+lo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+$n];let y=g;for(const v of m){const C=v*d;c[C+lo]>n&&(y+=c[C+$n])}if(y>g&&y>=a){let v=p*g,C=h*g,S,w=-1;const T=((f/d|0)<<5)+(n+1)+this.points.length;for(const E of m){const M=E*d;if(c[M+lo]<=n)continue;c[M+lo]=n;const A=c[M+$n];v+=c[M]*A,C+=c[M+1]*A,c[M+ll]=T,i&&(S||(S=this._map(c,f,!0),w=this.clusterProps.length,this.clusterProps.push(S)),i(S,this._map(c,M)))}c[f+ll]=T,u.push(v/y,C/y,1/0,T,-1,y),i&&u.push(w)}else{for(let v=0;v<d;v++)u.push(c[f+v]);if(y>1)for(const v of m){const C=v*d;if(!(c[C+lo]<=n)){c[C+lo]=n;for(let S=0;S<d;S++)u.push(c[C+S])}}}}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+$n]>1){const a=this.clusterProps[t[n+dy]];return o?Object.assign({},a):a}const r=this.points[t[n+Fn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Tp(e,t,n){return{type:"Feature",id:e[t+Fn],properties:fy(e,t,n),geometry:{type:"Point",coordinates:[RO(e[t]),IO(e[t+1])]}}}function fy(e,t,n){const o=e[t+$n],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+dy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Fn],point_count:o,point_count_abbreviated:r})}function Xs(e){return e/360+.5}function Qs(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 RO(e){return(e-.5)*360}function IO(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const AO={radius:30,maxZoom:13,minZoom:0,minPoints:2};function Pp(e){return e.isCluster?`c_${e.lat.toFixed(6)}_${e.lng.toFixed(6)}_${e.pointCount}_${e.count}`:`s_${e.id}`}function NO(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 _O(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||!NO(e.cameras,t.cameras))}function jO(e,t){if(e.length===0)return t;const n=new Map;for(const i of e)n.set(Pp(i),i);let o=!1;const r=t.map(i=>{const a=Pp(i),l=n.get(a);return l&&_O(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function LO(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function $O(e,t,n,o={}){const r=_.useRef(null),[i,a]=_.useState([]),l=_.useRef(""),c={...AO,...o};return _.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=LO(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 DO({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]),_.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(S=>S.properties.cameras||[]),C=y.reduce((S,w)=>S+w.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:C,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=>jO(f,d))},[e,t,n]),i}const Ep=_.memo(function({spot:t,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onSpotClick:u,onCameraClick:d}){const f=_.useCallback(()=>u(t),[u,t]),p=_.useCallback(h=>d==null?void 0:d(h,t),[d,t]);return b.jsx(iy,{position:{lat:t.lat,lng:t.lng},onClick:f,children:b.jsx(cu,{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})})}),py=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=wE,selectedZoomLevel:r=sl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f})=>{const{isLoaded:p,currentZoom:h,bounds:m,zoomToPosition:g}=uu(),y=(a==null?void 0:a.id)??i,{spotsForClustering:v,pinnedSpot:C}=_.useMemo(()=>{if(y==null)return{spotsForClustering:e,pinnedSpot:null};const E=e.find(A=>A.id===y)??null;return E?{spotsForClustering:e.filter(A=>A.id!==y),pinnedSpot:E}:{spotsForClustering:e,pinnedSpot:null}},[e,y]),S=$O(v,h,m),w=_.useCallback(E=>{if(E.isCluster)g({lat:E.lat,lng:E.lng},wo);else if(f)g({lat:E.lat,lng:E.lng},h<wo?wo:r??o);else{const M=a?a.id===E.id:i===E.id;h<wo?(g({lat:E.lat,lng:E.lng},wo),t==null||t(E)):(h<(r??sl)&&!M&&g({lat:E.lat,lng:E.lng},r??sl),t==null||t(E))}},[g,f,a,i,h,r,o,t]),T=_.useCallback(E=>!c&&!u?!1:!E.isCluster&&E.id===c?!0:E.isCluster&&u&&E.cameras?E.cameras.some(M=>M.id===u):!1,[c,u]);return p?b.jsxs(b.Fragment,{children:[S.map((E,M)=>b.jsx(Ep,{spot:E,currentZoom:h,isSelected:!1,selectedCameraId:l,isHighlighted:T(E),animateOnClick:d,disableClick:f,onSpotClick:w,onCameraClick:n},E.id??M)),C&&b.jsx(Ep,{spot:C,currentZoom:h,isSelected:!0,selectedCameraId:l,isHighlighted:String(C.id)===String(c),highlightedCameraId:String(C.id)===String(c)?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:w,onCameraClick:n},`pinned-${C.id}`)]}):null};py.displayName="MapMarkers";const VO="_searchBar_15mix_1",FO="_startIconContainer_15mix_106",BO="_endIconContainer_15mix_117",zO="_endIconContainerClickable_15mix_153",WO="_defaultIcon_15mix_157",Wr={searchBar:VO,startIconContainer:FO,endIconContainer:BO,endIconContainerClickable:zO,defaultIcon:WO},UO=e=>()=>{e&&e()},HO=e=>t=>{e&&e(t)},YO=()=>b.jsx(Ot.Search,{className:Wr.defaultIcon}),qO=e=>e||YO(),hy=_.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=H.useTheme().palette.mode==="dark",f=qO(t),p=UO(n),h=HO(i);return b.jsx(H.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Wr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(H.InputAdornment,{position:"start",className:Wr.startIconContainer,children:e}):null,endAdornment:b.jsx(H.InputAdornment,{position:"end",className:`${Wr.endIconContainer} ${n?Wr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});hy.displayName="SearchBar";const GO=ft(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),KO=ft([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"),ZO="_container_1mb8b_1",XO="_iconWrapper_1mb8b_11",QO="_icon_1mb8b_11",JO="_title_1mb8b_21",ek="_subtitle_1mb8b_30",tk="_description_1mb8b_34",nk="_button_1mb8b_38",co={container:ZO,iconWrapper:XO,icon:QO,title:JO,subtitle:ek,description:tk,button:nk},my=({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(H.Container,{maxWidth:"sm",children:b.jsxs(H.Box,{className:`${co.container} ${i||""}`,children:[b.jsx(H.Box,{className:co.iconWrapper,children:b.jsx(KO,{className:co.icon,color:"primary"})}),b.jsx(H.Typography,{variant:"h1",className:co.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(H.Typography,{variant:"h4",component:"h2",className:co.subtitle,color:"text.primary",children:n}),b.jsx(H.Typography,{variant:"body1",className:co.description,color:"text.secondary",children:o}),e&&b.jsx(wc,{variant:"contained",size:"large",startIcon:b.jsx(GO,{}),onClick:e,className:co.button,children:t})]})});my.displayName="NotFoundContent";const ok=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}},rk=({items:e,isExpanded:t=!0,onClick:n})=>{const o=_.useMemo(()=>ok(e),[e]),[r,i]=_.useState(o.itemId),[a,l]=_.useState(o.subItemId),[c,u]=_.useState(o.expandedItemId),[d,f]=_.useState(null),[p,h]=_.useState(null);_.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 A;const M=a?!!((A=E.submenu)!=null&&A.some(k=>k.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 A,k;i(E.id),l(null),(A=E.submenu)!=null&&A.length?t?u(V=>V===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(k=E.onClick)==null||k.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,A,k)=>{var V;i(E.id),l(M.id),k!=null&&k.closeMenu&&(f(null),h(null)),(V=M.onClick)==null||V.call(M,A),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},gy=e=>typeof e=="number"?`${e*4}px`:e,sk=({item:e,onClick:t,isActive:n})=>{const o=ie.useTheme();return b.jsx(H.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:gy(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(H.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},yy=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ie.useTheme(),i=gy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=rk({items:e,isExpanded:t,onClick:o});return b.jsxs(H.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const y=u(g),v=f(g),C=t?r.spacing(2):r.spacing(4),S=t?y?r.palette.primary.main:r.palette.action.hover:"transparent",w=t?"transparent":y?r.palette.primary.main:r.palette.action.hover,T=!t&&y?r.palette.primary.contrastText:r.palette.text.primary;return b.jsxs(H.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(H.ButtonBase,{onClick:A=>p(g,A),"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,justifyContent:t?"flex-start":"center",textAlign:"left",color:r.palette.text.primary,backgroundColor:S,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t?r.palette.action.hover:"transparent"}},children:b.jsxs(H.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[b.jsx(H.Box,{sx:{width:64,height:C,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:w,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?ie.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(H.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?b.jsx(H.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(H.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(H.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(A=>{const k=d(A);return b.jsx(sk,{item:A,isActive:k,onClick:V=>h(g,A,V)},A.id)})})}):null]},g.id)}),b.jsx(H.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]}},children:c.map(g=>{const y=d(g);return b.jsx(H.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};yy.displayName="SidebarMenu";const ik=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},ak=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=_.useMemo(()=>ik(e),[e]),[r,i]=_.useState(o),[a,l]=_.useState(null);_.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)}}},lk=e=>typeof e=="number"?`${e*4}px`:e,by=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var D,N;const d=ie.useTheme(),f=_.useRef(null),p=lk(d.shape.borderRadius),[h,m]=_.useState(!1),g=_.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:C,openMenu:S,closeMenu:w,handleItemClick:T}=ak({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((D=e[0])==null?void 0:D.label)??"",M=o??(y==null?void 0:y.icon)??((N=e[0])==null?void 0:N.icon)??null,A=l||!M,k=B=>{if(l){m(F=>!F);return}S(B)},V=(B,F)=>{T(B,F),m(!1)},L=b.jsx(H.Stack,{direction:"column",spacing:.5,children:e.map(B=>{const F=C(B);return b.jsxs(H.MenuItem,{selected:F,onClick:$=>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:[B.icon?b.jsx(H.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:B.icon}):null,b.jsx(H.Typography,{variant:"body1",sx:{fontWeight:F?600:500},children:B.label})]},B.id)})}),x=b.jsxs(H.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3],display:"flex",flexDirection:"column",maxHeight:d.spacing(50)},children:[i?b.jsx(H.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(H.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(H.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:L})]}),j=a?b.jsxs(H.MenuItem,{onClick:a.onClick,sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(H.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(H.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,O=j?b.jsx(H.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:j}):null,I=b.jsxs(H.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[x,O]});return b.jsxs(H.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(H.ButtonBase,{onClick:k,"aria-label":E,ref:f,sx:{width:l?d.spacing(28):"64px",height:l?"auto":"64px",borderRadius:p,px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",backgroundColor:d.palette.action.hover,"&:hover":{backgroundColor:d.palette.action.selected}},children:b.jsxs(H.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(H.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,A?b.jsxs(H.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(H.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(H.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(H.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(H.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(H.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:I})}):null:b.jsx(H.Menu,{anchorEl:v,open:!!v,onClose:w,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:I})]})};by.displayName="ModuleMenu";const pu=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,ck=(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}}),En={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function vy(e){return"init"in e}function oc(e){return!!e.write}function Mp(e){return"v"in e||"e"in e}function Mi(e){if("e"in e)throw e.e;if((En?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Oi=new WeakMap;function xy(e){var t;return ki(e)&&!!((t=Oi.get(e))!=null&&t[0])}function uk(e){const t=Oi.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function rc(e,t){let n=Oi.get(e);if(!n){n=[!0,new Set],Oi.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function ki(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 wy(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 dk=(e,t,...n)=>t.read(...n),fk=(e,t,...n)=>t.write(...n),pk=(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)},hk=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},mk=(e,t)=>{var n;const o=Rt(e),r=o[0],i=o[6],a=o[9];if((En?"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},gk=e=>{const t=Rt(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)},yk=e=>{const t=Rt(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((En?"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 wy(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)}},sc=new WeakSet,bk=(e,t)=>{var n,o;const r=Rt(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(Mp(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let k=!1;for(const[V,L]of v.d)if(h(e,V).n!==L){k=!0;break}if(!k)return v}v.d.clear();let C=!0;function S(){i.has(t)&&(g(e,t),p(e),f(e))}function w(k){var V;if(k===t){const x=d(e,k);if(!Mp(x))if(vy(k))y(e,k,k.init);else throw new Error("no atom init");return Mi(x)}const L=h(e,k);try{return Mi(L)}finally{v.d.set(k,L.n),xy(v.v)&&Sy(t,v.v,L),i.has(t)&&((V=i.get(k))==null||V.t.add(t)),C||S()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(En?"production":void 0)!=="production"&&!oc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&oc(t)&&(E=(...k)=>{if((En?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)try{return m(e,t,...k)}finally{p(e),f(e)}}),E}},A=v.n;try{(En?"production":void 0)!=="production"&&sc.delete(e);const k=u(e,t,w,M);return(En?"production":void 0)!=="production"&&sc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,k),ki(k)&&(rc(k,()=>T==null?void 0:T.abort()),k.then(S,S)),(n=c.r)==null||n.call(c,t),v}catch(k){return delete v.v,v.e=k,++v.n,v}finally{C=!1,A!==v.n&&a.get(t)===A&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},vk=(e,t)=>{const n=Rt(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 wy(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},xk=(e,t,...n)=>{const o=Rt(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=C=>Mi(d(e,C)),v=(C,...S)=>{var w;const T=l(e,C);try{if(C===t){if(!vy(C))throw new Error("atom not writable");(En?"production":void 0)!=="production"&&sc.add(e);const E=T.n,M=S[0];m(e,C,M),h(e,C),E!==T.n&&(r.add(C),f(e,C),(w=i.c)==null||w.call(i,C));return}else return p(e,C,...S)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},Sk=(e,t)=>{var n;const o=Rt(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&&!xy(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)}}},wk=(e,t)=>{var n;const o=Rt(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),oc(t)){const y=()=>{let v=!0;const C=(...S)=>{try{return p(e,t,...S)}finally{v||(d(e),u(e))}};try{const S=l(e,t,C);S&&(g.u=()=>{v=!0;try{S()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},Ck=(e,t)=>{var n,o;const r=Rt(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},Tk=(e,t,n)=>{const o=Rt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(ki(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,ki(a)&&uk(a))},Pk=(e,t)=>{const n=Rt(e)[14];return Mi(n(e,t))},Ek=(e,t,...n)=>{const o=Rt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},Mk=(e,t,n)=>{const o=Rt(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)}},Cy=new WeakMap,Rt=e=>{const t=Cy.get(e);if((En?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function Ok(...e){const t={get(o){const r=Rt(t)[21];return r(t,o)},set(o,...r){const i=Rt(t)[22];return i(t,o,...r)},sub(o,r){const i=Rt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},dk,fk,pk,hk,mk,gk,yk,bk,vk,xk,Sk,wk,Ck,Tk,Pk,Ek,Mk,void 0].map((o,r)=>e[r]||o);return Cy.set(t,Object.freeze(n)),t}const Ty={};let kk=0;function xr(e,t){const n=`atom${++kk}`,o={toString(){return(Ty?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=Dk,o.write=Rk),o}function Dk(e){return e(this)}function Rk(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function Ik(){return Ok()}let kr;function Ak(){return kr||(kr=Ik(),(Ty?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=kr),globalThis.__JOTAI_DEFAULT_STORE__!==kr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),kr}const Nk={},_k=_.createContext(void 0);function Py(e){return _.useContext(_k)||Ak()}const ic=e=>typeof(e==null?void 0:e.then)=="function",ac=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},jk=_.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(ac(e),e)}),cl=new WeakMap,Op=(e,t)=>{let n=cl.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();ic(u)?(cl.set(u,n),i=u,u.then(a(u),l(u)),rc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),rc(e,c)}),cl.set(e,n)),n};function Di(e,t){const{delay:n,unstable_promiseStatus:o=!_.use}={},r=Py(),[[i,a,l],c]=_.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)),_.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);ic(f)&&ac(Op(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),_.useDebugValue(u),ic(u)){const d=Op(u,()=>r.get(e));return o&&ac(d),jk(d)}return u}function lc(e,t){const n=Py();return _.useCallback((...r)=>{if((Nk?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Un(e,t){return[Di(e),lc(e)]}const ra=xr(0),sa=xr(!0),hu=xr(null),Ey=xr({windowSeconds:24*60*60,fps:30}),mu=xr([]),gu=xr([]),yu=_.createContext(null),My=({children:e})=>{const t=_.useRef(null),[n,o]=Un(ra),[r,i]=Un(sa),[a,l]=_.useState(!1),[c,u]=_.useState(0),[d,f]=_.useState(!1);_.useEffect(()=>{const S=t.current;if(!S)return;const w=()=>{if(o(S.currentTime),S.seekable&&S.seekable.length>0){const M=S.seekable.end(S.seekable.length-1);u(M),f(M>0)}else S.duration&&isFinite(S.duration)&&(u(S.duration),f(!0))},T=()=>l(!0),E=()=>l(!1);return S.addEventListener("timeupdate",w),S.addEventListener("durationchange",w),S.addEventListener("loadedmetadata",w),S.addEventListener("progress",w),S.addEventListener("play",T),S.addEventListener("pause",E),w(),()=>{S.removeEventListener("timeupdate",w),S.removeEventListener("durationchange",w),S.removeEventListener("loadedmetadata",w),S.removeEventListener("progress",w),S.removeEventListener("play",T),S.removeEventListener("pause",E)}},[o]);const p=_.useCallback(S=>{o(S)},[o]),h=_.useCallback(S=>{i(S)},[i]),m=_.useCallback(S=>{const w=t.current;!w||!d||(w.currentTime=S,o(S),i(!1))},[d,o,i]),g=_.useCallback(async()=>{const S=t.current;if(S)try{await S.play(),l(!0)}catch(w){console.error("Failed to play video:",w)}},[]),y=_.useCallback(()=>{const S=t.current;S&&(S.pause(),l(!1))},[]),v=_.useCallback(()=>{a?y():g()},[a,g,y]),C={videoRef:t,currentTime:n,setCurrentTime:p,isLive:r,setIsLive:h,seekTo:m,play:g,pause:y,togglePlay:v,isPlaying:a,duration:c,canSeek:d};return b.jsx(yu.Provider,{value:C,children:e})},ia=()=>_.useContext(yu),Lk=()=>{const e=_.useContext(yu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},$k=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=_.useRef(null),l=ia(),c=_.useRef(null),u=_.useCallback($=>{c.current=$,l!=null&&l.videoRef&&(l.videoRef.current=$)},[l]),d=_.useMemo(()=>{if(!t||!t.length)return null;if(n){const $=t.find(R=>R.value===n);if($)return $}return t[0]},[t,n]),[f,p]=_.useState(d),[h,m]=_.useState(!1),[g,y]=_.useState(!0),[v,C]=_.useState(!1),[S,w]=_.useState(0),[T,E]=_.useState(0),[M,A]=_.useState(1),[k,V]=_.useState(1),[L,x]=_.useState(!1),[j,O]=_.useState(!0),I=(f==null?void 0:f.stream)??e??null,D=(f==null?void 0:f.src)??null,B=!!!I||i;_.useEffect(()=>{p(d)},[d]);const F=_.useCallback(()=>{const $=c.current;if(!$)return;if(!$.seekable||$.seekable.length===0){y(!0),C(!1),l&&l.setIsLive(!0);return}const R=pu($),W=Math.max(0,R-$.currentTime);E(R),w($.currentTime),C(R>0);const K=W<=(r??2);y(K),l&&(l.setCurrentTime($.currentTime),l.setIsLive(K))},[r,l]);return _.useEffect(()=>{const $=c.current;if(!$)return;const R=()=>m(!0),W=()=>m(!1),K=()=>O(!0),G=()=>O(!0),Z=()=>O(!1),U=()=>O(!1);return $.addEventListener("play",R),$.addEventListener("pause",W),$.addEventListener("waiting",K),$.addEventListener("loadstart",G),$.addEventListener("canplay",Z),$.addEventListener("playing",U),$.addEventListener("timeupdate",F),$.addEventListener("durationchange",F),$.addEventListener("loadedmetadata",F),$.addEventListener("progress",F),()=>{$.removeEventListener("play",R),$.removeEventListener("pause",W),$.removeEventListener("waiting",K),$.removeEventListener("loadstart",G),$.removeEventListener("canplay",Z),$.removeEventListener("playing",U),$.removeEventListener("timeupdate",F),$.removeEventListener("durationchange",F),$.removeEventListener("loadedmetadata",F),$.removeEventListener("progress",F)}},[F]),_.useEffect(()=>{const $=c.current;$&&(O(!0),I?($.srcObject!==I&&($.srcObject=I),$.getAttribute("src")&&$.removeAttribute("src")):D?($.srcObject&&($.srcObject=null),$.src!==D&&($.src=D,$.load())):($.srcObject&&($.srcObject=null),$.getAttribute("src")&&$.removeAttribute("src")),o&&$.play().then(()=>{}).catch(()=>{}))},[I,D,o]),_.useEffect(()=>{const $=c.current;$&&(B?$.playbackRate=M:($.playbackRate=1,A(1)))},[M,B]),_.useEffect(()=>{const $=()=>{x(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",$),()=>{document.removeEventListener("fullscreenchange",$)}},[]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:S,setCurrentTime:w,seekableEnd:T,playbackRate:M,setPlaybackRate:A,zoom:k,setZoom:V,isFullscreen:L,isLoading:j,canAdjustPlaybackRate:B,updateLiveStatus:F}},Vk="_container_12m9a_1",Fk="_loader_12m9a_78",Bk="_video_12m9a_88",zk="_timestampOverlay_12m9a_96",Wk="_timestampText_12m9a_109",Uk="_controlsOverlay_12m9a_121",Hk="_timeline_12m9a_142",Yk="_controlsRow_12m9a_149",qk="_controlGroup_12m9a_167",Gk="_iconButton_12m9a_184",Kk="_seekButton_12m9a_202",Zk="_menuButton_12m9a_229",Xk="_liveBadge_12m9a_250",Qk="_liveBadgeActive_12m9a_267",Jk="_liveBadgeInactive_12m9a_272",e2="_recordingBadge_12m9a_277",t2="_recordingDot_12m9a_296",n2="_controlMenuWrapper_12m9a_325",Ge={container:Vk,loader:Fk,video:Bk,timestampOverlay:zk,timestampText:Wk,controlsOverlay:Uk,timeline:Hk,controlsRow:Yk,controlGroup:qk,iconButton:Gk,seekButton:Kk,menuButton:Zk,liveBadge:Xk,liveBadgeActive:Qk,liveBadgeInactive:Jk,recordingBadge:e2,recordingDot:t2,controlMenuWrapper:n2},ul=({label:e,valueLabel:t,selectedValue:n,options:o,onChange:r,disabled:i,ariaLabel:a})=>{const[l,c]=_.useState(null),u=!!l;return b.jsxs(b.Fragment,{children:[b.jsx(H.ButtonBase,{disabled:i,className:`${Ge.menuButton} ${Ge.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),b.jsx(H.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:o.map(d=>b.jsx(H.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{r(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},o2=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},r2=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=pu(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},s2=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},i2=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},a2=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},l2=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=pu(i);i.currentTime=Math.min(Math.max(a,0),l),n()},bu=({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.2,1.5],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:C=!0,isRecording:S=!1,recordingLabel:w="Gravação",borderRadius:T})=>{const M=ie.useTheme().palette.mode==="dark",[A,k]=_.useState(""),[V,L]=_.useState(!0),x=_.useRef(null);_.useEffect(()=>{if(!v)return;const ke=()=>{const Se=new Date,Pe=String(Se.getDate()).padStart(2,"0"),xe=String(Se.getMonth()+1).padStart(2,"0"),$e=Se.getFullYear(),Ve=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Se.getDay()],ot=String(Se.getHours()).padStart(2,"0"),Xe=String(Se.getMinutes()).padStart(2,"0"),_t=String(Se.getSeconds()).padStart(2,"0");k(`${Pe}-${xe}-${$e}, ${Ve} ${ot}:${Xe}:${_t}`)};ke();const ut=setInterval(ke,1e3);return()=>clearInterval(ut)},[v]),_.useEffect(()=>{const ke=j.current;if(!ke)return;const ut=()=>{x.current&&(clearTimeout(x.current),x.current=null),L(!0)},Se=()=>{x.current=setTimeout(()=>{L(!1)},1e4)},Pe=()=>{V||L(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{L(!1)},1e4)};return ke.addEventListener("mouseenter",ut),ke.addEventListener("mouseleave",Se),ke.addEventListener("mousemove",Pe),()=>{ke.removeEventListener("mouseenter",ut),ke.removeEventListener("mouseleave",Se),ke.removeEventListener("mousemove",Pe),x.current&&clearTimeout(x.current)}},[V]);const{containerRef:j,videoRef:O,setVideoRef:I,selectedQuality:D,setSelectedQuality:N,isPlaying:B,isLive:F,canSeek:$,currentTime:R,setCurrentTime:W,seekableEnd:K,playbackRate:G,setPlaybackRate:Z,zoom:U,setZoom:Q,isFullscreen:J,isLoading:ee,canAdjustPlaybackRate:q,updateLiveStatus:X}=$k({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),Y=o2(O),oe=r2(O,$,X),te=s2(j),ae=i2(t,N,o),re=a2($,W),be=l2(O,$,X),se=h.map(ke=>({value:ke,label:`${Math.round(ke*100)}%`})),he=p.map(ke=>({value:ke,label:`${ke}x`})),le=t.map(ke=>({value:ke.value,label:ke.label})),ue=(D==null?void 0:D.label)??"Auto",de=`${Math.round(U*100)}%`,Ie=`${G}x`,Me=$&&K>0,Ze=ck(m,g,y),Je=T!=null?{...Ze,"--vp-radius":typeof T=="number"?`${T}px`:T}:Ze;return b.jsxs(H.Box,{ref:j,className:`${Ge.container} ${c||""}`.trim(),"data-theme":M?"dark":"light",style:Je,sx:u,children:[ee&&b.jsx(H.Box,{className:Ge.loader,children:b.jsx(H.CircularProgress,{size:60,sx:{color:"var(--vp-control-color)",width:{xs:"48px",sm:"60px"},height:{xs:"48px",sm:"60px"}}})}),b.jsx("video",{ref:I,className:Ge.video,autoPlay:r,playsInline:i,muted:a,poster:l,style:{transform:`scale(${U})`}}),v&&A&&b.jsx(H.Box,{className:Ge.timestampOverlay,children:b.jsx(H.Typography,{variant:"body2",className:Ge.timestampText,children:A})}),S&&!V&&b.jsx(H.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsxs("span",{className:Ge.recordingBadge,children:[b.jsx("span",{className:Ge.recordingDot}),w]})}),F&&!S&&!V&&b.jsx(H.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsx("span",{className:`${Ge.liveBadge} ${Ge.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs(H.Box,{className:Ge.controlsOverlay,sx:{opacity:V?1:0,visibility:V?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[C&&b.jsx(H.Box,{className:Ge.timeline,children:b.jsx(H.Slider,{size:"small",min:0,max:Me?K:1,step:1,value:Me?R:0,disabled:!Me,onChange:re,onChangeCommitted:be,"aria-label":"Linha do tempo do video",sx:{color:"var(--vp-slider-color)","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-track":{border:"none",backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-rail":{backgroundColor:"var(--vp-slider-rail)",opacity:1}}})}),b.jsxs(H.Box,{className:Ge.controlsRow,children:[b.jsxs(H.Box,{className:Ge.controlGroup,children:[S?b.jsxs("span",{className:Ge.recordingBadge,children:[b.jsx("span",{className:Ge.recordingDot}),w]}):b.jsx("span",{className:`${Ge.liveBadge} ${F?Ge.liveBadgeActive:Ge.liveBadgeInactive}`,children:"ao vivo"}),b.jsx("button",{className:Ge.seekButton,onClick:()=>oe(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:()=>oe(-15),"aria-label":"Recuar 15 segundos",children:b.jsx(Ot.FastRewind,{fontSize:"small"})}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:Y,"aria-label":"Play/Pause",children:B?b.jsx(Ot.Pause,{fontSize:"small"}):b.jsx(Ot.PlayArrow,{fontSize:"small"})}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:()=>oe(15),"aria-label":"Avançar 15 segundos",children:b.jsx(Ot.FastForward,{fontSize:"small"})}),b.jsx("button",{className:Ge.seekButton,onClick:()=>oe(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),b.jsxs(H.Box,{className:Ge.controlGroup,children:[b.jsx(ul,{label:"",valueLabel:Ie,selectedValue:G,options:he,ariaLabel:"Selecionar velocidade de reprodução",onChange:Z,disabled:!q}),le.length>0?b.jsx(ul,{label:"",valueLabel:ue,selectedValue:(D==null?void 0:D.value)??"auto",options:le,ariaLabel:"Selecionar qualidade do vídeo",onChange:ae}):null,b.jsx(ul,{label:"",valueLabel:de,selectedValue:U,options:se,ariaLabel:"Selecionar zoom do vídeo",onChange:Q}),b.jsx(H.IconButton,{className:Ge.iconButton,onClick:te,"aria-label":"Fullscreen",children:J?b.jsx(Ot.FullscreenExit,{fontSize:"small"}):b.jsx(Ot.Fullscreen,{fontSize:"small"})})]})]})]})]})};bu.displayName="VideoPlayer";const c2=ft(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),u2=ft(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),d2=ft(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"),f2=ft(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 z(){return z=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},z.apply(null,arguments)}function Ee(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 p2(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:is(t.components[n].defaultProps,o)}function h2(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return St(()=>{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 m2={...P},Oy=m2.useSyncExternalStore;function g2(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 Oy(c,l,a)}function ky(e={}){const{themeId:t}=e;return function(o,r={}){let i=qx();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}=p2({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=(
|
|
112
|
-
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},aa=(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))},
|
|
111
|
+
`));const h=(Oy!==void 0?g2:h2)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}ky();const Dy=ky({themeId:Xi}),yt=s.oneOfType([s.func,s.object]);function Zt(e,t,n){return typeof e=="function"?e(t,n):e}const Dr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),y2=({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}},Ri=(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},fs=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=Ri(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},b2=(e,t)=>e.isValid(t)?t:null,kp=(e,t,n)=>t==null||!e.isValid(t)?n:t,v2=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),vu=(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},Ry=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),x2=["year","month","day"],Dp=e=>x2.includes(e),xu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Dr(n,["year"])?r.year:Dr(n,["month"])?r.month:Dr(n,["day"])?r.dayOfMonth:Dr(n,["month","year"])?`${r.month} ${r.year}`:Dr(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},S2=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},w2=["hours","minutes","seconds"],C2=e=>w2.includes(e),Rp=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),T2=(e,t)=>(n,o)=>e?t.isAfter(n,o):Rp(n,t)>Rp(o,t),pn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},P2=e=>Math.max(...e.map(t=>pn[t.type]??1)),Rr=(e,t,n)=>{if(t===pn.year)return e.startOfYear(n);if(t===pn.month)return e.startOfMonth(n);if(t===pn.day)return e.startOfDay(n);let o=n;return t<pn.minutes&&(o=e.setMinutes(o,0)),t<pn.seconds&&(o=e.setSeconds(o,0)),t<pn.milliseconds&&(o=e.setMilliseconds(o,0)),o},E2=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():Rr(t,n,Ry(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Rr(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Rr(t,n,e.maxDate));const a=T2(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Rr(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ri(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Rr(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ri(t,i,e.maxTime))),i},Su=(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}},aa=(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))},Iy=(e,t,n,o)=>{switch(n){case"month":return vu(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return aa(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[]}},Ip="s",M2=["0","1","2","3","4","5","6","7","8","9"],O2=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Ip)==="0"?M2:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Ip))},Io=(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("")},wu=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Ap=(e,t)=>{const n=Io(e,t);return n!==" "&&!Number.isNaN(Number(n))},Cu=(e,t)=>Number(e).toString().padStart(t,"0"),Ay=(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=wu(i,r.maxLength)),Su(i,o)},Cu=(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(Ro(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},Rp=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&xu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},wk=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Iy=(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")}},Ck=(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(Cu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},Tk=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Pk=(e,t,n)=>{const r=e.map(i=>{const a=Cu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},Ek=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=bu(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:wk(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=aa(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 Ro(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Ro(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 Ip=!1;const Ap=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Ip){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('", "')}"]\`.`),Ip=!0)}},Mk=(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=wu(r,t.maxLength));const i=aa(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}},Np={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)=>Np[i.type]-Np[a.type]).reduce((i,a)=>!r||a.modified?Mk(e,a,t,i):i,o),Ok=()=>navigator.userAgent.toLowerCase().includes("android"),kk=(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]}},lc=(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},Dk=["value","referenceDate"],xn={emptyValue:null,getTodayValue:ky,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ee(e,Dk);return o.adapter.isValid(t)?t:n??vk(o)},cleanValue:dk,areValuesEqual:fk,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)},Rk={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:Tk,getV6InputValueFromSections:Pk,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>z({},t,{value:""}))};function Ik(e){return typeof e.main=="string"}function Ak(e,t=[]){if(!Ik(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zt(e=[]){return([,t])=>t&&Ak(t,e)}function Nk(e){return Te("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _k={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jk=U1(),Lk=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,Nk,a)},$k=ye("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]}})(qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(zt()).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}}]}})),jp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},no=P.forwardRef(function(t,n){const{color:o,...r}=Le({props:t,name:"MuiTypography"}),i=!_k[o],a=jk({...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=jp,...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]||jp[h])||"span",C=Lk(y);return b.jsx($k,{as:v,ref:n,className:ge(C.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(no.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 Vk(e){return Te("MuiPickersToolbar",e)}Ce("MuiPickersToolbar",["root","title","content"]);const Fk=["localeText"],Ii=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ii.displayName="PickerAdapterContext");const la=function(t){const{localeText:n}=t,o=Ee(t,Fk),{adapter:r,localeText:i}=P.useContext(Ii)??{adapter:void 0,localeText:void 0},a=ie.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>z({},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(Ii.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(la.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(la.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
|
|
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=Cu(i,r.maxLength)),wu(i,o)},Tu=(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(Io(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},Np=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Su(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},k2=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Ny=(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")}},D2=(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(Tu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},R2=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),I2=(e,t,n)=>{const r=e.map(i=>{const a=Tu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},A2=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=vu(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:k2(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=aa(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 Io(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Io(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 _p=!1;const jp=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!_p){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('", "')}"]\`.`),_p=!0)}},N2=(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=Cu(r,t.maxLength));const i=aa(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}},Lp={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)=>Lp[i.type]-Lp[a.type]).reduce((i,a)=>!r||a.modified?N2(e,a,t,i):i,o),_2=()=>navigator.userAgent.toLowerCase().includes("android"),j2=(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]}},cc=(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},L2=["value","referenceDate"],xn={emptyValue:null,getTodayValue:Ry,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ee(e,L2);return o.adapter.isValid(t)?t:n??E2(o)},cleanValue:b2,areValuesEqual:v2,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)},$2={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:R2,getV6InputValueFromSections:I2,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>z({},t,{value:""}))};function V2(e){return typeof e.main=="string"}function F2(e,t=[]){if(!V2(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zt(e=[]){return([,t])=>t&&F2(t,e)}function B2(e){return Te("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const z2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},W2=q1(),U2=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,B2,a)},H2=ye("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]}})(qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(zt()).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}}]}})),Vp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},no=P.forwardRef(function(t,n){const{color:o,...r}=Le({props:t,name:"MuiTypography"}),i=!z2[o],a=W2({...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=Vp,...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]||Vp[h])||"span",C=U2(y);return b.jsx(H2,{as:v,ref:n,className:ge(C.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(no.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 Y2(e){return Te("MuiPickersToolbar",e)}Ce("MuiPickersToolbar",["root","title","content"]);const q2=["localeText"],Ii=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ii.displayName="PickerAdapterContext");const la=function(t){const{localeText:n}=t,o=Ee(t,q2),{adapter:r,localeText:i}=P.useContext(Ii)??{adapter:void 0,localeText:void 0},a=ie.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>z({},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(Ii.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(la.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(la.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 Pu=P.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Pu.displayName="IsValidValueContext");function G2(){return P.useContext(Pu)}const Eu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Eu.displayName="PickerFieldPrivateContext");function _y(){return P.useContext(Eu)}const ca=P.createContext(null);process.env.NODE_ENV!=="production"&&(ca.displayName="PickerContext");const Sr=()=>{const e=P.useContext(ca);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Mu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Mu.displayName="PickerActionsContext");const Ou=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"&&(Ou.displayName="PickerPrivateContext");function jy(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(ca.Provider,{value:t,children:b.jsx(Mu.Provider,{value:n,children:b.jsx(Ou.Provider,{value:o,children:b.jsx(Eu.Provider,{value:r,children:b.jsx(Pu.Provider,{value:i,children:b.jsx(la,{localeText:a,children:l})})})})})})}const Et=()=>P.useContext(Ou);function Ly(){const{ownerState:e}=Et(),t=ln();return P.useMemo(()=>z({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const K2=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],Z2=e=>we({root:["root"],title:["title"],content:["content"]},Y2,e),X2=ie.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"}}]})),Q2=ie.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Hn(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"}}]}),$y=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,f=Ee(o,K2),p=Ly(),h=Z2(a);return c?null:b.jsxs(X2,z({ref:n,className:ge(h.root,i),ownerState:p},f,{children:[b.jsx(no,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),b.jsx(Q2,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&($y.displayName="PickersToolbar");const J2=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),Vy={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"},eD=Vy;J2(Vy);const ku=()=>{const e=P.useContext(Ii);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(()=>z({},
|
|
118
|
-
`));return e};function oD(e){return Te("MuiDatePickerToolbar",e)}Ce("MuiDatePickerToolbar",["root","title"]);const rD=["toolbarFormat","toolbarPlaceholder","className","classes"],sD=e=>we({root:["root"],title:["title"]},oD,e),iD=ie.styled(jy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),aD=ie.styled(no,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Du=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Ee(o,rD),u=Ke(),{value:d,views:f,orientation:p}=xr(),h=oo(),m=_y(),g=sD(l),y=P.useMemo(()=>{if(!u.isValid(d))return i;const v=vu(u,{format:r,views:f},!0);return u.formatByString(d,v)},[d,r,i,u,f]);return b.jsx(iD,z({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ge(g.root,a)},c,{children:b.jsx(aD,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Du.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Du.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 Ds=({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}};Ds.valueManager=xn;function By(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=pe(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const lD=()=>Ou().defaultDates,ua=e=>{const t=Ke(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function cD(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Ds,internal_valueManager:xn,internal_fieldValueManager:Rk,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:dD,internal_useOpenPickerButtonAriaLabel:uD}),[t])}function uD(e){const t=Ke(),n=oo();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function dD(e){const t=Ke(),n=Rs(e);return P.useMemo(()=>z({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Rs(e){const t=Ke(),n=lD();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Ep(t,e.minDate,n.minDate),maxDate:Ep(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function zy(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Rs(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:z({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return z({},n,o,{localeText:r},uk({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:z({toolbar:Du},n.slots)})}function ar(e){return typeof e=="string"}function Wy(e,t,n){return e===void 0||ar(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Uy(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 $p(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 Hy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=ge(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=Uy({...r,...o}),l=$p(o),c=$p(r),u=t(a),d=ge(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 _e(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Zt(n,o),{props:l,internalRef:c}=Hy({...i,externalSlotProps:a}),u=je(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Wy(t,{...l,ref:u},o)}const Vp={};function Yy(e,t){const n=P.useRef(Vp);return n.current===Vp&&(n.current=e(t)),n}const fD=[];function pD(e){P.useEffect(e,fD)}class Ru{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 Ru}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Yn(){const e=Yy(Ru.create).current;return pD(e.disposeEffect),e}function Nn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function hD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function qy(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"&&!hD(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 Is=Nn(s.element,qy);Is.isRequired=Nn(s.element.isRequired,qy);function As(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 dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},dc(e,t)}function Iu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dc(e,t)}function mD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function gD(e,t){e.classList?e.classList.add(t):mD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Fp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Fp(e.className,t):e.setAttribute("class",Fp(e.className&&e.className.baseVal||"",t))}const Bp={disabled:!1};var bD=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,vD=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 Ai=L.createContext(null);var Gy=function(t){return t.scrollTop},Ur="unmounted",xo="exited",So="entering",zo="entered",fc="exiting",tn=function(e){Iu(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=xo,i.appearStatus=So):c=zo:o.unmountOnExit||o.mountOnEnter?c=Ur:c=xo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Ur?{status:xo}: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!==So&&a!==zo&&(i=So):(a===So||a===zo)&&(i=fc)}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===So){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ho.findDOMNode(this);a&&Gy(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xo&&this.setState({status:Ur})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[Ho.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||Bp.disabled){this.safeSetState({status:zo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:So},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:Ho.findDOMNode(this);if(!i||Bp.disabled){this.safeSetState({status:xo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:fc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:xo},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:Ho.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===Ur)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=Ee(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L.createElement(Ai.Provider,{value:null},typeof a=="function"?a(r,l):L.cloneElement(L.Children.only(a),l))},t}(L.Component);tn.contextType=Ai;tn.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=bD;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 Vo(){}tn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vo,onEntering:Vo,onEntered:Vo,onExit:Vo,onExiting:Vo,onExited:Vo};tn.UNMOUNTED=Ur;tn.EXITED=xo;tn.ENTERING=So;tn.ENTERED=zo;tn.EXITING=fc;var xD=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return gD(t,o)})},ul=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return yD(t,o)})},Au=function(e){Iu(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&&Gy(r),l&&(this.appliedClasses[i][a]=l,xD(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&&ul(r,l),c&&ul(r,c),u&&ul(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Ee(r,["classNames"]);return L.createElement(tn,z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(L.Component);Au.defaultProps={classNames:""};Au.propTypes=process.env.NODE_ENV!=="production"?z({},tn.propTypes,{classNames:vD,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function SD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nu(e,t){var n=function(i){return t&&L.isValidElement(i)?t(i):i},o=Object.create(null);return e&&L.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function wD(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 Po(e,t,n){return n[t]!=null?n[t]:e.props[t]}function CD(e,t){return Nu(e.children,function(n){return L.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Po(n,"appear",e),enter:Po(n,"enter",e),exit:Po(n,"exit",e)})})}function TD(e,t,n){var o=Nu(e.children),r=wD(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(L.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=L.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Po(a,"exit",e),enter:Po(a,"enter",e)}):!c&&l&&!d?r[i]=L.cloneElement(a,{in:!1}):c&&l&&L.isValidElement(u)&&(r[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Po(a,"exit",e),enter:Po(a,"enter",e)}))}}),r}var PD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ED={component:"div",childFactory:function(t){return t}},Ns=function(e){Iu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(SD(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?CD(r,l):TD(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Nu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=z({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Ee(r,["component","childFactory"]),c=this.state.contextValue,u=PD(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?L.createElement(Ai.Provider,{value:c},u):L.createElement(Ai.Provider,{value:c},L.createElement(i,l,u))},t}(L.Component);Ns.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Ns.defaultProps=ED;const Ky=e=>e.scrollTop;function Ni(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 pc(e){return`scale(${e}, ${e**2})`}const MD={entering:{opacity:1,transform:pc(1)},entered:{opacity:1,transform:"none"}},dl=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:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=tn,...v}=t,C=Yn(),x=P.useRef(),S=Qi(),T=P.useRef(null),E=je(T,As(i),n),M=I=>D=>{if(I){const _=T.current;D===void 0?I(_):I(_,D)}},A=M(d),O=M((I,D)=>{Ky(I);const{duration:_,delay:F,easing:B}=Ni({style:m,timeout:g,easing:a},{mode:"enter"});let $;g==="auto"?($=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=$):$=_,I.style.transition=[S.transitions.create("opacity",{duration:$,delay:F}),S.transitions.create("transform",{duration:dl?$:$*.666,delay:F,easing:B})].join(","),c&&c(I,D)}),V=M(u),j=M(h),w=M(I=>{const{duration:D,delay:_,easing:F}=Ni({style:m,timeout:g,easing:a},{mode:"exit"});let B;g==="auto"?(B=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=B):B=D,I.style.transition=[S.transitions.create("opacity",{duration:B,delay:_}),S.transitions.create("transform",{duration:dl?B:B*.666,delay:dl?_:_||B*.333,easing:F})].join(","),I.style.opacity=0,I.style.transform=pc(.75),f&&f(I)}),N=M(p),R=I=>{g==="auto"&&C.start(x.current||0,I),o&&o(T.current,I)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:O,onEntered:V,onEntering:A,onExit:w,onExited:N,onExiting:j,addEndListener:R,timeout:g==="auto"?null:g,...v,children:(I,{ownerState:D,..._})=>P.cloneElement(i,{style:{opacity:0,transform:pc(.75),visibility:I==="exited"&&!l?"hidden":void 0,...MD[I],...m,...i.props.style},ref:E,..._})})});process.env.NODE_ENV!=="production"&&(ps.propTypes={addEndListener:s.func,appear:s.bool,children:Is.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 OD={entering:{opacity:1},entered:{opacity:1}},Xn=P.forwardRef(function(t,n){const o=Qi(),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:C=tn,...x}=t,S=P.useRef(null),T=je(S,As(l),n),E=R=>I=>{if(R){const D=S.current;I===void 0?R(D):R(D,I)}},M=E(p),A=E((R,I)=>{Ky(R);const D=Ni({style:y,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=o.transitions.create("opacity",D),R.style.transition=o.transitions.create("opacity",D),d&&d(R,I)}),O=E(f),V=E(g),j=E(R=>{const I=Ni({style:y,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=o.transitions.create("opacity",I),R.style.transition=o.transitions.create("opacity",I),h&&h(R)}),w=E(m),N=R=>{i&&i(S.current,R)};return b.jsx(C,{appear:a,in:u,nodeRef:S,onEnter:A,onEntered:O,onEntering:M,onExit:j,onExited:w,onExiting:V,addEndListener:N,timeout:v,...x,children:(R,{ownerState:I,...D})=>P.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!u?"hidden":void 0,...OD[R],...y,...l.props.style},ref:T,...D})})});process.env.NODE_ENV!=="production"&&(Xn.propTypes={addEndListener:s.func,appear:s.bool,children:Is.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 kD(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 Zy(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=kD(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Xy(e,t,n,o){return e[t]===void 0?null:Zy(e,t,n,o)}function hc(){return null}Xy.isRequired=Zy;hc.isRequired=hc;const Qy=process.env.NODE_ENV==="production"?hc:Xy;function DD(e){return Te("MuiPaper",e)}Ce("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 RD=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,DD,r)},ID=ye("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}`]]}})(qe(({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)"}}]}))),_s=P.forwardRef(function(t,n){var h;const o=Le({props:t,name:"MuiPaper"}),r=Qi(),{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=RD(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(ID,{as:a,ownerState:f,className:ge(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(${gi("#fff",Ol(l))}, ${gi("#fff",Ol(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(_s.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Nn(Qy,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 In(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 $t="top",Qt="bottom",Jt="right",Vt="left",_u="auto",js=[$t,Qt,Jt,Vt],lr="start",hs="end",AD="clippingParents",Jy="viewport",Ir="popper",ND="reference",zp=js.reduce(function(e,t){return e.concat([t+"-"+lr,t+"-"+hs])},[]),eb=[].concat(js,[_u]).reduce(function(e,t){return e.concat([t,t+"-"+lr,t+"-"+hs])},[]),_D="beforeRead",jD="read",LD="afterRead",$D="beforeMain",VD="main",FD="afterMain",BD="beforeWrite",zD="write",WD="afterWrite",UD=[_D,jD,LD,$D,VD,FD,BD,zD,WD];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Io(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Xt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ju(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HD(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];!Xt(i)||!Sn(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 YD(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},{});!Xt(r)||!Sn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const qD={name:"applyStyles",enabled:!0,phase:"write",fn:HD,effect:YD,requires:["computeStyles"]};function yn(e){return e.split("-")[0]}var Oo=Math.max,_i=Math.min,cr=Math.round;function mc(){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 tb(){return!/^((?!chrome|android).)*safari/i.test(mc())}function ur(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Xt(e)&&(r=e.offsetWidth>0&&cr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cr(o.height)/e.offsetHeight||1);var a=Io(e)?Wt(e):window,l=a.visualViewport,c=!tb()&&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 Lu(e){var t=ur(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 nb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ju(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function An(e){return Wt(e).getComputedStyle(e)}function GD(e){return["table","td","th"].indexOf(Sn(e))>=0}function ro(e){return((Io(e)?e.ownerDocument:e.document)||window.document).documentElement}function da(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(ju(e)?e.host:null)||ro(e)}function Wp(e){return!Xt(e)||An(e).position==="fixed"?null:e.offsetParent}function KD(e){var t=/firefox/i.test(mc()),n=/Trident/i.test(mc());if(n&&Xt(e)){var o=An(e);if(o.position==="fixed")return null}var r=da(e);for(ju(r)&&(r=r.host);Xt(r)&&["html","body"].indexOf(Sn(r))<0;){var i=An(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 Ls(e){for(var t=Wt(e),n=Wp(e);n&&GD(n)&&An(n).position==="static";)n=Wp(n);return n&&(Sn(n)==="html"||Sn(n)==="body"&&An(n).position==="static")?t:n||KD(e)||t}function $u(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jr(e,t,n){return Oo(e,_i(t,n))}function ZD(e,t,n){var o=Jr(e,t,n);return o>n?n:o}function ob(){return{top:0,right:0,bottom:0,left:0}}function rb(e){return Object.assign({},ob(),e)}function sb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var XD=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,rb(typeof t!="number"?t:sb(t,js))};function QD(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=yn(n.placement),c=$u(l),u=[Vt,Jt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=XD(r.padding,n),p=Lu(i),h=c==="y"?$t:Vt,m=c==="y"?Qt:Jt,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=Ls(i),C=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,x=g/2-y/2,S=f[h],T=C-p[d]-f[m],E=C/2-p[d]/2+x,M=Jr(S,E,T),A=c;n.modifiersData[o]=(t={},t[A]=M,t.centerOffset=M-E,t)}}function JD(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)||nb(t.elements.popper,r)&&(t.elements.arrow=r))}const eR={name:"arrow",enabled:!0,phase:"main",fn:QD,effect:JD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dr(e){return e.split("-")[1]}var tR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nR(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:cr(n*r)/r||0,y:cr(o*r)/r||0}}function Up(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"),C=a.hasOwnProperty("y"),x=Vt,S=$t,T=window;if(u){var E=Ls(n),M="clientHeight",A="clientWidth";if(E===Wt(n)&&(E=ro(n),An(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",A="scrollWidth")),E=E,r===$t||(r===Vt||r===Jt)&&i===hs){S=Qt;var O=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=O-o.height,g*=c?1:-1}if(r===Vt||(r===$t||r===Qt)&&i===hs){x=Jt;var V=f&&E===T&&T.visualViewport?T.visualViewport.width:E[A];h-=V-o.width,h*=c?1:-1}}var j=Object.assign({position:l},u&&tR),w=d===!0?nR({x:h,y:g},Wt(n)):{x:h,y:g};if(h=w.x,g=w.y,c){var N;return Object.assign({},j,(N={},N[S]=C?"0":"",N[x]=v?"0":"",N.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",N))}return Object.assign({},j,(t={},t[S]=C?g+"px":"",t[x]=v?h+"px":"",t.transform="",t))}function oR(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:yn(t.placement),variation:dr(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,Up(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,Up(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 rR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oR,data:{}};var Js={passive:!0};function sR(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=Wt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Js)}),l&&c.addEventListener("resize",n.update,Js),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Js)}),l&&c.removeEventListener("resize",n.update,Js)}}const iR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sR,data:{}};var aR={left:"right",right:"left",bottom:"top",top:"bottom"};function pi(e){return e.replace(/left|right|bottom|top/g,function(t){return aR[t]})}var lR={start:"end",end:"start"};function Hp(e){return e.replace(/start|end/g,function(t){return lR[t]})}function Vu(e){var t=Wt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Fu(e){return ur(ro(e)).left+Vu(e).scrollLeft}function cR(e,t){var n=Wt(e),o=ro(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=tb();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Fu(e),y:c}}function uR(e){var t,n=ro(e),o=Vu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Oo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Oo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Fu(e),c=-o.scrollTop;return An(r||n).direction==="rtl"&&(l+=Oo(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Bu(e){var t=An(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function ib(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:Xt(e)&&Bu(e)?e:ib(da(e))}function es(e,t){var n;t===void 0&&(t=[]);var o=ib(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Wt(o),a=r?[i].concat(i.visualViewport||[],Bu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(es(da(a)))}function gc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dR(e,t){var n=ur(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 Yp(e,t,n){return t===Jy?gc(cR(e,n)):Io(t)?dR(t,n):gc(uR(ro(e)))}function fR(e){var t=es(da(e)),n=["absolute","fixed"].indexOf(An(e).position)>=0,o=n&&Xt(e)?Ls(e):e;return Io(o)?t.filter(function(r){return Io(r)&&nb(r,o)&&Sn(r)!=="body"}):[]}function pR(e,t,n,o){var r=t==="clippingParents"?fR(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Yp(e,u,o);return c.top=Oo(d.top,c.top),c.right=_i(d.right,c.right),c.bottom=_i(d.bottom,c.bottom),c.left=Oo(d.left,c.left),c},Yp(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 ab(e){var t=e.reference,n=e.element,o=e.placement,r=o?yn(o):null,i=o?dr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case $t:c={x:a,y:t.y-n.height};break;case Qt:c={x:a,y:t.y+t.height};break;case Jt:c={x:t.x+t.width,y:l};break;case Vt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?$u(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case lr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case hs:c[u]=c[u]+(t[d]/2-n[d]/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?AD:l,u=n.rootBoundary,d=u===void 0?Jy:u,f=n.elementContext,p=f===void 0?Ir:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=rb(typeof y!="number"?y:sb(y,js)),C=p===Ir?ND:Ir,x=e.rects.popper,S=e.elements[m?C:p],T=pR(Io(S)?S:S.contextElement||ro(e.elements.popper),c,d,a),E=ur(e.elements.reference),M=ab({reference:E,element:x,placement:r}),A=gc(Object.assign({},x,M)),O=p===Ir?A:E,V={top:T.top-O.top+v.top,bottom:O.bottom-T.bottom+v.bottom,left:T.left-O.left+v.left,right:O.right-T.right+v.right},j=e.modifiersData.offset;if(p===Ir&&j){var w=j[r];Object.keys(V).forEach(function(N){var R=[Jt,Qt].indexOf(N)>=0?1:-1,I=[$t,Qt].indexOf(N)>=0?"y":"x";V[N]+=w[I]*R})}return V}function hR(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?eb:c,d=dr(o),f=d?l?zp:zp.filter(function(m){return dr(m)===d}):js,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]=ms(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[yn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function mR(e){if(yn(e)===_u)return[];var t=pi(e);return[Hp(e),t,Hp(t)]}function gR(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=yn(y),C=v===y,x=c||(C||!m?[pi(y)]:mR(y)),S=[y].concat(x).reduce(function(G,Z){return G.concat(yn(Z)===_u?hR(t,{placement:Z,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):Z)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,A=!0,O=S[0],V=0;V<S.length;V++){var j=S[V],w=yn(j),N=dr(j)===lr,R=[$t,Qt].indexOf(w)>=0,I=R?"width":"height",D=ms(t,{placement:j,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),_=R?N?Jt:Vt:N?Qt:$t;T[I]>E[I]&&(_=pi(_));var F=pi(_),B=[];if(i&&B.push(D[w]<=0),l&&B.push(D[_]<=0,D[F]<=0),B.every(function(G){return G})){O=j,A=!1;break}M.set(j,B)}if(A)for(var $=m?3:1,k=function(Z){var U=S.find(function(Q){var J=M.get(Q);if(J)return J.slice(0,Z).every(function(ee){return ee})});if(U)return O=U,"break"},W=$;W>0;W--){var K=k(W);if(K==="break")break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}}const yR={name:"flip",enabled:!0,phase:"main",fn:gR,requiresIfExists:["offset"],data:{_skip:!1}};function qp(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 Gp(e){return[$t,Jt,Qt,Vt].some(function(t){return e[t]>=0})}function bR(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=qp(a,o),u=qp(l,r,i),d=Gp(c),f=Gp(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 vR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bR};function xR(e,t,n){var o=yn(e),r=[Vt,$t].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,[Vt,Jt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function SR(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=eb.reduce(function(d,f){return d[f]=xR(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 wR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SR};function CR(e){var t=e.state,n=e.name;t.modifiersData[n]=ab({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const TR={name:"popperOffsets",enabled:!0,phase:"read",fn:CR,data:{}};function PR(e){return e==="x"?"y":"x"}function ER(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=ms(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=yn(t.placement),C=dr(t.placement),x=!C,S=$u(v),T=PR(S),E=t.modifiersData.popperOffsets,M=t.rects.reference,A=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(E){if(i){var N,R=S==="y"?$t:Vt,I=S==="y"?Qt:Jt,D=S==="y"?"height":"width",_=E[S],F=_+y[R],B=_-y[I],$=h?-A[D]/2:0,k=C===lr?M[D]:A[D],W=C===lr?-A[D]:-M[D],K=t.elements.arrow,G=h&&K?Lu(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ob(),U=Z[R],Q=Z[I],J=Jr(0,M[D],G[D]),ee=x?M[D]/2-$-J-U-V.mainAxis:k-J-U-V.mainAxis,q=x?-M[D]/2+$+J+Q+V.mainAxis:W+J+Q+V.mainAxis,X=t.elements.arrow&&Ls(t.elements.arrow),Y=X?S==="y"?X.clientTop||0:X.clientLeft||0:0,oe=(N=j==null?void 0:j[S])!=null?N:0,te=_+ee-oe-Y,ae=_+q-oe,re=Jr(h?_i(F,te):F,_,h?Oo(B,ae):B);E[S]=re,w[S]=re-_}if(l){var be,se=S==="x"?$t:Vt,he=S==="x"?Qt:Jt,le=E[T],ue=T==="y"?"height":"width",de=le+y[se],Ie=le-y[he],Me=[$t,Vt].indexOf(v)!==-1,Ze=(be=j==null?void 0:j[T])!=null?be:0,Je=Me?de:le-M[ue]-A[ue]-Ze+V.altAxis,ke=Me?le+M[ue]+A[ue]-Ze-V.altAxis:Ie,ut=h&&Me?ZD(Je,le,ke):Jr(h?Je:de,le,h?ke:Ie);E[T]=ut,w[T]=ut-le}t.modifiersData[o]=w}}const MR={name:"preventOverflow",enabled:!0,phase:"main",fn:ER,requiresIfExists:["offset"]};function OR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kR(e){return e===Wt(e)||!Xt(e)?Vu(e):OR(e)}function DR(e){var t=e.getBoundingClientRect(),n=cr(t.width)/e.offsetWidth||1,o=cr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function RR(e,t,n){n===void 0&&(n=!1);var o=Xt(t),r=Xt(t)&&DR(t),i=ro(t),a=ur(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Sn(t)!=="body"||Bu(i))&&(l=kR(t)),Xt(t)?(c=ur(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Fu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function IR(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 AR(e){var t=IR(e);return UD.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function NR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _R(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 Kp={placement:"bottom",modifiers:[],strategy:"absolute"};function Zp(){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 jR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Kp:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kp,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(v){var C=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:Io(l)?es(l):l.contextElement?es(l.contextElement):[],popper:es(c)};var x=AR(_R([].concat(o,d.options.modifiers)));return d.orderedModifiers=x.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,C=v.reference,x=v.popper;if(Zp(C,x)){d.rects={reference:RR(C,Ls(x),d.options.strategy==="fixed"),popper:Lu(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var T=d.orderedModifiers[S],E=T.fn,M=T.options,A=M===void 0?{}:M,O=T.name;typeof E=="function"&&(d=E({state:d,options:A,name:O,instance:h})||d)}}}},update:NR(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Zp(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,C=y.options,x=C===void 0?{}:C,S=y.effect;if(typeof S=="function"){var T=S({state:d,name:v,instance:h,options:x}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var LR=[iR,TR,rR,qD,wR,yR,MR,eR,vR],$R=jR({defaultModifiers:LR});function VR(e){return typeof e=="function"?e():e}const gs=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=je(P.isValidElement(o)?As(o):null,n);if(St(()=>{i||l(VR(r)||document.body)},[r,i]),St(()=>{if(a&&!i)return Qd(n,a),()=>{Qd(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const u={ref:c};return P.cloneElement(o,u)}return o}return a&&Hv.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(gs.propTypes={children:s.node,container:s.oneOfType([In,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(gs.propTypes=tm(gs.propTypes));function FR(e){return Te("MuiPopper",e)}Ce("MuiPopper",["root"]);function BR(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 ji(e){return typeof e=="function"?e():e}function fa(e){return e.nodeType!==void 0}function zR(e){return!fa(e)}const WR=e=>{const{classes:t}=e;return we({root:["root"]},FR,t)},UR={},HR=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),C=je(v,n),x=P.useRef(null),S=je(x,f),T=P.useRef(S);St(()=>{T.current=S},[S]),P.useImperativeHandle(f,()=>x.current,[]);const E=BR(u,i),[M,A]=P.useState(E),[O,V]=P.useState(ji(o));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{o&&V(ji(o))},[o]),St(()=>{if(!O||!c)return;const I=F=>{A(F.placement)};if(process.env.NODE_ENV!=="production"&&O&&fa(O)&&O.nodeType===1){const F=O.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
120
|
-
`))}let D=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:
|
|
121
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
122
|
-
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([In,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:yt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const
|
|
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
|
|
124
|
-
`):e;
|
|
117
|
+
`));const t=P.useMemo(()=>z({},eD,e.localeText),[e.localeText]);return P.useMemo(()=>z({},e,{localeText:t}),[e,t])},Ke=()=>ku().adapter,oo=()=>ku().localeText,uc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],dc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Fy=["minDateTime","maxDateTime"],tD=[...uc,...dc,...Fy],By=e=>tD.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),nD=["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=z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return nD.forEach(r),t==="date"?uc.forEach(r):t==="time"?dc.forEach(r):t==="date-time"&&(uc.forEach(r),dc.forEach(r),Fy.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),oD=({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},rD=({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},sD=(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}},iD=({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=Su(e,a),u=Ny(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=wu(Cu(Io(p,r),h),r))}return z({},c,{format:a,maxLength:h,value:p,placeholder:sD(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},aD=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 C=d.exec(v)[1];v=v.slice(C.length),i.push(iD(z({},e,{now:r,token:C,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},lD=({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}),Fp=e=>{let t=oD(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=rD(z({},e,{expandedFormat:t})),o=aD(z({},e,{expandedFormat:t,escapedParts:n}));return lD(z({},e,{sections:o}))},Du=()=>P.useContext(ca),cD=()=>{const e=P.useContext(Mu);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 uD(e){return Te("MuiDatePickerToolbar",e)}Ce("MuiDatePickerToolbar",["root","title"]);const dD=["toolbarFormat","toolbarPlaceholder","className","classes"],fD=e=>we({root:["root"],title:["title"]},uD,e),pD=ie.styled($y,{name:"MuiDatePickerToolbar",slot:"Root"})({}),hD=ie.styled(no,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Ru=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Ee(o,dD),u=Ke(),{value:d,views:f,orientation:p}=Sr(),h=oo(),m=Ly(),g=fD(l),y=P.useMemo(()=>{if(!u.isValid(d))return i;const v=xu(u,{format:r,views:f},!0);return u.formatByString(d,v)},[d,r,i,u,f]);return b.jsx(pD,z({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ge(g.root,a)},c,{children:b.jsx(hD,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Ru.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Ru.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 Ds=({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}};Ds.valueManager=xn;function Wy(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=pe(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const mD=()=>ku().defaultDates,ua=e=>{const t=Ke(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function gD(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Ds,internal_valueManager:xn,internal_fieldValueManager:$2,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:bD,internal_useOpenPickerButtonAriaLabel:yD}),[t])}function yD(e){const t=Ke(),n=oo();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function bD(e){const t=Ke(),n=Rs(e);return P.useMemo(()=>z({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Rs(e){const t=Ke(),n=mD();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:kp(t,e.minDate,n.minDate),maxDate:kp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Uy(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Rs(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:z({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return z({},n,o,{localeText:r},y2({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:z({toolbar:Ru},n.slots)})}function lr(e){return typeof e=="string"}function Hy(e,t,n){return e===void 0||lr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Yy(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 Bp(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 qy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=ge(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=Yy({...r,...o}),l=Bp(o),c=Bp(r),u=t(a),d=ge(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 _e(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Zt(n,o),{props:l,internalRef:c}=qy({...i,externalSlotProps:a}),u=je(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Hy(t,{...l,ref:u},o)}const zp={};function Gy(e,t){const n=P.useRef(zp);return n.current===zp&&(n.current=e(t)),n}const vD=[];function xD(e){P.useEffect(e,vD)}class Iu{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 Iu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Yn(){const e=Gy(Iu.create).current;return xD(e.disposeEffect),e}function Nn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function SD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ky(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"&&!SD(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 Is=Nn(s.element,Ky);Is.isRequired=Nn(s.element.isRequired,Ky);function As(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 fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},fc(e,t)}function Au(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fc(e,t)}function wD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function CD(e,t){e.classList?e.classList.add(t):wD(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 TD(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 PD=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,ED=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 Ai=_.createContext(null);var Zy=function(t){return t.scrollTop},Ur="unmounted",xo="exited",So="entering",Uo="entered",pc="exiting",tn=function(e){Au(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=xo,i.appearStatus=So):c=Uo:o.unmountOnExit||o.mountOnEnter?c=Ur:c=xo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Ur?{status:xo}: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!==So&&a!==Uo&&(i=So):(a===So||a===Uo)&&(i=pc)}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===So){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:qo.findDOMNode(this);a&&Zy(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xo&&this.setState({status:Ur})},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:Uo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:So},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Uo},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:xo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:pc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:xo},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===Ur)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=Ee(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Ai.Provider,{value:null},typeof a=="function"?a(r,l):_.cloneElement(_.Children.only(a),l))},t}(_.Component);tn.contextType=Ai;tn.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=PD;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 Bo(){}tn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bo,onEntering:Bo,onEntered:Bo,onExit:Bo,onExiting:Bo,onExited:Bo};tn.UNMOUNTED=Ur;tn.EXITED=xo;tn.ENTERING=So;tn.ENTERED=Uo;tn.EXITING=pc;var MD=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return CD(t,o)})},dl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return TD(t,o)})},Nu=function(e){Au(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&&Zy(r),l&&(this.appliedClasses[i][a]=l,MD(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&&dl(r,l),c&&dl(r,c),u&&dl(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Ee(r,["classNames"]);return _.createElement(tn,z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(_.Component);Nu.defaultProps={classNames:""};Nu.propTypes=process.env.NODE_ENV!=="production"?z({},tn.propTypes,{classNames:ED,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function OD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _u(e,t){var n=function(i){return t&&_.isValidElement(i)?t(i):i},o=Object.create(null);return e&&_.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function kD(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 Eo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function DD(e,t){return _u(e.children,function(n){return _.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Eo(n,"appear",e),enter:Eo(n,"enter",e),exit:Eo(n,"exit",e)})})}function RD(e,t,n){var o=_u(e.children),r=kD(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(_.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=_.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Eo(a,"exit",e),enter:Eo(a,"enter",e)}):!c&&l&&!d?r[i]=_.cloneElement(a,{in:!1}):c&&l&&_.isValidElement(u)&&(r[i]=_.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Eo(a,"exit",e),enter:Eo(a,"enter",e)}))}}),r}var ID=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},AD={component:"div",childFactory:function(t){return t}},Ns=function(e){Au(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(OD(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?DD(r,l):RD(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=_u(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=z({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Ee(r,["component","childFactory"]),c=this.state.contextValue,u=ID(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?_.createElement(Ai.Provider,{value:c},u):_.createElement(Ai.Provider,{value:c},_.createElement(i,l,u))},t}(_.Component);Ns.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Ns.defaultProps=AD;const Xy=e=>e.scrollTop;function Ni(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 hc(e){return`scale(${e}, ${e**2})`}const ND={entering:{opacity:1,transform:hc(1)},entered:{opacity:1,transform:"none"}},fl=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:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=tn,...v}=t,C=Yn(),S=P.useRef(),w=Qi(),T=P.useRef(null),E=je(T,As(i),n),M=I=>D=>{if(I){const N=T.current;D===void 0?I(N):I(N,D)}},A=M(d),k=M((I,D)=>{Xy(I);const{duration:N,delay:B,easing:F}=Ni({style:m,timeout:g,easing:a},{mode:"enter"});let $;g==="auto"?($=w.transitions.getAutoHeightDuration(I.clientHeight),S.current=$):$=N,I.style.transition=[w.transitions.create("opacity",{duration:$,delay:B}),w.transitions.create("transform",{duration:fl?$:$*.666,delay:B,easing:F})].join(","),c&&c(I,D)}),V=M(u),L=M(h),x=M(I=>{const{duration:D,delay:N,easing:B}=Ni({style:m,timeout:g,easing:a},{mode:"exit"});let F;g==="auto"?(F=w.transitions.getAutoHeightDuration(I.clientHeight),S.current=F):F=D,I.style.transition=[w.transitions.create("opacity",{duration:F,delay:N}),w.transitions.create("transform",{duration:fl?F:F*.666,delay:fl?N:N||F*.333,easing:B})].join(","),I.style.opacity=0,I.style.transform=hc(.75),f&&f(I)}),j=M(p),O=I=>{g==="auto"&&C.start(S.current||0,I),o&&o(T.current,I)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:k,onEntered:V,onEntering:A,onExit:x,onExited:j,onExiting:L,addEndListener:O,timeout:g==="auto"?null:g,...v,children:(I,{ownerState:D,...N})=>P.cloneElement(i,{style:{opacity:0,transform:hc(.75),visibility:I==="exited"&&!l?"hidden":void 0,...ND[I],...m,...i.props.style},ref:E,...N})})});process.env.NODE_ENV!=="production"&&(ps.propTypes={addEndListener:s.func,appear:s.bool,children:Is.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 _D={entering:{opacity:1},entered:{opacity:1}},Xn=P.forwardRef(function(t,n){const o=Qi(),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:C=tn,...S}=t,w=P.useRef(null),T=je(w,As(l),n),E=O=>I=>{if(O){const D=w.current;I===void 0?O(D):O(D,I)}},M=E(p),A=E((O,I)=>{Xy(O);const D=Ni({style:y,timeout:v,easing:c},{mode:"enter"});O.style.webkitTransition=o.transitions.create("opacity",D),O.style.transition=o.transitions.create("opacity",D),d&&d(O,I)}),k=E(f),V=E(g),L=E(O=>{const I=Ni({style:y,timeout:v,easing:c},{mode:"exit"});O.style.webkitTransition=o.transitions.create("opacity",I),O.style.transition=o.transitions.create("opacity",I),h&&h(O)}),x=E(m),j=O=>{i&&i(w.current,O)};return b.jsx(C,{appear:a,in:u,nodeRef:w,onEnter:A,onEntered:k,onEntering:M,onExit:L,onExited:x,onExiting:V,addEndListener:j,timeout:v,...S,children:(O,{ownerState:I,...D})=>P.cloneElement(l,{style:{opacity:0,visibility:O==="exited"&&!u?"hidden":void 0,..._D[O],...y,...l.props.style},ref:T,...D})})});process.env.NODE_ENV!=="production"&&(Xn.propTypes={addEndListener:s.func,appear:s.bool,children:Is.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 jD(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 Qy(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=jD(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Jy(e,t,n,o){return e[t]===void 0?null:Qy(e,t,n,o)}function mc(){return null}Jy.isRequired=Qy;mc.isRequired=mc;const eb=process.env.NODE_ENV==="production"?mc:Jy;function LD(e){return Te("MuiPaper",e)}Ce("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 $D=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,LD,r)},VD=ye("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}`]]}})(qe(({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)"}}]}))),_s=P.forwardRef(function(t,n){var h;const o=Le({props:t,name:"MuiPaper"}),r=Qi(),{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=$D(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(VD,{as:a,ownerState:f,className:ge(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(${gi("#fff",kl(l))}, ${gi("#fff",kl(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(_s.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Nn(eb,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 In(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 $t="top",Qt="bottom",Jt="right",Vt="left",ju="auto",js=[$t,Qt,Jt,Vt],cr="start",hs="end",FD="clippingParents",tb="viewport",Ir="popper",BD="reference",Hp=js.reduce(function(e,t){return e.concat([t+"-"+cr,t+"-"+hs])},[]),nb=[].concat(js,[ju]).reduce(function(e,t){return e.concat([t,t+"-"+cr,t+"-"+hs])},[]),zD="beforeRead",WD="read",UD="afterRead",HD="beforeMain",YD="main",qD="afterMain",GD="beforeWrite",KD="write",ZD="afterWrite",XD=[zD,WD,UD,HD,YD,qD,GD,KD,ZD];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ao(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Xt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lu(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QD(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];!Xt(i)||!Sn(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 JD(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},{});!Xt(r)||!Sn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const eR={name:"applyStyles",enabled:!0,phase:"write",fn:QD,effect:JD,requires:["computeStyles"]};function yn(e){return e.split("-")[0]}var ko=Math.max,_i=Math.min,ur=Math.round;function gc(){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 ob(){return!/^((?!chrome|android).)*safari/i.test(gc())}function dr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Xt(e)&&(r=e.offsetWidth>0&&ur(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ur(o.height)/e.offsetHeight||1);var a=Ao(e)?Wt(e):window,l=a.visualViewport,c=!ob()&&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=dr(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 rb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function An(e){return Wt(e).getComputedStyle(e)}function tR(e){return["table","td","th"].indexOf(Sn(e))>=0}function ro(e){return((Ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function da(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(Lu(e)?e.host:null)||ro(e)}function Yp(e){return!Xt(e)||An(e).position==="fixed"?null:e.offsetParent}function nR(e){var t=/firefox/i.test(gc()),n=/Trident/i.test(gc());if(n&&Xt(e)){var o=An(e);if(o.position==="fixed")return null}var r=da(e);for(Lu(r)&&(r=r.host);Xt(r)&&["html","body"].indexOf(Sn(r))<0;){var i=An(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 Ls(e){for(var t=Wt(e),n=Yp(e);n&&tR(n)&&An(n).position==="static";)n=Yp(n);return n&&(Sn(n)==="html"||Sn(n)==="body"&&An(n).position==="static")?t:n||nR(e)||t}function Vu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jr(e,t,n){return ko(e,_i(t,n))}function oR(e,t,n){var o=Jr(e,t,n);return o>n?n:o}function sb(){return{top:0,right:0,bottom:0,left:0}}function ib(e){return Object.assign({},sb(),e)}function ab(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var rR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ib(typeof t!="number"?t:ab(t,js))};function sR(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=yn(n.placement),c=Vu(l),u=[Vt,Jt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=rR(r.padding,n),p=$u(i),h=c==="y"?$t:Vt,m=c==="y"?Qt:Jt,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=Ls(i),C=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=g/2-y/2,w=f[h],T=C-p[d]-f[m],E=C/2-p[d]/2+S,M=Jr(w,E,T),A=c;n.modifiersData[o]=(t={},t[A]=M,t.centerOffset=M-E,t)}}function iR(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)||rb(t.elements.popper,r)&&(t.elements.arrow=r))}const aR={name:"arrow",enabled:!0,phase:"main",fn:sR,effect:iR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fr(e){return e.split("-")[1]}var lR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cR(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:ur(n*r)/r||0,y:ur(o*r)/r||0}}function qp(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"),C=a.hasOwnProperty("y"),S=Vt,w=$t,T=window;if(u){var E=Ls(n),M="clientHeight",A="clientWidth";if(E===Wt(n)&&(E=ro(n),An(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",A="scrollWidth")),E=E,r===$t||(r===Vt||r===Jt)&&i===hs){w=Qt;var k=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=k-o.height,g*=c?1:-1}if(r===Vt||(r===$t||r===Qt)&&i===hs){S=Jt;var V=f&&E===T&&T.visualViewport?T.visualViewport.width:E[A];h-=V-o.width,h*=c?1:-1}}var L=Object.assign({position:l},u&&lR),x=d===!0?cR({x:h,y:g},Wt(n)):{x:h,y:g};if(h=x.x,g=x.y,c){var j;return Object.assign({},L,(j={},j[w]=C?"0":"",j[S]=v?"0":"",j.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},L,(t={},t[w]=C?g+"px":"",t[S]=v?h+"px":"",t.transform="",t))}function uR(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:yn(t.placement),variation:fr(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,qp(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,qp(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 dR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uR,data:{}};var Js={passive:!0};function fR(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=Wt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Js)}),l&&c.addEventListener("resize",n.update,Js),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Js)}),l&&c.removeEventListener("resize",n.update,Js)}}const pR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fR,data:{}};var hR={left:"right",right:"left",bottom:"top",top:"bottom"};function pi(e){return e.replace(/left|right|bottom|top/g,function(t){return hR[t]})}var mR={start:"end",end:"start"};function Gp(e){return e.replace(/start|end/g,function(t){return mR[t]})}function Fu(e){var t=Wt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Bu(e){return dr(ro(e)).left+Fu(e).scrollLeft}function gR(e,t){var n=Wt(e),o=ro(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=ob();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Bu(e),y:c}}function yR(e){var t,n=ro(e),o=Fu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=ko(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ko(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Bu(e),c=-o.scrollTop;return An(r||n).direction==="rtl"&&(l+=ko(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function zu(e){var t=An(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function lb(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:Xt(e)&&zu(e)?e:lb(da(e))}function es(e,t){var n;t===void 0&&(t=[]);var o=lb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Wt(o),a=r?[i].concat(i.visualViewport||[],zu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(es(da(a)))}function yc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bR(e,t){var n=dr(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===tb?yc(gR(e,n)):Ao(t)?bR(t,n):yc(yR(ro(e)))}function vR(e){var t=es(da(e)),n=["absolute","fixed"].indexOf(An(e).position)>=0,o=n&&Xt(e)?Ls(e):e;return Ao(o)?t.filter(function(r){return Ao(r)&&rb(r,o)&&Sn(r)!=="body"}):[]}function xR(e,t,n,o){var r=t==="clippingParents"?vR(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=ko(d.top,c.top),c.right=_i(d.right,c.right),c.bottom=_i(d.bottom,c.bottom),c.left=ko(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 cb(e){var t=e.reference,n=e.element,o=e.placement,r=o?yn(o):null,i=o?fr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case $t:c={x:a,y:t.y-n.height};break;case Qt:c={x:a,y:t.y+t.height};break;case Jt:c={x:t.x+t.width,y:l};break;case Vt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?Vu(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case cr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case hs:c[u]=c[u]+(t[d]/2-n[d]/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?FD:l,u=n.rootBoundary,d=u===void 0?tb:u,f=n.elementContext,p=f===void 0?Ir:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=ib(typeof y!="number"?y:ab(y,js)),C=p===Ir?BD:Ir,S=e.rects.popper,w=e.elements[m?C:p],T=xR(Ao(w)?w:w.contextElement||ro(e.elements.popper),c,d,a),E=dr(e.elements.reference),M=cb({reference:E,element:S,placement:r}),A=yc(Object.assign({},S,M)),k=p===Ir?A:E,V={top:T.top-k.top+v.top,bottom:k.bottom-T.bottom+v.bottom,left:T.left-k.left+v.left,right:k.right-T.right+v.right},L=e.modifiersData.offset;if(p===Ir&&L){var x=L[r];Object.keys(V).forEach(function(j){var O=[Jt,Qt].indexOf(j)>=0?1:-1,I=[$t,Qt].indexOf(j)>=0?"y":"x";V[j]+=x[I]*O})}return V}function SR(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?nb:c,d=fr(o),f=d?l?Hp:Hp.filter(function(m){return fr(m)===d}):js,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]=ms(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[yn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function wR(e){if(yn(e)===ju)return[];var t=pi(e);return[Gp(e),t,Gp(t)]}function CR(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=yn(y),C=v===y,S=c||(C||!m?[pi(y)]:wR(y)),w=[y].concat(S).reduce(function(G,Z){return G.concat(yn(Z)===ju?SR(t,{placement:Z,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):Z)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,A=!0,k=w[0],V=0;V<w.length;V++){var L=w[V],x=yn(L),j=fr(L)===cr,O=[$t,Qt].indexOf(x)>=0,I=O?"width":"height",D=ms(t,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),N=O?j?Jt:Vt:j?Qt:$t;T[I]>E[I]&&(N=pi(N));var B=pi(N),F=[];if(i&&F.push(D[x]<=0),l&&F.push(D[N]<=0,D[B]<=0),F.every(function(G){return G})){k=L,A=!1;break}M.set(L,F)}if(A)for(var $=m?3:1,R=function(Z){var U=w.find(function(Q){var J=M.get(Q);if(J)return J.slice(0,Z).every(function(ee){return ee})});if(U)return k=U,"break"},W=$;W>0;W--){var K=R(W);if(K==="break")break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}}const TR={name:"flip",enabled:!0,phase:"main",fn:CR,requiresIfExists:["offset"],data:{_skip:!1}};function Zp(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 Xp(e){return[$t,Jt,Qt,Vt].some(function(t){return e[t]>=0})}function PR(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=Zp(a,o),u=Zp(l,r,i),d=Xp(c),f=Xp(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 ER={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PR};function MR(e,t,n){var o=yn(e),r=[Vt,$t].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,[Vt,Jt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function OR(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=nb.reduce(function(d,f){return d[f]=MR(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 kR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:OR};function DR(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const RR={name:"popperOffsets",enabled:!0,phase:"read",fn:DR,data:{}};function IR(e){return e==="x"?"y":"x"}function AR(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=ms(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=yn(t.placement),C=fr(t.placement),S=!C,w=Vu(v),T=IR(w),E=t.modifiersData.popperOffsets,M=t.rects.reference,A=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(E){if(i){var j,O=w==="y"?$t:Vt,I=w==="y"?Qt:Jt,D=w==="y"?"height":"width",N=E[w],B=N+y[O],F=N-y[I],$=h?-A[D]/2:0,R=C===cr?M[D]:A[D],W=C===cr?-A[D]:-M[D],K=t.elements.arrow,G=h&&K?$u(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sb(),U=Z[O],Q=Z[I],J=Jr(0,M[D],G[D]),ee=S?M[D]/2-$-J-U-V.mainAxis:R-J-U-V.mainAxis,q=S?-M[D]/2+$+J+Q+V.mainAxis:W+J+Q+V.mainAxis,X=t.elements.arrow&&Ls(t.elements.arrow),Y=X?w==="y"?X.clientTop||0:X.clientLeft||0:0,oe=(j=L==null?void 0:L[w])!=null?j:0,te=N+ee-oe-Y,ae=N+q-oe,re=Jr(h?_i(B,te):B,N,h?ko(F,ae):F);E[w]=re,x[w]=re-N}if(l){var be,se=w==="x"?$t:Vt,he=w==="x"?Qt:Jt,le=E[T],ue=T==="y"?"height":"width",de=le+y[se],Ie=le-y[he],Me=[$t,Vt].indexOf(v)!==-1,Ze=(be=L==null?void 0:L[T])!=null?be:0,Je=Me?de:le-M[ue]-A[ue]-Ze+V.altAxis,ke=Me?le+M[ue]+A[ue]-Ze-V.altAxis:Ie,ut=h&&Me?oR(Je,le,ke):Jr(h?Je:de,le,h?ke:Ie);E[T]=ut,x[T]=ut-le}t.modifiersData[o]=x}}const NR={name:"preventOverflow",enabled:!0,phase:"main",fn:AR,requiresIfExists:["offset"]};function _R(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jR(e){return e===Wt(e)||!Xt(e)?Fu(e):_R(e)}function LR(e){var t=e.getBoundingClientRect(),n=ur(t.width)/e.offsetWidth||1,o=ur(t.height)/e.offsetHeight||1;return n!==1||o!==1}function $R(e,t,n){n===void 0&&(n=!1);var o=Xt(t),r=Xt(t)&&LR(t),i=ro(t),a=dr(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Sn(t)!=="body"||zu(i))&&(l=jR(t)),Xt(t)?(c=dr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Bu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function VR(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 FR(e){var t=VR(e);return XD.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function BR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zR(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 Qp={placement:"bottom",modifiers:[],strategy:"absolute"};function Jp(){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 WR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Qp:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qp,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(v){var C=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:Ao(l)?es(l):l.contextElement?es(l.contextElement):[],popper:es(c)};var S=FR(zR([].concat(o,d.options.modifiers)));return d.orderedModifiers=S.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,C=v.reference,S=v.popper;if(Jp(C,S)){d.rects={reference:$R(C,Ls(S),d.options.strategy==="fixed"),popper:$u(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var T=d.orderedModifiers[w],E=T.fn,M=T.options,A=M===void 0?{}:M,k=T.name;typeof E=="function"&&(d=E({state:d,options:A,name:k,instance:h})||d)}}}},update:BR(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Jp(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,C=y.options,S=C===void 0?{}:C,w=y.effect;if(typeof w=="function"){var T=w({state:d,name:v,instance:h,options:S}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var UR=[pR,RR,dR,eR,kR,TR,NR,aR,ER],HR=WR({defaultModifiers:UR});function YR(e){return typeof e=="function"?e():e}const gs=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=je(P.isValidElement(o)?As(o):null,n);if(St(()=>{i||l(YR(r)||document.body)},[r,i]),St(()=>{if(a&&!i)return Jd(n,a),()=>{Jd(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const u={ref:c};return P.cloneElement(o,u)}return o}return a&&qv.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(gs.propTypes={children:s.node,container:s.oneOfType([In,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(gs.propTypes=rm(gs.propTypes));function qR(e){return Te("MuiPopper",e)}Ce("MuiPopper",["root"]);function GR(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 ji(e){return typeof e=="function"?e():e}function fa(e){return e.nodeType!==void 0}function KR(e){return!fa(e)}const ZR=e=>{const{classes:t}=e;return we({root:["root"]},qR,t)},XR={},QR=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),C=je(v,n),S=P.useRef(null),w=je(S,f),T=P.useRef(w);St(()=>{T.current=w},[w]),P.useImperativeHandle(f,()=>S.current,[]);const E=GR(u,i),[M,A]=P.useState(E),[k,V]=P.useState(ji(o));P.useEffect(()=>{S.current&&S.current.forceUpdate()}),P.useEffect(()=>{o&&V(ji(o))},[o]),St(()=>{if(!k||!c)return;const I=B=>{A(B.placement)};if(process.env.NODE_ENV!=="production"&&k&&fa(k)&&k.nodeType===1){const B=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.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 D=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{I(B)}}];l!=null&&(D=D.concat(l)),d&&d.modifiers!=null&&(D=D.concat(d.modifiers));const N=HR(k,v.current,{placement:E,...d,modifiers:D});return T.current(N),()=>{N.destroy(),T.current(null)}},[k,a,l,c,d,E]);const L={placement:M};m!==null&&(L.TransitionProps=m);const x=ZR(t),j=h.root??"div",O=_e({elementType:j,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:x.root});return b.jsx(j,{...O,children:typeof r=="function"?r(L):r})}),ub=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=XR,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:v={},...C}=t,[S,w]=P.useState(!0),T=()=>{w(!1)},E=()=>{w(!0)};if(!c&&!d&&(!g||S))return null;let M;if(i)M=i;else if(o){const V=ji(o);M=V&&fa(V)?Ct(V).body:Ct(null).body}const A=!d&&c&&(!g||S)?"none":void 0,k=g?{in:d,onEnter:T,onExited:E}:void 0;return b.jsx(gs,{disablePortal:l,container:M,children:b.jsx(QR,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!S:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:v,...C,style:{position:"fixed",top:0,left:0,display:A,...m},TransitionProps:k,children:r})})});process.env.NODE_ENV!=="production"&&(ub.propTypes={anchorEl:Nn(s.oneOfType([In,s.object,s.func]),e=>{if(e.open){const t=ji(e.anchorEl);if(t&&fa(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"||KR(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([In,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:yt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const JR=ye(ub,{name:"MuiPopper",slot:"Root"})({}),db=P.forwardRef(function(t,n){const o=ln(),r=Le({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:C,slotProps:S,...w}=r,T=(C==null?void 0:C.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,...w};return b.jsx(JR,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:S??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(db.propTypes={anchorEl:s.oneOfType([In,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([In,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:yt,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 Hr(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 eI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tI(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 nI(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 oI(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nI(e))}function rI(e){const t=[],n=[];return Array.from(e.querySelectorAll(eI)).forEach((o,r)=>{const i=tI(o);i===-1||!oI(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 sI(){return!0}function ys(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=rI,isEnabled:a=sI,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=je(As(t),m),y=P.useRef(null);P.useEffect(()=>{!l||!m.current||(h.current=!n)},[n,l]),P.useEffect(()=>{if(!l||!m.current)return;const S=Ct(m.current),w=Hr(S);return m.current.contains(w)||(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 S=Ct(m.current),w=M=>{if(y.current=M,o||!a()||M.key!=="Tab")return;Hr(S)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var V,L;const M=m.current;if(M===null)return;const A=Hr(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(A)||o&&A!==u.current&&A!==d.current)return;if(A!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let k=[];if((A===u.current||A===d.current)&&(k=i(m.current)),k.length>0){const x=!!((V=y.current)!=null&&V.shiftKey&&((L=y.current)==null?void 0:L.key)==="Tab"),j=k[0],O=k[k.length-1];typeof j!="string"&&typeof O!="string"&&(x?O.focus():j.focus())}else M.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",w,!0);const E=setInterval(()=>{const M=Hr(S);M&&M.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),S.removeEventListener("focusin",T),S.removeEventListener("keydown",w,!0)}},[n,o,r,a,l,i]);const v=S=>{f.current===null&&(f.current=S.relatedTarget),h.current=!0,p.current=S.target;const w=t.props.onFocus;w&&w(S)},C=S=>{f.current===null&&(f.current=S.relatedTarget),h.current=!0};return b.jsxs(P.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:v}),b.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ys.propTypes={children:Is,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ys.propTypes=rm(ys.propTypes));function iI(e){return Te("MuiPickerPopper",e)}Ce("MuiPickerPopper",["root","paper"]);function aI(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const lI=e=>{setTimeout(e,0)},fb=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?fb(t.shadowRoot):t:null},It=e=>fb(Ct(e)),cI="@media (pointer: fine)",uI=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],dI=e=>we({root:["root"],paper:["paper"]},iI,e),fI=ie.styled(db,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),pI=ie.styled(_s,{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 hI(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function mI(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=pe(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Ct(r.current);if(!r.current||"clientX"in c&&hI(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=Ct(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=Ct(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const pb=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Ee(e,uI),d=_e({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,z({},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"&&(pb.displayName="PickerPopperPaperWrapper");function gI(e){const t=ie.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Sr(),{ownerState:d,rootRefObject:f}=Et(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:y}=Et();P.useEffect(()=>{function N(B){l&&B.key==="Escape"&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,l]);const v=P.useRef(null);P.useEffect(()=>{y==="tooltip"||h()==="field"||(l?v.current=It(f.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,y,h,f]);const C=dI(a),S=pe(()=>{y==="tooltip"?lI(()=>{var N,B;(N=f.current)!=null&&N.contains(It(f.current))||(B=c.current)!=null&&B.contains(It(c.current))||p()}):p()}),[w,T,E]=mI(l,S),M=P.useRef(null),A=je(M,c),k=je(A,w),V=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},L=(r==null?void 0:r.desktopTransition)??u?Xn:ps,x=(r==null?void 0:r.desktopTrapFocus)??ys,j=(r==null?void 0:r.desktopPaper)??pI,O=(r==null?void 0:r.popper)??fI,I=_e({elementType:O,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:V},className:C.root,ownerState:d}),D=P.useMemo(()=>z({},d,{popperPlacement:I.placement}),[d,I.placement]);return b.jsx(O,z({},I,{children:({TransitionProps:N})=>b.jsx(x,z({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(L,z({},N,i==null?void 0:i.desktopTransition,{onExited:B=>{var F,$,R;m==null||m(),($=(F=i==null?void 0:i.desktopTransition)==null?void 0:F.onExited)==null||$.call(F,B),(R=N==null?void 0:N.onExited)==null||R.call(N)},children:b.jsx(pb,{PaperComponent:j,ownerState:D,ref:k,onPaperClick:T,onPaperTouchStart:E,paperClasses:C.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const yI="@media (prefers-reduced-motion: reduce)",nr=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),eh=nr&&nr[1]?parseInt(nr[1],10):null,th=nr&&nr[2]?parseInt(nr[2],10):null,bI=eh&&eh<10||th&&th<13||!1;function hb(e){const t=Dy(yI,{defaultMatches:!1});return e??(t||bI)}const mb={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function vI(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return mb;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(z({},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 pl=!1;function gb({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(pl||(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('", "')}"]\`.`),pl=!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('", "')}"]\`.`),pl=!0)));const u=P.useRef(n),d=P.useRef(r),f=P.useRef(r.includes(n)?n:r[0]),[p,h]=Gn({name:"useViews",state:"view",controlled:o,default:f.current}),m=P.useRef(i?p:null),[g,y]=Gn({name:"useViews",state:"focusedView",controlled:a,default:m.current}),v=c?c({setView:h,view:p,defaultView:f.current,views:r}):mb;P.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(k=>!r.includes(k)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const C=r.indexOf(p),S=r[C-1]??null,w=r[C+1]??null,T=pe((k,V)=>{y(V?k:L=>k===L?null:L),l==null||l(k,V)}),E=pe(k=>{T(k,!0),k!==p&&(h(k),t&&t(k))}),M=pe(()=>{w&&E(w)}),A=pe((k,V,L)=>{const x=V==="finish",j=L?r.indexOf(L)<r.length-1:!!w;e(k,x&&j?"partial":V,L);let I=null;if(L!=null&&L!==p?I=L:x&&(I=p),I==null)return;const D=r[r.indexOf(I)+1];D==null||!v.areViewsInSameStep(I,D)||E(D)});return z({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:w,previousView:S,defaultView:r.includes(n)?n:r[0],goToNextView:M,setValueAndGoToNextView:A})}function nh(){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 xI(e,t){const[n,o]=P.useState(nh);return St(()=>{const r=()=>{o(nh())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),aI(e,["hours","minutes","seconds"])?"portrait":t??n}const oh=new Set;function yb(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
124
|
+
`):e;oh.has(n)||(oh.add(n),t==="error"?console.error(n):console.warn(n))}const $s=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Ke(),[c,u]=Gn({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=P.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=pe(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=pe((g,...y)=>{const v=f(g);u(v),i==null||i(v,...y)});return{value:h,handleValueChange:m,timezone:p}};function SI(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&&yb(["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:C,value:
|
|
127
|
-
`))}return!1}class Li{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 Li}static use(){const t=
|
|
126
|
+
`))},[JSON.stringify(m)]));const{timezone:C,value:S,handleValueChange:w}=$s({name:"a picker component",timezone:c,value:r,defaultValue:m,referenceDate:l,onChange:a,valueManager:n}),[T,E]=P.useState(()=>({open:!1,lastExternalValue:S,clockShallowValue:void 0,lastCommittedValue:S,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=Wy({props:t,validator:o,timezone:C,value:S,onError:t.onError}),A=pe(x=>{const j=typeof x=="function"?x(T.open):x;y||E(O=>z({},O,{open:j})),j&&p&&p(),j||h==null||h()}),k=pe((x,j)=>{const{changeImportance:O="accept",skipPublicationIfPristine:I=!1,validationError:D,shortcut:N,source:B,shouldClose:F=O==="accept"}=j??{};let $,R;!I&&!g&&!T.hasBeenModifiedSinceMount?($=!0,R=O==="accept"):($=!n.areValuesEqual(v,x,S),R=O==="accept"&&!n.areValuesEqual(v,x,T.lastCommittedValue)),E(G=>z({},G,{clockShallowValue:$?void 0:G.clockShallowValue,lastCommittedValue:R?x:G.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const K=()=>{if(!W){let G;B?G=B:N?G="view":G="unknown",W={validationError:D??M(x),source:G},N&&(W.shortcut=N)}return W};$&&w(x,K()),R&&u&&u(x,K()),F&&A(!1)});S!==T.lastExternalValue&&E(x=>z({},x,{lastExternalValue:S,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=pe((x,j="partial")=>{if(j==="shallow"){E(O=>z({},O,{clockShallowValue:x,hasBeenModifiedSinceMount:!0}));return}k(x,{changeImportance:j==="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=>z({},x,{open:f}))}},[y,f]);const L=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?S:T.clockShallowValue),[v,n,T.clockShallowValue,S]);return{timezone:C,state:T,setValue:k,setValueFromView:V,setOpen:A,value:S,viewValue:L}}const wI=["className","sx"],bb=({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:C,disableOpenPicker:S,closeOnSelect:w,disabled:T,readOnly:E,formatDensity:M,enableAccessibleFieldDOMStructure:A,selectedSections:k,onSelectedSectionsChange:V,format:L,label:x,autoFocus:j,name:O}=t,{className:I,sx:D}=t,N=Ee(t,wI),B=eo(),F=Ke(),$=hb(v),R=xI(p,C),{current:W}=P.useRef(m??null),[K,G]=P.useState(null),Z=P.useRef(null),U=P.useRef(null),Q=P.useRef(null),J=je(e,Q),{timezone:ee,state:q,setOpen:X,setValue:Y,setValueFromView:oe,value:te,viewValue:ae}=SI({props:t,valueManager:n,validator:i}),{view:re,setView:be,defaultView:se,focusedView:he,setFocusedView:le,setValueAndGoToNextView:ue,goToNextStep:de,hasNextStep:Ie,hasSeveralSteps:Me}=gb({view:h,views:p,openTo:m,onChange:oe,onViewChange:g,autoFocus:l,getStepNavigation:f}),Ze=pe(()=>Y(n.emptyValue,{source:"view"})),Je=pe(()=>Y(n.getTodayValue(F,ee,o),{source:"view"})),ke=pe(()=>Y(te,{source:"view"})),ut=pe(()=>Y(q.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Se=pe(()=>{Y(te,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Pe,viewModeLookup:xe,timeViewsCount:$e}=P.useMemo(()=>p.reduce((ht,nn)=>{const yd=y[nn]==null?"field":"UI";return ht.viewModeLookup[nn]=yd,yd==="UI"&&(ht.hasUIView=!0,C2(nn)&&(ht.timeViewsCount+=1)),ht},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),Ve=xe[re],ot=pe(()=>Ve),[Xe,_t]=P.useState(Ve==="UI"?re:null);Xe!==re&&xe[re]==="UI"&&_t(re),St(()=>{Ve==="field"&&q.open&&(X(!1),setTimeout(()=>{var ht,nn;(ht=U==null?void 0:U.current)==null||ht.setSelectedSections(re),(nn=U==null?void 0:U.current)==null||nn.focusField(re)}))},[re]),St(()=>{if(!q.open)return;let ht=re;Ve==="field"&&Xe!=null&&(ht=Xe),ht!==se&&xe[ht]==="UI"&&xe[se]==="UI"&&(ht=se),ht!==re&&be(ht),le(ht,!0)},[q.open]);const Oe=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(F,te,n.emptyValue),isPickerOpen:q.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:R,pickerVariant:r}),[F,n,te,q.open,R,r,t.disabled,t.readOnly]),pt=P.useMemo(()=>S||!Pe?"hidden":T||E?"disabled":"enabled",[S,Pe,T,E]),wt=pe(de),jt=P.useMemo(()=>w&&!Me?[]:["cancel","nextOrAccept"],[w,Me]),jn=P.useMemo(()=>({setValue:Y,setOpen:X,clearValue:Ze,setValueToToday:Je,acceptValueChanges:ke,cancelValueChanges:ut,setView:be,goToNextStep:wt}),[Y,X,Ze,Je,ke,ut,be,wt]),me=P.useMemo(()=>z({},jn,{value:te,timezone:ee,open:q.open,views:p,view:Xe,initialView:W,disabled:T??!1,readOnly:E??!1,autoFocus:j??!1,variant:r,orientation:R,popupRef:Z,reduceAnimations:$,triggerRef:G,triggerStatus:pt,hasNextStep:Ie,fieldFormat:L??"",name:O,label:x,rootSx:D,rootRef:J,rootClassName:I}),[jn,te,J,r,R,$,T,E,L,I,O,x,D,pt,Ie,ee,q.open,Xe,p,W,j]),Ae=P.useMemo(()=>({dismissViews:Se,ownerState:Oe,hasUIView:Pe,getCurrentViewMode:ot,rootRefObject:Q,labelId:B,triggerElement:K,viewContainerRole:d,defaultActionBarActions:jt,onPopperExited:a}),[Se,Oe,Pe,ot,B,K,d,jt,a]),bt=P.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:A,selectedSections:k,onSelectedSectionsChange:V,fieldRef:U}),[M,A,k,V,U]);return{providerProps:{localeText:u,contextValue:me,privateContextValue:Ae,actionsContextValue:jn,fieldPrivateContextValue:bt,isValidContextValue:ht=>{const nn=i({adapter:F,value:ht,timezone:ee,props:t});return!n.hasError(nn)}},renderCurrentView:()=>{if(Xe==null)return null;const ht=y[Xe];if(ht==null)return null;const nn=z({},N,{views:p,timezone:ee,value:ae,onChange:ue,view:Xe,onViewChange:be,showViewSwitcher:$e>1,timeViewsCount:$e},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:he,onFocusedViewChange:le});return c?b.jsx(c,{viewRenderers:y,popperView:Xe,rendererProps:nn}):ht(nn)},ownerState:Oe}};function vb(e){return Te("MuiPickersLayout",e)}const uo=Ce("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function CI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TI(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"&&!CI(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 pa=Nn(s.elementType,TI);function rh(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 Li{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 Li}static use(){const t=Gy(Li.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=EI(),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 PI(){return Li.use()}function EI(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function xb(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=ge(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=ge(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"&&(xb.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 Yt=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bc=550,MI=80,OI=Ft.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
|
-
`,
|
|
137
|
+
`,kI=Ft.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
|
-
`,
|
|
145
|
+
`,DI=Ft.keyframes`
|
|
146
146
|
0% {
|
|
147
147
|
transform: scale(1);
|
|
148
148
|
}
|
|
@@ -154,15 +154,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
154
154
|
100% {
|
|
155
155
|
transform: scale(1);
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`,RI=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),II=ye(xb,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
158
158
|
opacity: 0;
|
|
159
159
|
position: absolute;
|
|
160
160
|
|
|
161
161
|
&.${Yt.rippleVisible} {
|
|
162
162
|
opacity: 0.3;
|
|
163
163
|
transform: scale(1);
|
|
164
|
-
animation-name: ${
|
|
165
|
-
animation-duration: ${
|
|
164
|
+
animation-name: ${OI};
|
|
165
|
+
animation-duration: ${bc}ms;
|
|
166
166
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -181,8 +181,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
181
181
|
|
|
182
182
|
& .${Yt.childLeaving} {
|
|
183
183
|
opacity: 0;
|
|
184
|
-
animation-name: ${
|
|
185
|
-
animation-duration: ${
|
|
184
|
+
animation-name: ${kI};
|
|
185
|
+
animation-duration: ${bc}ms;
|
|
186
186
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -191,13 +191,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
191
191
|
/* @noflip */
|
|
192
192
|
left: 0px;
|
|
193
193
|
top: 0;
|
|
194
|
-
animation-name: ${
|
|
194
|
+
animation-name: ${DI};
|
|
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
|
-
`,
|
|
200
|
+
`,Sb=P.forwardRef(function(t,n){const o=Le({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=Yn(),m=P.useRef(null),g=P.useRef(null),y=P.useCallback(w=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:A,cb:k}=w;u(V=>[...V,b.jsx(II,{classes:{ripple:ge(i.ripple,Yt.ripple),rippleVisible:ge(i.rippleVisible,Yt.rippleVisible),ripplePulsate:ge(i.ripplePulsate,Yt.ripplePulsate),child:ge(i.child,Yt.child),childLeaving:ge(i.childLeaving,Yt.childLeaving),childPulsate:ge(i.childPulsate,Yt.childPulsate)},timeout:bc,pulsate:T,rippleX:E,rippleY:M,rippleSize:A},d.current)]),d.current+=1,f.current=k},[i]),v=P.useCallback((w={},T={},E=()=>{})=>{const{pulsate:M=!1,center:A=r||T.pulsate,fakeElement:k=!1}=T;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const V=k?null:g.current,L=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,j,O;if(A||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)x=Math.round(L.width/2),j=Math.round(L.height/2);else{const{clientX:I,clientY:D}=w.touches&&w.touches.length>0?w.touches[0]:w;x=Math.round(I-L.left),j=Math.round(D-L.top)}if(A)O=Math.sqrt((2*L.width**2+L.height**2)/3),O%2===0&&(O+=1);else{const I=Math.max(Math.abs((V?V.clientWidth:0)-x),x)*2+2,D=Math.max(Math.abs((V?V.clientHeight:0)-j),j)*2+2;O=Math.sqrt(I**2+D**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{y({pulsate:M,rippleX:x,rippleY:j,rippleSize:O,cb:E})},h.start(MI,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:M,rippleX:x,rippleY:j,rippleSize:O,cb:E})},[r,y,h]),C=P.useCallback(()=>{v({},{pulsate:!0})},[v]),S=P.useCallback((w,T)=>{if(h.clear(),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{S(w,T)});return}m.current=null,u(E=>E.length>0?E.slice(1):E),f.current=T},[h]);return P.useImperativeHandle(n,()=>({pulsate:C,start:v,stop:S}),[C,v,S]),b.jsx(RI,{className:ge(Yt.root,i.root,a),ref:g,...l,children:b.jsx(Ns,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Sb.propTypes={center:s.bool,classes:s.object,className:s.string});function AI(e){return Te("MuiButtonBase",e)}const NI=Ce("MuiButtonBase",["root","disabled","focusVisible"]),_I=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=we({root:["root",t&&"disabled",n&&"focusVisible"]},AI,r);return n&&o&&(a.root+=` ${o}`),a},jI=ye("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"},[`&.${NI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pr=P.forwardRef(function(t,n){const o=Le({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:C,onFocus:S,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:M,onMouseLeave:A,onMouseUp:k,onTouchEnd:V,onTouchMove:L,onTouchStart:x,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:I,type:D,...N}=o,B=P.useRef(null),F=PI(),$=je(F.ref,I),[R,W]=P.useState(!1);u&&R&&W(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),B.current.focus()}}),[]);const K=F.shouldMount&&!d&&!u;P.useEffect(()=>{R&&p&&!d&&F.pulsate()},[d,p,R,F]);const G=Cn(F,"start",M,f),Z=Cn(F,"stop",v,f),U=Cn(F,"stop",C,f),Q=Cn(F,"stop",k,f),J=Cn(F,"stop",de=>{R&&de.preventDefault(),A&&A(de)},f),ee=Cn(F,"start",x,f),q=Cn(F,"stop",V,f),X=Cn(F,"stop",L,f),Y=Cn(F,"stop",de=>{rh(de.target)||W(!1),g&&g(de)},!1),oe=pe(de=>{B.current||(B.current=de.currentTarget),rh(de.target)&&(W(!0),w&&w(de)),S&&S(de)}),te=()=>{const de=B.current;return c&&c!=="button"&&!(de.tagName==="A"&&de.href)},ae=pe(de=>{p&&!de.repeat&&R&&de.key===" "&&F.stop(de,()=>{F.start(de)}),de.target===de.currentTarget&&te()&&de.key===" "&&de.preventDefault(),T&&T(de),de.target===de.currentTarget&&te()&&de.key==="Enter"&&!u&&(de.preventDefault(),y&&y(de))}),re=pe(de=>{p&&de.key===" "&&R&&!de.defaultPrevented&&F.stop(de,()=>{F.pulsate(de)}),E&&E(de),y&&de.target===de.currentTarget&&te()&&de.key===" "&&!de.defaultPrevented&&y(de)});let be=c;be==="button"&&(N.href||N.to)&&(be=m);const se={};if(be==="button"){const de=!!N.formAction;se.type=D===void 0&&!de?"button":D,se.disabled=u}else!N.href&&!N.to&&(se.role="button"),u&&(se["aria-disabled"]=u);const he=je(n,B),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:R},ue=_I(le);return b.jsxs(jI,{as:be,className:ge(ue.root,l),ownerState:le,onBlur:Y,onClick:y,onContextMenu:Z,onFocus:oe,onKeyDown:ae,onKeyUp:re,onMouseDown:G,onMouseLeave:J,onMouseUp:Q,onDragLeave:U,onTouchEnd:q,onTouchMove:X,onTouchStart:ee,ref:he,tabIndex:u?-1:j,type:D,...se,...N,children:[a,K?b.jsx(Sb,{ref:$,center:i,...O}):null]})});function Cn(e,t,n,o=!1){return pe(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(pr.propTypes={action:yt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:pa,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 LI(e){return Te("MuiCircularProgress",e)}Ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rn=44,vc=Ft.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
|
-
`,
|
|
208
|
+
`,xc=Ft.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
|
-
|
|
224
|
-
animation: ${
|
|
225
|
-
`:null,
|
|
226
|
-
animation: ${
|
|
227
|
-
`:null,AI=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,DI,t)},NI=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:RI||{animation:`${bc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),_I=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),jI=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:II||{animation:`${vc} 1.4s ease-in-out infinite`}}]}))),LI=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),zu=P.forwardRef(function(t,n){const o=Le({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=AI(m),y={},v={},C={};if(p==="determinate"){const x=2*Math.PI*((rn-d)/2);y.strokeDasharray=x.toFixed(3),C["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*x).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(NI,{className:ge(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...C,...h,children:b.jsxs(_I,{className:g.svg,ownerState:m,viewBox:`${rn/2} ${rn/2} ${rn} ${rn}`,children:[l?b.jsx(LI,{className:g.track,ownerState:m,cx:rn,cy:rn,r:(rn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(jI,{className:g.circle,style:y,ownerState:m,cx:rn,cy:rn,r:(rn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(zu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Nn(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 $I(e){return Te("MuiButton",e)}const fo=Ce("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"]),xb=P.createContext({});process.env.NODE_ENV!=="production"&&(xb.displayName="ButtonGroupContext");const Sb=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Sb.displayName="ButtonGroupButtonContext");const VI=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,$I,c);return{...c,...d}},wb=[{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}}}],FI=ye(fr,{shouldForwardProp:e=>cn(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]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${fo.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]},[`&.${fo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fo.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)",[`&.${fo.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(zt()).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"},[`&.${fo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fo.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}),[`&.${fo.loading}`]:{color:"transparent"}}}]}})),BI=ye("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}},...wb]})),zI=ye("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}},...wb]})),WI=ye("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}}]})),nh=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Vn=P.forwardRef(function(t,n){const o=P.useContext(xb),r=P.useContext(Sb),i=is(o,t),a=Le({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:C=null,loadingIndicator:x,loadingPosition:S="center",size:T="medium",startIcon:E,type:M,variant:A="text",...O}=a,V=eo(v),j=x??b.jsx(zu,{"aria-labelledby":V,color:"inherit",size:16}),w={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:C,loadingIndicator:j,loadingPosition:S,size:T,type:M,variant:A},N=VI(w),R=(E||C&&S==="start")&&b.jsx(BI,{className:N.startIcon,ownerState:w,children:E||b.jsx(nh,{className:N.loadingIconPlaceholder,ownerState:w})}),I=(m||C&&S==="end")&&b.jsx(zI,{className:N.endIcon,ownerState:w,children:m||b.jsx(nh,{className:N.loadingIconPlaceholder,ownerState:w})}),D=r||"",_=typeof C=="boolean"?b.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:C&&b.jsx(WI,{className:N.loadingIndicator,ownerState:w,children:j})}):null;return b.jsxs(FI,{ownerState:w,className:ge(o.className,N.root,d,D),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:ge(N.focusVisible,g),ref:n,type:M,id:C?V:v,...O,classes:N,children:[R,S!=="end"&&_,l,S==="end"&&_,I]})});process.env.NODE_ENV!=="production"&&(Vn.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 UI(e){return Te("MuiDialogActions",e)}Ce("MuiDialogActions",["root","spacing"]);const HI=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},UI,t)},YI=ye("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}}}]}),Cb=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=HI(l);return b.jsx(YI,{className:ge(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Cb.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 qI=["actions"],GI=ie.styled(Cb,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Tb(e){const{actions:t}=e,n=Ee(e,qI),o=oo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=xr();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Vn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Vn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Vn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Vn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Vn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(GI,z({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Tb.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 Pb=P.memo(Tb);process.env.NODE_ENV!=="production"&&(Pb.displayName="PickersActionBar");const nr=P.createContext({});process.env.NODE_ENV!=="production"&&(nr.displayName="ListContext");function KI(e){return Te("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const ZI=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},KI,t)},XI=ye("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}}]}),Wu=P.forwardRef(function(t,n){const o=Le({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=ZI(p);return b.jsx(nr.Provider,{value:f,children:b.jsxs(XI,{as:a,className:ge(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Wu.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 nt(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=Zt(f[e],r),{props:{component:g,...y},internalRef:v}=Hy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),C=je(v,m==null?void 0:m.ref,t.ref),x=e==="root"?g||u:g,S=Wy(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...x&&!l&&{as:x},...x&&l&&{component:x},ref:C},r);return[h,S]}function QI(e){return Te("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const JI=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function eA(e){return Te("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const tA=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},eA,n)},nA=ye("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}}]}),Uu=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(nr),l={...o,disableGutters:a.disableGutters},c=tA(l);return b.jsx(nA,{className:ge(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Uu.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])});Uu.muiName="ListItemSecondaryAction";const oA=(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]},rA=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"]},QI,n)},sA=ye("div",{name:"MuiListItem",slot:"Root",overridesResolver:oA})(qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${JI.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}}]}))),iA=ye("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Eb=P.forwardRef(function(t,n){const o=Le({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:C={},slots:x={},...S}=o,T=P.useContext(nr),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),A=P.Children.toArray(i),O=A.length&&Kr(A[A.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:O},j=rA(V),w=je(M,n),N={slots:x,slotProps:C},[R,I]=nt("secondaryAction",{elementType:Uu,externalForwardedProps:N,ownerState:V,className:j.secondaryAction}),D=x.root||c.Root||sA,_=C.root||u.root||{},F={className:ge(j.root,_.className,a),...S};let B=l||"li";return O?(B=!F.component&&!l?"div":B,d==="li"&&(B==="li"?B="div":F.component==="li"&&(F.component="div")),b.jsx(nr.Provider,{value:E,children:b.jsxs(iA,{as:d,className:ge(j.container,f),ref:w,ownerState:V,...p,children:[b.jsx(D,{..._,...!ar(D)&&{as:B,ownerState:{...V,..._.ownerState}},...F,children:A}),A.pop()]})})):b.jsx(nr.Provider,{value:E,children:b.jsxs(D,{..._,as:B,ref:w,...!ar(D)&&{ownerState:{...V,..._.ownerState}},...F,children:[A,v&&b.jsx(R,{...I,children:v})]})})});process.env.NODE_ENV!=="production"&&(Eb.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Nn(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(Kr(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:pa,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 aA=ft(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 lA(e){return Te("MuiChip",e)}const De=Ce("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"]),cA=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,lA,t)},uA=ye("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[{[`& .${De.avatar}`]:t.avatar},{[`& .${De.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${De.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${De.icon}`]:t.icon},{[`& .${De.icon}`]:t[`icon${ce(l)}`]},{[`& .${De.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${De.deleteIcon}`]:t.deleteIcon},{[`& .${De.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${De.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)}`]]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${De.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${De.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${De.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${De.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${De.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${De.icon}`]:{marginLeft:5,marginRight:-6},[`& .${De.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,[`& .${De.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${De.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(zt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${De.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:{[`& .${De.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${De.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${De.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(zt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${De.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}`)},[`&.${De.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(zt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${De.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]}`,[`&.${De.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${De.avatar}`]:{marginLeft:4},[`& .${De.avatarSmall}`]:{marginLeft:2},[`& .${De.icon}`]:{marginLeft:4},[`& .${De.iconSmall}`]:{marginLeft:2},[`& .${De.deleteIcon}`]:{marginRight:5},[`& .${De.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(zt()).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)}`,[`&.${De.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),dA=ye("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 oh(e){return e.key==="Backspace"||e.key==="Delete"}const Mb=P.forwardRef(function(t,n){const o=Le({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:C="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,slots:T={},slotProps:E={},...M}=o,A=P.useRef(null),O=je(A,n),V=U=>{U.stopPropagation(),m&&m(U)},j=U=>{U.currentTarget===U.target&&oh(U)&&U.preventDefault(),g&&g(U)},w=U=>{U.currentTarget===U.target&&m&&oh(U)&&m(U),y&&y(U)},N=a!==!1&&h?!0:a,R=N||m?fr:c||"div",I={...o,component:R,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:N,variant:C},D=cA(I),_=R===fr?{component:c||"div",focusVisibleClassName:D.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=u&&P.isValidElement(u)?P.cloneElement(u,{className:ge(u.props.className,D.deleteIcon),onClick:V}):b.jsx(aA,{className:D.deleteIcon,onClick:V}));let B=null;r&&P.isValidElement(r)&&(B=P.cloneElement(r,{className:ge(D.avatar,r.props.className)}));let $=null;f&&P.isValidElement(f)&&($=P.cloneElement(f,{className:ge(D.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&B&&$&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const k={slots:T,slotProps:E},[W,K]=nt("root",{elementType:uA,externalForwardedProps:{...k,...M},ownerState:I,shouldForwardComponentProp:!0,ref:O,className:ge(D.root,i),additionalProps:{disabled:N&&d?!0:void 0,tabIndex:S&&d?-1:x,..._},getSlotProps:U=>({...U,onClick:Q=>{var J;(J=U.onClick)==null||J.call(U,Q),h==null||h(Q)},onKeyDown:Q=>{var J;(J=U.onKeyDown)==null||J.call(U,Q),j(Q)},onKeyUp:Q=>{var J;(J=U.onKeyUp)==null||J.call(U,Q),w(Q)}})}),[G,Z]=nt("label",{elementType:dA,externalForwardedProps:k,ownerState:I,className:D.label});return b.jsxs(W,{as:R,...K,children:[B||$,b.jsx(G,{...Z,children:p}),F]})});process.env.NODE_ENV!=="production"&&(Mb.propTypes={avatar:s.element,children:G1,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 bs=36,ha=2,ma=320,fA=280,Hu=336,pA=["items","changeImportance"],hA=["getValue"],mA=ie.styled(Wu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Ob(e){const{items:t,changeImportance:n="accept"}=e,o=Ee(e,pA),{setValue:r}=nD(),i=Bk();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Ee(l,hA);const d=c({isValid:i});return z({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(mA,z({dense:!0,sx:[{maxHeight:Hu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Eb,{children:b.jsx(Mb,z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Ob.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 gA=["ownerState"];function yA(e){return e.view!==null}const bA=(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"]},yb,e)},vA=e=>{const{ownerState:t,defaultActionBarActions:n}=Et(),{view:o}=xr(),r=ln(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>z({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=bA(c,u),f=(a==null?void 0:a.actionBar)??Pb,p=_e({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Ee(p,gA),m=b.jsx(f,z({},h)),g=a==null?void 0:a.toolbar,y=_e({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=yA(y)&&g?b.jsx(g,z({},y)):null,C=i,x=a==null?void 0:a.tabs,S=o&&x?b.jsx(x,z({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??Ob,E=_e({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,A=o&&T?b.jsx(T,z({},E)):null;return{toolbar:v,content:C,tabs:S,actionBar:m,shortcuts:A,ownerState:z({},u,{hasShortcuts:M})}},xA=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},yb,e)},SA=ie.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${uo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${uo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${uo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${uo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${uo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${uo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${uo.shortcuts}`]:{gridColumn:4}}}]}),wA=ie.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),ga=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=vA(o),{orientation:d,variant:f}=xr(),{sx:p,className:h,classes:m}=o,g=xA(m,u);return b.jsxs(SA,{ref:n,sx:p,className:ge(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(wA,{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"&&(ga.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(ga.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 kb(e){const{steps:t}=e;return fI({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 CA=["props","steps"],TA=["ownerState"],PA=e=>{var E;let{props:t,steps:n}=e,o=Ee(e,CA);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=kb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=gb(z({},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=_e({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},m&&{id:h}),ownerState:p}),v=Ee(y,TA),C=r.layout??ga;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:h}),popper:z({"aria-labelledby":x},i==null?void 0:i.popper)}),T=()=>b.jsxs(Ny,z({},d,{children:[b.jsx(g,z({},v,{slots:z({},r,v.slots),slotProps:z({},S,v.slotProps),inputRef:l})),b.jsx(cI,{slots:r,slotProps:S,children:b.jsx(C,z({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Fo=e=>e.saveQuery!=null,Db=({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 C=`${n.characterQuery.value}${g}`,x=h(C,y);if(!Fo(x))return r({sectionIndex:p,value:C,sectionType:y.type}),x}const v=h(g,y);return Fo(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),Fo(v)?null:v)},u=f=>{const p=(g,y,v)=>{const C=y.filter(x=>x.toLowerCase().startsWith(v));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},h=(g,y,v,C)=>{const x=S=>Dy(l,o,y.type,S);if(y.contentType==="letter")return p(y.format,x(y.format),g);if(v&&C!=null&&xu(l,v).contentType==="letter"){const S=x(v),T=p(v,S,g);return Fo(T)?{saveQuery:!1}:z({},T,{sectionValue:C(T.sectionValue,S)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=C=>Rp(l,C,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(C,x)=>x.indexOf(C).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=Ro(m,e),C=Number(v),x=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(C>x.maximum)return{saveQuery:!1};if(g&&C<x.minimum)return{saveQuery:!0};const S=C*10>x.maximum||v.length===x.maximum.toString().length;return{sectionValue:Ry(l,C,x,e,y),shouldGoToNextSection:S}};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"){Iy(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Fo(y))return y;const v=Rp(l,y.sectionValue,"MM",g.format);return z({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Fo(y))return y;const v=aa(l,g.format)[Number(y.sectionValue)-1];return z({},y,{sectionValue:v})}return{saveQuery:!1}},m=>Dp(m,e))};return pe(f=>{const p=n.sections[f.sectionIndex],m=Dp(f.keyPressed,e)?d(z({},f,{keyPressed:Su(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},EA=5e3,Rb=e=>{var be;const t=Ke(),n=oo(),o=ln(),{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:C,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:S}}=e,{value:T,handleValueChange:E,timezone:M}=$s({name:"a field component",timezone:C,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),A=P.useRef(T);P.useEffect(()=>{A.current=T},[T]);const{hasValidationError:O}=By({props:c,validator:r,timezone:M,value:T,onError:c.onError}),V=P.useMemo(()=>Sk(t),[t]),j=P.useMemo(()=>Ek(t,V,M),[t,V,M]),w=P.useCallback(se=>l.getSectionsFromValue(se,he=>Lp({adapter:t,localeText:n,localizedDigits:V,format:h,date:he,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o})),[l,h,n,V,o,v,t,m,x]),[N,R]=P.useState(()=>{const se=w(T);Ap(se,i);const he={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=bk(se),ue=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return z({},he,{referenceValue:ue})}),[I,D]=Gn({controlled:g,default:null,name:"useField",state:"selectedSections"}),_=se=>{D(se),y==null||y(se)},F=P.useMemo(()=>lc(I,N.sections),[I,N.sections]),B=F==="all"?0:F,$=P.useMemo(()=>kk(N.sections,o&&!x),[N.sections,o,x]),k=P.useMemo(()=>N.sections.every(se=>se.value===""),[N.sections]),W=P.useMemo(()=>{if(B!=null)return!1;const se=N.sections.filter(he=>he.value!=="");return se.length>0&&N.sections.length-se.length>0},[N.sections,B]),K=P.useMemo(()=>S!==void 0?S:O||W,[O,W,S]),G=se=>{const he={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,he)},Z=(se,he)=>{const le=[...N.sections];return le[se]=z({},le[se],{value:he,modified:!0}),le},U=P.useRef(null),Q=Yn(),J=se=>{B!=null&&(U.current={sectionIndex:B,value:se},Q.start(0,()=>{U.current=null}))},ee=()=>{a.areValuesEqual(t,T,a.emptyValue)?R(se=>z({},se,{sections:se.sections.map(he=>z({},he,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(R(se=>z({},se,{characterQuery:null})),G(a.emptyValue))},q=()=>{if(B==null)return;const se=N.sections[B];se.value!==""&&(J(""),l.getDateFromSection(T,se)===null?R(he=>z({},he,{sections:Z(B,""),tempValueStrAndroid:null,characterQuery:null})):(R(he=>z({},he,{characterQuery:null})),G(l.updateDateInValue(T,se,null))))},X=se=>{const he=(ue,de)=>{const Ie=t.parse(ue,h);if(!t.isValid(Ie))return null;const Me=Lp({adapter:t,localeText:n,localizedDigits:V,format:h,date:Ie,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o});return _p(t,Ie,Me,de,!1)},le=l.parseValueStr(se,N.referenceValue,he);G(le)},Y=Yn(),oe=({section:se,newSectionValue:he,shouldGoToNextSection:le})=>{Q.clear(),Y.clear();const ue=l.getDateFromSection(T,se);le&&B<N.sections.length-1&&_(B+1);const de=Z(B,he),Ie=l.getDateSectionsFromValue(de,se),Me=Ck(t,Ie,V);if(t.isValid(Me)){const Ze=_p(t,Me,Ie,l.getDateFromSection(N.referenceValue,se),!0);return ue==null&&Y.start(0,()=>{A.current===T&&R(Je=>z({},Je,{sections:l.clearDateSections(N.sections,se),tempValueStrAndroid:null}))}),G(l.updateDateInValue(T,se,Ze))}return Ie.every(Ze=>Ze.value!=="")&&(ue==null||t.isValid(ue))?(J(he),G(l.updateDateInValue(T,se,Me))):(ue!=null&&(J(he),G(l.updateDateInValue(T,se,Me))),R(Ze=>z({},Ze,{sections:de,tempValueStrAndroid:null})))},te=se=>R(he=>z({},he,{tempValueStrAndroid:se})),ae=pe(se=>{R(he=>z({},he,{characterQuery:se}))});if(T!==N.lastExternalValue){const se=U.current!=null&&!t.isValid(l.getDateFromSection(T,N.sections[U.current.sectionIndex]));let he;se?he=Z(U.current.sectionIndex,U.current.value):he=w(T),R(le=>z({},le,{lastExternalValue:T,sections:he,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==N.lastSectionsDependencies.isRtl||h!==N.lastSectionsDependencies.format||t.locale!==N.lastSectionsDependencies.locale){const se=w(T);Ap(se,i),R(he=>z({},he,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}N.characterQuery!=null&&!K&&B==null&&ae(null),N.characterQuery!=null&&((be=N.sections[N.characterQuery.sectionIndex])==null?void 0:be.type)!==N.characterQuery.sectionType&&ae(null),P.useEffect(()=>{U.current!=null&&(U.current=null)});const re=Yn();return P.useEffect(()=>(N.characterQuery!=null&&re.start(EA,()=>ae(null)),()=>{}),[N.characterQuery,ae,re]),P.useEffect(()=>{N.tempValueStrAndroid!=null&&B!=null&&q()},[N.sections]),{activeSectionIndex:B,areAllSectionsEmpty:k,error:K,localizedDigits:V,parsedSelectedSections:F,sectionOrder:$,sectionsValueBoundaries:j,state:N,timezone:M,value:T,clearValue:ee,clearActiveSection:q,setCharacterQuery:ae,setSelectedSections:_,setTempAndroidValueStr:te,updateSectionValue:oe,updateValueFromValueStr:X,getSectionsFromValue:w}};function Ib(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=ku(),i=Ay(),a=je(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?z({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 Yu(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Ct(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(It(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 Ab(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 pe(C=>{if(!r)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),y("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const x=h.neighbors[u].rightIndex;x!==null&&y(x)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const x=h.neighbors[u].leftIndex;x!==null&&y(x)}break}case C.key==="Delete":{if(C.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),i||c==null)break;u==="all"&&y(c);const x=a.sections[c],S=OA(t,p,x,C.key,d,f,n.getDateFromSection(l,x),{minutesStep:o});v({section:x,newSectionValue:S,shouldGoToNextSection:!1});break}}})}function MA(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function OA(e,t,n,o,r,i,a,l){const c=MA(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=C=>Ry(e,C,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(Ro(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=Dy(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 kA(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=Ab({manager:t,internalPropsWithDefaults:l,stateResponse:i}),C=Yn(),x=pe(A=>{g||!r.isReady()||(o(!0),c==="all"?C.start(0,()=>{const O=document.getSelection().getRangeAt(0).startOffset;if(O===0){h(u.startIndex);return}let V=0,j=0;for(;j<O&&V<d.sections.length;){const w=d.sections[V];V+=1,j+=`${w.startSeparator}${w.value||w.placeholder}${w.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(A.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),S=pe(A=>{if(!r.isReady()||c!=="all")return;const V=A.target.textContent??"";r.getRoot().innerHTML=d.sections.map(j=>`${j.startSeparator}${j.value||j.placeholder}${j.endSeparator}`).join(""),Yu({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=pe(A=>{if(y||c!=="all"){A.preventDefault();return}const O=A.clipboardData.getData("text");A.preventDefault(),p(null),m(O)}),E=pe(()=>{if(n||g||!r.isReady())return;const A=It(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(A)!=null||h(u.startIndex)}),M=pe(()=>{setTimeout(()=>{if(!r.isReady())return;const A=It(r.getRoot());!r.getRoot().contains(A)&&(o(!1),h(null))})});return{onKeyDown:v,onBlur:M,onFocus:E,onClick:x,onPaste:T,onInput:S,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function DA(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=pe(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function RA(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 IA(e){const t=Ke(),n=oo(),{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:C=!1}}=e,x=c==="all",S=!x&&!v&&!C,T=pe(j=>{if(!r.isReady())return;const w=d.sections[j];r.getSectionContent(j).innerHTML=w.value||w.placeholder,Yu({focused:o,domGetters:r,stateResponse:i})}),E=pe(j=>{if(!r.isReady())return;const w=j.target,N=w.textContent??"",R=r.getSectionIndexFromDOMElement(w),I=d.sections[R];if(C){T(R);return}if(N.length===0){if(I.value===""){T(R);return}const D=j.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){T(R);return}T(R),p();return}a({keyPressed:N,sectionIndex:R}),T(R)}),M=pe(j=>{j.preventDefault()}),A=pe(j=>{if(j.preventDefault(),C||v||typeof c!="number")return;const w=d.sections[c],N=j.clipboardData.getData("text"),R=/^[a-zA-Z]+$/.test(N),I=/^[0-9]+$/.test(N),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(N);w.contentType==="letter"&&R||w.contentType==="digit"&&I||w.contentType==="digit-with-letter"&&D?(h(null),g({section:w,newSectionValue:N,shouldGoToNextSection:!0})):!R&&!I&&(h(null),y(N))}),O=pe(j=>{j.preventDefault(),j.dataTransfer.dropEffect="none"}),V=P.useCallback(j=>()=>{v||m(j)},[v,m]);return P.useCallback((j,w)=>{const N=u[j.type]({currentDate:l.getDateFromSection(f,j),contentType:j.contentType,format:j.format});return{onInput:E,onPaste:A,onMouseUp:M,onDragOver:O,onFocus:V(w),"aria-readonly":C,"aria-valuenow":NA(j,t),"aria-valuemin":N.minimum,"aria-valuemax":N.maximum,"aria-valuetext":j.value?AA(j,t):n.empty,"aria-label":n[j.type],"aria-disabled":v,tabIndex:!S||x||w>0?-1:0,contentEditable:!x&&!v&&!C,role:"spinbutton","data-range-position":j.dateName||void 0,spellCheck:S?!1:void 0,autoCapitalize:S?"none":void 0,autoCorrect:S?"off":void 0,children:j.value||j.placeholder,inputMode:j.contentType==="letter"?"text":"numeric"}},[u,x,v,C,S,n,t,E,A,M,O,V,l,f])}function AA(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 NA(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 _A=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=Fy(t,r),c=Ib({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:C=!1,readOnly:x=!1,autoFocus:S=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),A=je(u,M),O=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:re=>M.current.getSectionContainer(re),getSectionContent:re=>M.current.getSectionContent(re),getSectionIndexFromDOMElement:re=>M.current.getSectionIndexFromDOMElement(re)}),[M]),V=Rb({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:j,error:w,parsedSelectedSections:N,sectionOrder:R,state:I,value:D,clearValue:_,setSelectedSections:F}=V,B=Db({stateResponse:V}),$=i(D),[k,W]=P.useState(!1);function K(re=0){if(C||!M.current||rh(M)!=null)return;const be=lc(re,I.sections);W(!0),M.current.getSectionContent(be).focus()}const G=kA({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:B,focused:k,setFocused:W,domGetters:O}),Z=DA({manager:n,stateResponse:V}),U=RA({stateResponse:V,internalPropsWithDefaults:c}),Q=IA({manager:n,stateResponse:V,applyCharacterEditing:B,internalPropsWithDefaults:c,domGetters:O,focused:k}),J=pe(re=>{g==null||g(re),G.onKeyDown(re)}),ee=pe(re=>{d==null||d(re),G.onBlur(re)}),q=pe(re=>{p==null||p(re),G.onFocus(re)}),X=pe(re=>{re.isDefaultPrevented()||(f==null||f(re),G.onClick(re))}),Y=pe(re=>{m==null||m(re),G.onPaste(re)}),oe=pe(re=>{h==null||h(re),G.onInput(re)}),te=pe((re,...be)=>{re.preventDefault(),y==null||y(re,...be),_(),sh(M)?F(R.startIndex):K(0)}),ae=P.useMemo(()=>I.sections.map((re,be)=>{const se=Q(re,be);return{container:U(be),content:Q(re,be),before:{children:re.startSeparator},after:{children:re.endSeparator,"data-range-position":re.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[I.sections,U,Q]);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
|
-
`));
|
|
229
|
-
`&&(
|
|
230
|
-
`),M=
|
|
231
|
-
`))},[]),X=je(ee,S,x.ref,q),[Y,oe]=P.useState(!1),te=_n();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(te)return te.registerEffect()},[te]);const ae=Sr({props:o,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=te?te.focused:Y,P.useEffect(()=>{!te&&p&&Y&&(oe(!1),V&&V())},[te,p,Y,V]);const re=te&&te.onFilled,be=te&&te.onEmpty,se=P.useCallback(xe=>{$i(xe)?re&&re():be&&be()},[re,be]);St(()=>{J&&se({value:Q})},[Q,se,J]);const he=xe=>{N&&N(xe),x.onFocus&&x.onFocus(xe),te&&te.onFocus?te.onFocus(xe):oe(!0)},le=xe=>{V&&V(xe),x.onBlur&&x.onBlur(xe),te&&te.onBlur?te.onBlur(xe):oe(!1)},ue=(xe,...$e)=>{if(!J){const Ve=xe.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.":bn(1));se({value:Ve.value})}x.onChange&&x.onChange(xe,...$e),j&&j(xe,...$e)};P.useEffect(()=>{se(ee.current)},[]);const de=xe=>{ee.current&&xe.currentTarget===xe.target&&ee.current.focus(),w&&w(xe)};let Ie=C,Me=x;A&&Ie==="input"&&(B?(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."),Me={type:void 0,minRows:B,maxRows:B,...Me}):Me={type:void 0,maxRows:E,minRows:M,...Me},Ie=Nb);const Ze=xe=>{se(xe.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};P.useEffect(()=>{te&&te.setAdornedStart(!!K)},[te,K]);const Je={...o,color:ae.color||"primary",disabled:ae.disabled,endAdornment:m,error:ae.error,focused:ae.focused,formControl:te,fullWidth:y,hiddenLabel:ae.hiddenLabel,multiline:A,size:ae.size,startAdornment:K,type:G},ke=UA(Je),ut=W.root||u.Root||va,Se=k.root||d.root||{},Pe=W.input||u.Input||xa;return Me={...Me,...k.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof uh=="function"&&(ch||(ch=b.jsx(uh,{}))),b.jsxs(ut,{...Se,ref:n,onClick:de,...U,...!ar(ut)&&{ownerState:{...Je,...Se.ownerState}},className:ge(ke.root,Se.className,l,_&&"MuiInputBase-readOnly"),children:[K,b.jsx(Vs.Provider,{value:null,children:b.jsx(Pe,{"aria-invalid":ae.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:ae.disabled,id:v,onAnimationStart:Ze,name:O,placeholder:D,readOnly:_,required:ae.required,rows:B,value:Q,onKeyDown:R,onKeyUp:I,type:G,...Me,...!ar(Pe)&&{as:Ie,ownerState:{...Je,...Me.ownerState}},ref:X,className:ge(ke.input,Me.className,_&&"MuiInputBase-readOnly"),onBlur:le,onChange:ue,onFocus:he})}),m,F?F({...ae,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(Sa.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:pa,inputProps:s.object,inputRef:yt,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 HA(e){return Te("MuiInput",e)}const Ar={...pr,...Ce("MuiInput",["root","underline","input"])},YA=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},HA,t);return{...t,...r}},qA=ye(va,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ya(e,t),!n.disableUnderline&&t.underline]}})(qe(({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"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.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(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),GA=ye(xa,{name:"MuiInput",slot:"Input",overridesResolver:ba})({}),wa=P.forwardRef(function(t,n){const o=Le({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=YA(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?Dt(d??a,y):y,C=f.root??i.Root??qA,x=f.input??i.Input??GA;return b.jsx(Sa,{slots:{root:C,input:x},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(wa.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:yt,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});wa.muiName="Input";function KA(e){return Te("MuiFilledInput",e)}const po={...pr,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ZA=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,KA,t);return{...t,...u}},XA=ye(va,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ya(e,t),!n.disableUnderline&&t.underline]}})(qe(({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}},[`&.${po.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${po.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"},[`&.${po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${po.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(.${po.disabled}, .${po.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).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}}]}})),QA=ye(xa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ba})(qe(({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}}]}))),Ca=P.forwardRef(function(t,n){const o=Le({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=ZA(o),v={root:{ownerState:g},input:{ownerState:g}},C=f??a?Dt(v,f??a):v,x=p.root??i.Root??XA,S=p.input??i.Input??QA;return b.jsx(Sa,{slots:{root:x,input:S},slotProps:C,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...m,classes:y})});process.env.NODE_ENV!=="production"&&(Ca.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:yt,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});Ca.muiName="Input";var dh;const JA=ye("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:cn})({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%"}),e5=ye("legend",{name:"MuiNotchedOutlined",shouldForwardProp:cn})(qe(({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 _b(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(JA,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(e5,{ownerState:c,children:l?b.jsx("span",{children:r}):dh||(dh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(_b.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function t5(e){return Te("MuiOutlinedInput",e)}const fn={...pr,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])},n5=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},t5,t);return{...t,...o}},o5=ye(va,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ya})(qe(({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 .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${fn.focused} .${fn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(zt()).map(([n])=>({props:{color:n},style:{[`&.${fn.focused} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${fn.error} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${fn.disabled} .${fn.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"}}]}})),r5=ye(_b,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(qe(({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}})),s5=ye(xa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ba})(qe(({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}}]}))),Ta=P.forwardRef(function(t,n){const o=Le({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=n5(o),g=_n(),y=Sr({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},C=d.root??r.Root??o5,x=d.input??r.Input??s5,[S,T]=nt("notchedOutline",{elementType:r5,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(Sa,{slots:{root:C,input:x},slotProps:f,renderSuffix:E=>b.jsx(S,{...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"&&(Ta.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:yt,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});Ta.muiName="Input";function i5(e){return Te("MuiFormLabel",e)}const ts=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),a5=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,i5,t)},l5=ye("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(qe(({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(zt()).map(([t])=>({props:{color:t},style:{[`&.${ts.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ts.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),c5=ye("span",{name:"MuiFormLabel",slot:"Asterisk"})(qe(({theme:e})=>({[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}))),jb=P.forwardRef(function(t,n){const o=Le({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=_n(),g=Sr({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=a5(y);return b.jsxs(l5,{as:l,ownerState:y,className:ge(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(c5,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(jb.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 u5(e){return Te("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const d5=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,u5,t);return{...t,...u}},f5=ye(jb,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ts.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]]}})(qe(({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)"}}]}))),qu=P.forwardRef(function(t,n){const o=Le({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=_n();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=Sr({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=d5(h);return b.jsx(f5,{"data-shrink":f,ref:n,className:ge(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(qu.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 p5(e){return Te("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const h5=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,p5,t)},m5=ye("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%"}}]}),Gu=P.forwardRef(function(t,n){const o=Le({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,C={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},x=h5(C),[S,T]=P.useState(()=>{let D=!1;return r&&P.Children.forEach(r,_=>{if(!Kr(_,["Input","Select"]))return;const F=Kr(_,["Select"])?_.props.input:_;F&&zA(F.props)&&(D=!0)}),D}),[E,M]=P.useState(()=>{let D=!1;return r&&P.Children.forEach(r,_=>{Kr(_,["Input","Select"])&&($i(_.props,!0)||$i(_.props.inputProps,!0))&&(D=!0)}),D}),[A,O]=P.useState(!1);c&&A&&O(!1);const V=d!==void 0&&!c?d:A;let j;const w=P.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(w.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
232
|
-
`)),
|
|
233
|
-
`)),x.props.disabled||(f==="selectedMenu"&&x.props.selected||v===-1)&&(v=S),v===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const C=P.Children.map(a,(x,S)=>{if(S===v){const T={};return i&&(T.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(x,T)}return x});return b.jsx(Wu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:C})});process.env.NODE_ENV!=="production"&&(Vb.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 v5(e){const t=Ct(e);return t.body===e?kn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ns(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mh(e){return parseFloat(kn(e).getComputedStyle(e).paddingRight)||0}function x5(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 gh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!x5(a);l&&c&&ns(a,r)})}function hl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function S5(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(v5(o)){const a=Lb(kn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${mh(o)+a}px`;const l=Ct(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${mh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Ct(o).body;else{const a=o.parentElement,l=kn(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 w5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class C5{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&&ns(t.modalRef,!1);const r=w5(n);gh(n,t.mount,t.modalRef,r,!0);const i=hl(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=hl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=S5(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=hl(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&&ns(t.modalRef,n),gh(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&&ns(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function T5(e){return Te("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const P5=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},T5,t)},E5=ye("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"}}]}),Zu=P.forwardRef(function(t,n){const o=Le({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=P5(y),C={transition:h,root:u.Root,...p},x={...d,...f},S={component:a,slots:C,slotProps:x},[T,E]=nt("root",{elementType:E5,externalForwardedProps:S,className:ge(v.root,i),ownerState:y}),[M,A]=nt("transition",{elementType:Xn,externalForwardedProps:S,ownerState:y});return b.jsx(M,{in:c,timeout:m,...g,...A,children:b.jsx(T,{"aria-hidden":!0,...E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Zu.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 M5(e){return typeof e=="function"?e():e}function O5(e){return e?e.props.hasOwnProperty("in"):!1}const yh=()=>{},ti=new C5;function k5(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=je(h,d),[g,y]=P.useState(!u),v=O5(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const x=()=>Ct(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{ti.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=pe(()=>{const I=M5(t)||x().body;ti.add(S(),I),h.current&&T()}),M=()=>ti.isTopModal(S()),A=pe(I=>{p.current=I,I&&(u&&M()?T():h.current&&ns(h.current,C))}),O=P.useCallback(()=>{ti.remove(S(),C)},[C]);P.useEffect(()=>()=>{O()},[O]),P.useEffect(()=>{u?E():(!v||!r)&&O()},[u,O,v,r,E]);const V=I=>D=>{var _;(_=I.onKeyDown)==null||_.call(I,D),!(D.key!=="Escape"||D.which===229||!M())&&(n||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},j=I=>D=>{var _;(_=I.onClick)==null||_.call(I,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(I={})=>{const D=Uy(e);delete D.onTransitionEnter,delete D.onTransitionExited;const _={...D,...I};return{role:"presentation",..._,onKeyDown:V(_),ref:m}},getBackdropProps:(I={})=>{const D=I;return{"aria-hidden":!0,...D,onClick:j(D),open:u}},getTransitionProps:()=>{const I=()=>{y(!1),i&&i()},D=()=>{y(!0),a&&a(),r&&O()};return{onEnter:xd(I,(l==null?void 0:l.props.onEnter)??yh),onExited:xd(D,(l==null?void 0:l.props.onExited)??yh)}},rootRef:m,portalRef:A,isTopModal:M,exited:g,hasTransition:v}}function D5(e){return Te("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const R5=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},D5,o)},I5=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(qe(({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"}}]}))),A5=ye(Zu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Xu=P.forwardRef(function(t,n){const o=Le({name:"MuiModal",props:t}),{BackdropComponent:r=A5,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:C=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:A,open:O,slotProps:V={},slots:j={},theme:w,...N}=o,R={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:C,disableScrollLock:x,hideBackdrop:S,keepMounted:T},{getRootProps:I,getBackdropProps:D,getTransitionProps:_,portalRef:F,isTopModal:B,exited:$,hasTransition:k}=k5({...R,rootRef:n}),W={...R,exited:$},K=R5(W),G={};if(u.props.tabIndex===void 0&&(G.tabIndex="-1"),k){const{onEnter:q,onExited:X}=_();G.onEnter=q,G.onExited=X}const Z={slots:{root:p.Root,backdrop:p.Backdrop,...j},slotProps:{...h,...V}},[U,Q]=nt("root",{ref:n,elementType:I5,externalForwardedProps:{...Z,...N,component:f},getSlotProps:I,ownerState:W,className:ge(l,K==null?void 0:K.root,!W.open&&W.exited&&(K==null?void 0:K.hidden))}),[J,ee]=nt("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:q=>D({...q,onClick:X=>{q!=null&&q.onClick&&q.onClick(X)}}),className:ge(i==null?void 0:i.className,K==null?void 0:K.backdrop),ownerState:W});return!T&&!O&&(!k||$)?null:b.jsx(gs,{ref:F,container:d,disablePortal:v,children:b.jsxs(U,{...Q,children:[!S&&r?b.jsx(J,{...ee}):null,b.jsx(ys,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:B,open:O,children:P.cloneElement(u,G)})]})})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Is.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([In,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 N5(e){return Te("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function bh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function vh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function xh(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Yr(e){return typeof e=="function"?e():e}const _5=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},N5,t)},j5=ye(Xu,{name:"MuiPopover",slot:"Root"})({}),Fb=ye(_s,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Bb=P.forwardRef(function(t,n){const o=Le({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:C={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:S="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,A=P.useRef(),O={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:C,TransitionComponent:x,transitionDuration:S,TransitionProps:T},V=_5(O),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 q=Yr(i),X=q&&q.nodeType===1?q:Ct(A.current).body,Y=X.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const oe=X.getBoundingClientRect();process.env.NODE_ENV!=="test"&&oe.top===0&&oe.left===0&&oe.right===0&&oe.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:Y.top+
|
|
235
|
-
`)),h!==null&&ae<h){const ue=ae-h;ae-=ue,Y.horizontal+=ue}else if(be>le){const ue=be-le;ae-=ue,Y.horizontal+=ue}return{top:`${Math.round(te)}px`,left:`${Math.round(ae)}px`,transformOrigin:
|
|
223
|
+
`,$I=typeof vc!="string"?Ft.css`
|
|
224
|
+
animation: ${vc} 1.4s linear infinite;
|
|
225
|
+
`:null,VI=typeof xc!="string"?Ft.css`
|
|
226
|
+
animation: ${xc} 1.4s ease-in-out infinite;
|
|
227
|
+
`:null,FI=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,LI,t)},BI=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:$I||{animation:`${vc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),zI=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),WI=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:VI||{animation:`${xc} 1.4s ease-in-out infinite`}}]}))),UI=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Wu=P.forwardRef(function(t,n){const o=Le({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=FI(m),y={},v={},C={};if(p==="determinate"){const S=2*Math.PI*((rn-d)/2);y.strokeDasharray=S.toFixed(3),C["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(BI,{className:ge(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...C,...h,children:b.jsxs(zI,{className:g.svg,ownerState:m,viewBox:`${rn/2} ${rn/2} ${rn} ${rn}`,children:[l?b.jsx(UI,{className:g.track,ownerState:m,cx:rn,cy:rn,r:(rn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(WI,{className:g.circle,style:y,ownerState:m,cx:rn,cy:rn,r:(rn-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:Nn(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 HI(e){return Te("MuiButton",e)}const fo=Ce("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"]),wb=P.createContext({});process.env.NODE_ENV!=="production"&&(wb.displayName="ButtonGroupContext");const Cb=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cb.displayName="ButtonGroupButtonContext");const YI=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,HI,c);return{...c,...d}},Tb=[{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}}}],qI=ye(pr,{shouldForwardProp:e=>cn(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]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${fo.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]},[`&.${fo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fo.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)",[`&.${fo.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(zt()).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"},[`&.${fo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fo.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}),[`&.${fo.loading}`]:{color:"transparent"}}}]}})),GI=ye("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}},...Tb]})),KI=ye("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}},...Tb]})),ZI=ye("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}}]})),sh=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Vn=P.forwardRef(function(t,n){const o=P.useContext(wb),r=P.useContext(Cb),i=is(o,t),a=Le({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:C=null,loadingIndicator:S,loadingPosition:w="center",size:T="medium",startIcon:E,type:M,variant:A="text",...k}=a,V=eo(v),L=S??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:C,loadingIndicator:L,loadingPosition:w,size:T,type:M,variant:A},j=YI(x),O=(E||C&&w==="start")&&b.jsx(GI,{className:j.startIcon,ownerState:x,children:E||b.jsx(sh,{className:j.loadingIconPlaceholder,ownerState:x})}),I=(m||C&&w==="end")&&b.jsx(KI,{className:j.endIcon,ownerState:x,children:m||b.jsx(sh,{className:j.loadingIconPlaceholder,ownerState:x})}),D=r||"",N=typeof C=="boolean"?b.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:C&&b.jsx(ZI,{className:j.loadingIndicator,ownerState:x,children:L})}):null;return b.jsxs(qI,{ownerState:x,className:ge(o.className,j.root,d,D),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:ge(j.focusVisible,g),ref:n,type:M,id:C?V:v,...k,classes:j,children:[O,w!=="end"&&N,l,w==="end"&&N,I]})});process.env.NODE_ENV!=="production"&&(Vn.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 XI(e){return Te("MuiDialogActions",e)}Ce("MuiDialogActions",["root","spacing"]);const QI=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},XI,t)},JI=ye("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}}}]}),Pb=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=QI(l);return b.jsx(JI,{className:ge(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Pb.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 eA=["actions"],tA=ie.styled(Pb,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Eb(e){const{actions:t}=e,n=Ee(e,eA),o=oo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Sr();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Vn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Vn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Vn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Vn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Vn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(tA,z({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Eb.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 Mb=P.memo(Eb);process.env.NODE_ENV!=="production"&&(Mb.displayName="PickersActionBar");const or=P.createContext({});process.env.NODE_ENV!=="production"&&(or.displayName="ListContext");function nA(e){return Te("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const oA=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},nA,t)},rA=ye("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=Le({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=oA(p);return b.jsx(or.Provider,{value:f,children:b.jsxs(rA,{as:a,className:ge(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 nt(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=Zt(f[e],r),{props:{component:g,...y},internalRef:v}=qy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),C=je(v,m==null?void 0:m.ref,t.ref),S=e==="root"?g||u:g,w=Hy(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...S&&!l&&{as:S},...S&&l&&{component:S},ref:C},r);return[h,w]}function sA(e){return Te("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const iA=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function aA(e){return Te("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const lA=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},aA,n)},cA=ye("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}}]}),Hu=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(or),l={...o,disableGutters:a.disableGutters},c=lA(l);return b.jsx(cA,{className:ge(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Hu.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])});Hu.muiName="ListItemSecondaryAction";const uA=(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]},dA=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"]},sA,n)},fA=ye("div",{name:"MuiListItem",slot:"Root",overridesResolver:uA})(qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${iA.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}}]}))),pA=ye("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ob=P.forwardRef(function(t,n){const o=Le({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:C={},slots:S={},...w}=o,T=P.useContext(or),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),A=P.Children.toArray(i),k=A.length&&Kr(A[A.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:k},L=dA(V),x=je(M,n),j={slots:S,slotProps:C},[O,I]=nt("secondaryAction",{elementType:Hu,externalForwardedProps:j,ownerState:V,className:L.secondaryAction}),D=S.root||c.Root||fA,N=C.root||u.root||{},B={className:ge(L.root,N.className,a),...w};let F=l||"li";return k?(F=!B.component&&!l?"div":F,d==="li"&&(F==="li"?F="div":B.component==="li"&&(B.component="div")),b.jsx(or.Provider,{value:E,children:b.jsxs(pA,{as:d,className:ge(L.container,f),ref:x,ownerState:V,...p,children:[b.jsx(D,{...N,...!lr(D)&&{as:F,ownerState:{...V,...N.ownerState}},...B,children:A}),A.pop()]})})):b.jsx(or.Provider,{value:E,children:b.jsxs(D,{...N,as:F,ref:x,...!lr(D)&&{ownerState:{...V,...N.ownerState}},...B,children:[A,v&&b.jsx(O,{...I,children:v})]})})});process.env.NODE_ENV!=="production"&&(Ob.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Nn(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(Kr(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:pa,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 hA=ft(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 mA(e){return Te("MuiChip",e)}const De=Ce("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"]),gA=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,mA,t)},yA=ye("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[{[`& .${De.avatar}`]:t.avatar},{[`& .${De.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${De.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${De.icon}`]:t.icon},{[`& .${De.icon}`]:t[`icon${ce(l)}`]},{[`& .${De.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${De.deleteIcon}`]:t.deleteIcon},{[`& .${De.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${De.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)}`]]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${De.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${De.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${De.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${De.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${De.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${De.icon}`]:{marginLeft:5,marginRight:-6},[`& .${De.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,[`& .${De.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${De.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(zt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${De.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:{[`& .${De.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${De.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${De.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(zt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${De.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}`)},[`&.${De.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(zt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${De.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]}`,[`&.${De.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${De.avatar}`]:{marginLeft:4},[`& .${De.avatarSmall}`]:{marginLeft:2},[`& .${De.icon}`]:{marginLeft:4},[`& .${De.iconSmall}`]:{marginLeft:2},[`& .${De.deleteIcon}`]:{marginRight:5},[`& .${De.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(zt()).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)}`,[`&.${De.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),bA=ye("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 ih(e){return e.key==="Backspace"||e.key==="Delete"}const kb=P.forwardRef(function(t,n){const o=Le({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:C="filled",tabIndex:S,skipFocusWhenDisabled:w=!1,slots:T={},slotProps:E={},...M}=o,A=P.useRef(null),k=je(A,n),V=U=>{U.stopPropagation(),m&&m(U)},L=U=>{U.currentTarget===U.target&&ih(U)&&U.preventDefault(),g&&g(U)},x=U=>{U.currentTarget===U.target&&m&&ih(U)&&m(U),y&&y(U)},j=a!==!1&&h?!0:a,O=j||m?pr:c||"div",I={...o,component:O,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:j,variant:C},D=gA(I),N=O===pr?{component:c||"div",focusVisibleClassName:D.focusVisible,...m&&{disableRipple:!0}}:{};let B=null;m&&(B=u&&P.isValidElement(u)?P.cloneElement(u,{className:ge(u.props.className,D.deleteIcon),onClick:V}):b.jsx(hA,{className:D.deleteIcon,onClick:V}));let F=null;r&&P.isValidElement(r)&&(F=P.cloneElement(r,{className:ge(D.avatar,r.props.className)}));let $=null;f&&P.isValidElement(f)&&($=P.cloneElement(f,{className:ge(D.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&F&&$&&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},[W,K]=nt("root",{elementType:yA,externalForwardedProps:{...R,...M},ownerState:I,shouldForwardComponentProp:!0,ref:k,className:ge(D.root,i),additionalProps:{disabled:j&&d?!0:void 0,tabIndex:w&&d?-1:S,...N},getSlotProps:U=>({...U,onClick:Q=>{var J;(J=U.onClick)==null||J.call(U,Q),h==null||h(Q)},onKeyDown:Q=>{var J;(J=U.onKeyDown)==null||J.call(U,Q),L(Q)},onKeyUp:Q=>{var J;(J=U.onKeyUp)==null||J.call(U,Q),x(Q)}})}),[G,Z]=nt("label",{elementType:bA,externalForwardedProps:R,ownerState:I,className:D.label});return b.jsxs(W,{as:O,...K,children:[F||$,b.jsx(G,{...Z,children:p}),B]})});process.env.NODE_ENV!=="production"&&(kb.propTypes={avatar:s.element,children:X1,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 bs=36,ha=2,ma=320,vA=280,Yu=336,xA=["items","changeImportance"],SA=["getValue"],wA=ie.styled(Uu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Db(e){const{items:t,changeImportance:n="accept"}=e,o=Ee(e,xA),{setValue:r}=cD(),i=G2();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Ee(l,SA);const d=c({isValid:i});return z({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(wA,z({dense:!0,sx:[{maxHeight:Yu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Ob,{children:b.jsx(kb,z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Db.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 CA=["ownerState"];function TA(e){return e.view!==null}const PA=(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"]},vb,e)},EA=e=>{const{ownerState:t,defaultActionBarActions:n}=Et(),{view:o}=Sr(),r=ln(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>z({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=PA(c,u),f=(a==null?void 0:a.actionBar)??Mb,p=_e({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Ee(p,CA),m=b.jsx(f,z({},h)),g=a==null?void 0:a.toolbar,y=_e({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=TA(y)&&g?b.jsx(g,z({},y)):null,C=i,S=a==null?void 0:a.tabs,w=o&&S?b.jsx(S,z({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??Db,E=_e({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,A=o&&T?b.jsx(T,z({},E)):null;return{toolbar:v,content:C,tabs:w,actionBar:m,shortcuts:A,ownerState:z({},u,{hasShortcuts:M})}},MA=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},vb,e)},OA=ie.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${uo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${uo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${uo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${uo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${uo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${uo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${uo.shortcuts}`]:{gridColumn:4}}}]}),kA=ie.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),ga=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=EA(o),{orientation:d,variant:f}=Sr(),{sx:p,className:h,classes:m}=o,g=MA(m,u);return b.jsxs(OA,{ref:n,sx:p,className:ge(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(kA,{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"&&(ga.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(ga.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 Rb(e){const{steps:t}=e;return vI({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 DA=["props","steps"],RA=["ownerState"],IA=e=>{var E;let{props:t,steps:n}=e,o=Ee(e,DA);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Rb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=bb(z({},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=_e({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},m&&{id:h}),ownerState:p}),v=Ee(y,RA),C=r.layout??ga;let S=h;m&&(a?S=`${h}-label`:S=void 0);const w=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:h}),popper:z({"aria-labelledby":S},i==null?void 0:i.popper)}),T=()=>b.jsxs(jy,z({},d,{children:[b.jsx(g,z({},v,{slots:z({},r,v.slots),slotProps:z({},w,v.slotProps),inputRef:l})),b.jsx(gI,{slots:r,slotProps:w,children:b.jsx(C,z({},w==null?void 0:w.layout,{slots:r,slotProps:w,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},zo=e=>e.saveQuery!=null,Ib=({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 C=`${n.characterQuery.value}${g}`,S=h(C,y);if(!zo(S))return r({sectionIndex:p,value:C,sectionType:y.type}),S}const v=h(g,y);return zo(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),zo(v)?null:v)},u=f=>{const p=(g,y,v)=>{const C=y.filter(S=>S.toLowerCase().startsWith(v));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},h=(g,y,v,C)=>{const S=w=>Iy(l,o,y.type,w);if(y.contentType==="letter")return p(y.format,S(y.format),g);if(v&&C!=null&&Su(l,v).contentType==="letter"){const w=S(v),T=p(v,w,g);return zo(T)?{saveQuery:!1}:z({},T,{sectionValue:C(T.sectionValue,w)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=C=>Np(l,C,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(C,S)=>S.indexOf(C).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=Io(m,e),C=Number(v),S=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(C>S.maximum)return{saveQuery:!1};if(g&&C<S.minimum)return{saveQuery:!0};const w=C*10>S.maximum||v.length===S.maximum.toString().length;return{sectionValue:Ay(l,C,S,e,y),shouldGoToNextSection:w}};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"){Ny(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(zo(y))return y;const v=Np(l,y.sectionValue,"MM",g.format);return z({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(zo(y))return y;const v=aa(l,g.format)[Number(y.sectionValue)-1];return z({},y,{sectionValue:v})}return{saveQuery:!1}},m=>Ap(m,e))};return pe(f=>{const p=n.sections[f.sectionIndex],m=Ap(f.keyPressed,e)?d(z({},f,{keyPressed:wu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},AA=5e3,Ab=e=>{var be;const t=Ke(),n=oo(),o=ln(),{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:C,enableAccessibleFieldDOMStructure:S=!0},forwardedProps:{error:w}}=e,{value:T,handleValueChange:E,timezone:M}=$s({name:"a field component",timezone:C,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),A=P.useRef(T);P.useEffect(()=>{A.current=T},[T]);const{hasValidationError:k}=Wy({props:c,validator:r,timezone:M,value:T,onError:c.onError}),V=P.useMemo(()=>O2(t),[t]),L=P.useMemo(()=>A2(t,V,M),[t,V,M]),x=P.useCallback(se=>l.getSectionsFromValue(se,he=>Fp({adapter:t,localeText:n,localizedDigits:V,format:h,date:he,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o})),[l,h,n,V,o,v,t,m,S]),[j,O]=P.useState(()=>{const se=x(T);jp(se,i);const he={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=P2(se),ue=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return z({},he,{referenceValue:ue})}),[I,D]=Gn({controlled:g,default:null,name:"useField",state:"selectedSections"}),N=se=>{D(se),y==null||y(se)},B=P.useMemo(()=>cc(I,j.sections),[I,j.sections]),F=B==="all"?0:B,$=P.useMemo(()=>j2(j.sections,o&&!S),[j.sections,o,S]),R=P.useMemo(()=>j.sections.every(se=>se.value===""),[j.sections]),W=P.useMemo(()=>{if(F!=null)return!1;const se=j.sections.filter(he=>he.value!=="");return se.length>0&&j.sections.length-se.length>0},[j.sections,F]),K=P.useMemo(()=>w!==void 0?w:k||W,[k,W,w]),G=se=>{const he={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,he)},Z=(se,he)=>{const le=[...j.sections];return le[se]=z({},le[se],{value:he,modified:!0}),le},U=P.useRef(null),Q=Yn(),J=se=>{F!=null&&(U.current={sectionIndex:F,value:se},Q.start(0,()=>{U.current=null}))},ee=()=>{a.areValuesEqual(t,T,a.emptyValue)?O(se=>z({},se,{sections:se.sections.map(he=>z({},he,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(O(se=>z({},se,{characterQuery:null})),G(a.emptyValue))},q=()=>{if(F==null)return;const se=j.sections[F];se.value!==""&&(J(""),l.getDateFromSection(T,se)===null?O(he=>z({},he,{sections:Z(F,""),tempValueStrAndroid:null,characterQuery:null})):(O(he=>z({},he,{characterQuery:null})),G(l.updateDateInValue(T,se,null))))},X=se=>{const he=(ue,de)=>{const Ie=t.parse(ue,h);if(!t.isValid(Ie))return null;const Me=Fp({adapter:t,localeText:n,localizedDigits:V,format:h,date:Ie,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o});return $p(t,Ie,Me,de,!1)},le=l.parseValueStr(se,j.referenceValue,he);G(le)},Y=Yn(),oe=({section:se,newSectionValue:he,shouldGoToNextSection:le})=>{Q.clear(),Y.clear();const ue=l.getDateFromSection(T,se);le&&F<j.sections.length-1&&N(F+1);const de=Z(F,he),Ie=l.getDateSectionsFromValue(de,se),Me=D2(t,Ie,V);if(t.isValid(Me)){const Ze=$p(t,Me,Ie,l.getDateFromSection(j.referenceValue,se),!0);return ue==null&&Y.start(0,()=>{A.current===T&&O(Je=>z({},Je,{sections:l.clearDateSections(j.sections,se),tempValueStrAndroid:null}))}),G(l.updateDateInValue(T,se,Ze))}return Ie.every(Ze=>Ze.value!=="")&&(ue==null||t.isValid(ue))?(J(he),G(l.updateDateInValue(T,se,Me))):(ue!=null&&(J(he),G(l.updateDateInValue(T,se,Me))),O(Ze=>z({},Ze,{sections:de,tempValueStrAndroid:null})))},te=se=>O(he=>z({},he,{tempValueStrAndroid:se})),ae=pe(se=>{O(he=>z({},he,{characterQuery:se}))});if(T!==j.lastExternalValue){const se=U.current!=null&&!t.isValid(l.getDateFromSection(T,j.sections[U.current.sectionIndex]));let he;se?he=Z(U.current.sectionIndex,U.current.value):he=x(T),O(le=>z({},le,{lastExternalValue:T,sections:he,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==j.lastSectionsDependencies.isRtl||h!==j.lastSectionsDependencies.format||t.locale!==j.lastSectionsDependencies.locale){const se=x(T);jp(se,i),O(he=>z({},he,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}j.characterQuery!=null&&!K&&F==null&&ae(null),j.characterQuery!=null&&((be=j.sections[j.characterQuery.sectionIndex])==null?void 0:be.type)!==j.characterQuery.sectionType&&ae(null),P.useEffect(()=>{U.current!=null&&(U.current=null)});const re=Yn();return P.useEffect(()=>(j.characterQuery!=null&&re.start(AA,()=>ae(null)),()=>{}),[j.characterQuery,ae,re]),P.useEffect(()=>{j.tempValueStrAndroid!=null&&F!=null&&q()},[j.sections]),{activeSectionIndex:F,areAllSectionsEmpty:R,error:K,localizedDigits:V,parsedSelectedSections:B,sectionOrder:$,sectionsValueBoundaries:L,state:j,timezone:M,value:T,clearValue:ee,clearActiveSection:q,setCharacterQuery:ae,setSelectedSections:N,setTempAndroidValueStr:te,updateSectionValue:oe,updateValueFromValueStr:X,getSectionsFromValue:x}};function Nb(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Du(),i=_y(),a=je(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?z({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 qu(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Ct(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(It(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 _b(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 pe(C=>{if(!r)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),y("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const S=h.neighbors[u].rightIndex;S!==null&&y(S)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const S=h.neighbors[u].leftIndex;S!==null&&y(S)}break}case C.key==="Delete":{if(C.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),i||c==null)break;u==="all"&&y(c);const S=a.sections[c],w=_A(t,p,S,C.key,d,f,n.getDateFromSection(l,S),{minutesStep:o});v({section:S,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function NA(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function _A(e,t,n,o,r,i,a,l){const c=NA(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=C=>Ay(e,C,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(Io(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=Iy(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 jA(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=_b({manager:t,internalPropsWithDefaults:l,stateResponse:i}),C=Yn(),S=pe(A=>{g||!r.isReady()||(o(!0),c==="all"?C.start(0,()=>{const k=document.getSelection().getRangeAt(0).startOffset;if(k===0){h(u.startIndex);return}let V=0,L=0;for(;L<k&&V<d.sections.length;){const x=d.sections[V];V+=1,L+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(A.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),w=pe(A=>{if(!r.isReady()||c!=="all")return;const V=A.target.textContent??"";r.getRoot().innerHTML=d.sections.map(L=>`${L.startSeparator}${L.value||L.placeholder}${L.endSeparator}`).join(""),qu({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=pe(A=>{if(y||c!=="all"){A.preventDefault();return}const k=A.clipboardData.getData("text");A.preventDefault(),p(null),m(k)}),E=pe(()=>{if(n||g||!r.isReady())return;const A=It(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(A)!=null||h(u.startIndex)}),M=pe(()=>{setTimeout(()=>{if(!r.isReady())return;const A=It(r.getRoot());!r.getRoot().contains(A)&&(o(!1),h(null))})});return{onKeyDown:v,onBlur:M,onFocus:E,onClick:S,onPaste:T,onInput:w,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function LA(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=pe(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function $A(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 VA(e){const t=Ke(),n=oo(),{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:C=!1}}=e,S=c==="all",w=!S&&!v&&!C,T=pe(L=>{if(!r.isReady())return;const x=d.sections[L];r.getSectionContent(L).innerHTML=x.value||x.placeholder,qu({focused:o,domGetters:r,stateResponse:i})}),E=pe(L=>{if(!r.isReady())return;const x=L.target,j=x.textContent??"",O=r.getSectionIndexFromDOMElement(x),I=d.sections[O];if(C){T(O);return}if(j.length===0){if(I.value===""){T(O);return}const D=L.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){T(O);return}T(O),p();return}a({keyPressed:j,sectionIndex:O}),T(O)}),M=pe(L=>{L.preventDefault()}),A=pe(L=>{if(L.preventDefault(),C||v||typeof c!="number")return;const x=d.sections[c],j=L.clipboardData.getData("text"),O=/^[a-zA-Z]+$/.test(j),I=/^[0-9]+$/.test(j),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(j);x.contentType==="letter"&&O||x.contentType==="digit"&&I||x.contentType==="digit-with-letter"&&D?(h(null),g({section:x,newSectionValue:j,shouldGoToNextSection:!0})):!O&&!I&&(h(null),y(j))}),k=pe(L=>{L.preventDefault(),L.dataTransfer.dropEffect="none"}),V=P.useCallback(L=>()=>{v||m(L)},[v,m]);return P.useCallback((L,x)=>{const j=u[L.type]({currentDate:l.getDateFromSection(f,L),contentType:L.contentType,format:L.format});return{onInput:E,onPaste:A,onMouseUp:M,onDragOver:k,onFocus:V(x),"aria-readonly":C,"aria-valuenow":BA(L,t),"aria-valuemin":j.minimum,"aria-valuemax":j.maximum,"aria-valuetext":L.value?FA(L,t):n.empty,"aria-label":n[L.type],"aria-disabled":v,tabIndex:!w||S||x>0?-1:0,contentEditable:!S&&!v&&!C,role:"spinbutton","data-range-position":L.dateName||void 0,spellCheck:w?!1:void 0,autoCapitalize:w?"none":void 0,autoCorrect:w?"off":void 0,children:L.value||L.placeholder,inputMode:L.contentType==="letter"?"text":"numeric"}},[u,S,v,C,w,n,t,E,A,M,k,V,l,f])}function FA(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 BA(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 zA=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=zy(t,r),c=Nb({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:C=!1,readOnly:S=!1,autoFocus:w=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),A=je(u,M),k=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:re=>M.current.getSectionContainer(re),getSectionContent:re=>M.current.getSectionContent(re),getSectionIndexFromDOMElement:re=>M.current.getSectionIndexFromDOMElement(re)}),[M]),V=Ab({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:L,error:x,parsedSelectedSections:j,sectionOrder:O,state:I,value:D,clearValue:N,setSelectedSections:B}=V,F=Ib({stateResponse:V}),$=i(D),[R,W]=P.useState(!1);function K(re=0){if(C||!M.current||ah(M)!=null)return;const be=cc(re,I.sections);W(!0),M.current.getSectionContent(be).focus()}const G=jA({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:F,focused:R,setFocused:W,domGetters:k}),Z=LA({manager:n,stateResponse:V}),U=$A({stateResponse:V,internalPropsWithDefaults:c}),Q=VA({manager:n,stateResponse:V,applyCharacterEditing:F,internalPropsWithDefaults:c,domGetters:k,focused:R}),J=pe(re=>{g==null||g(re),G.onKeyDown(re)}),ee=pe(re=>{d==null||d(re),G.onBlur(re)}),q=pe(re=>{p==null||p(re),G.onFocus(re)}),X=pe(re=>{re.isDefaultPrevented()||(f==null||f(re),G.onClick(re))}),Y=pe(re=>{m==null||m(re),G.onPaste(re)}),oe=pe(re=>{h==null||h(re),G.onInput(re)}),te=pe((re,...be)=>{re.preventDefault(),y==null||y(re,...be),N(),lh(M)?B(O.startIndex):K(0)}),ae=P.useMemo(()=>I.sections.map((re,be)=>{const se=Q(re,be);return{container:U(be),content:Q(re,be),before:{children:re.startSeparator},after:{children:re.endSeparator,"data-range-position":re.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[I.sections,U,Q]);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
|
+
`));w&&!C&&M.current&&M.current.getSectionContent(O.startIndex).focus()},[]),St(()=>{if(!(!R||!M.current)){if(j==="all")M.current.getRoot().focus();else if(typeof j=="number"){const re=M.current.getSectionContent(j);re&&re.focus()}}},[j,R]),St(()=>{qu({focused:R,domGetters:k,stateResponse:V})}),P.useImperativeHandle(E,()=>({getSections:()=>I.sections,getActiveSectionIndex:()=>ah(M),setSelectedSections:re=>{if(C||!M.current)return;const be=cc(re,I.sections);W((be==="all"?0:be)!==null),B(re)},focusField:K,isFieldFocused:()=>lh(M)})),z({},l,G,{onBlur:ee,onClick:X,onFocus:q,onInput:oe,onPaste:Y,onKeyDown:J,onClear:te},Z,{error:x,clearable:!!(v&&!L&&!S&&!C),focused:T??R,sectionListRef:A,enableAccessibleFieldDOMStructure:!0,elements:ae,areAllSectionsEmpty:L,disabled:C,readOnly:S,autoFocus:w,openPickerAriaLabel:$})};function ah(e){var n;const t=It((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function lh(e){var n;const t=It((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Jo=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),WA=(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=Tu(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=Jo(u).length,f=u.length,p=Jo(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(z({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},UA=e=>{const t=ln(),n=Yn(),o=Yn(),{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=Nb({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:y,onBlur:v,onKeyDown:C,onClear:S,clearable:w,inputRef:T,placeholder:E}=p,{readOnly:M=!1,disabled:A=!1,autoFocus:k=!1,focused:V,unstableFieldRef:L}=h,x=P.useRef(null),j=je(T,x),O=Ab({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:I,areAllSectionsEmpty:D,error:N,localizedDigits:B,parsedSelectedSections:F,sectionOrder:$,state:R,value:W,clearValue:K,clearActiveSection:G,setCharacterQuery:Z,setSelectedSections:U,setTempAndroidValueStr:Q,updateSectionValue:J,updateValueFromValueStr:ee,getSectionsFromValue:q}=O,X=Ib({stateResponse:O}),Y=d(W),oe=P.useMemo(()=>WA(R.sections,B,t),[R.sections,B,t]);function te(){const Se=x.current.selectionStart??0;let Pe;Se<=oe[0].startInInput||Se>=oe[oe.length-1].endInInput?Pe=1:Pe=oe.findIndex($e=>$e.startInInput-$e.startSeparator.length>Se);const xe=Pe===-1?oe.length-1:Pe-1;U(xe)}function ae(Se=0){var Pe;It(x.current)!==x.current&&((Pe=x.current)==null||Pe.focus(),U(Se))}const re=pe(Se=>{m==null||m(Se);const Pe=x.current;n.start(0,()=>{!Pe||Pe!==x.current||I==null&&(Pe.value.length&&Number(Pe.selectionEnd)-Number(Pe.selectionStart)===Pe.value.length?U("all"):te())})}),be=pe((Se,...Pe)=>{Se.isDefaultPrevented()||(g==null||g(Se,...Pe),te())}),se=pe(Se=>{if(y==null||y(Se),Se.preventDefault(),M||A)return;const Pe=Se.clipboardData.getData("text");if(typeof F=="number"){const xe=R.sections[F],$e=/^[a-zA-Z]+$/.test(Pe),Ve=/^[0-9]+$/.test(Pe),ot=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Pe);if(xe.contentType==="letter"&&$e||xe.contentType==="digit"&&Ve||xe.contentType==="digit-with-letter"&&ot){Z(null),J({section:xe,newSectionValue:Pe,shouldGoToNextSection:!0});return}if($e||Ve)return}Z(null),ee(Pe)}),he=pe(Se=>{v==null||v(Se),U(null)}),le=pe(Se=>{if(M)return;const Pe=Se.target.value;if(Pe===""){K();return}const xe=Se.nativeEvent.data,$e=xe&&xe.length>1,Ve=$e?xe:Pe,ot=Jo(Ve);if(F==="all"&&U(I),I==null||$e){ee($e?xe:ot);return}let Xe;if(F==="all"&&ot.length===1)Xe=ot;else{const _t=Jo(u.getV6InputValueFromSections(oe,B,t));let Oe=-1,pt=-1;for(let me=0;me<_t.length;me+=1)Oe===-1&&_t[me]!==ot[me]&&(Oe=me),pt===-1&&_t[_t.length-me-1]!==ot[ot.length-me-1]&&(pt=me);const wt=oe[I];if(Oe<wt.start||_t.length-pt-1>wt.end)return;const jn=ot.length-_t.length+wt.end-Jo(wt.endSeparator||"").length;Xe=ot.slice(wt.start+Jo(wt.startSeparator||"").length,jn)}if(Xe.length===0){_2()&&Q(Ve),G();return}X({keyPressed:Xe,sectionIndex:I})}),ue=pe((Se,...Pe)=>{Se.preventDefault(),S==null||S(Se,...Pe),K(),ch(x)?U($.startIndex):ae(0)}),de=_b({manager:i,internalPropsWithDefaults:h,stateResponse:O}),Ie=pe(Se=>{C==null||C(Se),de(Se)}),Me=P.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections(q(c.emptyValue),B,t),[E,u,q,c.emptyValue,B,t]),Ze=P.useMemo(()=>R.tempValueStrAndroid??u.getV6InputValueFromSections(R.sections,B,t),[R.sections,u,R.tempValueStrAndroid,B,t]);P.useEffect(()=>{x.current&&x.current===It(x.current)&&U("all")},[]),St(()=>{function Se(){if(!x.current)return;if(F==null){x.current.scrollLeft&&(x.current.scrollLeft=0);return}if(x.current!==It(x.current))return;const Pe=x.current.scrollTop;if(F==="all")x.current.select();else{const xe=oe[F],$e=xe.type==="empty"?xe.startInInput-xe.startSeparator.length:xe.startInInput,Ve=xe.type==="empty"?xe.endInInput+xe.endSeparator.length:xe.endInInput;($e!==x.current.selectionStart||Ve!==x.current.selectionEnd)&&x.current===It(x.current)&&x.current.setSelectionRange($e,Ve),o.start(0,()=>{x.current&&x.current===It(x.current)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==$e||x.current.selectionEnd!==Ve)&&Se()})}x.current.scrollTop=Pe}Se()});const Je=P.useMemo(()=>I==null||R.sections[I].contentType==="letter"?"text":"numeric",[I,R.sections]),ut=!(x.current&&x.current===It(x.current))&&D;return P.useImperativeHandle(L,()=>({getSections:()=>R.sections,getActiveSectionIndex:()=>{const Se=x.current.selectionStart??0,Pe=x.current.selectionEnd??0;if(Se===0&&Pe===0)return null;const xe=Se<=oe[0].startInInput?1:oe.findIndex($e=>$e.startInInput-$e.startSeparator.length>Se);return xe===-1?oe.length-1:xe-1},setSelectedSections:Se=>U(Se),focusField:ae,isFieldFocused:()=>ch(x)})),z({},p,{error:N,"aria-invalid":N,clearable:!!(w&&!D&&!M&&!A),onBlur:he,onClick:be,onFocus:re,onPaste:se,onKeyDown:Ie,onClear:ue,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:Me,inputMode:Je,autoComplete:"off",value:ut?"":Ze,onChange:le,focused:V,disabled:A,readOnly:M,autoFocus:k,openPickerAriaLabel:Y})};function ch(e){return e.current===It(e.current)}const HA=e=>{const t=_y();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?zA:UA)(e)},YA=e=>{const t=gD(e);return HA({manager:t,props:e})};function ei(e){return parseInt(e,10)||0}const qA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function GA(e){for(const t in e)return!1;return!0}function uh(e){return GA(e)||e.outerHeightStyle===0&&!e.overflowing}const jb=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=je(n,d),p=P.useRef(null),h=P.useRef(null),m=P.useCallback(()=>{const S=d.current,w=h.current;if(!S||!w)return;const E=kn(S).getComputedStyle(S);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=E.width,w.value=S.value||t.placeholder||"x",w.value.slice(-1)===`
|
|
229
|
+
`&&(w.value+=" ");const M=E.boxSizing,A=ei(E.paddingBottom)+ei(E.paddingTop),k=ei(E.borderBottomWidth)+ei(E.borderTopWidth),V=w.scrollHeight;w.value="x";const L=w.scrollHeight;let x=V;i&&(x=Math.max(Number(i)*L,x)),r&&(x=Math.min(Number(r)*L,x)),x=Math.max(x,L);const j=x+(M==="border-box"?A+k:0),O=Math.abs(x-V)<=1;return{outerHeightStyle:j,overflowing:O}},[r,i,t.placeholder]),g=pe(()=>{const S=d.current,w=m();if(!S||!w||uh(w))return!1;const T=w.outerHeightStyle;return p.current!=null&&p.current!==T}),y=P.useCallback(()=>{const S=d.current,w=m();if(!S||!w||uh(w))return;const T=w.outerHeightStyle;p.current!==T&&(p.current=T,S.style.height=`${T}px`),S.style.overflow=w.overflowing?"hidden":""},[m]),v=P.useRef(-1);St(()=>{const S=hm(y),w=d==null?void 0:d.current;if(!w)return;const T=kn(w);T.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{g()&&(E.unobserve(w),cancelAnimationFrame(v.current),y(),v.current=requestAnimationFrame(()=>{E.observe(w)}))}),E.observe(w)),()=>{S.clear(),cancelAnimationFrame(v.current),T.removeEventListener("resize",S),E&&E.disconnect()}},[m,y,g]),St(()=>{y()});const C=S=>{u||y();const w=S.target,T=w.value.length,E=w.value.endsWith(`
|
|
230
|
+
`),M=w.selectionStart===T;E&&M&&w.setSelectionRange(T,T),o&&o(S)};return b.jsxs(P.Fragment,{children:[b.jsx("textarea",{value:l,onChange:C,ref:f,rows:i,style:a,...c}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...qA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(jb.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 wr({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 Vs=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Vs.displayName="FormControlContext");function _n(){return P.useContext(Vs)}function dh(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function $i(e,t=!1){return e&&(dh(e.value)&&e.value!==""||t&&dh(e.defaultValue)&&e.defaultValue!=="")}function KA(e){return e.startAdornment}function ZA(e){return Te("MuiInputBase",e)}const hr=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var fh;const ya=(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]},ba=(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]},XA=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,ZA,t)},va=ye("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ya})(qe(({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",[`&.${hr.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%"}}]}))),xa=ye("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ba})(qe(({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] + .${hr.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},[`&.${hr.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"}}]}})),ph=Y1({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Sa=P.forwardRef(function(t,n){const o=Le({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:C="input",inputProps:S={},inputRef:w,margin:T,maxRows:E,minRows:M,multiline:A=!1,name:k,onBlur:V,onChange:L,onClick:x,onFocus:j,onKeyDown:O,onKeyUp:I,placeholder:D,readOnly:N,renderSuffix:B,rows:F,size:$,slotProps:R={},slots:W={},startAdornment:K,type:G="text",value:Z,...U}=o,Q=S.value!=null?S.value:Z,{current:J}=P.useRef(Q!=null),ee=P.useRef(),q=P.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.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
|
+
`))},[]),X=je(ee,w,S.ref,q),[Y,oe]=P.useState(!1),te=_n();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(te)return te.registerEffect()},[te]);const ae=wr({props:o,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=te?te.focused:Y,P.useEffect(()=>{!te&&p&&Y&&(oe(!1),V&&V())},[te,p,Y,V]);const re=te&&te.onFilled,be=te&&te.onEmpty,se=P.useCallback(xe=>{$i(xe)?re&&re():be&&be()},[re,be]);St(()=>{J&&se({value:Q})},[Q,se,J]);const he=xe=>{j&&j(xe),S.onFocus&&S.onFocus(xe),te&&te.onFocus?te.onFocus(xe):oe(!0)},le=xe=>{V&&V(xe),S.onBlur&&S.onBlur(xe),te&&te.onBlur?te.onBlur(xe):oe(!1)},ue=(xe,...$e)=>{if(!J){const Ve=xe.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.":bn(1));se({value:Ve.value})}S.onChange&&S.onChange(xe,...$e),L&&L(xe,...$e)};P.useEffect(()=>{se(ee.current)},[]);const de=xe=>{ee.current&&xe.currentTarget===xe.target&&ee.current.focus(),x&&x(xe)};let Ie=C,Me=S;A&&Ie==="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."),Me={type:void 0,minRows:F,maxRows:F,...Me}):Me={type:void 0,maxRows:E,minRows:M,...Me},Ie=jb);const Ze=xe=>{se(xe.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};P.useEffect(()=>{te&&te.setAdornedStart(!!K)},[te,K]);const Je={...o,color:ae.color||"primary",disabled:ae.disabled,endAdornment:m,error:ae.error,focused:ae.focused,formControl:te,fullWidth:y,hiddenLabel:ae.hiddenLabel,multiline:A,size:ae.size,startAdornment:K,type:G},ke=XA(Je),ut=W.root||u.Root||va,Se=R.root||d.root||{},Pe=W.input||u.Input||xa;return Me={...Me,...R.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof ph=="function"&&(fh||(fh=b.jsx(ph,{}))),b.jsxs(ut,{...Se,ref:n,onClick:de,...U,...!lr(ut)&&{ownerState:{...Je,...Se.ownerState}},className:ge(ke.root,Se.className,l,N&&"MuiInputBase-readOnly"),children:[K,b.jsx(Vs.Provider,{value:null,children:b.jsx(Pe,{"aria-invalid":ae.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:ae.disabled,id:v,onAnimationStart:Ze,name:k,placeholder:D,readOnly:N,required:ae.required,rows:F,value:Q,onKeyDown:O,onKeyUp:I,type:G,...Me,...!lr(Pe)&&{as:Ie,ownerState:{...Je,...Me.ownerState}},ref:X,className:ge(ke.input,Me.className,N&&"MuiInputBase-readOnly"),onBlur:le,onChange:ue,onFocus:he})}),m,B?B({...ae,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(Sa.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:pa,inputProps:s.object,inputRef:yt,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 QA(e){return Te("MuiInput",e)}const Ar={...hr,...Ce("MuiInput",["root","underline","input"])},JA=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},QA,t);return{...t,...r}},e5=ye(va,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ya(e,t),!n.disableUnderline&&t.underline]}})(qe(({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"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.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(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),t5=ye(xa,{name:"MuiInput",slot:"Input",overridesResolver:ba})({}),wa=P.forwardRef(function(t,n){const o=Le({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=JA(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?Dt(d??a,y):y,C=f.root??i.Root??e5,S=f.input??i.Input??t5;return b.jsx(Sa,{slots:{root:C,input:S},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(wa.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:yt,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});wa.muiName="Input";function n5(e){return Te("MuiFilledInput",e)}const po={...hr,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},o5=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,n5,t);return{...t,...u}},r5=ye(va,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ya(e,t),!n.disableUnderline&&t.underline]}})(qe(({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}},[`&.${po.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${po.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"},[`&.${po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${po.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(.${po.disabled}, .${po.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).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}}]}})),s5=ye(xa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ba})(qe(({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}}]}))),Ca=P.forwardRef(function(t,n){const o=Le({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=o5(o),v={root:{ownerState:g},input:{ownerState:g}},C=f??a?Dt(v,f??a):v,S=p.root??i.Root??r5,w=p.input??i.Input??s5;return b.jsx(Sa,{slots:{root:S,input:w},slotProps:C,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...m,classes:y})});process.env.NODE_ENV!=="production"&&(Ca.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:yt,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});Ca.muiName="Input";var hh;const i5=ye("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:cn})({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%"}),a5=ye("legend",{name:"MuiNotchedOutlined",shouldForwardProp:cn})(qe(({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 Lb(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(i5,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(a5,{ownerState:c,children:l?b.jsx("span",{children:r}):hh||(hh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Lb.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function l5(e){return Te("MuiOutlinedInput",e)}const fn={...hr,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])},c5=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},l5,t);return{...t,...o}},u5=ye(va,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ya})(qe(({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 .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${fn.focused} .${fn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(zt()).map(([n])=>({props:{color:n},style:{[`&.${fn.focused} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${fn.error} .${fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${fn.disabled} .${fn.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"}}]}})),d5=ye(Lb,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(qe(({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}})),f5=ye(xa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ba})(qe(({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}}]}))),Ta=P.forwardRef(function(t,n){const o=Le({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=c5(o),g=_n(),y=wr({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},C=d.root??r.Root??u5,S=d.input??r.Input??f5,[w,T]=nt("notchedOutline",{elementType:d5,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(Sa,{slots:{root:C,input:S},slotProps:f,renderSuffix:E=>b.jsx(w,{...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"&&(Ta.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:yt,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});Ta.muiName="Input";function p5(e){return Te("MuiFormLabel",e)}const ts=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),h5=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,p5,t)},m5=ye("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(qe(({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(zt()).map(([t])=>({props:{color:t},style:{[`&.${ts.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ts.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),g5=ye("span",{name:"MuiFormLabel",slot:"Asterisk"})(qe(({theme:e})=>({[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}))),$b=P.forwardRef(function(t,n){const o=Le({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=_n(),g=wr({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=h5(y);return b.jsxs(m5,{as:l,ownerState:y,className:ge(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(g5,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&($b.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 y5(e){return Te("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const b5=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,y5,t);return{...t,...u}},v5=ye($b,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ts.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]]}})(qe(({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)"}}]}))),Gu=P.forwardRef(function(t,n){const o=Le({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=_n();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=wr({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=b5(h);return b.jsx(v5,{"data-shrink":f,ref:n,className:ge(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(Gu.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 x5(e){return Te("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const S5=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,x5,t)},w5=ye("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=Le({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,C={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},S=S5(C),[w,T]=P.useState(()=>{let D=!1;return r&&P.Children.forEach(r,N=>{if(!Kr(N,["Input","Select"]))return;const B=Kr(N,["Select"])?N.props.input:N;B&&KA(B.props)&&(D=!0)}),D}),[E,M]=P.useState(()=>{let D=!1;return r&&P.Children.forEach(r,N=>{Kr(N,["Input","Select"])&&($i(N.props,!0)||$i(N.props.inputProps,!0))&&(D=!0)}),D}),[A,k]=P.useState(!1);c&&A&&k(!1);const V=d!==void 0&&!c?d:A;let L;const x=P.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(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 j=P.useCallback(()=>{M(!0)},[]),O=P.useCallback(()=>{M(!1)},[]),I=P.useMemo(()=>({adornedStart:w,setAdornedStart:T,color:a,disabled:c,error:u,filled:E,focused:V,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:O,onFilled:j,registerEffect:L,required:m,variant:y}),[w,a,c,u,E,V,f,p,L,O,j,m,g,y]);return b.jsx(Vs.Provider,{value:I,children:b.jsx(w5,{as:l,ownerState:C,className:ge(S.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 C5(e){return Te("MuiFormHelperText",e)}const mh=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gh;const T5=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,C5,t)},P5=ye("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]}})(qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mh.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}}]}))),Zu=P.forwardRef(function(t,n){const o=Le({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=_n(),y=wr({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 C=T5(v);return b.jsx(P5,{as:a,className:ge(C.root,i),ref:n,...m,ownerState:v,children:r===" "?gh||(gh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});process.env.NODE_ENV!=="production"&&(Zu.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 Vb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function hl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function yh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fb(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 Nr(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")||!Fb(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const Bb=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});St(()=>{r&&h.current.focus()},[r]),P.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(S,{direction:w})=>{const T=!h.current.style.width;if(S.clientHeight<h.current.clientHeight&&T){const E=`${Vb(kn(S))}px`;h.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const g=S=>{const w=h.current,T=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const M=Hr(Ct(w));if(T==="ArrowDown")S.preventDefault(),Nr(w,M,u,c,hl);else if(T==="ArrowUp")S.preventDefault(),Nr(w,M,u,c,yh);else if(T==="Home")S.preventDefault(),Nr(w,null,u,c,hl);else if(T==="End")S.preventDefault(),Nr(w,null,u,c,yh);else if(T.length===1){const A=m.current,k=T.toLowerCase(),V=performance.now();A.keys.length>0&&(V-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&k!==A.keys[0]&&(A.repeating=!1)),A.lastTime=V,A.keys.push(k);const L=M&&!A.repeating&&Fb(M,A);A.previousKeyMatched&&(L||Nr(w,M,!1,c,hl,A))?S.preventDefault():A.previousKeyMatched=!1}d&&d(S)},y=je(h,n);let v=-1;P.Children.forEach(a,(S,w)=>{if(!P.isValidElement(S)){v===w&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Ro.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
233
|
+
`)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||v===-1)&&(v=w),v===w&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const C=P.Children.map(a,(S,w)=>{if(w===v){const T={};return i&&(T.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(S,T)}return S});return b.jsx(Uu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:C})});process.env.NODE_ENV!=="production"&&(Bb.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 E5(e){const t=Ct(e);return t.body===e?kn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ns(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bh(e){return parseFloat(kn(e).getComputedStyle(e).paddingRight)||0}function M5(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 vh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!M5(a);l&&c&&ns(a,r)})}function ml(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function O5(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(E5(o)){const a=Vb(kn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${bh(o)+a}px`;const l=Ct(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${bh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Ct(o).body;else{const a=o.parentElement,l=kn(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 k5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class D5{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&&ns(t.modalRef,!1);const r=k5(n);vh(n,t.mount,t.modalRef,r,!0);const i=ml(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=ml(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=O5(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=ml(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&&ns(t.modalRef,n),vh(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&&ns(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function R5(e){return Te("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const I5=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},R5,t)},A5=ye("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"}}]}),Xu=P.forwardRef(function(t,n){const o=Le({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=I5(y),C={transition:h,root:u.Root,...p},S={...d,...f},w={component:a,slots:C,slotProps:S},[T,E]=nt("root",{elementType:A5,externalForwardedProps:w,className:ge(v.root,i),ownerState:y}),[M,A]=nt("transition",{elementType:Xn,externalForwardedProps:w,ownerState:y});return b.jsx(M,{in:c,timeout:m,...g,...A,children:b.jsx(T,{"aria-hidden":!0,...E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Xu.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 N5(e){return typeof e=="function"?e():e}function _5(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},ti=new D5;function j5(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=je(h,d),[g,y]=P.useState(!u),v=_5(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const S=()=>Ct(p.current),w=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{ti.mount(w(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=pe(()=>{const I=N5(t)||S().body;ti.add(w(),I),h.current&&T()}),M=()=>ti.isTopModal(w()),A=pe(I=>{p.current=I,I&&(u&&M()?T():h.current&&ns(h.current,C))}),k=P.useCallback(()=>{ti.remove(w(),C)},[C]);P.useEffect(()=>()=>{k()},[k]),P.useEffect(()=>{u?E():(!v||!r)&&k()},[u,k,v,r,E]);const V=I=>D=>{var N;(N=I.onKeyDown)==null||N.call(I,D),!(D.key!=="Escape"||D.which===229||!M())&&(n||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},L=I=>D=>{var N;(N=I.onClick)==null||N.call(I,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(I={})=>{const D=Yy(e);delete D.onTransitionEnter,delete D.onTransitionExited;const N={...D,...I};return{role:"presentation",...N,onKeyDown:V(N),ref:m}},getBackdropProps:(I={})=>{const D=I;return{"aria-hidden":!0,...D,onClick:L(D),open:u}},getTransitionProps:()=>{const I=()=>{y(!1),i&&i()},D=()=>{y(!0),a&&a(),r&&k()};return{onEnter:Sd(I,(l==null?void 0:l.props.onEnter)??xh),onExited:Sd(D,(l==null?void 0:l.props.onExited)??xh)}},rootRef:m,portalRef:A,isTopModal:M,exited:g,hasTransition:v}}function L5(e){return Te("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const $5=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},L5,o)},V5=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(qe(({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"}}]}))),F5=ye(Xu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Qu=P.forwardRef(function(t,n){const o=Le({name:"MuiModal",props:t}),{BackdropComponent:r=F5,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:C=!1,disableScrollLock:S=!1,hideBackdrop:w=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:A,open:k,slotProps:V={},slots:L={},theme:x,...j}=o,O={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:C,disableScrollLock:S,hideBackdrop:w,keepMounted:T},{getRootProps:I,getBackdropProps:D,getTransitionProps:N,portalRef:B,isTopModal:F,exited:$,hasTransition:R}=j5({...O,rootRef:n}),W={...O,exited:$},K=$5(W),G={};if(u.props.tabIndex===void 0&&(G.tabIndex="-1"),R){const{onEnter:q,onExited:X}=N();G.onEnter=q,G.onExited=X}const Z={slots:{root:p.Root,backdrop:p.Backdrop,...L},slotProps:{...h,...V}},[U,Q]=nt("root",{ref:n,elementType:V5,externalForwardedProps:{...Z,...j,component:f},getSlotProps:I,ownerState:W,className:ge(l,K==null?void 0:K.root,!W.open&&W.exited&&(K==null?void 0:K.hidden))}),[J,ee]=nt("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:q=>D({...q,onClick:X=>{q!=null&&q.onClick&&q.onClick(X)}}),className:ge(i==null?void 0:i.className,K==null?void 0:K.backdrop),ownerState:W});return!T&&!k&&(!R||$)?null:b.jsx(gs,{ref:B,container:d,disablePortal:v,children:b.jsxs(U,{...Q,children:[!w&&r?b.jsx(J,{...ee}):null,b.jsx(ys,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:F,open:k,children:P.cloneElement(u,G)})]})})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Is.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([In,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 B5(e){return Te("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function Sh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function wh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ch(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Yr(e){return typeof e=="function"?e():e}const z5=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},B5,t)},W5=ye(Qu,{name:"MuiPopover",slot:"Root"})({}),zb=ye(_s,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Wb=P.forwardRef(function(t,n){const o=Le({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:C={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:w="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,A=P.useRef(),k={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:C,TransitionComponent:S,transitionDuration:w,TransitionProps:T},V=z5(k),L=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 q=Yr(i),X=q&&q.nodeType===1?q:Ct(A.current).body,Y=X.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const oe=X.getBoundingClientRect();process.env.NODE_ENV!=="test"&&oe.top===0&&oe.left===0&&oe.right===0&&oe.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:Y.top+Sh(Y,a.vertical),left:Y.left+wh(Y,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),x=P.useCallback(q=>({vertical:Sh(q,C.vertical),horizontal:wh(q,C.horizontal)}),[C.horizontal,C.vertical]),j=P.useCallback(q=>{const X={width:q.offsetWidth,height:q.offsetHeight},Y=x(X);if(c==="none")return{top:null,left:null,transformOrigin:Ch(Y)};const oe=L();let te=oe.top-Y.vertical,ae=oe.left-Y.horizontal;const re=te+X.height,be=ae+X.width,se=kn(Yr(i)),he=se.innerHeight-h,le=se.innerWidth-h;if(h!==null&&te<h){const ue=te-h;te-=ue,Y.vertical+=ue}else if(h!==null&&re>he){const ue=re-he;te-=ue,Y.vertical+=ue}if(process.env.NODE_ENV!=="production"&&X.height>he&&X.height&&he&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${X.height-he}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
235
|
+
`)),h!==null&&ae<h){const ue=ae-h;ae-=ue,Y.horizontal+=ue}else if(be>le){const ue=be-le;ae-=ue,Y.horizontal+=ue}return{top:`${Math.round(te)}px`,left:`${Math.round(ae)}px`,transformOrigin:Ch(Y)}},[i,c,L,x,h]),[O,I]=P.useState(m),D=P.useCallback(()=>{const q=A.current;if(!q)return;const X=j(q);X.top!==null&&q.style.setProperty("top",X.top),X.left!==null&&(q.style.left=X.left),q.style.transformOrigin=X.transformOrigin,I(!0)},[j]);P.useEffect(()=>(E&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,E,D]);const N=()=>{D()},B=()=>{I(!1)};P.useEffect(()=>{m&&D()}),P.useImperativeHandle(r,()=>m?{updatePosition:()=>{D()}}:null,[m,D]),P.useEffect(()=>{if(!m)return;const q=hm(()=>{D()}),X=kn(Yr(i));return X.addEventListener("resize",q),()=>{q.clear(),X.removeEventListener("resize",q)}},[i,m,D]);let F=w;const $={slots:{transition:S,...y},slotProps:{transition:T,paper:g,...v}},[R,W]=nt("transition",{elementType:ps,externalForwardedProps:$,ownerState:k,getSlotProps:q=>({...q,onEntering:(X,Y)=>{var oe;(oe=q.onEntering)==null||oe.call(q,X,Y),N()},onExited:X=>{var Y;(Y=q.onExited)==null||Y.call(q,X),B()}}),additionalProps:{appear:!0,in:m}});w==="auto"&&!R.muiSupportAuto&&(F=void 0);const K=f||(i?Ct(Yr(i)).body:void 0),[G,{slots:Z,slotProps:U,...Q}]=nt("root",{ref:n,elementType:W5,externalForwardedProps:{...$,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:J1(typeof v.backdrop=="function"?v.backdrop(k):v.backdrop,{invisible:!0})},container:K,open:m},ownerState:k,className:ge(V.root,d)}),[J,ee]=nt("paper",{ref:A,className:V.paper,elementType:zb,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:O?void 0:{opacity:0}},ownerState:k});return b.jsx(G,{...Q,...!lr(G)&&{slots:Z,slotProps:U,disableScrollLock:E},children:b.jsx(R,{...W,timeout:F,children:b.jsx(J,{...ee,children:u})})})});process.env.NODE_ENV!=="production"&&(Wb.propTypes={action:yt,anchorEl:Nn(s.oneOfType([In,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Yr(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([In,s.func]),disableScrollLock:s.bool,elevation:
|
|
238
|
-
`)),
|
|
239
|
-
`));let Ae;if(C){if(!Array.isArray(
|
|
240
|
-
`))}},[ut,he,C,x,k]),ke&&(C?Je.length===0?Me=null:Me=Je.reduce((me,Ae,bt)=>(me.push(Ae),bt<Je.length-1&&me.push(", "),me),[]):Me=Ze);let Pe=q;!a&&ee&&Q&&(Pe=te.clientWidth);let xe;typeof D<"u"?xe=D:xe=f?null:0;const $e=I.id||(x?`mui-component-select-${x}`:void 0),Ve={...t,variant:B,value:k,open:ae,error:h},ot=Q5(Ve),Xe={...v.PaperProps,...typeof((pt=v.slotProps)==null?void 0:pt.paper)=="function"?v.slotProps.paper(Ve):(wt=v.slotProps)==null?void 0:wt.paper},_t={...v.MenuListProps,...typeof((jt=v.slotProps)==null?void 0:jt.list)=="function"?v.slotProps.list(Ve):(jn=v.slotProps)==null?void 0:jn.list},Oe=eo();return b.jsxs(P.Fragment,{children:[b.jsx(G5,{as:"div",ref:oe,tabIndex:xe,role:"combobox","aria-controls":ae?Oe:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,$e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":R?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:de,onMouseDown:f||w?null:be,onBlur:Ie,onFocus:M,...I,ownerState:Ve,className:ge(I.className,ot.select,c),id:$e,children:X5(Me)?Sh||(Sh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),b.jsx(Z5,{"aria-invalid":h,value:Array.isArray(k)?k.join(","):k,name:x,ref:Z,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:ot.nativeInput,autoFocus:i,required:R,...$,ownerState:Ve}),b.jsx(K5,{as:m,className:ot.icon,ownerState:Ve}),b.jsx(zb,{id:`menu-${x||""}`,anchorEl:te,open:ae,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Oe,..._t},paper:{...Xe,style:{minWidth:Pe,...Xe!=null?Xe.style:null}}},children:Se})]})});process.env.NODE_ENV!=="production"&&(qb.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:yt,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 J5=ft(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),eN=e=>{const{classes:t}=e,o=we({root:["root"]},Yb,t);return{...t,...o}},Ju={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>cn(e)&&e!=="variant"},tN=ye(wa,Ju)(""),nN=ye(Ta,Ju)(""),oN=ye(Ca,Ju)(""),ed=P.forwardRef(function(t,n){const o=Le({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=J5,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:C=!1,onClose:x,onOpen:S,open:T,renderValue:E,SelectDisplayProps:M,variant:A="outlined",...O}=o,V=C?Hb:qb,j=_n(),w=Sr({props:o,muiFormControl:j,states:["variant","error"]}),N=w.variant||A,R={...o,variant:N,classes:a},I=eN(R),{root:D,..._}=I,F=p||{standard:b.jsx(tN,{ownerState:R}),outlined:b.jsx(nN,{label:m,ownerState:R}),filled:b.jsx(oN,{ownerState:R})}[N],B=je(n,As(F));return b.jsx(P.Fragment,{children:P.cloneElement(F,{inputComponent:V,inputProps:{children:i,error:w.error,IconComponent:d,variant:N,type:void 0,multiple:v,...C?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:x,onOpen:S,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?Dt(_,h.classes):_,...p?p.props.inputProps:{}},...(v&&C||u)&&N==="outlined"?{notched:!0}:{},ref:B,className:ge(F.props.className,l,I.root),...!p&&{variant:N},...O})})});process.env.NODE_ENV!=="production"&&(ed.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"])});ed.muiName="Select";function rN(e){return Te("MuiTextField",e)}Ce("MuiTextField",["root"]);const sN={standard:wa,filled:Ca,outlined:Ta},iN=e=>{const{classes:t}=e;return we({root:["root"]},rN,t)},aN=ye(Gu,{name:"MuiTextField",slot:"Root"})({}),Gb=P.forwardRef(function(t,n){const o=Le({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:C,inputRef:x,label:S,maxRows:T,minRows:E,multiline:M=!1,name:A,onBlur:O,onChange:V,onFocus:j,placeholder:w,required:N=!1,rows:R,select:I=!1,SelectProps:D,slots:_={},slotProps:F={},type:B,value:$,variant:k="outlined",...W}=o,K={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:N,select:I,variant:k},G=iN(K);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Z=eo(g),U=m&&Z?`${Z}-helper-text`:void 0,Q=S&&Z?`${Z}-label`:void 0,J=sN[k],ee={slots:_,slotProps:{input:C,inputLabel:y,htmlInput:v,formHelperText:p,select:D,...F}},q={},X=ee.slotProps.inputLabel;k==="outlined"&&(X&&typeof X.shrink<"u"&&(q.notched=X.shrink),q.label=S),I&&((!D||!D.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[Y,oe]=nt("root",{elementType:aN,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,...W},ownerState:K,className:ge(G.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:N,color:c,variant:k}}),[te,ae]=nt("input",{elementType:J,externalForwardedProps:ee,additionalProps:q,ownerState:K}),[re,be]=nt("inputLabel",{elementType:qu,externalForwardedProps:ee,ownerState:K}),[se,he]=nt("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:K}),[le,ue]=nt("formHelperText",{elementType:Ku,externalForwardedProps:ee,ownerState:K}),[de,Ie]=nt("select",{elementType:ed,externalForwardedProps:ee,ownerState:K}),Me=b.jsx(te,{"aria-describedby":U,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:A,rows:R,maxRows:T,minRows:E,type:B,value:$,id:Z,inputRef:x,onBlur:O,onChange:V,onFocus:j,placeholder:w,inputProps:he,slots:{input:_.htmlInput?se:void 0},...ae});return b.jsxs(Y,{...oe,children:[S!=null&&S!==""&&b.jsx(re,{htmlFor:Z,id:Q,...be,children:S}),I?b.jsx(de,{"aria-describedby":U,id:Z,labelId:Q,value:$,input:Me,...Ie,children:a}):Me,m&&b.jsx(le,{id:U,...ue,children:m})]})});process.env.NODE_ENV!=="production"&&(Gb.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:yt,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 lN(e){return Te("MuiIconButton",e)}const Ch=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),cN=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,lN,t)},uN=ye(fr,{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)}`]]}})(qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(zt()).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)}}],[`&.${Ch.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ch.loading}`]:{color:"transparent"}}))),dN=ye("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"}}]})),vs=P.forwardRef(function(t,n){const o=Le({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=eo(f),y=h??b.jsx(zu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},C=cN(v);return b.jsxs(uN,{id:p?g:f,className:ge(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:b.jsx(dN,{className:C.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(vs.propTypes={children:Nn(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
|
|
242
|
-
`));return e},MN=["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"],ON=e=>Math.round(e*1e5)/1e5,Ea=ie.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>z({},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:`${ON(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),rd=ie.styled(Zb,{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}}]})),kN=ie.styled(Xb,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),DN=ie.styled(Jb,{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"})),RN=ie.styled(Qb,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),IN=ie.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},wN)),AN=ie.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]}})),NN=(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,CN,e)};function Eh(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 _N(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+=Eh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Eh(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 Fs=P.forwardRef(function(t,n){const o=ie.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:C,name:x,readOnly:S,inputProps:T,inputRef:E,sectionListRef:M,onFocus:A,onBlur:O,classes:V,ownerState:j}=o,w=Ee(o,MN),N=Pa(),R=P.useRef(null),I=P.useRef(null),D=P.useRef([]),_=je(n,R),F=je(T==null?void 0:T.ref,E),B=_n();if(!B)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const $=j??N,k=q=>{var X;(X=B.onFocus)==null||X.call(B,q),A==null||A(q)},W=q=>{k(q)},K=q=>{var X,Y;if(C==null||C(q),q.key==="Enter"&&!q.defaultMuiPrevented){if((X=R.current)!=null&&X.dataset.multiInput)return;const oe=(Y=R.current)==null?void 0:Y.closest("form"),te=oe==null?void 0:oe.querySelector('[type="submit"]');if(!oe||!te)return;q.preventDefault(),oe.requestSubmit(te)}},G=q=>{var X;(X=B.onBlur)==null||X.call(B,q),O==null||O(q)};P.useEffect(()=>{B&&B.setAdornedStart(!!d)},[B,d]),P.useEffect(()=>{B&&(i?B.onEmpty():B.onFilled())},[B,i]);const Z=NN(V,$),U=(p==null?void 0:p.root)||Ea,Q=_e({elementType:U,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:w,additionalProps:{"aria-invalid":B.error,ref:_},className:Z.root,ownerState:$}),J=(p==null?void 0:p.input)||rd,ee=r.some(q=>q.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!ee||!$.isPickerOpen)return;const{activeBarWidth:q,sectionOffsets:X}=_N(r,R);D.current=[X[0],X[1]],I.current&&(I.current.style.width=`${q}px`)},[r,ee,$.isPickerOpen]),b.jsxs(U,z({},Q,{children:[d,b.jsx(nd,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:Z.sectionsContainer,onFocus:k,onBlur:G,onInput:y,onPaste:v,onKeyDown:K,slots:{root:J,section:kN,sectionContent:DN,sectionSeparator:RN},slotProps:{root:z({},h==null?void 0:h.input,{ownerState:$}),sectionContent:{className:or.sectionContent},sectionSeparator:({separatorPosition:q})=>({className:q==="before"?or.sectionBefore:or.sectionAfter})}}),u,f?f(z({},B)):null,b.jsx(IN,z({name:x,className:Z.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:B.required,disabled:B.disabled,onFocus:W},T,{ref:F})),ee&&b.jsx(AN,{className:Z.activeBar,ref:I,ownerState:{sectionOffsets:D.current}})]}))});process.env.NODE_ENV!=="production"&&(Fs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Fs.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:yt,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 jN(e){return Te("MuiPickersOutlinedInput",e)}const sn=z({},or,Ce("MuiPickersOutlinedInput",["root","notchedOutline","input"])),LN=["children","className","label","notched","shrink"],$N=ie.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}}),Mh=ie.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),VN=ie.styled("legend",{slot:"internal",shouldForwardProp:e=>Hn(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 FN(e){const{className:t,label:n,notched:o}=e,r=Ee(e,LN),i=Pa();return b.jsx($N,z({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(VN,{ownerState:i,notched:o,children:n?b.jsx(Mh,{children:n}):b.jsx(Mh,{className:"notranslate",children:""})})}))}const BN=["label","autoFocus","ownerState","classes","notched"],zN=ie.styled(Ea,{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 .${sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${sn.focused} .${sn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${sn.disabled}`]:{[`& .${sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${sn.error} .${sn.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:{[`&.${sn.focused}:not(.${sn.error}) .${sn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),WN=ie.styled(rd,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),UN=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jN,e);return z({},e,n)},Ma=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Ee(o,BN),c=_n(),u=UN(i);return b.jsx(Fs,z({slots:{root:zN,input:WN},renderSuffix:d=>b.jsx(FN,{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"&&(Ma.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Ma.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:yt,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});Ma.muiName="Input";function HN(e){return Te("MuiPickersFilledInput",e)}const ho=z({},or,Ce("MuiPickersFilledInput",["root","underline","input"])),YN=["label","autoFocus","disableUnderline","hiddenLabel","classes"],qN=ie.styled(Ea,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ft.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}},[`&.${ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ho.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"},[`&.${ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ho.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(.${ho.disabled}, .${ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),GN=ie.styled(rd,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ft.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}}]}),KN=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},HN,e);return z({},e,r)},Oa=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Ee(o,YN),u=Pa(),d=z({},u,{inputHasUnderline:!i}),f=KN(l,d);return b.jsx(Fs,z({slots:{root:qN,input:GN},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Oa.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Oa.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:yt,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});Oa.muiName="Input";function ZN(e){return Te("MuiPickersFilledInput",e)}const jr=z({},or,Ce("MuiPickersInput",["root","underline","input"])),XN=["label","autoFocus","disableUnderline","ownerState","classes"],QN=ie.styled(Ea,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Hn(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"},[`&.${jr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jr.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(.${jr.disabled}, .${jr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${jr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),JN=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},ZN,e);return z({},e,r)},ka=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Ee(o,XN),c=Pa(),u=z({},c,{inputHasUnderline:!i}),d=JN(a,u);return b.jsx(Fs,z({slots:{root:QN},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(ka.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(ka.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:yt,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});ka.muiName="Input";const e_=["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"],t_={standard:ka,filled:Oa,outlined:Ma},n_=ie.styled(Gu,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),o_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},SN,e)},Da=P.forwardRef(function(t,n){const o=ie.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:C,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:A,endAdornment:O,startAdornment:V,tabIndex:j,contentEditable:w,focused:N,value:R,onChange:I,fullWidth:D,id:_,name:F,helperText:B,FormHelperTextProps:$,label:k,InputLabelProps:W,"data-active-range-position":K}=o,G=Ee(o,e_),Z=P.useRef(null),U=je(n,Z),Q=eo(_),J=B&&Q?`${Q}-helper-text`:void 0,ee=k&&Q?`${Q}-label`:void 0,q=td({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),X=P.useMemo(()=>z({},q,{isFieldValueEmpty:x,isFieldFocused:N??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:D??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(O??(m==null?void 0:m.endAdornment)),inputHasLabel:!!k,isLabelShrunk:!!(W!=null&&W.shrink)}),[q,x,N,d,o.size,c,D,V,O,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,k,W==null?void 0:W.shrink]),Y=o_(l,X),oe=t_[f],te={};return f==="outlined"?(W&&typeof W.shrink<"u"&&(te.notched=W.shrink),te.label=k):f==="filled"&&(te.hiddenLabel=h),b.jsx(od.Provider,{value:X,children:b.jsxs(n_,z({className:ge(Y.root,a),ref:U,focused:N,disabled:u,variant:f,error:d,color:c,fullWidth:D,required:p,ownerState:X},G,{children:[k!=null&&k!==""&&b.jsx(qu,z({htmlFor:Q,id:ee},W,{children:k})),b.jsx(oe,z({elements:C,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onInput:A,onPaste:M,onFocus:r,onBlur:i,endAdornment:O,startAdornment:V,tabIndex:j,contentEditable:w,value:R,onChange:I,id:Q,fullWidth:D,inputProps:g,inputRef:y,sectionListRef:v,label:k,name:F,role:"group","aria-labelledby":ee,"aria-describedby":J,"aria-live":J?"polite":void 0,"data-active-range-position":K},te,m)),B&&b.jsx(Ku,z({id:J},$,{children:B}))]}))})});process.env.NODE_ENV!=="production"&&(Da.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Da.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:yt,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 r_=["enableAccessibleFieldDOMStructure"],s_=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],i_=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],a_=["ownerState"],l_=["ownerState"],c_=["ownerState"],u_=["ownerState"],d_=["InputProps","inputProps"],ml=()=>{},f_=e=>{var C,x,S,T,E,M,A,O,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Ee(e,r_);if(t){const{InputProps:j,readOnly:w,onClear:N,clearable:R,clearButtonPosition:I,openPickerButtonPosition:D,openPickerAriaLabel:_}=n,F=Ee(n,s_),B=Bn>=6&&((C=F==null?void 0:F.slotProps)!=null&&C.input)?os((x=F==null?void 0:F.slotProps)==null?void 0:x.input,j):ml;return{clearable:R,onClear:N,clearButtonPosition:I,openPickerButtonPosition:D,openPickerAriaLabel:_,textFieldProps:z({},F,Bn>=6&&((S=F==null?void 0:F.slotProps)!=null&&S.input)?{slotProps:z({},F==null?void 0:F.slotProps,{input:$=>z({},Zt(B,$),{readOnly:w})})}:{InputProps:z({},j??{},{readOnly:w})})}}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=Ee(n,i_),y=Bn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?os((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):ml,v=Bn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?os((A=g==null?void 0:g.slotProps)==null?void 0:A.htmlInput,c):ml;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:z({},g,Bn>=6&&((O=g==null?void 0:g.slotProps)!=null&&O.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:z({},g==null?void 0:g.slotProps,{input:j=>z({},Zt(y,j),{readOnly:a}),htmlInput:j=>z({},Zt(v,j),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:z({},l??{},{readOnly:a}),inputProps:z({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},Ra=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ra.displayName="PickerFieldUIContext");function p_(e){var $,k,W,K;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=oo(),r=ku(),i=P.useContext(Ra),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=f_(t),p=td(a),h=pe(G=>{G.preventDefault(),r==null||r.setOpen(Z=>!Z)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?Gb:Da),C=i.slots.inputAdornment??Kb,x=_e({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:z({},p,{position:"start"})}),S=Ee(x,a_),T=_e({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:z({},p,{position:"end"})}),E=Ee(T,l_),M=i.slots.openPickerButton??vs,A=_e({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),O=Ee(A,c_),V=i.slots.openPickerIcon??n,j=_e({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),w=i.slots.clearButton??vs,N=_e({elementType:w,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}),R=Ee(N,u_),I=i.slots.clearIcon??xN,D=_e({elementType:I,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=je(a.ref,r==null?void 0:r.rootRef);const _={},F=Zt((Bn>=6&&(($=a==null?void 0:a.slotProps)==null?void 0:$.input))??a.InputProps,p);r&&(_.ref=r.triggerRef),!(F!=null&&F.startAdornment)&&(g==="start"||y==="start")&&(_.startAdornment=b.jsxs(C,z({},S,{children:[y==="start"&&b.jsx(M,z({},O,{children:b.jsx(V,z({},j))})),g==="start"&&b.jsx(w,z({},R,{children:b.jsx(I,z({},D))}))]}))),!(F!=null&&F.endAdornment)&&(g==="end"||y==="end")&&(_.endAdornment=b.jsxs(C,z({},E,{children:[g==="end"&&b.jsx(w,z({},R,{children:b.jsx(I,z({},D))})),y==="end"&&b.jsx(M,z({},O,{children:b.jsx(V,z({},j))}))]}))),!(_!=null&&_.endAdornment)&&!(_!=null&&_.startAdornment)&&i.slots.inputAdornment&&(_.endAdornment=b.jsx(C,z({},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 B=Bn>=6&&((k=a==null?void 0:a.slotProps)!=null&&k.input)?Zt(os(F,_),p):z({},F,_);return a.inputProps=Bn>=6&&((W=a==null?void 0:a.slotProps)!=null&&W.htmlInput)?Zt(a.slotProps.htmlInput,p):a.inputProps,(K=a==null?void 0:a.slotProps)==null||delete K.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,z({},a,{InputProps:B}))}function os(e,t){return e?t?n=>z({},Zt(t,n),Zt(e,n)):e:t}function h_(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(Ra),i=ku(),a=td(n),{InputProps:l,inputProps:c}=n,u=Ee(n,d_),d=_e({elementType:Da,externalSlotProps:os(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=z({},c,d.inputProps),d.InputProps=z({},l,d.InputProps),d}function m_(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(Ra.Provider,{value:i,children:r})}const g_=["slots","slotProps"],Ia=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Ee(o,g_),l=h_({slotProps:i,ref:n,externalForwardedProps:a}),c=VA(l);return b.jsx(m_,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(p_,{fieldResponse:c,defaultOpenPickerIcon:vN})})});process.env.NODE_ENV!=="production"&&(Ia.displayName="DateField");process.env.NODE_ENV!=="production"&&(Ia.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:yt,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 tv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ke();return P.useCallback(u=>Ds({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])},y_=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return z({},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))),z({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return z({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},b_=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(y_(!!u,h)).current,g=P.useMemo(()=>xn.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:pn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),C=tv({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const x=pe(({target:T,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const M=E==="cell-interaction";let A,O;if(E==="cell-interaction")A=p(T,y.currentMonth),O=T;else if(A=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),O=T,C(O)){const w=h.startOfMonth(T),N=h.endOfMonth(T);O=fs({adapter:h,date:O,minDate:h.isBefore(a,w)?w:a,maxDate:h.isAfter(i,N)?N:i,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:f})}const V=!h.isSameMonth(y.currentMonth,A),j=!h.isSameYear(y.currentMonth,A);V&&(l==null||l(A)),j&&(c==null||c(h.startOfYear(A))),v({type:"setVisibleDate",month:A,direction:h.isAfterDay(A,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&O!=null&&h.isSameDay(O,y.focusedDay)?y.focusedDay:O,skipAnimation:M})}),S=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:x,isDateDisabled:C,onMonthSwitchingAnimationEnd:S}},v_=e=>Te("MuiPickersFadeTransitionGroup",e);Ce("MuiPickersFadeTransitionGroup",["root"]);const x_=["children"],S_=e=>we({root:["root"]},v_,e),w_=ie.styled(Ns,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function nv(e){const t=ie.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Ee(t,x_),c=S_(i),u=ie.useTheme();return o?a:b.jsx(w_,{className:ge(c.root,n),ownerState:l,children:b.jsx(Xn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function C_(e){return Te("MuiPickersDay",e)}const mo=Ce("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function ov(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Ke(),{ownerState:d}=Et();return P.useMemo(()=>z({},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 T_=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],P_=(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"]},C_,e)},rv=({theme:e})=>z({},e.typography.caption,{width:bs,height:bs,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})`:ie.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ie.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${mo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${mo.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}},[`&.${mo.disabled}:not(.${mo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${mo.disabled}&.${mo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${ha}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${mo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),sv=(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]},E_=ie.styled(fr,{name:"MuiPickersDay",slot:"Root",overridesResolver:sv})(rv),M_=ie.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:sv})(({theme:e})=>z({},rv({theme:e}),{opacity:0,pointerEvents:"none"})),Lr=()=>{},sd=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Lr,onBlur:f=Lr,onKeyDown:p=Lr,onMouseDown:h=Lr,onMouseEnter:m=Lr,children:g,day:y,selected:v,disabled:C,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,A=Ee(o,T_),O=ov({day:y,selected:v,disabled:C,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),V=P_(a,O),j=Ke(),w=P.useRef(null),N=je(w,n);St(()=>{r&&!C&&!l&&!S&&w.current.focus()},[r,C,l,S]);const R=D=>{h(D),S&&D.preventDefault()},I=D=>{D.defaultMuiPrevented=!0,C||u(y),S&&D.currentTarget.focus(),c&&c(D)};return S&&!M?b.jsx(M_,{className:ge(V.root,V.hiddenDaySpacingFiller,i),ownerState:O,role:A.role}):b.jsx(E_,z({className:ge(V.root,i),ref:N,centerRipple:!0,disabled:C,tabIndex:v?0:-1,onKeyDown:D=>p(D,y),onFocus:D=>d(D,y),onBlur:D=>f(D,y),onMouseEnter:D=>m(D,y),onClick:I,onMouseDown:R},A,{ownerState:O,children:g??j.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(sd.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(sd.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 iv=P.memo(sd);process.env.NODE_ENV!=="production"&&(iv.displayName="PickersDay");const O_=e=>Te("MuiPickersSlideTransition",e),Ut=Ce("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),k_=["children","className","reduceAnimations","slideDirection","transKey","classes"],D_=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,O_,e)},R_=ie.styled(Ns,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ut["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ut["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ut.slideEnterActive}`]:t.slideEnterActive},{[`.${Ut.slideExit}`]:t.slideExit},{[`.${Ut["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ut["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},[`& .${Ut["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ut["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ut.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ut.slideExit}`]:{transform:"translate(0%)"},[`& .${Ut["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ut["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function I_(e){const t=ie.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Ee(t,k_),{ownerState:u}=Et(),d=z({},u,{slideDirection:i}),f=D_(l,d),p=ie.useTheme();if(r)return b.jsx("div",{className:ge(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx(R_,{className:ge(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(Au,z({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const A_=e=>Te("MuiDayCalendar",e);Ce("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const N_=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],__=["ownerState"],j_=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},A_,e),av=(bs+ha*2)*6,L_=ie.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),$_=ie.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),V_=ie.styled(no,{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})),F_=ie.styled(no,{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})),B_=ie.styled(no,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>z({},e.typography.caption,{width:bs,height:bs,padding:0,margin:`0 ${ha}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),z_=ie.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:av}),W_=ie.styled(I_,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:av}),U_=ie.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),H_=ie.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${ha}px 0`,display:"flex",justifyContent:"center"});function Y_(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Ee(e,N_);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ke(),v=ua(g),C=o!=null&&y.isSameDay(n,o),x=l&&C,S=r.some(R=>y.isSameDay(R,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]),A=ov({day:n,selected:S,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),O=(h==null?void 0:h.day)??iv,V=_e({elementType:O,externalSlotProps:m==null?void 0:m.day,additionalProps:z({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:z({},A,{day:n,isDayDisabled:E,isDaySelected:S})}),j=Ee(V,__),w=P.useMemo(()=>{const R=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]),N=P.useMemo(()=>{const R=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]);return b.jsx(O,z({},j,{day:n,disabled:E,autoFocus:!M&&x,today:T,outsideCurrentMonth:M,isFirstVisibleCell:w,isLastVisibleCell:N,selected:S,tabIndex:C?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function q_(e){const t=ie.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:C,minDate:x,maxDate:S,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:A=X=>n.format(X,"weekdayShort").charAt(0).toUpperCase(),hasFocus:O,onFocusedViewChange:V,gridLabelId:j,displayWeekNumber:w,fixedWeekNumber:N,timezone:R}=t,I=ua(R),D=j_(i),_=ln(),F=tv({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:x,maxDate:S,disablePast:v,disableFuture:C,timezone:R}),B=oo(),$=pe(X=>{p||d(X)}),k=X=>{F(X)||(o(X),V==null||V(!0))},W=pe((X,Y)=>{switch(X.key){case"ArrowUp":k(n.addDays(Y,-7)),X.preventDefault();break;case"ArrowDown":k(n.addDays(Y,7)),X.preventDefault();break;case"ArrowLeft":{const oe=n.addDays(Y,_?1:-1),te=n.addMonths(Y,_?1:-1),ae=fs({adapter:n,date:oe,minDate:_?oe:n.startOfMonth(te),maxDate:_?n.endOfMonth(te):oe,isDateDisabled:F,timezone:R});k(ae||oe),X.preventDefault();break}case"ArrowRight":{const oe=n.addDays(Y,_?-1:1),te=n.addMonths(Y,_?-1:1),ae=fs({adapter:n,date:oe,minDate:_?n.startOfMonth(te):oe,maxDate:_?oe:n.endOfMonth(te),isDateDisabled:F,timezone:R});k(ae||oe),X.preventDefault();break}case"Home":k(n.startOfWeek(Y)),X.preventDefault();break;case"End":k(n.endOfWeek(Y)),X.preventDefault();break;case"PageUp":k(n.addMonths(Y,1)),X.preventDefault();break;case"PageDown":k(n.addMonths(Y,-1)),X.preventDefault();break}}),K=pe((X,Y)=>k(Y)),G=pe((X,Y)=>{c!=null&&n.isSameDay(c,Y)&&(V==null||V(!1))}),Z=n.getMonth(a),U=n.getYear(a),Q=P.useMemo(()=>l.filter(X=>!!X).map(X=>n.startOfDay(X)),[n,l]),J=`${U}-${Z}`,ee=P.useMemo(()=>P.createRef(),[J]),q=P.useMemo(()=>{const X=n.getWeekArray(a);let Y=n.addMonths(a,1);for(;N&&X.length<N;){const oe=n.getWeekArray(Y),te=n.isSameDay(X[X.length-1][0],oe[0][0]);oe.slice(te?1:0).forEach(ae=>{X.length<N&&X.push(ae)}),Y=n.addMonths(Y,1)}return X},[a,N,n]);return b.jsxs(L_,{role:"grid","aria-labelledby":j,className:D.root,children:[b.jsxs($_,{role:"row",className:D.header,children:[w&&b.jsx(F_,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:D.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),hk(n,I).map((X,Y)=>b.jsx(V_,{variant:"caption",role:"columnheader","aria-label":n.format(X,"weekday"),className:D.weekDayLabel,children:A(X)},Y.toString()))]}),u?b.jsx(z_,{className:D.loadingContainer,children:m()}):b.jsx(W_,z({transKey:J,onExited:f,reduceAnimations:h,slideDirection:g,className:ge(r,D.slideTransition)},y,{nodeRef:ee,children:b.jsx(U_,{ref:ee,role:"rowgroup",className:D.monthContainer,children:q.map((X,Y)=>b.jsxs(H_,{role:"row",className:D.weekContainer,"aria-rowindex":Y+1,children:[w&&b.jsx(B_,{className:D.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(n.getWeekNumber(X[0])),children:B.calendarWeekNumberText(n.getWeekNumber(X[0]))}),X.map((oe,te)=>b.jsx(Y_,{parentProps:t,day:oe,selectedDays:Q,isViewFocused:O,focusedDay:c,onKeyDown:W,onFocus:K,onBlur:G,onDaySelect:$,isDateDisabled:F,currentMonthNumber:Z,"aria-colindex":te+1},oe.toString()))]},`week-${X[0]}`))})}))]})}function lv(e){return Te("MuiMonthCalendar",e)}const ni=Ce("MuiMonthCalendar",["root","button","disabled","selected"]),G_=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],K_=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,lv,e)},Z_=ie.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ni.disabled}`]:t.disabled},{[`&.${ni.selected}`]:t.selected}]})(({theme:e})=>z({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})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ni.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ni.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),cv=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=Ee(t,G_),m=P.useRef(null),{ownerState:g}=Et(),y=z({},g,{isMonthDisabled:r,isMonthSelected:i}),v=K_(o,y);St(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.monthButton)??Z_,x=_e({elementType:C,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:v.button});return b.jsx(C,z({},x))});process.env.NODE_ENV!=="production"&&(cv.displayName="MonthCalendarButton");const X_=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Q_=e=>we({root:["root"]},lv,e);function J_(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Rs(n);return z({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Oh=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),ej=ie.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Hn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:ma,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),id=P.forwardRef(function(t,n){const o=J_(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:C,onMonthFocus:x,hasFocus:S,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:A,slots:O,slotProps:V}=o,j=Ee(o,X_),{value:w,handleValueChange:N,timezone:R}=$s({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:xn}),I=ua(R),D=ln(),_=Ke(),{ownerState:F}=Et(),B=P.useMemo(()=>xn.getInitialReferenceValue({value:w,adapter:_,props:o,timezone:R,referenceDate:d,granularity:pn.month}),[]),$=Q_(l),k=P.useMemo(()=>_.getMonth(I),[_,I]),W=P.useMemo(()=>w!=null?_.getMonth(w):null,[w,_]),[K,G]=P.useState(()=>W||_.getMonth(B)),[Z,U]=Gn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=pe(te=>{U(te),T&&T(te)}),J=P.useCallback(te=>{const ae=_.startOfMonth(h&&_.isAfter(I,g)?I:g),re=_.startOfMonth(p&&_.isBefore(I,m)?I:m),be=_.startOfMonth(te);return _.isBefore(be,ae)||_.isAfter(be,re)?!0:v?v(be):!1},[p,h,m,g,I,v,_]),ee=pe((te,ae)=>{if(C)return;const be=(w&&a&&!_.isSameYear(w,a)?_.setYear(w,_.getYear(a)):w)??a??B,se=_.setMonth(be,ae);N(se)}),q=pe(te=>{J(_.setMonth(w??a??B,te))||(G(te),Q(!0),x&&x(te))});P.useEffect(()=>{G(te=>W!==null&&te!==W?W:te)},[W]);const X=pe((te,ae)=>{switch(te.key){case"ArrowUp":q((12+ae-3)%12),te.preventDefault();break;case"ArrowDown":q((12+ae+3)%12),te.preventDefault();break;case"ArrowLeft":q((12+ae+(D?1:-1))%12),te.preventDefault();break;case"ArrowRight":q((12+ae+(D?-1:1))%12),te.preventDefault();break}}),Y=pe((te,ae)=>{q(ae)}),oe=pe((te,ae)=>{K===ae&&Q(!1)});return b.jsx(ej,z({ref:n,className:ge($.root,i),ownerState:F,role:"radiogroup","aria-labelledby":A,monthsPerRow:E},j,{children:bu(_,a??w??B).map(te=>{const ae=_.getMonth(te),re=_.format(te,"monthShort"),be=_.format(te,"month"),se=Oh(ae,W,te,w,_),he=f||J(te);return b.jsx(cv,{selected:se,value:ae,onClick:ee,onKeyDown:X,autoFocus:Z&&ae===K,disabled:he,tabIndex:ae===K&&!he?0:-1,onFocus:Y,onBlur:oe,"aria-current":Oh(ae,k,te,I,_)?"date":void 0,"aria-label":be,slots:O,slotProps:V,classes:l,children:re},re)})}))});process.env.NODE_ENV!=="production"&&(id.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(id.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 uv(e){return Te("MuiYearCalendar",e)}const oi=Ce("MuiYearCalendar",["root","button","disabled","selected"]),tj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],nj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,uv,e)},oj=ie.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${oi.disabled}`]:t.disabled},{[`&.${oi.selected}`]:t.selected}]})(({theme:e})=>z({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})`:ie.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${oi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${oi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),dv=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=Ee(t,tj),m=P.useRef(null),{ownerState:g}=Et(),y=z({},g,{isYearDisabled:r,isYearSelected:i}),v=nj(o,y);St(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.yearButton)??oj,x=_e({elementType:C,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:v.button});return b.jsx(C,z({},x))});process.env.NODE_ENV!=="production"&&(dv.displayName="YearCalendarButton");const rj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],sj=e=>we({root:["root"]},uv,e);function ij(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Rs(n);return z({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const aj=ie.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Hn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:ma,maxHeight:fA,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),lj=ie.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ad=P.forwardRef(function(t,n){const o=ij(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:C,hasFocus:x,onFocusedViewChange:S,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:A,slots:O,slotProps:V}=o,j=Ee(o,rj),{value:w,handleValueChange:N,timezone:R}=$s({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:xn}),I=ua(R),D=ln(),_=Ke(),{ownerState:F}=Et(),B=P.useMemo(()=>xn.getInitialReferenceValue({value:w,adapter:_,props:o,timezone:R,referenceDate:u,granularity:pn.year}),[]),$=sj(a),k=P.useMemo(()=>_.getYear(I),[_,I]),W=P.useMemo(()=>w!=null?_.getYear(w):null,[w,_]),[K,G]=P.useState(()=>W||_.getYear(B)),[Z,U]=Gn({name:"YearCalendar",state:"hasFocus",controlled:x,default:r??!1}),Q=pe(le=>{U(le),S&&S(le)}),J=P.useCallback(le=>{if(p&&_.isBeforeYear(le,I)||f&&_.isAfterYear(le,I)||m&&_.isBeforeYear(le,m)||h&&_.isAfterYear(le,h))return!0;if(!v)return!1;const ue=_.startOfYear(le);return v(ue)},[f,p,h,m,I,v,_]),ee=pe((le,ue)=>{if(y)return;const de=_.setYear(w??B,ue);N(de)}),q=pe(le=>{J(_.setYear(w??B,le))||(G(le),Q(!0),C==null||C(le))});P.useEffect(()=>{G(le=>W!==null&&le!==W?W:le)},[W]);const X=T!=="desc"?E*1:E*-1,Y=D&&T==="asc"||!D&&T==="desc"?-1:1,oe=pe((le,ue)=>{switch(le.key){case"ArrowUp":q(ue-X),le.preventDefault();break;case"ArrowDown":q(ue+X),le.preventDefault();break;case"ArrowLeft":q(ue-Y),le.preventDefault();break;case"ArrowRight":q(ue+Y),le.preventDefault();break}}),te=pe((le,ue)=>{q(ue)}),ae=pe((le,ue)=>{K===ue&&Q(!1)}),re=P.useRef(null),be=je(n,re);P.useEffect(()=>{if(r||re.current===null)return;const le=re.current.querySelector('[tabindex="0"]');if(!le)return;const ue=le.offsetHeight,de=le.offsetTop,Ie=re.current.clientHeight,Me=re.current.scrollTop,Ze=de+ue;ue>Ie||de<Me||(re.current.scrollTop=Ze-Ie/2-ue/2)},[r]);const se=_.getYearRange([m,h]);T==="desc"&&se.reverse();let he=E-se.length%E;return he===E&&(he=0),b.jsxs(aj,z({ref:be,className:ge($.root,i),ownerState:F,role:"radiogroup","aria-labelledby":A,yearsPerRow:E},j,{children:[se.map(le=>{const ue=_.getYear(le),de=ue===W,Ie=d||J(le);return b.jsx(dv,{selected:de,value:ue,onClick:ee,onKeyDown:oe,autoFocus:Z&&ue===K,disabled:Ie,tabIndex:ue===K&&!Ie?0:-1,onFocus:te,onBlur:ae,"aria-current":k===ue?"date":void 0,slots:O,slotProps:V,classes:a,children:_.format(le,"year")},_.format(le,"year"))}),Array.from({length:he},(le,ue)=>b.jsx(lj,{},ue))]}))});process.env.NODE_ENV!=="production"&&(ad.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(ad.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 cj=e=>Te("MuiPickersCalendarHeader",e),uj=Ce("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function dj(e){return Te("MuiPickersArrowSwitcher",e)}Ce("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const fj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],pj=["ownerState"],hj=["ownerState"],mj=ie.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),gj=ie.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),kh=ie.styled(vs,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),yj=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},dj,e),fv=P.forwardRef(function(t,n){const o=ln(),r=ie.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:C}=r,x=Ee(r,fj),{ownerState:S}=Et(),T=yj(C),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},A=(l==null?void 0:l.previousIconButton)??kh,O=_e({elementType:A,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:z({},S,{isButtonHidden:M.isHidden??!1}),className:ge(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??kh,j=_e({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:z({},S,{isButtonHidden:E.isHidden??!1}),className:ge(T.button,T.nextIconButton)}),w=(l==null?void 0:l.leftArrowIcon)??yN,N=_e({elementType:w,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.leftArrowIcon}),R=Ee(N,pj),I=(l==null?void 0:l.rightArrowIcon)??bN,D=_e({elementType:I,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.rightArrowIcon}),_=Ee(D,hj);return b.jsxs(mj,z({ref:n,className:ge(T.root,a),ownerState:S},x,{children:[b.jsx(A,z({},O,{children:o?b.jsx(I,z({},_)):b.jsx(w,z({},R))})),i?b.jsx(no,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(gj,{className:T.spacer,ownerState:S}),b.jsx(V,z({},j,{children:o?b.jsx(w,z({},R)):b.jsx(I,z({},_))}))]}))});process.env.NODE_ENV!=="production"&&(fv.displayName="PickersArrowSwitcher");function bj(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 vj(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 xj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Sj=["ownerState"],wj=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},cj,e),Cj=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Tj=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Pj=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Ej=ie.styled(vs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${uj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Mj=ie.styled(gN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ld=P.forwardRef(function(t,n){const o=oo(),r=Ke(),i=ie.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:C,labelId:x,className:S,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,A=Ee(i,xj),{ownerState:O}=Et(),V=wj(T),j=(a==null?void 0:a.switchViewButton)??Ej,w=_e({elementType:j,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:z({},O,{view:y}),className:V.switchViewButton}),N=(a==null?void 0:a.switchViewIcon)??Mj,R=_e({elementType:N,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:O,className:V.switchViewIcon}),I=Ee(R,Sj),D=()=>m(r.addMonths(c,1)),_=()=>m(r.addMonths(c,-1)),F=bj(c,{disableFuture:d,maxDate:p,timezone:E}),B=vj(c,{disablePast:f,minDate:h,timezone:E}),$=()=>{if(!(C.length===1||!g||u))if(C.length===2)g(C.find(W=>W!==y)||C[0]);else{const W=C.indexOf(y)!==0?0:1;g(C[W])}};if(C.length===1&&C[0]==="year")return null;const k=r.formatByString(c,M);return b.jsxs(Cj,z({},A,{ownerState:O,className:ge(V.root,S),ref:n,children:[b.jsxs(Tj,{role:"presentation",onClick:$,ownerState:O,"aria-live":"polite",className:V.labelContainer,children:[b.jsx(nv,{reduceAnimations:v,transKey:k,children:b.jsx(Pj,{id:x,ownerState:O,className:V.label,children:k})}),C.length>1&&!u&&b.jsx(j,z({},w,{children:b.jsx(N,z({},I))}))]}),b.jsx(Xn,{in:y==="day",appear:!v,enter:!v,children:b.jsx(fv,{slots:a,slotProps:l,onGoToPrevious:_,isPreviousDisabled:B,previousLabel:o.previousMonth,onGoToNext:D,isNextDisabled:F,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(ld.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(ld.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 Oj=ie.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:ma,maxHeight:Hu,display:"flex",flexDirection:"column",margin:"0 auto"}),kj=e=>Te("MuiDateCalendar",e);Ce("MuiDateCalendar",["root","viewTransitionContainer"]);const Dj=["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"],Rj=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},kj,e);function Ij(e,t){const n=ie.useThemeProps({props:e,name:t}),o=fb(n.reduceAnimations),r=Rs(n);return z({},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 Aj=ie.styled(Oj,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Hu}),Nj=ie.styled(nv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),cd=P.forwardRef(function(t,n){const o=Ke(),{ownerState:r}=Et(),i=eo(),a=Ij(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:C,shouldDisableYear:x,view:S,views:T,openTo:E,className:M,classes:A,disabled:O,readOnly:V,minDate:j,maxDate:w,disableHighlightToday:N,focusedView:R,onFocusedViewChange:I,showDaysOutsideCurrentMonth:D,fixedWeekNumber:_,dayOfWeekFormatter:F,slots:B,slotProps:$,loading:k,renderLoading:W,displayWeekNumber:K,yearsOrder:G,yearsPerRow:Z,monthsPerRow:U,timezone:Q}=a,J=Ee(a,Dj),{value:ee,handleValueChange:q,timezone:X}=$s({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:xn}),{view:Y,setView:oe,focusedView:te,setFocusedView:ae,goToNextView:re,setValueAndGoToNextView:be}=hb({view:S,views:T,openTo:E,onChange:q,onViewChange:c,autoFocus:l,focusedView:R,onFocusedViewChange:I}),{referenceDate:se,calendarState:he,setVisibleDate:le,isDateDisabled:ue,onMonthSwitchingAnimationEnd:de}=b_({value:ee,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:j,maxDate:w,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:X,getCurrentMonthFromVisibleDate:(Oe,pt)=>o.isSameMonth(Oe,pt)?pt:o.startOfMonth(Oe)}),Ie=O&&ee||j,Me=O&&ee||w,Ze=`${i}-grid-label`,Je=te!==null,ke=(B==null?void 0:B.calendarHeader)??ld,ut=_e({elementType:ke,externalSlotProps:$==null?void 0:$.calendarHeader,additionalProps:{views:T,view:Y,currentMonth:he.currentMonth,onViewChange:oe,onMonthChange:Oe=>le({target:Oe,reason:"header-navigation"}),minDate:Ie,maxDate:Me,disabled:O,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:X,labelId:Ze},ownerState:r}),Se=pe(Oe=>{const pt=o.startOfMonth(Oe),wt=o.endOfMonth(Oe),jt=ue(Oe)?fs({adapter:o,date:Oe,minDate:o.isBefore(j,pt)?pt:j,maxDate:o.isAfter(w,wt)?wt:w,disablePast:h,disableFuture:p,isDateDisabled:ue,timezone:X}):Oe;jt?(be(jt,"finish"),le({target:jt,reason:"cell-interaction"})):(re(),le({target:pt,reason:"cell-interaction"}))}),Pe=pe(Oe=>{const pt=o.startOfYear(Oe),wt=o.endOfYear(Oe),jt=ue(Oe)?fs({adapter:o,date:Oe,minDate:o.isBefore(j,pt)?pt:j,maxDate:o.isAfter(w,wt)?wt:w,disablePast:h,disableFuture:p,isDateDisabled:ue,timezone:X}):Oe;jt?(be(jt,"finish"),le({target:jt,reason:"cell-interaction"})):(re(),le({target:pt,reason:"cell-interaction"}))}),xe=pe(Oe=>q(Oe&&Ri(o,Oe,ee??se),"finish",Y));P.useEffect(()=>{o.isValid(ee)&&le({target:ee,reason:"controlled-value-change"})},[ee]);const $e=Rj(A),Ve={disablePast:h,disableFuture:p,maxDate:w,minDate:j},ot={disableHighlightToday:N,readOnly:V,disabled:O,timezone:X,gridLabelId:Ze,slots:B,slotProps:$},Xe=P.useRef(Y);P.useEffect(()=>{Xe.current!==Y&&(te===Xe.current&&ae(Y,!0),Xe.current=Y)},[te,ae,Y]);const _t=P.useMemo(()=>[ee],[ee]);return b.jsxs(Aj,z({ref:n,className:ge($e.root,M),ownerState:r},J,{children:[b.jsx(ke,z({},ut,{slots:B,slotProps:$})),b.jsx(Nj,{reduceAnimations:y,className:$e.viewTransitionContainer,transKey:Y,ownerState:r,children:b.jsxs("div",{children:[Y==="year"&&b.jsx(ad,z({},Ve,ot,{value:ee,onChange:Pe,shouldDisableYear:x,hasFocus:Je,onFocusedViewChange:Oe=>ae("year",Oe),yearsOrder:G,yearsPerRow:Z,referenceDate:se})),Y==="month"&&b.jsx(id,z({},Ve,ot,{currentMonth:he.currentMonth,hasFocus:Je,className:M,value:ee,onChange:Se,shouldDisableMonth:C,onFocusedViewChange:Oe=>ae("month",Oe),monthsPerRow:U,referenceDate:se})),Y==="day"&&b.jsx(q_,z({},he,Ve,ot,{onMonthSwitchingAnimationEnd:de,hasFocus:Je,onFocusedDayChange:Oe=>le({target:Oe,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:_t,onSelectedDaysChange:xe,shouldDisableDate:v,shouldDisableMonth:C,shouldDisableYear:x,onFocusedViewChange:Oe=>ae("day",Oe),showDaysOutsideCurrentMonth:D,fixedWeekNumber:_,dayOfWeekFormatter:F,displayWeekNumber:K,loading:k,renderLoading:W}))]})})]}))});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 ko=({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:C,onMonthChange:x,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:A,slotProps:O,loading:V,renderLoading:j,disableHighlightToday:w,readOnly:N,disabled:R,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:D,sx:_,autoFocus:F,fixedWeekNumber:B,displayWeekNumber:$,timezone:k})=>b.jsx(cd,{view:e,onViewChange:t,views:n.filter(Mp),focusedView:o&&Mp(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:C,onMonthChange:x,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:A,slotProps:O,loading:V,renderLoading:j,disableHighlightToday:w,readOnly:N,disabled:R,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:D,sx:_,autoFocus:F,fixedWeekNumber:B,displayWeekNumber:$,timezone:k});process.env.NODE_ENV!=="production"&&(ko.displayName="renderDateViewCalendar");const ud=P.forwardRef(function(t,n){var c;const o=Ke(),r=zy(t,"MuiDesktopDatePicker"),i=z({day:ko,month:ko,year:ko},r.viewRenderers),a=z({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:vu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:z({field:Ia},r.slots),slotProps:z({},r.slotProps,{field:u=>{var d;return z({},Zt((d=r.slotProps)==null?void 0:d.field,u),Vy(r))},toolbar:z({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=PA({ref:n,props:a,valueManager:xn,valueType:"date",validator:Ds,steps:null});return l()});process.env.NODE_ENV!=="production"&&(ud.displayName="DesktopDatePicker");ud.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:yt,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 _j(e){return Te("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);const jj=Ce("MuiDialogTitle",["root"]),Lj=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},_j,t)},$j=ye("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(qe(({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:{[`.${jj.root} + &`]:{paddingTop:0}}}]}))),pv=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=Lj(l);return b.jsx($j,{className:ge(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(pv.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 Vj(e){return Te("MuiDialog",e)}const rs=Ce("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hv=P.createContext({});process.env.NODE_ENV!=="production"&&(hv.displayName="DialogContext");const Fj=ye(Zu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Bj=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,Vj,t)},zj=ye(Xu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Wj=ye("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"}}}]}),Uj=ye(_s,{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]}})(qe(({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)`,[`&.${rs.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}`,[`&.${rs.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,[`&.${rs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),mv=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiDialog"}),r=Qi(),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:C,open:x,PaperComponent:S=_s,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:A={},TransitionComponent:O=Xn,transitionDuration:V=i,TransitionProps:j,...w}=o,N={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},R=Bj(N),I=P.useRef(),D=oe=>{I.current=oe.target===oe.currentTarget},_=oe=>{v&&v(oe),I.current&&(I.current=null,C&&C(oe,"backdropClick"))},F=eo(l),B=P.useMemo(()=>({titleId:F}),[F]),$={transition:O,...M},k={transition:j,paper:T,backdrop:d,...A},W={slots:$,slotProps:k},[K,G]=nt("root",{elementType:zj,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:N,className:ge(R.root,p),ref:n}),[Z,U]=nt("backdrop",{elementType:Fj,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:N,className:R.backdrop}),[Q,J]=nt("paper",{elementType:Uj,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:N,className:ge(R.paper,T.className)}),[ee,q]=nt("container",{elementType:Wj,externalForwardedProps:W,ownerState:N,className:R.container}),[X,Y]=nt("transition",{elementType:Xn,externalForwardedProps:W,ownerState:N,additionalProps:{appear:!0,in:x,timeout:V,role:"presentation"}});return b.jsx(K,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:V,as:u,...U}},disableEscapeKeyDown:h,onClose:C,open:x,onClick:_,...G,...w,children:b.jsx(X,{...Y,children:b.jsx(ee,{onMouseDown:D,...q,children:b.jsx(Q,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":F,"aria-modal":c,...J,children:b.jsx(hv.Provider,{value:B,children:f})})})})})});process.env.NODE_ENV!=="production"&&(mv.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 Hj=ie.styled(mv,{slot:"internal"})({[`& .${rs.container}`]:{outline:0},[`& .${rs.paper}`]:{outline:0,minWidth:ma}}),Yj=ie.styled(pv,{slot:"internal"})({"&:first-of-type":{padding:0}});function qj(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=xr(),{dismissViews:i,onPopperExited:a}=Et(),l=(n==null?void 0:n.dialog)??Hj,c=(n==null?void 0:n.mobileTransition)??Xn;return b.jsx(l,z({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(Yj,{children:t})}))}const Gj=["props","steps"],Kj=["ownerState"],Zj=e=>{var E;let{props:t,steps:n}=e,o=Ee(e,Gj);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=kb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=gb(z({},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=_e({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},m&&{id:h}),ownerState:p}),v=Ee(y,Kj),C=r.layout??ga;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:z({"aria-labelledby":x},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(Ny,z({},d,{children:[b.jsx(g,z({},v,{slots:z({},r,v.slots),slotProps:z({},S,v.slotProps),inputRef:l})),b.jsx(qj,{slots:r,slotProps:S,children:b.jsx(C,z({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},dd=P.forwardRef(function(t,n){var c;const o=Ke(),r=zy(t,"MuiMobileDatePicker"),i=z({day:ko,month:ko,year:ko},r.viewRenderers),a=z({},r,{viewRenderers:i,format:vu(o,r,!1),slots:z({field:Ia},r.slots),slotProps:z({},r.slotProps,{field:u=>{var d;return z({},Zt((d=r.slotProps)==null?void 0:d.field,u),Vy(r))},toolbar:z({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=Zj({ref:n,props:a,valueManager:xn,valueType:"date",validator:Ds,steps:null});return l()});process.env.NODE_ENV!=="production"&&(dd.displayName="MobileDatePicker");dd.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:yt,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 Xj=["desktopModeMediaQuery"],fd=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=nI}=o,i=Ee(o,Xj);return Oy(r,{defaultMatches:!0})?b.jsx(ud,z({ref:n},i)):b.jsx(dd,z({ref:n},i))});process.env.NODE_ENV!=="production"&&(fd.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(fd.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:yt,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 gv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hr,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,C={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(R){var I=["th","st","nd","rd"],D=R%100;return"["+R+(I[(D-20)%10]||I[D]||I[0])+"]"}},x=function(R,I,D){var _=String(R);return!_||_.length>=I?R:""+Array(I+1-_.length).join(D)+R},S={s:x,z:function(R){var I=-R.utcOffset(),D=Math.abs(I),_=Math.floor(D/60),F=D%60;return(I<=0?"+":"-")+x(_,2,"0")+":"+x(F,2,"0")},m:function R(I,D){if(I.date()<D.date())return-R(D,I);var _=12*(D.year()-I.year())+(D.month()-I.month()),F=I.clone().add(_,f),B=D-F<0,$=I.clone().add(_+(B?-1:1),f);return+(-(_+(D-F)/(B?F-$:$-F))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},T="en",E={};E[T]=C;var M="$isDayjsObject",A=function(R){return R instanceof w||!(!R||!R[M])},O=function R(I,D,_){var F;if(!I)return T;if(typeof I=="string"){var B=I.toLowerCase();E[B]&&(F=B),D&&(E[B]=D,F=B);var $=I.split("-");if(!F&&$.length>1)return R($[0])}else{var k=I.name;E[k]=I,F=k}return!_&&F&&(T=F),F||!_&&T},V=function(R,I){if(A(R))return R.clone();var D=typeof I=="object"?I:{};return D.date=R,D.args=arguments,new w(D)},j=S;j.l=O,j.i=A,j.w=function(R,I){return V(R,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var w=function(){function R(D){this.$L=O(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[M]=!0}var I=R.prototype;return I.parse=function(D){this.$d=function(_){var F=_.date,B=_.utc;if(F===null)return new Date(NaN);if(j.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var $=F.match(y);if($){var k=$[2]-1||0,W=($[7]||"0").substring(0,3);return B?new Date(Date.UTC($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)):new Date($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)}}return new Date(F)}(D),this.init()},I.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},I.$utils=function(){return j},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(D,_){var F=V(D);return this.startOf(_)<=F&&F<=this.endOf(_)},I.isAfter=function(D,_){return V(D)<this.startOf(_)},I.isBefore=function(D,_){return this.endOf(_)<V(D)},I.$g=function(D,_,F){return j.u(D)?this[_]:this.set(F,D)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(D,_){var F=this,B=!!j.u(_)||_,$=j.p(D),k=function(ee,q){var X=j.w(F.$u?Date.UTC(F.$y,q,ee):new Date(F.$y,q,ee),F);return B?X:X.endOf(u)},W=function(ee,q){return j.w(F.toDate()[ee].apply(F.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(q)),F)},K=this.$W,G=this.$M,Z=this.$D,U="set"+(this.$u?"UTC":"");switch($){case h:return B?k(1,0):k(31,11);case f:return B?k(1,G):k(0,G+1);case d:var Q=this.$locale().weekStart||0,J=(K<Q?K+7:K)-Q;return k(B?Z-J:Z+(6-J),G);case u:case m:return W(U+"Hours",0);case c:return W(U+"Minutes",1);case l:return W(U+"Seconds",2);case a:return W(U+"Milliseconds",3);default:return this.clone()}},I.endOf=function(D){return this.startOf(D,!1)},I.$set=function(D,_){var F,B=j.p(D),$="set"+(this.$u?"UTC":""),k=(F={},F[u]=$+"Date",F[m]=$+"Date",F[f]=$+"Month",F[h]=$+"FullYear",F[c]=$+"Hours",F[l]=$+"Minutes",F[a]=$+"Seconds",F[i]=$+"Milliseconds",F)[B],W=B===u?this.$D+(_-this.$W):_;if(B===f||B===h){var K=this.clone().set(m,1);K.$d[k](W),K.init(),this.$d=K.set(m,Math.min(this.$D,K.daysInMonth())).$d}else k&&this.$d[k](W);return this.init(),this},I.set=function(D,_){return this.clone().$set(D,_)},I.get=function(D){return this[j.p(D)]()},I.add=function(D,_){var F,B=this;D=Number(D);var $=j.p(_),k=function(G){var Z=V(B);return j.w(Z.date(Z.date()+Math.round(G*D)),B)};if($===f)return this.set(f,this.$M+D);if($===h)return this.set(h,this.$y+D);if($===u)return k(1);if($===d)return k(7);var W=(F={},F[l]=o,F[c]=r,F[a]=n,F)[$]||1,K=this.$d.getTime()+D*W;return j.w(K,this)},I.subtract=function(D,_){return this.add(-1*D,_)},I.format=function(D){var _=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var B=D||"YYYY-MM-DDTHH:mm:ssZ",$=j.z(this),k=this.$H,W=this.$m,K=this.$M,G=F.weekdays,Z=F.months,U=F.meridiem,Q=function(q,X,Y,oe){return q&&(q[X]||q(_,B))||Y[X].slice(0,oe)},J=function(q){return j.s(k%12||12,q,"0")},ee=U||function(q,X,Y){var oe=q<12?"AM":"PM";return Y?oe.toLowerCase():oe};return B.replace(v,function(q,X){return X||function(Y){switch(Y){case"YY":return String(_.$y).slice(-2);case"YYYY":return j.s(_.$y,4,"0");case"M":return K+1;case"MM":return j.s(K+1,2,"0");case"MMM":return Q(F.monthsShort,K,Z,3);case"MMMM":return Q(Z,K);case"D":return _.$D;case"DD":return j.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Q(F.weekdaysMin,_.$W,G,2);case"ddd":return Q(F.weekdaysShort,_.$W,G,3);case"dddd":return G[_.$W];case"H":return String(k);case"HH":return j.s(k,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ee(k,W,!0);case"A":return ee(k,W,!1);case"m":return String(W);case"mm":return j.s(W,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 $}return null}(q)||$.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(D,_,F){var B,$=this,k=j.p(_),W=V(D),K=(W.utcOffset()-this.utcOffset())*o,G=this-W,Z=function(){return j.m($,W)};switch(k){case h:B=Z()/12;break;case f:B=Z();break;case p:B=Z()/3;break;case d:B=(G-K)/6048e5;break;case u:B=(G-K)/864e5;break;case c:B=G/r;break;case l:B=G/o;break;case a:B=G/n;break;default:B=G}return F?B:j.a(B)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return E[this.$L]},I.locale=function(D,_){if(!D)return this.$L;var F=this.clone(),B=O(D,_,!0);return B&&(F.$L=B),F},I.clone=function(){return j.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},R}(),N=w.prototype;return V.prototype=N,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(R){N[R[1]]=function(I){return this.$g(I,R[0],R[1])}}),V.extend=function(R,I){return R.$i||(R(I,w,V),R.$i=!0),V},V.locale=O,V.isDayjs=A,V.unix=function(R){return V(1e3*R)},V.en=E[T],V.Ls=E,V.p={},V})})(gv);var Qj=gv.exports;const mt=Qn(Qj);var yv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hr,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)}}})})(yv);var Jj=yv.exports;const eL=Qn(Jj);var bv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hr,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 C=v.match(/([+-]|\d\d)/g),x=60*C[1]+(+C[2]||0);return x===0?0:C[0]==="+"?-x:x}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var C,x=c.meridiem;if(x){for(var S=1;S<=24;S+=1)if(y.indexOf(x(S,0,v))>-1){C=S>12;break}}else C=y===(v?"pm":"PM");return C},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,C=y.match(/\d+/);if(this.day=C[0],v)for(var x=1;x<=31;x+=1)v(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),C=(p("monthsShort")||v.map(function(x){return x.slice(0,3)})).indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],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,C;v=y,C=c&&c.formats;for(var x=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,j,w){var N=w&&w.toUpperCase();return j||C[w]||n[w]||C[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,I,D){return I||D.slice(1)})})).match(o),S=x.length,T=0;T<S;T+=1){var E=x[T],M=m[E],A=M&&M[0],O=M&&M[1];x[T]=O?{regex:A,parser:O}:E.replace(/^\[|\]$/g,"")}return function(V){for(var j={},w=0,N=0;w<S;w+=1){var R=x[w];if(typeof R=="string")N+=R.length;else{var I=R.regex,D=R.parser,_=V.slice(N),F=I.exec(_)[0];D.call(j,F),V=V.replace(F,"")}}return function(B){var $=B.afternoon;if($!==void 0){var k=B.hours;$?k<12&&(B.hours+=12):k===12&&(B.hours=0),delete B.afternoon}}(j),j}}return function(y,v,C){C.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var x=v.prototype,S=x.parse;x.parse=function(T){var E=T.date,M=T.utc,A=T.args;this.$u=M;var O=A[1];if(typeof O=="string"){var V=A[2]===!0,j=A[3]===!0,w=V||j,N=A[2];j&&(N=A[2]),c=this.$locale(),!V&&N&&(c=C.Ls[N]),this.$d=function(_,F,B,$){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*_);var k=g(F)(_),W=k.year,K=k.month,G=k.day,Z=k.hours,U=k.minutes,Q=k.seconds,J=k.milliseconds,ee=k.zone,q=k.week,X=new Date,Y=G||(W||K?1:X.getDate()),oe=W||X.getFullYear(),te=0;W&&!K||(te=K>0?K-1:X.getMonth());var ae,re=Z||0,be=U||0,se=Q||0,he=J||0;return ee?new Date(Date.UTC(oe,te,Y,re,be,se,he+60*ee.offset*1e3)):B?new Date(Date.UTC(oe,te,Y,re,be,se,he)):(ae=new Date(oe,te,Y,re,be,se,he),q&&(ae=$(ae).week(q).toDate()),ae)}catch{return new Date("")}}(E,O,M,C),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),w&&E!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var R=O.length,I=1;I<=R;I+=1){A[1]=O[I-1];var D=C.apply(this,A);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}I===R&&(this.$d=new Date(""))}else S.call(this,T)}}})})(bv);var tL=bv.exports;const nL=Qn(tL);var vv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hr,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,C,x){return C||x.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(vv);var oL=vv.exports;const rL=Qn(oL);var xv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hr,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))}}})})(xv);var sL=xv.exports;const iL=Qn(sL);var Sv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hr,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)}}})})(Sv);var aL=Sv.exports;const lL=Qn(aL);mt.extend(rL);mt.extend(eL);mt.extend(iL);mt.extend(lL);const cL={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"},uL={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"},gl=["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
|
-
`),
|
|
244
|
-
`);class dL{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",cL);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof mt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof mt.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 mt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=mt.tz.guess();o==="UTC"?n=mt(t):n=mt.tz(t,o)}else n=mt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(gl);return this.setLocaleToValue(mt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(gl);if(!this.hasTimezonePlugin())throw new Error(Dh);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(mt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=mt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&mb(["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",()=>mt(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(gl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Dh)}return this.setLocaleToValue(mt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:mt(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=z({},uL,n),mt.extend(nL)}getDayOfWeek(t){return t.day()+1}}const fL="_root_1dntq_1",pL="_container_1dntq_72",hL="_header_1dntq_83",mL="_headerText_1dntq_91",gL="_headerTitle_1dntq_97",yL="_headerSubtitle_1dntq_102",bL="_controls_1dntq_106",vL="_headerButton_1dntq_113",xL="_zoomGroup_1dntq_133",SL="_zoomLabel_1dntq_144",wL="_tracksWrapper_1dntq_153",CL="_tracksWithHeader_1dntq_158",TL="_layers_1dntq_162",PL="_timeScale_1dntq_168",EL="_videoTrack_1dntq_172",ML="_eventsTrack_1dntq_176",OL="_trackBox_1dntq_180",kL="_trackLabelRow_1dntq_190",DL="_label_1dntq_198",RL="_trackArea_1dntq_209",IL="_tick_1dntq_215",AL="_tickMajor_1dntq_223",NL="_tickMinor_1dntq_227",_L="_tickLabel_1dntq_231",jL="_segment_1dntq_243",LL="_event_1dntq_176",$L="_eventDot_1dntq_276",VL="_selectionOverlay_1dntq_283",FL="_playhead_1dntq_292",BL="_playheadLine_1dntq_302",zL="_playheadHandle_1dntq_312",Re={root:fL,container:pL,header:hL,headerText:mL,headerTitle:gL,headerSubtitle:yL,controls:bL,headerButton:vL,zoomGroup:xL,zoomLabel:SL,tracksWrapper:wL,tracksWithHeader:CL,layers:TL,timeScale:PL,videoTrack:EL,eventsTrack:ML,trackBox:OL,trackLabelRow:kL,label:DL,trackArea:RL,tick:IL,tickMajor:AL,tickMinor:NL,tickLabel:_L,segment:jL,event:LL,eventDot:$L,selectionOverlay:VL,playhead:FL,playheadLine:BL,playheadHandle:zL};function tt(e,t,n){return Math.min(n,Math.max(t,e))}function Mn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Uo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function xt(e){return String(Math.floor(e)).padStart(2,"0")}function WL(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function yl(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`${xt(n)}:${xt(o)}:${xt(r)}`}function UL(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`${xt(o)}:${xt(r)}:${xt(i)}:${xt(l)}`}function bl(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?`${xt(n)}:${xt(o)}:${xt(r)}`:`${xt(o)}:${xt(r)}`}function HL(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?`${xt(o)}:${xt(r)}:${xt(i)}:${xt(l)}`:`${xt(r)}:${xt(i)}:${xt(l)}`}function YL(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 qL=(e,t,n)=>t>=3600?yl(e).slice(0,2)+":00:00":t>=60?yl(e).slice(0,5):t>=1?yl(e):UL(e,n),GL=(e,t,n)=>t>=3600||t>=60||t>=1?bl(e):HL(e,n);function KL(){const e=L.useRef(null),[t,n]=L.useState(0);return L.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 ZL(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i}=e,[a,l]=Un(ra),[c,u]=Un(sa),[d,f]=Un(pu),p=Di(hu),h=Di(mu),[m,g]=Un(Ty),y=ia(),{ref:v,width:C}=KL(),x=102,T=Math.max(0,C-x-10),[E,M]=L.useState(0),A=L.useMemo(()=>{const Z=Math.max(1/Math.max(1,m.fps),.05);return tt(m.windowSeconds,Z,t)},[m.windowSeconds,m.fps,t]);L.useEffect(()=>{if(!c||C<=0)return;const Z=tt(a-A*.9,0,Math.max(0,t-A));M(Z)},[a,c,C,A,t]);const O=L.useMemo(()=>{const Z=tt(E,0,Math.max(0,t-A)),U=Z+A;return{start:Z,end:U,seconds:A}},[E,t,A]),V=L.useMemo(()=>{if(T<=0)return[];const{majorStep:Z,minorStep:U}=YL({width:T,windowSeconds:O.seconds,fps:m.fps}),Q=Math.floor(O.start/U)*U,J=O.end,ee=[],q=U*1e-6;for(let X=Q;X<=J+q;X+=U){const Y=Mn({time:X,windowStart:O.start,windowSeconds:O.seconds,width:T});if(Y<-1||Y>T+1)continue;const oe=Math.abs(X/Z-Math.round(X/Z))<1e-6;ee.push({time:X,px:Y,kind:oe?"major":"minor",label:oe?r(X,Z,m.fps):void 0})}return ee},[T,r,O.end,O.seconds,O.start,m.fps]),j=L.useRef(null),w=L.useRef(null),N=Z=>{w.current=Z,j.current==null&&(j.current=requestAnimationFrame(()=>{j.current=null;const U=w.current;w.current=null,U==null||U()}))};L.useEffect(()=>()=>{j.current!=null&&cancelAnimationFrame(j.current)},[]);const R=L.useRef(null),I=Z=>{const U=v.current;if(!U)return 0;const Q=U.getBoundingClientRect();return tt(Z-Q.left-x,0,T)};return{viewportRef:v,width:C,axisLeft:x,axisWidth:T,totalSeconds:t,zoom:m,setZoom:g,isLive:c,setIsLive:u,currentTime:a,selectedRange:d,setSelectedRange:f,videoSegments:p,events:h,view:O,ticks:V,onWheel:Z=>{if(!n||C<=0)return;Z.preventDefault(),u(!1);const U=I(Z.clientX),Q=tt(Uo({px:U,windowStart:O.start,windowSeconds:O.seconds,width:T}),0,t),ee=Z.deltaY<0?.8:1.25,q=tt(O.seconds*ee,Math.max(1/Math.max(1,m.fps),.05),t),X=tt(Q-U/Math.max(1,T)*q,0,Math.max(0,t-q));g(Y=>({...Y,windowSeconds:q})),M(X)},onPointerDownScrub:Z=>{if(Z.button!==0)return;const U=v.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=I(Z.clientX),J=tt(Uo({px:Q,windowStart:O.start,windowSeconds:O.seconds,width:T}),0,t);u(!1),R.current={mode:"playhead",pointerId:Z.pointerId,startPx:Q,startTime:J},l(J),y&&y.seekTo(J)},onPointerDownSelect:Z=>{if(Z.button!==0)return;const U=v.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=I(Z.clientX),J=tt(Uo({px:Q,windowStart:O.start,windowSeconds:O.seconds,width:T}),0,t);u(!1),R.current={mode:"select",pointerId:Z.pointerId,startPx:Q,startTime:J},f({start:J,end:J})},onPointerDownPlayhead:Z=>{if(Z.button!==0)return;const U=v.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=I(Z.clientX),J=tt(Uo({px:Q,windowStart:O.start,windowSeconds:O.seconds,width:T}),0,t);u(!1),R.current={mode:"playhead",pointerId:Z.pointerId,startPx:Q,startTime:J},l(J),y&&y.seekTo(J)},onPointerMove:Z=>{const U=R.current;if(!U||U.pointerId!==Z.pointerId)return;const Q=I(Z.clientX);N(()=>{const J=tt(Uo({px:Q,windowStart:O.start,windowSeconds:O.seconds,width:T}),0,t);if(U.mode==="playhead")l(J),y&&y.seekTo(J);else{const ee=Math.min(U.startTime,J),q=Math.max(U.startTime,J);f({start:ee,end:q})}})},onPointerUp:Z=>{const U=R.current;if(!(!U||U.pointerId!==Z.pointerId)&&(R.current=null,U.mode==="select"&&d)){const Q=Math.abs(d.end-d.start);if(Q<Math.max(1/Math.max(1,m.fps),.1))f(null);else if(o){const J=tt(Q*1.05,Math.max(1/Math.max(1,m.fps),.05),t),ee=tt(d.start,0,Math.max(0,t-J));g(q=>({...q,windowSeconds:J})),M(ee)}}},onClickSegment:Z=>{u(!1);const U=tt(Z,0,t);l(U),y&&y.seekTo(U)},onClickEvent:Z=>{i&&f(null),u(!1);const U=tt(Z,0,t);l(U),y&&y.seekTo(U),M(tt(Z-O.seconds/2,0,Math.max(0,t-O.seconds)))},resetView:()=>{u(!1),g(Z=>({...Z,windowSeconds:t})),M(0)}}}const wv=({ticks:e})=>b.jsx("div",{className:Re.trackArea,children:e.map(t=>b.jsxs("div",{children:[b.jsx("div",{className:`${Re.tick} ${t.kind==="minor"?Re.tickMinor:Re.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?b.jsx("div",{className:Re.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});wv.displayName="TimeScale";const Cv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:tt(c.start,0,r),end:tt(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=Mn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=tt(Uo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return b.jsx("div",{className:Re.trackArea,children:a.map((c,u)=>{const d=Mn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Mn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return b.jsx("div",{className:Re.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}`)})})};Cv.displayName="VideoTrack";const Tv=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:tt(l.time,0,r)})).filter(l=>l.time>=t&&l.time<=t+n);return b.jsx("div",{className:Re.trackArea,children:a.map(l=>{const c=Mn({time:l.time,windowStart:t,windowSeconds:n,width:o});return b.jsx("button",{type:"button",className:Re.event,onPointerDown:u=>{u.stopPropagation()},onClick:()=>i(l.time,l),style:{left:`${c}px`},"aria-label":`Evento em ${l.time.toFixed(2)}s`,children:l.icon?l.icon:b.jsx("span",{className:Re.eventDot})},l.id)})})};Tv.displayName="EventsTrack";const Pv=({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=190,autoZoomOnSelection:d=!0,showZoomControls:f=!0,enableScrubOnTracks:p=!1,clearSelectionOnEventClick:h=!0,onDownloadClick:m,date:g,onDateChange:y,videoLabel:v="Vídeo",eventsLabel:C="Eventos",downloadLabel:x="Baixar vídeo",onSegmentClick:S,onEventClick:T,segments:E,events:M,...A})=>{const V=ie.useTheme().palette.mode==="dark",[j,w]=L.useState(!1),N=ac(hu),R=ac(mu);L.useEffect(()=>{E!==void 0&&N(E)},[E,N]),L.useEffect(()=>{M!==void 0&&R(M)},[M,R]);const I=a??(i==="duration"?GL:qL),{viewportRef:D,axisLeft:_,axisWidth:F,zoom:B,currentTime:$,selectedRange:k,videoSegments:W,events:K,view:G,ticks:Z,onWheel:U,onPointerDownScrub:Q,onPointerDownSelect:J,onPointerDownPlayhead:ee,onPointerMove:q,onPointerUp:X,onClickSegment:Y,onClickEvent:oe,setZoom:te}=ZL({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:I,clearSelectionOnEventClick:h}),ae=F?_+Mn({time:$,windowStart:G.start,windowSeconds:G.seconds,width:F}):_,re=Math.max(1/Math.max(1,B.fps),.5),be=re/l,se=(()=>{const ue=tt(G.seconds,re,l);if(be<=0||be>=1)return 0;const de=Math.log(ue/l)/Math.log(be)*100;return tt(de,0,100)})(),he=ue=>{const de=tt(ue,0,100),Ie=l*Math.pow(be,de/100);te(Me=>({...Me,windowSeconds:tt(Ie,re,l)}))},le=`${Math.round(se)}%`;return b.jsxs(H.Box,{className:`${Re.root} ${Re.container} ${e??""}`.trim(),"data-theme":V?"dark":"light",sx:t,...A,children:[r?b.jsxs("div",{className:Re.header,children:[b.jsxs("div",{className:Re.headerText,children:[b.jsx(H.Typography,{variant:"subtitle1",className:Re.headerTitle,children:n}),b.jsx(H.Typography,{variant:"body2",className:Re.headerSubtitle,children:o})]}),b.jsxs("div",{className:Re.controls,children:[m?b.jsxs("button",{type:"button",className:Re.headerButton,onClick:m,"aria-label":x,children:[b.jsx(rk,{fontSize:"small"}),x]}):null,g!==void 0?b.jsx(la,{dateAdapter:dL,children:b.jsx(fd,{open:j,onOpen:()=>w(!0),onClose:()=>w(!1),value:mt(g),onChange:ue=>{ue&&y&&y(ue.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:Re.headerButton,onClick:()=>w(!0),"aria-label":"Selecionar data",children:[b.jsx(sk,{fontSize:"small"}),mt(g).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(H.Box,{className:Re.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(H.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>he(se-10),children:b.jsx(ok,{fontSize:"small"})}),b.jsx("span",{className:Re.zoomLabel,children:le}),b.jsx(H.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>he(se+10),children:b.jsx(nk,{fontSize:"small"})})]}):null]})]}):null,b.jsx(H.Box,{className:`${Re.tracksWrapper} ${r?Re.tracksWithHeader:""}`.trim(),style:{height:u},children:b.jsxs("div",{ref:D,className:Re.layers,onWheel:U,onPointerMove:q,onPointerUp:X,children:[b.jsxs("div",{className:Re.playhead,style:{left:`${ae}px`},onPointerDown:ee,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":$,tabIndex:0,children:[b.jsx("div",{className:Re.playheadHandle}),b.jsx("div",{className:Re.playheadLine})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.timeScale}`.trim(),children:[b.jsx("div",{}),b.jsx("div",{onPointerDown:Q,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(wv,{ticks:Z})})]}),b.jsxs(H.Box,{className:Re.trackBox,onPointerDown:J,children:[k?b.jsx("div",{className:Re.selectionOverlay,style:{left:`${_+Mn({time:k.start,windowStart:G.start,windowSeconds:G.seconds,width:F})}px`,width:`${Math.max(0,Mn({time:k.end,windowStart:G.start,windowSeconds:G.seconds,width:F})-Mn({time:k.start,windowStart:G.start,windowSeconds:G.seconds,width:F}))}px`}}):null,b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.videoTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:v}),b.jsx("div",{onPointerDown:p?Q:void 0,style:{height:"100%"},children:b.jsx(Cv,{segments:W,viewStart:G.start,viewSeconds:G.seconds,width:F,totalSeconds:l,onClickSegment:(ue,de)=>{Y(ue),S==null||S(ue,de)}})})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.eventsTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:C}),b.jsx("div",{onPointerDown:p?Q:void 0,style:{height:"100%"},children:b.jsx(Tv,{events:K,viewStart:G.start,viewSeconds:G.seconds,width:F,totalSeconds:l,onClickEvent:(ue,de)=>{oe(ue),T==null||T(ue,de)}})})]})]})]})})]})};Pv.displayName="VideoTimeline";const XL=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=ia(),[a,l]=Un(ra),[c,u]=Un(sa),d=Di(pu),f=L.useRef(-1);return L.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(WL()),p=requestAnimationFrame(m))};return p=requestAnimationFrame(m),()=>{h=!1,p!=null&&cancelAnimationFrame(p)}},[e,l,u,t]),L.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]),L.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]),L.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},Ev=({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:C,height:x,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:A,borderRadius:O})=>{const V=!!e,j=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(Py,{children:[b.jsx(yu,{stream:e,availableQualities:j,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:C,height:x,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:A,borderRadius:O}),b.jsx(XL,{isStream:V,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Ev.displayName="VideoPlayerWebRTC";const QL=ft(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),JL="_container_1vjy6_1",e$="_segment_1vjy6_7",t$="_selected_1vjy6_20",n$="_label_1vjy6_28",o$="_icon_1vjy6_37",r$="_checkIcon_1vjy6_47",s$="_unselected_1vjy6_53",go={container:JL,segment:e$,selected:t$,label:n$,icon:o$,checkIcon:r$,unselected:s$},Mv=({items:e,className:t,sx:n,...o})=>{const i=H.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(H.Box,{className:`${go.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(H.Box,{className:`${go.segment} ${l.selected?go.selected:go.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(H.Box,{className:go.icon,children:b.jsx(QL,{className:go.checkIcon})}),b.jsx(H.Box,{className:go.label,children:l.label})]},c))})};Mv.displayName="DisplayTypes";const i$=600,vl=[.32,.72,0,1],xl=400,Ov=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=i$,className:l,sx:c})=>{const u=H.useTheme(),d=H.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${xl}ms cubic-bezier(${vl.join(",")}), min-width ${xl}ms cubic-bezier(${vl.join(",")})`;if(d&&i!=="both")return b.jsxs(H.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(H.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(H.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(H.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${xl}ms cubic-bezier(${vl.join(",")})`,...c},children:[b.jsx(H.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(H.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};Ov.displayName="SplitLayout";const a$=256,kv=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=a$,gap:r=2,className:i,sx:a})=>{const c=H.useTheme().spacing(r),u=n-1;return b.jsx(H.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})};kv.displayName="ResponsiveGrid";const Dv=ft(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var l$=e=>e.type==="checkbox",qr=e=>e instanceof Date,pd=e=>e==null;const Rv=e=>typeof e=="object";var Ao=e=>!pd(e)&&!Array.isArray(e)&&Rv(e)&&!qr(e),c$=e=>Ao(e)&&e.target?l$(e.target)?e.target.checked:e.target.value:e,u$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d$=(e,t)=>e.has(u$(t)),f$=e=>{const t=e.constructor&&e.constructor.prototype;return Ao(t)&&t.hasOwnProperty("isPrototypeOf")},p$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Iv(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(p$&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Ao(e)&&f$(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Iv(e[r]));return o}var Av=e=>/^\w*$/.test(e),xc=e=>e===void 0,h$=e=>Array.isArray(e)?e.filter(Boolean):[],Nv=e=>h$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(e,t,n)=>{if(!t||!Ao(e))return n;const o=(Av(t)?[t]:Nv(t)).reduce((r,i)=>pd(r)?r:r[i],e);return xc(o)||o===e?xc(e[t])?n:e[t]:o},Sl=e=>typeof e=="boolean",ri=e=>typeof e=="function",Rh=(e,t,n)=>{let o=-1;const r=Av(t)?[t]:Nv(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=Ao(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Ih={BLUR:"blur",CHANGE:"change"},Ah={all:"all"},_v=L.createContext(null);_v.displayName="HookFormControlContext";const hd=()=>L.useContext(_v);var m$=(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]!==Ah.all&&(t._proxyFormState[a]=!o||Ah.all),n&&(n[a]=!0),e[a]}});return r};const jv=typeof window<"u"?L.useLayoutEffect:L.useEffect;function g$(e){const t=hd(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=L.useState(n._formState),c=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return jv(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),L.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),L.useMemo(()=>m$(a,n,c.current,!1),[a,n])}var y$=e=>typeof e=="string",Nh=(e,t,n,o,r)=>y$(e)?Lt(n,e,r):Array.isArray(e)?e.map(i=>Lt(n,i)):n,_h=e=>pd(e)||!Rv(e);function hi(e,t,n=new WeakSet){if(_h(e)||_h(t))return Object.is(e,t);if(qr(e)&&qr(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(qr(a)&&qr(l)||Ao(a)&&Ao(l)||Array.isArray(a)&&Array.isArray(l)?!hi(a,l,n):!Object.is(a,l))return!1}}return!0}function b$(e){const t=hd(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=L.useRef(r),u=L.useRef(l),d=L.useRef(void 0),f=L.useRef(n),p=L.useRef(o);u.current=l;const[h,m]=L.useState(()=>{const S=n._getWatch(o,c.current);return u.current?u.current(S):S}),g=L.useCallback(S=>{const T=Nh(o,n._names,S||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=L.useCallback(S=>{if(!i){const T=Nh(o,n._names,S||n._formValues,!1,c.current);if(u.current){const E=u.current(T);hi(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);jv(()=>((f.current!==n||!hi(p.current,o))&&(f.current=n,p.current=o,y()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:S=>{y(S.values)}})),[n,a,o,y]),L.useEffect(()=>n._removeUnmounted());const v=f.current!==n,C=p.current,x=L.useMemo(()=>{if(i)return null;const S=!v&&!hi(C,o);return v||S?g():null},[i,v,o,C,g]);return x!==null?x:h}function v$(e){const t=hd(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=d$(r._names.array,n),u=L.useMemo(()=>Lt(r._formValues,n,Lt(r._defaultValues,n,a)),[r,n,a]),d=b$({control:r,name:n,defaultValue:u,exact:l}),f=g$({control:r,name:n,exact:l}),p=L.useRef(e),h=L.useRef(void 0),m=L.useRef(r.register(n,{...e.rules,value:d,...Sl(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=L.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Lt(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Lt(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Lt(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Lt(f.validatingFields,n)},error:{enumerable:!0,get:()=>Lt(f.errors,n)}}),[f,n]),y=L.useCallback(S=>m.current.onChange({target:{value:c$(S),name:n},type:Ih.CHANGE}),[n]),v=L.useCallback(()=>m.current.onBlur({target:{value:Lt(r._formValues,n),name:n},type:Ih.BLUR}),[n,r._formValues]),C=L.useCallback(S=>{const T=Lt(r._fields,n);T&&T._f&&S&&(T._f.ref={focus:()=>ri(S.focus)&&S.focus(),select:()=>ri(S.select)&&S.select(),setCustomValidity:E=>ri(S.setCustomValidity)&&S.setCustomValidity(E),reportValidity:()=>ri(S.reportValidity)&&S.reportValidity()})},[r._fields,n]),x=L.useMemo(()=>({name:n,value:d,...Sl(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:C}),[n,o,f.disabled,y,v,C,d]);return L.useEffect(()=>{const S=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...Sl(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,A)=>{const O=Lt(r._fields,M);O&&O._f&&(O._f.mount=A)};if(E(n,!0),S){const M=Iv(Lt(r._options.defaultValues,n,p.current.defaultValue));Rh(r._defaultValues,n,M),xc(Lt(r._formValues,n))&&Rh(r._formValues,n,M)}return!c&&r.register(n),h.current=n,()=>{(c?S&&!r._state.action:S)?r.unregister(n):E(n,!1)}},[n,r,c,i]),L.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),L.useMemo(()=>({field:x,formState:f,fieldState:g}),[x,f,g])}const md=e=>e.render(v$(e)),x$=L.createContext(null);x$.displayName="HookFormContext";const S$="_formSelect_s09hu_1",w$="_labelWrapper_s09hu_5",C$="_inputLabel_s09hu_9",T$="_placeholder_s09hu_75",P$="_helperText_s09hu_121",yo={formSelect:S$,labelWrapper:w$,inputLabel:C$,placeholder:T$,helperText:P$},Lv=({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=H.useTheme().palette.mode==="dark";return b.jsx(md,{name:t,control:e,render:({field:m,fieldState:g})=>{var x;const y=!!g.error,v=y||!!i,C=y?(x=g.error)==null?void 0:x.message:i;return b.jsxs("div",{className:`${yo.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:yo.labelWrapper,children:b.jsxs("span",{className:yo.inputLabel,children:[n,a?" *":""]})}),b.jsxs(H.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(H.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(S=>{if(S===""||S===null||S===void 0)return b.jsx("span",{className:yo.placeholder,children:r||""});const T=o.find(E=>E.value===S);return(T==null?void 0:T.label)||String(S)}),className:yo.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(H.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:yo.placeholder,children:r})}),o.map(S=>{const T=m.value===S.value;return b.jsxs(H.MenuItem,{value:S.value,disabled:S.disabled,children:[T&&b.jsx(H.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Dv,{sx:{fontSize:20}})}),S.label]},String(S.value))})]}),v&&b.jsx(H.FormHelperText,{className:yo.helperText,children:C})]})]})}})};Lv.displayName="FormSelect";const E$="_formMultiSelect_1d6fa_1",M$="_labelWrapper_1d6fa_5",O$="_inputLabel_1d6fa_9",k$="_placeholder_1d6fa_75",D$="_helperText_1d6fa_124",R$="_chipsContainer_1d6fa_153",I$="_chip_1d6fa_153",Tn={formMultiSelect:E$,labelWrapper:M$,inputLabel:O$,placeholder:k$,helperText:D$,chipsContainer:R$,chip:I$},$v=({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 C=H.useTheme().palette.mode==="dark";return b.jsx(md,{name:t,control:e,render:({field:x,fieldState:S})=>{var j;const T=!!S.error,E=T||!!i,M=T?(j=S.error)==null?void 0:j.message:i,A=Array.isArray(x.value)?x.value:[];A.length>0;const V=f||(w=>{if(!Array.isArray(w)||w.length===0)return b.jsx("span",{className:Tn.placeholder,children:r||""});const N=d?w.slice(0,d):w,R=d&&w.length>d?w.length-d:0;return b.jsxs(H.Box,{className:Tn.chipsContainer,children:[N.map(I=>{const D=o.find(_=>_.value===I);return b.jsx(H.Chip,{label:(D==null?void 0:D.label)||String(I),size:"small",variant:u,className:Tn.chip},String(I))}),R>0&&b.jsx(H.Chip,{label:`+${R}`,size:"small",variant:u,className:Tn.chip})]})});return b.jsxs("div",{className:`${Tn.formMultiSelect} ${p||""}`,"data-theme":C?"dark":"light",children:[b.jsx("div",{className:Tn.labelWrapper,children:b.jsxs("span",{className:Tn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(H.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(H.Select,{...x,...y,variant:"outlined",multiple:!0,value:A,onChange:w=>{x.onChange(w.target.value)},displayEmpty:!!r,renderValue:V,className:Tn.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)",...C?{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",...C?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...C?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...C?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:C?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(w=>{const N=A.includes(w.value);return b.jsxs(H.MenuItem,{value:w.value,disabled:w.disabled,children:[N&&b.jsx(H.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Dv,{sx:{fontSize:20}})}),w.label]},String(w.value))})}),E&&b.jsx(H.FormHelperText,{className:Tn.helperText,children:M})]})]})}})};$v.displayName="FormMultiSelect";const A$="_formInput_195f5_1",N$="_labelWrapper_195f5_5",_$="_inputLabel_195f5_9",$r={formInput:A$,labelWrapper:N$,inputLabel:_$},Vv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,...d})=>{const p=H.useTheme().palette.mode==="dark";return b.jsx(md,{name:t,control:e,render:({field:h,fieldState:m})=>{var v;const g=!!m.error,y=g?(v=m.error)==null?void 0:v.message:i;return b.jsxs("div",{className:`${$r.formInput} ${u||""}`,"data-theme":p?"dark":"light",children:[b.jsx("div",{className:$r.labelWrapper,children:b.jsxs("span",{className:$r.inputLabel,children:[n,a?" *":""]})}),b.jsx(H.TextField,{...h,...d,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:g,helperText:y,variant:"outlined",className:$r.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:$r.inputRoot}})]})}})};Vv.displayName="FormInput";const j$="_viewChip_18qqe_1",L$="_active_18qqe_61",$$="_icon_18qqe_76",V$="_label_18qqe_81",si={viewChip:j$,active:L$,icon:$$,label:V$},Fv=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=H.useTheme().palette.mode==="dark";return b.jsxs(H.Box,{ref:i,className:`${si.viewChip} ${n?si.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(H.Box,{className:si.icon,component:"div",children:t}),b.jsx(H.Box,{className:si.label,component:"span",children:e})]})};Fv.displayName="ViewChip";exports.Button=Sc;exports.CAMERA_ALGORITHM_FACIAL=Ms;exports.CAMERA_ALGORITHM_LPR=Os;exports.CameraCard=CM;exports.CountCard=LS;exports.DisplayTypes=Mv;exports.FilterButton=Wh;exports.FilterChip=Uh;exports.FilterModal=fm;exports.FormInput=Vv;exports.FormMultiSelect=$v;exports.FormSelect=Lv;exports.GoogleMap=iy;exports.MapContent=uu;exports.MapMarkers=dy;exports.MapSpot=lu;exports.ModuleMenu=gy;exports.NotFoundContent=py;exports.ResponsiveGrid=kv;exports.SearchBar=fy;exports.SidebarMenu=my;exports.SplitLayout=Ov;exports.VideoControlProvider=Py;exports.VideoPlayer=yu;exports.VideoPlayerWebRTC=Ev;exports.VideoTimeline=Pv;exports.ViewChip=Fv;exports.VisioThemeProvider=Kv;exports.ZoomControls=DM;exports.currentTimeAtom=ra;exports.darkColors=at;exports.darkTheme=Bh;exports.eventsAtom=mu;exports.isLiveAtom=sa;exports.lightColors=it;exports.lightTheme=Fh;exports.radiiTokens=ii;exports.selectedRangeAtom=pu;exports.spacingScale=Yv;exports.spacingTokens=$h;exports.typographyTokens=Tt;exports.useGoogleMapContext=cu;exports.useVideoControl=ia;exports.useVideoControlRequired=D2;exports.useVisioTheme=Zv;exports.videoSegmentsAtom=hu;exports.zoomAtom=Ty;
|
|
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([In,s.func]),disableScrollLock:s.bool,elevation:eb,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:pa}),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 U5(e){return Te("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const H5={vertical:"top",horizontal:"right"},Y5={vertical:"top",horizontal:"left"},q5=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},U5,t)},G5=ye(Wb,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),K5=ye(zb,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z5=ye(Bb,{name:"MuiMenu",slot:"List"})({outline:0}),Ub=P.forwardRef(function(t,n){const o=Le({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:C={},...S}=o,w=ln(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},E=q5(T),M=r&&!l&&d,A=P.useRef(null),k=(F,$)=>{A.current&&A.current.adjustStyleForScrollbar(F,{direction:w?"rtl":"ltr"}),m&&m(F,$)},V=F=>{F.key==="Tab"&&(F.preventDefault(),u&&u(F,"tabKeyDown"))};let L=-1;P.Children.map(i,(F,$)=>{P.isValidElement(F)&&(process.env.NODE_ENV!=="production"&&Ro.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||L===-1)&&(L=$))});const x={slots:v,slotProps:{list:c,transition:g,paper:f,...C}},j=_e({elementType:v.root,externalSlotProps:C.root,ownerState:T,className:[E.root,a]}),[O,I]=nt("paper",{className:E.paper,elementType:K5,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:T}),[D,N]=nt("list",{className:ge(E.list,c.className),elementType:Z5,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:F=>({...F,onKeyDown:$=>{var R;V($),(R=F.onKeyDown)==null||R.call(F,$)}}),ownerState:T}),B=typeof x.slotProps.transition=="function"?x.slotProps.transition(T):x.slotProps.transition;return b.jsx(G5,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?H5:Y5,slots:{root:v.root,paper:O,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:j,paper:I,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...B,onEntering:(...F)=>{var $;k(...F),($=B==null?void 0:B.onEntering)==null||$.call(B,...F)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...S,classes:p,children:b.jsx(D,{actions:A,autoFocus:r&&(L===-1||l),autoFocusItem:M,variant:y,...N,children:i})})});process.env.NODE_ENV!=="production"&&(Ub.propTypes={anchorEl:s.oneOfType([In,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 X5(e){return Te("MuiNativeSelect",e)}const Ju=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Q5=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,X5,t)},Hb=ye("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ju.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}}}]})),J5=ye(Hb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ju.multiple}`]:t.multiple}]}})({}),Yb=ye("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ju.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}}]})),eN=ye(Yb,{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]}})({}),qb=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=Q5(d);return b.jsxs(P.Fragment,{children:[b.jsx(J5,{ownerState:d,className:ge(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:b.jsx(eN,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(qb.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:yt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function Gb(e){return Te("MuiSelect",e)}const _r=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Th;const tN=ye(Hb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${_r.select}`]:t.select},{[`&.${_r.select}`]:t[n.variant]},{[`&.${_r.error}`]:t.error},{[`&.${_r.multiple}`]:t.multiple}]}})({[`&.${_r.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nN=ye(Yb,{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]}})({}),oN=ye("input",{shouldForwardProp:e=>pm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ph(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function rN(e){return e==null||typeof e=="string"&&!e.trim()}const sN=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,Gb,t)},Kb=P.forwardRef(function(t,n){var pt,wt,jt,jn;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:C,name:S,onBlur:w,onChange:T,onClose:E,onFocus:M,onKeyDown:A,onMouseDown:k,onOpen:V,open:L,readOnly:x,renderValue:j,required:O,SelectDisplayProps:I={},tabIndex:D,type:N,value:B,variant:F="standard",...$}=t,[R,W]=Gn({controlled:B,default:d,name:"Select"}),[K,G]=Gn({controlled:L,default:u,name:"Select"}),Z=P.useRef(null),U=P.useRef(null),[Q,J]=P.useState(null),{current:ee}=P.useRef(L!=null),[q,X]=P.useState(),Y=je(n,g),oe=P.useCallback(me=>{U.current=me,me&&J(me)},[]),te=Q==null?void 0:Q.parentNode;P.useImperativeHandle(Y,()=>({focus:()=>{U.current.focus()},node:Z.current,value:R}),[R]);const ae=Q!==null&&K;P.useEffect(()=>{if(!ae||!te||a||typeof ResizeObserver>"u")return;const me=new ResizeObserver(()=>{X(te.clientWidth)});return me.observe(te),()=>{me.disconnect()}},[ae,te,a]),P.useEffect(()=>{u&&K&&Q&&!ee&&(X(a?null:te.clientWidth),U.current.focus())},[Q,a]),P.useEffect(()=>{i&&U.current.focus()},[i]),P.useEffect(()=>{if(!y)return;const me=Ct(U.current).getElementById(y);if(me){const Ae=()=>{getSelection().isCollapsed&&U.current.focus()};return me.addEventListener("click",Ae),()=>{me.removeEventListener("click",Ae)}}},[y]);const re=(me,Ae)=>{me?V&&V(Ae):E&&E(Ae),ee||(X(a?null:te.clientWidth),G(me))},be=me=>{k==null||k(me),me.button===0&&(me.preventDefault(),U.current.focus(),re(!0,me))},se=me=>{re(!1,me)},he=P.Children.toArray(l),le=me=>{const Ae=he.find(bt=>bt.props.value===me.target.value);Ae!==void 0&&(W(Ae.props.value),T&&T(me,Ae))},ue=me=>Ae=>{let bt;if(Ae.currentTarget.hasAttribute("tabindex")){if(C){bt=Array.isArray(R)?R.slice():[];const so=R.indexOf(me.props.value);so===-1?bt.push(me.props.value):bt.splice(so,1)}else bt=me.props.value;if(me.props.onClick&&me.props.onClick(Ae),R!==bt&&(W(bt),T)){const so=Ae.nativeEvent||Ae,Aa=new so.constructor(so.type,so);Object.defineProperty(Aa,"target",{writable:!0,value:{value:bt,name:S}}),T(Aa,me)}C||re(!1,Ae)}},de=me=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),re(!0,me)),A==null||A(me))},Ie=me=>{!ae&&w&&(Object.defineProperty(me,"target",{writable:!0,value:{value:R,name:S}}),w(me))};delete $["aria-invalid"];let Me,Ze;const Je=[];let ke=!1,ut=!1;($i({value:R})||p)&&(j?Me=j(R):ke=!0);const Se=he.map(me=>{if(!P.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Ro.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
239
|
+
`));let Ae;if(C){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`.":bn(2));Ae=R.some(bt=>Ph(bt,me.props.value)),Ae&&ke&&Je.push(me.props.children)}else Ae=Ph(R,me.props.value),Ae&&ke&&(Ze=me.props.children);return Ae&&(ut=!0),P.cloneElement(me,{"aria-selected":Ae?"true":"false",onClick:ue(me),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(bt)},role:"option",selected:Ae,value:void 0,"data-value":me.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!ut&&!C&&R!==""){const me=he.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${R}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
|
|
240
|
+
`))}},[ut,he,C,S,R]),ke&&(C?Je.length===0?Me=null:Me=Je.reduce((me,Ae,bt)=>(me.push(Ae),bt<Je.length-1&&me.push(", "),me),[]):Me=Ze);let Pe=q;!a&&ee&&Q&&(Pe=te.clientWidth);let xe;typeof D<"u"?xe=D:xe=f?null:0;const $e=I.id||(S?`mui-component-select-${S}`:void 0),Ve={...t,variant:F,value:R,open:ae,error:h},ot=sN(Ve),Xe={...v.PaperProps,...typeof((pt=v.slotProps)==null?void 0:pt.paper)=="function"?v.slotProps.paper(Ve):(wt=v.slotProps)==null?void 0:wt.paper},_t={...v.MenuListProps,...typeof((jt=v.slotProps)==null?void 0:jt.list)=="function"?v.slotProps.list(Ve):(jn=v.slotProps)==null?void 0:jn.list},Oe=eo();return b.jsxs(P.Fragment,{children:[b.jsx(tN,{as:"div",ref:oe,tabIndex:xe,role:"combobox","aria-controls":ae?Oe:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,$e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":O?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:de,onMouseDown:f||x?null:be,onBlur:Ie,onFocus:M,...I,ownerState:Ve,className:ge(I.className,ot.select,c),id:$e,children:rN(Me)?Th||(Th=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),b.jsx(oN,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:S,ref:Z,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:ot.nativeInput,autoFocus:i,required:O,...$,ownerState:Ve}),b.jsx(nN,{as:m,className:ot.icon,ownerState:Ve}),b.jsx(Ub,{id:`menu-${S||""}`,anchorEl:te,open:ae,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Oe,..._t},paper:{...Xe,style:{minWidth:Pe,...Xe!=null?Xe.style:null}}},children:Se})]})});process.env.NODE_ENV!=="production"&&(Kb.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:yt,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 iN=ft(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),aN=e=>{const{classes:t}=e,o=we({root:["root"]},Gb,t);return{...t,...o}},ed={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>cn(e)&&e!=="variant"},lN=ye(wa,ed)(""),cN=ye(Ta,ed)(""),uN=ye(Ca,ed)(""),td=P.forwardRef(function(t,n){const o=Le({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=iN,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:C=!1,onClose:S,onOpen:w,open:T,renderValue:E,SelectDisplayProps:M,variant:A="outlined",...k}=o,V=C?qb:Kb,L=_n(),x=wr({props:o,muiFormControl:L,states:["variant","error"]}),j=x.variant||A,O={...o,variant:j,classes:a},I=aN(O),{root:D,...N}=I,B=p||{standard:b.jsx(lN,{ownerState:O}),outlined:b.jsx(cN,{label:m,ownerState:O}),filled:b.jsx(uN,{ownerState:O})}[j],F=je(n,As(B));return b.jsx(P.Fragment,{children:P.cloneElement(B,{inputComponent:V,inputProps:{children:i,error:x.error,IconComponent:d,variant:j,type:void 0,multiple:v,...C?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:S,onOpen:w,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?Dt(N,h.classes):N,...p?p.props.inputProps:{}},...(v&&C||u)&&j==="outlined"?{notched:!0}:{},ref:F,className:ge(B.props.className,l,I.root),...!p&&{variant:j},...k})})});process.env.NODE_ENV!=="production"&&(td.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"])});td.muiName="Select";function dN(e){return Te("MuiTextField",e)}Ce("MuiTextField",["root"]);const fN={standard:wa,filled:Ca,outlined:Ta},pN=e=>{const{classes:t}=e;return we({root:["root"]},dN,t)},hN=ye(Ku,{name:"MuiTextField",slot:"Root"})({}),Zb=P.forwardRef(function(t,n){const o=Le({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:C,inputRef:S,label:w,maxRows:T,minRows:E,multiline:M=!1,name:A,onBlur:k,onChange:V,onFocus:L,placeholder:x,required:j=!1,rows:O,select:I=!1,SelectProps:D,slots:N={},slotProps:B={},type:F,value:$,variant:R="outlined",...W}=o,K={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:j,select:I,variant:R},G=pN(K);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Z=eo(g),U=m&&Z?`${Z}-helper-text`:void 0,Q=w&&Z?`${Z}-label`:void 0,J=fN[R],ee={slots:N,slotProps:{input:C,inputLabel:y,htmlInput:v,formHelperText:p,select:D,...B}},q={},X=ee.slotProps.inputLabel;R==="outlined"&&(X&&typeof X.shrink<"u"&&(q.notched=X.shrink),q.label=w),I&&((!D||!D.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[Y,oe]=nt("root",{elementType:hN,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,...W},ownerState:K,className:ge(G.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:j,color:c,variant:R}}),[te,ae]=nt("input",{elementType:J,externalForwardedProps:ee,additionalProps:q,ownerState:K}),[re,be]=nt("inputLabel",{elementType:Gu,externalForwardedProps:ee,ownerState:K}),[se,he]=nt("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:K}),[le,ue]=nt("formHelperText",{elementType:Zu,externalForwardedProps:ee,ownerState:K}),[de,Ie]=nt("select",{elementType:td,externalForwardedProps:ee,ownerState:K}),Me=b.jsx(te,{"aria-describedby":U,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:A,rows:O,maxRows:T,minRows:E,type:F,value:$,id:Z,inputRef:S,onBlur:k,onChange:V,onFocus:L,placeholder:x,inputProps:he,slots:{input:N.htmlInput?se:void 0},...ae});return b.jsxs(Y,{...oe,children:[w!=null&&w!==""&&b.jsx(re,{htmlFor:Z,id:Q,...be,children:w}),I?b.jsx(de,{"aria-describedby":U,id:Z,labelId:Q,value:$,input:Me,...Ie,children:a}):Me,m&&b.jsx(le,{id:U,...ue,children:m})]})});process.env.NODE_ENV!=="production"&&(Zb.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:yt,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 mN(e){return Te("MuiIconButton",e)}const Eh=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),gN=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,mN,t)},yN=ye(pr,{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)}`]]}})(qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(zt()).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)}}],[`&.${Eh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Eh.loading}`]:{color:"transparent"}}))),bN=ye("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"}}]})),vs=P.forwardRef(function(t,n){const o=Le({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=eo(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},C=gN(v);return b.jsxs(yN,{id:p?g:f,className:ge(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:b.jsx(bN,{className:C.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(vs.propTypes={children:Nn(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 vN(e){return Te("MuiInputAdornment",e)}const Mh=Ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Oh;const xN=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},SN=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,vN,t)},wN=ye("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xN})(qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Mh.positionStart}&:not(.${Mh.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Xb=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=o,p=_n()||{};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=SN(m);return b.jsx(Vs.Provider,{value:null,children:b.jsx(wN,{as:a,ownerState:m,className:ge(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?b.jsx(no,{color:"textSecondary",children:r}):b.jsxs(P.Fragment,{children:[u==="start"?Oh||(Oh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Xb.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 Bn=7;function nd(e){const{ownerState:t}=Et(),n=ln();return P.useMemo(()=>z({},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 CN=ft(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),TN=ft(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),PN=ft(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),EN=ft(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");ft(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");ft(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");ft(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 MN=ft(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 ON(e){return Te("MuiPickersTextField",e)}Ce("MuiPickersTextField",["root","focused","disabled","error","required"]);const kN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function DN(e){return Te("MuiPickersInputBase",e)}const rr=Ce("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function RN(e){return Te("MuiPickersSectionList",e)}const Ho=Ce("MuiPickersSectionList",["root","section","sectionContent"]),IN=["slots","slotProps","elements","sectionListRef","classes"],Qb=ie.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Jb=ie.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),ev=ie.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),tv=ie.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),AN=e=>we({root:["root"],section:["section"],sectionContent:["sectionContent"]},RN,e);function nv(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=Et(),a=(t==null?void 0:t.section)??Jb,l=_e({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??tv,u=_e({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)??ev,f=_e({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:z({},i,{separatorPosition:"before"})}),p=_e({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:z({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=je(u.ref,h),g=y=>{const v=y.relatedTarget,C=y.currentTarget.closest(`.${Ho.root}`);if(C&&v instanceof Node&&C.contains(v)){y.stopPropagation();return}};return b.jsxs(a,z({},l,{children:[b.jsx(d,z({},f)),b.jsx(c,z({},u,{ref:m,onBlur:g})),b.jsx(d,z({},p))]}))}process.env.NODE_ENV!=="production"&&(nv.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 od=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Ee(o,IN),d=AN(c),{ownerState:f}=Et(),p=P.useRef(null),h=je(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(`.${Ho.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${Ho.section}[data-sectionindex="${v}"] .${Ho.sectionContent}`)},getSectionIndexFromDOMElement(v){const C=m("getSectionIndexFromDOMElement");if(v==null||!C.contains(v))return null;let S=null;return v.classList.contains(Ho.section)?S=v:v.classList.contains(Ho.sectionContent)&&(S=v.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??Qb,y=_e({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,z({},y,{children:y.contentEditable?a.map(({content:v,before:C,after:S})=>`${C.children}${v.children}${S.children}`).join(""):b.jsx(P.Fragment,{children:a.map((v,C)=>b.jsx(nv,{slots:r,slotProps:i,element:v,classes:d},C))})}))});process.env.NODE_ENV!=="production"&&(od.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(od.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 rd=P.createContext(null);process.env.NODE_ENV!=="production"&&(rd.displayName="PickerTextFieldOwnerStateContext");const Pa=()=>{const e=P.useContext(rd);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},NN=["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"],_N=e=>Math.round(e*1e5)/1e5,Ea=ie.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>z({},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:`${_N(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),sd=ie.styled(Qb,{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}}]})),jN=ie.styled(Jb,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),LN=ie.styled(tv,{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"})),$N=ie.styled(ev,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),VN=ie.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},kN)),FN=ie.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]}})),BN=(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,DN,e)};function kh(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 zN(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+=kh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=kh(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 Fs=P.forwardRef(function(t,n){const o=ie.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:C,name:S,readOnly:w,inputProps:T,inputRef:E,sectionListRef:M,onFocus:A,onBlur:k,classes:V,ownerState:L}=o,x=Ee(o,NN),j=Pa(),O=P.useRef(null),I=P.useRef(null),D=P.useRef([]),N=je(n,O),B=je(T==null?void 0:T.ref,E),F=_n();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const $=L??j,R=q=>{var X;(X=F.onFocus)==null||X.call(F,q),A==null||A(q)},W=q=>{R(q)},K=q=>{var X,Y;if(C==null||C(q),q.key==="Enter"&&!q.defaultMuiPrevented){if((X=O.current)!=null&&X.dataset.multiInput)return;const oe=(Y=O.current)==null?void 0:Y.closest("form"),te=oe==null?void 0:oe.querySelector('[type="submit"]');if(!oe||!te)return;q.preventDefault(),oe.requestSubmit(te)}},G=q=>{var X;(X=F.onBlur)==null||X.call(F,q),k==null||k(q)};P.useEffect(()=>{F&&F.setAdornedStart(!!d)},[F,d]),P.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const Z=BN(V,$),U=(p==null?void 0:p.root)||Ea,Q=_e({elementType:U,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:x,additionalProps:{"aria-invalid":F.error,ref:N},className:Z.root,ownerState:$}),J=(p==null?void 0:p.input)||sd,ee=r.some(q=>q.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!ee||!$.isPickerOpen)return;const{activeBarWidth:q,sectionOffsets:X}=zN(r,O);D.current=[X[0],X[1]],I.current&&(I.current.style.width=`${q}px`)},[r,ee,$.isPickerOpen]),b.jsxs(U,z({},Q,{children:[d,b.jsx(od,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:Z.sectionsContainer,onFocus:R,onBlur:G,onInput:y,onPaste:v,onKeyDown:K,slots:{root:J,section:jN,sectionContent:LN,sectionSeparator:$N},slotProps:{root:z({},h==null?void 0:h.input,{ownerState:$}),sectionContent:{className:rr.sectionContent},sectionSeparator:({separatorPosition:q})=>({className:q==="before"?rr.sectionBefore:rr.sectionAfter})}}),u,f?f(z({},F)):null,b.jsx(VN,z({name:S,className:Z.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:F.required,disabled:F.disabled,onFocus:W},T,{ref:B})),ee&&b.jsx(FN,{className:Z.activeBar,ref:I,ownerState:{sectionOffsets:D.current}})]}))});process.env.NODE_ENV!=="production"&&(Fs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Fs.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:yt,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 WN(e){return Te("MuiPickersOutlinedInput",e)}const sn=z({},rr,Ce("MuiPickersOutlinedInput",["root","notchedOutline","input"])),UN=["children","className","label","notched","shrink"],HN=ie.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}}),Dh=ie.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),YN=ie.styled("legend",{slot:"internal",shouldForwardProp:e=>Hn(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 qN(e){const{className:t,label:n,notched:o}=e,r=Ee(e,UN),i=Pa();return b.jsx(HN,z({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(YN,{ownerState:i,notched:o,children:n?b.jsx(Dh,{children:n}):b.jsx(Dh,{className:"notranslate",children:""})})}))}const GN=["label","autoFocus","ownerState","classes","notched"],KN=ie.styled(Ea,{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 .${sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${sn.focused} .${sn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${sn.disabled}`]:{[`& .${sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${sn.error} .${sn.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:{[`&.${sn.focused}:not(.${sn.error}) .${sn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),ZN=ie.styled(sd,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),XN=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},WN,e);return z({},e,n)},Ma=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Ee(o,GN),c=_n(),u=XN(i);return b.jsx(Fs,z({slots:{root:KN,input:ZN},renderSuffix:d=>b.jsx(qN,{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"&&(Ma.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Ma.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:yt,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});Ma.muiName="Input";function QN(e){return Te("MuiPickersFilledInput",e)}const ho=z({},rr,Ce("MuiPickersFilledInput",["root","underline","input"])),JN=["label","autoFocus","disableUnderline","hiddenLabel","classes"],e_=ie.styled(Ea,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ft.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}},[`&.${ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ho.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"},[`&.${ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ho.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(.${ho.disabled}, .${ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),t_=ie.styled(sd,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ft.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}}]}),n_=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},QN,e);return z({},e,r)},Oa=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Ee(o,JN),u=Pa(),d=z({},u,{inputHasUnderline:!i}),f=n_(l,d);return b.jsx(Fs,z({slots:{root:e_,input:t_},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Oa.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Oa.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:yt,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});Oa.muiName="Input";function o_(e){return Te("MuiPickersFilledInput",e)}const jr=z({},rr,Ce("MuiPickersInput",["root","underline","input"])),r_=["label","autoFocus","disableUnderline","ownerState","classes"],s_=ie.styled(Ea,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Hn(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"},[`&.${jr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jr.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(.${jr.disabled}, .${jr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${jr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),i_=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},o_,e);return z({},e,r)},ka=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Ee(o,r_),c=Pa(),u=z({},c,{inputHasUnderline:!i}),d=i_(a,u);return b.jsx(Fs,z({slots:{root:s_},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(ka.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(ka.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:yt,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});ka.muiName="Input";const a_=["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"],l_={standard:ka,filled:Oa,outlined:Ma},c_=ie.styled(Ku,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),u_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},ON,e)},Da=P.forwardRef(function(t,n){const o=ie.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:C,areAllSectionsEmpty:S,onClick:w,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:A,endAdornment:k,startAdornment:V,tabIndex:L,contentEditable:x,focused:j,value:O,onChange:I,fullWidth:D,id:N,name:B,helperText:F,FormHelperTextProps:$,label:R,InputLabelProps:W,"data-active-range-position":K}=o,G=Ee(o,a_),Z=P.useRef(null),U=je(n,Z),Q=eo(N),J=F&&Q?`${Q}-helper-text`:void 0,ee=R&&Q?`${Q}-label`:void 0,q=nd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),X=P.useMemo(()=>z({},q,{isFieldValueEmpty:S,isFieldFocused:j??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:D??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(k??(m==null?void 0:m.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(W!=null&&W.shrink)}),[q,S,j,d,o.size,c,D,V,k,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,R,W==null?void 0:W.shrink]),Y=u_(l,X),oe=l_[f],te={};return f==="outlined"?(W&&typeof W.shrink<"u"&&(te.notched=W.shrink),te.label=R):f==="filled"&&(te.hiddenLabel=h),b.jsx(rd.Provider,{value:X,children:b.jsxs(c_,z({className:ge(Y.root,a),ref:U,focused:j,disabled:u,variant:f,error:d,color:c,fullWidth:D,required:p,ownerState:X},G,{children:[R!=null&&R!==""&&b.jsx(Gu,z({htmlFor:Q,id:ee},W,{children:R})),b.jsx(oe,z({elements:C,areAllSectionsEmpty:S,onClick:w,onKeyDown:T,onKeyUp:E,onInput:A,onPaste:M,onFocus:r,onBlur:i,endAdornment:k,startAdornment:V,tabIndex:L,contentEditable:x,value:O,onChange:I,id:Q,fullWidth:D,inputProps:g,inputRef:y,sectionListRef:v,label:R,name:B,role:"group","aria-labelledby":ee,"aria-describedby":J,"aria-live":J?"polite":void 0,"data-active-range-position":K},te,m)),F&&b.jsx(Zu,z({id:J},$,{children:F}))]}))})});process.env.NODE_ENV!=="production"&&(Da.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Da.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:yt,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 d_=["enableAccessibleFieldDOMStructure"],f_=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],p_=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],h_=["ownerState"],m_=["ownerState"],g_=["ownerState"],y_=["ownerState"],b_=["InputProps","inputProps"],gl=()=>{},v_=e=>{var C,S,w,T,E,M,A,k,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Ee(e,d_);if(t){const{InputProps:L,readOnly:x,onClear:j,clearable:O,clearButtonPosition:I,openPickerButtonPosition:D,openPickerAriaLabel:N}=n,B=Ee(n,f_),F=Bn>=6&&((C=B==null?void 0:B.slotProps)!=null&&C.input)?os((S=B==null?void 0:B.slotProps)==null?void 0:S.input,L):gl;return{clearable:O,onClear:j,clearButtonPosition:I,openPickerButtonPosition:D,openPickerAriaLabel:N,textFieldProps:z({},B,Bn>=6&&((w=B==null?void 0:B.slotProps)!=null&&w.input)?{slotProps:z({},B==null?void 0:B.slotProps,{input:$=>z({},Zt(F,$),{readOnly:x})})}:{InputProps:z({},L??{},{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=Ee(n,p_),y=Bn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?os((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):gl,v=Bn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?os((A=g==null?void 0:g.slotProps)==null?void 0:A.htmlInput,c):gl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:z({},g,Bn>=6&&((k=g==null?void 0:g.slotProps)!=null&&k.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:z({},g==null?void 0:g.slotProps,{input:L=>z({},Zt(y,L),{readOnly:a}),htmlInput:L=>z({},Zt(v,L),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:z({},l??{},{readOnly:a}),inputProps:z({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},Ra=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ra.displayName="PickerFieldUIContext");function x_(e){var $,R,W,K;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=oo(),r=Du(),i=P.useContext(Ra),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=v_(t),p=nd(a),h=pe(G=>{G.preventDefault(),r==null||r.setOpen(Z=>!Z)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?Zb:Da),C=i.slots.inputAdornment??Xb,S=_e({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:z({},p,{position:"start"})}),w=Ee(S,h_),T=_e({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:z({},p,{position:"end"})}),E=Ee(T,m_),M=i.slots.openPickerButton??vs,A=_e({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),k=Ee(A,g_),V=i.slots.openPickerIcon??n,L=_e({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),x=i.slots.clearButton??vs,j=_e({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}),O=Ee(j,y_),I=i.slots.clearIcon??MN,D=_e({elementType:I,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=je(a.ref,r==null?void 0:r.rootRef);const N={},B=Zt((Bn>=6&&(($=a==null?void 0:a.slotProps)==null?void 0:$.input))??a.InputProps,p);r&&(N.ref=r.triggerRef),!(B!=null&&B.startAdornment)&&(g==="start"||y==="start")&&(N.startAdornment=b.jsxs(C,z({},w,{children:[y==="start"&&b.jsx(M,z({},k,{children:b.jsx(V,z({},L))})),g==="start"&&b.jsx(x,z({},O,{children:b.jsx(I,z({},D))}))]}))),!(B!=null&&B.endAdornment)&&(g==="end"||y==="end")&&(N.endAdornment=b.jsxs(C,z({},E,{children:[g==="end"&&b.jsx(x,z({},O,{children:b.jsx(I,z({},D))})),y==="end"&&b.jsx(M,z({},k,{children:b.jsx(V,z({},L))}))]}))),!(N!=null&&N.endAdornment)&&!(N!=null&&N.startAdornment)&&i.slots.inputAdornment&&(N.endAdornment=b.jsx(C,z({},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=Bn>=6&&((R=a==null?void 0:a.slotProps)!=null&&R.input)?Zt(os(B,N),p):z({},B,N);return a.inputProps=Bn>=6&&((W=a==null?void 0:a.slotProps)!=null&&W.htmlInput)?Zt(a.slotProps.htmlInput,p):a.inputProps,(K=a==null?void 0:a.slotProps)==null||delete K.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,z({},a,{InputProps:F}))}function os(e,t){return e?t?n=>z({},Zt(t,n),Zt(e,n)):e:t}function S_(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(Ra),i=Du(),a=nd(n),{InputProps:l,inputProps:c}=n,u=Ee(n,b_),d=_e({elementType:Da,externalSlotProps:os(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=z({},c,d.inputProps),d.InputProps=z({},l,d.InputProps),d}function w_(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(Ra.Provider,{value:i,children:r})}const C_=["slots","slotProps"],Ia=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Ee(o,C_),l=S_({slotProps:i,ref:n,externalForwardedProps:a}),c=YA(l);return b.jsx(w_,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(x_,{fieldResponse:c,defaultOpenPickerIcon:EN})})});process.env.NODE_ENV!=="production"&&(Ia.displayName="DateField");process.env.NODE_ENV!=="production"&&(Ia.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:yt,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 ov=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ke();return P.useCallback(u=>Ds({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])},T_=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return z({},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))),z({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return z({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},P_=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(T_(!!u,h)).current,g=P.useMemo(()=>xn.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:pn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),C=ov({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const S=pe(({target:T,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const M=E==="cell-interaction";let A,k;if(E==="cell-interaction")A=p(T,y.currentMonth),k=T;else if(A=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),k=T,C(k)){const x=h.startOfMonth(T),j=h.endOfMonth(T);k=fs({adapter:h,date:k,minDate:h.isBefore(a,x)?x:a,maxDate:h.isAfter(i,j)?j:i,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:f})}const V=!h.isSameMonth(y.currentMonth,A),L=!h.isSameYear(y.currentMonth,A);V&&(l==null||l(A)),L&&(c==null||c(h.startOfYear(A))),v({type:"setVisibleDate",month:A,direction:h.isAfterDay(A,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&k!=null&&h.isSameDay(k,y.focusedDay)?y.focusedDay:k,skipAnimation:M})}),w=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:S,isDateDisabled:C,onMonthSwitchingAnimationEnd:w}},E_=e=>Te("MuiPickersFadeTransitionGroup",e);Ce("MuiPickersFadeTransitionGroup",["root"]);const M_=["children"],O_=e=>we({root:["root"]},E_,e),k_=ie.styled(Ns,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function rv(e){const t=ie.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Ee(t,M_),c=O_(i),u=ie.useTheme();return o?a:b.jsx(k_,{className:ge(c.root,n),ownerState:l,children:b.jsx(Xn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function D_(e){return Te("MuiPickersDay",e)}const mo=Ce("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function sv(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Ke(),{ownerState:d}=Et();return P.useMemo(()=>z({},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 R_=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],I_=(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"]},D_,e)},iv=({theme:e})=>z({},e.typography.caption,{width:bs,height:bs,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})`:ie.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ie.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${mo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${mo.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}},[`&.${mo.disabled}:not(.${mo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${mo.disabled}&.${mo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${ha}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${mo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),av=(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]},A_=ie.styled(pr,{name:"MuiPickersDay",slot:"Root",overridesResolver:av})(iv),N_=ie.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:av})(({theme:e})=>z({},iv({theme:e}),{opacity:0,pointerEvents:"none"})),Lr=()=>{},id=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Lr,onBlur:f=Lr,onKeyDown:p=Lr,onMouseDown:h=Lr,onMouseEnter:m=Lr,children:g,day:y,selected:v,disabled:C,today:S,outsideCurrentMonth:w,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,A=Ee(o,R_),k=sv({day:y,selected:v,disabled:C,today:S,outsideCurrentMonth:w,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),V=I_(a,k),L=Ke(),x=P.useRef(null),j=je(x,n);St(()=>{r&&!C&&!l&&!w&&x.current.focus()},[r,C,l,w]);const O=D=>{h(D),w&&D.preventDefault()},I=D=>{D.defaultMuiPrevented=!0,C||u(y),w&&D.currentTarget.focus(),c&&c(D)};return w&&!M?b.jsx(N_,{className:ge(V.root,V.hiddenDaySpacingFiller,i),ownerState:k,role:A.role}):b.jsx(A_,z({className:ge(V.root,i),ref:j,centerRipple:!0,disabled:C,tabIndex:v?0:-1,onKeyDown:D=>p(D,y),onFocus:D=>d(D,y),onBlur:D=>f(D,y),onMouseEnter:D=>m(D,y),onClick:I,onMouseDown:O},A,{ownerState:k,children:g??L.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(id.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(id.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 lv=P.memo(id);process.env.NODE_ENV!=="production"&&(lv.displayName="PickersDay");const __=e=>Te("MuiPickersSlideTransition",e),Ut=Ce("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),j_=["children","className","reduceAnimations","slideDirection","transKey","classes"],L_=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,__,e)},$_=ie.styled(Ns,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ut["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ut["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ut.slideEnterActive}`]:t.slideEnterActive},{[`.${Ut.slideExit}`]:t.slideExit},{[`.${Ut["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ut["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},[`& .${Ut["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ut["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ut.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ut.slideExit}`]:{transform:"translate(0%)"},[`& .${Ut["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ut["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function V_(e){const t=ie.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Ee(t,j_),{ownerState:u}=Et(),d=z({},u,{slideDirection:i}),f=L_(l,d),p=ie.useTheme();if(r)return b.jsx("div",{className:ge(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx($_,{className:ge(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(Nu,z({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const F_=e=>Te("MuiDayCalendar",e);Ce("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const B_=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],z_=["ownerState"],W_=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},F_,e),cv=(bs+ha*2)*6,U_=ie.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),H_=ie.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),Y_=ie.styled(no,{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})),q_=ie.styled(no,{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})),G_=ie.styled(no,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>z({},e.typography.caption,{width:bs,height:bs,padding:0,margin:`0 ${ha}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),K_=ie.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:cv}),Z_=ie.styled(V_,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:cv}),X_=ie.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),Q_=ie.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${ha}px 0`,display:"flex",justifyContent:"center"});function J_(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Ee(e,B_);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ke(),v=ua(g),C=o!=null&&y.isSameDay(n,o),S=l&&C,w=r.some(O=>y.isSameDay(O,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]),A=sv({day:n,selected:w,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),k=(h==null?void 0:h.day)??lv,V=_e({elementType:k,externalSlotProps:m==null?void 0:m.day,additionalProps:z({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:z({},A,{day:n,isDayDisabled:E,isDaySelected:w})}),L=Ee(V,z_),x=P.useMemo(()=>{const O=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(O)):y.isSameDay(n,O)},[a,n,p,y]),j=P.useMemo(()=>{const O=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(O)):y.isSameDay(n,O)},[a,n,p,y]);return b.jsx(k,z({},L,{day:n,disabled:E,autoFocus:!M&&S,today:T,outsideCurrentMonth:M,isFirstVisibleCell:x,isLastVisibleCell:j,selected:w,tabIndex:C?0:-1,"aria-selected":w,"aria-current":T?"date":void 0}))}function ej(e){const t=ie.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:C,minDate:S,maxDate:w,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:A=X=>n.format(X,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:V,gridLabelId:L,displayWeekNumber:x,fixedWeekNumber:j,timezone:O}=t,I=ua(O),D=W_(i),N=ln(),B=ov({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:S,maxDate:w,disablePast:v,disableFuture:C,timezone:O}),F=oo(),$=pe(X=>{p||d(X)}),R=X=>{B(X)||(o(X),V==null||V(!0))},W=pe((X,Y)=>{switch(X.key){case"ArrowUp":R(n.addDays(Y,-7)),X.preventDefault();break;case"ArrowDown":R(n.addDays(Y,7)),X.preventDefault();break;case"ArrowLeft":{const oe=n.addDays(Y,N?1:-1),te=n.addMonths(Y,N?1:-1),ae=fs({adapter:n,date:oe,minDate:N?oe:n.startOfMonth(te),maxDate:N?n.endOfMonth(te):oe,isDateDisabled:B,timezone:O});R(ae||oe),X.preventDefault();break}case"ArrowRight":{const oe=n.addDays(Y,N?-1:1),te=n.addMonths(Y,N?-1:1),ae=fs({adapter:n,date:oe,minDate:N?n.startOfMonth(te):oe,maxDate:N?oe:n.endOfMonth(te),isDateDisabled:B,timezone:O});R(ae||oe),X.preventDefault();break}case"Home":R(n.startOfWeek(Y)),X.preventDefault();break;case"End":R(n.endOfWeek(Y)),X.preventDefault();break;case"PageUp":R(n.addMonths(Y,1)),X.preventDefault();break;case"PageDown":R(n.addMonths(Y,-1)),X.preventDefault();break}}),K=pe((X,Y)=>R(Y)),G=pe((X,Y)=>{c!=null&&n.isSameDay(c,Y)&&(V==null||V(!1))}),Z=n.getMonth(a),U=n.getYear(a),Q=P.useMemo(()=>l.filter(X=>!!X).map(X=>n.startOfDay(X)),[n,l]),J=`${U}-${Z}`,ee=P.useMemo(()=>P.createRef(),[J]),q=P.useMemo(()=>{const X=n.getWeekArray(a);let Y=n.addMonths(a,1);for(;j&&X.length<j;){const oe=n.getWeekArray(Y),te=n.isSameDay(X[X.length-1][0],oe[0][0]);oe.slice(te?1:0).forEach(ae=>{X.length<j&&X.push(ae)}),Y=n.addMonths(Y,1)}return X},[a,j,n]);return b.jsxs(U_,{role:"grid","aria-labelledby":L,className:D.root,children:[b.jsxs(H_,{role:"row",className:D.header,children:[x&&b.jsx(q_,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:D.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),S2(n,I).map((X,Y)=>b.jsx(Y_,{variant:"caption",role:"columnheader","aria-label":n.format(X,"weekday"),className:D.weekDayLabel,children:A(X)},Y.toString()))]}),u?b.jsx(K_,{className:D.loadingContainer,children:m()}):b.jsx(Z_,z({transKey:J,onExited:f,reduceAnimations:h,slideDirection:g,className:ge(r,D.slideTransition)},y,{nodeRef:ee,children:b.jsx(X_,{ref:ee,role:"rowgroup",className:D.monthContainer,children:q.map((X,Y)=>b.jsxs(Q_,{role:"row",className:D.weekContainer,"aria-rowindex":Y+1,children:[x&&b.jsx(G_,{className:D.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(X[0])),children:F.calendarWeekNumberText(n.getWeekNumber(X[0]))}),X.map((oe,te)=>b.jsx(J_,{parentProps:t,day:oe,selectedDays:Q,isViewFocused:k,focusedDay:c,onKeyDown:W,onFocus:K,onBlur:G,onDaySelect:$,isDateDisabled:B,currentMonthNumber:Z,"aria-colindex":te+1},oe.toString()))]},`week-${X[0]}`))})}))]})}function uv(e){return Te("MuiMonthCalendar",e)}const ni=Ce("MuiMonthCalendar",["root","button","disabled","selected"]),tj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],nj=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,uv,e)},oj=ie.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ni.disabled}`]:t.disabled},{[`&.${ni.selected}`]:t.selected}]})(({theme:e})=>z({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})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ni.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ni.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),dv=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=Ee(t,tj),m=P.useRef(null),{ownerState:g}=Et(),y=z({},g,{isMonthDisabled:r,isMonthSelected:i}),v=nj(o,y);St(()=>{var w;n&&((w=m.current)==null||w.focus())},[n]);const C=(f==null?void 0:f.monthButton)??oj,S=_e({elementType:C,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:w=>l(w,a),onKeyDown:w=>c(w,a),onFocus:w=>u(w,a),onBlur:w=>d(w,a)},ownerState:y,className:v.button});return b.jsx(C,z({},S))});process.env.NODE_ENV!=="production"&&(dv.displayName="MonthCalendarButton");const rj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],sj=e=>we({root:["root"]},uv,e);function ij(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Rs(n);return z({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Rh=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),aj=ie.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Hn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:ma,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),ad=P.forwardRef(function(t,n){const o=ij(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:C,onMonthFocus:S,hasFocus:w,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:A,slots:k,slotProps:V}=o,L=Ee(o,rj),{value:x,handleValueChange:j,timezone:O}=$s({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:xn}),I=ua(O),D=ln(),N=Ke(),{ownerState:B}=Et(),F=P.useMemo(()=>xn.getInitialReferenceValue({value:x,adapter:N,props:o,timezone:O,referenceDate:d,granularity:pn.month}),[]),$=sj(l),R=P.useMemo(()=>N.getMonth(I),[N,I]),W=P.useMemo(()=>x!=null?N.getMonth(x):null,[x,N]),[K,G]=P.useState(()=>W||N.getMonth(F)),[Z,U]=Gn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:r??!1}),Q=pe(te=>{U(te),T&&T(te)}),J=P.useCallback(te=>{const ae=N.startOfMonth(h&&N.isAfter(I,g)?I:g),re=N.startOfMonth(p&&N.isBefore(I,m)?I:m),be=N.startOfMonth(te);return N.isBefore(be,ae)||N.isAfter(be,re)?!0:v?v(be):!1},[p,h,m,g,I,v,N]),ee=pe((te,ae)=>{if(C)return;const be=(x&&a&&!N.isSameYear(x,a)?N.setYear(x,N.getYear(a)):x)??a??F,se=N.setMonth(be,ae);j(se)}),q=pe(te=>{J(N.setMonth(x??a??F,te))||(G(te),Q(!0),S&&S(te))});P.useEffect(()=>{G(te=>W!==null&&te!==W?W:te)},[W]);const X=pe((te,ae)=>{switch(te.key){case"ArrowUp":q((12+ae-3)%12),te.preventDefault();break;case"ArrowDown":q((12+ae+3)%12),te.preventDefault();break;case"ArrowLeft":q((12+ae+(D?1:-1))%12),te.preventDefault();break;case"ArrowRight":q((12+ae+(D?-1:1))%12),te.preventDefault();break}}),Y=pe((te,ae)=>{q(ae)}),oe=pe((te,ae)=>{K===ae&&Q(!1)});return b.jsx(aj,z({ref:n,className:ge($.root,i),ownerState:B,role:"radiogroup","aria-labelledby":A,monthsPerRow:E},L,{children:vu(N,a??x??F).map(te=>{const ae=N.getMonth(te),re=N.format(te,"monthShort"),be=N.format(te,"month"),se=Rh(ae,W,te,x,N),he=f||J(te);return b.jsx(dv,{selected:se,value:ae,onClick:ee,onKeyDown:X,autoFocus:Z&&ae===K,disabled:he,tabIndex:ae===K&&!he?0:-1,onFocus:Y,onBlur:oe,"aria-current":Rh(ae,R,te,I,N)?"date":void 0,"aria-label":be,slots:k,slotProps:V,classes:l,children:re},re)})}))});process.env.NODE_ENV!=="production"&&(ad.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(ad.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 fv(e){return Te("MuiYearCalendar",e)}const oi=Ce("MuiYearCalendar",["root","button","disabled","selected"]),lj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],cj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,fv,e)},uj=ie.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${oi.disabled}`]:t.disabled},{[`&.${oi.selected}`]:t.selected}]})(({theme:e})=>z({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})`:ie.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${oi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${oi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pv=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=Ee(t,lj),m=P.useRef(null),{ownerState:g}=Et(),y=z({},g,{isYearDisabled:r,isYearSelected:i}),v=cj(o,y);St(()=>{var w;n&&((w=m.current)==null||w.focus())},[n]);const C=(f==null?void 0:f.yearButton)??uj,S=_e({elementType:C,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:w=>l(w,a),onKeyDown:w=>c(w,a),onFocus:w=>u(w,a),onBlur:w=>d(w,a)},ownerState:y,className:v.button});return b.jsx(C,z({},S))});process.env.NODE_ENV!=="production"&&(pv.displayName="YearCalendarButton");const dj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],fj=e=>we({root:["root"]},fv,e);function pj(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Rs(n);return z({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const hj=ie.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Hn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:ma,maxHeight:vA,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),mj=ie.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ld=P.forwardRef(function(t,n){const o=pj(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:C,hasFocus:S,onFocusedViewChange:w,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:A,slots:k,slotProps:V}=o,L=Ee(o,dj),{value:x,handleValueChange:j,timezone:O}=$s({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:xn}),I=ua(O),D=ln(),N=Ke(),{ownerState:B}=Et(),F=P.useMemo(()=>xn.getInitialReferenceValue({value:x,adapter:N,props:o,timezone:O,referenceDate:u,granularity:pn.year}),[]),$=fj(a),R=P.useMemo(()=>N.getYear(I),[N,I]),W=P.useMemo(()=>x!=null?N.getYear(x):null,[x,N]),[K,G]=P.useState(()=>W||N.getYear(F)),[Z,U]=Gn({name:"YearCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=pe(le=>{U(le),w&&w(le)}),J=P.useCallback(le=>{if(p&&N.isBeforeYear(le,I)||f&&N.isAfterYear(le,I)||m&&N.isBeforeYear(le,m)||h&&N.isAfterYear(le,h))return!0;if(!v)return!1;const ue=N.startOfYear(le);return v(ue)},[f,p,h,m,I,v,N]),ee=pe((le,ue)=>{if(y)return;const de=N.setYear(x??F,ue);j(de)}),q=pe(le=>{J(N.setYear(x??F,le))||(G(le),Q(!0),C==null||C(le))});P.useEffect(()=>{G(le=>W!==null&&le!==W?W:le)},[W]);const X=T!=="desc"?E*1:E*-1,Y=D&&T==="asc"||!D&&T==="desc"?-1:1,oe=pe((le,ue)=>{switch(le.key){case"ArrowUp":q(ue-X),le.preventDefault();break;case"ArrowDown":q(ue+X),le.preventDefault();break;case"ArrowLeft":q(ue-Y),le.preventDefault();break;case"ArrowRight":q(ue+Y),le.preventDefault();break}}),te=pe((le,ue)=>{q(ue)}),ae=pe((le,ue)=>{K===ue&&Q(!1)}),re=P.useRef(null),be=je(n,re);P.useEffect(()=>{if(r||re.current===null)return;const le=re.current.querySelector('[tabindex="0"]');if(!le)return;const ue=le.offsetHeight,de=le.offsetTop,Ie=re.current.clientHeight,Me=re.current.scrollTop,Ze=de+ue;ue>Ie||de<Me||(re.current.scrollTop=Ze-Ie/2-ue/2)},[r]);const se=N.getYearRange([m,h]);T==="desc"&&se.reverse();let he=E-se.length%E;return he===E&&(he=0),b.jsxs(hj,z({ref:be,className:ge($.root,i),ownerState:B,role:"radiogroup","aria-labelledby":A,yearsPerRow:E},L,{children:[se.map(le=>{const ue=N.getYear(le),de=ue===W,Ie=d||J(le);return b.jsx(pv,{selected:de,value:ue,onClick:ee,onKeyDown:oe,autoFocus:Z&&ue===K,disabled:Ie,tabIndex:ue===K&&!Ie?0:-1,onFocus:te,onBlur:ae,"aria-current":R===ue?"date":void 0,slots:k,slotProps:V,classes:a,children:N.format(le,"year")},N.format(le,"year"))}),Array.from({length:he},(le,ue)=>b.jsx(mj,{},ue))]}))});process.env.NODE_ENV!=="production"&&(ld.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(ld.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 gj=e=>Te("MuiPickersCalendarHeader",e),yj=Ce("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function bj(e){return Te("MuiPickersArrowSwitcher",e)}Ce("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const vj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],xj=["ownerState"],Sj=["ownerState"],wj=ie.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Cj=ie.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Ih=ie.styled(vs,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),Tj=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},bj,e),hv=P.forwardRef(function(t,n){const o=ln(),r=ie.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:C}=r,S=Ee(r,vj),{ownerState:w}=Et(),T=Tj(C),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},A=(l==null?void 0:l.previousIconButton)??Ih,k=_e({elementType:A,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:z({},w,{isButtonHidden:M.isHidden??!1}),className:ge(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Ih,L=_e({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:z({},w,{isButtonHidden:E.isHidden??!1}),className:ge(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??TN,j=_e({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:T.leftArrowIcon}),O=Ee(j,xj),I=(l==null?void 0:l.rightArrowIcon)??PN,D=_e({elementType:I,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:T.rightArrowIcon}),N=Ee(D,Sj);return b.jsxs(wj,z({ref:n,className:ge(T.root,a),ownerState:w},S,{children:[b.jsx(A,z({},k,{children:o?b.jsx(I,z({},N)):b.jsx(x,z({},O))})),i?b.jsx(no,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(Cj,{className:T.spacer,ownerState:w}),b.jsx(V,z({},L,{children:o?b.jsx(x,z({},O)):b.jsx(I,z({},N))}))]}))});process.env.NODE_ENV!=="production"&&(hv.displayName="PickersArrowSwitcher");function Pj(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 Ej(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 Mj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Oj=["ownerState"],kj=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},gj,e),Dj=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Rj=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Ij=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Aj=ie.styled(vs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${yj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Nj=ie.styled(CN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),cd=P.forwardRef(function(t,n){const o=oo(),r=Ke(),i=ie.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:C,labelId:S,className:w,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,A=Ee(i,Mj),{ownerState:k}=Et(),V=kj(T),L=(a==null?void 0:a.switchViewButton)??Aj,x=_e({elementType:L,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:z({},k,{view:y}),className:V.switchViewButton}),j=(a==null?void 0:a.switchViewIcon)??Nj,O=_e({elementType:j,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:k,className:V.switchViewIcon}),I=Ee(O,Oj),D=()=>m(r.addMonths(c,1)),N=()=>m(r.addMonths(c,-1)),B=Pj(c,{disableFuture:d,maxDate:p,timezone:E}),F=Ej(c,{disablePast:f,minDate:h,timezone:E}),$=()=>{if(!(C.length===1||!g||u))if(C.length===2)g(C.find(W=>W!==y)||C[0]);else{const W=C.indexOf(y)!==0?0:1;g(C[W])}};if(C.length===1&&C[0]==="year")return null;const R=r.formatByString(c,M);return b.jsxs(Dj,z({},A,{ownerState:k,className:ge(V.root,w),ref:n,children:[b.jsxs(Rj,{role:"presentation",onClick:$,ownerState:k,"aria-live":"polite",className:V.labelContainer,children:[b.jsx(rv,{reduceAnimations:v,transKey:R,children:b.jsx(Ij,{id:S,ownerState:k,className:V.label,children:R})}),C.length>1&&!u&&b.jsx(L,z({},x,{children:b.jsx(j,z({},I))}))]}),b.jsx(Xn,{in:y==="day",appear:!v,enter:!v,children:b.jsx(hv,{slots:a,slotProps:l,onGoToPrevious:N,isPreviousDisabled:F,previousLabel:o.previousMonth,onGoToNext:D,isNextDisabled:B,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(cd.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(cd.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 _j=ie.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:ma,maxHeight:Yu,display:"flex",flexDirection:"column",margin:"0 auto"}),jj=e=>Te("MuiDateCalendar",e);Ce("MuiDateCalendar",["root","viewTransitionContainer"]);const Lj=["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"],$j=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},jj,e);function Vj(e,t){const n=ie.useThemeProps({props:e,name:t}),o=hb(n.reduceAnimations),r=Rs(n);return z({},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 Fj=ie.styled(_j,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Yu}),Bj=ie.styled(rv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),ud=P.forwardRef(function(t,n){const o=Ke(),{ownerState:r}=Et(),i=eo(),a=Vj(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:C,shouldDisableYear:S,view:w,views:T,openTo:E,className:M,classes:A,disabled:k,readOnly:V,minDate:L,maxDate:x,disableHighlightToday:j,focusedView:O,onFocusedViewChange:I,showDaysOutsideCurrentMonth:D,fixedWeekNumber:N,dayOfWeekFormatter:B,slots:F,slotProps:$,loading:R,renderLoading:W,displayWeekNumber:K,yearsOrder:G,yearsPerRow:Z,monthsPerRow:U,timezone:Q}=a,J=Ee(a,Lj),{value:ee,handleValueChange:q,timezone:X}=$s({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:xn}),{view:Y,setView:oe,focusedView:te,setFocusedView:ae,goToNextView:re,setValueAndGoToNextView:be}=gb({view:w,views:T,openTo:E,onChange:q,onViewChange:c,autoFocus:l,focusedView:O,onFocusedViewChange:I}),{referenceDate:se,calendarState:he,setVisibleDate:le,isDateDisabled:ue,onMonthSwitchingAnimationEnd:de}=P_({value:ee,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:L,maxDate:x,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:X,getCurrentMonthFromVisibleDate:(Oe,pt)=>o.isSameMonth(Oe,pt)?pt:o.startOfMonth(Oe)}),Ie=k&&ee||L,Me=k&&ee||x,Ze=`${i}-grid-label`,Je=te!==null,ke=(F==null?void 0:F.calendarHeader)??cd,ut=_e({elementType:ke,externalSlotProps:$==null?void 0:$.calendarHeader,additionalProps:{views:T,view:Y,currentMonth:he.currentMonth,onViewChange:oe,onMonthChange:Oe=>le({target:Oe,reason:"header-navigation"}),minDate:Ie,maxDate:Me,disabled:k,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:X,labelId:Ze},ownerState:r}),Se=pe(Oe=>{const pt=o.startOfMonth(Oe),wt=o.endOfMonth(Oe),jt=ue(Oe)?fs({adapter:o,date:Oe,minDate:o.isBefore(L,pt)?pt:L,maxDate:o.isAfter(x,wt)?wt:x,disablePast:h,disableFuture:p,isDateDisabled:ue,timezone:X}):Oe;jt?(be(jt,"finish"),le({target:jt,reason:"cell-interaction"})):(re(),le({target:pt,reason:"cell-interaction"}))}),Pe=pe(Oe=>{const pt=o.startOfYear(Oe),wt=o.endOfYear(Oe),jt=ue(Oe)?fs({adapter:o,date:Oe,minDate:o.isBefore(L,pt)?pt:L,maxDate:o.isAfter(x,wt)?wt:x,disablePast:h,disableFuture:p,isDateDisabled:ue,timezone:X}):Oe;jt?(be(jt,"finish"),le({target:jt,reason:"cell-interaction"})):(re(),le({target:pt,reason:"cell-interaction"}))}),xe=pe(Oe=>q(Oe&&Ri(o,Oe,ee??se),"finish",Y));P.useEffect(()=>{o.isValid(ee)&&le({target:ee,reason:"controlled-value-change"})},[ee]);const $e=$j(A),Ve={disablePast:h,disableFuture:p,maxDate:x,minDate:L},ot={disableHighlightToday:j,readOnly:V,disabled:k,timezone:X,gridLabelId:Ze,slots:F,slotProps:$},Xe=P.useRef(Y);P.useEffect(()=>{Xe.current!==Y&&(te===Xe.current&&ae(Y,!0),Xe.current=Y)},[te,ae,Y]);const _t=P.useMemo(()=>[ee],[ee]);return b.jsxs(Fj,z({ref:n,className:ge($e.root,M),ownerState:r},J,{children:[b.jsx(ke,z({},ut,{slots:F,slotProps:$})),b.jsx(Bj,{reduceAnimations:y,className:$e.viewTransitionContainer,transKey:Y,ownerState:r,children:b.jsxs("div",{children:[Y==="year"&&b.jsx(ld,z({},Ve,ot,{value:ee,onChange:Pe,shouldDisableYear:S,hasFocus:Je,onFocusedViewChange:Oe=>ae("year",Oe),yearsOrder:G,yearsPerRow:Z,referenceDate:se})),Y==="month"&&b.jsx(ad,z({},Ve,ot,{currentMonth:he.currentMonth,hasFocus:Je,className:M,value:ee,onChange:Se,shouldDisableMonth:C,onFocusedViewChange:Oe=>ae("month",Oe),monthsPerRow:U,referenceDate:se})),Y==="day"&&b.jsx(ej,z({},he,Ve,ot,{onMonthSwitchingAnimationEnd:de,hasFocus:Je,onFocusedDayChange:Oe=>le({target:Oe,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:_t,onSelectedDaysChange:xe,shouldDisableDate:v,shouldDisableMonth:C,shouldDisableYear:S,onFocusedViewChange:Oe=>ae("day",Oe),showDaysOutsideCurrentMonth:D,fixedWeekNumber:N,dayOfWeekFormatter:B,displayWeekNumber:K,loading:R,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(ud.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(ud.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 Do=({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:C,onMonthChange:S,monthsPerRow:w,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:A,slotProps:k,loading:V,renderLoading:L,disableHighlightToday:x,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:$,timezone:R})=>b.jsx(ud,{view:e,onViewChange:t,views:n.filter(Dp),focusedView:o&&Dp(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:C,onMonthChange:S,monthsPerRow:w,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:A,slotProps:k,loading:V,renderLoading:L,disableHighlightToday:x,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:D,sx:N,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:$,timezone:R});process.env.NODE_ENV!=="production"&&(Do.displayName="renderDateViewCalendar");const dd=P.forwardRef(function(t,n){var c;const o=Ke(),r=Uy(t,"MuiDesktopDatePicker"),i=z({day:Do,month:Do,year:Do},r.viewRenderers),a=z({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:xu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:z({field:Ia},r.slots),slotProps:z({},r.slotProps,{field:u=>{var d;return z({},Zt((d=r.slotProps)==null?void 0:d.field,u),By(r))},toolbar:z({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=IA({ref:n,props:a,valueManager:xn,valueType:"date",validator:Ds,steps:null});return l()});process.env.NODE_ENV!=="production"&&(dd.displayName="DesktopDatePicker");dd.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:yt,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 zj(e){return Te("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);const Wj=Ce("MuiDialogTitle",["root"]),Uj=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},zj,t)},Hj=ye("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(qe(({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:{[`.${Wj.root} + &`]:{paddingTop:0}}}]}))),mv=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=Uj(l);return b.jsx(Hj,{className:ge(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(mv.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 Yj(e){return Te("MuiDialog",e)}const rs=Ce("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gv=P.createContext({});process.env.NODE_ENV!=="production"&&(gv.displayName="DialogContext");const qj=ye(Xu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Gj=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,Yj,t)},Kj=ye(Qu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Zj=ye("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"}}}]}),Xj=ye(_s,{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]}})(qe(({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)`,[`&.${rs.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}`,[`&.${rs.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,[`&.${rs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yv=P.forwardRef(function(t,n){const o=Le({props:t,name:"MuiDialog"}),r=Qi(),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:C,open:S,PaperComponent:w=_s,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:A={},TransitionComponent:k=Xn,transitionDuration:V=i,TransitionProps:L,...x}=o,j={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},O=Gj(j),I=P.useRef(),D=oe=>{I.current=oe.target===oe.currentTarget},N=oe=>{v&&v(oe),I.current&&(I.current=null,C&&C(oe,"backdropClick"))},B=eo(l),F=P.useMemo(()=>({titleId:B}),[B]),$={transition:k,...M},R={transition:L,paper:T,backdrop:d,...A},W={slots:$,slotProps:R},[K,G]=nt("root",{elementType:Kj,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:j,className:ge(O.root,p),ref:n}),[Z,U]=nt("backdrop",{elementType:qj,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:j,className:O.backdrop}),[Q,J]=nt("paper",{elementType:Xj,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:j,className:ge(O.paper,T.className)}),[ee,q]=nt("container",{elementType:Zj,externalForwardedProps:W,ownerState:j,className:O.container}),[X,Y]=nt("transition",{elementType:Xn,externalForwardedProps:W,ownerState:j,additionalProps:{appear:!0,in:S,timeout:V,role:"presentation"}});return b.jsx(K,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:V,as:u,...U}},disableEscapeKeyDown:h,onClose:C,open:S,onClick:N,...G,...x,children:b.jsx(X,{...Y,children:b.jsx(ee,{onMouseDown:D,...q,children:b.jsx(Q,{as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B,"aria-modal":c,...J,children:b.jsx(gv.Provider,{value:F,children:f})})})})})});process.env.NODE_ENV!=="production"&&(yv.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 Qj=ie.styled(yv,{slot:"internal"})({[`& .${rs.container}`]:{outline:0},[`& .${rs.paper}`]:{outline:0,minWidth:ma}}),Jj=ie.styled(mv,{slot:"internal"})({"&:first-of-type":{padding:0}});function eL(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Sr(),{dismissViews:i,onPopperExited:a}=Et(),l=(n==null?void 0:n.dialog)??Qj,c=(n==null?void 0:n.mobileTransition)??Xn;return b.jsx(l,z({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(Jj,{children:t})}))}const tL=["props","steps"],nL=["ownerState"],oL=e=>{var E;let{props:t,steps:n}=e,o=Ee(e,tL);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Rb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=bb(z({},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=_e({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},m&&{id:h}),ownerState:p}),v=Ee(y,nL),C=r.layout??ga;let S=h;m&&(a?S=`${h}-label`:S=void 0);const w=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:z({"aria-labelledby":S},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(jy,z({},d,{children:[b.jsx(g,z({},v,{slots:z({},r,v.slots),slotProps:z({},w,v.slotProps),inputRef:l})),b.jsx(eL,{slots:r,slotProps:w,children:b.jsx(C,z({},w==null?void 0:w.layout,{slots:r,slotProps:w,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},fd=P.forwardRef(function(t,n){var c;const o=Ke(),r=Uy(t,"MuiMobileDatePicker"),i=z({day:Do,month:Do,year:Do},r.viewRenderers),a=z({},r,{viewRenderers:i,format:xu(o,r,!1),slots:z({field:Ia},r.slots),slotProps:z({},r.slotProps,{field:u=>{var d;return z({},Zt((d=r.slotProps)==null?void 0:d.field,u),By(r))},toolbar:z({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=oL({ref:n,props:a,valueManager:xn,valueType:"date",validator:Ds,steps:null});return l()});process.env.NODE_ENV!=="production"&&(fd.displayName="MobileDatePicker");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:yt,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 rL=["desktopModeMediaQuery"],pd=P.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=cI}=o,i=Ee(o,rL);return Dy(r,{defaultMatches:!0})?b.jsx(dd,z({ref:n},i)):b.jsx(fd,z({ref:n},i))});process.env.NODE_ENV!=="production"&&(pd.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(pd.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:yt,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 bv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,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,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var I=["th","st","nd","rd"],D=O%100;return"["+O+(I[(D-20)%10]||I[D]||I[0])+"]"}},S=function(O,I,D){var N=String(O);return!N||N.length>=I?O:""+Array(I+1-N.length).join(D)+O},w={s:S,z:function(O){var I=-O.utcOffset(),D=Math.abs(I),N=Math.floor(D/60),B=D%60;return(I<=0?"+":"-")+S(N,2,"0")+":"+S(B,2,"0")},m:function O(I,D){if(I.date()<D.date())return-O(D,I);var N=12*(D.year()-I.year())+(D.month()-I.month()),B=I.clone().add(N,f),F=D-B<0,$=I.clone().add(N+(F?-1:1),f);return+(-(N+(D-B)/(F?B-$:$-B))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},T="en",E={};E[T]=C;var M="$isDayjsObject",A=function(O){return O instanceof x||!(!O||!O[M])},k=function O(I,D,N){var B;if(!I)return T;if(typeof I=="string"){var F=I.toLowerCase();E[F]&&(B=F),D&&(E[F]=D,B=F);var $=I.split("-");if(!B&&$.length>1)return O($[0])}else{var R=I.name;E[R]=I,B=R}return!N&&B&&(T=B),B||!N&&T},V=function(O,I){if(A(O))return O.clone();var D=typeof I=="object"?I:{};return D.date=O,D.args=arguments,new x(D)},L=w;L.l=k,L.i=A,L.w=function(O,I){return V(O,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var x=function(){function O(D){this.$L=k(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[M]=!0}var I=O.prototype;return I.parse=function(D){this.$d=function(N){var B=N.date,F=N.utc;if(B===null)return new Date(NaN);if(L.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var $=B.match(y);if($){var R=$[2]-1||0,W=($[7]||"0").substring(0,3);return F?new Date(Date.UTC($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)):new Date($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)}}return new Date(B)}(D),this.init()},I.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},I.$utils=function(){return L},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(D,N){var B=V(D);return this.startOf(N)<=B&&B<=this.endOf(N)},I.isAfter=function(D,N){return V(D)<this.startOf(N)},I.isBefore=function(D,N){return this.endOf(N)<V(D)},I.$g=function(D,N,B){return L.u(D)?this[N]:this.set(B,D)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(D,N){var B=this,F=!!L.u(N)||N,$=L.p(D),R=function(ee,q){var X=L.w(B.$u?Date.UTC(B.$y,q,ee):new Date(B.$y,q,ee),B);return F?X:X.endOf(u)},W=function(ee,q){return L.w(B.toDate()[ee].apply(B.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(q)),B)},K=this.$W,G=this.$M,Z=this.$D,U="set"+(this.$u?"UTC":"");switch($){case h:return F?R(1,0):R(31,11);case f:return F?R(1,G):R(0,G+1);case d:var Q=this.$locale().weekStart||0,J=(K<Q?K+7:K)-Q;return R(F?Z-J:Z+(6-J),G);case u:case m:return W(U+"Hours",0);case c:return W(U+"Minutes",1);case l:return W(U+"Seconds",2);case a:return W(U+"Milliseconds",3);default:return this.clone()}},I.endOf=function(D){return this.startOf(D,!1)},I.$set=function(D,N){var B,F=L.p(D),$="set"+(this.$u?"UTC":""),R=(B={},B[u]=$+"Date",B[m]=$+"Date",B[f]=$+"Month",B[h]=$+"FullYear",B[c]=$+"Hours",B[l]=$+"Minutes",B[a]=$+"Seconds",B[i]=$+"Milliseconds",B)[F],W=F===u?this.$D+(N-this.$W):N;if(F===f||F===h){var K=this.clone().set(m,1);K.$d[R](W),K.init(),this.$d=K.set(m,Math.min(this.$D,K.daysInMonth())).$d}else R&&this.$d[R](W);return this.init(),this},I.set=function(D,N){return this.clone().$set(D,N)},I.get=function(D){return this[L.p(D)]()},I.add=function(D,N){var B,F=this;D=Number(D);var $=L.p(N),R=function(G){var Z=V(F);return L.w(Z.date(Z.date()+Math.round(G*D)),F)};if($===f)return this.set(f,this.$M+D);if($===h)return this.set(h,this.$y+D);if($===u)return R(1);if($===d)return R(7);var W=(B={},B[l]=o,B[c]=r,B[a]=n,B)[$]||1,K=this.$d.getTime()+D*W;return L.w(K,this)},I.subtract=function(D,N){return this.add(-1*D,N)},I.format=function(D){var N=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var F=D||"YYYY-MM-DDTHH:mm:ssZ",$=L.z(this),R=this.$H,W=this.$m,K=this.$M,G=B.weekdays,Z=B.months,U=B.meridiem,Q=function(q,X,Y,oe){return q&&(q[X]||q(N,F))||Y[X].slice(0,oe)},J=function(q){return L.s(R%12||12,q,"0")},ee=U||function(q,X,Y){var oe=q<12?"AM":"PM";return Y?oe.toLowerCase():oe};return F.replace(v,function(q,X){return X||function(Y){switch(Y){case"YY":return String(N.$y).slice(-2);case"YYYY":return L.s(N.$y,4,"0");case"M":return K+1;case"MM":return L.s(K+1,2,"0");case"MMM":return Q(B.monthsShort,K,Z,3);case"MMMM":return Q(Z,K);case"D":return N.$D;case"DD":return L.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Q(B.weekdaysMin,N.$W,G,2);case"ddd":return Q(B.weekdaysShort,N.$W,G,3);case"dddd":return G[N.$W];case"H":return String(R);case"HH":return L.s(R,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ee(R,W,!0);case"A":return ee(R,W,!1);case"m":return String(W);case"mm":return L.s(W,2,"0");case"s":return String(N.$s);case"ss":return L.s(N.$s,2,"0");case"SSS":return L.s(N.$ms,3,"0");case"Z":return $}return null}(q)||$.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(D,N,B){var F,$=this,R=L.p(N),W=V(D),K=(W.utcOffset()-this.utcOffset())*o,G=this-W,Z=function(){return L.m($,W)};switch(R){case h:F=Z()/12;break;case f:F=Z();break;case p:F=Z()/3;break;case d:F=(G-K)/6048e5;break;case u:F=(G-K)/864e5;break;case c:F=G/r;break;case l:F=G/o;break;case a:F=G/n;break;default:F=G}return B?F:L.a(F)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return E[this.$L]},I.locale=function(D,N){if(!D)return this.$L;var B=this.clone(),F=k(D,N,!0);return F&&(B.$L=F),B},I.clone=function(){return L.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},O}(),j=x.prototype;return V.prototype=j,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(O){j[O[1]]=function(I){return this.$g(I,O[0],O[1])}}),V.extend=function(O,I){return O.$i||(O(I,x,V),O.$i=!0),V},V.locale=k,V.isDayjs=A,V.unix=function(O){return V(1e3*O)},V.en=E[T],V.Ls=E,V.p={},V})})(bv);var sL=bv.exports;const mt=Qn(sL);var vv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,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)}}})})(vv);var iL=vv.exports;const aL=Qn(iL);var xv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,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 C=v.match(/([+-]|\d\d)/g),S=60*C[1]+(+C[2]||0);return S===0?0:C[0]==="+"?-S:S}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var C,S=c.meridiem;if(S){for(var w=1;w<=24;w+=1)if(y.indexOf(S(w,0,v))>-1){C=w>12;break}}else C=y===(v?"pm":"PM");return C},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,C=y.match(/\d+/);if(this.day=C[0],v)for(var S=1;S<=31;S+=1)v(S).replace(/\[|\]/g,"")===y&&(this.day=S)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),C=(p("monthsShort")||v.map(function(S){return S.slice(0,3)})).indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],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,C;v=y,C=c&&c.formats;for(var S=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,L,x){var j=x&&x.toUpperCase();return L||C[x]||n[x]||C[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,I,D){return I||D.slice(1)})})).match(o),w=S.length,T=0;T<w;T+=1){var E=S[T],M=m[E],A=M&&M[0],k=M&&M[1];S[T]=k?{regex:A,parser:k}:E.replace(/^\[|\]$/g,"")}return function(V){for(var L={},x=0,j=0;x<w;x+=1){var O=S[x];if(typeof O=="string")j+=O.length;else{var I=O.regex,D=O.parser,N=V.slice(j),B=I.exec(N)[0];D.call(L,B),V=V.replace(B,"")}}return function(F){var $=F.afternoon;if($!==void 0){var R=F.hours;$?R<12&&(F.hours+=12):R===12&&(F.hours=0),delete F.afternoon}}(L),L}}return function(y,v,C){C.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var S=v.prototype,w=S.parse;S.parse=function(T){var E=T.date,M=T.utc,A=T.args;this.$u=M;var k=A[1];if(typeof k=="string"){var V=A[2]===!0,L=A[3]===!0,x=V||L,j=A[2];L&&(j=A[2]),c=this.$locale(),!V&&j&&(c=C.Ls[j]),this.$d=function(N,B,F,$){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*N);var R=g(B)(N),W=R.year,K=R.month,G=R.day,Z=R.hours,U=R.minutes,Q=R.seconds,J=R.milliseconds,ee=R.zone,q=R.week,X=new Date,Y=G||(W||K?1:X.getDate()),oe=W||X.getFullYear(),te=0;W&&!K||(te=K>0?K-1:X.getMonth());var ae,re=Z||0,be=U||0,se=Q||0,he=J||0;return ee?new Date(Date.UTC(oe,te,Y,re,be,se,he+60*ee.offset*1e3)):F?new Date(Date.UTC(oe,te,Y,re,be,se,he)):(ae=new Date(oe,te,Y,re,be,se,he),q&&(ae=$(ae).week(q).toDate()),ae)}catch{return new Date("")}}(E,k,M,C),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&E!=this.format(k)&&(this.$d=new Date("")),c={}}else if(k instanceof Array)for(var O=k.length,I=1;I<=O;I+=1){A[1]=k[I-1];var D=C.apply(this,A);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}I===O&&(this.$d=new Date(""))}else w.call(this,T)}}})})(xv);var lL=xv.exports;const cL=Qn(lL);var Sv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,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,C,S){return C||S.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Sv);var uL=Sv.exports;const dL=Qn(uL);var wv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,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))}}})})(wv);var fL=wv.exports;const pL=Qn(fL);var Cv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,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)}}})})(Cv);var hL=Cv.exports;const mL=Qn(hL);mt.extend(dL);mt.extend(aL);mt.extend(pL);mt.extend(mL);const gL={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"},yL={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"},yl=["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
|
+
`),Ah=["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 bL{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",gL);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof mt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof mt.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 mt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=mt.tz.guess();o==="UTC"?n=mt(t):n=mt.tz(t,o)}else n=mt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(yl);return this.setLocaleToValue(mt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(yl);if(!this.hasTimezonePlugin())throw new Error(Ah);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(mt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=mt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&yb(["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",()=>mt(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(yl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Ah)}return this.setLocaleToValue(mt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:mt(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=z({},yL,n),mt.extend(cL)}getDayOfWeek(t){return t.day()+1}}const vL="_root_1dntq_1",xL="_container_1dntq_72",SL="_header_1dntq_83",wL="_headerText_1dntq_91",CL="_headerTitle_1dntq_97",TL="_headerSubtitle_1dntq_102",PL="_controls_1dntq_106",EL="_headerButton_1dntq_113",ML="_zoomGroup_1dntq_133",OL="_zoomLabel_1dntq_144",kL="_tracksWrapper_1dntq_153",DL="_tracksWithHeader_1dntq_158",RL="_layers_1dntq_162",IL="_timeScale_1dntq_168",AL="_videoTrack_1dntq_172",NL="_eventsTrack_1dntq_176",_L="_trackBox_1dntq_180",jL="_trackLabelRow_1dntq_190",LL="_label_1dntq_198",$L="_trackArea_1dntq_209",VL="_tick_1dntq_215",FL="_tickMajor_1dntq_223",BL="_tickMinor_1dntq_227",zL="_tickLabel_1dntq_231",WL="_segment_1dntq_243",UL="_event_1dntq_176",HL="_eventDot_1dntq_276",YL="_selectionOverlay_1dntq_283",qL="_playhead_1dntq_292",GL="_playheadLine_1dntq_302",KL="_playheadHandle_1dntq_312",Re={root:vL,container:xL,header:SL,headerText:wL,headerTitle:CL,headerSubtitle:TL,controls:PL,headerButton:EL,zoomGroup:ML,zoomLabel:OL,tracksWrapper:kL,tracksWithHeader:DL,layers:RL,timeScale:IL,videoTrack:AL,eventsTrack:NL,trackBox:_L,trackLabelRow:jL,label:LL,trackArea:$L,tick:VL,tickMajor:FL,tickMinor:BL,tickLabel:zL,segment:WL,event:UL,eventDot:HL,selectionOverlay:YL,playhead:qL,playheadLine:GL,playheadHandle:KL};function tt(e,t,n){return Math.min(n,Math.max(t,e))}function Mn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Yo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function xt(e){return String(Math.floor(e)).padStart(2,"0")}function ZL(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function bl(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`${xt(n)}:${xt(o)}:${xt(r)}`}function XL(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`${xt(o)}:${xt(r)}:${xt(i)}:${xt(l)}`}function vl(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?`${xt(n)}:${xt(o)}:${xt(r)}`:`${xt(o)}:${xt(r)}`}function QL(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?`${xt(o)}:${xt(r)}:${xt(i)}:${xt(l)}`:`${xt(r)}:${xt(i)}:${xt(l)}`}function JL(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 e$=(e,t,n)=>t>=3600?bl(e).slice(0,2)+":00:00":t>=60?bl(e).slice(0,5):t>=1?bl(e):XL(e,n),t$=(e,t,n)=>t>=3600||t>=60||t>=1?vl(e):QL(e,n);function n$(){const e=_.useRef(null),[t,n]=_.useState(0);return _.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 o$(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i}=e,[a,l]=Un(ra),[c,u]=Un(sa),[d,f]=Un(hu),p=Di(mu),h=Di(gu),[m,g]=Un(Ey),y=ia(),{ref:v,width:C}=n$(),S=102,T=Math.max(0,C-S-10),[E,M]=_.useState(0),A=_.useMemo(()=>{const Z=Math.max(1/Math.max(1,m.fps),.05);return tt(m.windowSeconds,Z,t)},[m.windowSeconds,m.fps,t]);_.useEffect(()=>{if(!c||C<=0)return;const Z=tt(a-A*.9,0,Math.max(0,t-A));M(Z)},[a,c,C,A,t]);const k=_.useMemo(()=>{const Z=tt(E,0,Math.max(0,t-A)),U=Z+A;return{start:Z,end:U,seconds:A}},[E,t,A]),V=_.useMemo(()=>{if(T<=0)return[];const{majorStep:Z,minorStep:U}=JL({width:T,windowSeconds:k.seconds,fps:m.fps}),Q=Math.floor(k.start/U)*U,J=k.end,ee=[],q=U*1e-6;for(let X=Q;X<=J+q;X+=U){const Y=Mn({time:X,windowStart:k.start,windowSeconds:k.seconds,width:T});if(Y<-1||Y>T+1)continue;const oe=Math.abs(X/Z-Math.round(X/Z))<1e-6;ee.push({time:X,px:Y,kind:oe?"major":"minor",label:oe?r(X,Z,m.fps):void 0})}return ee},[T,r,k.end,k.seconds,k.start,m.fps]),L=_.useRef(null),x=_.useRef(null),j=Z=>{x.current=Z,L.current==null&&(L.current=requestAnimationFrame(()=>{L.current=null;const U=x.current;x.current=null,U==null||U()}))};_.useEffect(()=>()=>{L.current!=null&&cancelAnimationFrame(L.current)},[]);const O=_.useRef(null),I=Z=>{const U=v.current;if(!U)return 0;const Q=U.getBoundingClientRect();return tt(Z-Q.left-S,0,T)};return{viewportRef:v,width:C,axisLeft:S,axisWidth:T,totalSeconds:t,zoom:m,setZoom:g,isLive:c,setIsLive:u,currentTime:a,selectedRange:d,setSelectedRange:f,videoSegments:p,events:h,view:k,ticks:V,onWheel:Z=>{if(!n||C<=0)return;Z.preventDefault(),u(!1);const U=I(Z.clientX),Q=tt(Yo({px:U,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t),ee=Z.deltaY<0?.8:1.25,q=tt(k.seconds*ee,Math.max(1/Math.max(1,m.fps),.05),t),X=tt(Q-U/Math.max(1,T)*q,0,Math.max(0,t-q));g(Y=>({...Y,windowSeconds:q})),M(X)},onPointerDownScrub:Z=>{if(Z.button!==0)return;const U=v.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=I(Z.clientX),J=tt(Yo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);u(!1),O.current={mode:"playhead",pointerId:Z.pointerId,startPx:Q,startTime:J},l(J),y&&y.seekTo(J)},onPointerDownSelect:Z=>{if(Z.button!==0)return;const U=v.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=I(Z.clientX),J=tt(Yo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);u(!1),O.current={mode:"select",pointerId:Z.pointerId,startPx:Q,startTime:J},f({start:J,end:J})},onPointerDownPlayhead:Z=>{if(Z.button!==0)return;const U=v.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=I(Z.clientX),J=tt(Yo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);u(!1),O.current={mode:"playhead",pointerId:Z.pointerId,startPx:Q,startTime:J},l(J),y&&y.seekTo(J)},onPointerMove:Z=>{const U=O.current;if(!U||U.pointerId!==Z.pointerId)return;const Q=I(Z.clientX);j(()=>{const J=tt(Yo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);if(U.mode==="playhead")l(J),y&&y.seekTo(J);else{const ee=Math.min(U.startTime,J),q=Math.max(U.startTime,J);f({start:ee,end:q})}})},onPointerUp:Z=>{const U=O.current;if(!(!U||U.pointerId!==Z.pointerId)&&(O.current=null,U.mode==="select"&&d)){const Q=Math.abs(d.end-d.start);if(Q<Math.max(1/Math.max(1,m.fps),.1))f(null);else if(o){const J=tt(Q*1.05,Math.max(1/Math.max(1,m.fps),.05),t),ee=tt(d.start,0,Math.max(0,t-J));g(q=>({...q,windowSeconds:J})),M(ee)}}},onClickSegment:Z=>{u(!1);const U=tt(Z,0,t);l(U),y&&y.seekTo(U)},onClickEvent:Z=>{i&&f(null),u(!1);const U=tt(Z,0,t);l(U),y&&y.seekTo(U),M(tt(Z-k.seconds/2,0,Math.max(0,t-k.seconds)))},resetView:()=>{u(!1),g(Z=>({...Z,windowSeconds:t})),M(0)}}}const Tv=({ticks:e})=>b.jsx("div",{className:Re.trackArea,children:e.map(t=>b.jsxs("div",{children:[b.jsx("div",{className:`${Re.tick} ${t.kind==="minor"?Re.tickMinor:Re.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?b.jsx("div",{className:Re.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});Tv.displayName="TimeScale";const Pv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:tt(c.start,0,r),end:tt(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=Mn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=tt(Yo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return b.jsx("div",{className:Re.trackArea,children:a.map((c,u)=>{const d=Mn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Mn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return b.jsx("div",{className:Re.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}`)})})};Pv.displayName="VideoTrack";const Ev=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:tt(l.time,0,r)})).filter(l=>l.time>=t&&l.time<=t+n);return b.jsx("div",{className:Re.trackArea,children:a.map(l=>{const c=Mn({time:l.time,windowStart:t,windowSeconds:n,width:o});return b.jsx("button",{type:"button",className:Re.event,onPointerDown:u=>{u.stopPropagation()},onClick:()=>i(l.time,l),style:{left:`${c}px`},"aria-label":`Evento em ${l.time.toFixed(2)}s`,children:l.icon?l.icon:b.jsx("span",{className:Re.eventDot})},l.id)})})};Ev.displayName="EventsTrack";const Mv=({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=190,autoZoomOnSelection:d=!0,showZoomControls:f=!0,enableScrubOnTracks:p=!1,clearSelectionOnEventClick:h=!0,onDownloadClick:m,date:g,onDateChange:y,videoLabel:v="Vídeo",eventsLabel:C="Eventos",downloadLabel:S="Baixar vídeo",onSegmentClick:w,onEventClick:T,segments:E,events:M,...A})=>{const V=ie.useTheme().palette.mode==="dark",[L,x]=_.useState(!1),j=lc(mu),O=lc(gu);_.useEffect(()=>{E!==void 0&&j(E)},[E,j]),_.useEffect(()=>{M!==void 0&&O(M)},[M,O]);const I=a??(i==="duration"?t$:e$),{viewportRef:D,axisLeft:N,axisWidth:B,zoom:F,currentTime:$,selectedRange:R,videoSegments:W,events:K,view:G,ticks:Z,onWheel:U,onPointerDownScrub:Q,onPointerDownSelect:J,onPointerDownPlayhead:ee,onPointerMove:q,onPointerUp:X,onClickSegment:Y,onClickEvent:oe,setZoom:te}=o$({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:I,clearSelectionOnEventClick:h}),ae=B?N+Mn({time:$,windowStart:G.start,windowSeconds:G.seconds,width:B}):N,re=Math.max(1/Math.max(1,F.fps),.5),be=re/l,se=(()=>{const ue=tt(G.seconds,re,l);if(be<=0||be>=1)return 0;const de=Math.log(ue/l)/Math.log(be)*100;return tt(de,0,100)})(),he=ue=>{const de=tt(ue,0,100),Ie=l*Math.pow(be,de/100);te(Me=>({...Me,windowSeconds:tt(Ie,re,l)}))},le=`${Math.round(se)}%`;return b.jsxs(H.Box,{className:`${Re.root} ${Re.container} ${e??""}`.trim(),"data-theme":V?"dark":"light",sx:t,...A,children:[r?b.jsxs("div",{className:Re.header,children:[b.jsxs("div",{className:Re.headerText,children:[b.jsx(H.Typography,{variant:"subtitle1",className:Re.headerTitle,children:n}),b.jsx(H.Typography,{variant:"body2",className:Re.headerSubtitle,children:o})]}),b.jsxs("div",{className:Re.controls,children:[m?b.jsxs("button",{type:"button",className:Re.headerButton,onClick:m,"aria-label":S,children:[b.jsx(d2,{fontSize:"small"}),S]}):null,g!==void 0?b.jsx(la,{dateAdapter:bL,children:b.jsx(pd,{open:L,onOpen:()=>x(!0),onClose:()=>x(!1),value:mt(g),onChange:ue=>{ue&&y&&y(ue.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:Re.headerButton,onClick:()=>x(!0),"aria-label":"Selecionar data",children:[b.jsx(f2,{fontSize:"small"}),mt(g).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(H.Box,{className:Re.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(H.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>he(se-10),children:b.jsx(u2,{fontSize:"small"})}),b.jsx("span",{className:Re.zoomLabel,children:le}),b.jsx(H.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>he(se+10),children:b.jsx(c2,{fontSize:"small"})})]}):null]})]}):null,b.jsx(H.Box,{className:`${Re.tracksWrapper} ${r?Re.tracksWithHeader:""}`.trim(),style:{height:u},children:b.jsxs("div",{ref:D,className:Re.layers,onWheel:U,onPointerMove:q,onPointerUp:X,children:[b.jsxs("div",{className:Re.playhead,style:{left:`${ae}px`},onPointerDown:ee,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":$,tabIndex:0,children:[b.jsx("div",{className:Re.playheadHandle}),b.jsx("div",{className:Re.playheadLine})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.timeScale}`.trim(),children:[b.jsx("div",{}),b.jsx("div",{onPointerDown:Q,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(Tv,{ticks:Z})})]}),b.jsxs(H.Box,{className:Re.trackBox,onPointerDown:J,children:[R?b.jsx("div",{className:Re.selectionOverlay,style:{left:`${N+Mn({time:R.start,windowStart:G.start,windowSeconds:G.seconds,width:B})}px`,width:`${Math.max(0,Mn({time:R.end,windowStart:G.start,windowSeconds:G.seconds,width:B})-Mn({time:R.start,windowStart:G.start,windowSeconds:G.seconds,width:B}))}px`}}):null,b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.videoTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:v}),b.jsx("div",{onPointerDown:p?Q:void 0,style:{height:"100%"},children:b.jsx(Pv,{segments:W,viewStart:G.start,viewSeconds:G.seconds,width:B,totalSeconds:l,onClickSegment:(ue,de)=>{Y(ue),w==null||w(ue,de)}})})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.eventsTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:C}),b.jsx("div",{onPointerDown:p?Q:void 0,style:{height:"100%"},children:b.jsx(Ev,{events:K,viewStart:G.start,viewSeconds:G.seconds,width:B,totalSeconds:l,onClickEvent:(ue,de)=>{oe(ue),T==null||T(ue,de)}})})]})]})]})})]})};Mv.displayName="VideoTimeline";const r$=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=ia(),[a,l]=Un(ra),[c,u]=Un(sa),d=Di(hu),f=_.useRef(-1);return _.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(ZL()),p=requestAnimationFrame(m))};return p=requestAnimationFrame(m),()=>{h=!1,p!=null&&cancelAnimationFrame(p)}},[e,l,u,t]),_.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]),_.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]),_.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},Ov=({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:C,height:S,aspectRatio:w,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:A,borderRadius:k})=>{const V=!!e,L=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(My,{children:[b.jsx(bu,{stream:e,availableQualities:L,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:C,height:S,aspectRatio:w,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:A,borderRadius:k}),b.jsx(r$,{isStream:V,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Ov.displayName="VideoPlayerWebRTC";const s$=ft(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),i$="_container_1vjy6_1",a$="_segment_1vjy6_7",l$="_selected_1vjy6_20",c$="_label_1vjy6_28",u$="_icon_1vjy6_37",d$="_checkIcon_1vjy6_47",f$="_unselected_1vjy6_53",go={container:i$,segment:a$,selected:l$,label:c$,icon:u$,checkIcon:d$,unselected:f$},kv=({items:e,className:t,sx:n,...o})=>{const i=H.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(H.Box,{className:`${go.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(H.Box,{className:`${go.segment} ${l.selected?go.selected:go.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(H.Box,{className:go.icon,children:b.jsx(s$,{className:go.checkIcon})}),b.jsx(H.Box,{className:go.label,children:l.label})]},c))})};kv.displayName="DisplayTypes";const p$=600,xl=[.32,.72,0,1],Sl=400,Dv=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=p$,className:l,sx:c})=>{const u=H.useTheme(),d=H.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${Sl}ms cubic-bezier(${xl.join(",")}), min-width ${Sl}ms cubic-bezier(${xl.join(",")})`;if(d&&i!=="both")return b.jsxs(H.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(H.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(H.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(H.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${Sl}ms cubic-bezier(${xl.join(",")})`,...c},children:[b.jsx(H.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(H.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};Dv.displayName="SplitLayout";const h$=256,Rv=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=h$,gap:r=2,className:i,sx:a})=>{const c=H.useTheme().spacing(r),u=n-1;return b.jsx(H.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})};Rv.displayName="ResponsiveGrid";const Iv=ft(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var m$=e=>e.type==="checkbox",qr=e=>e instanceof Date,hd=e=>e==null;const Av=e=>typeof e=="object";var No=e=>!hd(e)&&!Array.isArray(e)&&Av(e)&&!qr(e),g$=e=>No(e)&&e.target?m$(e.target)?e.target.checked:e.target.value:e,y$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,b$=(e,t)=>e.has(y$(t)),v$=e=>{const t=e.constructor&&e.constructor.prototype;return No(t)&&t.hasOwnProperty("isPrototypeOf")},x$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nv(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(x$&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(No(e)&&v$(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Nv(e[r]));return o}var _v=e=>/^\w*$/.test(e),Sc=e=>e===void 0,S$=e=>Array.isArray(e)?e.filter(Boolean):[],jv=e=>S$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(e,t,n)=>{if(!t||!No(e))return n;const o=(_v(t)?[t]:jv(t)).reduce((r,i)=>hd(r)?r:r[i],e);return Sc(o)||o===e?Sc(e[t])?n:e[t]:o},wl=e=>typeof e=="boolean",ri=e=>typeof e=="function",Nh=(e,t,n)=>{let o=-1;const r=_v(t)?[t]:jv(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=No(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const _h={BLUR:"blur",CHANGE:"change"},jh={all:"all"},Lv=_.createContext(null);Lv.displayName="HookFormControlContext";const md=()=>_.useContext(Lv);var w$=(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]!==jh.all&&(t._proxyFormState[a]=!o||jh.all),n&&(n[a]=!0),e[a]}});return r};const $v=typeof window<"u"?_.useLayoutEffect:_.useEffect;function C$(e){const t=md(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=_.useState(n._formState),c=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return $v(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),_.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>w$(a,n,c.current,!1),[a,n])}var T$=e=>typeof e=="string",Lh=(e,t,n,o,r)=>T$(e)?Lt(n,e,r):Array.isArray(e)?e.map(i=>Lt(n,i)):n,$h=e=>hd(e)||!Av(e);function hi(e,t,n=new WeakSet){if($h(e)||$h(t))return Object.is(e,t);if(qr(e)&&qr(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(qr(a)&&qr(l)||No(a)&&No(l)||Array.isArray(a)&&Array.isArray(l)?!hi(a,l,n):!Object.is(a,l))return!1}}return!0}function P$(e){const t=md(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=_.useRef(r),u=_.useRef(l),d=_.useRef(void 0),f=_.useRef(n),p=_.useRef(o);u.current=l;const[h,m]=_.useState(()=>{const w=n._getWatch(o,c.current);return u.current?u.current(w):w}),g=_.useCallback(w=>{const T=Lh(o,n._names,w||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=_.useCallback(w=>{if(!i){const T=Lh(o,n._names,w||n._formValues,!1,c.current);if(u.current){const E=u.current(T);hi(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);$v(()=>((f.current!==n||!hi(p.current,o))&&(f.current=n,p.current=o,y()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:w=>{y(w.values)}})),[n,a,o,y]),_.useEffect(()=>n._removeUnmounted());const v=f.current!==n,C=p.current,S=_.useMemo(()=>{if(i)return null;const w=!v&&!hi(C,o);return v||w?g():null},[i,v,o,C,g]);return S!==null?S:h}function E$(e){const t=md(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=b$(r._names.array,n),u=_.useMemo(()=>Lt(r._formValues,n,Lt(r._defaultValues,n,a)),[r,n,a]),d=P$({control:r,name:n,defaultValue:u,exact:l}),f=C$({control:r,name:n,exact:l}),p=_.useRef(e),h=_.useRef(void 0),m=_.useRef(r.register(n,{...e.rules,value:d,...wl(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Lt(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Lt(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Lt(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Lt(f.validatingFields,n)},error:{enumerable:!0,get:()=>Lt(f.errors,n)}}),[f,n]),y=_.useCallback(w=>m.current.onChange({target:{value:g$(w),name:n},type:_h.CHANGE}),[n]),v=_.useCallback(()=>m.current.onBlur({target:{value:Lt(r._formValues,n),name:n},type:_h.BLUR}),[n,r._formValues]),C=_.useCallback(w=>{const T=Lt(r._fields,n);T&&T._f&&w&&(T._f.ref={focus:()=>ri(w.focus)&&w.focus(),select:()=>ri(w.select)&&w.select(),setCustomValidity:E=>ri(w.setCustomValidity)&&w.setCustomValidity(E),reportValidity:()=>ri(w.reportValidity)&&w.reportValidity()})},[r._fields,n]),S=_.useMemo(()=>({name:n,value:d,...wl(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:C}),[n,o,f.disabled,y,v,C,d]);return _.useEffect(()=>{const w=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...wl(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,A)=>{const k=Lt(r._fields,M);k&&k._f&&(k._f.mount=A)};if(E(n,!0),w){const M=Nv(Lt(r._options.defaultValues,n,p.current.defaultValue));Nh(r._defaultValues,n,M),Sc(Lt(r._formValues,n))&&Nh(r._formValues,n,M)}return!c&&r.register(n),h.current=n,()=>{(c?w&&!r._state.action:w)?r.unregister(n):E(n,!1)}},[n,r,c,i]),_.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),_.useMemo(()=>({field:S,formState:f,fieldState:g}),[S,f,g])}const gd=e=>e.render(E$(e)),M$=_.createContext(null);M$.displayName="HookFormContext";const O$="_formSelect_s09hu_1",k$="_labelWrapper_s09hu_5",D$="_inputLabel_s09hu_9",R$="_placeholder_s09hu_75",I$="_helperText_s09hu_121",yo={formSelect:O$,labelWrapper:k$,inputLabel:D$,placeholder:R$,helperText:I$},Vv=({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=H.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:m,fieldState:g})=>{var S;const y=!!g.error,v=y||!!i,C=y?(S=g.error)==null?void 0:S.message:i;return b.jsxs("div",{className:`${yo.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:yo.labelWrapper,children:b.jsxs("span",{className:yo.inputLabel,children:[n,a?" *":""]})}),b.jsxs(H.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(H.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(w=>{if(w===""||w===null||w===void 0)return b.jsx("span",{className:yo.placeholder,children:r||""});const T=o.find(E=>E.value===w);return(T==null?void 0:T.label)||String(w)}),className:yo.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(H.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:yo.placeholder,children:r})}),o.map(w=>{const T=m.value===w.value;return b.jsxs(H.MenuItem,{value:w.value,disabled:w.disabled,children:[T&&b.jsx(H.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Iv,{sx:{fontSize:20}})}),w.label]},String(w.value))})]}),v&&b.jsx(H.FormHelperText,{className:yo.helperText,children:C})]})]})}})};Vv.displayName="FormSelect";const A$="_formMultiSelect_1d6fa_1",N$="_labelWrapper_1d6fa_5",_$="_inputLabel_1d6fa_9",j$="_placeholder_1d6fa_75",L$="_helperText_1d6fa_124",$$="_chipsContainer_1d6fa_153",V$="_chip_1d6fa_153",Tn={formMultiSelect:A$,labelWrapper:N$,inputLabel:_$,placeholder:j$,helperText:L$,chipsContainer:$$,chip:V$},Fv=({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 C=H.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:S,fieldState:w})=>{var L;const T=!!w.error,E=T||!!i,M=T?(L=w.error)==null?void 0:L.message:i,A=Array.isArray(S.value)?S.value:[];A.length>0;const V=f||(x=>{if(!Array.isArray(x)||x.length===0)return b.jsx("span",{className:Tn.placeholder,children:r||""});const j=d?x.slice(0,d):x,O=d&&x.length>d?x.length-d:0;return b.jsxs(H.Box,{className:Tn.chipsContainer,children:[j.map(I=>{const D=o.find(N=>N.value===I);return b.jsx(H.Chip,{label:(D==null?void 0:D.label)||String(I),size:"small",variant:u,className:Tn.chip},String(I))}),O>0&&b.jsx(H.Chip,{label:`+${O}`,size:"small",variant:u,className:Tn.chip})]})});return b.jsxs("div",{className:`${Tn.formMultiSelect} ${p||""}`,"data-theme":C?"dark":"light",children:[b.jsx("div",{className:Tn.labelWrapper,children:b.jsxs("span",{className:Tn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(H.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(H.Select,{...S,...y,variant:"outlined",multiple:!0,value:A,onChange:x=>{S.onChange(x.target.value)},displayEmpty:!!r,renderValue:V,className:Tn.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)",...C?{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",...C?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...C?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...C?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:C?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(x=>{const j=A.includes(x.value);return b.jsxs(H.MenuItem,{value:x.value,disabled:x.disabled,children:[j&&b.jsx(H.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Iv,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),E&&b.jsx(H.FormHelperText,{className:Tn.helperText,children:M})]})]})}})};Fv.displayName="FormMultiSelect";const F$="_formInput_195f5_1",B$="_labelWrapper_195f5_5",z$="_inputLabel_195f5_9",$r={formInput:F$,labelWrapper:B$,inputLabel:z$},Bv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,...d})=>{const p=H.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:h,fieldState:m})=>{var v;const g=!!m.error,y=g?(v=m.error)==null?void 0:v.message:i;return b.jsxs("div",{className:`${$r.formInput} ${u||""}`,"data-theme":p?"dark":"light",children:[b.jsx("div",{className:$r.labelWrapper,children:b.jsxs("span",{className:$r.inputLabel,children:[n,a?" *":""]})}),b.jsx(H.TextField,{...h,...d,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:g,helperText:y,variant:"outlined",className:$r.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:$r.inputRoot}})]})}})};Bv.displayName="FormInput";const W$="_viewChip_18qqe_1",U$="_active_18qqe_61",H$="_icon_18qqe_76",Y$="_label_18qqe_81",si={viewChip:W$,active:U$,icon:H$,label:Y$},zv=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=H.useTheme().palette.mode==="dark";return b.jsxs(H.Box,{ref:i,className:`${si.viewChip} ${n?si.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(H.Box,{className:si.icon,component:"div",children:t}),b.jsx(H.Box,{className:si.label,component:"span",children:e})]})};zv.displayName="ViewChip";exports.Button=wc;exports.CAMERA_ALGORITHM_FACIAL=Ms;exports.CAMERA_ALGORITHM_LPR=Os;exports.CameraCard=PM;exports.CountCard=FS;exports.DisplayTypes=kv;exports.FilterButton=Yh;exports.FilterChip=qh;exports.FilterModal=mm;exports.FormInput=Bv;exports.FormMultiSelect=Fv;exports.FormSelect=Vv;exports.GoogleMap=cy;exports.MapContent=du;exports.MapMarkers=py;exports.MapSpot=cu;exports.ModuleMenu=by;exports.NotFoundContent=my;exports.ResponsiveGrid=Rv;exports.SearchBar=hy;exports.SidebarMenu=yy;exports.SplitLayout=Dv;exports.VideoControlProvider=My;exports.VideoPlayer=bu;exports.VideoPlayerWebRTC=Ov;exports.VideoTimeline=Mv;exports.ViewChip=zv;exports.VisioThemeProvider=Xv;exports.ZoomControls=IM;exports.currentTimeAtom=ra;exports.darkColors=at;exports.darkTheme=Uh;exports.eventsAtom=gu;exports.isLiveAtom=sa;exports.lightColors=it;exports.lightTheme=Wh;exports.radiiTokens=ii;exports.selectedRangeAtom=hu;exports.spacingScale=Gv;exports.spacingTokens=Bh;exports.typographyTokens=Tt;exports.useGoogleMapContext=uu;exports.useVideoControl=ia;exports.useVideoControlRequired=Lk;exports.useVisioTheme=Qv;exports.videoSegmentsAtom=mu;exports.zoomAtom=Ey;
|
|
245
245
|
//# sourceMappingURL=index.cjs.js.map
|