@visio-io/design-system 1.8.0 → 1.8.2
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 +76 -76
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8287 -8229
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/CameraCard/CameraCard.d.ts +7 -3
- package/dist/types/components/CameraCard/CameraCard.stories.d.ts +3 -0
- package/dist/types/components/MapSpot/index.d.ts +2 -0
- package/dist/types/components/VideoPlayer/components/ControlMenu.d.ts +4 -1
- package/dist/types/components/VideoPlayer/components/Timestamp.d.ts +3 -0
- package/dist/types/components/VideoPlayer/icons/Seek.d.ts +6 -0
- package/dist/types/components/VideoPlayer/icons/SeekForward.d.ts +6 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/styles/tokens/typography.d.ts +1 -1
- package/package.json +1 -1
- package/src/styles/tokens/typography.ts +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Zv=Object.defineProperty;var Xv=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var
|
|
1
|
+
"use strict";var Zv=Object.defineProperty;var Xv=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>Xv(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("@mui/material/styles"),k=require("react"),G=require("@mui/material"),Tt=require("@mui/icons-material"),zt=require("@mui/system"),Qv=require("@emotion/styled"),Jv=require("@emotion/react"),Xo=require("react-dom");function Bh(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=Bh(k),e0=Bh(Xo),dt={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"},ft={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"},Mt={fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:{xs:12,sm:14,md:16,lg:18,xl:20,xxl:24},fontWeight:{regular:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.2,normal:1.5,relaxed:1.7}},zh={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},mi={sm:4,md:8,lg:12,xl:16,pill:999},Wh={shape:{borderRadius:mi.md,borderRadiusSm:mi.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:mi.md,fontWeight:Mt.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:Mt.fontFamily,fontWeightRegular:Mt.fontWeight.regular,fontWeightMedium:Mt.fontWeight.medium,fontWeightBold:Mt.fontWeight.bold,h1:{fontSize:Mt.fontSize.xxl,fontWeight:Mt.fontWeight.bold,lineHeight:Mt.lineHeight.tight},h2:{fontSize:Mt.fontSize.xl,fontWeight:Mt.fontWeight.bold,lineHeight:Mt.lineHeight.tight},body1:{fontSize:Mt.fontSize.md,lineHeight:Mt.lineHeight.normal},body2:{fontSize:Mt.fontSize.sm,lineHeight:Mt.lineHeight.normal},button:{fontWeight:Mt.fontWeight.semibold,textTransform:"none"}}},Uh=ae.createTheme({...Wh,palette:{mode:"light",primary:{main:dt.primary,contrastText:dt.onPrimary},secondary:{main:dt.secondary,contrastText:dt.onSecondary},error:{main:dt.error,contrastText:dt.onError},background:{default:dt.surface,paper:dt.surface},text:{primary:dt.onSurface,secondary:dt.onSurfaceVariant},divider:dt.outline},visio:{surfaceVariant:dt.surfaceVariant,onSurfaceVariant:dt.onSurfaceVariant,inverseSurface:dt.inverseSurface,inverseOnSurface:dt.inverseOnSurface,inversePrimary:dt.inversePrimary,outline:dt.outline,tertiary:{main:dt.tertiary,contrastText:dt.onTertiary,container:dt.tertiaryContainer,onContainer:dt.onTertiaryContainer}}}),Hh=ae.createTheme({...Wh,palette:{mode:"dark",primary:{main:ft.primary,contrastText:ft.onPrimary},secondary:{main:ft.secondary,contrastText:ft.onSecondary},error:{main:ft.error,contrastText:ft.onError},background:{default:ft.surface,paper:ft.surface},text:{primary:ft.onSurface,secondary:ft.onSurfaceVariant},divider:ft.outline},visio:{surfaceVariant:ft.surfaceVariant,onSurfaceVariant:ft.onSurfaceVariant,inverseSurface:ft.inverseSurface,inverseOnSurface:ft.inverseOnSurface,inversePrimary:ft.inversePrimary,outline:ft.outline,tertiary:{main:ft.tertiary,contrastText:ft.onTertiary,container:ft.tertiaryContainer,onContainer:ft.onTertiaryContainer}}}),t0=zh;var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ol={exports:{}},kr={};/**
|
|
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 n0(){if(bd)return kr;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 kr.Fragment=t,kr.jsx=n,kr.jsxs=n,kr}var Dr={};/**
|
|
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 o0(){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===N?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 $: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 Y=R.render;return R=R.displayName,R||(R=Y.displayName||Y.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case _:return Y=R.displayName||null,Y!==null?Y:e(R.type)||"Memo";case D:Y=R._payload,R=R._init;try{return e(R(Y))}catch{}}return null}function t(R){return""+R}function n(R){try{t(R);var Y=!1}catch{Y=!0}if(Y){Y=console;var q=Y.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return q.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(R)}}function o(R){if(R===y)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===D)return"<...>";try{var Y=e(R);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function r(){var R=x.A;return R===null?null:R.getOwner()}function i(){return Error("react-stack-top-frame")}function a(R){if(L.call(R,"key")){var Y=Object.getOwnPropertyDescriptor(R,"key").get;if(Y&&Y.isReactWarning)return!1}return R.key!==void 0}function l(R,Y){function q(){O||(O=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}q.isReactWarning=!0,Object.defineProperty(R,"key",{get:q,configurable:!0})}function c(){var R=e(this.type);return j[R]||(j[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,Y,q,K,oe,Z){var Q=q.ref;return R={$$typeof:m,type:R,key:Y,props:q,_owner:K},(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:oe}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function d(R,Y,q,K,oe,Z){var Q=Y.children;if(Q!==void 0)if(K)if(I(Q)){for(K=0;K<Q.length;K++)f(Q[K]);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(L.call(Y,"key")){Q=e(R);var se=Object.keys(Y).filter(function(V){return V!=="key"});K=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",z[Q+K]||(se=0<se.length?"{"+se.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} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,K,Q,se,Q),z[Q+K]=!0)}if(Q=null,q!==void 0&&(n(q),Q=""+q),a(Y)&&(n(Y.key),Q=""+Y.key),"key"in Y){q={};for(var J in Y)J!=="key"&&(q[J]=Y[J])}else q=Y;return Q&&l(q,typeof R=="function"?R.displayName||R.name||"Unknown":R),u(R,Q,q,r(),oe,Z)}function f(R){p(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===D&&(R._payload.status==="fulfilled"?p(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function p(R){return typeof R=="object"&&R!==null&&R.$$typeof===m}var h=k,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"),_=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,I=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(R){return R()}};var O,j={},B=h.react_stack_bottom_frame.bind(h,i)(),F=A(o(i)),z={};Dr.Fragment=y,Dr.jsx=function(R,Y,q){var K=1e4>x.recentlyCreatedOwnerStacks++;return d(R,Y,q,!1,K?Error("react-stack-top-frame"):B,K?A(o(R)):F)},Dr.jsxs=function(R,Y,q){var K=1e4>x.recentlyCreatedOwnerStacks++;return d(R,Y,q,!0,K?Error("react-stack-top-frame"):B,K?A(o(R)):F)}}()),Dr}process.env.NODE_ENV==="production"?Ol.exports=n0():Ol.exports=o0();var b=Ol.exports;const Yh=k.createContext(null),r0=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=k.useState(n??t),l=n??i;k.useEffect(()=>{n&&a(n)},[n]);const c=k.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),u=k.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),d=k.useMemo(()=>l==="dark"?Hh:Uh,[l]),f=k.useMemo(()=>({mode:l,setMode:c,toggleMode:u,theme:d}),[l,c,u,d]);return b.jsx(Yh.Provider,{value:f,children:b.jsxs(G.ThemeProvider,{theme:d,children:[r?b.jsx(G.CssBaseline,{}):null,e]})})},s0=()=>{const e=k.useContext(Yh);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},i0="_button_1x96v_1",a0="_borderRadiusNone_1x96v_8",l0="_borderRadiusSmall_1x96v_12",c0="_borderRadiusMedium_1x96v_16",u0="_borderRadiusLarge_1x96v_20",d0="_borderRadiusRound_1x96v_24",wo={button:i0,borderRadiusNone:a0,borderRadiusSmall:l0,borderRadiusMedium:c0,borderRadiusLarge:u0,borderRadiusRound:d0},f0=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return wo.borderRadiusNone;case"small":return wo.borderRadiusSmall;case"medium":return wo.borderRadiusMedium;case"large":return wo.borderRadiusLarge;case"round":return wo.borderRadiusRound;default:return wo.borderRadiusMedium}},p0=e=>{if(typeof e=="number")return`${e}px`},h0=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},Ec=k.forwardRef(({children:e,loading:t=!1,loadingText:n,startIcon:o,endIcon:r,variant:i="contained",size:a="medium",color:l="primary",borderRadius:c="medium",fullWidth:u=!1,disabled:d=!1,type:f="button",className:p,onClick:h,onAction:m,...g},y)=>{const v=d||t,C=f0(c),S=p0(c),w=h0(v,h,m),T=`${wo.button} ${C} ${p||""}`.trim();return b.jsx(G.Button,{ref:y,variant:i,size:a,color:l,fullWidth:u,disabled:v,type:f,onClick:w,startIcon:t?b.jsx(G.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})});Ec.displayName="Button";const m0=e=>{if(e)return t=>{e(t)}},g0="_filterButton_8fgad_1",y0={filterButton:g0},qh=k.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=G.useTheme().palette.mode==="dark",l=m0(t);return b.jsx(G.Button,{ref:r,variant:"outlined",onClick:l,className:`${y0.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});qh.displayName="FilterButton";const b0=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},v0="_filterChip_l6gto_1",x0="_textVariant_l6gto_52",S0="_icon_l6gto_64",w0="_label_l6gto_80",C0="_overlay_l6gto_92",T0="_deleteIcon_l6gto_106",Vo={filterChip:v0,textVariant:x0,icon:S0,label:w0,overlay:C0,deleteIcon:T0},Gh=({label:e,icon:t,onRemove:n,className:o,onClick:r,variant:i="outlined",ref:a,...l})=>{const u=G.useTheme().palette.mode==="dark",d=b0(n,r),f=i==="text";return b.jsxs(G.Box,{ref:a,className:`${Vo.filterChip} ${f?Vo.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(G.Box,{className:Vo.icon,component:"div",children:t}),b.jsx(G.Box,{className:Vo.label,component:"span",children:e}),!f&&b.jsx(G.Box,{className:Vo.overlay,component:"div",children:b.jsx(Tt.Delete,{className:Vo.deleteIcon})})]})};Gh.displayName="FilterChip";const xd=e=>e,P0=()=>{let e=xd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xd}}},E0=P0();function Cn(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.":Cn(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 kl={exports:{}},Zs={exports:{}},ze={};/** @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 M0(){if(wd)return ze;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 ze.AsyncMode=c,ze.ConcurrentMode=u,ze.ContextConsumer=l,ze.ContextProvider=a,ze.Element=t,ze.ForwardRef=d,ze.Fragment=o,ze.Lazy=m,ze.Memo=h,ze.Portal=n,ze.Profiler=i,ze.StrictMode=r,ze.Suspense=f,ze.isAsyncMode=function(T){return w(T)||S(T)===c},ze.isConcurrentMode=w,ze.isContextConsumer=function(T){return S(T)===l},ze.isContextProvider=function(T){return S(T)===a},ze.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},ze.isForwardRef=function(T){return S(T)===d},ze.isFragment=function(T){return S(T)===o},ze.isLazy=function(T){return S(T)===m},ze.isMemo=function(T){return S(T)===h},ze.isPortal=function(T){return S(T)===n},ze.isProfiler=function(T){return S(T)===i},ze.isStrictMode=function(T){return S(T)===r},ze.isSuspense=function(T){return S(T)===f},ze.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)},ze.typeOf=S,ze}var We={};/** @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 O0(){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(W){return typeof W=="string"||typeof W=="function"||W===o||W===u||W===i||W===r||W===f||W===p||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===h||W.$$typeof===a||W.$$typeof===l||W.$$typeof===d||W.$$typeof===y||W.$$typeof===v||W.$$typeof===C||W.$$typeof===g)}function w(W){if(typeof W=="object"&&W!==null){var ee=W.$$typeof;switch(ee){case t:var X=W.type;switch(X){case c:case u:case o:case i:case r:case f:return X;default:var re=X&&X.$$typeof;switch(re){case l:case d:case m:case h:case a:return re;default:return ee}}case n:return ee}}}var T=c,E=u,M=l,_=a,D=t,$=d,N=o,x=m,L=h,I=n,A=i,O=r,j=f,B=!1;function F(W){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.")),z(W)||w(W)===c}function z(W){return w(W)===u}function R(W){return w(W)===l}function Y(W){return w(W)===a}function q(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function K(W){return w(W)===d}function oe(W){return w(W)===o}function Z(W){return w(W)===m}function Q(W){return w(W)===h}function se(W){return w(W)===n}function J(W){return w(W)===i}function V(W){return w(W)===r}function U(W){return w(W)===f}We.AsyncMode=T,We.ConcurrentMode=E,We.ContextConsumer=M,We.ContextProvider=_,We.Element=D,We.ForwardRef=$,We.Fragment=N,We.Lazy=x,We.Memo=L,We.Portal=I,We.Profiler=A,We.StrictMode=O,We.Suspense=j,We.isAsyncMode=F,We.isConcurrentMode=z,We.isContextConsumer=R,We.isContextProvider=Y,We.isElement=q,We.isForwardRef=K,We.isFragment=oe,We.isLazy=Z,We.isMemo=Q,We.isPortal=se,We.isProfiler=J,We.isStrictMode=V,We.isSuspense=U,We.isValidElementType=S,We.typeOf=w}()),We}var Td;function Kh(){return Td||(Td=1,process.env.NODE_ENV==="production"?Zs.exports=M0():Zs.exports=O0()),Zs.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var Fa,
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
40
|
+
*/var Fa,Pd;function k0(){if(Pd)return Fa;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 Fa=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},Fa}var Ba,Ed;function Mc(){if(Ed)return Ba;Ed=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ba=e,Ba}var za,Md;function Zh(){return Md||(Md=1,za=Function.call.bind(Object.prototype.hasOwnProperty)),za}var Wa,Od;function D0(){if(Od)return Wa;Od=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Mc(),n={},o=Zh();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={})},Wa=r,Wa}var Ua,kd;function R0(){if(kd)return Ua;kd=1;var e=Kh(),t=k0(),n=Mc(),o=Zh(),r=D0(),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 Ua=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(z){var R=z&&(u&&z[u]||z[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:$(),objectOf:_,oneOf:M,oneOfType:D,shape:x,exact:L};function m(z,R){return z===R?z!==0||1/z===1/R:z!==z&&R!==R}function g(z,R){this.message=z,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var R={},Y=0;function q(oe,Z,Q,se,J,V,U){if(se=se||p,V=V||Q,U!==n){if(c){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=se+":"+Q;!R[ee]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+se+"`. 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[ee]=!0,Y++)}}return Z[Q]==null?oe?Z[Q]===null?new g("The "+J+" `"+V+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new g("The "+J+" `"+V+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:z(Z,Q,se,J,V)}var K=q.bind(null,!1);return K.isRequired=q.bind(null,!0),K}function v(z){function R(Y,q,K,oe,Z,Q){var se=Y[q],J=O(se);if(J!==z){var V=j(se);return new g("Invalid "+oe+" `"+Z+"` of type "+("`"+V+"` supplied to `"+K+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(R)}function C(){return y(a)}function S(z){function R(Y,q,K,oe,Z){if(typeof z!="function")return new g("Property `"+Z+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var Q=Y[q];if(!Array.isArray(Q)){var se=O(Q);return new g("Invalid "+oe+" `"+Z+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an array."))}for(var J=0;J<Q.length;J++){var V=z(Q,J,K,oe,Z+"["+J+"]",n);if(V instanceof Error)return V}return null}return y(R)}function w(){function z(R,Y,q,K,oe){var Z=R[Y];if(!l(Z)){var Q=O(Z);return new g("Invalid "+K+" `"+oe+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return y(z)}function T(){function z(R,Y,q,K,oe){var Z=R[Y];if(!e.isValidElementType(Z)){var Q=O(Z);return new g("Invalid "+K+" `"+oe+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return y(z)}function E(z){function R(Y,q,K,oe,Z){if(!(Y[q]instanceof z)){var Q=z.name||p,se=F(Y[q]);return new g("Invalid "+oe+" `"+Z+"` of type "+("`"+se+"` supplied to `"+K+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(R)}function M(z){if(!Array.isArray(z))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(Y,q,K,oe,Z){for(var Q=Y[q],se=0;se<z.length;se++)if(m(Q,z[se]))return null;var J=JSON.stringify(z,function(U,W){var ee=j(W);return ee==="symbol"?String(W):W});return new g("Invalid "+oe+" `"+Z+"` of value `"+String(Q)+"` "+("supplied to `"+K+"`, expected one of "+J+"."))}return y(R)}function _(z){function R(Y,q,K,oe,Z){if(typeof z!="function")return new g("Property `"+Z+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var Q=Y[q],se=O(Q);if(se!=="object")return new g("Invalid "+oe+" `"+Z+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an object."));for(var J in Q)if(o(Q,J)){var V=z(Q,J,K,oe,Z+"."+J,n);if(V instanceof Error)return V}return null}return y(R)}function D(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<z.length;R++){var Y=z[R];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(Y)+" at index "+R+"."),a}function q(K,oe,Z,Q,se){for(var J=[],V=0;V<z.length;V++){var U=z[V],W=U(K,oe,Z,Q,se,n);if(W==null)return null;W.data&&o(W.data,"expectedType")&&J.push(W.data.expectedType)}var ee=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new g("Invalid "+Q+" `"+se+"` supplied to "+("`"+Z+"`"+ee+"."))}return y(q)}function $(){function z(R,Y,q,K,oe){return I(R[Y])?null:new g("Invalid "+K+" `"+oe+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return y(z)}function N(z,R,Y,q,K){return new g((z||"React class")+": "+R+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function x(z){function R(Y,q,K,oe,Z){var Q=Y[q],se=O(Q);if(se!=="object")return new g("Invalid "+oe+" `"+Z+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));for(var J in z){var V=z[J];if(typeof V!="function")return N(K,oe,Z,J,j(V));var U=V(Q,J,K,oe,Z+"."+J,n);if(U)return U}return null}return y(R)}function L(z){function R(Y,q,K,oe,Z){var Q=Y[q],se=O(Q);if(se!=="object")return new g("Invalid "+oe+" `"+Z+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));var J=t({},Y[q],z);for(var V in J){var U=z[V];if(o(z,V)&&typeof U!="function")return N(K,oe,Z,V,j(U));if(!U)return new g("Invalid "+oe+" `"+Z+"` key `"+V+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var W=U(Q,V,K,oe,Z+"."+V,n);if(W)return W}return null}return y(R)}function I(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(I);if(z===null||l(z))return!0;var R=f(z);if(R){var Y=R.call(z),q;if(R!==z.entries){for(;!(q=Y.next()).done;)if(!I(q.value))return!1}else for(;!(q=Y.next()).done;){var K=q.value;if(K&&!I(K[1]))return!1}}else return!1;return!0;default:return!1}}function A(z,R){return z==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function O(z){var R=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":A(R,z)?"symbol":R}function j(z){if(typeof z>"u"||z===null)return""+z;var R=O(z);if(R==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return R}function B(z){var R=j(z);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function F(z){return!z.constructor||!z.constructor.name?p:z.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},Ua}var Ha,Dd;function I0(){if(Dd)return Ha;Dd=1;var e=Mc();function t(){}function n(){}return n.resetWarningCache=t,Ha=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},Ha}if(process.env.NODE_ENV!=="production"){var A0=Kh(),N0=!0;kl.exports=R0()(A0.isElement,N0)}else kl.exports=I0()();var _0=kl.exports;const s=no(_0);function Xh(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=Xh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ye(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Xh(e))&&(o&&(o+=" "),o+=t);return o}function Ce(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 Dl={exports:{}},Ye={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-is.production.js
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var W=H(Q,z,Z,re,X+"."+z
|
|
|
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 j0(){if(Rd)return Ye;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 Ye.ContextConsumer=i,Ye.ContextProvider=a,Ye.Element=e,Ye.ForwardRef=l,Ye.Fragment=n,Ye.Lazy=f,Ye.Memo=d,Ye.Portal=t,Ye.Profiler=r,Ye.StrictMode=o,Ye.Suspense=c,Ye.SuspenseList=u,Ye.isContextConsumer=function(g){return m(g)===i},Ye.isContextProvider=function(g){return m(g)===a},Ye.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ye.isForwardRef=function(g){return m(g)===l},Ye.isFragment=function(g){return m(g)===n},Ye.isLazy=function(g){return m(g)===f},Ye.isMemo=function(g){return m(g)===d},Ye.isPortal=function(g){return m(g)===t},Ye.isProfiler=function(g){return m(g)===r},Ye.isStrictMode=function(g){return m(g)===o},Ye.isSuspense=function(g){return m(g)===c},Ye.isSuspenseList=function(g){return m(g)===u},Ye.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===r||g===o||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},Ye.typeOf=m,Ye}var qe={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.development.js
|
|
52
52
|
*
|
|
@@ -54,15 +54,15 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var W=H(Q,z,Z,re,X+"."+z
|
|
|
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\`.`:
|
|
57
|
+
*/var Id;function L0(){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");qe.ContextConsumer=a,qe.ContextProvider=l,qe.Element=t,qe.ForwardRef=c,qe.Fragment=o,qe.Lazy=p,qe.Memo=f,qe.Portal=n,qe.Profiler=i,qe.StrictMode=r,qe.Suspense=u,qe.SuspenseList=d,qe.isContextConsumer=function(g){return e(g)===a},qe.isContextProvider=function(g){return e(g)===l},qe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},qe.isForwardRef=function(g){return e(g)===c},qe.isFragment=function(g){return e(g)===o},qe.isLazy=function(g){return e(g)===p},qe.isMemo=function(g){return e(g)===f},qe.isPortal=function(g){return e(g)===n},qe.isProfiler=function(g){return e(g)===i},qe.isStrictMode=function(g){return e(g)===r},qe.isSuspense=function(g){return e(g)===u},qe.isSuspenseList=function(g){return e(g)===d},qe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===r||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},qe.typeOf=e}()),qe}process.env.NODE_ENV==="production"?Dl.exports=j0():Dl.exports=L0();var _o=Dl.exports;function vn(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 Qh(e){if(P.isValidElement(e)||_o.isValidElementType(e)||!vn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qh(e[n])}),t}function At(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return vn(e)&&vn(t)&&Object.keys(t).forEach(r=>{P.isValidElement(t[r])||_o.isValidElementType(t[r])?o[r]=t[r]:vn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&vn(e[r])?o[r]=At(e[r],t[r],n):n.clone?o[r]=vn(t[r])?Qh(t[r]):t[r]:o[r]=t[r]}),o}function es(e,t){return t?At(e,t,{clone:!1}):e}const oo=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 $0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function V0(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\`.`:Cn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function F0(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 Gi={xs:0,sm:600,md:900,lg:1200,xl:1536},Nd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Gi[e]}px)`},B0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Gi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Nn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||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($0(i.keys,l)){const c=V0(o.containerQueries?o:B0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Gi).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 z0(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 Ki(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 Ti(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Ki(e,n)||o,t&&(r=t(r,o,e)),r}function gt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Ki(c,o)||{};return Nn(a,l,f=>{let p=Ti(u,r,f);return f===p&&typeof f=="string"&&(p=Ti(u,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:oo}:{},i.filterProps=[t],i}function W0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const U0={m:"margin",p:"padding"},H0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y0=W0(e=>{if(e.length>2)if(jd[e])e=jd[e];else return[e];const[t,n]=e.split(""),o=U0[t],r=H0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Zi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],q0=[...Zi,...Xi];function Es(e,t,n,o){const r=Ki(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
|
|
62
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
63
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
64
|
-
`))}return v}const h=({color:y,name:v,mainShade:C=500,lightShade:
|
|
65
|
-
The color object needs to have a \`main\` property or a \`${C}\` property.`:
|
|
61
|
+
`)),()=>{})}function Oc(e){return Es(e,"spacing",8,"spacing")}function Ms(e,t){return typeof t=="string"||t==null?t:e(t)}function G0(e,t){return n=>e.reduce((o,r)=>(o[r]=Ms(t,n),o),{})}function K0(e,t,n,o){if(!t.includes(n))return null;const r=Y0(n),i=G0(r,o),a=e[n];return Nn(e,a,i)}function Jh(e,t){const n=Oc(e.theme);return Object.keys(e).map(o=>K0(e,t,o,n)).reduce(es,{})}function pt(e){return Jh(e,Zi)}pt.propTypes=process.env.NODE_ENV!=="production"?Zi.reduce((e,t)=>(e[t]=oo,e),{}):{};pt.filterProps=Zi;function ht(e){return Jh(e,Xi)}ht.propTypes=process.env.NODE_ENV!=="production"?Xi.reduce((e,t)=>(e[t]=oo,e),{}):{};ht.filterProps=Xi;process.env.NODE_ENV!=="production"&&q0.reduce((e,t)=>(e[t]=oo,e),{});function Qi(...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]?es(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 Xt(e){return typeof e!="number"?e:`${e}px solid`}function rn(e,t){return gt({prop:e,themeKey:"borders",transform:t})}const Z0=rn("border",Xt),X0=rn("borderTop",Xt),Q0=rn("borderRight",Xt),J0=rn("borderBottom",Xt),ex=rn("borderLeft",Xt),tx=rn("borderColor"),nx=rn("borderTopColor"),ox=rn("borderRightColor"),rx=rn("borderBottomColor"),sx=rn("borderLeftColor"),ix=rn("outline",Xt),ax=rn("outlineColor"),Ji=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Es(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Ms(t,o)});return Nn(e,e.borderRadius,n)}return null};Ji.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:oo}:{};Ji.filterProps=["borderRadius"];Qi(Z0,X0,Q0,J0,ex,tx,nx,ox,rx,sx,Ji,ix,ax);const ea=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Es(e.theme,"spacing",8,"gap"),n=o=>({gap:Ms(t,o)});return Nn(e,e.gap,n)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{gap:oo}:{};ea.filterProps=["gap"];const ta=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Es(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Ms(t,o)});return Nn(e,e.columnGap,n)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{columnGap:oo}:{};ta.filterProps=["columnGap"];const na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Es(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Ms(t,o)});return Nn(e,e.rowGap,n)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:oo}:{};na.filterProps=["rowGap"];const lx=gt({prop:"gridColumn"}),cx=gt({prop:"gridRow"}),ux=gt({prop:"gridAutoFlow"}),dx=gt({prop:"gridAutoColumns"}),fx=gt({prop:"gridAutoRows"}),px=gt({prop:"gridTemplateColumns"}),hx=gt({prop:"gridTemplateRows"}),mx=gt({prop:"gridTemplateAreas"}),gx=gt({prop:"gridArea"});Qi(ea,ta,na,lx,cx,ux,dx,fx,px,hx,mx,gx);function rr(e,t){return t==="grey"?t:e}const yx=gt({prop:"color",themeKey:"palette",transform:rr}),bx=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rr}),vx=gt({prop:"backgroundColor",themeKey:"palette",transform:rr});Qi(yx,bx,vx);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const xx=gt({prop:"width",transform:Ht}),kc=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])||Gi[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:Ht(n)}};return Nn(e,e.maxWidth,t)}return null};kc.filterProps=["maxWidth"];const Sx=gt({prop:"minWidth",transform:Ht}),wx=gt({prop:"height",transform:Ht}),Cx=gt({prop:"maxHeight",transform:Ht}),Tx=gt({prop:"minHeight",transform:Ht});gt({prop:"size",cssProperty:"width",transform:Ht});gt({prop:"size",cssProperty:"height",transform:Ht});const Px=gt({prop:"boxSizing"});Qi(xx,kc,Sx,wx,Cx,Tx,Px);const Os={border:{themeKey:"borders",transform:Xt},borderTop:{themeKey:"borders",transform:Xt},borderRight:{themeKey:"borders",transform:Xt},borderBottom:{themeKey:"borders",transform:Xt},borderLeft:{themeKey:"borders",transform:Xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ji},color:{themeKey:"palette",transform:rr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rr},backgroundColor:{themeKey:"palette",transform:rr},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ea},rowGap:{style:na},columnGap:{style:ta},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:kc},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},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 Ex(...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 Mx(e,t){return typeof e=="function"?e(t):e}function Ox(){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=Ki(r,u)||{};return f?f(a):Nn(a,o,m=>{let g=Ti(p,d,m);return m===g&&typeof m=="string"&&(g=Ti(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??Os;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=z0(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=Mx(u[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=es(p,e(h,m,r,a));else{const g=Nn({theme:r},m,y=>({[h]:y}));Ex(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=es(p,g)}else p=es(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 cr=Ox();cr.filterProps=["sx"];const kx=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Os;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Dx(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return vn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function Rx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Dc(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}].`),Rx(e,t,n)}function Ix(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 Xn(e){if(e.type)return e;if(e.charAt(0)==="#")return Xn(Ix(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
62
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Cn(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.`:Cn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const Ax=e=>{const t=Xn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Ur=(e,t)=>{try{return Ax(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function oa(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 em(e){e=Xn(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])),oa({type:l,values:c})}function Rl(e){e=Xn(e);let t=e.type==="hsl"||e.type==="hsla"?Xn(em(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=Rl(e),o=Rl(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Pi(e,t){return e=Xn(e),t=Dc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,oa(e)}function uo(e,t,n){try{return Pi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ra(e,t){if(e=Xn(e),t=Dc(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 oa(e)}function Ue(e,t,n){try{return ra(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function sa(e,t){if(e=Xn(e),t=Dc(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 oa(e)}function He(e,t,n){try{return sa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Nx(e,t=.15){return Rl(e)>.5?ra(e,t):sa(e,t)}function Xs(e,t,n){try{return Nx(e,t)}catch{return e}}const ds={black:"#000",white:"#fff"},_x={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"},Fo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Bo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Rr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},zo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Wo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Uo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function tm(){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:ds.white,default:ds.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 nm=tm();function om(){return{text:{primary:ds.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:ds.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 Il=om();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=sa(e.main,r):t==="dark"&&(e.dark=ra(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 jx(e="light"){return e==="dark"?{main:zo[200],light:zo[50],dark:zo[400]}:{main:zo[700],light:zo[400],dark:zo[800]}}function Lx(e="light"){return e==="dark"?{main:Fo[200],light:Fo[50],dark:Fo[400]}:{main:Fo[500],light:Fo[300],dark:Fo[700]}}function $x(e="light"){return e==="dark"?{main:Bo[500],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}function Vx(e="light"){return e==="dark"?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[500],dark:Wo[900]}}function Fx(e="light"){return e==="dark"?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[800],light:Uo[500],dark:Uo[900]}}function Bx(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:"#ed6c02",light:Rr[500],dark:Rr[900]}}function zx(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Rc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||jx(t),l=e.secondary||Lx(t),c=e.error||$x(t),u=e.info||Vx(t),d=e.success||Fx(t),f=e.warning||Bx(t);function p(y){if(r)return zx(y);const v=Ld(y,Il.text.primary)>=n?Il.text.primary:nm.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
|
+
The color object needs to have a \`main\` property or a \`${C}\` property.`:Cn(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
|
|
|
68
68
|
Did you intend to use one of the following approaches?
|
|
@@ -75,56 +75,56 @@ const theme1 = createTheme({ palette: {
|
|
|
75
75
|
|
|
76
76
|
const theme2 = createTheme({ palette: {
|
|
77
77
|
primary: { main: green[500] },
|
|
78
|
-
} });`:
|
|
78
|
+
} });`:Cn(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=tm():t==="dark"&&(m=om()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At({common:{...ds},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:_x,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function Wx(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 Ux={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 Hx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yx=/[A-Z]|^ms/g,qx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rm=function(t){return t.charCodeAt(1)===45},Fd=function(t){return t!=null&&typeof t!="boolean"},Ya=Hx(function(e){return rm(e)?e:e.replace(Yx,"-$&").toLowerCase()}),Bd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(qx,function(o,r,i){return qn={name:r,styles:i,next:qn},r})}return Ux[t]!==1&&!rm(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ei(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return qn={name:r.name,styles:r.styles,next:qn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)qn={name:a.name,styles:a.styles,next:qn},a=a.next;var l=i.styles+";";return l}return Gx(e,t,n)}}var c=n;return c}function Gx(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Ei(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Fd(l)&&(o+=Ya(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+=Ya(i)+":"+Bd(i,a[c])+";");else{var u=Ei(e,t,a);switch(i){case"animation":case"animationName":{o+=Ya(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var zd=/label:\s*([^\s;{]+)\s*(;|$)/g,qn;function Kx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";qn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Ei(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Ei(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=Wx(r)+u;return{name:f,styles:r,next:qn}}/**
|
|
79
79
|
* @mui/styled-engine v7.3.7
|
|
80
80
|
*
|
|
81
81
|
* @license MIT
|
|
82
82
|
* This source code is licensed under the MIT license found in the
|
|
83
83
|
* LICENSE file in the root directory of this source tree.
|
|
84
84
|
*/function Zx(e,t){const n=Qv(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 Xx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Hd=[];function Ao(e){return Hd[0]=e,Kx(Hd)}const Qx="exact-prop: ";function am(e){return process.env.NODE_ENV==="production"?e:{...e,[Qx]: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 Ct=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Jx(e){return Object.keys(e).length===0}function e1(e=null){const t=P.useContext(Jv.ThemeContext);return!t||Jx(t)?e:t}const t1=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const fn=()=>P.useContext(t1)??!1;function ps(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]=ps(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ye(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 n1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function o1(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?ps(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?ps(r,o,t.components.mergeClassNameAndStyle):o}function r1({props:e,name:t}){const n=P.useContext(n1);return o1({props:e,name:t,theme:{components:n}})}let Yd=0;function s1(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Yd+=1,n(`mui-${Yd}`))},[t]),o}const i1={...P},qd=i1.useId;function so(e){if(qd!==void 0){const t=qd();return e??t}return s1(e)}const a1=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 l1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=a1(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 c1={borderRadius:4};function u1(e=8,t=kc({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 d1(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 lm(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=l1(n),c=u1(r);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...c1,...i}},a);return u=F0(u),u.applyStyles=d1,u=t.reduce((d,f)=>At(d,f),u),u.unstable_sxConfig={...ks,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return fr({sx:f,theme:this})},u}const Gd=(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])})},f1=(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)},p1=(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 qa(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return f1(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=p1(l,c);Object.assign(r,{[d]:f}),Gd(i,l,`var(${d})`,u),Gd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function h1(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}=qa(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}=qa(T,t);h=At(h,A),m[S]={css:M,vars:E}}),g){const{css:S,vars:T,varsWithDefaults:E}=qa(g,t);h=At(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=At(S,T)}),S},generateStyleSheets:()=>{var k,$;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=($=(k=a[T])==null?void 0:k.palette)==null?void 0:$.mode,L=!o&&w?{colorScheme:w,...j}:{...j};E(n(T,{...L}),L)}return Object.entries(A).forEach(([j,{css:w}])=>{var I,O;const L=(O=(I=a[j])==null?void 0:I.palette)==null?void 0:O.mode,D=!o&&L?{colorScheme:L,...w}:{...w};E(n(j,{...D}),D)}),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 m1(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 g1(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 y1={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=y1[t];return o?`${n}-${o}`:`${E0.generate(e)}-${t}`}function b1(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function v1(e){return Math.round(e*1e5)/1e5}const Kd={textTransform:"uppercase"},Zd='"Roboto", "Helvetica", "Arial", sans-serif';function x1(e,t){const{fontFamily:n=Zd,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,h=d||(y=>`${y/c*p}rem`),m=(y,v,C,x,S)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:C,...n===Zd?{letterSpacing:`${v1(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,Kd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Kd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const S1=.2,w1=.14,C1=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${S1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${w1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${C1})`].join(",")}const T1=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],P1={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)"},E1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xd(e){return`${Math.round(e)}ms`}function M1(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function O1(e){const t={...P1,...e.easing},n={...E1,...e.duration};return{getAutoHeightDuration:M1,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:
|
|
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 Xx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wd=[];function Ro(e){return Wd[0]=e,Kx(Wd)}const Qx="exact-prop: ";function sm(e){return process.env.NODE_ENV==="production"?e:{...e,[Qx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const Pt=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Jx(e){return Object.keys(e).length===0}function e1(e=null){const t=P.useContext(Jv.ThemeContext);return!t||Jx(t)?e:t}const t1=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const dn=()=>P.useContext(t1)??!1;function fs(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]=fs(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ye(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 n1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function o1(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?fs(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?fs(r,o,t.components.mergeClassNameAndStyle):o}function r1({props:e,name:t}){const n=P.useContext(n1);return o1({props:e,name:t,theme:{components:n}})}let Ud=0;function s1(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Ud+=1,n(`mui-${Ud}`))},[t]),o}const i1={...P},Hd=i1.useId;function ro(e){if(Hd!==void 0){const t=Hd();return e??t}return s1(e)}const a1=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 l1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=a1(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 c1={borderRadius:4};function u1(e=8,t=Oc({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 d1(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 im(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=l1(n),c=u1(r);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...c1,...i}},a);return u=F0(u),u.applyStyles=d1,u=t.reduce((d,f)=>At(d,f),u),u.unstable_sxConfig={...Os,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return cr({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])})},f1=(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)},p1=(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 qa(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return f1(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=p1(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 h1(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}=qa(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([w,T])=>{const{vars:E,css:M,varsWithDefaults:_}=qa(T,t);h=At(h,_),m[w]={css:M,vars:E}}),g){const{css:w,vars:T,varsWithDefaults:E}=qa(g,t);h=At(h,E),m[c]={css:w,vars:T}}function v(w,T){var M,_;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: ${((_=(M=a[w])==null?void 0:M.palette)==null?void 0:_.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=At(w,T)}),w},generateStyleSheets:()=>{var D,$;const w=[],T=e.defaultColorScheme||"light";function E(N,x){Object.keys(x).length&&w.push(typeof N=="string"?{[N]:{...x}}:N)}E(n(void 0,{...f}),f);const{[T]:M,..._}=m;if(M){const{css:N}=M,x=($=(D=a[T])==null?void 0:D.palette)==null?void 0:$.mode,L=!o&&x?{colorScheme:x,...N}:{...N};E(n(T,{...L}),L)}return Object.entries(_).forEach(([N,{css:x}])=>{var A,O;const L=(O=(A=a[N])==null?void 0:A.palette)==null?void 0:O.mode,I=!o&&L?{colorScheme:L,...x}:{...x};E(n(N,{...I}),I)}),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 m1(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 g1(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 y1={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 Pe(e,t,n="Mui"){const o=y1[t];return o?`${n}-${o}`:`${E0.generate(e)}-${t}`}function b1(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function v1(e){return Math.round(e*1e5)/1e5}const qd={textTransform:"uppercase"},Gd='"Roboto", "Helvetica", "Arial", sans-serif';function x1(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:`${v1(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 At({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const S1=.2,w1=.14,C1=.12;function nt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${S1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${w1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${C1})`].join(",")}const T1=["none",nt(0,2,1,-1,0,1,1,0,0,1,3,0),nt(0,3,1,-2,0,2,2,0,0,1,5,0),nt(0,3,3,-2,0,3,4,0,0,1,8,0),nt(0,2,4,-1,0,4,5,0,0,1,10,0),nt(0,3,5,-1,0,5,8,0,0,1,14,0),nt(0,3,5,-1,0,6,10,0,0,1,18,0),nt(0,4,5,-2,0,7,10,1,0,2,16,1),nt(0,5,5,-3,0,8,10,1,0,3,14,2),nt(0,5,6,-3,0,9,12,1,0,3,16,2),nt(0,6,6,-3,0,10,14,1,0,4,18,3),nt(0,6,7,-4,0,11,15,1,0,4,20,3),nt(0,7,8,-4,0,12,17,2,0,5,22,4),nt(0,7,8,-4,0,13,19,2,0,5,24,4),nt(0,7,9,-4,0,14,21,2,0,5,26,4),nt(0,8,9,-5,0,15,22,2,0,6,28,5),nt(0,8,10,-5,0,16,24,2,0,6,30,5),nt(0,8,11,-5,0,17,26,2,0,6,32,5),nt(0,9,11,-5,0,18,28,2,0,7,34,6),nt(0,9,12,-6,0,19,29,2,0,7,36,6),nt(0,10,13,-6,0,20,31,3,0,8,38,7),nt(0,10,13,-6,0,21,33,3,0,8,40,7),nt(0,10,14,-6,0,22,35,3,0,8,42,7),nt(0,11,14,-7,0,23,36,3,0,9,44,8),nt(0,11,15,-7,0,24,38,3,0,9,46,8)],P1={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)"},E1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kd(e){return`${Math.round(e)}ms`}function M1(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function O1(e){const t={...P1,...e.easing},n={...E1,...e.duration};return{getAutoHeightDuration:M1,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 k1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function D1(e){return vn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function am(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];!D1(l)||a.startsWith("unstable_")?delete o[a]:vn(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={...
|
|
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 V1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gn=e=>{try{return e()}catch{}},F1=(e="mui")=>Wt.unstable_createGetCssVar(e);function Ga(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=N1({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Nl({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...um(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||dm(i)},l}function B1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=_1,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=F1(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.`:Tn(21,p));let S;a&&(S="oklch");const T=Ga(S,C,x,d,p);g&&!C.light&&Ga(S,C,g,void 0,"light"),y&&!C.dark&&Ga(S,C,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:C,font:{...m1(T.typography),...T.font},spacing:V1(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const w=E.colorSchemes[j].palette,L=I=>{const O=I.split("-"),N=O[1],F=O[2];return h(I,w[N][F])};w.mode==="light"&&(oe(w.common,"background","#fff"),oe(w.common,"onBackground","#000")),w.mode==="dark"&&(oe(w.common,"background","#000"),oe(w.common,"onBackground","#fff"));function D(I,O,N){if(S){let F;return I===po&&(F=`transparent ${((1-N)*100).toFixed(0)}%`),I===He&&(F=`#000 ${(N*100).toFixed(0)}%`),I===Ye&&(F=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${S}, ${O}, ${F})`}return I(O,N)}if($1(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){oe(w.Alert,"errorColor",D(He,w.error.light,.6)),oe(w.Alert,"infoColor",D(He,w.info.light,.6)),oe(w.Alert,"successColor",D(He,w.success.light,.6)),oe(w.Alert,"warningColor",D(He,w.warning.light,.6)),oe(w.Alert,"errorFilledBg",L("palette-error-main")),oe(w.Alert,"infoFilledBg",L("palette-info-main")),oe(w.Alert,"successFilledBg",L("palette-success-main")),oe(w.Alert,"warningFilledBg",L("palette-warning-main")),oe(w.Alert,"errorFilledColor",gn(()=>w.getContrastText(w.error.main))),oe(w.Alert,"infoFilledColor",gn(()=>w.getContrastText(w.info.main))),oe(w.Alert,"successFilledColor",gn(()=>w.getContrastText(w.success.main))),oe(w.Alert,"warningFilledColor",gn(()=>w.getContrastText(w.warning.main))),oe(w.Alert,"errorStandardBg",D(Ye,w.error.light,.9)),oe(w.Alert,"infoStandardBg",D(Ye,w.info.light,.9)),oe(w.Alert,"successStandardBg",D(Ye,w.success.light,.9)),oe(w.Alert,"warningStandardBg",D(Ye,w.warning.light,.9)),oe(w.Alert,"errorIconColor",L("palette-error-main")),oe(w.Alert,"infoIconColor",L("palette-info-main")),oe(w.Alert,"successIconColor",L("palette-success-main")),oe(w.Alert,"warningIconColor",L("palette-warning-main")),oe(w.AppBar,"defaultBg",L("palette-grey-100")),oe(w.Avatar,"defaultBg",L("palette-grey-400")),oe(w.Button,"inheritContainedBg",L("palette-grey-300")),oe(w.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(w.Chip,"defaultBorder",L("palette-grey-400")),oe(w.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(w.Chip,"defaultIconColor",L("palette-grey-700")),oe(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(w.LinearProgress,"primaryBg",D(Ye,w.primary.main,.62)),oe(w.LinearProgress,"secondaryBg",D(Ye,w.secondary.main,.62)),oe(w.LinearProgress,"errorBg",D(Ye,w.error.main,.62)),oe(w.LinearProgress,"infoBg",D(Ye,w.info.main,.62)),oe(w.LinearProgress,"successBg",D(Ye,w.success.main,.62)),oe(w.LinearProgress,"warningBg",D(Ye,w.warning.main,.62)),oe(w.Skeleton,"bg",S?D(po,w.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(w.Slider,"primaryTrack",D(Ye,w.primary.main,.62)),oe(w.Slider,"secondaryTrack",D(Ye,w.secondary.main,.62)),oe(w.Slider,"errorTrack",D(Ye,w.error.main,.62)),oe(w.Slider,"infoTrack",D(Ye,w.info.main,.62)),oe(w.Slider,"successTrack",D(Ye,w.success.main,.62)),oe(w.Slider,"warningTrack",D(Ye,w.warning.main,.62));const I=S?D(He,w.background.default,.6825):Ks(w.background.default,.8);oe(w.SnackbarContent,"bg",I),oe(w.SnackbarContent,"color",gn(()=>S?Al.text.primary:w.getContrastText(I))),oe(w.SpeedDialAction,"fabHoverBg",Ks(w.background.paper,.15)),oe(w.StepConnector,"border",L("palette-grey-400")),oe(w.StepContent,"border",L("palette-grey-400")),oe(w.Switch,"defaultColor",L("palette-common-white")),oe(w.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(w.Switch,"primaryDisabledColor",D(Ye,w.primary.main,.62)),oe(w.Switch,"secondaryDisabledColor",D(Ye,w.secondary.main,.62)),oe(w.Switch,"errorDisabledColor",D(Ye,w.error.main,.62)),oe(w.Switch,"infoDisabledColor",D(Ye,w.info.main,.62)),oe(w.Switch,"successDisabledColor",D(Ye,w.success.main,.62)),oe(w.Switch,"warningDisabledColor",D(Ye,w.warning.main,.62)),oe(w.TableCell,"border",D(Ye,D(po,w.divider,1),.88)),oe(w.Tooltip,"bg",D(po,w.grey[700],.92))}if(w.mode==="dark"){oe(w.Alert,"errorColor",D(Ye,w.error.light,.6)),oe(w.Alert,"infoColor",D(Ye,w.info.light,.6)),oe(w.Alert,"successColor",D(Ye,w.success.light,.6)),oe(w.Alert,"warningColor",D(Ye,w.warning.light,.6)),oe(w.Alert,"errorFilledBg",L("palette-error-dark")),oe(w.Alert,"infoFilledBg",L("palette-info-dark")),oe(w.Alert,"successFilledBg",L("palette-success-dark")),oe(w.Alert,"warningFilledBg",L("palette-warning-dark")),oe(w.Alert,"errorFilledColor",gn(()=>w.getContrastText(w.error.dark))),oe(w.Alert,"infoFilledColor",gn(()=>w.getContrastText(w.info.dark))),oe(w.Alert,"successFilledColor",gn(()=>w.getContrastText(w.success.dark))),oe(w.Alert,"warningFilledColor",gn(()=>w.getContrastText(w.warning.dark))),oe(w.Alert,"errorStandardBg",D(He,w.error.light,.9)),oe(w.Alert,"infoStandardBg",D(He,w.info.light,.9)),oe(w.Alert,"successStandardBg",D(He,w.success.light,.9)),oe(w.Alert,"warningStandardBg",D(He,w.warning.light,.9)),oe(w.Alert,"errorIconColor",L("palette-error-main")),oe(w.Alert,"infoIconColor",L("palette-info-main")),oe(w.Alert,"successIconColor",L("palette-success-main")),oe(w.Alert,"warningIconColor",L("palette-warning-main")),oe(w.AppBar,"defaultBg",L("palette-grey-900")),oe(w.AppBar,"darkBg",L("palette-background-paper")),oe(w.AppBar,"darkColor",L("palette-text-primary")),oe(w.Avatar,"defaultBg",L("palette-grey-600")),oe(w.Button,"inheritContainedBg",L("palette-grey-800")),oe(w.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(w.Chip,"defaultBorder",L("palette-grey-700")),oe(w.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(w.Chip,"defaultIconColor",L("palette-grey-300")),oe(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(w.LinearProgress,"primaryBg",D(He,w.primary.main,.5)),oe(w.LinearProgress,"secondaryBg",D(He,w.secondary.main,.5)),oe(w.LinearProgress,"errorBg",D(He,w.error.main,.5)),oe(w.LinearProgress,"infoBg",D(He,w.info.main,.5)),oe(w.LinearProgress,"successBg",D(He,w.success.main,.5)),oe(w.LinearProgress,"warningBg",D(He,w.warning.main,.5)),oe(w.Skeleton,"bg",S?D(po,w.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(w.Slider,"primaryTrack",D(He,w.primary.main,.5)),oe(w.Slider,"secondaryTrack",D(He,w.secondary.main,.5)),oe(w.Slider,"errorTrack",D(He,w.error.main,.5)),oe(w.Slider,"infoTrack",D(He,w.info.main,.5)),oe(w.Slider,"successTrack",D(He,w.success.main,.5)),oe(w.Slider,"warningTrack",D(He,w.warning.main,.5));const I=S?D(Ye,w.background.default,.985):Ks(w.background.default,.98);oe(w.SnackbarContent,"bg",I),oe(w.SnackbarContent,"color",gn(()=>S?rm.text.primary:w.getContrastText(I))),oe(w.SpeedDialAction,"fabHoverBg",Ks(w.background.paper,.15)),oe(w.StepConnector,"border",L("palette-grey-600")),oe(w.StepContent,"border",L("palette-grey-600")),oe(w.Switch,"defaultColor",L("palette-grey-300")),oe(w.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(w.Switch,"primaryDisabledColor",D(He,w.primary.main,.55)),oe(w.Switch,"secondaryDisabledColor",D(He,w.secondary.main,.55)),oe(w.Switch,"errorDisabledColor",D(He,w.error.main,.55)),oe(w.Switch,"infoDisabledColor",D(He,w.info.main,.55)),oe(w.Switch,"successDisabledColor",D(He,w.success.main,.55)),oe(w.Switch,"warningDisabledColor",D(He,w.warning.main,.55)),oe(w.TableCell,"border",D(He,D(po,w.divider,1),.68)),oe(w.Tooltip,"bg",D(po,w.grey[700],.92))}kn(w.background,"default"),kn(w.background,"paper"),kn(w.common,"background"),kn(w.common,"onBackground"),kn(w,"divider"),Object.keys(w).forEach(I=>{const O=w[I];I!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&oe(w[I],"mainChannel",Hr(Yr(O.main))),O.light&&oe(w[I],"lightChannel",Hr(Yr(O.light))),O.dark&&oe(w[I],"darkChannel",Hr(Yr(O.dark))),O.contrastText&&oe(w[I],"contrastTextChannel",Hr(Yr(O.contrastText))),I==="text"&&(kn(w[I],"primary"),kn(w[I],"secondary")),I==="action"&&(O.active&&kn(w[I],"active"),O.selected&&kn(w[I],"selected")))})}),E=t.reduce((j,w)=>At(j,w),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:L1(E),enableContrastVars:a},{vars:A,generateThemeVars:k,generateStyleSheets:$}=h1(E,M);return E.vars=A,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,w])=>{E[j]=w}),E.generateThemeVars=k,E.generateStyleSheets=$,E.generateSpacing=function(){return Wt.createSpacing(d.spacing,kc(this))},E.getColorSchemeSelector=g1(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...ks,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(w){return fr({sx:w,theme:this})},E.toRuntimeSource=cm,E}function Jd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ic({...n===!0?{}:n.palette,mode:t})})}function z1(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 Nl(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Nl({...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},Jd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Jd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),B1({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Ac=z1(),ra="$$material";function sa(){const e=Wt.useTheme(Ac);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ra]||e}function fm(e){return b.jsx(Wt.GlobalStyles,{...e,defaultTheme:Ac,themeId:ra})}process.env.NODE_ENV!=="production"&&(fm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function pm(e,t=""){return e.displayName||e.name||t}function ef(e,t,n){const o=pm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function W1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lo.ForwardRef:return ef(e,e.render,"ForwardRef");case Lo.Memo:return ef(e,e.type,"memo");default:return}}}function U1(e){const{variants:t,...n}=e,o={variants:t,style:Ao(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Ao(r.style))}),o}const H1=lm();function Zn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ko(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y1(e){return e?(t,n)=>n[e]:null}function q1(e,t,n){e.theme=X1(e.theme)?n:e.theme[t]||e.theme}function hi(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>hi(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?ko(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?ko(Ao(a),n):a}return hm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?ko(Ao(o.style),n):o.style:n?ko(Ao(o),n):o}function hm(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?ko(Ao(l.style(r)),o):l.style(r))):n.push(o?ko(Ao(l.style),o):l.style)}return n}function G1(e={}){const{themeId:t,defaultTheme:n=H1,rootShouldForwardProp:o=Zn,slotShouldForwardProp:r=Zn}=e;function i(l){q1(l,t,n)}return(l,c={})=>{Xx(l,E=>E.filter(M=>M!==fr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Y1(mm(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=Zn;d==="Root"||d==="root"?C=o:d?C=r:Q1(l)&&(C=void 0);const x=Zx(l,{shouldForwardProp:C,label:Z1(u,d),...m}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(A){return hi(A,E,A.theme.modularCssLayers?g:void 0)};if(xn(E)){const M=U1(E);return function(k){return M.variants?hi(k,M,k.theme.modularCssLayers?g:void 0):k.theme.modularCssLayers?ko(M.style,g):M.style}}return E},T=(...E)=>{const M=[],A=E.map(S),k=[];if(M.push(i),u&&h&&k.push(function(L){var N,F;const I=(F=(N=L.theme.components)==null?void 0:N[u])==null?void 0:F.styleOverrides;if(!I)return null;const O={};for(const V in I)O[V]=hi(L,I[V],L.theme.modularCssLayers?"theme":void 0);return h(L,O)}),u&&!y&&k.push(function(L){var O,N;const D=L.theme,I=(N=(O=D==null?void 0:D.components)==null?void 0:O[u])==null?void 0:N.variants;return I?hm(L,I,[],L.theme.modularCssLayers?"theme":void 0):null}),v||k.push(fr),Array.isArray(A[0])){const w=A.shift(),L=new Array(M.length).fill(""),D=new Array(k.length).fill("");let I;I=[...L,...w,...D],I.raw=[...L,...w.raw,...D],M.unshift(I)}const $=[...M,...A,...k],j=x(...$);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=K1(u,d,l)),j};return x.withConfig&&(T.withConfig=x.withConfig),T}}function K1(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${W1(n)})`}function Z1(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${mm(t||"Root")}`),n}function X1(e){for(const t in e)return!1;return!0}function Q1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pn=e=>gm(e)&&e!=="classes",be=G1({themeId:ra,defaultTheme:Ac,rootShouldForwardProp:pn});function J1(e){return function(n){return b.jsx(fm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function eS(){return Dx}const Xe=Wt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return r1(e)}function Ce(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function tS(e){return Te("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nS=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,tS,o)},oS=be("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)}`]]}})(Xe(({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}}]}})),Pi=P.forwardRef(function(t,n){const o=Fe({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=nS(g);return b.jsxs(oS,{as:l,className:ye(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"&&(Pi.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});Pi.muiName="SvgIcon";function gt(e,t){function n(o,r){return b.jsx(Pi,{"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=Pi.muiName,P.memo(P.forwardRef(n))}function ym(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 ns(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 Pt(e){return e&&e.ownerDocument||document}function jn(e){return Pt(e).defaultView||window}function tf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rS(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Jn(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=P.useRef(t!==void 0),[a,l]=P.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){P.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
93
|
+
export default theme;`}function Zd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const R1=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 I1(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})`:Pi(t,R1(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Zd(n)})`:sa(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Zd(n)})`:ra(t,n)}})}function Al(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.":Cn(20));const f=Rc({...i,colorSpace:u}),p=im(e);let h=At(p,{mixins:b1(p.breakpoints,o),palette:f,shadows:T1.slice(),typography:x1(f,l),transitions:O1(a),zIndex:{...k1}});if(h=At(h,d),h=t.reduce((m,g)=>At(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=Pe("",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={...Os,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return cr({sx:g,theme:this})},h.toRuntimeSource=am,I1(h),h}function Nl(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 A1=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Nl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function lm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function cm(e){return e==="dark"?A1:[]}function N1(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Rc({...t,colorSpace:r});return{palette:a,opacity:{...lm(a.mode),...n},overlays:o||cm(a.mode),...i}}function _1(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 j1=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],L1=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 j1(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 $1(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Hr(e){return typeof e!="string"||!e.startsWith("hsl")?e:em(e)}function On(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ur(Hr(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 V1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mn=e=>{try{return e()}catch{}},F1=(e="mui")=>zt.unstable_createGetCssVar(e);function Ga(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=N1({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Al({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...lm(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||cm(i)},l}function B1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=_1,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=F1(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.`:Cn(21,p));let w;a&&(w="oklch");const T=Ga(w,C,S,d,p);g&&!C.light&&Ga(w,C,g,void 0,"light"),y&&!C.dark&&Ga(w,C,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:C,font:{...m1(T.typography),...T.font},spacing:V1(d.spacing)};Object.keys(E.colorSchemes).forEach(N=>{const x=E.colorSchemes[N].palette,L=A=>{const O=A.split("-"),j=O[1],B=O[2];return h(A,x[j][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 I(A,O,j){if(w){let B;return A===uo&&(B=`transparent ${((1-j)*100).toFixed(0)}%`),A===Ue&&(B=`#000 ${(j*100).toFixed(0)}%`),A===He&&(B=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${w}, ${O}, ${B})`}return A(O,j)}if($1(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",I(Ue,x.error.light,.6)),ne(x.Alert,"infoColor",I(Ue,x.info.light,.6)),ne(x.Alert,"successColor",I(Ue,x.success.light,.6)),ne(x.Alert,"warningColor",I(Ue,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",L("palette-error-main")),ne(x.Alert,"infoFilledBg",L("palette-info-main")),ne(x.Alert,"successFilledBg",L("palette-success-main")),ne(x.Alert,"warningFilledBg",L("palette-warning-main")),ne(x.Alert,"errorFilledColor",mn(()=>x.getContrastText(x.error.main))),ne(x.Alert,"infoFilledColor",mn(()=>x.getContrastText(x.info.main))),ne(x.Alert,"successFilledColor",mn(()=>x.getContrastText(x.success.main))),ne(x.Alert,"warningFilledColor",mn(()=>x.getContrastText(x.warning.main))),ne(x.Alert,"errorStandardBg",I(He,x.error.light,.9)),ne(x.Alert,"infoStandardBg",I(He,x.info.light,.9)),ne(x.Alert,"successStandardBg",I(He,x.success.light,.9)),ne(x.Alert,"warningStandardBg",I(He,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-100")),ne(x.Avatar,"defaultBg",L("palette-grey-400")),ne(x.Button,"inheritContainedBg",L("palette-grey-300")),ne(x.Button,"inheritContainedHoverBg",L("palette-grey-A100")),ne(x.Chip,"defaultBorder",L("palette-grey-400")),ne(x.Chip,"defaultAvatarColor",L("palette-grey-700")),ne(x.Chip,"defaultIconColor",L("palette-grey-700")),ne(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(x.LinearProgress,"primaryBg",I(He,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",I(He,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",I(He,x.error.main,.62)),ne(x.LinearProgress,"infoBg",I(He,x.info.main,.62)),ne(x.LinearProgress,"successBg",I(He,x.success.main,.62)),ne(x.LinearProgress,"warningBg",I(He,x.warning.main,.62)),ne(x.Skeleton,"bg",w?I(uo,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",I(He,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",I(He,x.secondary.main,.62)),ne(x.Slider,"errorTrack",I(He,x.error.main,.62)),ne(x.Slider,"infoTrack",I(He,x.info.main,.62)),ne(x.Slider,"successTrack",I(He,x.success.main,.62)),ne(x.Slider,"warningTrack",I(He,x.warning.main,.62));const A=w?I(Ue,x.background.default,.6825):Xs(x.background.default,.8);ne(x.SnackbarContent,"bg",A),ne(x.SnackbarContent,"color",mn(()=>w?Il.text.primary:x.getContrastText(A))),ne(x.SpeedDialAction,"fabHoverBg",Xs(x.background.paper,.15)),ne(x.StepConnector,"border",L("palette-grey-400")),ne(x.StepContent,"border",L("palette-grey-400")),ne(x.Switch,"defaultColor",L("palette-common-white")),ne(x.Switch,"defaultDisabledColor",L("palette-grey-100")),ne(x.Switch,"primaryDisabledColor",I(He,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",I(He,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",I(He,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",I(He,x.info.main,.62)),ne(x.Switch,"successDisabledColor",I(He,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",I(He,x.warning.main,.62)),ne(x.TableCell,"border",I(He,I(uo,x.divider,1),.88)),ne(x.Tooltip,"bg",I(uo,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",I(He,x.error.light,.6)),ne(x.Alert,"infoColor",I(He,x.info.light,.6)),ne(x.Alert,"successColor",I(He,x.success.light,.6)),ne(x.Alert,"warningColor",I(He,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",L("palette-error-dark")),ne(x.Alert,"infoFilledBg",L("palette-info-dark")),ne(x.Alert,"successFilledBg",L("palette-success-dark")),ne(x.Alert,"warningFilledBg",L("palette-warning-dark")),ne(x.Alert,"errorFilledColor",mn(()=>x.getContrastText(x.error.dark))),ne(x.Alert,"infoFilledColor",mn(()=>x.getContrastText(x.info.dark))),ne(x.Alert,"successFilledColor",mn(()=>x.getContrastText(x.success.dark))),ne(x.Alert,"warningFilledColor",mn(()=>x.getContrastText(x.warning.dark))),ne(x.Alert,"errorStandardBg",I(Ue,x.error.light,.9)),ne(x.Alert,"infoStandardBg",I(Ue,x.info.light,.9)),ne(x.Alert,"successStandardBg",I(Ue,x.success.light,.9)),ne(x.Alert,"warningStandardBg",I(Ue,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-900")),ne(x.AppBar,"darkBg",L("palette-background-paper")),ne(x.AppBar,"darkColor",L("palette-text-primary")),ne(x.Avatar,"defaultBg",L("palette-grey-600")),ne(x.Button,"inheritContainedBg",L("palette-grey-800")),ne(x.Button,"inheritContainedHoverBg",L("palette-grey-700")),ne(x.Chip,"defaultBorder",L("palette-grey-700")),ne(x.Chip,"defaultAvatarColor",L("palette-grey-300")),ne(x.Chip,"defaultIconColor",L("palette-grey-300")),ne(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(x.LinearProgress,"primaryBg",I(Ue,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",I(Ue,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",I(Ue,x.error.main,.5)),ne(x.LinearProgress,"infoBg",I(Ue,x.info.main,.5)),ne(x.LinearProgress,"successBg",I(Ue,x.success.main,.5)),ne(x.LinearProgress,"warningBg",I(Ue,x.warning.main,.5)),ne(x.Skeleton,"bg",w?I(uo,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",I(Ue,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",I(Ue,x.secondary.main,.5)),ne(x.Slider,"errorTrack",I(Ue,x.error.main,.5)),ne(x.Slider,"infoTrack",I(Ue,x.info.main,.5)),ne(x.Slider,"successTrack",I(Ue,x.success.main,.5)),ne(x.Slider,"warningTrack",I(Ue,x.warning.main,.5));const A=w?I(He,x.background.default,.985):Xs(x.background.default,.98);ne(x.SnackbarContent,"bg",A),ne(x.SnackbarContent,"color",mn(()=>w?nm.text.primary:x.getContrastText(A))),ne(x.SpeedDialAction,"fabHoverBg",Xs(x.background.paper,.15)),ne(x.StepConnector,"border",L("palette-grey-600")),ne(x.StepContent,"border",L("palette-grey-600")),ne(x.Switch,"defaultColor",L("palette-grey-300")),ne(x.Switch,"defaultDisabledColor",L("palette-grey-600")),ne(x.Switch,"primaryDisabledColor",I(Ue,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",I(Ue,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",I(Ue,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",I(Ue,x.info.main,.55)),ne(x.Switch,"successDisabledColor",I(Ue,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",I(Ue,x.warning.main,.55)),ne(x.TableCell,"border",I(Ue,I(uo,x.divider,1),.68)),ne(x.Tooltip,"bg",I(uo,x.grey[700],.92))}On(x.background,"default"),On(x.background,"paper"),On(x.common,"background"),On(x.common,"onBackground"),On(x,"divider"),Object.keys(x).forEach(A=>{const O=x[A];A!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&ne(x[A],"mainChannel",Ur(Hr(O.main))),O.light&&ne(x[A],"lightChannel",Ur(Hr(O.light))),O.dark&&ne(x[A],"darkChannel",Ur(Hr(O.dark))),O.contrastText&&ne(x[A],"contrastTextChannel",Ur(Hr(O.contrastText))),A==="text"&&(On(x[A],"primary"),On(x[A],"secondary")),A==="action"&&(O.active&&On(x[A],"active"),O.selected&&On(x[A],"selected")))})}),E=t.reduce((N,x)=>At(N,x),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:L1(E),enableContrastVars:a},{vars:_,generateThemeVars:D,generateStyleSheets:$}=h1(E,M);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([N,x])=>{E[N]=x}),E.generateThemeVars=D,E.generateStyleSheets=$,E.generateSpacing=function(){return zt.createSpacing(d.spacing,Oc(this))},E.getColorSchemeSelector=g1(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...Os,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(x){return cr({sx:x,theme:this})},E.toRuntimeSource=am,E}function Xd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Rc({...n===!0?{}:n.palette,mode:t})})}function z1(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 Al(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Al({...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),B1({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Ic=z1(),ia="$$material";function aa(){const e=zt.useTheme(Ic);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ia]||e}function um(e){return b.jsx(zt.GlobalStyles,{...e,defaultTheme:Ic,themeId:ia})}process.env.NODE_ENV!=="production"&&(um.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function dm(e,t=""){return e.displayName||e.name||t}function Qd(e,t,n){const o=dm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function W1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _o.ForwardRef:return Qd(e,e.render,"ForwardRef");case _o.Memo:return Qd(e,e.type,"memo");default:return}}}function U1(e){const{variants:t,...n}=e,o={variants:t,style:Ro(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Ro(r.style))}),o}const H1=im();function Kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y1(e){return e?(t,n)=>n[e]:null}function q1(e,t,n){e.theme=X1(e.theme)?n:e.theme[t]||e.theme}function gi(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>gi(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?Mo(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?Mo(Ro(a),n):a}return fm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Mo(Ro(o.style),n):o.style:n?Mo(Ro(o),n):o}function fm(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?Mo(Ro(l.style(r)),o):l.style(r))):n.push(o?Mo(Ro(l.style),o):l.style)}return n}function G1(e={}){const{themeId:t,defaultTheme:n=H1,rootShouldForwardProp:o=Kn,slotShouldForwardProp:r=Kn}=e;function i(l){q1(l,t,n)}return(l,c={})=>{Xx(l,E=>E.filter(M=>M!==cr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Y1(pm(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=Kn;d==="Root"||d==="root"?C=o:d?C=r:Q1(l)&&(C=void 0);const S=Zx(l,{shouldForwardProp:C,label:Z1(u,d),...m}),w=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(_){return gi(_,E,_.theme.modularCssLayers?g:void 0)};if(vn(E)){const M=U1(E);return function(D){return M.variants?gi(D,M,D.theme.modularCssLayers?g:void 0):D.theme.modularCssLayers?Mo(M.style,g):M.style}}return E},T=(...E)=>{const M=[],_=E.map(w),D=[];if(M.push(i),u&&h&&D.push(function(L){var j,B;const A=(B=(j=L.theme.components)==null?void 0:j[u])==null?void 0:B.styleOverrides;if(!A)return null;const O={};for(const F in A)O[F]=gi(L,A[F],L.theme.modularCssLayers?"theme":void 0);return h(L,O)}),u&&!y&&D.push(function(L){var O,j;const I=L.theme,A=(j=(O=I==null?void 0:I.components)==null?void 0:O[u])==null?void 0:j.variants;return A?fm(L,A,[],L.theme.modularCssLayers?"theme":void 0):null}),v||D.push(cr),Array.isArray(_[0])){const x=_.shift(),L=new Array(M.length).fill(""),I=new Array(D.length).fill("");let A;A=[...L,...x,...I],A.raw=[...L,...x.raw,...I],M.unshift(A)}const $=[...M,..._,...D],N=S(...$);return l.muiName&&(N.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=K1(u,d,l)),N};return S.withConfig&&(T.withConfig=S.withConfig),T}}function K1(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${W1(n)})`}function Z1(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${pm(t||"Root")}`),n}function X1(e){for(const t in e)return!1;return!0}function Q1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function hm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fn=e=>hm(e)&&e!=="classes",be=G1({themeId:ia,defaultTheme:Ic,rootShouldForwardProp:fn});function J1(e){return function(n){return b.jsx(um,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function eS(){return Dx}const Ke=zt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return r1(e)}function Te(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Pe(e,r,n)}),o}function tS(e){return Pe("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nS=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return Ce(r,tS,o)},oS=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Ke(({theme:e})=>{var t,n,o,r,i,a,l,c,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}}]}})),Mi=P.forwardRef(function(t,n){const o=Fe({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=nS(g);return b.jsxs(oS,{as:l,className:ye(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"&&(Mi.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});Mi.muiName="SvgIcon";function yt(e,t){function n(o,r){return b.jsx(Mi,{"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=Mi.muiName,P.memo(P.forwardRef(n))}function mm(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 ts(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 Et(e){return e&&e.ownerDocument||document}function _n(e){return Et(e).defaultView||window}function Jd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rS(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 Qn(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 he(e){const t=P.useRef(e);return Ct(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function $e(...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 sS(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function iS(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{sS(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=ye(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=ye(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 aS=gt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lS=gt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),cS=gt(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"),uS=(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)},dS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},fS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},pS=(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)},hS="_modal_1ktm2_1",mS="_content_1ktm2_67",gS="_contentWrapper_1ktm2_74",yS="_closeButton_1ktm2_81",bS="_header_1ktm2_93",vS="_title_1ktm2_100",xS="_description_1ktm2_109",SS="_filtersContent_1ktm2_118",wS="_filterGroup_1ktm2_128",CS="_expandableHeader_1ktm2_135",TS="_expandableLabel_1ktm2_145",PS="_chevronIcon_1ktm2_153",ES="_chevron_1ktm2_153",MS="_filterItems_1ktm2_166",OS="_filterItem_1ktm2_166",kS="_filterItemSize1_1ktm2_178",DS="_filterItemSize2_1ktm2_182",RS="_filterItemSize3_1ktm2_186",IS="_filterItemSize4_1ktm2_190",AS="_filterItemSize5_1ktm2_194",NS="_filterItemSize6_1ktm2_198",_S="_filterInput_1ktm2_202",jS="_inputLabel_1ktm2_206",LS="_select_1ktm2_210",$S="_placeholder_1ktm2_227",VS="_helperText_1ktm2_231",FS="_footer_1ktm2_238",BS="_clearButton_1ktm2_245",zS="_applyButton_1ktm2_267",Ze={modal:hS,content:mS,contentWrapper:gS,closeButton:yS,header:bS,title:vS,description:xS,filtersContent:SS,filterGroup:wS,expandableHeader:CS,expandableLabel:TS,chevronIcon:PS,chevron:ES,filterItems:MS,filterItem:OS,filterItemSize1:kS,filterItemSize2:DS,filterItemSize3:RS,filterItemSize4:IS,filterItemSize5:AS,filterItemSize6:NS,filterInput:_S,inputLabel:jS,select:LS,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:$S,helperText:VS,footer:FS,clearButton:BS,applyButton:zS},bm=({open:e,onClose:t,title:n="Filtros",description:o="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",children:r,formId:i,groups:a,onApply:l,onClear:c,onOpened:u,clearButtonText:d="Limpar filtros",applyButtonText:f="Filtrar",className:p,...h})=>{const m=q.useTheme(),g=m.palette.mode==="dark",y=q.useMediaQuery(m.breakpoints.down("md")),[v,C]=_.useState(a??[]),x=!!r;_.useEffect(()=>{C(a??[])},[a]);const S=uS(v,l),T=dS(v,c,C),E=(M,A)=>{var w;const k=pS(A,M.id,v,C),$=M.size||6,j=Ze[`filterItemSize${$}`];if(M.render)return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:M.render(M,k)},M.id);switch(M.type){case"select":case"multi-select":const L=M.type==="multi-select";let D;L?M.value!==void 0&&M.value!==null?D=Array.isArray(M.value)?M.value:[M.value]:D=[]:D=M.value!==void 0&&M.value!==null?M.value:"";const I=L?Array.isArray(D)&&D.length>0:D!==""&&D!==null&&D!==void 0;return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:b.jsxs(q.FormControl,{fullWidth:!0,className:Ze.filterInput,children:[b.jsx(q.InputLabel,{id:`${M.id}-label`,className:Ze.inputLabel,shrink:I,children:M.label}),b.jsx(q.Select,{labelId:`${M.id}-label`,value:D,onChange:O=>k(O.target.value),multiple:L,label:M.label,className:Ze.select,displayEmpty:!0,renderValue:O=>{var F;if(L){const V=Array.isArray(O)?O:[];return V.length===0?b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label}):V.map(R=>{var Y,G;return((G=(Y=M.options)==null?void 0:Y.find(Z=>Z.value===R))==null?void 0:G.label)||R}).join(", ")}if(!O||O==="")return b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label});const N=(F=M.options)==null?void 0:F.find(V=>V.value===O);return(N==null?void 0:N.label)||O},notched:I,children:(w=M.options)==null?void 0:w.map(O=>b.jsx(q.MenuItem,{value:O.value,children:O.label},O.value))}),M.helperText&&b.jsx(q.Box,{className:Ze.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:b.jsx(q.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:O=>k(O.target.value),className:Ze.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ze.helperText}})},M.id);default:return null}};return b.jsx(q.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ze.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(q.DialogContent,{className:Ze.content,children:b.jsxs(q.Box,{className:Ze.contentWrapper,children:[b.jsx(q.IconButton,{className:Ze.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(cS,{})}),b.jsxs(q.Box,{className:Ze.header,children:[b.jsx(q.Box,{className:Ze.title,children:n}),b.jsx(q.Box,{className:Ze.description,children:o})]}),b.jsx(q.Box,{className:Ze.filtersContent,children:x?r:v.map(M=>{const A=fS(M.id,v,C),k=M.expanded!==!1;return b.jsxs(q.Box,{className:Ze.filterGroup,children:[b.jsxs(q.Box,{className:Ze.expandableHeader,onClick:A,children:[b.jsx(q.Box,{className:Ze.expandableLabel,children:M.label}),b.jsx(q.Box,{className:Ze.chevronIcon,children:k?b.jsx(lS,{className:Ze.chevron}):b.jsx(aS,{className:Ze.chevron})})]}),k&&b.jsx(q.Box,{className:Ze.filterItems,children:M.items.map($=>E($,M.id))})]},M.id)})}),b.jsxs(q.Box,{className:Ze.footer,children:[b.jsx(q.Button,{onClick:T,className:Ze.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(q.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:S,className:Ze.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};bm.displayName="FilterModal";const WS="_container_1hyey_1",US="_card_1hyey_7",HS="_icon_1hyey_18",YS="_text_1hyey_32",Zs={container:WS,card:US,icon:HS,text:YS},qS=({items:e,className:t,sx:n})=>{const o=q.useTheme(),r={backgroundColor:o.palette.background.paper,borderColor:o.palette.divider},i={color:o.palette.text.primary,"& svg":{fill:o.palette.text.primary}},a={color:o.palette.text.secondary,fontFamily:o.typography.fontFamily,fontSize:o.typography.body2.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight};return b.jsx(q.Box,{className:`${Zs.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(q.Box,{className:Zs.card,sx:r,children:[l.icon&&b.jsx(q.Box,{className:Zs.icon,sx:i,children:l.icon}),b.jsxs(q.Typography,{component:"span",className:Zs.text,sx:a,children:[l.count," ",l.label]})]},c))})},Nc=_.createContext({});function _c(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const vm=typeof window<"u",xm=vm?_.useLayoutEffect:_.useEffect,ia=_.createContext(null);function jc(e,t){e.indexOf(t)===-1&&e.push(t)}function Lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pn=(e,t,n)=>n>t?t:n<e?e:n;function jl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Cr=()=>{},Ln=()=>{};var zh;typeof process<"u"&&((zh=process.env)==null?void 0:zh.NODE_ENV)!=="production"&&(Cr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jl(t,n))},Ln=(e,t,n)=>{if(!e)throw new Error(jl(t,n))});const $n={},Sm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function wm(e){return typeof e=="object"&&e!==null}const Cm=e=>/^0[^.\s]+$/u.test(e);function $c(e){let t;return()=>(t===void 0&&(t=e()),t)}const en=e=>e,GS=(e,t)=>n=>t(e(n)),Ds=(...e)=>e.reduce(GS),hs=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Vc{constructor(){this.subscriptions=[]}add(t){return jc(this.subscriptions,t),()=>Lc(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 Sn=e=>e*1e3,Jt=e=>e/1e3;function Tm(e,t){return t?e*(1e3/t):0}const nf=new Set;function Fc(e,t,n){e||nf.has(t)||(console.warn(jl(t,n)),nf.add(t))}const Pm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KS=1e-7,ZS=12;function XS(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Pm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>KS&&++l<ZS);return a}function Rs(e,t,n,o){if(e===t&&n===o)return en;const r=i=>XS(i,0,1,e,n);return i=>i===0||i===1?i:Pm(r(i),t,o)}const Em=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mm=e=>t=>1-e(1-t),Om=Rs(.33,1.53,.69,.99),Bc=Mm(Om),km=Em(Bc),Dm=e=>(e*=2)<1?.5*Bc(e):.5*(2-Math.pow(2,-10*(e-1))),zc=e=>1-Math.sin(Math.acos(e)),Rm=Mm(zc),Im=Em(zc),QS=Rs(.42,0,1,1),JS=Rs(0,0,.58,1),Am=Rs(.42,0,.58,1),ew=e=>Array.isArray(e)&&typeof e[0]!="number",Nm=e=>Array.isArray(e)&&typeof e[0]=="number",of={linear:en,easeIn:QS,easeInOut:Am,easeOut:JS,circIn:zc,circInOut:Im,circOut:Rm,backIn:Bc,backInOut:km,backOut:Om,anticipate:Dm},tw=e=>typeof e=="string",rf=e=>{if(Nm(e)){Ln(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Rs(t,n,o,r)}else if(tw(e))return Ln(of[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),of[e];return e},Xs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nw(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 ow=40;function _m(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Xs.reduce((x,S)=>(x[S]=nw(i),x),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const x=$n.useManualTiming?r.timestamp:performance.now();n=!1,$n.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(x-r.timestamp,ow),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:Xs.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<Xs.length;S++)a[Xs[S]].cancel(x)},state:r,steps:a}}const{schedule:et,cancel:eo,state:Ot,steps:Ka}=_m(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0);let mi;function rw(){mi=void 0}const Lt={now:()=>(mi===void 0&&Lt.set(Ot.isProcessing||$n.useManualTiming?Ot.timestamp:performance.now()),mi),set:e=>{mi=e,queueMicrotask(rw)}},jm=e=>t=>typeof t=="string"&&t.startsWith(e),Lm=jm("--"),sw=jm("var(--"),Wc=e=>sw(e)?iw.test(e.split("/*")[0].trim()):!1,iw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Tr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ms={...Tr,transform:e=>Pn(0,1,e)},Qs={...Tr,default:1},os=e=>Math.round(e*1e5)/1e5,Uc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aw(e){return e==null}const lw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hc=(e,t)=>n=>!!(typeof n=="string"&&lw.test(n)&&n.startsWith(e)||t&&!aw(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(Uc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},cw=e=>Pn(0,255,e),Za={...Tr,transform:e=>Math.round(cw(e))},Do={test:Hc("rgb","red"),parse:$m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Za.transform(e)+", "+Za.transform(t)+", "+Za.transform(n)+", "+os(ms.transform(o))+")"};function uw(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 Ll={test:Hc("#"),parse:uw,transform:Do.transform},Is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wn=Is("deg"),wn=Is("%"),xe=Is("px"),dw=Is("vh"),fw=Is("vw"),af={...wn,parse:e=>wn.parse(e)/100,transform:e=>wn.transform(e*100)},tr={test:Hc("hsl","hue"),parse:$m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+wn.transform(os(t))+", "+wn.transform(os(n))+", "+os(ms.transform(o))+")"},vt={test:e=>Do.test(e)||Ll.test(e)||tr.test(e),parse:e=>Do.test(e)?Do.parse(e):tr.test(e)?tr.parse(e):Ll.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):tr.transform(e),getAnimatableNone:e=>{const t=vt.parse(e);return t.alpha=0,vt.transform(t)}},pw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uc))==null?void 0:t.length)||0)+(((n=e.match(pw))==null?void 0:n.length)||0)>0}const Vm="number",Fm="color",mw="var",gw="var(",lf="${}",yw=/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 gs(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(yw,c=>(vt.test(c)?(o.color.push(i),r.push(Fm),n.push(vt.parse(c))):c.startsWith(gw)?(o.var.push(i),r.push(mw),n.push(c)):(o.number.push(i),r.push(Vm),n.push(parseFloat(c))),++i,lf)).split(lf);return{values:n,split:l,indexes:o,types:r}}function Bm(e){return gs(e).values}function zm(e){const{split:t,types:n}=gs(e),o=t.length;return r=>{let i="";for(let a=0;a<o;a++)if(i+=t[a],r[a]!==void 0){const l=n[a];l===Vm?i+=os(r[a]):l===Fm?i+=vt.transform(r[a]):i+=r[a]}return i}}const bw=e=>typeof e=="number"?0:vt.test(e)?vt.getAnimatableNone(e):e;function vw(e){const t=Bm(e);return zm(e)(t.map(bw))}const to={test:hw,parse:Bm,createTransformer:zm,getAnimatableNone:vw};function Xa(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 xw({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=Xa(c,l,e+1/3),i=Xa(c,l,e),a=Xa(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Ei(e,t){return n=>n>0?t:e}const ct=(e,t,n)=>e+(t-e)*n,Qa=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},Sw=[Ll,Do,tr],ww=e=>Sw.find(t=>t.test(e));function cf(e){const t=ww(e);if(Cr(!!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===tr&&(n=xw(n)),n}const uf=(e,t)=>{const n=cf(e),o=cf(t);if(!n||!o)return Ei(e,t);const r={...n};return i=>(r.red=Qa(n.red,o.red,i),r.green=Qa(n.green,o.green,i),r.blue=Qa(n.blue,o.blue,i),r.alpha=ct(n.alpha,o.alpha,i),Do.transform(r))},$l=new Set(["none","hidden"]);function Cw(e,t){return $l.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tw(e,t){return n=>ct(e,t,n)}function Yc(e){return typeof e=="number"?Tw:typeof e=="string"?Wc(e)?Ei:vt.test(e)?uf:Mw:Array.isArray(e)?Wm:typeof e=="object"?vt.test(e)?uf:Pw:Ei}function Wm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Yc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function Pw(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Yc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function Ew(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 Mw=(e,t)=>{const n=to.createTransformer(t),o=gs(e),r=gs(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?$l.has(e)&&!r.values.length||$l.has(t)&&!o.values.length?Cw(e,t):Ds(Wm(Ew(o,r),r.values),n):(Cr(!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"),Ei(e,t))};function Um(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Yc(e)(e,t)}const Ow=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>et.update(t,n),stop:()=>eo(t),now:()=>Ot.isProcessing?Ot.timestamp:Lt.now()}},Hm=(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)})`},Mi=2e4;function qc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Mi;)t+=n,o=e.next(t);return t>=Mi?1/0:t}function kw(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(qc(o),Mi);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Jt(r)}}const Dw=5;function Ym(e,t,n){const o=Math.max(t-Dw,0);return Tm(n-e(o),t-o)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ja=.001;function Rw({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:o=lt.mass}){let r,i;Cr(e<=Sn(lt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Pn(lt.minDamping,lt.maxDamping,a),e=Pn(lt.minDuration,lt.maxDuration,Jt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Vl(u,a),m=Math.exp(-f);return Ja-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=Vl(Math.pow(u,2),a);return(-r(u)+Ja>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ja+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=Aw(r,i,l);if(e=Sn(e),isNaN(c))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const Iw=12;function Aw(e,t,n){let o=n;for(let r=1;r<Iw;r++)o=o-e(o)/t(o);return o}function Vl(e,t){return e*Math.sqrt(1-t*t)}const Nw=["duration","bounce"],_w=["stiffness","damping","mass"];function df(e,t){return t.some(n=>e[n]!==void 0)}function jw(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!df(e,_w)&&df(e,Nw))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*Pn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:lt.mass,stiffness:r,damping:i}}else{const n=Rw(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Oi(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=jw({...n,velocity:-Jt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Jt(Math.sqrt(c/d)),C=Math.abs(y)<5;o||(o=C?lt.restSpeed.granular:lt.restSpeed.default),r||(r=C?lt.restDelta.granular:lt.restDelta.default);let x;if(g<1){const T=Vl(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?Sn(m):Ym(x,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(qc(S),Mi),E=Hm(M=>S.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return S}Oi.applyToOptions=e=>{const t=kw(e,100,Oi);return e.ease=t.ease,e.duration=Sn(t.duration),e.type="keyframes",e};function Fl({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 k=C(A),$=x(A);p.done=Math.abs(k)<=u,p.value=p.done?v:$};let T,E;const M=A=>{h(p.value)&&(T=A,E=Oi({keyframes:[p.value,m(p.value)],velocity:Ym(x,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,S(A),M(A)),T!==void 0&&A>=T?E.next(A-T):(!k&&S(A),p)}}}function Lw(e,t,n){const o=[],r=n||$n.mix||Um,i=e.length-1;for(let a=0;a<i;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||en:t;l=Ds(c,l)}o.push(l)}return o}function $w(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Ln(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=Lw(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=hs(e[f],e[f+1],d);return l[f](p)};return n?d=>u(Pn(e[0],e[i-1],d)):u}function Vw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=hs(0,t,o);e.push(ct(n,1,r))}}function Fw(e){const t=[0];return Vw(t,e.length-1),t}function Bw(e,t){return e.map(n=>n*t)}function zw(e,t){return e.map(()=>t||Am).splice(0,e.length-1)}function nr({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=ew(o)?o.map(rf):rf(o),i={done:!1,value:t[0]},a=Bw(n&&n.length===t.length?n:Fw(t),e),l=$w(a,t,{ease:Array.isArray(r)?r:zw(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const Ww=e=>e!==null;function Gc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(Ww),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Uw={decay:Fl,inertia:Fl,tween:nr,keyframes:nr,spring:Oi};function qm(e){typeof e.type=="string"&&(e.type=Uw[e.type])}class Kc{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 Hw=e=>e/100;class Zc extends Kc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(o=this.options).onStop)==null||r.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qm(t);const{type:n=nr,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||nr;process.env.NODE_ENV!=="production"&&c!==nr&&Ln(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==nr&&typeof l[0]!="number"&&(this.mixKeyframes=Ds(Hw,Um(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=qc(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 k=Math.floor(A),$=A%1;!$&&A>=1&&($=1),$===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(p==="reverse"?($=1-$,h&&($-=h/l)):p==="mirror"&&(S=a)),x=Pn(0,1,$)*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!==Fl&&(T.value=Gc(d,this.options,y,this.speed)),g&&g(T.value),M&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(this.currentTime)}set time(t){var n;t=Sn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=Ow,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(r=this.options).onPlay)==null||i.call(r);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Yw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ro=e=>e*180/Math.PI,Bl=e=>{const t=Ro(Math.atan2(e[1],e[0]));return zl(t)},qw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bl,rotateZ:Bl,skewX:e=>Ro(Math.atan(e[1])),skewY:e=>Ro(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zl=e=>(e=e%360,e<0&&(e+=360),e),ff=Bl,pf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Gw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pf,scaleY:hf,scale:e=>(pf(e)+hf(e))/2,rotateX:e=>zl(Ro(Math.atan2(e[6],e[5]))),rotateY:e=>zl(Ro(Math.atan2(-e[2],e[0]))),rotateZ:ff,rotate:ff,skewX:e=>Ro(Math.atan(e[4])),skewY:e=>Ro(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Wl(e){return e.includes("scale")?1:0}function Ul(e,t){if(!e||e==="none")return Wl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Gw,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=qw,r=l}if(!r)return Wl(t);const i=o[t],a=r[1].split(",").map(Zw);return typeof i=="function"?i(a):a[i]}const Kw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ul(n,t)};function Zw(e){return parseFloat(e.trim())}const Pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Er=new Set(Pr),mf=e=>e===Tr||e===xe,Xw=new Set(["x","y","z"]),Qw=Pr.filter(e=>!Xw.has(e));function Jw(e){const t=[];return Qw.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Kn={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})=>Ul(t,"x"),y:(e,{transform:t})=>Ul(t,"y")};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const No=new Set;let Hl=!1,Yl=!1,ql=!1;function Gm(){if(Yl){const e=Array.from(No).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Jw(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)})}Yl=!1,Hl=!1,No.forEach(e=>e.complete(ql)),No.clear()}function Km(){No.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yl=!0)})}function eC(){ql=!0,Km(),Gm(),ql=!1}class Xc{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?(No.add(this),Hl||(Hl=!0,et.read(Km),et.resolveKeyframes(Gm))):(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])}Yw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),No.delete(this)}cancel(){this.state==="scheduled"&&(No.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tC=e=>e.startsWith("--");function nC(e,t,n){tC(t)?e.style.setProperty(t,n):e.style[t]=n}const oC=$c(()=>window.ScrollTimeline!==void 0),rC={};function sC(e,t){const n=$c(e);return()=>rC[t]??n()}const Zm=sC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,gf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function Xm(e,t){if(e)return typeof e=="function"?Zm()?Hm(e,t):"ease-out":Nm(e)?qr(e):Array.isArray(e)?e.map(n=>Xm(n,t)||gf.easeOut):gf[e]}function iC(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=Xm(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 Qm(e){return typeof e=="function"&&"applyToOptions"in e}function aC({type:e,...t}){return Qm(e)&&Zm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lC extends Kc{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,Ln(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=aC(t);this.animation=iC(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Gc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):nC(n,o,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,o,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(o=this.animation).commitStyles)==null||r.call(o))}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return Jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Sn(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&&oC()?(this.animation.timeline=t,en):n(this)}}const Jm={anticipate:Dm,backInOut:km,circInOut:Im};function cC(e){return e in Jm}function uC(e){typeof e.ease=="string"&&cC(e.ease)&&(e.ease=Jm[e.ease])}const el=10;class dC extends lC{constructor(t){uC(t),qm(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 Zc({...a,autoplay:!1}),c=Math.max(el,Lt.now()-this.startTime),u=Pn(0,el,c-el);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function fC(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 pC(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=yf(r,t),l=yf(i,t);return Cr(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:fC(e)||(n==="spring"||Qm(n))&&o}function Gl(e){e.duration=0,e.type="keyframes"}const hC=new Set(["opacity","clipPath","filter","transform"]),mC=$c(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gC(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 mC()&&n&&hC.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const yC=40;class bC extends Kc{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){var m;super(),this.stop=()=>{var g,y;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Lt.now();const p={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...f},h=(d==null?void 0:d.KeyframeResolver)||Xc;this.keyframeResolver=new h(l,(g,y,v)=>this.onKeyframesResolved(g,y,p,!v),c,u,d),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var y,v;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=Lt.now(),pC(t,i,a,l)||(($n.instantAnimations||!c)&&(d==null||d(Gc(t,o,n))),t[0]=t[t.length-1],Gl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>yC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&gC(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new dC({...p,element:m}):new Zc(p);g.finished.then(()=>{this.notifyFinished()}).catch(en),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),eC()),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 eg(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 vC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xC(e){const t=vC.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const SC=4;function tg(e,t,n=1){Ln(n<=SC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=xC(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return Sm(a)?parseFloat(a):a}return Wc(r)?tg(r,t,n+1):r}const wC={type:"spring",stiffness:500,damping:25,restSpeed:10},CC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TC={type:"keyframes",duration:.8},PC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EC=(e,{keyframes:t})=>t.length>2?TC:Er.has(e)?e.startsWith("scale")?CC(t[1]):wC:PC,MC=e=>e!==null;function OC(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(MC),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 kC({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 Jc=(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-Sn(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};kC(l)||Object.assign(d,EC(e,d)),d.duration&&(d.duration=Sn(d.duration)),d.repeatDelay&&(d.repeatDelay=Sn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Gl(d),d.delay===0&&(f=!0)),($n.instantAnimations||$n.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,Gl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=OC(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Zc(d):new bC(d)};function bf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function eu(e,t,n,o){if(typeof t=="function"){const[r,i]=bf(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]=bf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function lr(e,t,n){const o=e.getProps();return eu(o,t,n!==void 0?n:o.custom,e)}const ng=new Set(["width","height","top","left","right","bottom",...Pr]),vf=30,DC=e=>!isNaN(parseFloat(e));class RC{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Lt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=DC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Fc(!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 Vc);const o=this.events[t].add(n);return t==="change"?()=>{o(),et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>vf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vf);return Tm(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 pr(e,t){return new RC(e,t)}const Kl=e=>Array.isArray(e);function IC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pr(n))}function AC(e){return Kl(e)?e[e.length-1]||0:e}function NC(e,t){const n=lr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=AC(i[a]);IC(e,a,l)}}const It=e=>!!(e&&e.getVelocity);function _C(e){return!!(It(e)&&e.add)}function Zl(e,t){const n=e.getValue("willChange");if(_C(n))return n.add(t);if(!n&&$n.WillChange){const o=new $n.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function tu(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const jC="framerAppearId",og="data-"+tu(jC);function rg(e){return e.props[og]}function LC({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function sg(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&&LC(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 x=rg(e);if(x){const S=window.MotionHandoffAnimation(x,f,et);S!==null&&(m.startTime=S,y=!0)}}Zl(e,f);const v=c??e.shouldReduceMotion;p.start(Jc(f,p,h,v&&ng.has(f)?{type:!1}:m,e,y));const C=p.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&NC(e,a)})}),u}function Xl(e,t,n={}){var c;const o=lr(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(sg(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return $C(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 $C(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(Xl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+eg(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function VC(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Xl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Xl(e,t,n);else{const r=typeof t=="function"?lr(e,t,n.custom):t;o=Promise.all(sg(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const FC={test:e=>e==="auto",parse:e=>e},ig=e=>t=>t.test(e),ag=[Tr,xe,wn,Wn,fw,dw,FC],xf=e=>ag.find(ig(e));function BC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cm(e):!0}const zC=new Set(["brightness","contrast","saturate","opacity"]);function WC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Uc)||[];if(!o)return e;const r=n.replace(o,"");let i=zC.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const UC=/\b([a-z-]*)\(.*?\)/gu,Ql={...to,getAnimatableNone:e=>{const t=e.match(UC);return t?t.map(WC).join(" "):e}},Sf={...Tr,transform:Math.round},HC={rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:Qs,scaleX:Qs,scaleY:Qs,scaleZ:Qs,skew:Wn,skewX:Wn,skewY:Wn,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ms,originX:af,originY:af,originZ:xe},nu={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...HC,zIndex:Sf,fillOpacity:ms,strokeOpacity:ms,numOctaves:Sf},YC={...nu,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:Ql,WebkitFilter:Ql},lg=e=>YC[e];function cg(e,t){let n=lg(e);return n!==Ql&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qC=new Set(["auto","none","0"]);function GC(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!qC.has(i)&&gs(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=cg(n,r)}class KC extends Xc{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(),Wc(f))){const p=tg(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ng.has(o)||t.length!==2)return;const[r,i]=t,a=xf(r),l=xf(i),c=sf(r),u=sf(i);if(c!==u&&Kn[o]){this.needsMeasurement=!0;return}if(a!==l)if(mf(a)&&mf(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Kn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||BC(t[r]))&&o.push(r);o.length&&GC(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=Kn[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]=Kn[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 ZC(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 ug=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Jl(e){return wm(e)&&"offsetHeight"in e}const{schedule:ou}=_m(queueMicrotask,!1),dn={x:!1,y:!1};function dg(){return dn.x||dn.y}function XC(e){return e==="x"||e==="y"?dn[e]?null:(dn[e]=!0,()=>{dn[e]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function fg(e,t){const n=ZC(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function wf(e){return!(e.pointerType==="touch"||dg())}function QC(e,t,n={}){const[o,r,i]=fg(e,n),a=l=>{if(!wf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{wf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const pg=(e,t)=>t?e===t?!0:pg(e,t.parentElement):!1,ru=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,JC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hg(e){return JC.has(e.tagName)||e.isContentEditable===!0}const gi=new WeakSet;function Cf(e){return t=>{t.key==="Enter"&&e(t)}}function tl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eT=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Cf(()=>{if(gi.has(n))return;tl(n,"down");const r=Cf(()=>{tl(n,"up")}),i=()=>tl(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 Tf(e){return ru(e)&&!dg()}function tT(e,t,n={}){const[o,r,i]=fg(e,n),a=l=>{const c=l.currentTarget;if(!Tf(l))return;gi.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),gi.has(c)&&gi.delete(c),Tf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||pg(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),Jl(l)&&(l.addEventListener("focus",u=>eT(u,r)),!hg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function mg(e){return wm(e)&&"ownerSVGElement"in e}function nT(e){return mg(e)&&e.tagName==="svg"}const oT=[...ag,vt,to],rT=e=>oT.find(ig(e)),Pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:Pf(),y:Pf()}),Ef=()=>({min:0,max:0}),wt=()=>({x:Ef(),y:Ef()}),ec={current:null},gg={current:!1},sT=typeof window<"u";function iT(){if(gg.current=!0,!!sT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ec.current=e.matches;e.addEventListener("change",t),t()}else ec.current=!1}const aT=new WeakMap;function aa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ys(e){return typeof e=="string"||Array.isArray(e)}const su=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iu=["initial",...su];function la(e){return aa(e.animate)||iu.some(t=>ys(e[t]))}function yg(e){return!!(la(e)||e.variants)}function lT(e,t,n){for(const o in t){const r=t[o],i=n[o];if(It(r))e.addValue(o,r);else if(It(i))e.addValue(o,pr(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,pr(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ki={};function bg(e){ki=e}function cT(){return ki}class uT{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=Xc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Lt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,et.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=la(n),this.isVariantNode=yg(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&&It(m)&&m.set(u[h])}}mount(t){var n;this.current=t,aT.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:(gg.current||iT(),this.shouldReduceMotion=ec.current),process.env.NODE_ENV!=="production"&&Fc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Er.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ki){const n=ki[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):wt()}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<Mf.length;o++){const r=Mf[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=lT(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=pr(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"&&(Sm(o)||Cm(o))?o=parseFloat(o):!rT(o)&&to.test(n)&&(o=cg(t,n)),this.setBaseTarget(t,It(o)?o.get():o)),It(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=eu(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&&!It(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 Vc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ou.render(this.render)}}class vg extends uT{constructor(){super(...arguments),this.KeyframeResolver=KC}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;It(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function dT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fT(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 nl(e){return e===void 0||e===1}function tc({scale:e,scaleX:t,scaleY:n}){return!nl(e)||!nl(t)||!nl(n)}function Po(e){return tc(e)||Sg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sg(e){return Of(e.x)||Of(e.y)}function Of(e){return e&&e!=="0%"}function Di(e,t,n){const o=e-n,r=t*o;return n+r}function kf(e,t,n,o,r){return r!==void 0&&(e=Di(e,r,o)),Di(e,n,o)+t}function nc(e,t=0,n=1,o,r){e.min=kf(e.min,t,n,o,r),e.max=kf(e.max,t,n,o,r)}function wg(e,{x:t,y:n}){nc(e.x,t.translate,t.scale,t.originPoint),nc(e.y,n.translate,n.scale,n.originPoint)}const Df=.999999999999,Rf=1.0000000000001;function pT(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&&sr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wg(e,a)),o&&Po(i.latestValues)&&sr(e,i.latestValues))}t.x<Rf&&t.x>Df&&(t.x=1),t.y<Rf&&t.y>Df&&(t.y=1)}function rr(e,t){e.min=e.min+t,e.max=e.max+t}function If(e,t,n,o,r=.5){const i=ct(e.min,e.max,r);nc(e,t,n,i,o)}function sr(e,t){If(e.x,t.x,t.scaleX,t.scale,t.originX),If(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cg(e,t){return xg(fT(e.getBoundingClientRect(),t))}function hT(e,t,n){const o=Cg(e,n),{scroll:r}=t;return r&&(rr(o.x,r.offset.x),rr(o.y,r.offset.y)),o}const mT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gT=Pr.length;function yT(e,t,n){let o="",r=!0;for(let i=0;i<gT;i++){const a=Pr[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=ug(l,nu[a]);if(!c){r=!1;const d=mT[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function au(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(Er.has(c)){a=!0;continue}else if(Lm(c)){r[c]=u;continue}else{const d=ug(u,nu[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=yT(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 Tg(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 Af(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ar={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=Af(e,t.target.x),o=Af(e,t.target.y);return`${n}% ${o}%`}},bT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=to.parse(e);if(r.length>5)return o;const i=to.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=ct(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},oc={borderRadius:{...Ar,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ar,borderTopRightRadius:Ar,borderBottomLeftRadius:Ar,borderBottomRightRadius:Ar,boxShadow:bT};function Pg(e,{layout:t,layoutId:n}){return Er.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oc[e]||e==="opacity")}function lu(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)(It(o[l])||r&&It(r[l])||Pg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function vT(e){return window.getComputedStyle(e)}class xT extends vg{constructor(){super(...arguments),this.type="html",this.renderInstance=Tg}readValueFromInstance(t,n){var o;if(Er.has(n))return(o=this.projection)!=null&&o.isProjecting?Wl(n):Kw(t,n);{const r=vT(t),i=(Lm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cg(t,n)}build(t,n,o){au(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return lu(t,n,o)}}const ST={offset:"stroke-dashoffset",array:"stroke-dasharray"},wT={offset:"strokeDashoffset",array:"strokeDasharray"};function CT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?ST:wT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const TT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Eg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(au(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 TT)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&&CT(f,r,i,a,!1)}const Mg=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"]),Og=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PT(e,t,n,o){Tg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Mg.has(r)?r:tu(r),t.attrs[r])}function kg(e,t,n){const o=lu(e,t,n);for(const r in e)if(It(e[r])||It(t[r])){const i=Pr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class ET extends vg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Er.has(n)){const o=lg(n);return o&&o.default||0}return n=Mg.has(n)?n:tu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return kg(t,n,o)}build(t,n,o){Eg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){PT(t,n,o,r)}mount(t){this.isSVGTag=Og(t.tagName),super.mount(t)}}const MT=iu.length;function Dg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Dg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<MT;n++){const o=iu[n],r=e.props[o];(ys(r)||r===!1)&&(t[o]=r)}return t}function Rg(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 OT=[...su].reverse(),kT=su.length;function DT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>VC(e,n,o)))}function RT(e){let t=DT(e),n=Nf(),o=!0;const r=c=>(u,d)=>{var p;const f=lr(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=Dg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<kT;y++){const v=OT[y],C=n[v],x=u[v]!==void 0?u[v]:d[v],S=ys(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||aa(x)||typeof x=="boolean")continue;const M=IT(C.prevProp,x);let A=M||v===c&&C.isActive&&!E&&S||y>m&&S,k=!1;const $=Array.isArray(x)?x:[x];let j=$.reduce(r(v),{});T===!1&&(j={});const{prevResolvedValues:w={}}=C,L={...w,...j},D=N=>{A=!0,p.has(N)&&(k=!0,p.delete(N)),C.needsAnimating[N]=!0;const F=e.getValue(N);F&&(F.liveStyle=!1)};for(const N in L){const F=j[N],V=w[N];if(h.hasOwnProperty(N))continue;let B=!1;Kl(F)&&Kl(V)?B=!Rg(F,V):B=F!==V,B?F!=null?D(N):p.add(N):F!==void 0&&p.has(N)?D(N):C.protectedKeys[N]=!0}C.prevProp=x,C.prevResolvedValues=j,C.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(A=!1);const I=E&&M;A&&(!I||k)&&f.push(...$.map(N=>{const F={type:v};if(typeof N=="string"&&o&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,B=lr(V,N);if(V.enteringChildren&&B){const{delayChildren:R}=B.transition||{};F.delay=eg(V.enteringChildren,e,R)}}return{animation:N,options:F}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=lr(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=Nf()}}}function IT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rg(t,e):!1}function ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nf(){return{animate:ho(!0),whileInView:ho(),whileHover:ho(),whileTap:ho(),whileDrag:ho(),whileFocus:ho(),exit:ho()}}function _f(e,t){e.min=t.min,e.max=t.max}function ln(e,t){_f(e.x,t.x),_f(e.y,t.y)}function jf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ig=1e-4,AT=1-Ig,NT=1+Ig,Ag=.01,_T=0-Ag,jT=0+Ag;function $t(e){return e.max-e.min}function LT(e,t,n){return Math.abs(e-t)<=n}function Lf(e,t,n,o=.5){e.origin=o,e.originPoint=ct(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AT&&e.scale<=NT||isNaN(e.scale))&&(e.scale=1),(e.translate>=_T&&e.translate<=jT||isNaN(e.translate))&&(e.translate=0)}function rs(e,t,n,o){Lf(e.x,t.x,n.x,o?o.originX:void 0),Lf(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+$t(t)}function $T(e,t,n){$f(e.x,t.x,n.x),$f(e.y,t.y,n.y)}function Vf(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Ri(e,t,n){Vf(e.x,t.x,n.x),Vf(e.y,t.y,n.y)}function Ff(e,t,n,o,r){return e-=t,e=Di(e,1/n,o),r!==void 0&&(e=Di(e,1/r,o)),e}function VT(e,t=0,n=1,o=.5,r,i=e,a=e){if(wn.test(t)&&(t=parseFloat(t),t=ct(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ct(i.min,i.max,o);e===i&&(l-=t),e.min=Ff(e.min,t,n,l,r),e.max=Ff(e.max,t,n,l,r)}function Bf(e,t,[n,o,r],i,a){VT(e,t[n],t[o],t[r],t.scale,i,a)}const FT=["x","scaleX","originX"],BT=["y","scaleY","originY"];function zf(e,t,n,o){Bf(e.x,t,FT,n?n.x:void 0,o?o.x:void 0),Bf(e.y,t,BT,n?n.y:void 0,o?o.y:void 0)}function Wf(e){return e.translate===0&&e.scale===1}function Ng(e){return Wf(e.x)&&Wf(e.y)}function Uf(e,t){return e.min===t.min&&e.max===t.max}function zT(e,t){return Uf(e.x,t.x)&&Uf(e.y,t.y)}function Hf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _g(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Yf(e){return $t(e.x)/$t(e.y)}function qf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Zt(e){return[e("x"),e("y")]}function WT(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 jg=["TopLeft","TopRight","BottomLeft","BottomRight"],UT=jg.length,Gf=e=>typeof e=="string"?parseFloat(e):e,Kf=e=>typeof e=="number"||xe.test(e);function HT(e,t,n,o,r,i){r?(e.opacity=ct(0,n.opacity??1,YT(o)),e.opacityExit=ct(t.opacity??1,0,qT(o))):i&&(e.opacity=ct(t.opacity??1,n.opacity??1,o));for(let a=0;a<UT;a++){const l=`border${jg[a]}Radius`;let c=Zf(t,l),u=Zf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Kf(c)===Kf(u)?(e[l]=Math.max(ct(Gf(c),Gf(u),o),0),(wn.test(u)||wn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,o))}function Zf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const YT=Lg(0,.5,Rm),qT=Lg(.5,.95,en);function Lg(e,t,n){return o=>o<e?0:o>t?1:n(hs(e,t,o))}function GT(e,t,n){const o=It(e)?e:pr(e);return o.start(Jc("",o,t,n)),o.animation}function bs(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const KT=(e,t)=>e.depth-t.depth;class ZT{constructor(){this.children=[],this.isDirty=!1}add(t){jc(this.children,t),this.isDirty=!0}remove(t){Lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KT),this.isDirty=!1,this.children.forEach(t)}}function XT(e,t){const n=Lt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(eo(o),e(i-t))};return et.setup(o,!0),()=>eo(o)}function yi(e){return It(e)?e.get():e}class QT{constructor(){this.members=[]}add(t){jc(this.members,t),t.scheduleRender()}remove(t){if(Lc(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 bi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ol=["","X","Y","Z"],JT=1e3;let eP=0;function rl(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=rg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&$g(o)}function Vg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=eP++,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(oP),this.nodes.forEach(aP),this.nodes.forEach(lP),this.nodes.forEach(rP)},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 ZT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vc),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=mg(a)&&!nT(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const p=()=>this.root.updateBlockedByResize=!1;et.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=XT(p,250),bi.hasAnimatedSinceResize&&(bi.hasAnimatedSinceResize=!1,this.nodes.forEach(Jf)))})}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()||pP,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!_g(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={...Qc(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||Jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cP),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(Xf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iP),this.nodes.forEach(tP),this.nodes.forEach(nP)):this.nodes.forEach(Qf),this.clearAllSnapshots();const l=Lt.now();Ot.delta=Pn(0,1e3/60,l-Ot.timestamp),Ot.timestamp=l,Ot.isProcessing=!0,Ka.update.process(Ot),Ka.preRender.process(Ot),Ka.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ou.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sP),this.sharedNodes.forEach(uP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=wt(),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&&!Ng(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||Po(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)),hP(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return wt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(mP))){const{scroll:d}=this.root;d&&(rr(l.x,d.offset.x),rr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=wt();if(ln(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&ln(l,a),rr(l.x,f.offset.x),rr(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=wt();ln(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&sr(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Po(d.latestValues)&&sr(c,d.latestValues)}return Po(this.latestValues)&&sr(c,this.latestValues),c}removeTransform(a){const l=wt();ln(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Po(u.latestValues))continue;tc(u.latestValues)&&u.updateSnapshot();const d=wt(),f=u.measurePageBox();ln(d,f),zf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Po(this.latestValues)&&zf(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!==Ot.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=Ot.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=wt(),this.targetWithTransforms=wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$T(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ln(this.target,this.layout.layoutBox),wg(this.target,this.targetDelta)):ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||tc(this.parent.latestValues)||Sg(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=wt(),this.relativeTargetOrigin=wt(),Ri(this.relativeTargetOrigin,l,c),ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ln(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;pT(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=wt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jf(this.prevProjectionDelta.x,this.projectionDelta.x),jf(this.prevProjectionDelta.y,this.projectionDelta.y)),rs(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!qf(this.projectionDelta.x,this.prevProjectionDelta.x)||!qf(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=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=wt(),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(fP));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const T=S/1e3;ep(f.x,a.x,T),ep(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ri(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dP(this.relativeTarget,this.relativeTargetOrigin,p,T),x&&zT(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=wt()),ln(x,this.relativeTarget)),g&&(this.animationValues=d,HT(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&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{bi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pr(0)),this.currentAnimation=GT(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(JT),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&&Fg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||wt();const f=$t(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=$t(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}ln(l,c),sr(l,d),rs(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new QT),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&&rl("z",a,u,this.animationValues);for(let d=0;d<ol.length;d++)rl(`rotate${ol[d]}`,a,u,this.animationValues),rl(`skew${ol[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=yi(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=yi(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Po(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=WT(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 oc){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=oc[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?yi(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(Xf),this.root.sharedNodes.clear()}}}function tP(e){e.updateLayout()}function nP(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"?Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(p);p.min=o[f].min,p.max=p.min+h}):Fg(i,t.layoutBox,o)&&Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=or();rs(l,o,t.layoutBox);const c=or();a?rs(c,e.applyTransform(r,!0),t.measuredBox):rs(c,o,t.layoutBox);const u=!Ng(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=wt();Ri(m,t.layoutBox,p.layoutBox);const g=wt();Ri(g,o,h.layoutBox),_g(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 oP(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 rP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sP(e){e.clearSnapshot()}function Xf(e){e.clearMeasurements()}function Qf(e){e.isLayoutDirty=!1}function iP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aP(e){e.resolveTargetDelta()}function lP(e){e.calcProjection()}function cP(e){e.resetSkewAndRotation()}function uP(e){e.removeLeadSnapshot()}function ep(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tp(e,t,n,o){e.min=ct(t.min,n.min,o),e.max=ct(t.max,n.max,o)}function dP(e,t,n,o){tp(e.x,t.x,n.x,o),tp(e.y,t.y,n.y,o)}function fP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pP={duration:.45,ease:[.4,0,.1,1]},np=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),op=np("applewebkit/")&&!np("chrome/")?Math.round:en;function rp(e){e.min=op(e.min),e.max=op(e.max)}function hP(e){rp(e.x),rp(e.y)}function Fg(e,t,n){return e==="position"||e==="preserve-aspect"&&!LT(Yf(t),Yf(n),.2)}function mP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const gP=Vg({attachResizeListener:(e,t)=>bs(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}),sl={current:void 0},Bg=Vg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sl.current){const e=new gP({});e.mount(window),e.setOptions({layoutScroll:!0}),sl.current=e}return sl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cu=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yP(...e){return t=>{let n=!1;const o=e.map(r=>{const i=sp(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():sp(e[r],null)}}}}function bP(...e){return P.useCallback(yP(...e),e)}class vP extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=Jl(o)&&o.offsetWidth||0,i=Jl(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 xP({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(cu),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=bP(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}`,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 he(e){const t=P.useRef(e);return Pt(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function $e(...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 sS(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function iS(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{sS(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=ye(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=ye(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 aS=yt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lS=yt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),cS=yt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uS=(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)},dS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},fS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},pS=(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)},hS="_modal_1ktm2_1",mS="_content_1ktm2_67",gS="_contentWrapper_1ktm2_74",yS="_closeButton_1ktm2_81",bS="_header_1ktm2_93",vS="_title_1ktm2_100",xS="_description_1ktm2_109",SS="_filtersContent_1ktm2_118",wS="_filterGroup_1ktm2_128",CS="_expandableHeader_1ktm2_135",TS="_expandableLabel_1ktm2_145",PS="_chevronIcon_1ktm2_153",ES="_chevron_1ktm2_153",MS="_filterItems_1ktm2_166",OS="_filterItem_1ktm2_166",kS="_filterItemSize1_1ktm2_178",DS="_filterItemSize2_1ktm2_182",RS="_filterItemSize3_1ktm2_186",IS="_filterItemSize4_1ktm2_190",AS="_filterItemSize5_1ktm2_194",NS="_filterItemSize6_1ktm2_198",_S="_filterInput_1ktm2_202",jS="_inputLabel_1ktm2_206",LS="_select_1ktm2_210",$S="_placeholder_1ktm2_227",VS="_helperText_1ktm2_231",FS="_footer_1ktm2_238",BS="_clearButton_1ktm2_245",zS="_applyButton_1ktm2_267",Ge={modal:hS,content:mS,contentWrapper:gS,closeButton:yS,header:bS,title:vS,description:xS,filtersContent:SS,filterGroup:wS,expandableHeader:CS,expandableLabel:TS,chevronIcon:PS,chevron:ES,filterItems:MS,filterItem:OS,filterItemSize1:kS,filterItemSize2:DS,filterItemSize3:RS,filterItemSize4:IS,filterItemSize5:AS,filterItemSize6:NS,filterInput:_S,inputLabel:jS,select:LS,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:$S,helperText:VS,footer:FS,clearButton:BS,applyButton:zS},gm=({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=G.useTheme(),g=m.palette.mode==="dark",y=G.useMediaQuery(m.breakpoints.down("md")),[v,C]=k.useState(a??[]),S=!!r;k.useEffect(()=>{C(a??[])},[a]);const w=uS(v,l),T=dS(v,c,C),E=(M,_)=>{var x;const D=pS(_,M.id,v,C),$=M.size||6,N=Ge[`filterItemSize${$}`];if(M.render)return b.jsx(G.Box,{className:`${Ge.filterItem} ${N}`,children:M.render(M,D)},M.id);switch(M.type){case"select":case"multi-select":const L=M.type==="multi-select";let I;L?M.value!==void 0&&M.value!==null?I=Array.isArray(M.value)?M.value:[M.value]:I=[]:I=M.value!==void 0&&M.value!==null?M.value:"";const A=L?Array.isArray(I)&&I.length>0:I!==""&&I!==null&&I!==void 0;return b.jsx(G.Box,{className:`${Ge.filterItem} ${N}`,children:b.jsxs(G.FormControl,{fullWidth:!0,className:Ge.filterInput,children:[b.jsx(G.InputLabel,{id:`${M.id}-label`,className:Ge.inputLabel,shrink:A,children:M.label}),b.jsx(G.Select,{labelId:`${M.id}-label`,value:I,onChange:O=>D(O.target.value),multiple:L,label:M.label,className:Ge.select,displayEmpty:!0,renderValue:O=>{var B;if(L){const F=Array.isArray(O)?O:[];return F.length===0?b.jsx(G.Box,{component:"span",style:{opacity:0},children:M.label}):F.map(R=>{var Y,q;return((q=(Y=M.options)==null?void 0:Y.find(K=>K.value===R))==null?void 0:q.label)||R}).join(", ")}if(!O||O==="")return b.jsx(G.Box,{component:"span",style:{opacity:0},children:M.label});const j=(B=M.options)==null?void 0:B.find(F=>F.value===O);return(j==null?void 0:j.label)||O},notched:A,children:(x=M.options)==null?void 0:x.map(O=>b.jsx(G.MenuItem,{value:O.value,children:O.label},O.value))}),M.helperText&&b.jsx(G.Box,{className:Ge.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(G.Box,{className:`${Ge.filterItem} ${N}`,children:b.jsx(G.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:O=>D(O.target.value),className:Ge.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ge.helperText}})},M.id);default:return null}};return b.jsx(G.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ge.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(G.DialogContent,{className:Ge.content,children:b.jsxs(G.Box,{className:Ge.contentWrapper,children:[b.jsx(G.IconButton,{className:Ge.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(cS,{})}),b.jsxs(G.Box,{className:Ge.header,children:[b.jsx(G.Box,{className:Ge.title,children:n}),b.jsx(G.Box,{className:Ge.description,children:o})]}),b.jsx(G.Box,{className:Ge.filtersContent,children:S?r:v.map(M=>{const _=fS(M.id,v,C),D=M.expanded!==!1;return b.jsxs(G.Box,{className:Ge.filterGroup,children:[b.jsxs(G.Box,{className:Ge.expandableHeader,onClick:_,children:[b.jsx(G.Box,{className:Ge.expandableLabel,children:M.label}),b.jsx(G.Box,{className:Ge.chevronIcon,children:D?b.jsx(lS,{className:Ge.chevron}):b.jsx(aS,{className:Ge.chevron})})]}),D&&b.jsx(G.Box,{className:Ge.filterItems,children:M.items.map($=>E($,M.id))})]},M.id)})}),b.jsxs(G.Box,{className:Ge.footer,children:[b.jsx(G.Button,{onClick:T,className:Ge.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(G.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:w,className:Ge.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};gm.displayName="FilterModal";const WS="_container_sfavn_1",US="_card_sfavn_7",HS="_icon_sfavn_19",YS="_text_sfavn_33",Qs={container:WS,card:US,icon:HS,text:YS},qS=({items:e,className:t,sx:n})=>{const o=G.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(G.Box,{className:`${Qs.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(G.Box,{className:Qs.card,sx:r,children:[l.icon&&b.jsx(G.Box,{className:Qs.icon,sx:i,children:l.icon}),b.jsxs(G.Typography,{component:"span",className:Qs.text,sx:a,children:[l.count," ",l.label]})]},c))})},Ac=k.createContext({});function Nc(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const ym=typeof window<"u",bm=ym?k.useLayoutEffect:k.useEffect,la=k.createContext(null);function _c(e,t){e.indexOf(t)===-1&&e.push(t)}function jc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tn=(e,t,n)=>n>t?t:n<e?e:n;function _l(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let xr=()=>{},jn=()=>{};var Fh;typeof process<"u"&&((Fh=process.env)==null?void 0:Fh.NODE_ENV)!=="production"&&(xr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(_l(t,n))},jn=(e,t,n)=>{if(!e)throw new Error(_l(t,n))});const Ln={},vm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xm(e){return typeof e=="object"&&e!==null}const Sm=e=>/^0[^.\s]+$/u.test(e);function Lc(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jt=e=>e,GS=(e,t)=>n=>t(e(n)),ks=(...e)=>e.reduce(GS),ps=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class $c{constructor(){this.subscriptions=[]}add(t){return _c(this.subscriptions,t),()=>jc(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 xn=e=>e*1e3,Qt=e=>e/1e3;function wm(e,t){return t?e*(1e3/t):0}const ef=new Set;function Vc(e,t,n){e||ef.has(t)||(console.warn(_l(t,n)),ef.add(t))}const Cm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KS=1e-7,ZS=12;function XS(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Cm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>KS&&++l<ZS);return a}function Ds(e,t,n,o){if(e===t&&n===o)return Jt;const r=i=>XS(i,0,1,e,n);return i=>i===0||i===1?i:Cm(r(i),t,o)}const Tm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pm=e=>t=>1-e(1-t),Em=Ds(.33,1.53,.69,.99),Fc=Pm(Em),Mm=Tm(Fc),Om=e=>(e*=2)<1?.5*Fc(e):.5*(2-Math.pow(2,-10*(e-1))),Bc=e=>1-Math.sin(Math.acos(e)),km=Pm(Bc),Dm=Tm(Bc),QS=Ds(.42,0,1,1),JS=Ds(0,0,.58,1),Rm=Ds(.42,0,.58,1),ew=e=>Array.isArray(e)&&typeof e[0]!="number",Im=e=>Array.isArray(e)&&typeof e[0]=="number",tf={linear:Jt,easeIn:QS,easeInOut:Rm,easeOut:JS,circIn:Bc,circInOut:Dm,circOut:km,backIn:Fc,backInOut:Mm,backOut:Em,anticipate:Om},tw=e=>typeof e=="string",nf=e=>{if(Im(e)){jn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Ds(t,n,o,r)}else if(tw(e))return jn(tf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),tf[e];return e},Js=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nw(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 ow=40;function Am(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Js.reduce((S,w)=>(S[w]=nw(i),S),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const S=Ln.useManualTiming?r.timestamp:performance.now();n=!1,Ln.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(S-r.timestamp,ow),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:Js.reduce((S,w)=>{const T=a[w];return S[w]=(E,M=!1,_=!1)=>(n||y(),T.schedule(E,M,_)),S},{}),cancel:S=>{for(let w=0;w<Js.length;w++)a[Js[w]].cancel(S)},state:r,steps:a}}const{schedule:et,cancel:Jn,state:Ot,steps:Ka}=Am(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jt,!0);let yi;function rw(){yi=void 0}const Lt={now:()=>(yi===void 0&&Lt.set(Ot.isProcessing||Ln.useManualTiming?Ot.timestamp:performance.now()),yi),set:e=>{yi=e,queueMicrotask(rw)}},Nm=e=>t=>typeof t=="string"&&t.startsWith(e),_m=Nm("--"),sw=Nm("var(--"),zc=e=>sw(e)?iw.test(e.split("/*")[0].trim()):!1,iw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Sr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hs={...Sr,transform:e=>Tn(0,1,e)},ei={...Sr,default:1},ns=e=>Math.round(e*1e5)/1e5,Wc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aw(e){return e==null}const lw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Uc=(e,t)=>n=>!!(typeof n=="string"&&lw.test(n)&&n.startsWith(e)||t&&!aw(n)&&Object.prototype.hasOwnProperty.call(n,t)),jm=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(Wc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},cw=e=>Tn(0,255,e),Za={...Sr,transform:e=>Math.round(cw(e))},Oo={test:Uc("rgb","red"),parse:jm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Za.transform(e)+", "+Za.transform(t)+", "+Za.transform(n)+", "+ns(hs.transform(o))+")"};function uw(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 jl={test:Uc("#"),parse:uw,transform:Oo.transform},Rs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zn=Rs("deg"),Sn=Rs("%"),ve=Rs("px"),dw=Rs("vh"),fw=Rs("vw"),rf={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(e*100)},Qo={test:Uc("hsl","hue"),parse:jm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Sn.transform(ns(t))+", "+Sn.transform(ns(n))+", "+ns(hs.transform(o))+")"},xt={test:e=>Oo.test(e)||jl.test(e)||Qo.test(e),parse:e=>Oo.test(e)?Oo.parse(e):Qo.test(e)?Qo.parse(e):jl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Oo.transform(e):Qo.transform(e),getAnimatableNone:e=>{const t=xt.parse(e);return t.alpha=0,xt.transform(t)}},pw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Wc))==null?void 0:t.length)||0)+(((n=e.match(pw))==null?void 0:n.length)||0)>0}const Lm="number",$m="color",mw="var",gw="var(",sf="${}",yw=/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 ms(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(yw,c=>(xt.test(c)?(o.color.push(i),r.push($m),n.push(xt.parse(c))):c.startsWith(gw)?(o.var.push(i),r.push(mw),n.push(c)):(o.number.push(i),r.push(Lm),n.push(parseFloat(c))),++i,sf)).split(sf);return{values:n,split:l,indexes:o,types:r}}function Vm(e){return ms(e).values}function Fm(e){const{split:t,types:n}=ms(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===Lm?i+=ns(r[a]):l===$m?i+=xt.transform(r[a]):i+=r[a]}return i}}const bw=e=>typeof e=="number"?0:xt.test(e)?xt.getAnimatableNone(e):e;function vw(e){const t=Vm(e);return Fm(e)(t.map(bw))}const eo={test:hw,parse:Vm,createTransformer:Fm,getAnimatableNone:vw};function Xa(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 xw({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=Xa(c,l,e+1/3),i=Xa(c,l,e),a=Xa(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Oi(e,t){return n=>n>0?t:e}const lt=(e,t,n)=>e+(t-e)*n,Qa=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},Sw=[jl,Oo,Qo],ww=e=>Sw.find(t=>t.test(e));function af(e){const t=ww(e);if(xr(!!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===Qo&&(n=xw(n)),n}const lf=(e,t)=>{const n=af(e),o=af(t);if(!n||!o)return Oi(e,t);const r={...n};return i=>(r.red=Qa(n.red,o.red,i),r.green=Qa(n.green,o.green,i),r.blue=Qa(n.blue,o.blue,i),r.alpha=lt(n.alpha,o.alpha,i),Oo.transform(r))},Ll=new Set(["none","hidden"]);function Cw(e,t){return Ll.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tw(e,t){return n=>lt(e,t,n)}function Hc(e){return typeof e=="number"?Tw:typeof e=="string"?zc(e)?Oi:xt.test(e)?lf:Mw:Array.isArray(e)?Bm:typeof e=="object"?xt.test(e)?lf:Pw:Oi}function Bm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Hc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function Pw(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Hc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function Ew(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 Mw=(e,t)=>{const n=eo.createTransformer(t),o=ms(e),r=ms(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?Ll.has(e)&&!r.values.length||Ll.has(t)&&!o.values.length?Cw(e,t):ks(Bm(Ew(o,r),r.values),n):(xr(!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"),Oi(e,t))};function zm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):Hc(e)(e,t)}const Ow=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>et.update(t,n),stop:()=>Jn(t),now:()=>Ot.isProcessing?Ot.timestamp:Lt.now()}},Wm=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},ki=2e4;function Yc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<ki;)t+=n,o=e.next(t);return t>=ki?1/0:t}function kw(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(Yc(o),ki);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Qt(r)}}const Dw=5;function Um(e,t,n){const o=Math.max(t-Dw,0);return wm(n-e(o),t-o)}const at={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},Ja=.001;function Rw({duration:e=at.duration,bounce:t=at.bounce,velocity:n=at.velocity,mass:o=at.mass}){let r,i;xr(e<=xn(at.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Tn(at.minDamping,at.maxDamping,a),e=Tn(at.minDuration,at.maxDuration,Qt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=$l(u,a),m=Math.exp(-f);return Ja-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=$l(Math.pow(u,2),a);return(-r(u)+Ja>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ja+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=Aw(r,i,l);if(e=xn(e),isNaN(c))return{stiffness:at.stiffness,damping:at.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const Iw=12;function Aw(e,t,n){let o=n;for(let r=1;r<Iw;r++)o=o-e(o)/t(o);return o}function $l(e,t){return e*Math.sqrt(1-t*t)}const Nw=["duration","bounce"],_w=["stiffness","damping","mass"];function cf(e,t){return t.some(n=>e[n]!==void 0)}function jw(e){let t={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...e};if(!cf(e,_w)&&cf(e,Nw))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*Tn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:at.mass,stiffness:r,damping:i}}else{const n=Rw(e);t={...t,...n,mass:at.mass},t.isResolvedFromDuration=!0}return t}function Di(e=at.visualDuration,t=at.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}=jw({...n,velocity:-Qt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Qt(Math.sqrt(c/d)),C=Math.abs(y)<5;o||(o=C?at.restSpeed.granular:at.restSpeed.default),r||(r=C?at.restDelta.granular:at.restDelta.default);let S;if(g<1){const T=$l(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),_=Math.min(T*E,300);return a-M*((m+g*v*y)*Math.sinh(_)+T*y*Math.cosh(_))/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?xn(m):Um(S,T,E));const _=Math.abs(M)<=o,D=Math.abs(a-E)<=r;l.done=_&&D}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(Yc(w),ki),E=Wm(M=>w.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return w}Di.applyToOptions=e=>{const t=kw(e,100,Di);return e.ease=t.ease,e.duration=xn(t.duration),e.type="keyframes",e};function Vl({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=_=>l!==void 0&&_<l||c!==void 0&&_>c,m=_=>l===void 0?c:c===void 0||Math.abs(l-_)<Math.abs(c-_)?l:c;let g=n*t;const y=f+g,v=a===void 0?y:a(y);v!==y&&(g=v-f);const C=_=>-g*Math.exp(-_/o),S=_=>v+C(_),w=_=>{const D=C(_),$=S(_);p.done=Math.abs(D)<=u,p.value=p.done?v:$};let T,E;const M=_=>{h(p.value)&&(T=_,E=Di({keyframes:[p.value,m(p.value)],velocity:Um(S,_,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:_=>{let D=!1;return!E&&T===void 0&&(D=!0,w(_),M(_)),T!==void 0&&_>=T?E.next(_-T):(!D&&w(_),p)}}}function Lw(e,t,n){const o=[],r=n||Ln.mix||zm,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]||Jt:t;l=ks(c,l)}o.push(l)}return o}function $w(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(jn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Lw(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=ps(e[f],e[f+1],d);return l[f](p)};return n?d=>u(Tn(e[0],e[i-1],d)):u}function Vw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=ps(0,t,o);e.push(lt(n,1,r))}}function Fw(e){const t=[0];return Vw(t,e.length-1),t}function Bw(e,t){return e.map(n=>n*t)}function zw(e,t){return e.map(()=>t||Rm).splice(0,e.length-1)}function Jo({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=ew(o)?o.map(nf):nf(o),i={done:!1,value:t[0]},a=Bw(n&&n.length===t.length?n:Fw(t),e),l=$w(a,t,{ease:Array.isArray(r)?r:zw(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const Ww=e=>e!==null;function qc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(Ww),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Uw={decay:Vl,inertia:Vl,tween:Jo,keyframes:Jo,spring:Di};function Hm(e){typeof e.type=="string"&&(e.type=Uw[e.type])}class Gc{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 Hw=e=>e/100;class Kc extends Gc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(o=this.options).onStop)==null||r.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hm(t);const{type:n=Jo,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||Jo;process.env.NODE_ENV!=="production"&&c!==Jo&&jn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==Jo&&typeof l[0]!="number"&&(this.mixKeyframes=ks(Hw,zm(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=Yc(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 _=Math.min(this.currentTime,r)/l;let D=Math.floor(_),$=_%1;!$&&_>=1&&($=1),$===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(p==="reverse"?($=1-$,h&&($-=h/l)):p==="mirror"&&(w=a)),S=Tn(0,1,$)*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!==Vl&&(T.value=qc(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 Qt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qt(t)}get time(){return Qt(this.currentTime)}set time(t){var n;t=xn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Qt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=Ow,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(r=this.options).onPlay)==null||i.call(r);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Yw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ko=e=>e*180/Math.PI,Fl=e=>{const t=ko(Math.atan2(e[1],e[0]));return Bl(t)},qw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fl,rotateZ:Fl,skewX:e=>ko(Math.atan(e[1])),skewY:e=>ko(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bl=e=>(e=e%360,e<0&&(e+=360),e),uf=Fl,df=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ff=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Gw={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=>Bl(ko(Math.atan2(e[6],e[5]))),rotateY:e=>Bl(ko(Math.atan2(-e[2],e[0]))),rotateZ:uf,rotate:uf,skewX:e=>ko(Math.atan(e[4])),skewY:e=>ko(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function zl(e){return e.includes("scale")?1:0}function Wl(e,t){if(!e||e==="none")return zl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Gw,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=qw,r=l}if(!r)return zl(t);const i=o[t],a=r[1].split(",").map(Zw);return typeof i=="function"?i(a):a[i]}const Kw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Wl(n,t)};function Zw(e){return parseFloat(e.trim())}const wr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cr=new Set(wr),pf=e=>e===Sr||e===ve,Xw=new Set(["x","y","z"]),Qw=wr.filter(e=>!Xw.has(e));function Jw(e){const t=[];return Qw.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Gn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Wl(t,"x"),y:(e,{transform:t})=>Wl(t,"y")};Gn.translateX=Gn.x;Gn.translateY=Gn.y;const Io=new Set;let Ul=!1,Hl=!1,Yl=!1;function Ym(){if(Hl){const e=Array.from(Io).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Jw(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)})}Hl=!1,Ul=!1,Io.forEach(e=>e.complete(Yl)),Io.clear()}function qm(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Hl=!0)})}function eC(){Yl=!0,qm(),Ym(),Yl=!1}class Zc{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?(Io.add(this),Ul||(Ul=!0,et.read(qm),et.resolveKeyframes(Ym))):(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])}Yw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Io.delete(this)}cancel(){this.state==="scheduled"&&(Io.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tC=e=>e.startsWith("--");function nC(e,t,n){tC(t)?e.style.setProperty(t,n):e.style[t]=n}const oC=Lc(()=>window.ScrollTimeline!==void 0),rC={};function sC(e,t){const n=Lc(e);return()=>rC[t]??n()}const Gm=sC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Yr=([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:Yr([0,.65,.55,1]),circOut:Yr([.55,0,1,.45]),backIn:Yr([.31,.01,.66,-.59]),backOut:Yr([.33,1.53,.69,.99])};function Km(e,t){if(e)return typeof e=="function"?Gm()?Wm(e,t):"ease-out":Im(e)?Yr(e):Array.isArray(e)?e.map(n=>Km(n,t)||hf.easeOut):hf[e]}function iC(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=Km(l,r);Array.isArray(f)&&(d.easing=f);const p={delay:o,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function Zm(e){return typeof e=="function"&&"applyToOptions"in e}function aC({type:e,...t}){return Zm(e)&&Gm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lC extends Gc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,jn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=aC(t);this.animation=iC(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=qc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):nC(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 Qt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qt(t)}get time(){return Qt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xn(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&&oC()?(this.animation.timeline=t,Jt):n(this)}}const Xm={anticipate:Om,backInOut:Mm,circInOut:Dm};function cC(e){return e in Xm}function uC(e){typeof e.ease=="string"&&cC(e.ease)&&(e.ease=Xm[e.ease])}const el=10;class dC extends lC{constructor(t){uC(t),Hm(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 Kc({...a,autoplay:!1}),c=Math.max(el,Lt.now()-this.startTime),u=Tn(0,el,c-el);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"&&(eo.test(e)||e==="0")&&!e.startsWith("url("));function fC(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 pC(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 xr(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:fC(e)||(n==="spring"||Zm(n))&&o}function ql(e){e.duration=0,e.type="keyframes"}const hC=new Set(["opacity","clipPath","filter","transform"]),mC=Lc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gC(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 mC()&&n&&hC.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const yC=40;class bC extends Gc{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){var m;super(),this.stop=()=>{var g,y;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Lt.now();const p={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...f},h=(d==null?void 0:d.KeyframeResolver)||Zc;this.keyframeResolver=new h(l,(g,y,v)=>this.onKeyframesResolved(g,y,p,!v),c,u,d),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var y,v;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=Lt.now(),pC(t,i,a,l)||((Ln.instantAnimations||!c)&&(d==null||d(qc(t,o,n))),t[0]=t[t.length-1],ql(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>yC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&gC(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new dC({...p,element:m}):new Kc(p);g.finished.then(()=>{this.notifyFinished()}).catch(Jt),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(),eC()),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 Qm(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 vC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xC(e){const t=vC.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const SC=4;function Jm(e,t,n=1){jn(n<=SC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=xC(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return vm(a)?parseFloat(a):a}return zc(r)?Jm(r,t,n+1):r}const wC={type:"spring",stiffness:500,damping:25,restSpeed:10},CC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TC={type:"keyframes",duration:.8},PC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EC=(e,{keyframes:t})=>t.length>2?TC:Cr.has(e)?e.startsWith("scale")?CC(t[1]):wC:PC,MC=e=>e!==null;function OC(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(MC),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function Xc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function kC({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=Xc(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-xn(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};kC(l)||Object.assign(d,EC(e,d)),d.duration&&(d.duration=xn(d.duration)),d.repeatDelay&&(d.repeatDelay=xn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(ql(d),d.delay===0&&(f=!0)),(Ln.instantAnimations||Ln.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,ql(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=OC(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Kc(d):new bC(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 Jc(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 sr(e,t,n){const o=e.getProps();return Jc(o,t,n!==void 0?n:o.custom,e)}const eg=new Set(["width","height","top","left","right","bottom",...wr]),yf=30,DC=e=>!isNaN(parseFloat(e));class RC{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Lt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=DC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vc(!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 $c);const o=this.events[t].add(n);return t==="change"?()=>{o(),et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yf);return wm(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 ur(e,t){return new RC(e,t)}const Gl=e=>Array.isArray(e);function IC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function AC(e){return Gl(e)?e[e.length-1]||0:e}function NC(e,t){const n=sr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=AC(i[a]);IC(e,a,l)}}const It=e=>!!(e&&e.getVelocity);function _C(e){return!!(It(e)&&e.add)}function Kl(e,t){const n=e.getValue("willChange");if(_C(n))return n.add(t);if(!n&&Ln.WillChange){const o=new Ln.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function eu(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const jC="framerAppearId",tg="data-"+eu(jC);function ng(e){return e.props[tg]}function LC({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function og(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&&LC(d,f))continue;const m={delay:n,...Xc(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=ng(e);if(S){const w=window.MotionHandoffAnimation(S,f,et);w!==null&&(m.startTime=w,y=!0)}}Kl(e,f);const v=c??e.shouldReduceMotion;p.start(Qc(f,p,h,v&&eg.has(f)?{type:!1}:m,e,y));const C=p.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&NC(e,a)})}),u}function Zl(e,t,n={}){var c;const o=sr(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(og(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return $C(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 $C(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(Zl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+Qm(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function VC(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Zl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Zl(e,t,n);else{const r=typeof t=="function"?sr(e,t,n.custom):t;o=Promise.all(og(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const FC={test:e=>e==="auto",parse:e=>e},rg=e=>t=>t.test(e),sg=[Sr,ve,Sn,zn,fw,dw,FC],bf=e=>sg.find(rg(e));function BC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Sm(e):!0}const zC=new Set(["brightness","contrast","saturate","opacity"]);function WC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Wc)||[];if(!o)return e;const r=n.replace(o,"");let i=zC.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const UC=/\b([a-z-]*)\(.*?\)/gu,Xl={...eo,getAnimatableNone:e=>{const t=e.match(UC);return t?t.map(WC).join(" "):e}},vf={...Sr,transform:Math.round},HC={rotate:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scale:ei,scaleX:ei,scaleY:ei,scaleZ:ei,skew:zn,skewX:zn,skewY:zn,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:hs,originX:rf,originY:rf,originZ:ve},tu={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,...HC,zIndex:vf,fillOpacity:hs,strokeOpacity:hs,numOctaves:vf},YC={...tu,color:xt,backgroundColor:xt,outlineColor:xt,fill:xt,stroke:xt,borderColor:xt,borderTopColor:xt,borderRightColor:xt,borderBottomColor:xt,borderLeftColor:xt,filter:Xl,WebkitFilter:Xl},ig=e=>YC[e];function ag(e,t){let n=ig(e);return n!==Xl&&(n=eo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qC=new Set(["auto","none","0"]);function GC(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!qC.has(i)&&ms(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=ag(n,r)}class KC extends Zc{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(),zc(f))){const p=Jm(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!eg.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&&Gn[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 Gn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||BC(t[r]))&&o.push(r);o.length&&GC(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gn[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=Gn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function ZC(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 lg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ql(e){return xm(e)&&"offsetHeight"in e}const{schedule:nu}=Am(queueMicrotask,!1),un={x:!1,y:!1};function cg(){return un.x||un.y}function XC(e){return e==="x"||e==="y"?un[e]?null:(un[e]=!0,()=>{un[e]=!1}):un.x||un.y?null:(un.x=un.y=!0,()=>{un.x=un.y=!1})}function ug(e,t){const n=ZC(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function xf(e){return!(e.pointerType==="touch"||cg())}function QC(e,t,n={}){const[o,r,i]=ug(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 dg=(e,t)=>t?e===t?!0:dg(e,t.parentElement):!1,ou=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,JC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fg(e){return JC.has(e.tagName)||e.isContentEditable===!0}const bi=new WeakSet;function Sf(e){return t=>{t.key==="Enter"&&e(t)}}function tl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eT=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Sf(()=>{if(bi.has(n))return;tl(n,"down");const r=Sf(()=>{tl(n,"up")}),i=()=>tl(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 ou(e)&&!cg()}function tT(e,t,n={}){const[o,r,i]=ug(e,n),a=l=>{const c=l.currentTarget;if(!wf(l))return;bi.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),bi.has(c)&&bi.delete(c),wf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||dg(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=>eT(u,r)),!fg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function pg(e){return xm(e)&&"ownerSVGElement"in e}function nT(e){return pg(e)&&e.tagName==="svg"}const oT=[...sg,xt,eo],rT=e=>oT.find(rg(e)),Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),er=()=>({x:Cf(),y:Cf()}),Tf=()=>({min:0,max:0}),Ct=()=>({x:Tf(),y:Tf()}),Jl={current:null},hg={current:!1},sT=typeof window<"u";function iT(){if(hg.current=!0,!!sT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jl.current=e.matches;e.addEventListener("change",t),t()}else Jl.current=!1}const aT=new WeakMap;function ca(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function gs(e){return typeof e=="string"||Array.isArray(e)}const ru=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],su=["initial",...ru];function ua(e){return ca(e.animate)||su.some(t=>gs(e[t]))}function mg(e){return!!(ua(e)||e.variants)}function lT(e,t,n){for(const o in t){const r=t[o],i=n[o];if(It(r))e.addValue(o,r);else if(It(i))e.addValue(o,ur(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,ur(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 Ri={};function gg(e){Ri=e}function cT(){return Ri}class uT{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=Zc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Lt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,et.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=ua(n),this.isVariantNode=mg(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&&It(m)&&m.set(u[h])}}mount(t){var n;this.current=t,aT.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:(hg.current||iT(),this.shouldReduceMotion=Jl.current),process.env.NODE_ENV!=="production"&&Vc(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(),Jn(this.notifyUpdate),Jn(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=Cr.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ri){const n=Ri[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):Ct()}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=lT(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=ur(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"&&(vm(o)||Sm(o))?o=parseFloat(o):!rT(o)&&eo.test(n)&&(o=ag(t,n)),this.setBaseTarget(t,It(o)?o.get():o)),It(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=Jc(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&&!It(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 $c),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){nu.render(this.render)}}class yg extends uT{constructor(){super(...arguments),this.KeyframeResolver=KC}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;It(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class so{constructor(t){this.isMounted=!1,this.node=t}update(){}}function bg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function dT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fT(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 nl(e){return e===void 0||e===1}function ec({scale:e,scaleX:t,scaleY:n}){return!nl(e)||!nl(t)||!nl(n)}function Co(e){return ec(e)||vg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vg(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Ii(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=Ii(e,r,o)),Ii(e,n,o)+t}function tc(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 xg(e,{x:t,y:n}){tc(e.x,t.translate,t.scale,t.originPoint),tc(e.y,n.translate,n.scale,n.originPoint)}const Of=.999999999999,kf=1.0000000000001;function pT(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&&nr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,xg(e,a)),o&&Co(i.latestValues)&&nr(e,i.latestValues))}t.x<kf&&t.x>Of&&(t.x=1),t.y<kf&&t.y>Of&&(t.y=1)}function tr(e,t){e.min=e.min+t,e.max=e.max+t}function Df(e,t,n,o,r=.5){const i=lt(e.min,e.max,r);tc(e,t,n,i,o)}function nr(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 Sg(e,t){return bg(fT(e.getBoundingClientRect(),t))}function hT(e,t,n){const o=Sg(e,n),{scroll:r}=t;return r&&(tr(o.x,r.offset.x),tr(o.y,r.offset.y)),o}const mT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gT=wr.length;function yT(e,t,n){let o="",r=!0;for(let i=0;i<gT;i++){const a=wr[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=lg(l,tu[a]);if(!c){r=!1;const d=mT[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function iu(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(Cr.has(c)){a=!0;continue}else if(_m(c)){r[c]=u;continue}else{const d=lg(u,tu[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=yT(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 wg(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 Ir={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}%`}},bT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=eo.parse(e);if(r.length>5)return o;const i=eo.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=lt(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},nc={borderRadius:{...Ir,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ir,borderTopRightRadius:Ir,borderBottomLeftRadius:Ir,borderBottomRightRadius:Ir,boxShadow:bT};function Cg(e,{layout:t,layoutId:n}){return Cr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nc[e]||e==="opacity")}function au(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)(It(o[l])||r&&It(r[l])||Cg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function vT(e){return window.getComputedStyle(e)}class xT extends yg{constructor(){super(...arguments),this.type="html",this.renderInstance=wg}readValueFromInstance(t,n){var o;if(Cr.has(n))return(o=this.projection)!=null&&o.isProjecting?zl(n):Kw(t,n);{const r=vT(t),i=(_m(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sg(t,n)}build(t,n,o){iu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return au(t,n,o)}}const ST={offset:"stroke-dashoffset",array:"stroke-dasharray"},wT={offset:"strokeDashoffset",array:"strokeDasharray"};function CT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?ST:wT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const TT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Tg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(iu(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 TT)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&&CT(f,r,i,a,!1)}const Pg=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"]),Eg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PT(e,t,n,o){wg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Pg.has(r)?r:eu(r),t.attrs[r])}function Mg(e,t,n){const o=au(e,t,n);for(const r in e)if(It(e[r])||It(t[r])){const i=wr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class ET extends yg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cr.has(n)){const o=ig(n);return o&&o.default||0}return n=Pg.has(n)?n:eu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Mg(t,n,o)}build(t,n,o){Tg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){PT(t,n,o,r)}mount(t){this.isSVGTag=Eg(t.tagName),super.mount(t)}}const MT=su.length;function Og(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Og(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<MT;n++){const o=su[n],r=e.props[o];(gs(r)||r===!1)&&(t[o]=r)}return t}function kg(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 OT=[...ru].reverse(),kT=ru.length;function DT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>VC(e,n,o)))}function RT(e){let t=DT(e),n=If(),o=!0;const r=c=>(u,d)=>{var p;const f=sr(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=Og(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<kT;y++){const v=OT[y],C=n[v],S=u[v]!==void 0?u[v]:d[v],w=gs(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||ca(S)||typeof S=="boolean")continue;const M=IT(C.prevProp,S);let _=M||v===c&&C.isActive&&!E&&w||y>m&&w,D=!1;const $=Array.isArray(S)?S:[S];let N=$.reduce(r(v),{});T===!1&&(N={});const{prevResolvedValues:x={}}=C,L={...x,...N},I=j=>{_=!0,p.has(j)&&(D=!0,p.delete(j)),C.needsAnimating[j]=!0;const B=e.getValue(j);B&&(B.liveStyle=!1)};for(const j in L){const B=N[j],F=x[j];if(h.hasOwnProperty(j))continue;let z=!1;Gl(B)&&Gl(F)?z=!kg(B,F):z=B!==F,z?B!=null?I(j):p.add(j):B!==void 0&&p.has(j)?I(j):C.protectedKeys[j]=!0}C.prevProp=S,C.prevResolvedValues=N,C.isActive&&(h={...h,...N}),o&&e.blockInitialAnimation&&(_=!1);const A=E&&M;_&&(!A||D)&&f.push(...$.map(j=>{const B={type:v};if(typeof j=="string"&&o&&!A&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,z=sr(F,j);if(F.enteringChildren&&z){const{delayChildren:R}=z.transition||{};B.delay=Qm(F.enteringChildren,e,R)}}return{animation:j,options:B}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=sr(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 IT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kg(t,e):!1}function fo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function If(){return{animate:fo(!0),whileInView:fo(),whileHover:fo(),whileTap:fo(),whileDrag:fo(),whileFocus:fo(),exit:fo()}}function Af(e,t){e.min=t.min,e.max=t.max}function an(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 Dg=1e-4,AT=1-Dg,NT=1+Dg,Rg=.01,_T=0-Rg,jT=0+Rg;function $t(e){return e.max-e.min}function LT(e,t,n){return Math.abs(e-t)<=n}function _f(e,t,n,o=.5){e.origin=o,e.originPoint=lt(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AT&&e.scale<=NT||isNaN(e.scale))&&(e.scale=1),(e.translate>=_T&&e.translate<=jT||isNaN(e.translate))&&(e.translate=0)}function os(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+$t(t)}function $T(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+$t(t)}function Ai(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=Ii(e,1/n,o),r!==void 0&&(e=Ii(e,1/r,o)),e}function VT(e,t=0,n=1,o=.5,r,i=e,a=e){if(Sn.test(t)&&(t=parseFloat(t),t=lt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=lt(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){VT(e,t[n],t[o],t[r],t.scale,i,a)}const FT=["x","scaleX","originX"],BT=["y","scaleY","originY"];function Ff(e,t,n,o){Vf(e.x,t,FT,n?n.x:void 0,o?o.x:void 0),Vf(e.y,t,BT,n?n.y:void 0,o?o.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Ig(e){return Bf(e.x)&&Bf(e.y)}function zf(e,t){return e.min===t.min&&e.max===t.max}function zT(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 Ag(e,t){return Wf(e.x,t.x)&&Wf(e.y,t.y)}function Uf(e){return $t(e.x)/$t(e.y)}function Hf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Kt(e){return[e("x"),e("y")]}function WT(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 Ng=["TopLeft","TopRight","BottomLeft","BottomRight"],UT=Ng.length,Yf=e=>typeof e=="string"?parseFloat(e):e,qf=e=>typeof e=="number"||ve.test(e);function HT(e,t,n,o,r,i){r?(e.opacity=lt(0,n.opacity??1,YT(o)),e.opacityExit=lt(t.opacity??1,0,qT(o))):i&&(e.opacity=lt(t.opacity??1,n.opacity??1,o));for(let a=0;a<UT;a++){const l=`border${Ng[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(lt(Yf(c),Yf(u),o),0),(Sn.test(u)||Sn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=lt(t.rotate||0,n.rotate||0,o))}function Gf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const YT=_g(0,.5,km),qT=_g(.5,.95,Jt);function _g(e,t,n){return o=>o<e?0:o>t?1:n(ps(e,t,o))}function GT(e,t,n){const o=It(e)?e:ur(e);return o.start(Qc("",o,t,n)),o.animation}function ys(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const KT=(e,t)=>e.depth-t.depth;class ZT{constructor(){this.children=[],this.isDirty=!1}add(t){_c(this.children,t),this.isDirty=!0}remove(t){jc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KT),this.isDirty=!1,this.children.forEach(t)}}function XT(e,t){const n=Lt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(Jn(o),e(i-t))};return et.setup(o,!0),()=>Jn(o)}function vi(e){return It(e)?e.get():e}class QT{constructor(){this.members=[]}add(t){_c(this.members,t),t.scheduleRender()}remove(t){if(jc(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 xi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ol=["","X","Y","Z"],JT=1e3;let eP=0;function rl(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function jg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ng(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&jg(o)}function Lg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=eP++,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(oP),this.nodes.forEach(aP),this.nodes.forEach(lP),this.nodes.forEach(rP)},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 ZT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new $c),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=pg(a)&&!nT(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const p=()=>this.root.updateBlockedByResize=!1;et.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=XT(p,250),xi.hasAnimatedSinceResize&&(xi.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()||pP,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Ag(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={...Xc(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(),Jn(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(cP),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&&jg(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(iP),this.nodes.forEach(tP),this.nodes.forEach(nP)):this.nodes.forEach(Zf),this.clearAllSnapshots();const l=Lt.now();Ot.delta=Tn(0,1e3/60,l-Ot.timestamp),Ot.timestamp=l,Ot.isProcessing=!0,Ka.update.process(Ot),Ka.preRender.process(Ot),Ka.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sP),this.sharedNodes.forEach(uP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ct(),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&&!Ig(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||Co(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)),hP(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return Ct();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(mP))){const{scroll:d}=this.root;d&&(tr(l.x,d.offset.x),tr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=Ct();if(an(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&&an(l,a),tr(l.x,f.offset.x),tr(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=Ct();an(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&&nr(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Co(d.latestValues)&&nr(c,d.latestValues)}return Co(this.latestValues)&&nr(c,this.latestValues),c}removeTransform(a){const l=Ct();an(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Co(u.latestValues))continue;ec(u.latestValues)&&u.updateSnapshot();const d=Ct(),f=u.measurePageBox();an(d,f),Ff(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Co(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!==Ot.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=Ot.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=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$T(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):an(this.target,this.layout.layoutBox),xg(this.target,this.targetDelta)):an(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||ec(this.parent.latestValues)||vg(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=Ct(),this.relativeTargetOrigin=Ct(),Ai(this.relativeTargetOrigin,l,c),an(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===Ot.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;an(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;pT(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=Ct());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)),os(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=er(),this.projectionDelta=er(),this.projectionDeltaWithTransform=er()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=er();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=Ct(),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(fP));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&&(Ai(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dP(this.relativeTarget,this.relativeTargetOrigin,p,T),S&&zT(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ct()),an(S,this.relativeTarget)),g&&(this.animationValues=d,HT(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&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{xi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ur(0)),this.currentAnimation=GT(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(JT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&$g(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ct();const f=$t(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=$t(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}an(l,c),nr(l,d),os(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new QT),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&&rl("z",a,u,this.animationValues);for(let d=0;d<ol.length;d++)rl(`rotate${ol[d]}`,a,u,this.animationValues),rl(`skew${ol[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=vi(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=vi(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Co(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=WT(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 nc){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=nc[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?vi(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 tP(e){e.updateLayout()}function nP(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Kt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(p);p.min=o[f].min,p.max=p.min+h}):$g(i,t.layoutBox,o)&&Kt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=er();os(l,o,t.layoutBox);const c=er();a?os(c,e.applyTransform(r,!0),t.measuredBox):os(c,o,t.layoutBox);const u=!Ig(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=Ct();Ai(m,t.layoutBox,p.layoutBox);const g=Ct();Ai(g,o,h.layoutBox),Ag(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 oP(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 rP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sP(e){e.clearSnapshot()}function Kf(e){e.clearMeasurements()}function Zf(e){e.isLayoutDirty=!1}function iP(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 aP(e){e.resolveTargetDelta()}function lP(e){e.calcProjection()}function cP(e){e.resetSkewAndRotation()}function uP(e){e.removeLeadSnapshot()}function Qf(e,t,n){e.translate=lt(t.translate,0,n),e.scale=lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jf(e,t,n,o){e.min=lt(t.min,n.min,o),e.max=lt(t.max,n.max,o)}function dP(e,t,n,o){Jf(e.x,t.x,n.x,o),Jf(e.y,t.y,n.y,o)}function fP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pP={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:Jt;function np(e){e.min=tp(e.min),e.max=tp(e.max)}function hP(e){np(e.x),np(e.y)}function $g(e,t,n){return e==="position"||e==="preserve-aspect"&&!LT(Uf(t),Uf(n),.2)}function mP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const gP=Lg({attachResizeListener:(e,t)=>ys(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}),sl={current:void 0},Vg=Lg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sl.current){const e=new gP({});e.mount(window),e.setOptions({layoutScroll:!0}),sl.current=e}return sl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lu=k.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 yP(...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 bP(...e){return P.useCallback(yP(...e),e)}class vP 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 xP({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=k.useId(),a=k.useRef(null),l=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=k.useContext(lu),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=bP(a,u);return k.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(vP,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const SP=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=_c(wP),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(xP,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(ia.Provider,{value:h,children:e})};function wP(){return new Map}function zg(e=!0){const t=_.useContext(ia);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 Js=e=>e.key||"";function ip(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const ap=({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]=zg(a),p=_.useMemo(()=>ip(e),[e]),h=a&&!d?[]:p.map(Js),m=_.useRef(!0),g=_.useRef(p),y=_c(()=>new Map),v=_.useRef(new Set),[C,x]=_.useState(p),[S,T]=_.useState(p);xm(()=>{m.current=!1,g.current=p;for(let A=0;A<S.length;A++){const k=Js(S[A]);h.includes(k)?(y.delete(k),v.current.delete(k)):y.get(k)!==!0&&y.set(k,!1)}},[S,h.length,h.join("-")]);const E=[];if(p!==C){let A=[...p];for(let k=0;k<S.length;k++){const $=S[k],j=Js($);h.includes(j)||(A.splice(k,0,$),E.push($))}return i==="wait"&&E.length&&(A=E),T(ip(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}=_.useContext(Nc);return b.jsx(b.Fragment,{children:S.map(A=>{const k=Js(A),$=a&&!d?!1:p===S||h.includes(k),j=()=>{if(v.current.has(k))return;if(v.current.add(k),y.has(k))y.set(k,!0);else return;let w=!0;y.forEach(L=>{L||(w=!1)}),w&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(SP,{isPresent:$,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:$?void 0:j,anchorX:l,anchorY:c,children:A},k)})})},Wg=_.createContext({strict:!1}),lp={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 cp=!1;function CP(){if(cp)return;const e={};for(const t in lp)e[t]={isEnabled:n=>lp[t].some(o=>!!n[o])};bg(e),cp=!0}function Ug(){return CP(),cT()}function TP(e){const t=Ug();for(const n in e)t[n]={...t[n],...e[n]};bg(t)}const PP=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 Ii(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PP.has(e)}let Hg=e=>!Ii(e);function EP(e){typeof e=="function"&&(Hg=t=>t.startsWith("on")?!Ii(t):e(t))}try{EP(require("@emotion/is-prop-valid").default)}catch{}function MP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Hg(r)||n===!0&&Ii(r)||!t&&!Ii(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ca=_.createContext({});function OP(e,t){if(la(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ys(n)?n:void 0,animate:ys(o)?o:void 0}}return e.inherit!==!1?t:{}}function kP(e){const{initial:t,animate:n}=OP(e,_.useContext(ca));return _.useMemo(()=>({initial:t,animate:n}),[up(t),up(n)])}function up(e){return Array.isArray(e)?e.join(" "):e}const uu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yg(e,t,n){for(const o in t)!It(t[o])&&!Pg(o,n)&&(e[o]=t[o])}function DP({transformTemplate:e},t){return _.useMemo(()=>{const n=uu();return au(n,t,e),Object.assign({},n.vars,n.style)},[t])}function RP(e,t){const n=e.style||{},o={};return Yg(o,n,e),Object.assign(o,DP(e,t)),o}function IP(e,t){const n={},o=RP(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 qg=()=>({...uu(),attrs:{}});function AP(e,t,n,o){const r=_.useMemo(()=>{const i=qg();return Eg(i,t,Og(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Yg(i,e.style,e),r.style={...i,...r.style}}return r}const NP=["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 du(e){return typeof e!="string"||e.includes("-")?!1:!!(NP.indexOf(e)>-1||/[A-Z]/u.test(e))}function _P(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??du(e)?AP:IP)(t,o,r,e),u=MP(t,typeof e=="string",i),d=e!==_.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=_.useMemo(()=>It(f)?f.get():f,[f]);return _.createElement(e,{...d,children:p})}function jP({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:LP(n,o,r,e),renderState:t()}}function LP(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=yi(i[p]);let{initial:a,animate:l}=e;const c=la(e),u=yg(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"&&!aa(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=eu(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 Gg=e=>(t,n)=>{const o=_.useContext(ca),r=_.useContext(ia),i=()=>jP(e,t,o,r);return n?i():_c(i)},$P=Gg({scrapeMotionValuesFromProps:lu,createRenderState:uu}),VP=Gg({scrapeMotionValuesFromProps:kg,createRenderState:qg}),FP=Symbol.for("motionComponentSymbol");function BP(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 Kg=_.createContext({});function Gr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zP(e,t,n,o,r,i){var x,S;const{visualElement:a}=_.useContext(ca),l=_.useContext(Wg),c=_.useContext(ia),u=_.useContext(cu),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(Kg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&WP(p.current,n,r,g);const y=_.useRef(!1);_.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[og],C=_.useRef(!!v&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,v))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,v)));return xm(()=>{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 WP(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&Gr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function Zg(e){if(e)return e.options.allowProjection!==!1?e.projection:Zg(e.parent)}function il(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&TP(o);const i=n?n==="svg":du(e),a=i?VP:$P;function l(u,d){let f;const p={..._.useContext(cu),...u,layoutId:UP(u)},{isStatic:h}=p,m=kP(u),g=a(u,h);if(!h&&vm){HP(p,o);const y=YP(p);f=y.MeasureLayout,m.visualElement=zP(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(ca.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,_P(e,u,BP(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[FP]=e,c}function UP({layoutId:e}){const t=_.useContext(Nc).id;return t&&e!==void 0?t+"-"+e:e}function HP(e,t){const n=_.useContext(Wg).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?Cr(!1,o,"lazy-strict-mode"):Ln(!1,o,"lazy-strict-mode")}}function YP(e){const t=Ug(),{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 qP(e,t){if(typeof Proxy>"u")return il;const n=new Map,o=(i,a)=>il(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&Fc(!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,il(a,void 0,e,t)),n.get(a))})}const GP=(e,t)=>t.isSVG??du(e)?new ET(t):new xT(t,{allowProjection:e!==_.Fragment});class KP extends io{constructor(t){super(t),t.animationState||(t.animationState=RT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();aa(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 ZP=0;class XP extends io{constructor(){super(...arguments),this.id=ZP++}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 QP={animation:{Feature:KP},exit:{Feature:XP}};function As(e){return{point:{x:e.pageX,y:e.pageY}}}const JP=e=>t=>ru(t)&&e(t,As(t));function ss(e,t,n,o){return bs(e,t,JP(n),o)}const Xg=({current:e})=>e?e.ownerDocument.defaultView:null,dp=(e,t)=>Math.abs(e-t);function eE(e,t){const n=dp(e.x,t.x),o=dp(e.y,t.y);return Math.sqrt(n**2+o**2)}const fp=new Set(["auto","scroll"]);class Qg{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=ll(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=eE(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=Ot;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=al(m,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ll(h.type==="pointercancel"?this.lastMoveEventInfo:al(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!ru(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=As(t),u=al(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Ot;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,ll(u,this.history)),this.removeListeners=Ds(ss(this.contextWindow,"pointermove",this.handlePointerMove),ss(this.contextWindow,"pointerup",this.handlePointerUp),ss(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(fp.has(o.overflowX)||fp.has(o.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:r.x-n.x,y:r.y-n.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,r),et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eo(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function pp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ll({point:e},t){return{point:e,delta:pp(e,Jg(t)),offset:pp(e,tE(t)),velocity:nE(t,.1)}}function tE(e){return e[0]}function Jg(e){return e[e.length-1]}function nE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Jg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Sn(t)));)n--;if(!o)return{x:0,y:0};const i=Jt(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function oE(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?ct(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?ct(n,e,o.max):Math.min(e,n)),e}function hp(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 rE(e,{top:t,left:n,bottom:o,right:r}){return{x:hp(e.x,n,r),y:hp(e.y,t,o)}}function mp(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 sE(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function iE(e,t){let n=.5;const o=$t(e),r=$t(t);return r>o?n=hs(t.min,t.max-o,e.min):o>r&&(n=hs(e.min,e.max-r,t.min)),Pn(0,1,n)}function aE(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 rc=.35;function lE(e=rc){return e===!1?e=0:e===!0&&(e=rc),{x:gp(e,"left","right"),y:gp(e,"top","bottom")}}function gp(e,t,n){return{min:yp(e,t),max:yp(e,n)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const cE=new WeakMap;class uE{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=wt(),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(As(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=XC(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),Zt(v=>{let C=this.getAxisMotionValue(v).get()||0;if(wn.test(C)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(C=$t(S)*(parseFloat(C)/100))}}this.originPoint[v]=C}),g&&et.postRender(()=>g(f,p)),Zl(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=dE(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=()=>Zt(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 Qg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Xg(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ei(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=oE(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&&Gr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=rE(o.layoutBox,t):this.constraints=!1,this.elastic=lE(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Zt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aE(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gr(t))return!1;const o=t.current;Ln(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=hT(o,r.root,this.visualElement.getTransformPagePoint());let a=sE(r.layout.layoutBox,i);if(n){const l=n(dT(a));this.hasMutatedConstraints=!!l,l&&(a=xg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Zt(d=>{if(!ei(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 Zl(this.visualElement,t),o.start(Jc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zt(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){Zt(n=>{const{drag:o}=this.getProps();if(!ei(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-ct(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Gr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=iE({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(),Zt(a=>{if(!ei(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(ct(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;cE.set(this.visualElement,this);const t=this.visualElement.current,n=ss(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&hg(f);u&&d&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Gr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),et.read(o);const a=bs(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Zt(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=rc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ei(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fE extends io{constructor(t){super(t),this.removeGroupControls=en,this.removeListeners=en,this.controls=new uE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const bp=e=>(t,n)=>{e&&et.postRender(()=>e(t,n))};class pE extends io{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(t){this.session=new Qg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:bp(t),onStart:bp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&et.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=ss(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 cl=!1;class hE 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),cl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),bi.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}),cl=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||et.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ou.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;cl=!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 ey(e){const[t,n]=zg(),o=_.useContext(Nc);return b.jsx(hE,{...e,layoutGroup:o,switchLayoutGroup:_.useContext(Kg),isPresent:t,safeToRemove:n})}const mE={pan:{Feature:pE},drag:{Feature:fE,ProjectionNode:Bg,MeasureLayout:ey}};function vp(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&et.postRender(()=>i(t,As(t)))}class gE extends io{mount(){const{current:t}=this.node;t&&(this.unmount=QC(t,(n,o)=>(vp(this.node,o,"Start"),r=>vp(this.node,r,"End"))))}unmount(){}}class yE extends io{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ds(bs(this.node.current,"focus",()=>this.onFocus()),bs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xp(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&et.postRender(()=>i(t,As(t)))}class bE extends io{mount(){const{current:t}=this.node;t&&(this.unmount=tT(t,(n,o)=>(xp(this.node,o,"Start"),(r,{success:i})=>xp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sc=new WeakMap,ul=new WeakMap,vE=e=>{const t=sc.get(e.target);t&&t(e)},xE=e=>{e.forEach(vE)};function SE({root:e,...t}){const n=e||document;ul.has(n)||ul.set(n,{});const o=ul.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(xE,{root:e,...t})),o[r]}function wE(e,t,n){const o=SE(t);return sc.set(e,n),o.observe(e),()=>{sc.delete(e),o.unobserve(e)}}const CE={some:0,all:1};class TE extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:CE[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 wE(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(PE(t,n))&&this.startObserver()}unmount(){}}function PE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EE={inView:{Feature:TE},tap:{Feature:bE},focus:{Feature:yE},hover:{Feature:gE}},ME={layout:{ProjectionNode:Bg,MeasureLayout:ey}},OE={...QP,...EE,...mE,...ME},Zo=qP(OE,GP),Oo=15.5,dl=18,kE=Oo,ua=({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})]});ua.displayName="FacialIcon";const da=({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})});da.displayName="LPRIcon";const Ns="Facial",_s="LPR",DE=[Ns,_s];function RE(e,t){return e===Ns?b.jsx(ua,{fill:t,size:16}):e===_s?b.jsx(da,{fill:t,size:16}):null}function IE(e,t=18,n){return e===Ns?b.jsx(ua,{fill:n,size:t}):e===_s?b.jsx(da,{fill:n,size:t}):null}function AE(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&DE.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:RE(o,t)}))}const NE="_spotWrapper_p7ng0_1",_E="_mapSpot_p7ng0_8",jE="_selected_p7ng0_24",LE="_rotationLines_p7ng0_36",$E="_rotationLine_p7ng0_36",VE="_rotationLineInner_p7ng0_56",FE="_rotationConeSvg_p7ng0_63",BE="_rotationLineSvg_p7ng0_77",zE="_cameraButtonAtTip_p7ng0_89",WE="_cameraButtonSelected_p7ng0_107",UE="_cameraButtonAtTipIcon_p7ng0_129",HE="_count_p7ng0_137",YE="_cameraTypesContainer_p7ng0_157",qE="_cameraTypeItem_p7ng0_164",GE="_cameraTypeCount_p7ng0_171",KE="_cameraTypeIcon_p7ng0_182",Rt={spotWrapper:NE,mapSpot:_E,selected:jE,rotationLines:LE,rotationLine:$E,rotationLineInner:VE,rotationConeSvg:FE,rotationLineSvg:BE,cameraButtonAtTip:zE,cameraButtonSelected:WE,cameraButtonAtTipIcon:UE,count:HE,cameraTypesContainer:YE,cameraTypeItem:qE,cameraTypeCount:GE,cameraTypeIcon:KE},ty=({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})]});ty.displayName="ArrowIcon";const ny=({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})`})]})};ny.displayName="ConeIcon";const ZE=Zo(q.Box),fu=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,selectedCameraId:i,isHighlighted:a,highlightedCameraId:l,disableClick:c=!1,className:u,onClick:d,onCameraClick:f,sx:p})=>{const m=q.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",y=_.useMemo(()=>AE(n,g),[n,g]),v=y&&y.length>0,C=n&&n.length===1,x=!r&&v&&(C||o>=Oo),S=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:S,M=m?"#101111":"#ffffff",A=m?"#CEE643":"#44808C",k=8,$=n??[],j=r&&$.length>0;return b.jsxs("div",{className:Rt.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(ap,{children:j&&b.jsx(Zo.div,{className:Rt.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:$.map((w,L)=>{const D=i===w.id||l===w.id,I=m?"#101111":"#FDFCFC";return b.jsx("div",{className:Rt.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${w.orientation??0}deg)`},children:b.jsxs(Zo.div,{className:Rt.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ny,{fill:A,className:Rt.rotationConeSvg}),b.jsx(ty,{fill:M,className:Rt.rotationLineSvg}),b.jsx("button",{type:"button",className:`${Rt.cameraButtonAtTip} ${D?Rt.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(w)},"aria-label":`Câmera ${w.algorithm??"câmera"}`,children:b.jsx("span",{className:Rt.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(w.orientation??0)}deg)`},children:IE(w.algorithm,18,I)})})]})},w.id??L)})})}),b.jsx(ZE,{className:`${Rt.mapSpot} ${r?Rt.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:S,"--arrow-opacity":x?1:0,backgroundColor:E},animate:{width:x?"auto":r?34:30,height:x?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:x?"4px 8px":0,y:x?-k:0,"--arrow-opacity":x?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(ap,{mode:"wait",children:x?b.jsx(Zo.div,{className:Rt.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((w,L)=>b.jsxs(Zo.div,{className:Rt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(q.Typography,{className:Rt.cameraTypeCount,children:w.count}),w.icon&&b.jsx(q.Box,{className:Rt.cameraTypeIcon,children:w.icon})]},L))},"expanded"):b.jsx(Zo.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(q.Typography,{className:Rt.count,children:e})},"collapsed")})})]})};fu.displayName="MapSpot";const XE="_cameraCard_t76lu_2",QE="_selected_t76lu_14",JE="_topContainer_t76lu_82",eM="_mediaImage_t76lu_96",tM="_mediaPlaceholder_t76lu_103",nM="_menuButton_t76lu_109",oM="_menuButtonIcon_t76lu_128",rM="_closeButton_t76lu_134",sM="_closeButtonIcon_t76lu_153",iM="_bottomContainer_t76lu_159",aM="_infoRow_t76lu_172",lM="_iconWrapper_t76lu_180",cM="_cameraIcon_t76lu_186",uM="_cameraTypeImage_t76lu_193",dM="_headerText_t76lu_201",fM="_subheadText_t76lu_211",pM="_streetText_t76lu_221",hM="_supportText_t76lu_222",mM="_tagsContainer_t76lu_232",gM="_tag_t76lu_232",yM="_tagOverflow_t76lu_248",bM="_recordingButtonContainer_t76lu_271",vM="_menuButtonInline_t76lu_280",xM="_menuButtonInlineIcon_t76lu_299",SM="_recordingButton_t76lu_271",wM="_recordingButtonIcon_t76lu_330",CM="_recordingButtonText_t76lu_333",TM="_cameraCardMenuPaper_t76lu_364",PM="_cameraCardMenuList_t76lu_388",EM="_cameraCardMenuItem_t76lu_396",MM="_cameraCardMenuItemText_t76lu_435",je={cameraCard:XE,selected:QE,topContainer:JE,mediaImage:eM,mediaPlaceholder:tM,menuButton:nM,menuButtonIcon:oM,closeButton:rM,closeButtonIcon:sM,bottomContainer:iM,infoRow:aM,iconWrapper:lM,cameraIcon:cM,cameraTypeImage:uM,headerText:dM,subheadText:fM,streetText:pM,supportText:hM,tagsContainer:mM,tag:gM,tagOverflow:yM,recordingButtonContainer:bM,menuButtonInline:vM,menuButtonInlineIcon:xM,recordingButton:SM,recordingButtonIcon:wM,recordingButtonText:CM,cameraCardMenuPaper:TM,cameraCardMenuList:PM,cameraCardMenuItem:EM,cameraCardMenuItemText:MM};function OM(e,t){const n=t?"#FAF9F9":"#000000";return e===Ns?b.jsx(ua,{fill:n,size:20,className:je.cameraTypeImage}):e===_s?b.jsx(da,{fill:n,size:20,className:je.cameraTypeImage}):b.jsx(kt.VideocamOutlined,{className:je.cameraIcon,style:{color:n}})}const kM=({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=ae.useTheme().palette.mode==="dark",g=o??"",y=n??"",v=_.useRef(null),[C,x]=_.useState(!1),S=((l==null?void 0:l.length)??0)>0||c,T=((l==null?void 0:l.length)??0)>0,E=r.length>0?r[0]:null,M=r.length>1?r.length-1:0,A=r.length>1?r.join(", "):"";return b.jsxs(q.Box,{className:`${je.cameraCard} ${p?je.selected:""} ${u||""}`.trim(),"data-theme":m?"dark":"light",sx:{"&:hover":{borderColor:"var(--CameraCard-Hover-Border)"},"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[b.jsxs(q.Box,{className:je.topContainer,children:[i?b.jsx("img",{src:i,alt:"",className:je.mediaImage}):b.jsx(q.Box,{className:je.mediaPlaceholder,"aria-hidden":!0}),!d&&E&&b.jsx(q.Tooltip,{title:A,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:b.jsxs(q.Box,{className:je.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[b.jsx("span",{className:je.tag,children:E}),M>0&&b.jsxs("span",{className:je.tagOverflow,children:["+",M]})]})}),d&&f&&b.jsx(q.IconButton,{onClick:f,className:je.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(kt.Close,{className:je.closeButtonIcon})}),S&&!d&&b.jsx(q.IconButton,{ref:v,onClick:()=>{T?x(!0):c==null||c()},className:je.menuButton,"aria-label":"Opções","aria-haspopup":T?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(kt.MoreHoriz,{className:je.menuButtonIcon})})]}),T&&b.jsx(q.Popover,{open:C,anchorEl:v.current,onClose:()=>x(!1),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:b.jsx(q.Box,{className:je.cameraCardMenuPaper,"data-theme":m?"dark":"light",children:b.jsx(q.Box,{className:je.cameraCardMenuList,role:"menu",children:l.map(k=>b.jsx("button",{type:"button",className:je.cameraCardMenuItem,role:"menuitem",onClick:()=>{var $;($=k.onClick)==null||$.call(k),x(!1)},children:b.jsx("span",{className:je.cameraCardMenuItemText,children:k.label})},k.label))})})}),b.jsxs(q.Box,{className:`${je.bottomContainer} bottom-container`,children:[b.jsxs(q.Box,{className:je.infoRow,children:[b.jsx(q.Box,{className:je.iconWrapper,children:OM(a,m)}),b.jsx("span",{className:je.headerText,children:e})]}),y&&b.jsx("span",{className:je.subheadText,children:y}),b.jsx("span",{className:je.streetText,children:t}),g&&b.jsx("span",{className:je.supportText,children:g}),d&&b.jsxs(q.Box,{className:je.recordingButtonContainer,children:[S&&b.jsx(q.IconButton,{ref:v,onClick:()=>{T?x(!0):c==null||c()},className:je.menuButtonInline,"aria-label":"Opções","aria-haspopup":T?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(kt.MoreHoriz,{className:je.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:je.recordingButton,onClick:k=>{k.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(kt.VideocamOutlined,{className:je.recordingButtonIcon}),b.jsx("span",{className:je.recordingButtonText,children:"Ver gravação"})]})]})]})]})},DM=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},RM=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},IM="_container_1whpg_2",AM="_zoomButton_1whpg_10",NM="_stateLayer_1whpg_43",_M="_icon_1whpg_59",yn={container:IM,zoomButton:AM,stateLayer:NM,icon:_M},jM=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=q.useTheme().palette.mode==="dark",u=DM(e,o,i),d=RM(e,o,r,i),f={backgroundColor:c?"#DEDDDD":"#101111","&:hover":{backgroundColor:c?"#DEDDDD":"#101111",opacity:.9}},p={fill:c?"#101111":"#FDFCFC",color:c?"#101111":"#FDFCFC"};return b.jsxs(q.Box,{className:`${yn.container} ${t||""}`,sx:n,children:[b.jsx(q.IconButton,{className:yn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.Add,{className:yn.icon,sx:p})})}),b.jsx(q.IconButton,{className:yn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.Remove,{className:yn.icon,sx:p})})}),b.jsx(q.IconButton,{className:yn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.ZoomOutMap,{className:yn.icon,sx:p})})})]})};var LM=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 $M=oo(LM),VM="1.7.1";function hr(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 ic(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):r(d.value).then(l,c)}u((o=o.apply(e,[])).next())})}const In={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},FM="https://maps.googleapis.com/maps/api/js";class Ai{static load(t,n){return ic(this,void 0,void 0,function*(){var o,r;const i=t.libraries?t.libraries.split(","):[],a=this.serializeParams(t);this.listeners.push(n),!((r=(o=window.google)===null||o===void 0?void 0:o.maps)===null||r===void 0)&&r.importLibrary?(this.serializedApiParams||(this.loadingStatus=In.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=a,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==a&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const l=["maps",...i];yield Promise.all(l.map(c=>google.maps.importLibrary(c)))})}static serializeParams(t){return[t.v,t.key,t.language,t.region,t.authReferrerPolicy,t.solutionChannel].join("/")}static initImportLibrary(t){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary){console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");return}let n=null;const o=()=>n||(n=new Promise((r,i)=>{var a;const l=document.createElement("script"),c=new URLSearchParams;for(const[u,d]of Object.entries(t)){const f=u.replace(/[A-Z]/g,p=>"_"+p[0].toLowerCase());c.set(f,String(d))}c.set("loading","async"),c.set("callback","__googleMapsCallback__"),l.async=!0,l.src=FM+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=In.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=In.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=In.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=In.LOADING,this.notifyLoadingStatusListeners(),document.head.append(l)}),n);google.maps.importLibrary=r=>o().then(()=>google.maps.importLibrary(r))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}Ai.loadingStatus=In.NOT_LOADED;Ai.listeners=[];const BM="GMP_visgl_rgmlibrary_v1_default",zM=[`gmp_visgl_reactgooglemaps_v${VM}`],js=_.createContext(null);function WM(){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=hr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function UM(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=hr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=_.useState(Ai.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=>ic(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(()=>{ic(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=BM:m.solutionChannel===""&&delete m.solutionChannel,yield Ai.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 HM(e){return _.useMemo(()=>e.disableUsageAttribution?null:zM,[e.disableUsageAttribution])}const YM=e=>{const{children:t}=e,n=hr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=WM(),{status:l,loadedLibraries:c,importLibrary:u}=UM(n),d=HM(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(js.Provider,{value:f},t)};function qM(e,t){for(const n of XM){const o=t[n],r=oy[n];_.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(GM(r,e,a))});return()=>i.remove()},[e,r,o])}}function GM(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(KM.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(ZM.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 oy={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"},KM=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],ZM=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],XM=Object.keys(oy);function QM(e){const t=_.useRef(void 0);return _.useEffect(()=>{t.current=e}),t.current}function JM(e,t){const n=QM(e);return _.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function eO(e,t,n){_.useEffect(e,[JM(t,n)])}function tO(e,t){eO(e,t,$M)}const nO=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 oO(e,t){const n={},o=Object.keys(t);for(const r of o)nO.has(r)&&(n[r]=t[r]);tO(()=>{e&&e.setOptions(n)},[n])}function ry(){var e;return((e=_.useContext(js))===null||e===void 0?void 0:e.status)||In.NOT_LOADED}function rO(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 sO(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function sy(e){return sO(e)?e:e.toJSON()}function iO(e,t,n){const o=n.center?sy(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 aO=()=>{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 lO(){const[e,t]=_.useState(null),n=_.useCallback(o=>t(o),[t]);return[e,n]}function iy(){return ry()===In.LOADED}function cO(){const[,e]=_.useReducer(t=>t+1,0);return e}function uO(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 dO(e){const t=cO(),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",()=>{uO(e,n),t()});return()=>o.remove()},[e,t]),n}class vi{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)}}vi.entries={};function fO(e,t){const n=iy(),[o,r]=_.useState(null),[i,a]=lO(),l=dO(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=hr(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=_.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 $,j;if(m&&vi.has(k)?(j=vi.pop(k),$=j.getDiv(),i.appendChild($),j.setOptions(v),setTimeout(()=>j.setCenter(j.getCenter()),0)):($=document.createElement("div"),$.style.height="100%",i.appendChild($),j=new google.maps.Map($,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(j),E(j,c),u){const{padding:w}=u,L=hr(u,["padding"]);j.fitBounds(L,w)}else(!C||!x)&&j.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:w,cameraState:L}=T.current;w!==A&&j.setOptions(L)}return()=>{T.current={mapId:A,cameraState:l.current},$.remove(),m?vi.push(k,j):google.maps.event.clearInstanceListeners(j),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const ay=_.createContext(null),ly=e=>{const{children:t,id:n,className:o,style:r}=e,i=_.useContext(js),a=ry();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=fO(e,i);iO(l,u,e),qM(l,e),oO(l,e);const d=rO(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?sy(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,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]);_.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===In.AUTH_FAILURE?_.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},_.createElement(aO,null)):_.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?_.createElement(ay.Provider,{value:v},t):null)};ly.deckGLViewProps=!0;const Sp=new Set;function pO(...e){const t=JSON.stringify(e);Sp.has(t)||(Sp.add(t),console.error(...e))}const fa=(e=null)=>{const t=_.useContext(js),{map:n}=_.useContext(ay)||{};if(t===null)return pO("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 hO(e){const t=iy(),n=_.useContext(js);return _.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function ti(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 ni(e,t,n){_.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function wp(e,t,n){_.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class mO{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(vP,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const SP=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Nc(wP),f=k.useId();let p=!0,h=k.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}),k.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),P.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=b.jsx(xP,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(la.Provider,{value:h,children:e})};function wP(){return new Map}function Fg(e=!0){const t=k.useContext(la);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=k.useId();k.useEffect(()=>{if(e)return r(i)},[e]);const a=k.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const ti=e=>e.key||"";function rp(e){const t=[];return k.Children.forEach(e,n=>{k.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]=Fg(a),p=k.useMemo(()=>rp(e),[e]),h=a&&!d?[]:p.map(ti),m=k.useRef(!0),g=k.useRef(p),y=Nc(()=>new Map),v=k.useRef(new Set),[C,S]=k.useState(p),[w,T]=k.useState(p);bm(()=>{m.current=!1,g.current=p;for(let _=0;_<w.length;_++){const D=ti(w[_]);h.includes(D)?(y.delete(D),v.current.delete(D)):y.get(D)!==!0&&y.set(D,!1)}},[w,h.length,h.join("-")]);const E=[];if(p!==C){let _=[...p];for(let D=0;D<w.length;D++){const $=w[D],N=ti($);h.includes(N)||(_.splice(D,0,$),E.push($))}return i==="wait"&&E.length&&(_=E),T(rp(_)),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}=k.useContext(Ac);return b.jsx(b.Fragment,{children:w.map(_=>{const D=ti(_),$=a&&!d?!1:p===w||h.includes(D),N=()=>{if(v.current.has(D))return;if(v.current.add(D),y.has(D))y.set(D,!0);else return;let x=!0;y.forEach(L=>{L||(x=!1)}),x&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(SP,{isPresent:$,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:$?void 0:N,anchorX:l,anchorY:c,children:_},D)})})},Bg=k.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 CP(){if(ap)return;const e={};for(const t in ip)e[t]={isEnabled:n=>ip[t].some(o=>!!n[o])};gg(e),ap=!0}function zg(){return CP(),cT()}function TP(e){const t=zg();for(const n in e)t[n]={...t[n],...e[n]};gg(t)}const PP=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 Ni(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PP.has(e)}let Wg=e=>!Ni(e);function EP(e){typeof e=="function"&&(Wg=t=>t.startsWith("on")?!Ni(t):e(t))}try{EP(require("@emotion/is-prop-valid").default)}catch{}function MP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Wg(r)||n===!0&&Ni(r)||!t&&!Ni(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const da=k.createContext({});function OP(e,t){if(ua(e)){const{initial:n,animate:o}=e;return{initial:n===!1||gs(n)?n:void 0,animate:gs(o)?o:void 0}}return e.inherit!==!1?t:{}}function kP(e){const{initial:t,animate:n}=OP(e,k.useContext(da));return k.useMemo(()=>({initial:t,animate:n}),[lp(t),lp(n)])}function lp(e){return Array.isArray(e)?e.join(" "):e}const cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ug(e,t,n){for(const o in t)!It(t[o])&&!Cg(o,n)&&(e[o]=t[o])}function DP({transformTemplate:e},t){return k.useMemo(()=>{const n=cu();return iu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function RP(e,t){const n=e.style||{},o={};return Ug(o,n,e),Object.assign(o,DP(e,t)),o}function IP(e,t){const n={},o=RP(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 Hg=()=>({...cu(),attrs:{}});function AP(e,t,n,o){const r=k.useMemo(()=>{const i=Hg();return Tg(i,t,Eg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ug(i,e.style,e),r.style={...i,...r.style}}return r}const NP=["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 uu(e){return typeof e!="string"||e.includes("-")?!1:!!(NP.indexOf(e)>-1||/[A-Z]/u.test(e))}function _P(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??uu(e)?AP:IP)(t,o,r,e),u=MP(t,typeof e=="string",i),d=e!==k.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=k.useMemo(()=>It(f)?f.get():f,[f]);return k.createElement(e,{...d,children:p})}function jP({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:LP(n,o,r,e),renderState:t()}}function LP(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=vi(i[p]);let{initial:a,animate:l}=e;const c=ua(e),u=mg(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"&&!ca(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=Jc(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 Yg=e=>(t,n)=>{const o=k.useContext(da),r=k.useContext(la),i=()=>jP(e,t,o,r);return n?i():Nc(i)},$P=Yg({scrapeMotionValuesFromProps:au,createRenderState:cu}),VP=Yg({scrapeMotionValuesFromProps:Mg,createRenderState:Hg}),FP=Symbol.for("motionComponentSymbol");function BP(e,t,n){const o=k.useRef(n);k.useInsertionEffect(()=>{o.current=n});const r=k.useRef(null);return k.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=o.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):a(i);else a&&(a.current=i)},[t])}const qg=k.createContext({});function qr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zP(e,t,n,o,r,i){var S,w;const{visualElement:a}=k.useContext(da),l=k.useContext(Bg),c=k.useContext(la),u=k.useContext(lu),d=u.reducedMotion,f=u.skipAnimations,p=k.useRef(null),h=k.useRef(!1);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const m=p.current,g=k.useContext(qg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&WP(p.current,n,r,g);const y=k.useRef(!1);k.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[tg],C=k.useRef(!!v&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,v))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,v)));return bm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),k.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 WP(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:Gg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&qr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function Gg(e){if(e)return e.options.allowProjection!==!1?e.projection:Gg(e.parent)}function il(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&TP(o);const i=n?n==="svg":uu(e),a=i?VP:$P;function l(u,d){let f;const p={...k.useContext(lu),...u,layoutId:UP(u)},{isStatic:h}=p,m=kP(u),g=a(u,h);if(!h&&ym){HP(p,o);const y=YP(p);f=y.MeasureLayout,m.visualElement=zP(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(da.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,_P(e,u,BP(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=k.forwardRef(l);return c[FP]=e,c}function UP({layoutId:e}){const t=k.useContext(Ac).id;return t&&e!==void 0?t+"-"+e:e}function HP(e,t){const n=k.useContext(Bg).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?xr(!1,o,"lazy-strict-mode"):jn(!1,o,"lazy-strict-mode")}}function YP(e){const t=zg(),{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 qP(e,t){if(typeof Proxy>"u")return il;const n=new Map,o=(i,a)=>il(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&Vc(!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,il(a,void 0,e,t)),n.get(a))})}const GP=(e,t)=>t.isSVG??uu(e)?new ET(t):new xT(t,{allowProjection:e!==k.Fragment});class KP extends so{constructor(t){super(t),t.animationState||(t.animationState=RT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ca(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 ZP=0;class XP extends so{constructor(){super(...arguments),this.id=ZP++}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 QP={animation:{Feature:KP},exit:{Feature:XP}};function Is(e){return{point:{x:e.pageX,y:e.pageY}}}const JP=e=>t=>ou(t)&&e(t,Is(t));function rs(e,t,n,o){return ys(e,t,JP(n),o)}const Kg=({current:e})=>e?e.ownerDocument.defaultView:null,cp=(e,t)=>Math.abs(e-t);function eE(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 Zg{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=ll(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=eE(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=Ot;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=al(m,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ll(h.type==="pointercancel"?this.lastMoveEventInfo:al(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!ou(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Is(t),u=al(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Ot;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,ll(u,this.history)),this.removeListeners=ks(rs(this.contextWindow,"pointermove",this.handlePointerMove),rs(this.contextWindow,"pointerup",this.handlePointerUp),rs(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),et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Jn(this.updatePoint)}}function al(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 ll({point:e},t){return{point:e,delta:dp(e,Xg(t)),offset:dp(e,tE(t)),velocity:nE(t,.1)}}function tE(e){return e[0]}function Xg(e){return e[e.length-1]}function nE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Xg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>xn(t)));)n--;if(!o)return{x:0,y:0};const i=Qt(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 oE(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?lt(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?lt(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 rE(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 sE(e,t){return{x:pp(e.x,t.x),y:pp(e.y,t.y)}}function iE(e,t){let n=.5;const o=$t(e),r=$t(t);return r>o?n=ps(t.min,t.max-o,e.min):o>r&&(n=ps(e.min,e.max-r,t.min)),Tn(0,1,n)}function aE(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 oc=.35;function lE(e=oc){return e===!1?e=0:e===!0&&(e=oc),{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 cE=new WeakMap;class uE{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=Ct(),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(Is(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=XC(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Kt(v=>{let C=this.getAxisMotionValue(v).get()||0;if(Sn.test(C)){const{projection:S}=this.visualElement;if(S&&S.layout){const w=S.layout.layoutBox[v];w&&(C=$t(w)*(parseFloat(C)/100))}}this.originPoint[v]=C}),g&&et.postRender(()=>g(f,p)),Kl(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=dE(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),y&&y(f,p)},c=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Kt(f=>{var p;return this.getAnimationState(f)==="paused"&&((p=this.getAxisMotionValue(f).animation)==null?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Zg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Kg(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ni(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=oE(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&&qr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=rE(o.layoutBox,t):this.constraints=!1,this.elastic=lE(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Kt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aE(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qr(t))return!1;const o=t.current;jn(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=hT(o,r.root,this.visualElement.getTransformPagePoint());let a=sE(r.layout.layoutBox,i);if(n){const l=n(dT(a));this.hasMutatedConstraints=!!l,l&&(a=bg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Kt(d=>{if(!ni(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 Kl(this.visualElement,t),o.start(Qc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Kt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Kt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Kt(n=>{const{drag:o}=this.getProps();if(!ni(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]-lt(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!qr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Kt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=iE({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Kt(a=>{if(!ni(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(lt(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;cE.set(this.visualElement,this);const t=this.visualElement.current,n=rs(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&fg(f);u&&d&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();qr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),et.read(o);const a=ys(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Kt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=oc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ni(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fE extends so{constructor(t){super(t),this.removeGroupControls=Jt,this.removeListeners=Jt,this.controls=new uE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Jt}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&&et.postRender(()=>e(t,n))};class pE extends so{constructor(){super(...arguments),this.removePointerDownListener=Jt}onPointerDown(t){this.session=new Zg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:gp(t),onStart:gp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&et.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=rs(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 cl=!1;class hE extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),cl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xi.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}),cl=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||et.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;cl=!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 Qg(e){const[t,n]=Fg(),o=k.useContext(Ac);return b.jsx(hE,{...e,layoutGroup:o,switchLayoutGroup:k.useContext(qg),isPresent:t,safeToRemove:n})}const mE={pan:{Feature:pE},drag:{Feature:fE,ProjectionNode:Vg,MeasureLayout:Qg}};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&&et.postRender(()=>i(t,Is(t)))}class gE extends so{mount(){const{current:t}=this.node;t&&(this.unmount=QC(t,(n,o)=>(yp(this.node,o,"Start"),r=>yp(this.node,r,"End"))))}unmount(){}}class yE extends so{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=ks(ys(this.node.current,"focus",()=>this.onFocus()),ys(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&&et.postRender(()=>i(t,Is(t)))}class bE extends so{mount(){const{current:t}=this.node;t&&(this.unmount=tT(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 rc=new WeakMap,ul=new WeakMap,vE=e=>{const t=rc.get(e.target);t&&t(e)},xE=e=>{e.forEach(vE)};function SE({root:e,...t}){const n=e||document;ul.has(n)||ul.set(n,{});const o=ul.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(xE,{root:e,...t})),o[r]}function wE(e,t,n){const o=SE(t);return rc.set(e,n),o.observe(e),()=>{rc.delete(e),o.unobserve(e)}}const CE={some:0,all:1};class TE extends so{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:CE[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 wE(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(PE(t,n))&&this.startObserver()}unmount(){}}function PE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EE={inView:{Feature:TE},tap:{Feature:bE},focus:{Feature:yE},hover:{Feature:gE}},ME={layout:{ProjectionNode:Vg,MeasureLayout:Qg}},OE={...QP,...EE,...mE,...ME},qo=qP(OE,GP),Eo=15.5,dl=18,kE=Eo,As=({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})]});As.displayName="FacialIcon";const Ns=({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})});Ns.displayName="LPRIcon";const _s="Facial",js="LPR",DE=[_s,js];function RE(e,t){return e===_s?b.jsx(As,{fill:t,size:16}):e===js?b.jsx(Ns,{fill:t,size:16}):null}function IE(e,t=18,n){return e===_s?b.jsx(As,{fill:n,size:t}):e===js?b.jsx(Ns,{fill:n,size:t}):null}function AE(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&DE.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:RE(o,t)}))}const NE="_spotWrapper_p7ng0_1",_E="_mapSpot_p7ng0_8",jE="_selected_p7ng0_24",LE="_rotationLines_p7ng0_36",$E="_rotationLine_p7ng0_36",VE="_rotationLineInner_p7ng0_56",FE="_rotationConeSvg_p7ng0_63",BE="_rotationLineSvg_p7ng0_77",zE="_cameraButtonAtTip_p7ng0_89",WE="_cameraButtonSelected_p7ng0_107",UE="_cameraButtonAtTipIcon_p7ng0_129",HE="_count_p7ng0_137",YE="_cameraTypesContainer_p7ng0_157",qE="_cameraTypeItem_p7ng0_164",GE="_cameraTypeCount_p7ng0_171",KE="_cameraTypeIcon_p7ng0_182",Rt={spotWrapper:NE,mapSpot:_E,selected:jE,rotationLines:LE,rotationLine:$E,rotationLineInner:VE,rotationConeSvg:FE,rotationLineSvg:BE,cameraButtonAtTip:zE,cameraButtonSelected:WE,cameraButtonAtTipIcon:UE,count:HE,cameraTypesContainer:YE,cameraTypeItem:qE,cameraTypeCount:GE,cameraTypeIcon:KE},Jg=({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})]});Jg.displayName="ArrowIcon";const ey=({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})`})]})};ey.displayName="ConeIcon";const ZE=qo(G.Box),du=({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=G.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",y=k.useMemo(()=>AE(n,g),[n,g]),v=y&&y.length>0,C=n&&n.length===1,S=!r&&v&&(C||o>=Eo),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",_=m?"#CEE643":"#44808C",D=8,$=n??[],N=r&&$.length>0;return b.jsxs("div",{className:Rt.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(sp,{children:N&&b.jsx(qo.div,{className:Rt.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:$.map((x,L)=>{const I=i===x.id||l===x.id,A=m?"#101111":"#FDFCFC";return b.jsx("div",{className:Rt.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${x.orientation??0}deg)`},children:b.jsxs(qo.div,{className:Rt.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ey,{fill:_,className:Rt.rotationConeSvg}),b.jsx(Jg,{fill:M,className:Rt.rotationLineSvg}),b.jsx("button",{type:"button",className:`${Rt.cameraButtonAtTip} ${I?Rt.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(x)},"aria-label":`Câmera ${x.algorithm??"câmera"}`,children:b.jsx("span",{className:Rt.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(x.orientation??0)}deg)`},children:IE(x.algorithm,18,A)})})]})},x.id??L)})})}),b.jsx(ZE,{className:`${Rt.mapSpot} ${r?Rt.selected:""} ${u||""}`,onClick:c?void 0:d,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${D}px solid transparent`,borderRight:`${D}px solid transparent`,borderTop:`${D}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T: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?-D:0,"--arrow-opacity":S?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(sp,{mode:"wait",children:S?b.jsx(qo.div,{className:Rt.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((x,L)=>b.jsxs(qo.div,{className:Rt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(G.Typography,{className:Rt.cameraTypeCount,children:x.count}),x.icon&&b.jsx(G.Box,{className:Rt.cameraTypeIcon,children:x.icon})]},L))},"expanded"):b.jsx(qo.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(G.Typography,{className:Rt.count,children:e})},"collapsed")})})]})};du.displayName="MapSpot";const XE="_cameraCard_1kz81_2",QE="_clickable_1kz81_12",JE="_topContainer_1kz81_66",eM="_mediaImage_1kz81_80",tM="_mediaPlaceholder_1kz81_87",nM="_offlinePlaceholder_1kz81_93",oM="_offlinePlaceholderIcon_1kz81_104",rM="_offlinePlaceholderText_1kz81_110",sM="_menuButton_1kz81_118",iM="_menuButtonIcon_1kz81_137",aM="_closeButton_1kz81_143",lM="_closeButtonIcon_1kz81_162",cM="_bottomContainer_1kz81_168",uM="_infoRow_1kz81_181",dM="_iconWrapper_1kz81_189",fM="_cameraIcon_1kz81_196",pM="_cameraTypeImage_1kz81_203",hM="_headerText_1kz81_211",mM="_addressText_1kz81_228",gM="_tagsContainer_1kz81_245",yM="_tag_1kz81_245",bM="_tagOverflow_1kz81_261",vM="_recordingButtonContainer_1kz81_283",xM="_menuButtonInline_1kz81_292",SM="_menuButtonInlineIcon_1kz81_311",wM="_recordingButton_1kz81_283",CM="_recordingButtonIcon_1kz81_342",TM="_recordingButtonText_1kz81_345",PM="_cameraCardMenuPaper_1kz81_376",EM="_cameraCardMenuList_1kz81_400",MM="_cameraCardMenuItem_1kz81_408",OM="_menuItemDisabled_1kz81_447",kM="_cameraCardMenuItemText_1kz81_453",je={cameraCard:XE,clickable:QE,topContainer:JE,mediaImage:eM,mediaPlaceholder:tM,offlinePlaceholder:nM,offlinePlaceholderIcon:oM,offlinePlaceholderText:rM,menuButton:sM,menuButtonIcon:iM,closeButton:aM,closeButtonIcon:lM,bottomContainer:cM,infoRow:uM,iconWrapper:dM,cameraIcon:fM,cameraTypeImage:pM,headerText:hM,addressText:mM,tagsContainer:gM,tag:yM,tagOverflow:bM,recordingButtonContainer:vM,menuButtonInline:xM,menuButtonInlineIcon:SM,recordingButton:wM,recordingButtonIcon:CM,recordingButtonText:TM,cameraCardMenuPaper:PM,cameraCardMenuList:EM,cameraCardMenuItem:MM,menuItemDisabled:OM,cameraCardMenuItemText:kM};function DM(e,t){const n=t?"#FAF9F9":"#000000";return e===_s?b.jsx(As,{fill:n,size:20,className:je.cameraTypeImage}):e===js?b.jsx(Ns,{fill:n,size:20,className:je.cameraTypeImage}):b.jsx(Tt.VideocamOutlined,{className:je.cameraIcon,style:{color:n}})}const RM=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u,recordingButton:d,onClose:f,onClick:p,actionsDisabled:h,offline:m})=>{const y=ae.useTheme().palette.mode==="dark",v=k.useRef(null),C=k.useRef(!1),[S,w]=k.useState(!1),T=((l==null?void 0:l.length)??0)>0||c,E=((l==null?void 0:l.length)??0)>0,M=r.length>0?r[0]:null,_=r.length>1?r.length-1:0,D=r.length>1?r.join(", "):"",$=[n,t,o].filter(Boolean).join(" - ");return b.jsxs(G.Box,{className:`${je.cameraCard} ${p?je.clickable:""} ${u||""}`.trim(),"data-theme":y?"dark":"light",onClick:()=>{C.current||p==null||p()},sx:{"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[b.jsxs(G.Box,{className:je.topContainer,children:[m?b.jsxs(G.Box,{className:je.offlinePlaceholder,"aria-label":"Câmera offline",children:[b.jsx(Tt.VideocamOff,{className:je.offlinePlaceholderIcon}),b.jsx("span",{className:je.offlinePlaceholderText,children:"Imagem não disponível"})]}):i?b.jsx("img",{src:i,alt:"",className:je.mediaImage}):b.jsx(G.Box,{className:je.mediaPlaceholder,"aria-hidden":!0}),!d&&M&&b.jsx(G.Tooltip,{title:D,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:b.jsxs(G.Box,{className:je.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[b.jsx("span",{className:je.tag,children:M}),_>0&&b.jsxs("span",{className:je.tagOverflow,children:["+",_]})]})}),f&&b.jsx(G.IconButton,{onClick:N=>{N.stopPropagation(),f()},className:je.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(Tt.Close,{className:je.closeButtonIcon})}),T&&!d&&b.jsx(G.IconButton,{ref:v,onClick:N=>{N.stopPropagation(),E?w(!0):c==null||c()},className:je.menuButton,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":S,size:"small",children:b.jsx(Tt.MoreHoriz,{className:je.menuButtonIcon})})]}),E&&b.jsx(G.Popover,{open:S,anchorEl:v.current,onClose:()=>{w(!1),C.current=!0,requestAnimationFrame(()=>{C.current=!1})},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:b.jsx(G.Box,{className:je.cameraCardMenuPaper,"data-theme":y?"dark":"light",children:b.jsx(G.Box,{className:je.cameraCardMenuList,role:"menu",children:l.map(N=>b.jsx("button",{type:"button",className:`${je.cameraCardMenuItem} ${h?je.menuItemDisabled:""}`,role:"menuitem",disabled:h,onClick:()=>{var x;h||((x=N.onClick)==null||x.call(N),w(!1))},children:b.jsx("span",{className:je.cameraCardMenuItemText,children:N.label})},N.label))})})}),b.jsxs(G.Box,{className:`${je.bottomContainer} bottom-container`,children:[b.jsxs(G.Box,{className:je.infoRow,children:[b.jsx(G.Box,{className:je.iconWrapper,children:DM(a,y)}),b.jsx(G.Tooltip,{title:e,placement:"top",enterDelay:300,children:b.jsx("span",{className:je.headerText,children:e})})]}),$&&b.jsx(G.Tooltip,{title:$,placement:"top",enterDelay:300,children:b.jsx("span",{className:je.addressText,children:$})}),d&&b.jsxs(G.Box,{className:je.recordingButtonContainer,children:[T&&b.jsx(G.IconButton,{ref:v,onClick:()=>{E?w(!0):c==null||c()},className:je.menuButtonInline,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":S,size:"small",children:b.jsx(Tt.MoreHoriz,{className:je.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:je.recordingButton,onClick:N=>{N.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(Tt.VideocamOutlined,{className:je.recordingButtonIcon}),b.jsx("span",{className:je.recordingButtonText,children:"Ver gravação"})]})]})]})]})},IM=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},AM=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},NM="_container_1whpg_2",_M="_zoomButton_1whpg_10",jM="_stateLayer_1whpg_43",LM="_icon_1whpg_59",gn={container:NM,zoomButton:_M,stateLayer:jM,icon:LM},$M=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=G.useTheme().palette.mode==="dark",u=IM(e,o,i),d=AM(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(G.Box,{className:`${gn.container} ${t||""}`,sx:n,children:[b.jsx(G.IconButton,{className:gn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(G.Box,{className:gn.stateLayer,children:b.jsx(Tt.Add,{className:gn.icon,sx:p})})}),b.jsx(G.IconButton,{className:gn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(G.Box,{className:gn.stateLayer,children:b.jsx(Tt.Remove,{className:gn.icon,sx:p})})}),b.jsx(G.IconButton,{className:gn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(G.Box,{className:gn.stateLayer,children:b.jsx(Tt.ZoomOutMap,{className:gn.icon,sx:p})})})]})};var VM=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 FM=no(VM),BM="1.7.1";function dr(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 sc(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 Rn={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},zM="https://maps.googleapis.com/maps/api/js";class _i{static load(t,n){return sc(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=Rn.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=zM+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=Rn.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=Rn.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=Rn.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=Rn.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)}}_i.loadingStatus=Rn.NOT_LOADED;_i.listeners=[];const WM="GMP_visgl_rgmlibrary_v1_default",UM=[`gmp_visgl_reactgooglemaps_v${BM}`],Ls=k.createContext(null);function HM(){const[e,t]=k.useState({});return{mapInstances:e,addMapInstance:(i,a="default")=>{t(l=>Object.assign(Object.assign({},l),{[a]:i}))},removeMapInstance:(i="default")=>{t(a=>{var l=i;a[l];var c=dr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function YM(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=dr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=k.useState(_i.loadingStatus),[u,d]=k.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=k.useMemo(()=>i==null?void 0:i.join(","),[i]),p=k.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=k.useCallback(m=>sc(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 k.useEffect(()=>{sc(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=WM:m.solutionChannel===""&&delete m.solutionChannel,yield _i.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 qM(e){return k.useMemo(()=>e.disableUsageAttribution?null:UM,[e.disableUsageAttribution])}const GM=e=>{const{children:t}=e,n=dr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=HM(),{status:l,loadedLibraries:c,importLibrary:u}=YM(n),d=qM(n),f=k.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 k.createElement(Ls.Provider,{value:f},t)};function KM(e,t){for(const n of JM){const o=t[n],r=ty[n];k.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(XM.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(QM.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 ty={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"},XM=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],QM=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],JM=Object.keys(ty);function eO(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e}),t.current}function tO(e,t){const n=eO(e);return k.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function nO(e,t,n){k.useEffect(e,[tO(t,n)])}function oO(e,t){nO(e,t,FM)}const rO=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 sO(e,t){const n={},o=Object.keys(t);for(const r of o)rO.has(r)&&(n[r]=t[r]);oO(()=>{e&&e.setOptions(n)},[n])}function ny(){var e;return((e=k.useContext(Ls))===null||e===void 0?void 0:e.status)||Rn.NOT_LOADED}function iO(e,t){const{viewport:n,viewState:o}=t,r=!!n;return k.useLayoutEffect(()=>{if(!e||!o)return;const{latitude:i,longitude:a,bearing:l,pitch:c,zoom:u}=o;e.moveCamera({center:{lat:i,lng:a},heading:l,tilt:c,zoom:u+1})},[e,o]),r}function aO(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function oy(e){return aO(e)?e:e.toJSON()}function lO(e,t,n){const o=n.center?oy(n.center):null;let r=null,i=null;o&&Number.isFinite(o.lat)&&Number.isFinite(o.lng)&&(r=o.lat,i=o.lng);const a=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;k.useLayoutEffect(()=>{if(!e)return;const 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 cO=()=>{const e={position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"};return k.createElement("div",{style:e},k.createElement("h2",null,"Error: AuthFailure"),k.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",k.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function uO(){const[e,t]=k.useState(null),n=k.useCallback(o=>t(o),[t]);return[e,n]}function ry(){return ny()===Rn.LOADED}function dO(){const[,e]=k.useReducer(t=>t+1,0);return e}function fO(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 pO(e){const t=dO(),n=k.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return k.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{fO(e,n),t()});return()=>o.remove()},[e,t]),n}class Si{static has(t){return this.entries[t]&&this.entries[t].length>0}static pop(t){return this.entries[t]&&this.entries[t].pop()||null}static push(t,n){this.entries[t]||(this.entries[t]=[]),this.entries[t].push(n)}}Si.entries={};function hO(e,t){const n=ry(),[o,r]=k.useState(null),[i,a]=uO(),l=pO(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=dr(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=k.useRef(void 0);return k.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:_}=e,D=`${_||"default"}:${g||"default"}:${y||"LIGHT"}`;let $,N;if(m&&Si.has(D)?(N=Si.pop(D),$=N.getDiv(),i.appendChild($),N.setOptions(v),setTimeout(()=>N.setCenter(N.getCenter()),0)):($=document.createElement("div"),$.style.height="100%",i.appendChild($),N=new google.maps.Map($,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(N),E(N,c),u){const{padding:x}=u,L=dr(u,["padding"]);N.fitBounds(L,x)}else(!C||!S)&&N.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:x,cameraState:L}=T.current;x!==_&&N.setOptions(L)}return()=>{T.current={mapId:_,cameraState:l.current},$.remove(),m?Si.push(D,N):google.maps.event.clearInstanceListeners(N),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const sy=k.createContext(null),iy=e=>{const{children:t,id:n,className:o,style:r}=e,i=k.useContext(Ls),a=ny();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=hO(e,i);lO(l,u,e),KM(l,e),sO(l,e);const d=iO(l,e),f=!!e.controlled;k.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?oy(e.center):null;let h=null,m=null;p&&Number.isFinite(p.lat)&&Number.isFinite(p.lng)&&(h=p.lat,m=p.lng);const g=k.useMemo(()=>{var 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]);k.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=k.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),v=k.useMemo(()=>({map:l}),[l]);return a===Rn.AUTH_FAILURE?k.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},k.createElement(cO,null)):k.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?k.createElement(sy.Provider,{value:v},t):null)};iy.deckGLViewProps=!0;const vp=new Set;function mO(...e){const t=JSON.stringify(e);vp.has(t)||(vp.add(t),console.error(...e))}const fa=(e=null)=>{const t=k.useContext(Ls),{map:n}=k.useContext(sy)||{};if(t===null)return mO("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 gO(e){const t=ry(),n=k.useContext(Ls);return k.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function oi(e,t,n){k.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function ri(e,t,n){k.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function xp(e,t,n){k.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class yO{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 gO=new mO;function yO(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 bO=_.createContext(null),vO={BOTTOM:["50%","100%"]},cy=_.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=SO(e),c=_.useMemo(()=>a?{marker:a}:null,[a]);return _.useImperativeHandle(t,()=>a,[a]),l?_.createElement(bO.Provider,{value:c},er.createPortal(_.createElement(xO,{anchorPoint:i,styles:o,className:r},n),l)):null});cy.displayName="AdvancedMarker";function ac(e){return e.nodeType===Node.ELEMENT_NODE}const xO=({children:e,styles:t,className:n})=>_.createElement("div",{className:n,style:t},e);function SO(e){const[t,n]=_.useState(null),[o,r]=_.useState(null),i=fa(),a=hO("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=_.Children.count(l);return _.useEffect(()=>{if(!i||!a)return;const k=new a.AdvancedMarkerElement;k.map=i,n(k);let $=null;return A>0&&($=document.createElement("div"),k.content=$,r($)),()=>{k.map=null,$==null||$.remove(),n(null),r(null)}},[i,a,A]),_.useEffect(()=>{!(t!=null&&t.content)||!ac(t.content)||A>0||(t.content.className=u??"")},[t,u,A]),wO(t,T,E,M,A>0),ni(t,"position",C),ni(t,"title",x??""),ni(t,"zIndex",S),ni(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)&&ac(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),ti(t,"click",c),ti(t,"drag",p),ti(t,"dragstart",h),ti(t,"dragend",m),wp(t==null?void 0:t.element,"mouseenter",d),wp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function wO(e,t,n,o,r){_.useEffect(()=>{if(!e||!r)return;const i=yO(3,62),a=e.content;if(!(!a||!ac(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??vO.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",gO.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function CO(e){const[t,n]=_.useState(null),o=fa(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=hr(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 TO=_.forwardRef((e,t)=>{const n=CO(e);return _.useImperativeHandle(t,()=>n,[n]),_.createElement(_.Fragment,null)});TO.displayName="Marker";const uy=_.createContext(void 0),pu=()=>{const e=_.useContext(uy);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},hu=({children:e})=>{const t=fa(),[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(uy.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:a,fitBounds:l},children:e}):null};hu.displayName="MapContent";const PO=180,dy=()=>{const{map:e}=pu(),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}},PO)});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"}})};dy.displayName="MapResizeHandler";const EO="_googleMap_1gh3l_1",MO="_container_1gh3l_14",OO="_errorContainer_1gh3l_29",oi={googleMap:EO,container:MO,errorContainer:OO},kO={lat:-26.3044,lng:-48.8487},DO=13,RO={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},IO=({options:e,onLoad:t,children:n})=>{const o=fa();return _.useEffect(()=>{o&&(o.setOptions(RO),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},fy=({center:e=kO,zoom:t=DO,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:`${oi.container} ${oi.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:oi.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(YM,{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:`${oi.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(ly,{...f,style:{width:"100%",height:"100%"},children:b.jsx(IO,{options:l,onLoad:c,children:b.jsxs(hu,{children:[b.jsx(dy,{}),o]})})},p)})})};fy.displayName="GoogleMap";const Cp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],fl=1,Nr=8;class mu{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!==fl)throw new Error(`Got v${r} data when expected v${fl}.`);const i=Cp[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 mu(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=Cp.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,Nr,t),this.coords=new this.ArrayType(this.data,Nr+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Nr+a+l+c),this.ids=new this.IndexArrayType(this.data,Nr,t),this.coords=new this.ArrayType(this.data,Nr+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(fl<<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 lc(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++)Tp(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];Tp(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 lc(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;py(e,t,a,o,r,i),lc(e,t,n,o,a-1,1-i),lc(e,t,n,a+1,r,1-i)}function py(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));py(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(_r(e,t,o,n),t[2*r+i]>a&&_r(e,t,o,r);l<c;){for(_r(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?_r(e,t,o,c):(c++,_r(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function _r(e,t,n,o){pl(e,n,o),pl(t,2*n,2*o),pl(t,2*n+1,2*o+1)}function pl(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function Tp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const AO={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Pp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),mo=2,Yn=3,hl=4,Un=5,hy=6;class NO{constructor(t){this.options=Object.assign(Object.create(AO),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=Pp(ri(d)),h=Pp(si(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(ri(o),si(a),ri(i),si(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+Un]>1?Ep(u,p,this.clusterProps):this.points[u[p+Yn]])}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+hl]===t&&f.push(a[h+Un]>1?Ep(a,h,this.clusterProps):this.points[a[h+Yn]])}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 mu(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+Un]>1;let d,f,p;if(u)d=my(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Yn]];d=g.properties;const[y,v]=g.geometry.coordinates;f=ri(y),p=si(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+Yn]:m=this.points[n[c+Yn]].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+mo]<=n)continue;c[f+mo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+Un];let y=g;for(const v of m){const C=v*d;c[C+mo]>n&&(y+=c[C+Un])}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+mo]<=n)continue;c[M+mo]=n;const A=c[M+Un];v+=c[M]*A,C+=c[M+1]*A,c[M+hl]=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+hl]=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+mo]<=n)){c[C+mo]=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+Un]>1){const a=this.clusterProps[t[n+hy]];return o?Object.assign({},a):a}const r=this.points[t[n+Yn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Ep(e,t,n){return{type:"Feature",id:e[t+Yn],properties:my(e,t,n),geometry:{type:"Point",coordinates:[_O(e[t]),jO(e[t+1])]}}}function my(e,t,n){const o=e[t+Un],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+hy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Yn],point_count:o,point_count_abbreviated:r})}function ri(e){return e/360+.5}function si(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 _O(e){return(e-.5)*360}function jO(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const LO={radius:30,maxZoom:13,minZoom:0,minPoints:2};function Mp(e){return e.isCluster?`c_${e.lat.toFixed(6)}_${e.lng.toFixed(6)}_${e.pointCount}_${e.count}`:`s_${e.id}`}function $O(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 VO(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||!$O(e.cameras,t.cameras))}function FO(e,t){if(e.length===0)return t;const n=new Map;for(const i of e)n.set(Mp(i),i);let o=!1;const r=t.map(i=>{const a=Mp(i),l=n.get(a);return l&&VO(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function BO(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function zO(e,t,n,o={}){const r=_.useRef(null),[i,a]=_.useState([]),l=_.useRef(""),c={...LO,...o};return _.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=BO(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 NO({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(x=>x.properties.cameras||[]),C=y.reduce((x,S)=>x+S.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=>FO(f,d))},[e,t,n]),i}const Op=_.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(cy,{position:{lat:t.lat,lng:t.lng},onClick:f,children:b.jsx(fu,{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})})}),gy=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=kE,selectedZoomLevel:r=dl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f})=>{const{isLoaded:p,currentZoom:h,bounds:m,zoomToPosition:g}=pu(),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]),x=zO(v,h,m),S=_.useCallback(E=>{if(E.isCluster)g({lat:E.lat,lng:E.lng},Oo);else if(f)g({lat:E.lat,lng:E.lng},h<Oo?Oo:r??o);else{const M=a?a.id===E.id:i===E.id;h<Oo?(g({lat:E.lat,lng:E.lng},Oo),t==null||t(E)):(h<(r??dl)&&!M&&g({lat:E.lat,lng:E.lng},r??dl),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:[x.map((E,M)=>b.jsx(Op,{spot:E,currentZoom:h,isSelected:!1,selectedCameraId:l,isHighlighted:T(E),animateOnClick:d,disableClick:f,onSpotClick:S,onCameraClick:n},E.id??M)),C&&b.jsx(Op,{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:S,onCameraClick:n},`pinned-${C.id}`)]}):null};gy.displayName="MapMarkers";const WO="_searchBar_15mix_1",UO="_startIconContainer_15mix_106",HO="_endIconContainer_15mix_117",YO="_endIconContainerClickable_15mix_153",qO="_defaultIcon_15mix_157",Kr={searchBar:WO,startIconContainer:UO,endIconContainer:HO,endIconContainerClickable:YO,defaultIcon:qO},GO=e=>()=>{e&&e()},KO=e=>t=>{e&&e(t)},ZO=()=>b.jsx(kt.Search,{className:Kr.defaultIcon}),XO=e=>e||ZO(),yy=_.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=q.useTheme().palette.mode==="dark",f=XO(t),p=GO(n),h=KO(i);return b.jsx(q.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Kr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(q.InputAdornment,{position:"start",className:Kr.startIconContainer,children:e}):null,endAdornment:b.jsx(q.InputAdornment,{position:"end",className:`${Kr.endIconContainer} ${n?Kr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});yy.displayName="SearchBar";const QO=gt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),JO=gt([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"),ek="_container_1mb8b_1",tk="_iconWrapper_1mb8b_11",nk="_icon_1mb8b_11",ok="_title_1mb8b_21",rk="_subtitle_1mb8b_30",sk="_description_1mb8b_34",ik="_button_1mb8b_38",go={container:ek,iconWrapper:tk,icon:nk,title:ok,subtitle:rk,description:sk,button:ik},by=({onGoHome:e,buttonText:t="Voltar para o início",title:n="Página não encontrada",description:o="Desculpe, a página que você está procurando não existe ou foi movida para outro endereço.",errorCode:r="404",className:i})=>b.jsx(q.Container,{maxWidth:"sm",children:b.jsxs(q.Box,{className:`${go.container} ${i||""}`,children:[b.jsx(q.Box,{className:go.iconWrapper,children:b.jsx(JO,{className:go.icon,color:"primary"})}),b.jsx(q.Typography,{variant:"h1",className:go.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(q.Typography,{variant:"h4",component:"h2",className:go.subtitle,color:"text.primary",children:n}),b.jsx(q.Typography,{variant:"body1",className:go.description,color:"text.secondary",children:o}),e&&b.jsx(Mc,{variant:"contained",size:"large",startIcon:b.jsx(QO,{}),onClick:e,className:go.button,children:t})]})});by.displayName="NotFoundContent";const ak=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}},lk=({items:e,isExpanded:t=!0,onClick:n})=>{const o=_.useMemo(()=>ak(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($=>$===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 $;i(E.id),l(M.id),k!=null&&k.closeMenu&&(f(null),h(null)),($=M.onClick)==null||$.call(M,A),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},vy=e=>typeof e=="number"?`${e*4}px`:e,ck=({item:e,onClick:t,isActive:n})=>{const o=ae.useTheme();return b.jsx(q.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:vy(o.shape.borderRadius),px:2,py:1.25,justifyContent:"flex-start",textAlign:"left",color:o.palette.text.primary,backgroundColor:n?o.palette.action.selected:"transparent","&:hover":{backgroundColor:o.palette.action.hover}},children:b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},xy=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ae.useTheme(),i=vy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=lk({items:e,isExpanded:t,onClick:o});return b.jsxs(q.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const y=u(g),v=f(g),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(q.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(q.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(q.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[b.jsx(q.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?ae.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(q.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(q.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(q.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(A=>{const k=d(A);return b.jsx(ck,{item:A,isActive:k,onClick:$=>h(g,A,$)},A.id)})})}):null]},g.id)}),b.jsx(q.Menu,{anchorEl:a,open:!!(a&&c.length),onClose:m,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},MenuListProps:{dense:!0,"aria-label":(l==null?void 0:l.label)??"submenu"},PaperProps:{sx:{borderRadius:i,minWidth:r.spacing(22),px:1,py:.5,boxShadow:r.shadows[3]}},children:c.map(g=>{const y=d(g);return b.jsx(q.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};xy.displayName="SidebarMenu";const uk=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},dk=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=_.useMemo(()=>uk(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)}}},fk=e=>typeof e=="number"?`${e*4}px`:e,Sy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var O,N;const d=ae.useTheme(),f=_.useRef(null),p=fk(d.shape.borderRadius),[h,m]=_.useState(!1),g=_.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:C,openMenu:x,closeMenu:S,handleItemClick:T}=dk({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((O=e[0])==null?void 0:O.label)??"",M=o??(y==null?void 0:y.icon)??((N=e[0])==null?void 0:N.icon)??null,A=l||!M,k=F=>{if(l){m(V=>!V);return}x(F)},$=(F,V)=>{T(F,V),m(!1)},j=b.jsx(q.Stack,{direction:"column",spacing:.5,children:e.map(F=>{const V=C(F);return b.jsxs(q.MenuItem,{selected:V,onClick:B=>$(F,B),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(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:F.icon}):null,b.jsx(q.Typography,{variant:"body1",sx:{fontWeight:V?600:500},children:F.label})]},F.id)})}),w=b.jsxs(q.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(q.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(q.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(q.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:j})]}),L=a?b.jsxs(q.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(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(q.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,D=L?b.jsx(q.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:L}):null,I=b.jsxs(q.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[w,D]});return b.jsxs(q.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(q.ButtonBase,{onClick: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(q.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[M?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,A?b.jsxs(q.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(q.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(q.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(q.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:I})}):null:b.jsx(q.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})]})};Sy.displayName="ModuleMenu";const gu=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,Zr=(e,t,n,o,r)=>{if(n<=1)return{panX:0,panY:0};const i=o*(1-1/n)/2,a=r*(1-1/n)/2;return{panX:Math.max(-i,Math.min(i,e)),panY:Math.max(-a,Math.min(a,t))}},pk=(e,t,n)=>({...e&&{"--player-width":typeof e=="number"?`${e}px`:e},...t&&{"--player-height":typeof t=="number"?`${t}px`:t},...n&&{"--player-aspect-ratio":n}}),An={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function wy(e){return"init"in e}function cc(e){return!!e.write}function kp(e){return"v"in e||"e"in e}function Ni(e){if("e"in e)throw e.e;if((An?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const _i=new WeakMap;function Cy(e){var t;return ji(e)&&!!((t=_i.get(e))!=null&&t[0])}function hk(e){const t=_i.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function uc(e,t){let n=_i.get(e);if(!n){n=[!0,new Set],_i.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function ji(e){return typeof(e==null?void 0:e.then)=="function"}function Ty(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function Py(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 mk=(e,t,...n)=>t.read(...n),gk=(e,t,...n)=>t.write(...n),yk=(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)},bk=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},vk=(e,t)=>{var n;const o=Nt(e),r=o[0],i=o[6],a=o[9];if((An?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=r.get(t);return l||(l={d:new Map,p:new Set,n:0},r.set(t,l),(n=i.i)==null||n.call(i,t),a==null||a(e,t)),l},xk=e=>{const t=Nt(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)},Sk=e=>{const t=Nt(e),n=t[1],o=t[2],r=t[3],i=t[11],a=t[14],l=t[17],c=[],u=new WeakSet,d=new WeakSet,f=Array.from(r);for(;f.length;){const p=f[f.length-1],h=i(e,p);if(d.has(p)){f.pop();continue}if(u.has(p)){if(o.get(p)===h.n)c.push([p,h]);else if((An?"production":void 0)!=="production"&&o.has(p))throw new Error("[Bug] invalidated atom exists");d.add(p),f.pop();continue}u.add(p);for(const m of Py(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)}},dc=new WeakSet,wk=(e,t)=>{var n,o;const r=Nt(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(kp(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let k=!1;for(const[$,j]of v.d)if(h(e,$).n!==j){k=!0;break}if(!k)return v}v.d.clear();let C=!0;function x(){i.has(t)&&(g(e,t),p(e),f(e))}function S(k){var $;if(k===t){const w=d(e,k);if(!kp(w))if(wy(k))y(e,k,k.init);else throw new Error("no atom init");return Ni(w)}const j=h(e,k);try{return Ni(j)}finally{v.d.set(k,j.n),Cy(v.v)&&Ty(t,v.v,j),i.has(t)&&(($=i.get(k))==null||$.t.add(t)),C||x()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(An?"production":void 0)!=="production"&&!cc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&cc(t)&&(E=(...k)=>{if((An?"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{(An?"production":void 0)!=="production"&&dc.delete(e);const k=u(e,t,S,M);return(An?"production":void 0)!=="production"&&dc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,k),ji(k)&&(uc(k,()=>T==null?void 0:T.abort()),k.then(x,x)),(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))}},Ck=(e,t)=>{const n=Nt(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 Py(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},Tk=(e,t,...n)=>{const o=Nt(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=>Ni(d(e,C)),v=(C,...x)=>{var S;const T=l(e,C);try{if(C===t){if(!wy(C))throw new Error("atom not writable");(An?"production":void 0)!=="production"&&dc.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}},Pk=(e,t)=>{var n;const o=Nt(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&&!Cy(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)}}},Ek=(e,t)=>{var n;const o=Nt(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),cc(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},Mk=(e,t)=>{var n,o;const r=Nt(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},Ok=(e,t,n)=>{const o=Nt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(ji(n))for(const l of r.d.keys())Ty(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,ji(a)&&hk(a))},kk=(e,t)=>{const n=Nt(e)[14];return Ni(n(e,t))},Dk=(e,t,...n)=>{const o=Nt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},Rk=(e,t,n)=>{const o=Nt(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)}},Ey=new WeakMap,Nt=e=>{const t=Ey.get(e);if((An?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function Ik(...e){const t={get(o){const r=Nt(t)[21];return r(t,o)},set(o,...r){const i=Nt(t)[22];return i(t,o,...r)},sub(o,r){const i=Nt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},mk,gk,yk,bk,vk,xk,Sk,wk,Ck,Tk,Pk,Ek,Mk,Ok,kk,Dk,Rk,void 0].map((o,r)=>e[r]||o);return Ey.set(t,Object.freeze(n)),t}const My={};let Ak=0;function yu(e,t){const n=`atom${++Ak}`,o={toString(){return(My?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=Nk,o.write=_k),o}function Nk(e){return e(this)}function _k(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function jk(){return Ik()}let jr;function Lk(){return jr||(jr=jk(),(My?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=jr),globalThis.__JOTAI_DEFAULT_STORE__!==jr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),jr}const $k={},Vk=_.createContext(void 0);function Oy(e){return _.useContext(Vk)||Lk()}const fc=e=>typeof(e==null?void 0:e.then)=="function",pc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Fk=_.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(pc(e),e)}),ml=new WeakMap,Dp=(e,t)=>{let n=ml.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();fc(u)?(ml.set(u,n),i=u,u.then(a(u),l(u)),uc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),uc(e,c)}),ml.set(e,n)),n};function ky(e,t){const{delay:n,unstable_promiseStatus:o=!_.use}={},r=Oy(),[[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);fc(f)&&pc(Dp(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),_.useDebugValue(u),fc(u)){const d=Dp(u,()=>r.get(e));return o&&pc(d),Fk(d)}return u}function Bk(e,t){const n=Oy();return _.useCallback((...r)=>{if(($k?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Li(e,t){return[ky(e),Bk(e)]}const Dy=yu(0),Ry=yu(!0),zk=yu(null),bu=_.createContext(null),Iy=({children:e})=>{const t=_.useRef(null),[n,o]=Li(Dy),[r,i]=Li(Ry),[a,l]=_.useState(!1),[c,u]=_.useState(0),[d,f]=_.useState(!1);_.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=_.useCallback(x=>{o(x)},[o]),h=_.useCallback(x=>{i(x)},[i]),m=_.useCallback(x=>{const S=t.current;!S||!d||(S.currentTime=x,o(x),i(!1))},[d,o,i]),g=_.useCallback(async()=>{const x=t.current;if(x)try{await x.play(),l(!0)}catch(S){console.error("Failed to play video:",S)}},[]),y=_.useCallback(()=>{const x=t.current;x&&(x.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(bu.Provider,{value:C,children:e})},vu=()=>_.useContext(bu),Wk=()=>{const e=_.useContext(bu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},Uk=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=_.useRef(null),l=vu(),c=_.useRef(null),u=_.useCallback(K=>{c.current=K,l!=null&&l.videoRef&&(l.videoRef.current=K)},[l]),d=_.useMemo(()=>{if(!t||!t.length)return null;if(n){const K=t.find(te=>te.value===n);if(K)return K}return t[0]},[t,n]),[f,p]=_.useState(d),[h,m]=_.useState(!1),[g,y]=_.useState(!0),[v,C]=_.useState(!1),[x,S]=_.useState(0),[T,E]=_.useState(0),[M,A]=_.useState(1),[k,$]=_.useState(1),[j,w]=_.useState(0),[L,D]=_.useState(0),I=_.useRef(!1),O=_.useRef({x:0,y:0}),N=_.useRef({x:0,y:0}),F=_.useRef(!1),[V,B]=_.useState(!1),[R,Y]=_.useState(!0),G=(f==null?void 0:f.stream)??e??null,Z=(f==null?void 0:f.src)??null,X=!!!G||i;_.useEffect(()=>{p(d)},[d]);const Q=_.useCallback(()=>{const K=c.current;if(!K)return;if(!K.seekable||K.seekable.length===0){y(!0),C(!1),l&&l.setIsLive(!0);return}const te=gu(K),z=Math.max(0,te-K.currentTime);E(te),S(K.currentTime),C(te>0);const H=z<=(r??2);y(H),l&&(l.setCurrentTime(K.currentTime),l.setIsLive(H))},[r,l]);return _.useEffect(()=>{const K=c.current;if(!K)return;const te=()=>m(!0),z=()=>m(!1),H=()=>Y(!0),W=()=>Y(!0),ee=()=>Y(!1),J=()=>Y(!1);return K.addEventListener("play",te),K.addEventListener("pause",z),K.addEventListener("waiting",H),K.addEventListener("loadstart",W),K.addEventListener("canplay",ee),K.addEventListener("playing",J),K.addEventListener("timeupdate",Q),K.addEventListener("durationchange",Q),K.addEventListener("loadedmetadata",Q),K.addEventListener("progress",Q),()=>{K.removeEventListener("play",te),K.removeEventListener("pause",z),K.removeEventListener("waiting",H),K.removeEventListener("loadstart",W),K.removeEventListener("canplay",ee),K.removeEventListener("playing",J),K.removeEventListener("timeupdate",Q),K.removeEventListener("durationchange",Q),K.removeEventListener("loadedmetadata",Q),K.removeEventListener("progress",Q)}},[Q]),_.useEffect(()=>{const K=c.current;K&&(Y(!0),G?(K.srcObject!==G&&(K.srcObject=G),K.getAttribute("src")&&K.removeAttribute("src")):Z?(K.srcObject&&(K.srcObject=null),K.src!==Z&&(K.src=Z,K.load())):(K.srcObject&&(K.srcObject=null),K.getAttribute("src")&&K.removeAttribute("src")),o&&K.play().then(()=>{}).catch(()=>{}))},[G,Z,o]),_.useEffect(()=>{const K=c.current;K&&(X?K.playbackRate=M:(K.playbackRate=1,A(1)))},[M,X]),_.useEffect(()=>{k<=1&&(w(0),D(0))},[k]),_.useEffect(()=>{const K=()=>{B(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",K),()=>{document.removeEventListener("fullscreenchange",K)}},[]),_.useEffect(()=>{if(k<=1)return;const K=a.current;K&&requestAnimationFrame(()=>{const te=K.getBoundingClientRect(),z=Zr(j,L,k,te.width,te.height);w(z.panX),D(z.panY)})},[V]),{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:k,setZoom:$,panX:j,setPanX:w,panY:L,setPanY:D,isDraggingRef:I,dragStartRef:O,panStartRef:N,didDragRef:F,isFullscreen:V,isLoading:R,canAdjustPlaybackRate:X,updateLiveStatus:Q}},Hk="_container_9hh2y_1",Yk="_loader_9hh2y_78",qk="_spinner_9hh2y_88",Gk="_video_9hh2y_111",Kk="_videoZoomed_9hh2y_119",Zk="_timestampOverlay_9hh2y_127",Xk="_timestampText_9hh2y_140",Qk="_controlsOverlay_9hh2y_152",Jk="_timeline_9hh2y_173",eD="_controlsRow_9hh2y_180",tD="_controlGroup_9hh2y_198",nD="_iconButton_9hh2y_215",oD="_seekButton_9hh2y_233",rD="_menuButton_9hh2y_260",sD="_liveBadge_9hh2y_281",iD="_liveBadgeActive_9hh2y_298",aD="_liveBadgeInactive_9hh2y_303",lD="_recordingBadge_9hh2y_308",cD="_recordingDot_9hh2y_327",uD="_emptyState_9hh2y_356",dD="_emptyStateIcon_9hh2y_368",fD="_emptyStateText_9hh2y_373",pD="_controlMenuWrapper_9hh2y_379",_e={container:Hk,loader:Yk,spinner:qk,video:Gk,videoZoomed:Kk,timestampOverlay:Zk,timestampText:Xk,controlsOverlay:Qk,timeline:Jk,controlsRow:eD,controlGroup:tD,iconButton:nD,seekButton:oD,menuButton:rD,liveBadge:sD,liveBadgeActive:iD,liveBadgeInactive:aD,recordingBadge:lD,recordingDot:cD,emptyState:uD,emptyStateIcon:dD,emptyStateText:fD,controlMenuWrapper:pD},gl=({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(q.ButtonBase,{disabled:i,className:`${_e.menuButton} ${_e.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),b.jsx(q.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:o.map(d=>b.jsx(q.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{r(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},hD=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},mD=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=gu(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},gD=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},yD=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},bD=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},vD=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=gu(i);i.currentTime=Math.min(Math.max(a,0),l),n()},xu=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:o,autoPlay:r=!0,playsInline:i=!0,muted:a=!0,poster:l,className:c,sx:u,liveThresholdSeconds:d=2,allowPlaybackRateForStream:f=!1,playbackRates:p=[.5,1,1.5,2],zoomLevels:h=[1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:C=!0,isRecording:x=!1,recordingLabel:S="Gravação",borderRadius:T,loading:E,unavailable:M=!1,unavailableIcon:A,unavailableMessage:k="O vídeo não está disponível."})=>{const j=ae.useTheme().palette.mode==="dark",[w,L]=_.useState(""),[D,I]=_.useState(!0),O=_.useRef(null);_.useEffect(()=>{if(!v)return;const ve=()=>{const Ve=new Date,_t=String(Ve.getDate()).padStart(2,"0"),On=String(Ve.getMonth()+1).padStart(2,"0"),uo=Ve.getFullYear(),fo=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Ve.getDay()],Gt=String(Ve.getHours()).padStart(2,"0"),Bo=String(Ve.getMinutes()).padStart(2,"0"),Va=String(Ve.getSeconds()).padStart(2,"0");L(`${_t}-${On}-${uo}, ${fo} ${Gt}:${Bo}:${Va}`)};ve();const Ne=setInterval(ve,1e3);return()=>clearInterval(Ne)},[v]),_.useEffect(()=>{const ve=N.current;if(!ve)return;const Ne=()=>{O.current&&(clearTimeout(O.current),O.current=null),I(!0)},Ve=()=>{O.current=setTimeout(()=>{I(!1)},1e4)},_t=()=>{D||I(!0),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{I(!1)},1e4)};return ve.addEventListener("mouseenter",Ne),ve.addEventListener("mouseleave",Ve),ve.addEventListener("mousemove",_t),()=>{ve.removeEventListener("mouseenter",Ne),ve.removeEventListener("mouseleave",Ve),ve.removeEventListener("mousemove",_t),O.current&&clearTimeout(O.current)}},[D]);const{containerRef:N,videoRef:F,setVideoRef:V,selectedQuality:B,setSelectedQuality:R,isPlaying:Y,isLive:G,canSeek:Z,currentTime:re,setCurrentTime:X,seekableEnd:Q,playbackRate:K,setPlaybackRate:te,zoom:z,setZoom:H,panX:W,setPanX:ee,panY:J,setPanY:ie,isDraggingRef:ne,dragStartRef:de,panStartRef:se,didDragRef:ue,isFullscreen:le,isLoading:fe,canAdjustPlaybackRate:me,updateLiveStatus:Ie}=Uk({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),Oe=hD(F),qe=mD(F,Z,Ie),tt=gD(N),St=yD(t,R,o),Tt=bD(Z,X),Ee=vD(F,Z,Ie),Me=_.useCallback(ve=>{if(H(ve),ve<=1)ee(0),ie(0);else{const Ne=N.current;if(Ne){const Ve=Ne.getBoundingClientRect(),_t=Zr(W,J,ve,Ve.width,Ve.height);ee(_t.panX),ie(_t.panY)}}},[W,J,N,H,ee,ie]),Se=_.useCallback(ve=>{if(ue.current){ue.current=!1;return}const Ne=N.current;if(!Ne)return;const Ve=Ne.getBoundingClientRect(),_t=ve.clientX-Ve.left-Ve.width/2,On=ve.clientY-Ve.top-Ve.height/2,fo=(h.indexOf(z)+1)%h.length,Gt=h[fo];if(Gt<=1){H(1),ee(0),ie(0);return}const Bo=-_t*(1-1/Gt),Va=-On*(1-1/Gt),vd=Zr(Bo,Va,Gt,Ve.width,Ve.height);H(Gt),ee(vd.panX),ie(vd.panY)},[z,h,N,H,ee,ie,ue]),Be=_.useCallback(ve=>{z<=1||(ve.preventDefault(),ne.current=!0,ue.current=!1,de.current={x:ve.clientX,y:ve.clientY},se.current={x:W,y:J})},[z,W,J,ne,ue,de,se]),ze=_.useCallback(ve=>{if(!ne.current||z<=1)return;ve.preventDefault();const Ne=ve.clientX-de.current.x,Ve=ve.clientY-de.current.y;(Math.abs(Ne)>3||Math.abs(Ve)>3)&&(ue.current=!0);const _t=N.current;if(!_t)return;const On=_t.getBoundingClientRect(),uo=se.current.x+Ne/z,fo=se.current.y+Ve/z,Gt=Zr(uo,fo,z,On.width,On.height);ee(Gt.panX),ie(Gt.panY)},[z,N,ne,de,se,ue,ee,ie]),nt=_.useCallback(()=>{ne.current=!1},[ne]),Je=_.useCallback(ve=>{if(z<=1||ve.touches.length!==1)return;const Ne=ve.touches[0];ne.current=!0,ue.current=!1,de.current={x:Ne.clientX,y:Ne.clientY},se.current={x:W,y:J}},[z,W,J,ne,ue,de,se]),Vt=_.useCallback(ve=>{if(!ne.current||z<=1||ve.touches.length!==1)return;const Ne=ve.touches[0],Ve=Ne.clientX-de.current.x,_t=Ne.clientY-de.current.y;(Math.abs(Ve)>3||Math.abs(_t)>3)&&(ue.current=!0);const On=N.current;if(!On)return;const uo=On.getBoundingClientRect(),fo=se.current.x+Ve/z,Gt=se.current.y+_t/z,Bo=Zr(fo,Gt,z,uo.width,uo.height);ee(Bo.panX),ie(Bo.panY)},[z,N,ne,de,se,ue,ee,ie]),ke=_.useCallback(()=>{ne.current=!1},[ne]);_.useEffect(()=>{const ve=F.current;if(!ve)return;const Ne=Ve=>{z>1&&ne.current&&Ve.preventDefault()};return ve.addEventListener("touchmove",Ne,{passive:!1}),()=>{ve.removeEventListener("touchmove",Ne)}},[z,F,ne]);const ut=h.map(ve=>({value:ve,label:`${Math.round(ve*100)}%`})),yt=p.map(ve=>({value:ve,label:`${ve}x`})),Et=t.map(ve=>({value:ve.value,label:ve.label})),hn=(B==null?void 0:B.label)??"Auto",ge=`${Math.round(z*100)}%`,Ae=`${K}x`,at=Z&&Q>0,mn=pk(m,g,y),kr=T!=null?{...mn,"--vp-radius":typeof T=="number"?`${T}px`:T}:mn;return b.jsx(q.Box,{ref:N,className:`${_e.container} ${c||""}`.trim(),"data-theme":j?"dark":"light",style:kr,sx:u,children:M?b.jsxs(q.Box,{className:_e.emptyState,children:[A??b.jsx(kt.PlayArrow,{className:_e.emptyStateIcon}),typeof k=="string"?b.jsx(q.Typography,{className:_e.emptyStateText,children:k}):k]}):b.jsxs(b.Fragment,{children:[(E??fe)&&b.jsx(q.Box,{className:_e.loader,children:b.jsx("span",{className:_e.spinner})}),b.jsx("video",{ref:V,className:`${_e.video} ${z>1?_e.videoZoomed:""}`.trim(),autoPlay:r,playsInline:i,muted:a,poster:l,style:{transform:z>1?`scale(${z}) translate(${W}px, ${J}px)`:void 0},onMouseDown:Be,onMouseMove:ze,onMouseUp:nt,onMouseLeave:nt,onClick:Se,onTouchStart:Je,onTouchMove:Vt,onTouchEnd:ke}),v&&w&&b.jsx(q.Box,{className:_e.timestampOverlay,children:b.jsx(q.Typography,{variant:"body2",className:_e.timestampText,children:w})}),x&&!D&&b.jsx(q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsxs("span",{className:_e.recordingBadge,children:[b.jsx("span",{className:_e.recordingDot}),S]})}),G&&!x&&!D&&b.jsx(q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsx("span",{className:`${_e.liveBadge} ${_e.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs(q.Box,{className:_e.controlsOverlay,sx:{opacity:D?1:0,visibility:D?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[C&&b.jsx(q.Box,{className:_e.timeline,children:b.jsx(q.Slider,{size:"small",min:0,max:at?Q:1,step:1,value:at?re:0,disabled:!at,onChange:Tt,onChangeCommitted:Ee,"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(q.Box,{className:_e.controlsRow,children:[b.jsxs(q.Box,{className:_e.controlGroup,children:[x?b.jsxs("span",{className:_e.recordingBadge,children:[b.jsx("span",{className:_e.recordingDot}),S]}):b.jsx("span",{className:`${_e.liveBadge} ${G?_e.liveBadgeActive:_e.liveBadgeInactive}`,children:"ao vivo"}),b.jsx("button",{className:_e.seekButton,onClick:()=>qe(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:()=>qe(-15),"aria-label":"Recuar 15 segundos",children:b.jsx(kt.FastRewind,{fontSize:"small"})}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:Oe,"aria-label":"Play/Pause",children:Y?b.jsx(kt.Pause,{fontSize:"small"}):b.jsx(kt.PlayArrow,{fontSize:"small"})}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:()=>qe(15),"aria-label":"Avançar 15 segundos",children:b.jsx(kt.FastForward,{fontSize:"small"})}),b.jsx("button",{className:_e.seekButton,onClick:()=>qe(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),b.jsxs(q.Box,{className:_e.controlGroup,children:[b.jsx(gl,{label:"",valueLabel:Ae,selectedValue:K,options:yt,ariaLabel:"Selecionar velocidade de reprodução",onChange:te,disabled:!me}),Et.length>0?b.jsx(gl,{label:"",valueLabel:hn,selectedValue:(B==null?void 0:B.value)??"auto",options:Et,ariaLabel:"Selecionar qualidade do vídeo",onChange:St}):null,b.jsx(gl,{label:"",valueLabel:ge,selectedValue:z,options:ut,ariaLabel:"Selecionar zoom do vídeo",onChange:Me}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:tt,"aria-label":"Fullscreen",children:le?b.jsx(kt.FullscreenExit,{fontSize:"small"}):b.jsx(kt.Fullscreen,{fontSize:"small"})})]})]})]})]})})};xu.displayName="VideoPlayer";const xD=gt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),SD=gt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),wD=gt(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"),CD=gt(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 U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(null,arguments)}function Pe(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 TD(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ps(t.components[n].defaultProps,o)}function PD(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Ct(()=>{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 ED={...P},Ay=ED.useSyncExternalStore;function MD(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 Ay(c,l,a)}function Ny(e={}){const{themeId:t}=e;return function(o,r={}){let i=e1();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}=TD({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 bO=new yO;function vO(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 xO=k.createContext(null),SO={BOTTOM:["50%","100%"]},ay=k.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=CO(e),c=k.useMemo(()=>a?{marker:a}:null,[a]);return k.useImperativeHandle(t,()=>a,[a]),l?k.createElement(xO.Provider,{value:c},Xo.createPortal(k.createElement(wO,{anchorPoint:i,styles:o,className:r},n),l)):null});ay.displayName="AdvancedMarker";function ic(e){return e.nodeType===Node.ELEMENT_NODE}const wO=({children:e,styles:t,className:n})=>k.createElement("div",{className:n,style:t},e);function CO(e){const[t,n]=k.useState(null),[o,r]=k.useState(null),i=fa(),a=gO("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,_=k.Children.count(l);return k.useEffect(()=>{if(!i||!a)return;const D=new a.AdvancedMarkerElement;D.map=i,n(D);let $=null;return _>0&&($=document.createElement("div"),D.content=$,r($)),()=>{D.map=null,$==null||$.remove(),n(null),r(null)}},[i,a,_]),k.useEffect(()=>{!(t!=null&&t.content)||!ic(t.content)||_>0||(t.content.className=u??"")},[t,u,_]),TO(t,T,E,M,_>0),ri(t,"position",C),ri(t,"title",S??""),ri(t,"zIndex",w),ri(t,"collisionBehavior",g),k.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),k.useEffect(()=>{if(!t)return;const D=y!==void 0||!!c||!!d||!!f;t.gmpClickable=D,D&&(t!=null&&t.content)&&ic(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),oi(t,"click",c),oi(t,"drag",p),oi(t,"dragstart",h),oi(t,"dragend",m),xp(t==null?void 0:t.element,"mouseenter",d),xp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function TO(e,t,n,o,r){k.useEffect(()=>{if(!e||!r)return;const i=vO(3,62),a=e.content;if(!(!a||!ic(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??SO.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",bO.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function PO(e){const[t,n]=k.useState(null),o=fa(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=dr(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return k.useEffect(()=>{if(!o){o===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(d);return h.setMap(o),n(h),()=>{h.setMap(null),n(null)}},[o]),k.useEffect(()=>{if(!t)return;const h=t,m=google.maps.event;return r&&m.addListener(h,"click",r),i&&m.addListener(h,"drag",i),a&&m.addListener(h,"dragstart",a),l&&m.addListener(h,"dragend",l),c&&m.addListener(h,"mouseover",c),u&&m.addListener(h,"mouseout",u),t.setDraggable(!!p),()=>{m.clearInstanceListeners(h)}},[t,p,r,i,a,l,c,u]),k.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),k.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const EO=k.forwardRef((e,t)=>{const n=PO(e);return k.useImperativeHandle(t,()=>n,[n]),k.createElement(k.Fragment,null)});EO.displayName="Marker";const ly=k.createContext(void 0),fu=()=>{const e=k.useContext(ly);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},pu=({children:e})=>{const t=fa(),[n,o]=k.useState(13),[r,i]=k.useState(null),a=k.useRef([]),l=k.useCallback(()=>{a.current.forEach(d=>clearTimeout(d)),a.current=[]},[]);k.useEffect(()=>{if(!t)return;const d=t.getZoom();d!==void 0&&o(d);const f=t.getBounds();if(f){const m=f.getNorthEast(),g=f.getSouthWest(),y=[g.lng(),g.lat(),m.lng(),m.lat()];i(y)}const p=t.addListener("zoom_changed",()=>{const m=t.getZoom();m!==void 0&&o(m)}),h=t.addListener("bounds_changed",()=>{const m=t.getBounds();if(m){const g=m.getNorthEast(),y=m.getSouthWest(),v=[y.lng(),y.lat(),g.lng(),g.lat()];i(v)}});return()=>{p&&google.maps.event.removeListener(p),h&&google.maps.event.removeListener(h),l()}},[t,l]);const c=k.useCallback((d,f=16)=>{if(!t)return;l();const p=t.getZoom()??13,h=Math.abs(f-p);if(h<=2){t.panTo(d),t.setZoom(f);return}const m=f>p?1:-1,g=Math.ceil(h),y=60;t.panTo(d);for(let v=1;v<=g;v++){const C=v===g?f:p+m*v,S=window.setTimeout(()=>{t.setZoom(C)},y*v);a.current.push(S)}},[t,l]),u=(d,f)=>{t&&t.fitBounds(d,f)};return t?b.jsx(ly.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:c,fitBounds:u},children:e}):null};pu.displayName="MapContent";const MO=180,cy=()=>{const{map:e}=fu(),t=k.useRef(null),n=k.useRef(null);return k.useEffect(()=>{if(!e||!t.current)return;const o=new ResizeObserver(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{try{google.maps.event.trigger(e,"resize")}finally{n.current=null}},MO)});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"}})};cy.displayName="MapResizeHandler";const OO="_googleMap_1gh3l_1",kO="_container_1gh3l_14",DO="_errorContainer_1gh3l_29",si={googleMap:OO,container:kO,errorContainer:DO},RO={lat:-26.3044,lng:-48.8487},IO=13,AO={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},NO=({options:e,onLoad:t,children:n})=>{const o=fa();return k.useEffect(()=>{o&&(o.setOptions(AO),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},uy=({center:e=RO,zoom:t=IO,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:`${si.container} ${si.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:si.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(GM,{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:`${si.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(iy,{...f,style:{width:"100%",height:"100%"},children:b.jsx(NO,{options:l,onLoad:c,children:b.jsxs(pu,{children:[b.jsx(cy,{}),o]})})},p)})})};uy.displayName="GoogleMap";const Sp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],fl=1,Ar=8;class hu{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!==fl)throw new Error(`Got v${r} data when expected v${fl}.`);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 hu(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,Ar,t),this.coords=new this.ArrayType(this.data,Ar+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Ar+a+l+c),this.ids=new this.IndexArrayType(this.data,Ar,t),this.coords=new this.ArrayType(this.data,Ar+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(fl<<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 ac(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 ac(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;dy(e,t,a,o,r,i),ac(e,t,n,o,a-1,1-i),ac(e,t,n,a+1,r,1-i)}function dy(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));dy(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(Nr(e,t,o,n),t[2*r+i]>a&&Nr(e,t,o,r);l<c;){for(Nr(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?Nr(e,t,o,c):(c++,Nr(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function Nr(e,t,n,o){pl(e,n,o),pl(t,2*n,2*o),pl(t,2*n+1,2*o+1)}function pl(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 _O={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)),po=2,Hn=3,hl=4,Wn=5,fy=6;class jO{constructor(t){this.options=Object.assign(Object.create(_O),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(ii(d)),h=Cp(ai(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(ii(o),ai(a),ii(i),ai(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+Wn]>1?Tp(u,p,this.clusterProps):this.points[u[p+Hn]])}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+hl]===t&&f.push(a[h+Wn]>1?Tp(a,h,this.clusterProps):this.points[a[h+Hn]])}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 hu(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+Wn]>1;let d,f,p;if(u)d=py(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Hn]];d=g.properties;const[y,v]=g.geometry.coordinates;f=ii(y),p=ai(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+Hn]:m=this.points[n[c+Hn]].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+po]<=n)continue;c[f+po]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+Wn];let y=g;for(const v of m){const C=v*d;c[C+po]>n&&(y+=c[C+Wn])}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+po]<=n)continue;c[M+po]=n;const _=c[M+Wn];v+=c[M]*_,C+=c[M+1]*_,c[M+hl]=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+hl]=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+po]<=n)){c[C+po]=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+Wn]>1){const a=this.clusterProps[t[n+fy]];return o?Object.assign({},a):a}const r=this.points[t[n+Hn]].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+Hn],properties:py(e,t,n),geometry:{type:"Point",coordinates:[LO(e[t]),$O(e[t+1])]}}}function py(e,t,n){const o=e[t+Wn],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+fy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Hn],point_count:o,point_count_abbreviated:r})}function ii(e){return e/360+.5}function ai(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 LO(e){return(e-.5)*360}function $O(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const VO={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 FO(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 BO(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||!FO(e.cameras,t.cameras))}function zO(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&&BO(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function WO(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function UO(e,t,n,o={}){const r=k.useRef(null),[i,a]=k.useState([]),l=k.useRef(""),c={...VO,...o};return k.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=WO(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 jO({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]),k.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=>zO(f,d))},[e,t,n]),i}const Ep=k.memo(function({spot:t,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onSpotClick:u,onCameraClick:d}){const f=k.useCallback(()=>u(t),[u,t]),p=k.useCallback(h=>d==null?void 0:d(h,t),[d,t]);return b.jsx(ay,{position:{lat:t.lat,lng:t.lng},onClick:f,children:b.jsx(du,{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})})}),hy=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=kE,selectedZoomLevel:r=dl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f})=>{const{isLoaded:p,currentZoom:h,bounds:m,zoomToPosition:g}=fu(),y=(a==null?void 0:a.id)??i,{spotsForClustering:v,pinnedSpot:C}=k.useMemo(()=>{if(y==null)return{spotsForClustering:e,pinnedSpot:null};const E=e.find(_=>_.id===y)??null;return E?{spotsForClustering:e.filter(_=>_.id!==y),pinnedSpot:E}:{spotsForClustering:e,pinnedSpot:null}},[e,y]),S=UO(v,h,m),w=k.useCallback(E=>{E.isCluster?g({lat:E.lat,lng:E.lng},Eo):f?g({lat:E.lat,lng:E.lng},h<Eo?Eo:r??o):(a?a.id===E.id:i===E.id)?t==null||t(E):h<Eo?(g({lat:E.lat,lng:E.lng},Eo),t==null||t(E)):(h<(r??dl)&&g({lat:E.lat,lng:E.lng},r??dl),t==null||t(E))},[g,f,a,i,h,r,o,t]),T=k.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};hy.displayName="MapMarkers";const HO="_searchBar_15mix_1",YO="_startIconContainer_15mix_106",qO="_endIconContainer_15mix_117",GO="_endIconContainerClickable_15mix_153",KO="_defaultIcon_15mix_157",Gr={searchBar:HO,startIconContainer:YO,endIconContainer:qO,endIconContainerClickable:GO,defaultIcon:KO},ZO=e=>()=>{e&&e()},XO=e=>t=>{e&&e(t)},QO=()=>b.jsx(Tt.Search,{className:Gr.defaultIcon}),JO=e=>e||QO(),my=k.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=G.useTheme().palette.mode==="dark",f=JO(t),p=ZO(n),h=XO(i);return b.jsx(G.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Gr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(G.InputAdornment,{position:"start",className:Gr.startIconContainer,children:e}):null,endAdornment:b.jsx(G.InputAdornment,{position:"end",className:`${Gr.endIconContainer} ${n?Gr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});my.displayName="SearchBar";const ek=yt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),tk=yt([b.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),b.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),nk="_container_1mb8b_1",ok="_iconWrapper_1mb8b_11",rk="_icon_1mb8b_11",sk="_title_1mb8b_21",ik="_subtitle_1mb8b_30",ak="_description_1mb8b_34",lk="_button_1mb8b_38",ho={container:nk,iconWrapper:ok,icon:rk,title:sk,subtitle:ik,description:ak,button:lk},gy=({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(G.Container,{maxWidth:"sm",children:b.jsxs(G.Box,{className:`${ho.container} ${i||""}`,children:[b.jsx(G.Box,{className:ho.iconWrapper,children:b.jsx(tk,{className:ho.icon,color:"primary"})}),b.jsx(G.Typography,{variant:"h1",className:ho.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(G.Typography,{variant:"h4",component:"h2",className:ho.subtitle,color:"text.primary",children:n}),b.jsx(G.Typography,{variant:"body1",className:ho.description,color:"text.secondary",children:o}),e&&b.jsx(Ec,{variant:"contained",size:"large",startIcon:b.jsx(ek,{}),onClick:e,className:ho.button,children:t})]})});gy.displayName="NotFoundContent";const ck=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}},uk=({items:e,isExpanded:t=!0,onClick:n})=>{const o=k.useMemo(()=>ck(e),[e]),[r,i]=k.useState(o.itemId),[a,l]=k.useState(o.subItemId),[c,u]=k.useState(o.expandedItemId),[d,f]=k.useState(null),[p,h]=k.useState(null);k.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 _;const M=a?!!((_=E.submenu)!=null&&_.some(D=>D.id===a)):!1;return r?E.id===r:!!(E.active||M)},getIsSubItemActive:E=>a?E.id===a:!!E.active,shouldShowSubmenu:E=>{var M;return!!(t&&((M=E.submenu)!=null&&M.length)&&c===E.id)},handleItemClick:(E,M)=>{var _,D;i(E.id),l(null),(_=E.submenu)!=null&&_.length?t?u($=>$===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(D=E.onClick)==null||D.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,_,D)=>{var $;i(E.id),l(M.id),D!=null&&D.closeMenu&&(f(null),h(null)),($=M.onClick)==null||$.call(M,_),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},yy=e=>typeof e=="number"?`${e*4}px`:e,dk=({item:e,onClick:t,isActive:n})=>{const o=ae.useTheme();return b.jsx(G.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:yy(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(G.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},by=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ae.useTheme(),i=yy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=uk({items:e,isExpanded:t,onClick:o});return b.jsxs(G.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(G.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(G.ButtonBase,{onClick:_=>p(g,_),"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(G.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[b.jsx(G.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?ae.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(G.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?b.jsx(G.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(G.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(G.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(_=>{const D=d(_);return b.jsx(dk,{item:_,isActive:D,onClick:$=>h(g,_,$)},_.id)})})}):null]},g.id)}),b.jsx(G.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(G.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};by.displayName="SidebarMenu";const fk=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},pk=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=k.useMemo(()=>fk(e),[e]),[r,i]=k.useState(o),[a,l]=k.useState(null);k.useEffect(()=>{i(o)},[o]);const c=r?e.find(h=>h.id===r):void 0;return{selectedItemId:r,selectedItem:c,menuAnchorEl:a,getIsItemActive:h=>r?h.id===r:!!h.active,openMenu:h=>{n||l(h.currentTarget)},closeMenu:()=>{n||l(null)},handleItemClick:(h,m)=>{var g;i(h.id),(g=h.onClick)==null||g.call(h,m),t==null||t(h),l(null)}}},hk=e=>typeof e=="number"?`${e*4}px`:e,vy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var O,j;const d=ae.useTheme(),f=k.useRef(null),p=hk(d.shape.borderRadius),[h,m]=k.useState(!1),g=k.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:C,openMenu:S,closeMenu:w,handleItemClick:T}=pk({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((O=e[0])==null?void 0:O.label)??"",M=o??(y==null?void 0:y.icon)??((j=e[0])==null?void 0:j.icon)??null,_=l||!M,D=B=>{if(l){m(F=>!F);return}S(B)},$=(B,F)=>{T(B,F),m(!1)},N=b.jsx(G.Stack,{direction:"column",spacing:.5,children:e.map(B=>{const F=C(B);return b.jsxs(G.MenuItem,{selected:F,onClick:z=>$(B,z),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(G.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:B.icon}):null,b.jsx(G.Typography,{variant:"body1",sx:{fontWeight:F?600:500},children:B.label})]},B.id)})}),x=b.jsxs(G.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(G.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(G.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(G.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:N})]}),L=a?b.jsxs(G.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(G.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(G.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,I=L?b.jsx(G.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:L}):null,A=b.jsxs(G.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[x,I]});return b.jsxs(G.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(G.ButtonBase,{onClick:D,"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(G.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(G.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,_?b.jsxs(G.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(G.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(G.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(G.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(G.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(G.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:A})}):null:b.jsx(G.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:A})]})};vy.displayName="ModuleMenu";const pa=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,Kr=(e,t,n,o,r)=>{if(n<=1)return{panX:0,panY:0};const i=o*(1-1/n)/2,a=r*(1-1/n)/2;return{panX:Math.max(-i,Math.min(i,e)),panY:Math.max(-a,Math.min(a,t))}},mk=(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}}),In={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function xy(e){return"init"in e}function lc(e){return!!e.write}function Mp(e){return"v"in e||"e"in e}function ji(e){if("e"in e)throw e.e;if((In?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Li=new WeakMap;function Sy(e){var t;return $i(e)&&!!((t=Li.get(e))!=null&&t[0])}function gk(e){const t=Li.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function cc(e,t){let n=Li.get(e);if(!n){n=[!0,new Set],Li.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function $i(e){return typeof(e==null?void 0:e.then)=="function"}function wy(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function Cy(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 yk=(e,t,...n)=>t.read(...n),bk=(e,t,...n)=>t.write(...n),vk=(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)},xk=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},Sk=(e,t)=>{var n;const o=Nt(e),r=o[0],i=o[6],a=o[9];if((In?"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},wk=e=>{const t=Nt(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)},Ck=e=>{const t=Nt(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((In?"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 Cy(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)}},uc=new WeakSet,Tk=(e,t)=>{var n,o;const r=Nt(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 D=!1;for(const[$,N]of v.d)if(h(e,$).n!==N){D=!0;break}if(!D)return v}v.d.clear();let C=!0;function S(){i.has(t)&&(g(e,t),p(e),f(e))}function w(D){var $;if(D===t){const x=d(e,D);if(!Mp(x))if(xy(D))y(e,D,D.init);else throw new Error("no atom init");return ji(x)}const N=h(e,D);try{return ji(N)}finally{v.d.set(D,N.n),Sy(v.v)&&wy(t,v.v,N),i.has(t)&&(($=i.get(D))==null||$.t.add(t)),C||S()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(In?"production":void 0)!=="production"&&!lc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&lc(t)&&(E=(...D)=>{if((In?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)try{return m(e,t,...D)}finally{p(e),f(e)}}),E}},_=v.n;try{(In?"production":void 0)!=="production"&&uc.delete(e);const D=u(e,t,w,M);return(In?"production":void 0)!=="production"&&uc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,D),$i(D)&&(cc(D,()=>T==null?void 0:T.abort()),D.then(S,S)),(n=c.r)==null||n.call(c,t),v}catch(D){return delete v.v,v.e=D,++v.n,v}finally{C=!1,_!==v.n&&a.get(t)===_&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},Pk=(e,t)=>{const n=Nt(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 Cy(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},Ek=(e,t,...n)=>{const o=Nt(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=>ji(d(e,C)),v=(C,...S)=>{var w;const T=l(e,C);try{if(C===t){if(!xy(C))throw new Error("atom not writable");(In?"production":void 0)!=="production"&&uc.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}},Mk=(e,t)=>{var n;const o=Nt(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&&!Sy(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)}}},Ok=(e,t)=>{var n;const o=Nt(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),lc(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},kk=(e,t)=>{var n,o;const r=Nt(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},Dk=(e,t,n)=>{const o=Nt(e)[11],r=o(e,t),i="v"in r,a=r.v;if($i(n))for(const l of r.d.keys())wy(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,$i(a)&&gk(a))},Rk=(e,t)=>{const n=Nt(e)[14];return ji(n(e,t))},Ik=(e,t,...n)=>{const o=Nt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},Ak=(e,t,n)=>{const o=Nt(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)}},Ty=new WeakMap,Nt=e=>{const t=Ty.get(e);if((In?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function Nk(...e){const t={get(o){const r=Nt(t)[21];return r(t,o)},set(o,...r){const i=Nt(t)[22];return i(t,o,...r)},sub(o,r){const i=Nt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},yk,bk,vk,xk,Sk,wk,Ck,Tk,Pk,Ek,Mk,Ok,kk,Dk,Rk,Ik,Ak,void 0].map((o,r)=>e[r]||o);return Ty.set(t,Object.freeze(n)),t}const Py={};let _k=0;function mu(e,t){const n=`atom${++_k}`,o={toString(){return(Py?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=jk,o.write=Lk),o}function jk(e){return e(this)}function Lk(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function $k(){return Nk()}let _r;function Vk(){return _r||(_r=$k(),(Py?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=_r),globalThis.__JOTAI_DEFAULT_STORE__!==_r&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),_r}const Fk={},Bk=k.createContext(void 0);function Ey(e){return k.useContext(Bk)||Vk()}const dc=e=>typeof(e==null?void 0:e.then)=="function",fc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},zk=k.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(fc(e),e)}),ml=new WeakMap,Op=(e,t)=>{let n=ml.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();dc(u)?(ml.set(u,n),i=u,u.then(a(u),l(u)),cc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),cc(e,c)}),ml.set(e,n)),n};function My(e,t){const{delay:n,unstable_promiseStatus:o=!k.use}={},r=Ey(),[[i,a,l],c]=k.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)),k.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);dc(f)&&fc(Op(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),k.useDebugValue(u),dc(u)){const d=Op(u,()=>r.get(e));return o&&fc(d),zk(d)}return u}function Wk(e,t){const n=Ey();return k.useCallback((...r)=>{if((Fk?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Vi(e,t){return[My(e),Wk(e)]}const Oy=mu(0),ky=mu(!0),Uk=mu(null),gu=k.createContext(null),Dy=({children:e})=>{const t=k.useRef(null),[n,o]=Vi(Oy),[r,i]=Vi(ky),[a,l]=k.useState(!1),[c,u]=k.useState(0),[d,f]=k.useState(!1);k.useEffect(()=>{const S=t.current;if(!S)return;const w=()=>{if(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("durationchange",w),S.addEventListener("loadedmetadata",w),S.addEventListener("play",T),S.addEventListener("pause",E),w(),()=>{S.removeEventListener("durationchange",w),S.removeEventListener("loadedmetadata",w),S.removeEventListener("play",T),S.removeEventListener("pause",E)}},[]);const p=k.useCallback(S=>{o(S)},[o]),h=k.useCallback(S=>{i(S)},[i]),m=k.useCallback(S=>{const w=t.current;!w||!d||(w.currentTime=S,o(S),i(!1))},[d,o,i]),g=k.useCallback(async()=>{const S=t.current;if(S)try{await S.play(),l(!0)}catch(w){console.error("Failed to play video:",w)}},[]),y=k.useCallback(()=>{const S=t.current;S&&(S.pause(),l(!1))},[]),v=k.useCallback(()=>{a?y():g()},[a,g,y]),C=k.useMemo(()=>({videoRef:t,currentTime:n,setCurrentTime:p,isLive:r,setIsLive:h,seekTo:m,play:g,pause:y,togglePlay:v,isPlaying:a,duration:c,canSeek:d}),[t,n,p,r,h,m,g,y,v,a,c,d]);return b.jsx(gu.Provider,{value:C,children:e})},yu=()=>k.useContext(gu),Hk=()=>{const e=k.useContext(gu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},Yk=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=k.useRef(null),l=yu(),c=k.useRef(null),u=k.useCallback(V=>{c.current=V,l!=null&&l.videoRef&&(l.videoRef.current=V)},[l]),d=k.useMemo(()=>{if(!t||!t.length)return null;if(n){const V=t.find(U=>U.value===n);if(V)return V}return t[0]},[t,n]),[f,p]=k.useState(d),[h,m]=k.useState(!1),[g,y]=k.useState(!0),[v,C]=k.useState(!1),[S,w]=k.useState(0),[T,E]=k.useState(0),[M,_]=k.useState(1),[D,$]=k.useState(1),[N,x]=k.useState(0),[L,I]=k.useState(0),A=k.useRef(!1),O=k.useRef({x:0,y:0}),j=k.useRef({x:0,y:0}),B=k.useRef(!1),[F,z]=k.useState(!1),[R,Y]=k.useState(!0),q=(f==null?void 0:f.stream)??e??null,K=(f==null?void 0:f.src)??null,Z=!!!q||i;k.useEffect(()=>{p(d)},[d]);const Q=k.useRef(!1),se=k.useRef({seekableEnd:0,currentTime:0,canSeek:!1,isLive:!0}),J=k.useCallback(()=>{const V=c.current;if(!V)return;if(!V.seekable||V.seekable.length===0){y(!0),C(!1),l&&l.setIsLive(!0);return}const U=pa(V),W=Math.max(0,U-V.currentTime);se.current={seekableEnd:U,currentTime:V.currentTime,canSeek:U>0,isLive:W<=(r??2)},Q.current||(Q.current=!0,requestAnimationFrame(()=>{Q.current=!1;const ee=se.current;E(ee.seekableEnd),w(ee.currentTime),C(ee.canSeek),y(ee.isLive),l&&(l.setCurrentTime(ee.currentTime),l.setIsLive(ee.isLive))}))},[r,l]);return k.useEffect(()=>{const V=c.current;if(!V)return;const U=()=>m(!0),W=()=>m(!1),ee=()=>Y(!0),X=()=>Y(!0),re=()=>Y(!1),te=()=>Y(!1);return V.addEventListener("play",U),V.addEventListener("pause",W),V.addEventListener("waiting",ee),V.addEventListener("loadstart",X),V.addEventListener("canplay",re),V.addEventListener("playing",te),V.addEventListener("timeupdate",J),V.addEventListener("durationchange",J),V.addEventListener("loadedmetadata",J),V.addEventListener("progress",J),()=>{V.removeEventListener("play",U),V.removeEventListener("pause",W),V.removeEventListener("waiting",ee),V.removeEventListener("loadstart",X),V.removeEventListener("canplay",re),V.removeEventListener("playing",te),V.removeEventListener("timeupdate",J),V.removeEventListener("durationchange",J),V.removeEventListener("loadedmetadata",J),V.removeEventListener("progress",J)}},[J]),k.useEffect(()=>{const V=c.current;V&&(Y(!0),q?(V.srcObject!==q&&(V.srcObject=q),V.getAttribute("src")&&V.removeAttribute("src")):K?(V.srcObject&&(V.srcObject=null),V.src!==K&&(V.src=K,V.load())):(V.srcObject&&(V.srcObject=null),V.getAttribute("src")&&V.removeAttribute("src")),o&&V.play().then(()=>{}).catch(()=>{}))},[q,K,o]),k.useEffect(()=>{const V=c.current;V&&(Z?V.playbackRate=M:(V.playbackRate=1,_(1)))},[M,Z]),k.useEffect(()=>{D<=1&&(x(0),I(0))},[D]),k.useEffect(()=>{const V=()=>{z(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",V),()=>{document.removeEventListener("fullscreenchange",V)}},[]),k.useEffect(()=>{if(D<=1)return;const V=a.current;if(!V)return;const U=requestAnimationFrame(()=>{const W=V.getBoundingClientRect(),ee=Kr(N,L,D,W.width,W.height);x(ee.panX),I(ee.panY)});return()=>cancelAnimationFrame(U)},[F]),{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:_,zoom:D,setZoom:$,panX:N,setPanX:x,panY:L,setPanY:I,isDraggingRef:A,dragStartRef:O,panStartRef:j,didDragRef:B,isFullscreen:F,isLoading:R,canAdjustPlaybackRate:Z,updateLiveStatus:J}},qk="_container_10slu_1",Gk="_loader_10slu_78",Kk="_spinner_10slu_88",Zk="_video_10slu_111",Xk="_videoZoomed_10slu_119",Qk="_timestampOverlay_10slu_127",Jk="_timestampText_10slu_140",eD="_badgeFloating_10slu_152",tD="_controlsOverlay_10slu_159",nD="_controlsVisible_10slu_183",oD="_timeline_10slu_188",rD="_controlsRow_10slu_195",sD="_controlGroup_10slu_213",iD="_iconButton_10slu_230",aD="_menuButton_10slu_278",lD="_liveBadge_10slu_288",cD="_liveBadgeInactive_10slu_306",uD="_liveBadgeActive_10slu_316",dD="_recordingBadge_10slu_326",fD="_recordingDot_10slu_345",pD="_emptyState_10slu_374",hD="_emptyStateIcon_10slu_386",mD="_emptyStateText_10slu_391",gD="_controlMenuWrapper_10slu_397",yD="_zoomControl_10slu_412",bD="_zoomValue_10slu_419",Ie={container:qk,loader:Gk,spinner:Kk,video:Zk,videoZoomed:Xk,timestampOverlay:Qk,timestampText:Jk,badgeFloating:eD,controlsOverlay:tD,controlsVisible:nD,timeline:oD,controlsRow:rD,controlGroup:sD,iconButton:iD,menuButton:aD,liveBadge:lD,liveBadgeInactive:cD,liveBadgeActive:uD,recordingBadge:dD,recordingDot:fD,emptyState:pD,emptyStateIcon:hD,emptyStateText:mD,controlMenuWrapper:gD,zoomControl:yD,zoomValue:bD},vD=({icon:e,label:t,valueLabel:n,selectedValue:o,options:r,onChange:i,disabled:a,ariaLabel:l})=>{const[c,u]=k.useState(null),d=!!c;return b.jsxs(b.Fragment,{children:[b.jsxs(G.ButtonBase,{disabled:a,className:`${Ie.menuButton} ${Ie.controlMenuWrapper}`,"aria-label":l,onClick:f=>u(f.currentTarget),children:[e,t?`${t}: ${n}`:n]}),b.jsx(G.Menu,{anchorEl:c,open:d,onClose:()=>u(null),children:r.map(f=>b.jsx(G.MenuItem,{selected:f.value===o,disabled:f.disabled,onClick:()=>{i(f.value),u(null)},children:f.label},`${t}-${String(f.value)}`))})]})},xD=k.memo(vD),SD=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];function wD(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),r=SD[e.getDay()],i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");return`${t}-${n}-${o}, ${r} ${i}:${a}:${l}`}const Ry=k.memo(({show:e})=>{const[t,n]=k.useState("");return k.useEffect(()=>{if(!e)return;const o=()=>n(wD());o();const r=setInterval(o,1e3);return()=>clearInterval(r)},[e]),!e||!t?null:b.jsx("div",{className:Ie.timestampOverlay,children:b.jsx("span",{className:Ie.timestampText,children:t})})});Ry.displayName="Timestamp";const CD=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},TD=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=pa(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},PD=(e,t,n)=>()=>{const o=e.current;if(!o||!t)return;const r=pa(o);o.currentTime=Math.max(r-.1,0),n()},ED=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},MD=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},OD=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},kD=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=pa(i);i.currentTime=Math.min(Math.max(a,0),l),n()},DD=e=>{const{width:t=20,height:n=20,...o}=e;return b.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:b.jsx("path",{d:"M10.4167 2.5C14.2917 2.5 17.5667 5.025 18.725 8.51667L16.75 9.16667C15.875 6.50833 13.3667 4.58333 10.4167 4.58333C8.78333 4.58333 7.30833 5.18333 6.15 6.15L8.33333 8.33333H2.5V2.5L4.66667 4.66667C6.20833 3.33333 8.20833 2.5 10.4167 2.5ZM8.33333 10V18.3333H6.66667V11.6667H5V10H8.33333ZM10 10H15V11.6667H11.6667V13.3333H13.3333C14.2583 13.3333 15 14.0833 15 15V16.6667C15 17.5917 14.2583 18.3333 13.3333 18.3333H10V16.6667H13.3333V15H10V10Z",fill:"currentColor"})})},RD=e=>{const{width:t=20,height:n=20,...o}=e;return b.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:b.jsx("path",{d:"M9.58336 2.5C11.7917 2.5 13.7917 3.33333 15.3334 4.66667L17.5 2.5V8.33333H11.6667L13.85 6.15C12.6917 5.18333 11.2167 4.58333 9.58336 4.58333C6.63336 4.58333 4.12502 6.50833 3.25002 9.16667L1.27502 8.51667C2.43336 5.025 5.70836 2.5 9.58336 2.5ZM8.33336 10V18.3333H6.66669V11.6667H5.00002V10H8.33336ZM10 10H15V11.6667H11.6667V13.3333H13.3334C14.2584 13.3333 15 14.0833 15 15V16.6667C15 17.5917 14.2584 18.3333 13.3334 18.3333H10V16.6667H13.3334V15H10V10Z",fill:"currentColor"})})},ID={color:"#C8E642","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"#fff"},"& .MuiSlider-track":{border:"none",backgroundColor:"#C8E642"},"& .MuiSlider-rail":{backgroundColor:"#424242",opacity:1}},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.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:C=!0,isRecording:S=!1,recordingLabel:w="Gravação",borderRadius:T,loading:E,unavailable:M=!1,unavailableIcon:_,unavailableMessage:D="O vídeo não está disponível."})=>{const N=ae.useTheme().palette.mode==="dark",[x,L]=k.useState(!0),I=k.useRef(!0),A=k.useRef(null);I.current=x;const{containerRef:O,videoRef:j,setVideoRef:B,selectedQuality:F,setSelectedQuality:z,isPlaying:R,isLive:Y,canSeek:q,currentTime:K,setCurrentTime:oe,seekableEnd:Z,playbackRate:Q,setPlaybackRate:se,zoom:J,setZoom:V,panX:U,setPanX:W,panY:ee,setPanY:X,isDraggingRef:re,dragStartRef:te,panStartRef:ue,didDragRef:ie,isFullscreen:me,isLoading:le,canAdjustPlaybackRate:de,updateLiveStatus:pe}=Yk({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f});k.useEffect(()=>{const Se=O.current;if(!Se)return;const _e=()=>{A.current&&(clearTimeout(A.current),A.current=null),L(!0)},Je=()=>{A.current=setTimeout(()=>{},1e4)},Wt=()=>{I.current||L(!0),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{},1e4)};return Se.addEventListener("mouseenter",_e),Se.addEventListener("mouseleave",Je),Se.addEventListener("mousemove",Wt),()=>{Se.removeEventListener("mouseenter",_e),Se.removeEventListener("mouseleave",Je),Se.removeEventListener("mousemove",Wt),A.current&&clearTimeout(A.current)}},[]);const Ne=k.useMemo(()=>CD(j),[j]),Oe=k.useMemo(()=>TD(j,q,pe),[j,q,pe]);k.useMemo(()=>PD(j,q,pe),[j,q,pe]);const Xe=k.useMemo(()=>ED(O),[O]);k.useMemo(()=>MD(t,z,o),[t,z,o]);const tt=k.useMemo(()=>OD(q,oe),[q,oe]),wt=k.useMemo(()=>kD(j,q,pe),[j,q,pe]),mt=k.useRef(U),Ee=k.useRef(ee);mt.current=U,Ee.current=ee;const we=k.useRef(J);we.current=J;const xe=k.useCallback(Se=>{if(V(Se),Se<=1)W(0),X(0);else{const _e=O.current;if(_e){const Je=_e.getBoundingClientRect(),Wt=Kr(mt.current,Ee.current,Se,Je.width,Je.height);W(Wt.panX),X(Wt.panY)}}},[O,V,W,X]),Ve=k.useCallback(Se=>{const _e=h.indexOf(J),Je=Math.max(0,Math.min(h.length-1,_e+Se));xe(h[Je])},[J,h,xe]),Be=k.useCallback(Se=>{if(ie.current){ie.current=!1;return}const _e=O.current;if(!_e)return;const Je=_e.getBoundingClientRect(),Wt=Se.clientX-Je.left-Je.width/2,co=Se.clientY-Je.top-Je.height/2,Or=(h.indexOf(we.current)+1)%h.length,hn=h[Or];if(hn<=1){V(1),W(0),X(0);return}const Ks=-Wt*(1-1/hn),Kv=-co*(1-1/hn),yd=Kr(Ks,Kv,hn,Je.width,Je.height);V(hn),W(yd.panX),X(yd.panY)},[h,O,V,W,X,ie]),it=k.useCallback(Se=>{we.current<=1||(Se.preventDefault(),re.current=!0,ie.current=!1,te.current={x:Se.clientX,y:Se.clientY},ue.current={x:mt.current,y:Ee.current})},[re,ie,te,ue]),Qe=k.useCallback(Se=>{if(!re.current||we.current<=1)return;Se.preventDefault();const _e=Se.clientX-te.current.x,Je=Se.clientY-te.current.y;(Math.abs(_e)>3||Math.abs(Je)>3)&&(ie.current=!0);const Wt=O.current;if(!Wt)return;const co=Wt.getBoundingClientRect(),Mr=ue.current.x+_e/we.current,Or=ue.current.y+Je/we.current,hn=Kr(Mr,Or,we.current,co.width,co.height);W(hn.panX),X(hn.panY)},[O,re,te,ue,ie,W,X]),_t=k.useCallback(()=>{re.current=!1},[re]),ke=k.useCallback(Se=>{if(we.current<=1||Se.touches.length!==1)return;const _e=Se.touches[0];re.current=!0,ie.current=!1,te.current={x:_e.clientX,y:_e.clientY},ue.current={x:mt.current,y:Ee.current}},[re,ie,te,ue]),ct=k.useCallback(Se=>{if(!re.current||we.current<=1||Se.touches.length!==1)return;const _e=Se.touches[0],Je=_e.clientX-te.current.x,Wt=_e.clientY-te.current.y;(Math.abs(Je)>3||Math.abs(Wt)>3)&&(ie.current=!0);const co=O.current;if(!co)return;const Mr=co.getBoundingClientRect(),Or=ue.current.x+Je/we.current,hn=ue.current.y+Wt/we.current,Ks=Kr(Or,hn,we.current,Mr.width,Mr.height);W(Ks.panX),X(Ks.panY)},[O,re,te,ue,ie,W,X]),bt=k.useCallback(()=>{re.current=!1},[re]);k.useEffect(()=>{const Se=j.current;if(!Se)return;const _e=Je=>{we.current>1&&re.current&&Je.preventDefault()};return Se.addEventListener("touchmove",_e,{passive:!1}),()=>{Se.removeEventListener("touchmove",_e)}},[j,re]);const Dt=k.useMemo(()=>p.map(Se=>({value:Se,label:`${Se}x`})),[p]);k.useMemo(()=>t.map(Se=>({value:Se.value,label:Se.label})),[t]),F==null||F.label;const pn=`${Math.round(J*100)}%`,ge=`${Q}x`,De=q&&Z>0,ut=mk(m,g,y),Mn=T!=null?{...ut,"--vp-radius":typeof T=="number"?`${T}px`:T}:ut,Er=k.useMemo(()=>({transform:J>1?`scale(${J}) translate(${U}px, ${ee}px)`:void 0}),[J,U,ee]);return b.jsx(G.Box,{ref:O,className:`${Ie.container} ${c||""}`.trim(),"data-theme":N?"dark":"light",style:Mn,sx:u,children:M?b.jsxs("div",{className:Ie.emptyState,children:[_??b.jsx(Tt.PlayArrow,{className:Ie.emptyStateIcon}),typeof D=="string"?b.jsx(G.Typography,{className:Ie.emptyStateText,children:D}):D]}):b.jsxs(b.Fragment,{children:[(E??le)&&b.jsx("div",{className:Ie.loader,children:b.jsx("span",{className:Ie.spinner})}),b.jsx("video",{ref:B,className:`${Ie.video} ${J>1?Ie.videoZoomed:""}`.trim(),autoPlay:r,playsInline:i,muted:a,poster:l,style:Er,onMouseDown:it,onMouseMove:Qe,onMouseUp:_t,onMouseLeave:_t,onClick:Be,onTouchStart:ke,onTouchMove:ct,onTouchEnd:bt}),b.jsx(Ry,{show:v}),S&&!x&&b.jsx("div",{className:Ie.badgeFloating,children:b.jsxs("span",{className:Ie.recordingBadge,children:[b.jsx("span",{className:Ie.recordingDot}),w]})}),Y&&!S&&!x&&b.jsx("div",{className:Ie.badgeFloating,children:b.jsx("span",{className:`${Ie.liveBadge} ${Ie.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs("div",{className:`${Ie.controlsOverlay} ${x?Ie.controlsVisible:""}`,children:[C&&b.jsx("div",{className:Ie.timeline,children:b.jsx(G.Slider,{size:"small",min:0,max:De?Z:1,step:1,value:De?K:0,disabled:!De,onChange:tt,onChangeCommitted:wt,"aria-label":"Linha do tempo do video",sx:ID})}),b.jsxs("div",{className:Ie.controlsRow,children:[b.jsxs("div",{className:Ie.controlGroup,children:[S?b.jsxs("span",{className:Ie.recordingBadge,children:[b.jsx("span",{className:Ie.recordingDot}),w]}):b.jsx("span",{className:`${Ie.liveBadge} ${Y?Ie.liveBadgeActive:Ie.liveBadgeInactive}`,children:"ao vivo"}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>Oe(-15),"aria-label":"Voltar 15 segundos",children:b.jsx(DD,{})}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:Ne,"aria-label":"Play/Pause",children:R?b.jsx(Tt.Pause,{fontSize:"small"}):b.jsx(Tt.PlayArrow,{fontSize:"small"})}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>Oe(15),"aria-label":"Avançar 15 segundos",children:b.jsx(RD,{})})]}),b.jsxs("div",{className:Ie.controlGroup,children:[b.jsx(xD,{icon:b.jsx(Tt.Speed,{fontSize:"small"}),label:"",valueLabel:ge,selectedValue:Q,options:Dt,ariaLabel:"Selecionar velocidade de reprodução",onChange:se,disabled:!de}),b.jsxs("div",{className:Ie.zoomControl,children:[b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>Ve(-1),disabled:J<=h[0],"aria-label":"Diminuir zoom",children:b.jsx(Tt.ZoomOut,{fontSize:"small"})}),b.jsx("span",{className:Ie.zoomValue,children:pn}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>Ve(1),disabled:J>=h[h.length-1],"aria-label":"Aumentar zoom",children:b.jsx(Tt.ZoomIn,{fontSize:"small"})})]}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:Xe,"aria-label":"Fullscreen",children:me?b.jsx(Tt.CloseFullscreen,{fontSize:"small"}):b.jsx(Tt.OpenInFull,{fontSize:"small"})})]})]})]})]})})};bu.displayName="VideoPlayer";const AD=yt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),ND=yt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),_D=yt(b.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),jD=yt(b.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined");function H(){return H=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},H.apply(null,arguments)}function Me(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function LD(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:fs(t.components[n].defaultProps,o)}function $D(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Pt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const VD={...P},Iy=VD.useSyncExternalStore;function FD(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 Iy(c,l,a)}function Ay(e={}){const{themeId:t}=e;return function(o,r={}){let i=e1();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}=LD({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}},
|
|
111
|
+
`));const h=(Iy!==void 0?FD:$D)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}Ay();const Ny=Ay({themeId:ia}),St=s.oneOfType([s.func,s.object]);function en(e,t,n){return typeof e=="function"?e(t,n):e}const jr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),BD=({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}},Fi=(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},bs=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=Fi(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},zD=(e,t)=>e.isValid(t)?t:null,kp=(e,t,n)=>t==null||!e.isValid(t)?n:t,WD=(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},_y=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),UD=["year","month","day"],Dp=e=>UD.includes(e),xu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return jr(n,["year"])?r.year:jr(n,["month"])?r.month:jr(n,["day"])?r.dayOfMonth:jr(n,["month","year"])?`${r.month} ${r.year}`:jr(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},HD=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},YD=["hours","minutes","seconds"],qD=e=>YD.includes(e),Rp=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),GD=(e,t)=>(n,o)=>e?t.isAfter(n,o):Rp(n,t)>Rp(o,t),bn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},KD=e=>Math.max(...e.map(t=>bn[t.type]??1)),Lr=(e,t,n)=>{if(t===bn.year)return e.startOfYear(n);if(t===bn.month)return e.startOfMonth(n);if(t===bn.day)return e.startOfDay(n);let o=n;return t<bn.minutes&&(o=e.setMinutes(o,0)),t<bn.seconds&&(o=e.setSeconds(o,0)),t<bn.milliseconds&&(o=e.setMilliseconds(o,0)),o},ZD=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():Lr(t,n,_y(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Lr(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Lr(t,n,e.maxDate));const a=GD(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Lr(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Fi(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Lr(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Fi(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}},ha=(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))},jy=(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 ha(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",XD=["0","1","2","3","4","5","6","7","8","9"],QD=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Ip)==="0"?XD:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Ip))},jo=(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=jo(e,t);return n!==" "&&!Number.isNaN(Number(n))},Cu=(e,t)=>Number(e).toString().padStart(t,"0"),Ly=(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=Pu(i,r.maxLength)),Tu(i,o)},Eu=(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($o(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},jp=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Cu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},FD=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Vy=(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")}},BD=(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(Eu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},zD=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),WD=(e,t,n)=>{const r=e.map(i=>{const a=Eu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},UD=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Su(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:FD(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=pa(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 $o(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number($o(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 Lp=!1;const $p=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Lp){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('", "')}"]\`.`),Lp=!0)}},HD=(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=Pu(r,t.maxLength));const i=pa(e,t.format),a=i.indexOf(r),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Vp={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Fp=(e,t,n,o,r)=>[...n].sort((i,a)=>Vp[i.type]-Vp[a.type]).reduce((i,a)=>!r||a.modified?HD(e,a,t,i):i,o),YD=()=>navigator.userAgent.toLowerCase().includes("android"),qD=(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]}},hc=(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},GD=["value","referenceDate"],En={emptyValue:null,getTodayValue:jy,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Pe(e,GD);return o.adapter.isValid(t)?t:n??LD(o)},cleanValue:kD,areValuesEqual:DD,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)},KD={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:zD,getV6InputValueFromSections:WD,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>U({},t,{value:""}))};function ZD(e){return typeof e.main=="string"}function XD(e,t=[]){if(!ZD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Yt(e=[]){return([,t])=>t&&XD(t,e)}function QD(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 JD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},eR=eS(),tR=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,QD,a)},nR=be("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]}})(Xe(({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(Yt()).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}}]}})),Bp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ao=P.forwardRef(function(t,n){const{color:o,...r}=Fe({props:t,name:"MuiTypography"}),i=!JD[o],a=eR({...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=Bp,...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]||Bp[h])||"span",C=tR(y);return b.jsx(nR,{as:v,ref:n,className:ye(C.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(ao.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function oR(e){return Te("MuiPickersToolbar",e)}Ce("MuiPickersToolbar",["root","title","content"]);const rR=["localeText"],Vi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Vi.displayName="PickerAdapterContext");const ha=function(t){const{localeText:n}=t,o=Pe(t,rR),{adapter:r,localeText:i}=P.useContext(Vi)??{adapter:void 0,localeText:void 0},a=ae.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>U({},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(
|
|
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(jo(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)},JD=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,$y=(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")}},eR=(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)},tR=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),nR=(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},oR=(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:JD(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=ha(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 jo(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(jo(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)}},rR=(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=ha(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?rR(e,a,t,i):i,o),sR=()=>navigator.userAgent.toLowerCase().includes("android"),iR=(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]}},pc=(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},aR=["value","referenceDate"],Pn={emptyValue:null,getTodayValue:_y,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Me(e,aR);return o.adapter.isValid(t)?t:n??ZD(o)},cleanValue:zD,areValuesEqual:WD,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)},lR={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:tR,getV6InputValueFromSections:nR,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>H({},t,{value:""}))};function cR(e){return typeof e.main=="string"}function uR(e,t=[]){if(!cR(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Yt(e=[]){return([,t])=>t&&uR(t,e)}function dR(e){return Pe("MuiTypography",e)}Te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},pR=eS(),hR=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 Ce(l,dR,a)},mR=be("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Yt()).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"},io=P.forwardRef(function(t,n){const{color:o,...r}=Fe({props:t,name:"MuiTypography"}),i=!fR[o],a=pR({...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=hR(y);return b.jsx(mR,{as:v,ref:n,className:ye(C.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(io.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 gR(e){return Pe("MuiPickersToolbar",e)}Te("MuiPickersToolbar",["root","title","content"]);const yR=["localeText"],Bi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Bi.displayName="PickerAdapterContext");const ma=function(t){const{localeText:n}=t,o=Me(t,yR),{adapter:r,localeText:i}=P.useContext(Bi)??{adapter:void 0,localeText:void 0},a=ae.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>H({},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(Bi.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ma.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ma.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 bR(){return P.useContext(Pu)}const Eu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Eu.displayName="PickerFieldPrivateContext");function Vy(){return P.useContext(Eu)}const ga=P.createContext(null);process.env.NODE_ENV!=="production"&&(ga.displayName="PickerContext");const Tr=()=>{const e=P.useContext(ga);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 Fy(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(ga.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(ma,{localeText:a,children:l})})})})})})}const kt=()=>P.useContext(Ou);function By(){const{ownerState:e}=kt(),t=dn();return P.useMemo(()=>H({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const vR=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],xR=e=>Ce({root:["root"],title:["title"],content:["content"]},gR,e),SR=ae.styled("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),wR=ae.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Kn(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),zy=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,f=Me(o,vR),p=By(),h=xR(a);return c?null:b.jsxs(SR,H({ref:n,className:ye(h.root,i),ownerState:p},f,{children:[b.jsx(io,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),b.jsx(wR,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(zy.displayName="PickersToolbar");const CR=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:H({},e)}}}}),Wy={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"},TR=Wy;CR(Wy);const ku=()=>{const e=P.useContext(Bi);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(()=>
|
|
118
|
-
`));return e};function SR(e){return Te("MuiDatePickerToolbar",e)}Ce("MuiDatePickerToolbar",["root","title"]);const wR=["toolbarFormat","toolbarPlaceholder","className","classes"],CR=e=>we({root:["root"],title:["title"]},SR,e),TR=ae.styled(Wy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),PR=ae.styled(ao,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Au=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Pe(o,wR),u=Qe(),{value:d,views:f,orientation:p}=Mr(),h=lo(),m=zy(),g=CR(l),y=P.useMemo(()=>{if(!u.isValid(d))return i;const v=wu(u,{format:r,views:f},!0);return u.formatByString(d,v)},[d,r,i,u,f]);return b.jsx(TR,U({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ye(g.root,a)},c,{children:b.jsx(PR,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Au.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Au.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 Ls=({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}};Ls.valueManager=En;function Gy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Qe(),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=he(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const ER=()=>Ru().defaultDates,ga=e=>{const t=Qe(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function MR(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Ls,internal_valueManager:En,internal_fieldValueManager:KD,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:kR,internal_useOpenPickerButtonAriaLabel:OR}),[t])}function OR(e){const t=Qe(),n=lo();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function kR(e){const t=Qe(),n=$s(e);return P.useMemo(()=>U({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function $s(e){const t=Qe(),n=ER();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Rp(t,e.minDate,n.minDate),maxDate:Rp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Ky(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:U({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return U({},n,o,{localeText:r},OD({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:U({toolbar:Au},n.slots)})}function mr(e){return typeof e=="string"}function Zy(e,t,n){return e===void 0||mr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xy(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 Wp(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=ye(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=Xy({...r,...o}),l=Wp(o),c=Wp(r),u=t(a),d=ye(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 Le(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:tn(n,o),{props:l,internalRef:c}=Qy({...i,externalSlotProps:a}),u=$e(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Zy(t,{...l,ref:u},o)}const Up={};function Jy(e,t){const n=P.useRef(Up);return n.current===Up&&(n.current=e(t)),n}const DR=[];function RR(e){P.useEffect(e,DR)}class Nu{constructor(){pe(this,"currentId",null);pe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});pe(this,"disposeEffect",()=>this.clear)}static create(){return new Nu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Xn(){const e=Jy(Nu.create).current;return RR(e.disposeEffect),e}function Bn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function IR(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eb(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"&&!IR(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 Vs=Bn(s.element,eb);Vs.isRequired=Bn(s.element.isRequired,eb);function Fs(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 yc(e,t){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},yc(e,t)}function _u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yc(e,t)}function AR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function NR(e,t){e.classList?e.classList.add(t):AR(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function _R(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hp(e.className,t):e.setAttribute("class",Hp(e.className&&e.className.baseVal||"",t))}const Yp={disabled:!1};var jR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,LR=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 Fi=_.createContext(null);var tb=function(t){return t.scrollTop},Xr="unmounted",Eo="exited",Mo="entering",Xo="entered",bc="exiting",an=function(e){_u(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=Eo,i.appearStatus=Mo):c=Xo:o.unmountOnExit||o.mountOnEnter?c=Xr:c=Eo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Xr?{status:Eo}: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!==Mo&&a!==Xo&&(i=Mo):(a===Mo||a===Xo)&&(i=bc)}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===Mo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this);a&&tb(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eo&&this.setState({status:Xr})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[er.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||Yp.disabled){this.safeSetState({status:Xo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Mo},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Xo},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:er.findDOMNode(this);if(!i||Yp.disabled){this.safeSetState({status:Eo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:bc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Eo},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:er.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===Xr)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=Pe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Fi.Provider,{value:null},typeof a=="function"?a(r,l):_.cloneElement(_.Children.only(a),l))},t}(_.Component);an.contextType=Fi;an.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=jR;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 Go(){}an.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go};an.UNMOUNTED=Xr;an.EXITED=Eo;an.ENTERING=Mo;an.ENTERED=Xo;an.EXITING=bc;var $R=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return NR(t,o)})},yl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return _R(t,o)})},ju=function(e){_u(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&&tb(r),l&&(this.appliedClasses[i][a]=l,$R(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&&yl(r,l),c&&yl(r,c),u&&yl(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Pe(r,["classNames"]);return _.createElement(an,U({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(_.Component);ju.defaultProps={classNames:""};ju.propTypes=process.env.NODE_ENV!=="production"?U({},an.propTypes,{classNames:LR,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function VR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(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 FR(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 Io(e,t,n){return n[t]!=null?n[t]:e.props[t]}function BR(e,t){return Lu(e.children,function(n){return _.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Io(n,"appear",e),enter:Io(n,"enter",e),exit:Io(n,"exit",e)})})}function zR(e,t,n){var o=Lu(e.children),r=FR(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:Io(a,"exit",e),enter:Io(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:Io(a,"exit",e),enter:Io(a,"enter",e)}))}}),r}var WR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},UR={component:"div",childFactory:function(t){return t}},Bs=function(e){_u(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(VR(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?BR(r,l):zR(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Lu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=U({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Pe(r,["component","childFactory"]),c=this.state.contextValue,u=WR(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?_.createElement(Fi.Provider,{value:c},u):_.createElement(Fi.Provider,{value:c},_.createElement(i,l,u))},t}(_.Component);Bs.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Bs.defaultProps=UR;const nb=e=>e.scrollTop;function Bi(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 vc(e){return`scale(${e}, ${e**2})`}const HR={entering:{opacity:1,transform:vc(1)},entered:{opacity:1,transform:"none"}},bl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xs=P.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=an,...v}=t,C=Xn(),x=P.useRef(),S=sa(),T=P.useRef(null),E=$e(T,Fs(i),n),M=I=>O=>{if(I){const N=T.current;O===void 0?I(N):I(N,O)}},A=M(d),k=M((I,O)=>{nb(I);const{duration:N,delay:F,easing:V}=Bi({style:m,timeout:g,easing:a},{mode:"enter"});let B;g==="auto"?(B=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=B):B=N,I.style.transition=[S.transitions.create("opacity",{duration:B,delay:F}),S.transitions.create("transform",{duration:bl?B:B*.666,delay:F,easing:V})].join(","),c&&c(I,O)}),$=M(u),j=M(h),w=M(I=>{const{duration:O,delay:N,easing:F}=Bi({style:m,timeout:g,easing:a},{mode:"exit"});let V;g==="auto"?(V=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=V):V=O,I.style.transition=[S.transitions.create("opacity",{duration:V,delay:N}),S.transitions.create("transform",{duration:bl?V:V*.666,delay:bl?N:N||V*.333,easing:F})].join(","),I.style.opacity=0,I.style.transform=vc(.75),f&&f(I)}),L=M(p),D=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:k,onEntered:$,onEntering:A,onExit:w,onExited:L,onExiting:j,addEndListener:D,timeout:g==="auto"?null:g,...v,children:(I,{ownerState:O,...N})=>P.cloneElement(i,{style:{opacity:0,transform:vc(.75),visibility:I==="exited"&&!l?"hidden":void 0,...HR[I],...m,...i.props.style},ref:E,...N})})});process.env.NODE_ENV!=="production"&&(xs.propTypes={addEndListener:s.func,appear:s.bool,children:Vs.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})])});xs&&(xs.muiSupportAuto=!0);const YR={entering:{opacity:1},entered:{opacity:1}},no=P.forwardRef(function(t,n){const o=sa(),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=an,...x}=t,S=P.useRef(null),T=$e(S,Fs(l),n),E=D=>I=>{if(D){const O=S.current;I===void 0?D(O):D(O,I)}},M=E(p),A=E((D,I)=>{nb(D);const O=Bi({style:y,timeout:v,easing:c},{mode:"enter"});D.style.webkitTransition=o.transitions.create("opacity",O),D.style.transition=o.transitions.create("opacity",O),d&&d(D,I)}),k=E(f),$=E(g),j=E(D=>{const I=Bi({style:y,timeout:v,easing:c},{mode:"exit"});D.style.webkitTransition=o.transitions.create("opacity",I),D.style.transition=o.transitions.create("opacity",I),h&&h(D)}),w=E(m),L=D=>{i&&i(S.current,D)};return b.jsx(C,{appear:a,in:u,nodeRef:S,onEnter:A,onEntered:k,onEntering:M,onExit:j,onExited:w,onExiting:$,addEndListener:L,timeout:v,...x,children:(D,{ownerState:I,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...YR[D],...y,...l.props.style},ref:T,...O})})});process.env.NODE_ENV!=="production"&&(no.propTypes={addEndListener:s.func,appear:s.bool,children:Vs.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 qR(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 ob(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=qR(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rb(e,t,n,o){return e[t]===void 0?null:ob(e,t,n,o)}function xc(){return null}rb.isRequired=ob;xc.isRequired=xc;const sb=process.env.NODE_ENV==="production"?xc:rb;function GR(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 KR=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,GR,r)},ZR=be("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}`]]}})(Xe(({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)"}}]}))),zs=P.forwardRef(function(t,n){var h;const o=Fe({props:t,name:"MuiPaper"}),r=sa(),{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=KR(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(ZR,{as:a,ownerState:f,className:ye(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(${Ci("#fff",_l(l))}, ${Ci("#fff",_l(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(zs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Bn(sb,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function Vn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Bt="top",on="bottom",rn="right",zt="left",$u="auto",Ws=[Bt,on,rn,zt],gr="start",Ss="end",XR="clippingParents",ib="viewport",Vr="popper",QR="reference",qp=Ws.reduce(function(e,t){return e.concat([t+"-"+gr,t+"-"+Ss])},[]),ab=[].concat(Ws,[$u]).reduce(function(e,t){return e.concat([t,t+"-"+gr,t+"-"+Ss])},[]),JR="beforeRead",eI="read",tI="afterRead",nI="beforeMain",oI="main",rI="afterMain",sI="beforeWrite",iI="write",aI="afterWrite",lI=[JR,eI,tI,nI,oI,rI,sI,iI,aI];function Mn(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vo(e){var t=qt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vu(e){if(typeof ShadowRoot>"u")return!1;var t=qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cI(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!nn(i)||!Mn(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 uI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!nn(r)||!Mn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const dI={name:"applyStyles",enabled:!0,phase:"write",fn:cI,effect:uI,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var _o=Math.max,zi=Math.min,yr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function lb(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function br(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&nn(e)&&(r=e.offsetWidth>0&&yr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yr(o.height)/e.offsetHeight||1);var a=Vo(e)?qt(e):window,l=a.visualViewport,c=!lb()&&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 Fu(e){var t=br(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 cb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Fn(e){return qt(e).getComputedStyle(e)}function fI(e){return["table","td","th"].indexOf(Mn(e))>=0}function co(e){return((Vo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ya(e){return Mn(e)==="html"?e:e.assignedSlot||e.parentNode||(Vu(e)?e.host:null)||co(e)}function Gp(e){return!nn(e)||Fn(e).position==="fixed"?null:e.offsetParent}function pI(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&nn(e)){var o=Fn(e);if(o.position==="fixed")return null}var r=ya(e);for(Vu(r)&&(r=r.host);nn(r)&&["html","body"].indexOf(Mn(r))<0;){var i=Fn(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 Us(e){for(var t=qt(e),n=Gp(e);n&&fI(n)&&Fn(n).position==="static";)n=Gp(n);return n&&(Mn(n)==="html"||Mn(n)==="body"&&Fn(n).position==="static")?t:n||pI(e)||t}function Bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function is(e,t,n){return _o(e,zi(t,n))}function hI(e,t,n){var o=is(e,t,n);return o>n?n:o}function ub(){return{top:0,right:0,bottom:0,left:0}}function db(e){return Object.assign({},ub(),e)}function fb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var mI=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,db(typeof t!="number"?t:fb(t,Ws))};function gI(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Cn(n.placement),c=Bu(l),u=[zt,rn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=mI(r.padding,n),p=Fu(i),h=c==="y"?Bt:zt,m=c==="y"?on:rn,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=Us(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=is(S,E,T),A=c;n.modifiersData[o]=(t={},t[A]=M,t.centerOffset=M-E,t)}}function yI(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)||cb(t.elements.popper,r)&&(t.elements.arrow=r))}const bI={name:"arrow",enabled:!0,phase:"main",fn:gI,effect:yI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vr(e){return e.split("-")[1]}var vI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xI(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:yr(n*r)/r||0,y:yr(o*r)/r||0}}function Kp(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=zt,S=Bt,T=window;if(u){var E=Us(n),M="clientHeight",A="clientWidth";if(E===qt(n)&&(E=co(n),Fn(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",A="scrollWidth")),E=E,r===Bt||(r===zt||r===rn)&&i===Ss){S=on;var k=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=k-o.height,g*=c?1:-1}if(r===zt||(r===Bt||r===on)&&i===Ss){x=rn;var $=f&&E===T&&T.visualViewport?T.visualViewport.width:E[A];h-=$-o.width,h*=c?1:-1}}var j=Object.assign({position:l},u&&vI),w=d===!0?xI({x:h,y:g},qt(n)):{x:h,y:g};if(h=w.x,g=w.y,c){var L;return Object.assign({},j,(L={},L[S]=C?"0":"",L[x]=v?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},j,(t={},t[S]=C?g+"px":"",t[x]=v?h+"px":"",t.transform="",t))}function SI(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:Cn(t.placement),variation:vr(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,Kp(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,Kp(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 wI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SI,data:{}};var ii={passive:!0};function CI(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=qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ii)}),l&&c.addEventListener("resize",n.update,ii),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ii)}),l&&c.removeEventListener("resize",n.update,ii)}}const TI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CI,data:{}};var PI={left:"right",right:"left",bottom:"top",top:"bottom"};function xi(e){return e.replace(/left|right|bottom|top/g,function(t){return PI[t]})}var EI={start:"end",end:"start"};function Zp(e){return e.replace(/start|end/g,function(t){return EI[t]})}function zu(e){var t=qt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Wu(e){return br(co(e)).left+zu(e).scrollLeft}function MI(e,t){var n=qt(e),o=co(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=lb();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Wu(e),y:c}}function OI(e){var t,n=co(e),o=zu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=_o(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=_o(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Wu(e),c=-o.scrollTop;return Fn(r||n).direction==="rtl"&&(l+=_o(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Uu(e){var t=Fn(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function pb(e){return["html","body","#document"].indexOf(Mn(e))>=0?e.ownerDocument.body:nn(e)&&Uu(e)?e:pb(ya(e))}function as(e,t){var n;t===void 0&&(t=[]);var o=pb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=qt(o),a=r?[i].concat(i.visualViewport||[],Uu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(as(ya(a)))}function wc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kI(e,t){var n=br(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 Xp(e,t,n){return t===ib?wc(MI(e,n)):Vo(t)?kI(t,n):wc(OI(co(e)))}function DI(e){var t=as(ya(e)),n=["absolute","fixed"].indexOf(Fn(e).position)>=0,o=n&&nn(e)?Us(e):e;return Vo(o)?t.filter(function(r){return Vo(r)&&cb(r,o)&&Mn(r)!=="body"}):[]}function RI(e,t,n,o){var r=t==="clippingParents"?DI(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Xp(e,u,o);return c.top=_o(d.top,c.top),c.right=zi(d.right,c.right),c.bottom=zi(d.bottom,c.bottom),c.left=_o(d.left,c.left),c},Xp(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 hb(e){var t=e.reference,n=e.element,o=e.placement,r=o?Cn(o):null,i=o?vr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case Bt:c={x:a,y:t.y-n.height};break;case on:c={x:a,y:t.y+t.height};break;case rn:c={x:t.x+t.width,y:l};break;case zt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?Bu(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case gr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Ss:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ws(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?XR:l,u=n.rootBoundary,d=u===void 0?ib:u,f=n.elementContext,p=f===void 0?Vr:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=db(typeof y!="number"?y:fb(y,Ws)),C=p===Vr?QR:Vr,x=e.rects.popper,S=e.elements[m?C:p],T=RI(Vo(S)?S:S.contextElement||co(e.elements.popper),c,d,a),E=br(e.elements.reference),M=hb({reference:E,element:x,placement:r}),A=wc(Object.assign({},x,M)),k=p===Vr?A:E,$={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},j=e.modifiersData.offset;if(p===Vr&&j){var w=j[r];Object.keys($).forEach(function(L){var D=[rn,on].indexOf(L)>=0?1:-1,I=[Bt,on].indexOf(L)>=0?"y":"x";$[L]+=w[I]*D})}return $}function II(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?ab:c,d=vr(o),f=d?l?qp:qp.filter(function(m){return vr(m)===d}):Ws,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]=ws(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[Cn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function AI(e){if(Cn(e)===$u)return[];var t=xi(e);return[Zp(e),t,Zp(t)]}function NI(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=Cn(y),C=v===y,x=c||(C||!m?[xi(y)]:AI(y)),S=[y].concat(x).reduce(function(Z,re){return Z.concat(Cn(re)===$u?II(t,{placement:re,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):re)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,A=!0,k=S[0],$=0;$<S.length;$++){var j=S[$],w=Cn(j),L=vr(j)===gr,D=[Bt,on].indexOf(w)>=0,I=D?"width":"height",O=ws(t,{placement:j,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),N=D?L?rn:zt:L?on:Bt;T[I]>E[I]&&(N=xi(N));var F=xi(N),V=[];if(i&&V.push(O[w]<=0),l&&V.push(O[N]<=0,O[F]<=0),V.every(function(Z){return Z})){k=j,A=!1;break}M.set(j,V)}if(A)for(var B=m?3:1,R=function(re){var X=S.find(function(Q){var K=M.get(Q);if(K)return K.slice(0,re).every(function(te){return te})});if(X)return k=X,"break"},Y=B;Y>0;Y--){var G=R(Y);if(G==="break")break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}}const _I={name:"flip",enabled:!0,phase:"main",fn:NI,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 Jp(e){return[Bt,rn,on,zt].some(function(t){return e[t]>=0})}function jI(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=ws(t,{elementContext:"reference"}),l=ws(t,{altBoundary:!0}),c=Qp(a,o),u=Qp(l,r,i),d=Jp(c),f=Jp(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 LI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jI};function $I(e,t,n){var o=Cn(e),r=[zt,Bt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[zt,rn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function VI(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ab.reduce(function(d,f){return d[f]=$I(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 FI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VI};function BI(e){var t=e.state,n=e.name;t.modifiersData[n]=hb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const zI={name:"popperOffsets",enabled:!0,phase:"read",fn:BI,data:{}};function WI(e){return e==="x"?"y":"x"}function UI(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=ws(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=Cn(t.placement),C=vr(t.placement),x=!C,S=Bu(v),T=WI(S),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,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(E){if(i){var L,D=S==="y"?Bt:zt,I=S==="y"?on:rn,O=S==="y"?"height":"width",N=E[S],F=N+y[D],V=N-y[I],B=h?-A[O]/2:0,R=C===gr?M[O]:A[O],Y=C===gr?-A[O]:-M[O],G=t.elements.arrow,Z=h&&G?Fu(G):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),X=re[D],Q=re[I],K=is(0,M[O],Z[O]),te=x?M[O]/2-B-K-X-$.mainAxis:R-K-X-$.mainAxis,z=x?-M[O]/2+B+K+Q+$.mainAxis:Y+K+Q+$.mainAxis,H=t.elements.arrow&&Us(t.elements.arrow),W=H?S==="y"?H.clientTop||0:H.clientLeft||0:0,ee=(L=j==null?void 0:j[S])!=null?L:0,J=N+te-ee-W,ie=N+z-ee,ne=is(h?zi(F,J):F,N,h?_o(V,ie):V);E[S]=ne,w[S]=ne-N}if(l){var de,se=S==="x"?Bt:zt,ue=S==="x"?on:rn,le=E[T],fe=T==="y"?"height":"width",me=le+y[se],Ie=le-y[ue],Oe=[Bt,zt].indexOf(v)!==-1,qe=(de=j==null?void 0:j[T])!=null?de:0,tt=Oe?me:le-M[fe]-A[fe]-qe+$.altAxis,St=Oe?le+M[fe]+A[fe]-qe-$.altAxis:Ie,Tt=h&&Oe?hI(tt,le,St):is(h?tt:me,le,h?St:Ie);E[T]=Tt,w[T]=Tt-le}t.modifiersData[o]=w}}const HI={name:"preventOverflow",enabled:!0,phase:"main",fn:UI,requiresIfExists:["offset"]};function YI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qI(e){return e===qt(e)||!nn(e)?zu(e):YI(e)}function GI(e){var t=e.getBoundingClientRect(),n=yr(t.width)/e.offsetWidth||1,o=yr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function KI(e,t,n){n===void 0&&(n=!1);var o=nn(t),r=nn(t)&&GI(t),i=co(t),a=br(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Mn(t)!=="body"||Uu(i))&&(l=qI(t)),nn(t)?(c=br(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Wu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function ZI(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 XI(e){var t=ZI(e);return lI.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function QI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JI(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 eh={placement:"bottom",modifiers:[],strategy:"absolute"};function th(){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 e2(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?eh:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},eh,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:Vo(l)?as(l):l.contextElement?as(l.contextElement):[],popper:as(c)};var x=XI(JI([].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(th(C,x)){d.rects={reference:KI(C,Us(x),d.options.strategy==="fixed"),popper:Fu(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function($){return d.modifiersData[$.name]=Object.assign({},$.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,k=T.name;typeof E=="function"&&(d=E({state:d,options:A,name:k,instance:h})||d)}}}},update:QI(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!th(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 t2=[TI,zI,wI,dI,FI,_I,HI,bI,LI],n2=e2({defaultModifiers:t2});function o2(e){return typeof e=="function"?e():e}const Cs=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=$e(P.isValidElement(o)?Fs(o):null,n);if(Ct(()=>{i||l(o2(r)||document.body)},[r,i]),Ct(()=>{if(a&&!i)return tf(n,a),()=>{tf(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const u={ref:c};return P.cloneElement(o,u)}return o}return a&&e0.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Cs.propTypes={children:s.node,container:s.oneOfType([Vn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Cs.propTypes=am(Cs.propTypes));function r2(e){return Te("MuiPopper",e)}Ce("MuiPopper",["root"]);function s2(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 Wi(e){return typeof e=="function"?e():e}function ba(e){return e.nodeType!==void 0}function i2(e){return!ba(e)}const a2=e=>{const{classes:t}=e;return we({root:["root"]},r2,t)},l2={},c2=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=$e(v,n),x=P.useRef(null),S=$e(x,f),T=P.useRef(S);Ct(()=>{T.current=S},[S]),P.useImperativeHandle(f,()=>x.current,[]);const E=s2(u,i),[M,A]=P.useState(E),[k,$]=P.useState(Wi(o));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{o&&$(Wi(o))},[o]),Ct(()=>{if(!k||!c)return;const I=F=>{A(F.placement)};if(process.env.NODE_ENV!=="production"&&k&&ba(k)&&k.nodeType===1){const F=k.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 O=[{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([
|
|
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(()=>H({},TR,e.localeText),[e.localeText]);return P.useMemo(()=>H({},e,{localeText:t}),[e,t])},Ze=()=>ku().adapter,ao=()=>ku().localeText,hc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],mc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Uy=["minDateTime","maxDateTime"],PR=[...hc,...mc,...Uy],Hy=e=>PR.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),ER=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],Yy=(e,t)=>P.useMemo(()=>{const n=H({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return ER.forEach(r),t==="date"?hc.forEach(r):t==="time"?mc.forEach(r):t==="date-time"&&(hc.forEach(r),mc.forEach(r),Uy.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),MR=({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},OR=({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},kR=(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}},DR=({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=$y(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(jo(p,r),h),r))}return H({},c,{format:a,maxLength:h,value:p,placeholder:kR(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},RR=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(DR(H({},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},IR=({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=MR(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=OR(H({},e,{expandedFormat:t})),o=RR(H({},e,{expandedFormat:t,escapedParts:n}));return IR(H({},e,{sections:o}))},Du=()=>P.useContext(ga),AR=()=>{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 NR(e){return Pe("MuiDatePickerToolbar",e)}Te("MuiDatePickerToolbar",["root","title"]);const _R=["toolbarFormat","toolbarPlaceholder","className","classes"],jR=e=>Ce({root:["root"],title:["title"]},NR,e),LR=ae.styled(zy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),$R=ae.styled(io,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Ru=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Me(o,_R),u=Ze(),{value:d,views:f,orientation:p}=Tr(),h=ao(),m=By(),g=jR(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(LR,H({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ye(g.root,a)},c,{children:b.jsx($R,{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 $s=({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}};$s.valueManager=Pn;function qy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Ze(),l=P.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),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=he(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const VR=()=>ku().defaultDates,ya=e=>{const t=Ze(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function FR(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:$s,internal_valueManager:Pn,internal_fieldValueManager:lR,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:zR,internal_useOpenPickerButtonAriaLabel:BR}),[t])}function BR(e){const t=Ze(),n=ao();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function zR(e){const t=Ze(),n=Vs(e);return P.useMemo(()=>H({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Vs(e){const t=Ze(),n=VR();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 Gy(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Vs(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:H({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return H({},n,o,{localeText:r},BD({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:H({toolbar:Ru},n.slots)})}function fr(e){return typeof e=="string"}function Ky(e,t,n){return e===void 0||fr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Zy(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 Xy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=ye(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=Zy({...r,...o}),l=Bp(o),c=Bp(r),u=t(a),d=ye(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 Le(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:en(n,o),{props:l,internalRef:c}=Xy({...i,externalSlotProps:a}),u=$e(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Ky(t,{...l,ref:u},o)}const zp={};function Qy(e,t){const n=P.useRef(zp);return n.current===zp&&(n.current=e(t)),n}const WR=[];function UR(e){P.useEffect(e,WR)}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 Zn(){const e=Qy(Iu.create).current;return UR(e.disposeEffect),e}function Fn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function HR(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Jy(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"&&!HR(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 Fs=Fn(s.element,Jy);Fs.isRequired=Fn(s.element.isRequired,Jy);function Bs(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 gc(e,t){return gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},gc(e,t)}function Au(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gc(e,t)}function YR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function qR(e,t){e.classList?e.classList.add(t):YR(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 GR(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 KR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,ZR=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 zi=k.createContext(null);var eb=function(t){return t.scrollTop},Zr="unmounted",To="exited",Po="entering",Go="entered",yc="exiting",sn=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=To,i.appearStatus=Po):c=Go:o.unmountOnExit||o.mountOnEnter?c=Zr:c=To,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Zr?{status:To}: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!==Po&&a!==Go&&(i=Po):(a===Po||a===Go)&&(i=yc)}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===Po){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Xo.findDOMNode(this);a&&eb(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===To&&this.setState({status:Zr})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[Xo.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:Go},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Po},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Go},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:Xo.findDOMNode(this);if(!i||Up.disabled){this.safeSetState({status:To},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:yc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:To},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:Xo.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===Zr)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Me(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(zi.Provider,{value:null},typeof a=="function"?a(r,l):k.cloneElement(k.Children.only(a),l))},t}(k.Component);sn.contextType=zi;sn.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=KR;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 Ho(){}sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ho,onEntering:Ho,onEntered:Ho,onExit:Ho,onExiting:Ho,onExited:Ho};sn.UNMOUNTED=Zr;sn.EXITED=To;sn.ENTERING=Po;sn.ENTERED=Go;sn.EXITING=yc;var XR=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return qR(t,o)})},gl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return GR(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&&eb(r),l&&(this.appliedClasses[i][a]=l,XR(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&&gl(r,l),c&&gl(r,c),u&&gl(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Me(r,["classNames"]);return k.createElement(sn,H({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(k.Component);Nu.defaultProps={classNames:""};Nu.propTypes=process.env.NODE_ENV!=="production"?H({},sn.propTypes,{classNames:ZR,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function QR(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&&k.isValidElement(i)?t(i):i},o=Object.create(null);return e&&k.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function JR(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 Do(e,t,n){return n[t]!=null?n[t]:e.props[t]}function eI(e,t){return _u(e.children,function(n){return k.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Do(n,"appear",e),enter:Do(n,"enter",e),exit:Do(n,"exit",e)})})}function tI(e,t,n){var o=_u(e.children),r=JR(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(k.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=k.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=k.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Do(a,"exit",e),enter:Do(a,"enter",e)}):!c&&l&&!d?r[i]=k.cloneElement(a,{in:!1}):c&&l&&k.isValidElement(u)&&(r[i]=k.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Do(a,"exit",e),enter:Do(a,"enter",e)}))}}),r}var nI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},oI={component:"div",childFactory:function(t){return t}},zs=function(e){Au(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(QR(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?eI(r,l):tI(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=H({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Me(r,["component","childFactory"]),c=this.state.contextValue,u=nI(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?k.createElement(zi.Provider,{value:c},u):k.createElement(zi.Provider,{value:c},k.createElement(i,l,u))},t}(k.Component);zs.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};zs.defaultProps=oI;const tb=e=>e.scrollTop;function Wi(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 bc(e){return`scale(${e}, ${e**2})`}const rI={entering:{opacity:1,transform:bc(1)},entered:{opacity:1,transform:"none"}},yl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vs=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=sn,...v}=t,C=Zn(),S=P.useRef(),w=aa(),T=P.useRef(null),E=$e(T,Bs(i),n),M=A=>O=>{if(A){const j=T.current;O===void 0?A(j):A(j,O)}},_=M(d),D=M((A,O)=>{tb(A);const{duration:j,delay:B,easing:F}=Wi({style:m,timeout:g,easing:a},{mode:"enter"});let z;g==="auto"?(z=w.transitions.getAutoHeightDuration(A.clientHeight),S.current=z):z=j,A.style.transition=[w.transitions.create("opacity",{duration:z,delay:B}),w.transitions.create("transform",{duration:yl?z:z*.666,delay:B,easing:F})].join(","),c&&c(A,O)}),$=M(u),N=M(h),x=M(A=>{const{duration:O,delay:j,easing:B}=Wi({style:m,timeout:g,easing:a},{mode:"exit"});let F;g==="auto"?(F=w.transitions.getAutoHeightDuration(A.clientHeight),S.current=F):F=O,A.style.transition=[w.transitions.create("opacity",{duration:F,delay:j}),w.transitions.create("transform",{duration:yl?F:F*.666,delay:yl?j:j||F*.333,easing:B})].join(","),A.style.opacity=0,A.style.transform=bc(.75),f&&f(A)}),L=M(p),I=A=>{g==="auto"&&C.start(S.current||0,A),o&&o(T.current,A)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:D,onEntered:$,onEntering:_,onExit:x,onExited:L,onExiting:N,addEndListener:I,timeout:g==="auto"?null:g,...v,children:(A,{ownerState:O,...j})=>P.cloneElement(i,{style:{opacity:0,transform:bc(.75),visibility:A==="exited"&&!l?"hidden":void 0,...rI[A],...m,...i.props.style},ref:E,...j})})});process.env.NODE_ENV!=="production"&&(vs.propTypes={addEndListener:s.func,appear:s.bool,children:Fs.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})])});vs&&(vs.muiSupportAuto=!0);const sI={entering:{opacity:1},entered:{opacity:1}},to=P.forwardRef(function(t,n){const o=aa(),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=sn,...S}=t,w=P.useRef(null),T=$e(w,Bs(l),n),E=I=>A=>{if(I){const O=w.current;A===void 0?I(O):I(O,A)}},M=E(p),_=E((I,A)=>{tb(I);const O=Wi({style:y,timeout:v,easing:c},{mode:"enter"});I.style.webkitTransition=o.transitions.create("opacity",O),I.style.transition=o.transitions.create("opacity",O),d&&d(I,A)}),D=E(f),$=E(g),N=E(I=>{const A=Wi({style:y,timeout:v,easing:c},{mode:"exit"});I.style.webkitTransition=o.transitions.create("opacity",A),I.style.transition=o.transitions.create("opacity",A),h&&h(I)}),x=E(m),L=I=>{i&&i(w.current,I)};return b.jsx(C,{appear:a,in:u,nodeRef:w,onEnter:_,onEntered:D,onEntering:M,onExit:N,onExited:x,onExiting:$,addEndListener:L,timeout:v,...S,children:(I,{ownerState:A,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:I==="exited"&&!u?"hidden":void 0,...sI[I],...y,...l.props.style},ref:T,...O})})});process.env.NODE_ENV!=="production"&&(to.propTypes={addEndListener:s.func,appear:s.bool,children:Fs.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 iI(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 nb(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=iI(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ob(e,t,n,o){return e[t]===void 0?null:nb(e,t,n,o)}function vc(){return null}ob.isRequired=nb;vc.isRequired=vc;const rb=process.env.NODE_ENV==="production"?vc:ob;function aI(e){return Pe("MuiPaper",e)}Te("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 lI=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ce(i,aI,r)},cI=be("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ws=P.forwardRef(function(t,n){var h;const o=Fe({props:t,name:"MuiPaper"}),r=aa(),{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=lI(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(cI,{as:a,ownerState:f,className:ye(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(${Pi("#fff",Nl(l))}, ${Pi("#fff",Nl(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Ws.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Fn(rb,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 $n(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 Ft="top",nn="bottom",on="right",Bt="left",ju="auto",Us=[Ft,nn,on,Bt],pr="start",xs="end",uI="clippingParents",sb="viewport",$r="popper",dI="reference",Hp=Us.reduce(function(e,t){return e.concat([t+"-"+pr,t+"-"+xs])},[]),ib=[].concat(Us,[ju]).reduce(function(e,t){return e.concat([t,t+"-"+pr,t+"-"+xs])},[]),fI="beforeRead",pI="read",hI="afterRead",mI="beforeMain",gI="main",yI="afterMain",bI="beforeWrite",vI="write",xI="afterWrite",SI=[fI,pI,hI,mI,gI,yI,bI,vI,xI];function En(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lo(e){var t=qt(e).Element;return e instanceof t||e instanceof Element}function tn(e){var t=qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lu(e){if(typeof ShadowRoot>"u")return!1;var t=qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wI(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];!tn(i)||!En(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 CI(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},{});!tn(r)||!En(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const TI={name:"applyStyles",enabled:!0,phase:"write",fn:wI,effect:CI,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var Ao=Math.max,Ui=Math.min,hr=Math.round;function xc(){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 ab(){return!/^((?!chrome|android).)*safari/i.test(xc())}function mr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&tn(e)&&(r=e.offsetWidth>0&&hr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&hr(o.height)/e.offsetHeight||1);var a=Lo(e)?qt(e):window,l=a.visualViewport,c=!ab()&&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=mr(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 lb(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 Vn(e){return qt(e).getComputedStyle(e)}function PI(e){return["table","td","th"].indexOf(En(e))>=0}function lo(e){return((Lo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ba(e){return En(e)==="html"?e:e.assignedSlot||e.parentNode||(Lu(e)?e.host:null)||lo(e)}function Yp(e){return!tn(e)||Vn(e).position==="fixed"?null:e.offsetParent}function EI(e){var t=/firefox/i.test(xc()),n=/Trident/i.test(xc());if(n&&tn(e)){var o=Vn(e);if(o.position==="fixed")return null}var r=ba(e);for(Lu(r)&&(r=r.host);tn(r)&&["html","body"].indexOf(En(r))<0;){var i=Vn(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 Hs(e){for(var t=qt(e),n=Yp(e);n&&PI(n)&&Vn(n).position==="static";)n=Yp(n);return n&&(En(n)==="html"||En(n)==="body"&&Vn(n).position==="static")?t:n||EI(e)||t}function Vu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ss(e,t,n){return Ao(e,Ui(t,n))}function MI(e,t,n){var o=ss(e,t,n);return o>n?n:o}function cb(){return{top:0,right:0,bottom:0,left:0}}function ub(e){return Object.assign({},cb(),e)}function db(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var OI=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ub(typeof t!="number"?t:db(t,Us))};function kI(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=wn(n.placement),c=Vu(l),u=[Bt,on].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=OI(r.padding,n),p=$u(i),h=c==="y"?Ft:Bt,m=c==="y"?nn:on,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=Hs(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=ss(w,E,T),_=c;n.modifiersData[o]=(t={},t[_]=M,t.centerOffset=M-E,t)}}function DI(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)||lb(t.elements.popper,r)&&(t.elements.arrow=r))}const RI={name:"arrow",enabled:!0,phase:"main",fn:kI,effect:DI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gr(e){return e.split("-")[1]}var II={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AI(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:hr(n*r)/r||0,y:hr(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=Bt,w=Ft,T=window;if(u){var E=Hs(n),M="clientHeight",_="clientWidth";if(E===qt(n)&&(E=lo(n),Vn(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",_="scrollWidth")),E=E,r===Ft||(r===Bt||r===on)&&i===xs){w=nn;var D=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=D-o.height,g*=c?1:-1}if(r===Bt||(r===Ft||r===nn)&&i===xs){S=on;var $=f&&E===T&&T.visualViewport?T.visualViewport.width:E[_];h-=$-o.width,h*=c?1:-1}}var N=Object.assign({position:l},u&&II),x=d===!0?AI({x:h,y:g},qt(n)):{x:h,y:g};if(h=x.x,g=x.y,c){var L;return Object.assign({},N,(L={},L[w]=C?"0":"",L[S]=v?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},N,(t={},t[w]=C?g+"px":"",t[S]=v?h+"px":"",t.transform="",t))}function NI(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:wn(t.placement),variation:gr(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 _I={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NI,data:{}};var li={passive:!0};function jI(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=qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,li)}),l&&c.addEventListener("resize",n.update,li),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,li)}),l&&c.removeEventListener("resize",n.update,li)}}const LI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jI,data:{}};var $I={left:"right",right:"left",bottom:"top",top:"bottom"};function wi(e){return e.replace(/left|right|bottom|top/g,function(t){return $I[t]})}var VI={start:"end",end:"start"};function Gp(e){return e.replace(/start|end/g,function(t){return VI[t]})}function Fu(e){var t=qt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Bu(e){return mr(lo(e)).left+Fu(e).scrollLeft}function FI(e,t){var n=qt(e),o=lo(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=ab();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Bu(e),y:c}}function BI(e){var t,n=lo(e),o=Fu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Ao(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ao(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Bu(e),c=-o.scrollTop;return Vn(r||n).direction==="rtl"&&(l+=Ao(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function zu(e){var t=Vn(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function fb(e){return["html","body","#document"].indexOf(En(e))>=0?e.ownerDocument.body:tn(e)&&zu(e)?e:fb(ba(e))}function is(e,t){var n;t===void 0&&(t=[]);var o=fb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=qt(o),a=r?[i].concat(i.visualViewport||[],zu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(is(ba(a)))}function Sc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zI(e,t){var n=mr(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===sb?Sc(FI(e,n)):Lo(t)?zI(t,n):Sc(BI(lo(e)))}function WI(e){var t=is(ba(e)),n=["absolute","fixed"].indexOf(Vn(e).position)>=0,o=n&&tn(e)?Hs(e):e;return Lo(o)?t.filter(function(r){return Lo(r)&&lb(r,o)&&En(r)!=="body"}):[]}function UI(e,t,n,o){var r=t==="clippingParents"?WI(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=Ao(d.top,c.top),c.right=Ui(d.right,c.right),c.bottom=Ui(d.bottom,c.bottom),c.left=Ao(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 pb(e){var t=e.reference,n=e.element,o=e.placement,r=o?wn(o):null,i=o?gr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case Ft:c={x:a,y:t.y-n.height};break;case nn:c={x:a,y:t.y+t.height};break;case on:c={x:t.x+t.width,y:l};break;case Bt: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 pr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case xs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Ss(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?uI:l,u=n.rootBoundary,d=u===void 0?sb:u,f=n.elementContext,p=f===void 0?$r:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=ub(typeof y!="number"?y:db(y,Us)),C=p===$r?dI:$r,S=e.rects.popper,w=e.elements[m?C:p],T=UI(Lo(w)?w:w.contextElement||lo(e.elements.popper),c,d,a),E=mr(e.elements.reference),M=pb({reference:E,element:S,placement:r}),_=Sc(Object.assign({},S,M)),D=p===$r?_:E,$={top:T.top-D.top+v.top,bottom:D.bottom-T.bottom+v.bottom,left:T.left-D.left+v.left,right:D.right-T.right+v.right},N=e.modifiersData.offset;if(p===$r&&N){var x=N[r];Object.keys($).forEach(function(L){var I=[on,nn].indexOf(L)>=0?1:-1,A=[Ft,nn].indexOf(L)>=0?"y":"x";$[L]+=x[A]*I})}return $}function HI(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?ib:c,d=gr(o),f=d?l?Hp:Hp.filter(function(m){return gr(m)===d}):Us,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Ss(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[wn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function YI(e){if(wn(e)===ju)return[];var t=wi(e);return[Gp(e),t,Gp(t)]}function qI(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=wn(y),C=v===y,S=c||(C||!m?[wi(y)]:YI(y)),w=[y].concat(S).reduce(function(K,oe){return K.concat(wn(oe)===ju?HI(t,{placement:oe,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):oe)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,_=!0,D=w[0],$=0;$<w.length;$++){var N=w[$],x=wn(N),L=gr(N)===pr,I=[Ft,nn].indexOf(x)>=0,A=I?"width":"height",O=Ss(t,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=I?L?on:Bt:L?nn:Ft;T[A]>E[A]&&(j=wi(j));var B=wi(j),F=[];if(i&&F.push(O[x]<=0),l&&F.push(O[j]<=0,O[B]<=0),F.every(function(K){return K})){D=N,_=!1;break}M.set(N,F)}if(_)for(var z=m?3:1,R=function(oe){var Z=w.find(function(Q){var se=M.get(Q);if(se)return se.slice(0,oe).every(function(J){return J})});if(Z)return D=Z,"break"},Y=z;Y>0;Y--){var q=R(Y);if(q==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const GI={name:"flip",enabled:!0,phase:"main",fn:qI,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[Ft,on,nn,Bt].some(function(t){return e[t]>=0})}function KI(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ss(t,{elementContext:"reference"}),l=Ss(t,{altBoundary:!0}),c=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 ZI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KI};function XI(e,t,n){var o=wn(e),r=[Bt,Ft].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,[Bt,on].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function QI(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ib.reduce(function(d,f){return d[f]=XI(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 JI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QI};function e2(e){var t=e.state,n=e.name;t.modifiersData[n]=pb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const t2={name:"popperOffsets",enabled:!0,phase:"read",fn:e2,data:{}};function n2(e){return e==="x"?"y":"x"}function o2(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,y=Ss(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=wn(t.placement),C=gr(t.placement),S=!C,w=Vu(v),T=n2(w),E=t.modifiersData.popperOffsets,M=t.rects.reference,_=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,$=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(E){if(i){var L,I=w==="y"?Ft:Bt,A=w==="y"?nn:on,O=w==="y"?"height":"width",j=E[w],B=j+y[I],F=j-y[A],z=h?-_[O]/2:0,R=C===pr?M[O]:_[O],Y=C===pr?-_[O]:-M[O],q=t.elements.arrow,K=h&&q?$u(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cb(),Z=oe[I],Q=oe[A],se=ss(0,M[O],K[O]),J=S?M[O]/2-z-se-Z-$.mainAxis:R-se-Z-$.mainAxis,V=S?-M[O]/2+z+se+Q+$.mainAxis:Y+se+Q+$.mainAxis,U=t.elements.arrow&&Hs(t.elements.arrow),W=U?w==="y"?U.clientTop||0:U.clientLeft||0:0,ee=(L=N==null?void 0:N[w])!=null?L:0,X=j+J-ee-W,re=j+V-ee,te=ss(h?Ui(B,X):B,j,h?Ao(F,re):F);E[w]=te,x[w]=te-j}if(l){var ue,ie=w==="x"?Ft:Bt,me=w==="x"?nn:on,le=E[T],de=T==="y"?"height":"width",pe=le+y[ie],Ne=le-y[me],Oe=[Ft,Bt].indexOf(v)!==-1,Xe=(ue=N==null?void 0:N[T])!=null?ue:0,tt=Oe?pe:le-M[de]-_[de]-Xe+$.altAxis,wt=Oe?le+M[de]+_[de]-Xe-$.altAxis:Ne,mt=h&&Oe?MI(tt,le,wt):ss(h?tt:pe,le,h?wt:Ne);E[T]=mt,x[T]=mt-le}t.modifiersData[o]=x}}const r2={name:"preventOverflow",enabled:!0,phase:"main",fn:o2,requiresIfExists:["offset"]};function s2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i2(e){return e===qt(e)||!tn(e)?Fu(e):s2(e)}function a2(e){var t=e.getBoundingClientRect(),n=hr(t.width)/e.offsetWidth||1,o=hr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function l2(e,t,n){n===void 0&&(n=!1);var o=tn(t),r=tn(t)&&a2(t),i=lo(t),a=mr(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((En(t)!=="body"||zu(i))&&(l=i2(t)),tn(t)?(c=mr(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 c2(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 u2(e){var t=c2(e);return SI.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function d2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function f2(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 p2(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:Lo(l)?is(l):l.contextElement?is(l.contextElement):[],popper:is(c)};var S=u2(f2([].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:l2(C,Hs(S),d.options.strategy==="fixed"),popper:$u(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function($){return d.modifiersData[$.name]=Object.assign({},$.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,_=M===void 0?{}:M,D=T.name;typeof E=="function"&&(d=E({state:d,options:_,name:D,instance:h})||d)}}}},update:d2(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 h2=[LI,t2,_I,TI,JI,GI,r2,RI,ZI],m2=p2({defaultModifiers:h2});function g2(e){return typeof e=="function"?e():e}const ws=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=$e(P.isValidElement(o)?Bs(o):null,n);if(Pt(()=>{i||l(g2(r)||document.body)},[r,i]),Pt(()=>{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&&e0.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(ws.propTypes={children:s.node,container:s.oneOfType([$n,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ws.propTypes=sm(ws.propTypes));function y2(e){return Pe("MuiPopper",e)}Te("MuiPopper",["root"]);function b2(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 Hi(e){return typeof e=="function"?e():e}function va(e){return e.nodeType!==void 0}function v2(e){return!va(e)}const x2=e=>{const{classes:t}=e;return Ce({root:["root"]},y2,t)},S2={},w2=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=$e(v,n),S=P.useRef(null),w=$e(S,f),T=P.useRef(w);Pt(()=>{T.current=w},[w]),P.useImperativeHandle(f,()=>S.current,[]);const E=b2(u,i),[M,_]=P.useState(E),[D,$]=P.useState(Hi(o));P.useEffect(()=>{S.current&&S.current.forceUpdate()}),P.useEffect(()=>{o&&$(Hi(o))},[o]),Pt(()=>{if(!D||!c)return;const A=B=>{_(B.placement)};if(process.env.NODE_ENV!=="production"&&D&&va(D)&&D.nodeType===1){const B=D.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 O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{A(B)}}];l!=null&&(O=O.concat(l)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const j=m2(D,v.current,{placement:E,...d,modifiers:O});return T.current(j),()=>{j.destroy(),T.current(null)}},[D,a,l,c,d,E]);const N={placement:M};m!==null&&(N.TransitionProps=m);const x=x2(t),L=h.root??"div",I=Le({elementType:L,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:x.root});return b.jsx(L,{...I,children:typeof r=="function"?r(N):r})}),hb=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=S2,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 $=Hi(o);M=$&&va($)?Et($).body:Et(null).body}const _=!d&&c&&(!g||S)?"none":void 0,D=g?{in:d,onEnter:T,onExited:E}:void 0;return b.jsx(ws,{disablePortal:l,container:M,children:b.jsx(w2,{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:_,...m},TransitionProps:D,children:r})})});process.env.NODE_ENV!=="production"&&(hb.propTypes={anchorEl:Fn(s.oneOfType([$n,s.object,s.func]),e=>{if(e.open){const t=Hi(e.anchorEl);if(t&&va(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"||v2(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([$n,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:St,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const C2=be(hb,{name:"MuiPopper",slot:"Root"})({}),mb=P.forwardRef(function(t,n){const o=dn(),r=Fe({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(C2,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:S??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(mb.propTypes={anchorEl:s.oneOfType([$n,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([$n,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:St,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 Xr(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 T2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function P2(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 E2(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 M2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||E2(e))}function O2(e){const t=[],n=[];return Array.from(e.querySelectorAll(T2)).forEach((o,r)=>{const i=P2(o);i===-1||!M2(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 k2(){return!0}function Cs(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=O2,isEnabled:a=k2,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=$e(Bs(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=Et(m.current),w=Xr(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=Et(m.current),w=M=>{if(y.current=M,o||!a()||M.key!=="Tab")return;Xr(S)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var $,N;const M=m.current;if(M===null)return;const _=Xr(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(_)||o&&_!==u.current&&_!==d.current)return;if(_!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let D=[];if((_===u.current||_===d.current)&&(D=i(m.current)),D.length>0){const x=!!(($=y.current)!=null&&$.shiftKey&&((N=y.current)==null?void 0:N.key)==="Tab"),L=D[0],I=D[D.length-1];typeof L!="string"&&typeof I!="string"&&(x?I.focus():L.focus())}else M.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",w,!0);const E=setInterval(()=>{const M=Xr(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"&&(Cs.propTypes={children:Fs,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Cs.propTypes=sm(Cs.propTypes));function D2(e){return Pe("MuiPickerPopper",e)}Te("MuiPickerPopper",["root","paper"]);function R2(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const I2=e=>{setTimeout(e,0)},gb=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?gb(t.shadowRoot):t:null},jt=e=>gb(Et(e)),A2="@media (pointer: fine)",N2=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],_2=e=>Ce({root:["root"],paper:["paper"]},D2,e),j2=ae.styled(mb,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),L2=ae.styled(Ws,{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 $2(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function V2(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=he(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Et(r.current);if(!r.current||"clientX"in c&&$2(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=Et(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=Et(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const yb=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Me(e,N2),d=Le({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,H({},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"&&(yb.displayName="PickerPopperPaperWrapper");function F2(e){const t=ae.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Tr(),{ownerState:d,rootRefObject:f}=kt(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:y}=kt();P.useEffect(()=>{function j(B){l&&B.key==="Escape"&&p()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[p,l]);const v=P.useRef(null);P.useEffect(()=>{y==="tooltip"||h()==="field"||(l?v.current=jt(f.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,y,h,f]);const C=_2(a),S=he(()=>{y==="tooltip"?I2(()=>{var j,B;(j=f.current)!=null&&j.contains(jt(f.current))||(B=c.current)!=null&&B.contains(jt(c.current))||p()}):p()}),[w,T,E]=V2(l,S),M=P.useRef(null),_=$e(M,c),D=$e(_,w),$=j=>{j.key==="Escape"&&(j.stopPropagation(),p())},N=(r==null?void 0:r.desktopTransition)??u?to:vs,x=(r==null?void 0:r.desktopTrapFocus)??Cs,L=(r==null?void 0:r.desktopPaper)??L2,I=(r==null?void 0:r.popper)??j2,A=Le({elementType:I,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:$},className:C.root,ownerState:d}),O=P.useMemo(()=>H({},d,{popperPlacement:A.placement}),[d,A.placement]);return b.jsx(I,H({},A,{children:({TransitionProps:j})=>b.jsx(x,H({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(N,H({},j,i==null?void 0:i.desktopTransition,{onExited:B=>{var F,z,R;m==null||m(),(z=(F=i==null?void 0:i.desktopTransition)==null?void 0:F.onExited)==null||z.call(F,B),(R=j==null?void 0:j.onExited)==null||R.call(j)},children:b.jsx(yb,{PaperComponent:L,ownerState:O,ref:D,onPaperClick:T,onPaperTouchStart:E,paperClasses:C.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const B2="@media (prefers-reduced-motion: reduce)",ir=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),eh=ir&&ir[1]?parseInt(ir[1],10):null,th=ir&&ir[2]?parseInt(ir[2],10):null,z2=eh&&eh<10||th&&th<13||!1;function bb(e){const t=Ny(B2,{defaultMatches:!1});return e??(t||z2)}const vb={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function W2(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return vb;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(H({},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 bl=!1;function xb({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(bl||(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('", "')}"]\`.`),bl=!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('", "')}"]\`.`),bl=!0)));const u=P.useRef(n),d=P.useRef(r),f=P.useRef(r.includes(n)?n:r[0]),[p,h]=Qn({name:"useViews",state:"view",controlled:o,default:f.current}),m=P.useRef(i?p:null),[g,y]=Qn({name:"useViews",state:"focusedView",controlled:a,default:m.current}),v=c?c({setView:h,view:p,defaultView:f.current,views:r}):vb;P.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(D=>!r.includes(D)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const C=r.indexOf(p),S=r[C-1]??null,w=r[C+1]??null,T=he((D,$)=>{y($?D:N=>D===N?null:N),l==null||l(D,$)}),E=he(D=>{T(D,!0),D!==p&&(h(D),t&&t(D))}),M=he(()=>{w&&E(w)}),_=he((D,$,N)=>{const x=$==="finish",L=N?r.indexOf(N)<r.length-1:!!w;e(D,x&&L?"partial":$,N);let A=null;if(N!=null&&N!==p?A=N:x&&(A=p),A==null)return;const O=r[r.indexOf(A)+1];O==null||!v.areViewsInSameStep(A,O)||E(O)});return H({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:w,previousView:S,defaultView:r.includes(n)?n:r[0],goToNextView:M,setValueAndGoToNextView:_})}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 U2(e,t){const[n,o]=P.useState(nh);return Pt(()=>{const r=()=>{o(nh())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),R2(e,["hours","minutes","seconds"])?"portrait":t??n}const oh=new Set;function Sb(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 Ys=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Ze(),[c,u]=Qn({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=P.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=he(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=he((g,...y)=>{const v=f(g);u(v),i==null||i(v,...y)});return{value:h,handleValueChange:m,timezone:p}};function H2(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=Ze();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&Sb(["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
|
|
126
|
+
`))},[JSON.stringify(m)]));const{timezone:C,value:S,handleValueChange:w}=Ys({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}=qy({props:t,validator:o,timezone:C,value:S,onError:t.onError}),_=he(x=>{const L=typeof x=="function"?x(T.open):x;y||E(I=>H({},I,{open:L})),L&&p&&p(),L||h==null||h()}),D=he((x,L)=>{const{changeImportance:I="accept",skipPublicationIfPristine:A=!1,validationError:O,shortcut:j,source:B,shouldClose:F=I==="accept"}=L??{};let z,R;!A&&!g&&!T.hasBeenModifiedSinceMount?(z=!0,R=I==="accept"):(z=!n.areValuesEqual(v,x,S),R=I==="accept"&&!n.areValuesEqual(v,x,T.lastCommittedValue)),E(K=>H({},K,{clockShallowValue:z?void 0:K.clockShallowValue,lastCommittedValue:R?x:K.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const q=()=>{if(!Y){let K;B?K=B:j?K="view":K="unknown",Y={validationError:O??M(x),source:K},j&&(Y.shortcut=j)}return Y};z&&w(x,q()),R&&u&&u(x,q()),F&&_(!1)});S!==T.lastExternalValue&&E(x=>H({},x,{lastExternalValue:S,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const $=he((x,L="partial")=>{if(L==="shallow"){E(I=>H({},I,{clockShallowValue:x,hasBeenModifiedSinceMount:!0}));return}D(x,{changeImportance:L==="finish"&&d?"accept":"set",source:"view"})});P.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");E(x=>H({},x,{open:f}))}},[y,f]);const N=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?S:T.clockShallowValue),[v,n,T.clockShallowValue,S]);return{timezone:C,state:T,setValue:D,setValueFromView:$,setOpen:_,value:S,viewValue:N}}const Y2=["className","sx"],wb=({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:_,selectedSections:D,onSelectedSectionsChange:$,format:N,label:x,autoFocus:L,name:I}=t,{className:A,sx:O}=t,j=Me(t,Y2),B=ro(),F=Ze(),z=bb(v),R=U2(p,C),{current:Y}=P.useRef(m??null),[q,K]=P.useState(null),oe=P.useRef(null),Z=P.useRef(null),Q=P.useRef(null),se=$e(e,Q),{timezone:J,state:V,setOpen:U,setValue:W,setValueFromView:ee,value:X,viewValue:re}=H2({props:t,valueManager:n,validator:i}),{view:te,setView:ue,defaultView:ie,focusedView:me,setFocusedView:le,setValueAndGoToNextView:de,goToNextStep:pe,hasNextStep:Ne,hasSeveralSteps:Oe}=xb({view:h,views:p,openTo:m,onChange:ee,onViewChange:g,autoFocus:l,getStepNavigation:f}),Xe=he(()=>W(n.emptyValue,{source:"view"})),tt=he(()=>W(n.getTodayValue(F,J,o),{source:"view"})),wt=he(()=>W(X,{source:"view"})),mt=he(()=>W(V.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Ee=he(()=>{W(X,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:we,viewModeLookup:xe,timeViewsCount:Ve}=P.useMemo(()=>p.reduce((Se,_e)=>{const Je=y[_e]==null?"field":"UI";return Se.viewModeLookup[_e]=Je,Je==="UI"&&(Se.hasUIView=!0,qD(_e)&&(Se.timeViewsCount+=1)),Se},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),Be=xe[te],it=he(()=>Be),[Qe,_t]=P.useState(Be==="UI"?te:null);Qe!==te&&xe[te]==="UI"&&_t(te),Pt(()=>{Be==="field"&&V.open&&(U(!1),setTimeout(()=>{var Se,_e;(Se=Z==null?void 0:Z.current)==null||Se.setSelectedSections(te),(_e=Z==null?void 0:Z.current)==null||_e.focusField(te)}))},[te]),Pt(()=>{if(!V.open)return;let Se=te;Be==="field"&&Qe!=null&&(Se=Qe),Se!==ie&&xe[Se]==="UI"&&xe[ie]==="UI"&&(Se=ie),Se!==te&&ue(Se),le(Se,!0)},[V.open]);const ke=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(F,X,n.emptyValue),isPickerOpen:V.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:R,pickerVariant:r}),[F,n,X,V.open,R,r,t.disabled,t.readOnly]),ct=P.useMemo(()=>S||!we?"hidden":T||E?"disabled":"enabled",[S,we,T,E]),bt=he(pe),Dt=P.useMemo(()=>w&&!Oe?[]:["cancel","nextOrAccept"],[w,Oe]),pn=P.useMemo(()=>({setValue:W,setOpen:U,clearValue:Xe,setValueToToday:tt,acceptValueChanges:wt,cancelValueChanges:mt,setView:ue,goToNextStep:bt}),[W,U,Xe,tt,wt,mt,ue,bt]),ge=P.useMemo(()=>H({},pn,{value:X,timezone:J,open:V.open,views:p,view:Qe,initialView:Y,disabled:T??!1,readOnly:E??!1,autoFocus:L??!1,variant:r,orientation:R,popupRef:oe,reduceAnimations:z,triggerRef:K,triggerStatus:ct,hasNextStep:Ne,fieldFormat:N??"",name:I,label:x,rootSx:O,rootRef:se,rootClassName:A}),[pn,X,se,r,R,z,T,E,N,A,I,x,O,ct,Ne,J,V.open,Qe,p,Y,L]),De=P.useMemo(()=>({dismissViews:Ee,ownerState:ke,hasUIView:we,getCurrentViewMode:it,rootRefObject:Q,labelId:B,triggerElement:q,viewContainerRole:d,defaultActionBarActions:Dt,onPopperExited:a}),[Ee,ke,we,it,B,q,d,Dt,a]),ut=P.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:_,selectedSections:D,onSelectedSectionsChange:$,fieldRef:Z}),[M,_,D,$,Z]);return{providerProps:{localeText:u,contextValue:ge,privateContextValue:De,actionsContextValue:pn,fieldPrivateContextValue:ut,isValidContextValue:Se=>{const _e=i({adapter:F,value:Se,timezone:J,props:t});return!n.hasError(_e)}},renderCurrentView:()=>{if(Qe==null)return null;const Se=y[Qe];if(Se==null)return null;const _e=H({},j,{views:p,timezone:J,value:re,onChange:de,view:Qe,onViewChange:ue,showViewSwitcher:Ve>1,timeViewsCount:Ve},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:me,onFocusedViewChange:le});return c?b.jsx(c,{viewRenderers:y,popperView:Qe,rendererProps:_e}):Se(_e)},ownerState:ke}};function Cb(e){return Pe("MuiPickersLayout",e)}const mo=Te("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function q2(e){const{prototype:t={}}=e;return!!t.isReactComponent}function G2(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"&&!q2(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 xa=Fn(s.elementType,G2);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 Yi{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 Yi}static use(){const t=Qy(Yi.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=Z2(),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 K2(){return Yi.use()}function Z2(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Tb(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=ye(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=ye(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"&&(Tb.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 Zt=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wc=550,X2=80,Q2=zt.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
|
+
`,J2=zt.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
|
+
`,eA=zt.keyframes`
|
|
146
146
|
0% {
|
|
147
147
|
transform: scale(1);
|
|
148
148
|
}
|
|
@@ -154,23 +154,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
154
154
|
100% {
|
|
155
155
|
transform: scale(1);
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`,tA=be("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nA=be(Tb,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
158
158
|
opacity: 0;
|
|
159
159
|
position: absolute;
|
|
160
160
|
|
|
161
|
-
&.${
|
|
161
|
+
&.${Zt.rippleVisible} {
|
|
162
162
|
opacity: 0.3;
|
|
163
163
|
transform: scale(1);
|
|
164
|
-
animation-name: ${
|
|
165
|
-
animation-duration: ${
|
|
164
|
+
animation-name: ${Q2};
|
|
165
|
+
animation-duration: ${wc}ms;
|
|
166
166
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
&.${
|
|
169
|
+
&.${Zt.ripplePulsate} {
|
|
170
170
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
& .${
|
|
173
|
+
& .${Zt.child} {
|
|
174
174
|
opacity: 1;
|
|
175
175
|
display: block;
|
|
176
176
|
width: 100%;
|
|
@@ -179,25 +179,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
179
179
|
background-color: currentColor;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
& .${
|
|
182
|
+
& .${Zt.childLeaving} {
|
|
183
183
|
opacity: 0;
|
|
184
|
-
animation-name: ${
|
|
185
|
-
animation-duration: ${
|
|
184
|
+
animation-name: ${J2};
|
|
185
|
+
animation-duration: ${wc}ms;
|
|
186
186
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
& .${
|
|
189
|
+
& .${Zt.childPulsate} {
|
|
190
190
|
position: absolute;
|
|
191
191
|
/* @noflip */
|
|
192
192
|
left: 0px;
|
|
193
193
|
top: 0;
|
|
194
|
-
animation-name: ${
|
|
194
|
+
animation-name: ${eA};
|
|
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
|
+
`,Pb=P.forwardRef(function(t,n){const o=Fe({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=Zn(),m=P.useRef(null),g=P.useRef(null),y=P.useCallback(w=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:_,cb:D}=w;u($=>[...$,b.jsx(nA,{classes:{ripple:ye(i.ripple,Zt.ripple),rippleVisible:ye(i.rippleVisible,Zt.rippleVisible),ripplePulsate:ye(i.ripplePulsate,Zt.ripplePulsate),child:ye(i.child,Zt.child),childLeaving:ye(i.childLeaving,Zt.childLeaving),childPulsate:ye(i.childPulsate,Zt.childPulsate)},timeout:wc,pulsate:T,rippleX:E,rippleY:M,rippleSize:_},d.current)]),d.current+=1,f.current=D},[i]),v=P.useCallback((w={},T={},E=()=>{})=>{const{pulsate:M=!1,center:_=r||T.pulsate,fakeElement:D=!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 $=D?null:g.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,L,I;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)x=Math.round(N.width/2),L=Math.round(N.height/2);else{const{clientX:A,clientY:O}=w.touches&&w.touches.length>0?w.touches[0]:w;x=Math.round(A-N.left),L=Math.round(O-N.top)}if(_)I=Math.sqrt((2*N.width**2+N.height**2)/3),I%2===0&&(I+=1);else{const A=Math.max(Math.abs(($?$.clientWidth:0)-x),x)*2+2,O=Math.max(Math.abs(($?$.clientHeight:0)-L),L)*2+2;I=Math.sqrt(A**2+O**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{y({pulsate:M,rippleX:x,rippleY:L,rippleSize:I,cb:E})},h.start(X2,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:M,rippleX:x,rippleY:L,rippleSize:I,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(tA,{className:ye(Zt.root,i.root,a),ref:g,...l,children:b.jsx(zs,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Pb.propTypes={center:s.bool,classes:s.object,className:s.string});function oA(e){return Pe("MuiButtonBase",e)}const rA=Te("MuiButtonBase",["root","disabled","focusVisible"]),sA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ce({root:["root",t&&"disabled",n&&"focusVisible"]},oA,r);return n&&o&&(a.root+=` ${o}`),a},iA=be("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"},[`&.${rA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yr=P.forwardRef(function(t,n){const o=Fe({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:_,onMouseUp:D,onTouchEnd:$,onTouchMove:N,onTouchStart:x,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:A,type:O,...j}=o,B=P.useRef(null),F=K2(),z=$e(F.ref,A),[R,Y]=P.useState(!1);u&&R&&Y(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{Y(!0),B.current.focus()}}),[]);const q=F.shouldMount&&!d&&!u;P.useEffect(()=>{R&&p&&!d&&F.pulsate()},[d,p,R,F]);const K=kn(F,"start",M,f),oe=kn(F,"stop",v,f),Z=kn(F,"stop",C,f),Q=kn(F,"stop",D,f),se=kn(F,"stop",pe=>{R&&pe.preventDefault(),_&&_(pe)},f),J=kn(F,"start",x,f),V=kn(F,"stop",$,f),U=kn(F,"stop",N,f),W=kn(F,"stop",pe=>{rh(pe.target)||Y(!1),g&&g(pe)},!1),ee=he(pe=>{B.current||(B.current=pe.currentTarget),rh(pe.target)&&(Y(!0),w&&w(pe)),S&&S(pe)}),X=()=>{const pe=B.current;return c&&c!=="button"&&!(pe.tagName==="A"&&pe.href)},re=he(pe=>{p&&!pe.repeat&&R&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&X()&&pe.key===" "&&pe.preventDefault(),T&&T(pe),pe.target===pe.currentTarget&&X()&&pe.key==="Enter"&&!u&&(pe.preventDefault(),y&&y(pe))}),te=he(pe=>{p&&pe.key===" "&&R&&!pe.defaultPrevented&&F.stop(pe,()=>{F.pulsate(pe)}),E&&E(pe),y&&pe.target===pe.currentTarget&&X()&&pe.key===" "&&!pe.defaultPrevented&&y(pe)});let ue=c;ue==="button"&&(j.href||j.to)&&(ue=m);const ie={};if(ue==="button"){const pe=!!j.formAction;ie.type=O===void 0&&!pe?"button":O,ie.disabled=u}else!j.href&&!j.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u);const me=$e(n,B),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:L,focusVisible:R},de=sA(le);return b.jsxs(iA,{as:ue,className:ye(de.root,l),ownerState:le,onBlur:W,onClick:y,onContextMenu:oe,onFocus:ee,onKeyDown:re,onKeyUp:te,onMouseDown:K,onMouseLeave:se,onMouseUp:Q,onDragLeave:Z,onTouchEnd:V,onTouchMove:U,onTouchStart:J,ref:me,tabIndex:u?-1:L,type:O,...ie,...j,children:[a,q?b.jsx(Pb,{ref:z,center:i,...I}):null]})});function kn(e,t,n,o=!1){return he(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(yr.propTypes={action:St,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:xa,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 aA(e){return Pe("MuiCircularProgress",e)}Te("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ln=44,Cc=zt.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
|
+
`,Tc=zt.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,X2=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,G2,t)},Q2=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Xe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:K2||{animation:`${Tc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),J2=be("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),eA=be("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xe(({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:Z2||{animation:`${Pc} 1.4s ease-in-out infinite`}}]}))),tA=be("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Hu=P.forwardRef(function(t,n){const o=Fe({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=X2(m),y={},v={},C={};if(p==="determinate"){const x=2*Math.PI*((cn-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(Q2,{className:ye(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...C,...h,children:b.jsxs(J2,{className:g.svg,ownerState:m,viewBox:`${cn/2} ${cn/2} ${cn} ${cn}`,children:[l?b.jsx(tA,{className:g.track,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(eA,{className:g.circle,style:y,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Bn(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 nA(e){return Te("MuiButton",e)}const bo=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"]),Mb=P.createContext({});process.env.NODE_ENV!=="production"&&(Mb.displayName="ButtonGroupContext");const Ob=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ob.displayName="ButtonGroupButtonContext");const oA=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,nA,c);return{...c,...d}},kb=[{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}}}],rA=be(xr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xe(({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"},[`&.${bo.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]},[`&.${bo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${bo.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)",[`&.${bo.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(Yt()).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"},[`&.${bo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bo.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}),[`&.${bo.loading}`]:{color:"transparent"}}}]}})),sA=be("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}},...kb]})),iA=be("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}},...kb]})),aA=be("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}}]})),ah=be("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hn=P.forwardRef(function(t,n){const o=P.useContext(Mb),r=P.useContext(Ob),i=ps(o,t),a=Fe({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",...k}=a,$=so(v),j=x??b.jsx(Hu,{"aria-labelledby":$,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},L=oA(w),D=(E||C&&S==="start")&&b.jsx(sA,{className:L.startIcon,ownerState:w,children:E||b.jsx(ah,{className:L.loadingIconPlaceholder,ownerState:w})}),I=(m||C&&S==="end")&&b.jsx(iA,{className:L.endIcon,ownerState:w,children:m||b.jsx(ah,{className:L.loadingIconPlaceholder,ownerState:w})}),O=r||"",N=typeof C=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:C&&b.jsx(aA,{className:L.loadingIndicator,ownerState:w,children:j})}):null;return b.jsxs(rA,{ownerState:w,className:ye(o.className,L.root,d,O),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:ye(L.focusVisible,g),ref:n,type:M,id:C?$:v,...k,classes:L,children:[D,S!=="end"&&N,l,S==="end"&&N,I]})});process.env.NODE_ENV!=="production"&&(Hn.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 lA(e){return Te("MuiDialogActions",e)}Ce("MuiDialogActions",["root","spacing"]);const cA=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},lA,t)},uA=be("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}}}]}),Db=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=cA(l);return b.jsx(uA,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Db.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 dA=["actions"],fA=ae.styled(Db,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Rb(e){const{actions:t}=e,n=Pe(e,dA),o=lo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Mr();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Hn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Hn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Hn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Hn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Hn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Hn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Hn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(fA,U({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Rb.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 Ib=P.memo(Rb);process.env.NODE_ENV!=="production"&&(Ib.displayName="PickersActionBar");const ur=P.createContext({});process.env.NODE_ENV!=="production"&&(ur.displayName="ListContext");function pA(e){return Te("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const hA=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},pA,t)},mA=be("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}}]}),Yu=P.forwardRef(function(t,n){const o=Fe({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=hA(p);return b.jsx(ur.Provider,{value:f,children:b.jsxs(mA,{as:a,className:ye(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Yu.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 it(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...p}=i,h=d[e]||o,m=tn(f[e],r),{props:{component:g,...y},internalRef:v}=Qy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),C=$e(v,m==null?void 0:m.ref,t.ref),x=e==="root"?g||u:g,S=Zy(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 gA(e){return Te("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const yA=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function bA(e){return Te("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const vA=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},bA,n)},xA=be("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}}]}),qu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(ur),l={...o,disableGutters:a.disableGutters},c=vA(l);return b.jsx(xA,{className:ye(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(qu.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])});qu.muiName="ListItemSecondaryAction";const SA=(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]},wA=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"]},gA,n)},CA=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:SA})(Xe(({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:{[`& > .${yA.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}}]}))),TA=be("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ab=P.forwardRef(function(t,n){const o=Fe({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(ur),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&&ns(A[A.length-1],["ListItemSecondaryAction"]),$={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:k},j=wA($),w=$e(M,n),L={slots:x,slotProps:C},[D,I]=it("secondaryAction",{elementType:qu,externalForwardedProps:L,ownerState:$,className:j.secondaryAction}),O=x.root||c.Root||CA,N=C.root||u.root||{},F={className:ye(j.root,N.className,a),...S};let V=l||"li";return k?(V=!F.component&&!l?"div":V,d==="li"&&(V==="li"?V="div":F.component==="li"&&(F.component="div")),b.jsx(ur.Provider,{value:E,children:b.jsxs(TA,{as:d,className:ye(j.container,f),ref:w,ownerState:$,...p,children:[b.jsx(O,{...N,...!mr(O)&&{as:V,ownerState:{...$,...N.ownerState}},...F,children:A}),A.pop()]})})):b.jsx(ur.Provider,{value:E,children:b.jsxs(O,{...N,as:V,ref:w,...!mr(O)&&{ownerState:{...$,...N.ownerState}},...F,children:[A,v&&b.jsx(D,{...I,children:v})]})})});process.env.NODE_ENV!=="production"&&(Ab.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Bn(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(ns(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:va,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 PA=gt(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 EA(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"]),MA=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,EA,t)},OA=be("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)}`]]}})(Xe(({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(Yt(["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(Yt(["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(Yt(["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(Yt()).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}}}}))]}})),kA=be("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 lh(e){return e.key==="Backspace"||e.key==="Delete"}const Nb=P.forwardRef(function(t,n){const o=Fe({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),k=$e(A,n),$=X=>{X.stopPropagation(),m&&m(X)},j=X=>{X.currentTarget===X.target&&lh(X)&&X.preventDefault(),g&&g(X)},w=X=>{X.currentTarget===X.target&&m&&lh(X)&&m(X),y&&y(X)},L=a!==!1&&h?!0:a,D=L||m?xr:c||"div",I={...o,component:D,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:C},O=MA(I),N=D===xr?{component:c||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=u&&P.isValidElement(u)?P.cloneElement(u,{className:ye(u.props.className,O.deleteIcon),onClick:$}):b.jsx(PA,{className:O.deleteIcon,onClick:$}));let V=null;r&&P.isValidElement(r)&&(V=P.cloneElement(r,{className:ye(O.avatar,r.props.className)}));let B=null;f&&P.isValidElement(f)&&(B=P.cloneElement(f,{className:ye(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&V&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const R={slots:T,slotProps:E},[Y,G]=it("root",{elementType:OA,externalForwardedProps:{...R,...M},ownerState:I,shouldForwardComponentProp:!0,ref:k,className:ye(O.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:S&&d?-1:x,...N},getSlotProps:X=>({...X,onClick:Q=>{var K;(K=X.onClick)==null||K.call(X,Q),h==null||h(Q)},onKeyDown:Q=>{var K;(K=X.onKeyDown)==null||K.call(X,Q),j(Q)},onKeyUp:Q=>{var K;(K=X.onKeyUp)==null||K.call(X,Q),w(Q)}})}),[Z,re]=it("label",{elementType:kA,externalForwardedProps:R,ownerState:I,className:O.label});return b.jsxs(Y,{as:D,...G,children:[V||B,b.jsx(Z,{...re,children:p}),F]})});process.env.NODE_ENV!=="production"&&(Nb.propTypes={avatar:s.element,children:rS,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 Ps=36,xa=2,Sa=320,DA=280,Gu=336,RA=["items","changeImportance"],IA=["getValue"],AA=ae.styled(Yu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function _b(e){const{items:t,changeImportance:n="accept"}=e,o=Pe(e,RA),{setValue:r}=xR(),i=sR();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Pe(l,IA);const d=c({isValid:i});return U({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(AA,U({dense:!0,sx:[{maxHeight:Gu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Ab,{children:b.jsx(Nb,U({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(_b.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 NA=["ownerState"];function _A(e){return e.view!==null}const jA=(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"]},Tb,e)},LA=e=>{const{ownerState:t,defaultActionBarActions:n}=Dt(),{view:o}=Mr(),r=fn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>U({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=jA(c,u),f=(a==null?void 0:a.actionBar)??Ib,p=Le({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Pe(p,NA),m=b.jsx(f,U({},h)),g=a==null?void 0:a.toolbar,y=Le({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=_A(y)&&g?b.jsx(g,U({},y)):null,C=i,x=a==null?void 0:a.tabs,S=o&&x?b.jsx(x,U({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??_b,E=Le({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,U({},E)):null;return{toolbar:v,content:C,tabs:S,actionBar:m,shortcuts:A,ownerState:U({},u,{hasShortcuts:M})}},$A=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Tb,e)},VA=ae.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${yo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${yo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${yo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${yo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${yo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${yo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${yo.shortcuts}`]:{gridColumn:4}}}]}),FA=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),wa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=LA(o),{orientation:d,variant:f}=Mr(),{sx:p,className:h,classes:m}=o,g=$A(m,u);return b.jsxs(VA,{ref:n,sx:p,className:ye(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(FA,{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"&&(wa.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(wa.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 jb(e){const{steps:t}=e;return D2({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 BA=["props","steps"],zA=["ownerState"],WA=e=>{var E;let{props:t,steps:n}=e,o=Pe(e,BA);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=jb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=Cb(U({},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=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Pe(y,zA),C=r.layout??wa;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),popper:U({"aria-labelledby":x},i==null?void 0:i.popper)}),T=()=>b.jsxs(By,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(M2,{slots:r,slotProps:S,children:b.jsx(C,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Ko=e=>e.saveQuery!=null,Lb=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Qe(),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(!Ko(x))return r({sectionIndex:p,value:C,sectionType:y.type}),x}const v=h(g,y);return Ko(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),Ko(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=>Ly(l,o,y.type,S);if(y.contentType==="letter")return p(y.format,x(y.format),g);if(v&&C!=null&&Cu(l,v).contentType==="letter"){const S=x(v),T=p(v,S,g);return Ko(T)?{saveQuery:!1}:U({},T,{sectionValue:C(T.sectionValue,S)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=C=>jp(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=$o(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:$y(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"){Vy(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Ko(y))return y;const v=jp(l,y.sectionValue,"MM",g.format);return U({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Ko(y))return y;const v=pa(l,g.format)[Number(y.sectionValue)-1];return U({},y,{sectionValue:v})}return{saveQuery:!1}},m=>_p(m,e))};return he(f=>{const p=n.sections[f.sectionIndex],m=_p(f.keyPressed,e)?d(U({},f,{keyPressed:Tu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},UA=5e3,$b=e=>{var de;const t=Qe(),n=lo(),o=fn(),{manager:{validator:r,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:h,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:v=!1,timezone:C,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:S}}=e,{value:T,handleValueChange:E,timezone:M}=Hs({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}=Gy({props:c,validator:r,timezone:M,value:T,onError:c.onError}),$=P.useMemo(()=>VD(t),[t]),j=P.useMemo(()=>UD(t,$,M),[t,$,M]),w=P.useCallback(se=>l.getSectionsFromValue(se,ue=>zp({adapter:t,localeText:n,localizedDigits:$,format:h,date:ue,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o})),[l,h,n,$,o,v,t,m,x]),[L,D]=P.useState(()=>{const se=w(T);$p(se,i);const ue={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=jD(se),fe=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return U({},ue,{referenceValue:fe})}),[I,O]=Jn({controlled:g,default:null,name:"useField",state:"selectedSections"}),N=se=>{O(se),y==null||y(se)},F=P.useMemo(()=>hc(I,L.sections),[I,L.sections]),V=F==="all"?0:F,B=P.useMemo(()=>qD(L.sections,o&&!x),[L.sections,o,x]),R=P.useMemo(()=>L.sections.every(se=>se.value===""),[L.sections]),Y=P.useMemo(()=>{if(V!=null)return!1;const se=L.sections.filter(ue=>ue.value!=="");return se.length>0&&L.sections.length-se.length>0},[L.sections,V]),G=P.useMemo(()=>S!==void 0?S:k||Y,[k,Y,S]),Z=se=>{const ue={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,ue)},re=(se,ue)=>{const le=[...L.sections];return le[se]=U({},le[se],{value:ue,modified:!0}),le},X=P.useRef(null),Q=Xn(),K=se=>{V!=null&&(X.current={sectionIndex:V,value:se},Q.start(0,()=>{X.current=null}))},te=()=>{a.areValuesEqual(t,T,a.emptyValue)?D(se=>U({},se,{sections:se.sections.map(ue=>U({},ue,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(D(se=>U({},se,{characterQuery:null})),Z(a.emptyValue))},z=()=>{if(V==null)return;const se=L.sections[V];se.value!==""&&(K(""),l.getDateFromSection(T,se)===null?D(ue=>U({},ue,{sections:re(V,""),tempValueStrAndroid:null,characterQuery:null})):(D(ue=>U({},ue,{characterQuery:null})),Z(l.updateDateInValue(T,se,null))))},H=se=>{const ue=(fe,me)=>{const Ie=t.parse(fe,h);if(!t.isValid(Ie))return null;const Oe=zp({adapter:t,localeText:n,localizedDigits:$,format:h,date:Ie,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o});return Fp(t,Ie,Oe,me,!1)},le=l.parseValueStr(se,L.referenceValue,ue);Z(le)},W=Xn(),ee=({section:se,newSectionValue:ue,shouldGoToNextSection:le})=>{Q.clear(),W.clear();const fe=l.getDateFromSection(T,se);le&&V<L.sections.length-1&&N(V+1);const me=re(V,ue),Ie=l.getDateSectionsFromValue(me,se),Oe=BD(t,Ie,$);if(t.isValid(Oe)){const qe=Fp(t,Oe,Ie,l.getDateFromSection(L.referenceValue,se),!0);return fe==null&&W.start(0,()=>{A.current===T&&D(tt=>U({},tt,{sections:l.clearDateSections(L.sections,se),tempValueStrAndroid:null}))}),Z(l.updateDateInValue(T,se,qe))}return Ie.every(qe=>qe.value!=="")&&(fe==null||t.isValid(fe))?(K(ue),Z(l.updateDateInValue(T,se,Oe))):(fe!=null&&(K(ue),Z(l.updateDateInValue(T,se,Oe))),D(qe=>U({},qe,{sections:me,tempValueStrAndroid:null})))},J=se=>D(ue=>U({},ue,{tempValueStrAndroid:se})),ie=he(se=>{D(ue=>U({},ue,{characterQuery:se}))});if(T!==L.lastExternalValue){const se=X.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[X.current.sectionIndex]));let ue;se?ue=re(X.current.sectionIndex,X.current.value):ue=w(T),D(le=>U({},le,{lastExternalValue:T,sections:ue,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==L.lastSectionsDependencies.isRtl||h!==L.lastSectionsDependencies.format||t.locale!==L.lastSectionsDependencies.locale){const se=w(T);$p(se,i),D(ue=>U({},ue,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}L.characterQuery!=null&&!G&&V==null&&ie(null),L.characterQuery!=null&&((de=L.sections[L.characterQuery.sectionIndex])==null?void 0:de.type)!==L.characterQuery.sectionType&&ie(null),P.useEffect(()=>{X.current!=null&&(X.current=null)});const ne=Xn();return P.useEffect(()=>(L.characterQuery!=null&&ne.start(UA,()=>ie(null)),()=>{}),[L.characterQuery,ie,ne]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&V!=null&&z()},[L.sections]),{activeSectionIndex:V,areAllSectionsEmpty:R,error:G,localizedDigits:$,parsedSelectedSections:F,sectionOrder:B,sectionsValueBoundaries:j,state:L,timezone:M,value:T,clearValue:te,clearActiveSection:z,setCharacterQuery:ie,setSelectedSections:N,setTempAndroidValueStr:J,updateSectionValue:ee,updateValueFromValueStr:H,getSectionsFromValue:w}};function Vb(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Iu(),i=Fy(),a=$e(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?U({value:r.value,onChange:c,timezone:r.timezone,disabled:r.disabled,readOnly:r.readOnly,autoFocus:r.autoFocus&&!r.open,focused:r.open?!0:void 0,format:r.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[r,i,n,c,a]);return t(u)}function Ku(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Pt(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(jt(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():r.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function Fb(e){const t=Qe(),{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 he(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=YA(t,p,x,C.key,d,f,n.getDateFromSection(l,x),{minutesStep:o});v({section:x,newSectionValue:S,shouldGoToNextSection:!1});break}}})}function HA(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function YA(e,t,n,o,r,i,a,l){const c=HA(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=>$y(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($o(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=Ly(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 qA(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=Fb({manager:t,internalPropsWithDefaults:l,stateResponse:i}),C=Xn(),x=he(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 $=0,j=0;for(;j<k&&$<d.sections.length;){const w=d.sections[$];$+=1,j+=`${w.startSeparator}${w.value||w.placeholder}${w.endSeparator}`.length}h($-1)}):n?r.getRoot().contains(A.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),S=he(A=>{if(!r.isReady()||c!=="all")return;const $=A.target.textContent??"";r.getRoot().innerHTML=d.sections.map(j=>`${j.startSeparator}${j.value||j.placeholder}${j.endSeparator}`).join(""),Ku({focused:n,domGetters:r,stateResponse:i}),$.length===0||$.charCodeAt(0)===10?(f(),h("all")):$.length>1?m($):(c==="all"&&h(0),a({keyPressed:$,sectionIndex:0}))}),T=he(A=>{if(y||c!=="all"){A.preventDefault();return}const k=A.clipboardData.getData("text");A.preventDefault(),p(null),m(k)}),E=he(()=>{if(n||g||!r.isReady())return;const A=jt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(A)!=null||h(u.startIndex)}),M=he(()=>{setTimeout(()=>{if(!r.isReady())return;const A=jt(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 GA(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=he(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function KA(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 ZA(e){const t=Qe(),n=lo(),{focused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:f,clearActiveSection:p,setCharacterQuery:h,setSelectedSections:m,updateSectionValue:g,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:v=!1,readOnly:C=!1}}=e,x=c==="all",S=!x&&!v&&!C,T=he(j=>{if(!r.isReady())return;const w=d.sections[j];r.getSectionContent(j).innerHTML=w.value||w.placeholder,Ku({focused:o,domGetters:r,stateResponse:i})}),E=he(j=>{if(!r.isReady())return;const w=j.target,L=w.textContent??"",D=r.getSectionIndexFromDOMElement(w),I=d.sections[D];if(C){T(D);return}if(L.length===0){if(I.value===""){T(D);return}const O=j.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(D);return}T(D),p();return}a({keyPressed:L,sectionIndex:D}),T(D)}),M=he(j=>{j.preventDefault()}),A=he(j=>{if(j.preventDefault(),C||v||typeof c!="number")return;const w=d.sections[c],L=j.clipboardData.getData("text"),D=/^[a-zA-Z]+$/.test(L),I=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);w.contentType==="letter"&&D||w.contentType==="digit"&&I||w.contentType==="digit-with-letter"&&O?(h(null),g({section:w,newSectionValue:L,shouldGoToNextSection:!0})):!D&&!I&&(h(null),y(L))}),k=he(j=>{j.preventDefault(),j.dataTransfer.dropEffect="none"}),$=P.useCallback(j=>()=>{v||m(j)},[v,m]);return P.useCallback((j,w)=>{const L=u[j.type]({currentDate:l.getDateFromSection(f,j),contentType:j.contentType,format:j.format});return{onInput:E,onPaste:A,onMouseUp:M,onDragOver:k,onFocus:$(w),"aria-readonly":C,"aria-valuenow":QA(j,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":j.value?XA(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,k,$,l,f])}function XA(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 QA(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 JA=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=qy(t,r),c=Vb({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=$e(u,M),k=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:ne=>M.current.getSectionContainer(ne),getSectionContent:ne=>M.current.getSectionContent(ne),getSectionIndexFromDOMElement:ne=>M.current.getSectionIndexFromDOMElement(ne)}),[M]),$=$b({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:j,error:w,parsedSelectedSections:L,sectionOrder:D,state:I,value:O,clearValue:N,setSelectedSections:F}=$,V=Lb({stateResponse:$}),B=i(O),[R,Y]=P.useState(!1);function G(ne=0){if(C||!M.current||ch(M)!=null)return;const de=hc(ne,I.sections);Y(!0),M.current.getSectionContent(de).focus()}const Z=qA({manager:n,internalPropsWithDefaults:c,stateResponse:$,applyCharacterEditing:V,focused:R,setFocused:Y,domGetters:k}),re=GA({manager:n,stateResponse:$}),X=KA({stateResponse:$,internalPropsWithDefaults:c}),Q=ZA({manager:n,stateResponse:$,applyCharacterEditing:V,internalPropsWithDefaults:c,domGetters:k,focused:R}),K=he(ne=>{g==null||g(ne),Z.onKeyDown(ne)}),te=he(ne=>{d==null||d(ne),Z.onBlur(ne)}),z=he(ne=>{p==null||p(ne),Z.onFocus(ne)}),H=he(ne=>{ne.isDefaultPrevented()||(f==null||f(ne),Z.onClick(ne))}),W=he(ne=>{m==null||m(ne),Z.onPaste(ne)}),ee=he(ne=>{h==null||h(ne),Z.onInput(ne)}),J=he((ne,...de)=>{ne.preventDefault(),y==null||y(ne,...de),N(),uh(M)?F(D.startIndex):G(0)}),ie=P.useMemo(()=>I.sections.map((ne,de)=>{const se=Q(ne,de);return{container:X(de),content:Q(ne,de),before:{children:ne.startSeparator},after:{children:ne.endSeparator,"data-range-position":ne.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[I.sections,X,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
|
-
`))},[]),H=$e(te,S,x.ref,z),[W,ee]=P.useState(!1),J=zn();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(J)return J.registerEffect()},[J]);const ie=Or({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=J?J.focused:W,P.useEffect(()=>{!J&&p&&W&&(ee(!1),$&&$())},[J,p,W,$]);const ne=J&&J.onFilled,de=J&&J.onEmpty,se=P.useCallback(Se=>{Hi(Se)?ne&&ne():de&&de()},[ne,de]);Ct(()=>{K&&se({value:Q})},[Q,se,K]);const ue=Se=>{L&&L(Se),x.onFocus&&x.onFocus(Se),J&&J.onFocus?J.onFocus(Se):ee(!0)},le=Se=>{$&&$(Se),x.onBlur&&x.onBlur(Se),J&&J.onBlur?J.onBlur(Se):ee(!1)},fe=(Se,...Be)=>{if(!K){const ze=Se.target||te.current;if(ze==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.":Tn(1));se({value:ze.value})}x.onChange&&x.onChange(Se,...Be),j&&j(Se,...Be)};P.useEffect(()=>{se(te.current)},[]);const me=Se=>{te.current&&Se.currentTarget===Se.target&&te.current.focus(),w&&w(Se)};let Ie=C,Oe=x;A&&Ie==="input"&&(V?(process.env.NODE_ENV!=="production"&&(M||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe={type:void 0,minRows:V,maxRows:V,...Oe}):Oe={type:void 0,maxRows:E,minRows:M,...Oe},Ie=Bb);const qe=Se=>{se(Se.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};P.useEffect(()=>{J&&J.setAdornedStart(!!G)},[J,G]);const tt={...o,color:ie.color||"primary",disabled:ie.disabled,endAdornment:m,error:ie.error,focused:ie.focused,formControl:J,fullWidth:y,hiddenLabel:ie.hiddenLabel,multiline:A,size:ie.size,startAdornment:G,type:Z},St=lN(tt),Tt=Y.root||u.Root||Pa,Ee=R.root||d.root||{},Me=Y.input||u.Input||Ea;return Oe={...Oe,...R.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof mh=="function"&&(hh||(hh=b.jsx(mh,{}))),b.jsxs(Tt,{...Ee,ref:n,onClick:me,...X,...!mr(Tt)&&{ownerState:{...tt,...Ee.ownerState}},className:ye(St.root,Ee.className,l,N&&"MuiInputBase-readOnly"),children:[G,b.jsx(Ys.Provider,{value:null,children:b.jsx(Me,{"aria-invalid":ie.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:ie.disabled,id:v,onAnimationStart:qe,name:k,placeholder:O,readOnly:N,required:ie.required,rows:V,value:Q,onKeyDown:D,onKeyUp:I,type:Z,...Oe,...!mr(Me)&&{as:Ie,ownerState:{...tt,...Oe.ownerState}},ref:H,className:ye(St.input,Oe.className,N&&"MuiInputBase-readOnly"),onBlur:le,onChange:fe,onFocus:ue})}),m,F?F({...ie,startAdornment:G}):null]})]})});process.env.NODE_ENV!=="production"&&(Ma.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:va,inputProps:s.object,inputRef:xt,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 cN(e){return Te("MuiInput",e)}const Fr={...Sr,...Ce("MuiInput",["root","underline","input"])},uN=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},cN,t);return{...t,...r}},dN=be(Pa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ca(e,t),!n.disableUnderline&&t.underline]}})(Xe(({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"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.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(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),fN=be(Ea,{name:"MuiInput",slot:"Input",overridesResolver:Ta})({}),Oa=P.forwardRef(function(t,n){const o=Fe({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=uN(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?At(d??a,y):y,C=f.root??i.Root??dN,x=f.input??i.Input??fN;return b.jsx(Ma,{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"&&(Oa.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:xt,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});Oa.muiName="Input";function pN(e){return Te("MuiFilledInput",e)}const vo={...Sr,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},hN=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,pN,t);return{...t,...u}},mN=be(Pa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ca(e,t),!n.disableUnderline&&t.underline]}})(Xe(({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}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${vo.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"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?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(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).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}}]}})),gN=be(Ea,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ta})(Xe(({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}}]}))),ka=P.forwardRef(function(t,n){const o=Fe({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=hN(o),v={root:{ownerState:g},input:{ownerState:g}},C=f??a?At(v,f??a):v,x=p.root??i.Root??mN,S=p.input??i.Input??gN;return b.jsx(Ma,{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"&&(ka.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:xt,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});ka.muiName="Input";var gh;const yN=be("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),bN=be("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pn})(Xe(({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 zb(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(yN,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(bN,{ownerState:c,children:l?b.jsx("span",{children:r}):gh||(gh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(zb.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function vN(e){return Te("MuiOutlinedInput",e)}const bn={...Sr,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])},xN=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vN,t);return{...t,...o}},SN=be(Pa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ca})(Xe(({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 .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bn.focused} .${bn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{color:n},style:{[`&.${bn.focused} .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bn.error} .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bn.disabled} .${bn.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"}}]}})),wN=be(zb,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xe(({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}})),CN=be(Ea,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ta})(Xe(({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}}]}))),Da=P.forwardRef(function(t,n){const o=Fe({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=xN(o),g=zn(),y=Or({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??SN,x=d.input??r.Input??CN,[S,T]=it("notchedOutline",{elementType:wN,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(Ma,{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"&&(Da.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:xt,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});Da.muiName="Input";function TN(e){return Te("MuiFormLabel",e)}const ls=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PN=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,TN,t)},EN=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Xe(({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(Yt()).map(([t])=>({props:{color:t},style:{[`&.${ls.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ls.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),MN=be("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}))),Wb=P.forwardRef(function(t,n){const o=Fe({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=zn(),g=Or({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=PN(y);return b.jsxs(EN,{as:l,ownerState:y,className:ye(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(MN,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Wb.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 ON(e){return Te("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kN=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,ON,t);return{...t,...u}},DN=be(Wb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ls.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]]}})(Xe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Zu=P.forwardRef(function(t,n){const o=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=zn();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=Or({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=kN(h);return b.jsx(DN,{"data-shrink":f,ref:n,className:ye(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function RN(e){return Te("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const IN=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,RN,t)},AN=be("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%"}}]}),Xu=P.forwardRef(function(t,n){const o=Fe({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=IN(C),[S,T]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{if(!ns(N,["Input","Select"]))return;const F=ns(N,["Select"])?N.props.input:N;F&&iN(F.props)&&(O=!0)}),O}),[E,M]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{ns(N,["Input","Select"])&&(Hi(N.props,!0)||Hi(N.props.inputProps,!0))&&(O=!0)}),O}),[A,k]=P.useState(!1);c&&A&&k(!1);const $=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(Yu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:C})});process.env.NODE_ENV!=="production"&&(Yb.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 LN(e){const t=Pt(e);return t.body===e?jn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xh(e){return parseFloat(jn(e).getComputedStyle(e).paddingRight)||0}function $N(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 Sh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!$N(a);l&&c&&cs(a,r)})}function Sl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function VN(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(LN(o)){const a=Ub(jn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${xh(o)+a}px`;const l=Pt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${xh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Pt(o).body;else{const a=o.parentElement,l=jn(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 FN(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class BN{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&&cs(t.modalRef,!1);const r=FN(n);Sh(n,t.mount,t.modalRef,r,!0);const i=Sl(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Sl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=VN(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Sl(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&cs(t.modalRef,n),Sh(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&&cs(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function zN(e){return Te("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const WN=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},zN,t)},UN=be("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"}}]}),Ju=P.forwardRef(function(t,n){const o=Fe({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=WN(y),C={transition:h,root:u.Root,...p},x={...d,...f},S={component:a,slots:C,slotProps:x},[T,E]=it("root",{elementType:UN,externalForwardedProps:S,className:ye(v.root,i),ownerState:y}),[M,A]=it("transition",{elementType:no,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"&&(Ju.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 HN(e){return typeof e=="function"?e():e}function YN(e){return e?e.props.hasOwnProperty("in"):!1}const wh=()=>{},li=new BN;function qN(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=$e(h,d),[g,y]=P.useState(!u),v=YN(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const x=()=>Pt(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{li.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=he(()=>{const I=HN(t)||x().body;li.add(S(),I),h.current&&T()}),M=()=>li.isTopModal(S()),A=he(I=>{p.current=I,I&&(u&&M()?T():h.current&&cs(h.current,C))}),k=P.useCallback(()=>{li.remove(S(),C)},[C]);P.useEffect(()=>()=>{k()},[k]),P.useEffect(()=>{u?E():(!v||!r)&&k()},[u,k,v,r,E]);const $=I=>O=>{var N;(N=I.onKeyDown)==null||N.call(I,O),!(O.key!=="Escape"||O.which===229||!M())&&(n||(O.stopPropagation(),c&&c(O,"escapeKeyDown")))},j=I=>O=>{var N;(N=I.onClick)==null||N.call(I,O),O.target===O.currentTarget&&c&&c(O,"backdropClick")};return{getRootProps:(I={})=>{const O=Xy(e);delete O.onTransitionEnter,delete O.onTransitionExited;const N={...O,...I};return{role:"presentation",...N,onKeyDown:$(N),ref:m}},getBackdropProps:(I={})=>{const O=I;return{"aria-hidden":!0,...O,onClick:j(O),open:u}},getTransitionProps:()=>{const I=()=>{y(!1),i&&i()},O=()=>{y(!0),a&&a(),r&&k()};return{onEnter:Cd(I,(l==null?void 0:l.props.onEnter)??wh),onExited:Cd(O,(l==null?void 0:l.props.onExited)??wh)}},rootRef:m,portalRef:A,isTopModal:M,exited:g,hasTransition:v}}function GN(e){return Te("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const KN=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GN,o)},ZN=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xe(({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"}}]}))),XN=be(Ju,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ed=P.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=XN,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:k,slotProps:$={},slots:j={},theme:w,...L}=o,D={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:C,disableScrollLock:x,hideBackdrop:S,keepMounted:T},{getRootProps:I,getBackdropProps:O,getTransitionProps:N,portalRef:F,isTopModal:V,exited:B,hasTransition:R}=qN({...D,rootRef:n}),Y={...D,exited:B},G=KN(Y),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),R){const{onEnter:z,onExited:H}=N();Z.onEnter=z,Z.onExited=H}const re={slots:{root:p.Root,backdrop:p.Backdrop,...j},slotProps:{...h,...$}},[X,Q]=it("root",{ref:n,elementType:ZN,externalForwardedProps:{...re,...L,component:f},getSlotProps:I,ownerState:Y,className:ye(l,G==null?void 0:G.root,!Y.open&&Y.exited&&(G==null?void 0:G.hidden))}),[K,te]=it("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:z=>O({...z,onClick:H=>{z!=null&&z.onClick&&z.onClick(H)}}),className:ye(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:Y});return!T&&!k&&(!R||B)?null:b.jsx(Cs,{ref:F,container:d,disablePortal:v,children:b.jsxs(X,{...Q,children:[!S&&r?b.jsx(K,{...te}):null,b.jsx(Ts,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:V,open:k,children:P.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(ed.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Vs.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Vn,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function QN(e){return Te("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function Ch(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Th(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ph(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Jr(e){return typeof e=="function"?e():e}const JN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},QN,t)},e_=be(ed,{name:"MuiPopover",slot:"Root"})({}),qb=be(zs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gb=P.forwardRef(function(t,n){const o=Fe({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(),k={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:C,TransitionComponent:x,transitionDuration:S,TransitionProps:T},$=JN(k),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 z=Jr(i),H=z&&z.nodeType===1?z:Pt(A.current).body,W=H.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.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:W.top+
|
|
235
|
-
`)),h!==null&&
|
|
223
|
+
`,lA=typeof Cc!="string"?zt.css`
|
|
224
|
+
animation: ${Cc} 1.4s linear infinite;
|
|
225
|
+
`:null,cA=typeof Tc!="string"?zt.css`
|
|
226
|
+
animation: ${Tc} 1.4s ease-in-out infinite;
|
|
227
|
+
`:null,uA=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 Ce(i,aA,t)},dA=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Ke(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:lA||{animation:`${Cc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),fA=be("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),pA=be("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ke(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:cA||{animation:`${Tc} 1.4s ease-in-out infinite`}}]}))),hA=be("circle",{name:"MuiCircularProgress",slot:"Track"})(Ke(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Wu=P.forwardRef(function(t,n){const o=Fe({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=uA(m),y={},v={},C={};if(p==="determinate"){const S=2*Math.PI*((ln-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(dA,{className:ye(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...C,...h,children:b.jsxs(fA,{className:g.svg,ownerState:m,viewBox:`${ln/2} ${ln/2} ${ln} ${ln}`,children:[l?b.jsx(hA,{className:g.track,ownerState:m,cx:ln,cy:ln,r:(ln-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(pA,{className:g.circle,style:y,ownerState:m,cx:ln,cy:ln,r:(ln-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Wu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Fn(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function mA(e){return Pe("MuiButton",e)}const go=Te("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"]),Eb=P.createContext({});process.env.NODE_ENV!=="production"&&(Eb.displayName="ButtonGroupContext");const Mb=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Mb.displayName="ButtonGroupButtonContext");const gA=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=Ce(u,mA,c);return{...c,...d}},Ob=[{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}}}],yA=be(yr,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${go.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]},[`&.${go.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${go.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)",[`&.${go.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(Yt()).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"},[`&.${go.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${go.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}),[`&.${go.loading}`]:{color:"transparent"}}}]}})),bA=be("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}},...Ob]})),vA=be("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}},...Ob]})),xA=be("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=be("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Un=P.forwardRef(function(t,n){const o=P.useContext(Eb),r=P.useContext(Mb),i=fs(o,t),a=Fe({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:_="text",...D}=a,$=ro(v),N=S??b.jsx(Wu,{"aria-labelledby":$,color:"inherit",size:16}),x={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:C,loadingIndicator:N,loadingPosition:w,size:T,type:M,variant:_},L=gA(x),I=(E||C&&w==="start")&&b.jsx(bA,{className:L.startIcon,ownerState:x,children:E||b.jsx(sh,{className:L.loadingIconPlaceholder,ownerState:x})}),A=(m||C&&w==="end")&&b.jsx(vA,{className:L.endIcon,ownerState:x,children:m||b.jsx(sh,{className:L.loadingIconPlaceholder,ownerState:x})}),O=r||"",j=typeof C=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:C&&b.jsx(xA,{className:L.loadingIndicator,ownerState:x,children:N})}):null;return b.jsxs(yA,{ownerState:x,className:ye(o.className,L.root,d,O),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:ye(L.focusVisible,g),ref:n,type:M,id:C?$:v,...D,classes:L,children:[I,w!=="end"&&j,l,w==="end"&&j,A]})});process.env.NODE_ENV!=="production"&&(Un.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 SA(e){return Pe("MuiDialogActions",e)}Te("MuiDialogActions",["root","spacing"]);const wA=e=>{const{classes:t,disableSpacing:n}=e;return Ce({root:["root",!n&&"spacing"]},SA,t)},CA=be("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}}}]}),kb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=wA(l);return b.jsx(CA,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(kb.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 TA=["actions"],PA=ae.styled(kb,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Db(e){const{actions:t}=e,n=Me(e,TA),o=ao(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Tr();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Un,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Un,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Un,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Un,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Un,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Un,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Un,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(PA,H({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Db.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 Rb=P.memo(Db);process.env.NODE_ENV!=="production"&&(Rb.displayName="PickersActionBar");const ar=P.createContext({});process.env.NODE_ENV!=="production"&&(ar.displayName="ListContext");function EA(e){return Pe("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const MA=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ce({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},EA,t)},OA=be("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=Fe({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=MA(p);return b.jsx(ar.Provider,{value:f,children:b.jsxs(OA,{as:a,className:ye(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 st(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=en(f[e],r),{props:{component:g,...y},internalRef:v}=Xy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),C=$e(v,m==null?void 0:m.ref,t.ref),S=e==="root"?g||u:g,w=Ky(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 kA(e){return Pe("MuiListItem",e)}Te("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const DA=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function RA(e){return Pe("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const IA=e=>{const{disableGutters:t,classes:n}=e;return Ce({root:["root",t&&"disableGutters"]},RA,n)},AA=be("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=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(ar),l={...o,disableGutters:a.disableGutters},c=IA(l);return b.jsx(AA,{className:ye(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 NA=(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]},_A=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ce({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},kA,n)},jA=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:NA})(Ke(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${DA.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}}]}))),LA=be("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ib=P.forwardRef(function(t,n){const o=Fe({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(ar),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),_=P.Children.toArray(i),D=_.length&&ts(_[_.length-1],["ListItemSecondaryAction"]),$={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:D},N=_A($),x=$e(M,n),L={slots:S,slotProps:C},[I,A]=st("secondaryAction",{elementType:Hu,externalForwardedProps:L,ownerState:$,className:N.secondaryAction}),O=S.root||c.Root||jA,j=C.root||u.root||{},B={className:ye(N.root,j.className,a),...w};let F=l||"li";return D?(F=!B.component&&!l?"div":F,d==="li"&&(F==="li"?F="div":B.component==="li"&&(B.component="div")),b.jsx(ar.Provider,{value:E,children:b.jsxs(LA,{as:d,className:ye(N.container,f),ref:x,ownerState:$,...p,children:[b.jsx(O,{...j,...!fr(O)&&{as:F,ownerState:{...$,...j.ownerState}},...B,children:_}),_.pop()]})})):b.jsx(ar.Provider,{value:E,children:b.jsxs(O,{...j,as:F,ref:x,...!fr(O)&&{ownerState:{...$,...j.ownerState}},...B,children:[_,v&&b.jsx(I,{...A,children:v})]})})});process.env.NODE_ENV!=="production"&&(Ib.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Fn(s.node,e=>{const t=P.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(ts(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:xa,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 $A=yt(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function VA(e){return Pe("MuiChip",e)}const Re=Te("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"]),FA=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 Ce(u,VA,t)},BA=be("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Re.avatar}`]:t.avatar},{[`& .${Re.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${Re.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${Re.icon}`]:t.icon},{[`& .${Re.icon}`]:t[`icon${ce(l)}`]},{[`& .${Re.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${Re.deleteIcon}`]:t.deleteIcon},{[`& .${Re.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${Re.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${Re.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(o)}`]},t.root,t[`size${ce(l)}`],t[`color${ce(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${ce(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${ce(o)}`],t[c],t[`${c}${ce(o)}`]]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Re.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Re.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Re.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Re.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Re.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Re.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Re.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Re.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Re.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Yt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Re.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Re.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Re.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Re.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Re.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Re.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Re.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Re.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Re.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Re.avatar}`]:{marginLeft:4},[`& .${Re.avatarSmall}`]:{marginLeft:2},[`& .${Re.icon}`]:{marginLeft:4},[`& .${Re.iconSmall}`]:{marginLeft:2},[`& .${Re.deleteIcon}`]:{marginRight:5},[`& .${Re.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Re.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Re.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Re.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),zA=be("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 Ab=P.forwardRef(function(t,n){const o=Fe({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,_=P.useRef(null),D=$e(_,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},N=Z=>{Z.currentTarget===Z.target&&ih(Z)&&Z.preventDefault(),g&&g(Z)},x=Z=>{Z.currentTarget===Z.target&&m&&ih(Z)&&m(Z),y&&y(Z)},L=a!==!1&&h?!0:a,I=L||m?yr:c||"div",A={...o,component:I,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:C},O=FA(A),j=I===yr?{component:c||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let B=null;m&&(B=u&&P.isValidElement(u)?P.cloneElement(u,{className:ye(u.props.className,O.deleteIcon),onClick:$}):b.jsx($A,{className:O.deleteIcon,onClick:$}));let F=null;r&&P.isValidElement(r)&&(F=P.cloneElement(r,{className:ye(O.avatar,r.props.className)}));let z=null;f&&P.isValidElement(f)&&(z=P.cloneElement(f,{className:ye(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&F&&z&&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},[Y,q]=st("root",{elementType:BA,externalForwardedProps:{...R,...M},ownerState:A,shouldForwardComponentProp:!0,ref:D,className:ye(O.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:w&&d?-1:S,...j},getSlotProps:Z=>({...Z,onClick:Q=>{var se;(se=Z.onClick)==null||se.call(Z,Q),h==null||h(Q)},onKeyDown:Q=>{var se;(se=Z.onKeyDown)==null||se.call(Z,Q),N(Q)},onKeyUp:Q=>{var se;(se=Z.onKeyUp)==null||se.call(Z,Q),x(Q)}})}),[K,oe]=st("label",{elementType:zA,externalForwardedProps:R,ownerState:A,className:O.label});return b.jsxs(Y,{as:I,...q,children:[F||z,b.jsx(K,{...oe,children:p}),B]})});process.env.NODE_ENV!=="production"&&(Ab.propTypes={avatar:s.element,children:rS,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 Ts=36,Sa=2,wa=320,WA=280,Yu=336,UA=["items","changeImportance"],HA=["getValue"],YA=ae.styled(Uu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Nb(e){const{items:t,changeImportance:n="accept"}=e,o=Me(e,UA),{setValue:r}=AR(),i=bR();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Me(l,HA);const d=c({isValid:i});return H({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(YA,H({dense:!0,sx:[{maxHeight:Yu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Ib,{children:b.jsx(Ab,H({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Nb.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 qA=["ownerState"];function GA(e){return e.view!==null}const KA=(e,t)=>{const{pickerOrientation:n}=t;return Ce({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Cb,e)},ZA=e=>{const{ownerState:t,defaultActionBarActions:n}=kt(),{view:o}=Tr(),r=dn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>H({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=KA(c,u),f=(a==null?void 0:a.actionBar)??Rb,p=Le({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Me(p,qA),m=b.jsx(f,H({},h)),g=a==null?void 0:a.toolbar,y=Le({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=GA(y)&&g?b.jsx(g,H({},y)):null,C=i,S=a==null?void 0:a.tabs,w=o&&S?b.jsx(S,H({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??Nb,E=Le({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,_=o&&T?b.jsx(T,H({},E)):null;return{toolbar:v,content:C,tabs:w,actionBar:m,shortcuts:_,ownerState:H({},u,{hasShortcuts:M})}},XA=(e,t)=>{const{pickerOrientation:n}=t;return Ce({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Cb,e)},QA=ae.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${mo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${mo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${mo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${mo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${mo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${mo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${mo.shortcuts}`]:{gridColumn:4}}}]}),JA=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ca=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=ZA(o),{orientation:d,variant:f}=Tr(),{sx:p,className:h,classes:m}=o,g=XA(m,u);return b.jsxs(QA,{ref:n,sx:p,className:ye(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(JA,{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"&&(Ca.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Ca.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 _b(e){const{steps:t}=e;return W2({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 eN=["props","steps"],tN=["ownerState"],nN=e=>{var E;let{props:t,steps:n}=e,o=Me(e,eN);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=_b({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=wb(H({},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=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:H({},m&&{id:h}),ownerState:p}),v=Me(y,tN),C=r.layout??Ca;let S=h;m&&(a?S=`${h}-label`:S=void 0);const w=H({},i,{toolbar:H({},i==null?void 0:i.toolbar,{titleId:h}),popper:H({"aria-labelledby":S},i==null?void 0:i.popper)}),T=()=>b.jsxs(Fy,H({},d,{children:[b.jsx(g,H({},v,{slots:H({},r,v.slots),slotProps:H({},w,v.slotProps),inputRef:l})),b.jsx(F2,{slots:r,slotProps:w,children:b.jsx(C,H({},w==null?void 0:w.layout,{slots:r,slotProps:w,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Yo=e=>e.saveQuery!=null,jb=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Ze(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),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(!Yo(S))return r({sectionIndex:p,value:C,sectionType:y.type}),S}const v=h(g,y);return Yo(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),Yo(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=>jy(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 Yo(T)?{saveQuery:!1}:H({},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=jo(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:Ly(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"){$y(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Yo(y))return y;const v=Np(l,y.sectionValue,"MM",g.format);return H({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Yo(y))return y;const v=ha(l,g.format)[Number(y.sectionValue)-1];return H({},y,{sectionValue:v})}return{saveQuery:!1}},m=>Ap(m,e))};return he(f=>{const p=n.sections[f.sectionIndex],m=Ap(f.keyPressed,e)?d(H({},f,{keyPressed:wu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},oN=5e3,Lb=e=>{var ue;const t=Ze(),n=ao(),o=dn(),{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}=Ys({name:"a field component",timezone:C,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),_=P.useRef(T);P.useEffect(()=>{_.current=T},[T]);const{hasValidationError:D}=qy({props:c,validator:r,timezone:M,value:T,onError:c.onError}),$=P.useMemo(()=>QD(t),[t]),N=P.useMemo(()=>oR(t,$,M),[t,$,M]),x=P.useCallback(ie=>l.getSectionsFromValue(ie,me=>Fp({adapter:t,localeText:n,localizedDigits:$,format:h,date:me,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o})),[l,h,n,$,o,v,t,m,S]),[L,I]=P.useState(()=>{const ie=x(T);jp(ie,i);const me={sections:ie,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=KD(ie),de=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return H({},me,{referenceValue:de})}),[A,O]=Qn({controlled:g,default:null,name:"useField",state:"selectedSections"}),j=ie=>{O(ie),y==null||y(ie)},B=P.useMemo(()=>pc(A,L.sections),[A,L.sections]),F=B==="all"?0:B,z=P.useMemo(()=>iR(L.sections,o&&!S),[L.sections,o,S]),R=P.useMemo(()=>L.sections.every(ie=>ie.value===""),[L.sections]),Y=P.useMemo(()=>{if(F!=null)return!1;const ie=L.sections.filter(me=>me.value!=="");return ie.length>0&&L.sections.length-ie.length>0},[L.sections,F]),q=P.useMemo(()=>w!==void 0?w:D||Y,[D,Y,w]),K=ie=>{const me={validationError:r({adapter:t,value:ie,timezone:M,props:c})};E(ie,me)},oe=(ie,me)=>{const le=[...L.sections];return le[ie]=H({},le[ie],{value:me,modified:!0}),le},Z=P.useRef(null),Q=Zn(),se=ie=>{F!=null&&(Z.current={sectionIndex:F,value:ie},Q.start(0,()=>{Z.current=null}))},J=()=>{a.areValuesEqual(t,T,a.emptyValue)?I(ie=>H({},ie,{sections:ie.sections.map(me=>H({},me,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(I(ie=>H({},ie,{characterQuery:null})),K(a.emptyValue))},V=()=>{if(F==null)return;const ie=L.sections[F];ie.value!==""&&(se(""),l.getDateFromSection(T,ie)===null?I(me=>H({},me,{sections:oe(F,""),tempValueStrAndroid:null,characterQuery:null})):(I(me=>H({},me,{characterQuery:null})),K(l.updateDateInValue(T,ie,null))))},U=ie=>{const me=(de,pe)=>{const Ne=t.parse(de,h);if(!t.isValid(Ne))return null;const Oe=Fp({adapter:t,localeText:n,localizedDigits:$,format:h,date:Ne,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:S,isRtl:o});return $p(t,Ne,Oe,pe,!1)},le=l.parseValueStr(ie,L.referenceValue,me);K(le)},W=Zn(),ee=({section:ie,newSectionValue:me,shouldGoToNextSection:le})=>{Q.clear(),W.clear();const de=l.getDateFromSection(T,ie);le&&F<L.sections.length-1&&j(F+1);const pe=oe(F,me),Ne=l.getDateSectionsFromValue(pe,ie),Oe=eR(t,Ne,$);if(t.isValid(Oe)){const Xe=$p(t,Oe,Ne,l.getDateFromSection(L.referenceValue,ie),!0);return de==null&&W.start(0,()=>{_.current===T&&I(tt=>H({},tt,{sections:l.clearDateSections(L.sections,ie),tempValueStrAndroid:null}))}),K(l.updateDateInValue(T,ie,Xe))}return Ne.every(Xe=>Xe.value!=="")&&(de==null||t.isValid(de))?(se(me),K(l.updateDateInValue(T,ie,Oe))):(de!=null&&(se(me),K(l.updateDateInValue(T,ie,Oe))),I(Xe=>H({},Xe,{sections:pe,tempValueStrAndroid:null})))},X=ie=>I(me=>H({},me,{tempValueStrAndroid:ie})),re=he(ie=>{I(me=>H({},me,{characterQuery:ie}))});if(T!==L.lastExternalValue){const ie=Z.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[Z.current.sectionIndex]));let me;ie?me=oe(Z.current.sectionIndex,Z.current.value):me=x(T),I(le=>H({},le,{lastExternalValue:T,sections:me,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:ie?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==L.lastSectionsDependencies.isRtl||h!==L.lastSectionsDependencies.format||t.locale!==L.lastSectionsDependencies.locale){const ie=x(T);jp(ie,i),I(me=>H({},me,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:ie,tempValueStrAndroid:null,characterQuery:null}))}L.characterQuery!=null&&!q&&F==null&&re(null),L.characterQuery!=null&&((ue=L.sections[L.characterQuery.sectionIndex])==null?void 0:ue.type)!==L.characterQuery.sectionType&&re(null),P.useEffect(()=>{Z.current!=null&&(Z.current=null)});const te=Zn();return P.useEffect(()=>(L.characterQuery!=null&&te.start(oN,()=>re(null)),()=>{}),[L.characterQuery,re,te]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&F!=null&&V()},[L.sections]),{activeSectionIndex:F,areAllSectionsEmpty:R,error:q,localizedDigits:$,parsedSelectedSections:B,sectionOrder:z,sectionsValueBoundaries:N,state:L,timezone:M,value:T,clearValue:J,clearActiveSection:V,setCharacterQuery:re,setSelectedSections:j,setTempAndroidValueStr:X,updateSectionValue:ee,updateValueFromValueStr:U,getSectionsFromValue:x}};function $b(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Du(),i=Vy(),a=$e(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?H({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=Et(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(jt(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():r.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function Vb(e){const t=Ze(),{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 he(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=sN(t,p,S,C.key,d,f,n.getDateFromSection(l,S),{minutesStep:o});v({section:S,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function rN(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function sN(e,t,n,o,r,i,a,l){const c=rN(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=>Ly(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(jo(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=jy(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 iN(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=Vb({manager:t,internalPropsWithDefaults:l,stateResponse:i}),C=Zn(),S=he(_=>{g||!r.isReady()||(o(!0),c==="all"?C.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){h(u.startIndex);return}let $=0,N=0;for(;N<D&&$<d.sections.length;){const x=d.sections[$];$+=1,N+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h($-1)}):n?r.getRoot().contains(_.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),w=he(_=>{if(!r.isReady()||c!=="all")return;const $=_.target.textContent??"";r.getRoot().innerHTML=d.sections.map(N=>`${N.startSeparator}${N.value||N.placeholder}${N.endSeparator}`).join(""),qu({focused:n,domGetters:r,stateResponse:i}),$.length===0||$.charCodeAt(0)===10?(f(),h("all")):$.length>1?m($):(c==="all"&&h(0),a({keyPressed:$,sectionIndex:0}))}),T=he(_=>{if(y||c!=="all"){_.preventDefault();return}const D=_.clipboardData.getData("text");_.preventDefault(),p(null),m(D)}),E=he(()=>{if(n||g||!r.isReady())return;const _=jt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(_)!=null||h(u.startIndex)}),M=he(()=>{setTimeout(()=>{if(!r.isReady())return;const _=jt(r.getRoot());!r.getRoot().contains(_)&&(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 aN(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=he(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function lN(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 cN(e){const t=Ze(),n=ao(),{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=he(N=>{if(!r.isReady())return;const x=d.sections[N];r.getSectionContent(N).innerHTML=x.value||x.placeholder,qu({focused:o,domGetters:r,stateResponse:i})}),E=he(N=>{if(!r.isReady())return;const x=N.target,L=x.textContent??"",I=r.getSectionIndexFromDOMElement(x),A=d.sections[I];if(C){T(I);return}if(L.length===0){if(A.value===""){T(I);return}const O=N.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(I);return}T(I),p();return}a({keyPressed:L,sectionIndex:I}),T(I)}),M=he(N=>{N.preventDefault()}),_=he(N=>{if(N.preventDefault(),C||v||typeof c!="number")return;const x=d.sections[c],L=N.clipboardData.getData("text"),I=/^[a-zA-Z]+$/.test(L),A=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);x.contentType==="letter"&&I||x.contentType==="digit"&&A||x.contentType==="digit-with-letter"&&O?(h(null),g({section:x,newSectionValue:L,shouldGoToNextSection:!0})):!I&&!A&&(h(null),y(L))}),D=he(N=>{N.preventDefault(),N.dataTransfer.dropEffect="none"}),$=P.useCallback(N=>()=>{v||m(N)},[v,m]);return P.useCallback((N,x)=>{const L=u[N.type]({currentDate:l.getDateFromSection(f,N),contentType:N.contentType,format:N.format});return{onInput:E,onPaste:_,onMouseUp:M,onDragOver:D,onFocus:$(x),"aria-readonly":C,"aria-valuenow":dN(N,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":N.value?uN(N,t):n.empty,"aria-label":n[N.type],"aria-disabled":v,tabIndex:!w||S||x>0?-1:0,contentEditable:!S&&!v&&!C,role:"spinbutton","data-range-position":N.dateName||void 0,spellCheck:w?!1:void 0,autoCapitalize:w?"none":void 0,autoCorrect:w?"off":void 0,children:N.value||N.placeholder,inputMode:N.contentType==="letter"?"text":"numeric"}},[u,S,v,C,w,n,t,E,_,M,D,$,l,f])}function uN(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 dN(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 fN=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=Yy(t,r),c=$b({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),_=$e(u,M),D=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:te=>M.current.getSectionContainer(te),getSectionContent:te=>M.current.getSectionContent(te),getSectionIndexFromDOMElement:te=>M.current.getSectionIndexFromDOMElement(te)}),[M]),$=Lb({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:N,error:x,parsedSelectedSections:L,sectionOrder:I,state:A,value:O,clearValue:j,setSelectedSections:B}=$,F=jb({stateResponse:$}),z=i(O),[R,Y]=P.useState(!1);function q(te=0){if(C||!M.current||ah(M)!=null)return;const ue=pc(te,A.sections);Y(!0),M.current.getSectionContent(ue).focus()}const K=iN({manager:n,internalPropsWithDefaults:c,stateResponse:$,applyCharacterEditing:F,focused:R,setFocused:Y,domGetters:D}),oe=aN({manager:n,stateResponse:$}),Z=lN({stateResponse:$,internalPropsWithDefaults:c}),Q=cN({manager:n,stateResponse:$,applyCharacterEditing:F,internalPropsWithDefaults:c,domGetters:D,focused:R}),se=he(te=>{g==null||g(te),K.onKeyDown(te)}),J=he(te=>{d==null||d(te),K.onBlur(te)}),V=he(te=>{p==null||p(te),K.onFocus(te)}),U=he(te=>{te.isDefaultPrevented()||(f==null||f(te),K.onClick(te))}),W=he(te=>{m==null||m(te),K.onPaste(te)}),ee=he(te=>{h==null||h(te),K.onInput(te)}),X=he((te,...ue)=>{te.preventDefault(),y==null||y(te,...ue),j(),lh(M)?B(I.startIndex):q(0)}),re=P.useMemo(()=>A.sections.map((te,ue)=>{const ie=Q(te,ue);return{container:Z(ue),content:Q(te,ue),before:{children:te.startSeparator},after:{children:te.endSeparator,"data-range-position":te.isEndFormatSeparator?ie["data-range-position"]:void 0}}}),[A.sections,Z,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(I.startIndex).focus()},[]),Pt(()=>{if(!(!R||!M.current)){if(L==="all")M.current.getRoot().focus();else if(typeof L=="number"){const te=M.current.getSectionContent(L);te&&te.focus()}}},[L,R]),Pt(()=>{qu({focused:R,domGetters:D,stateResponse:$})}),P.useImperativeHandle(E,()=>({getSections:()=>A.sections,getActiveSectionIndex:()=>ah(M),setSelectedSections:te=>{if(C||!M.current)return;const ue=pc(te,A.sections);Y((ue==="all"?0:ue)!==null),B(te)},focusField:q,isFieldFocused:()=>lh(M)})),H({},l,K,{onBlur:J,onClick:U,onFocus:V,onInput:ee,onPaste:W,onKeyDown:se,onClear:X},oe,{error:x,clearable:!!(v&&!N&&!S&&!C),focused:T??R,sectionListRef:_,enableAccessibleFieldDOMStructure:!0,elements:re,areAllSectionsEmpty:N,disabled:C,readOnly:S,autoFocus:w,openPickerAriaLabel:z})};function ah(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function lh(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const or=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),pN=(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=or(u).length,f=u.length,p=or(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(H({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},hN=e=>{const t=dn(),n=Zn(),o=Zn(),{props:r,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:p}=Yy(r,l),h=$b({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:_=!1,autoFocus:D=!1,focused:$,unstableFieldRef:N}=h,x=P.useRef(null),L=$e(T,x),I=Lb({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:A,areAllSectionsEmpty:O,error:j,localizedDigits:B,parsedSelectedSections:F,sectionOrder:z,state:R,value:Y,clearValue:q,clearActiveSection:K,setCharacterQuery:oe,setSelectedSections:Z,setTempAndroidValueStr:Q,updateSectionValue:se,updateValueFromValueStr:J,getSectionsFromValue:V}=I,U=jb({stateResponse:I}),W=d(Y),ee=P.useMemo(()=>pN(R.sections,B,t),[R.sections,B,t]);function X(){const Ee=x.current.selectionStart??0;let we;Ee<=ee[0].startInInput||Ee>=ee[ee.length-1].endInInput?we=1:we=ee.findIndex(Ve=>Ve.startInInput-Ve.startSeparator.length>Ee);const xe=we===-1?ee.length-1:we-1;Z(xe)}function re(Ee=0){var we;jt(x.current)!==x.current&&((we=x.current)==null||we.focus(),Z(Ee))}const te=he(Ee=>{m==null||m(Ee);const we=x.current;n.start(0,()=>{!we||we!==x.current||A==null&&(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?Z("all"):X())})}),ue=he((Ee,...we)=>{Ee.isDefaultPrevented()||(g==null||g(Ee,...we),X())}),ie=he(Ee=>{if(y==null||y(Ee),Ee.preventDefault(),M||_)return;const we=Ee.clipboardData.getData("text");if(typeof F=="number"){const xe=R.sections[F],Ve=/^[a-zA-Z]+$/.test(we),Be=/^[0-9]+$/.test(we),it=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if(xe.contentType==="letter"&&Ve||xe.contentType==="digit"&&Be||xe.contentType==="digit-with-letter"&&it){oe(null),se({section:xe,newSectionValue:we,shouldGoToNextSection:!0});return}if(Ve||Be)return}oe(null),J(we)}),me=he(Ee=>{v==null||v(Ee),Z(null)}),le=he(Ee=>{if(M)return;const we=Ee.target.value;if(we===""){q();return}const xe=Ee.nativeEvent.data,Ve=xe&&xe.length>1,Be=Ve?xe:we,it=or(Be);if(F==="all"&&Z(A),A==null||Ve){J(Ve?xe:it);return}let Qe;if(F==="all"&&it.length===1)Qe=it;else{const _t=or(u.getV6InputValueFromSections(ee,B,t));let ke=-1,ct=-1;for(let ge=0;ge<_t.length;ge+=1)ke===-1&&_t[ge]!==it[ge]&&(ke=ge),ct===-1&&_t[_t.length-ge-1]!==it[it.length-ge-1]&&(ct=ge);const bt=ee[A];if(ke<bt.start||_t.length-ct-1>bt.end)return;const pn=it.length-_t.length+bt.end-or(bt.endSeparator||"").length;Qe=it.slice(bt.start+or(bt.startSeparator||"").length,pn)}if(Qe.length===0){sR()&&Q(Be),K();return}U({keyPressed:Qe,sectionIndex:A})}),de=he((Ee,...we)=>{Ee.preventDefault(),S==null||S(Ee,...we),q(),ch(x)?Z(z.startIndex):re(0)}),pe=Vb({manager:i,internalPropsWithDefaults:h,stateResponse:I}),Ne=he(Ee=>{C==null||C(Ee),pe(Ee)}),Oe=P.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections(V(c.emptyValue),B,t),[E,u,V,c.emptyValue,B,t]),Xe=P.useMemo(()=>R.tempValueStrAndroid??u.getV6InputValueFromSections(R.sections,B,t),[R.sections,u,R.tempValueStrAndroid,B,t]);P.useEffect(()=>{x.current&&x.current===jt(x.current)&&Z("all")},[]),Pt(()=>{function Ee(){if(!x.current)return;if(F==null){x.current.scrollLeft&&(x.current.scrollLeft=0);return}if(x.current!==jt(x.current))return;const we=x.current.scrollTop;if(F==="all")x.current.select();else{const xe=ee[F],Ve=xe.type==="empty"?xe.startInInput-xe.startSeparator.length:xe.startInInput,Be=xe.type==="empty"?xe.endInInput+xe.endSeparator.length:xe.endInInput;(Ve!==x.current.selectionStart||Be!==x.current.selectionEnd)&&x.current===jt(x.current)&&x.current.setSelectionRange(Ve,Be),o.start(0,()=>{x.current&&x.current===jt(x.current)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==Ve||x.current.selectionEnd!==Be)&&Ee()})}x.current.scrollTop=we}Ee()});const tt=P.useMemo(()=>A==null||R.sections[A].contentType==="letter"?"text":"numeric",[A,R.sections]),mt=!(x.current&&x.current===jt(x.current))&&O;return P.useImperativeHandle(N,()=>({getSections:()=>R.sections,getActiveSectionIndex:()=>{const Ee=x.current.selectionStart??0,we=x.current.selectionEnd??0;if(Ee===0&&we===0)return null;const xe=Ee<=ee[0].startInInput?1:ee.findIndex(Ve=>Ve.startInInput-Ve.startSeparator.length>Ee);return xe===-1?ee.length-1:xe-1},setSelectedSections:Ee=>Z(Ee),focusField:re,isFieldFocused:()=>ch(x)})),H({},p,{error:j,"aria-invalid":j,clearable:!!(w&&!O&&!M&&!_),onBlur:me,onClick:ue,onFocus:te,onPaste:ie,onKeyDown:Ne,onClear:de,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:Oe,inputMode:tt,autoComplete:"off",value:mt?"":Xe,onChange:le,focused:$,disabled:_,readOnly:M,autoFocus:D,openPickerAriaLabel:W})};function ch(e){return e.current===jt(e.current)}const mN=e=>{const t=Vy();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?fN:hN)(e)},gN=e=>{const t=FR(e);return mN({manager:t,props:e})};function ci(e){return parseInt(e,10)||0}const yN={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function bN(e){for(const t in e)return!1;return!0}function uh(e){return bN(e)||e.outerHeightStyle===0&&!e.overflowing}const Fb=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=$e(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=_n(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,_=ci(E.paddingBottom)+ci(E.paddingTop),D=ci(E.borderBottomWidth)+ci(E.borderTopWidth),$=w.scrollHeight;w.value="x";const N=w.scrollHeight;let x=$;i&&(x=Math.max(Number(i)*N,x)),r&&(x=Math.min(Number(r)*N,x)),x=Math.max(x,N);const L=x+(M==="border-box"?_+D:0),I=Math.abs(x-$)<=1;return{outerHeightStyle:L,overflowing:I}},[r,i,t.placeholder]),g=he(()=>{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);Pt(()=>{const S=mm(y),w=d==null?void 0:d.current;if(!w)return;const T=_n(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]),Pt(()=>{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:{...yN.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Fb.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 Pr({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 qs=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(qs.displayName="FormControlContext");function Bn(){return P.useContext(qs)}function dh(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function qi(e,t=!1){return e&&(dh(e.value)&&e.value!==""||t&&dh(e.defaultValue)&&e.defaultValue!=="")}function vN(e){return e.startAdornment}function xN(e){return Pe("MuiInputBase",e)}const br=Te("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var fh;const Ta=(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]},Pa=(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]},SN=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 Ce(g,xN,t)},Ea=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ta})(Ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${br.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%"}}]}))),Ma=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pa})(Ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${br.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},[`&.${br.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=J1({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Oa=P.forwardRef(function(t,n){const o=Fe({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:_=!1,name:D,onBlur:$,onChange:N,onClick:x,onFocus:L,onKeyDown:I,onKeyUp:A,placeholder:O,readOnly:j,renderSuffix:B,rows:F,size:z,slotProps:R={},slots:Y={},startAdornment:q,type:K="text",value:oe,...Z}=o,Q=S.value!=null?S.value:oe,{current:se}=P.useRef(Q!=null),J=P.useRef(),V=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
|
+
`))},[]),U=$e(J,w,S.ref,V),[W,ee]=P.useState(!1),X=Bn();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(X)return X.registerEffect()},[X]);const re=Pr({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});re.focused=X?X.focused:W,P.useEffect(()=>{!X&&p&&W&&(ee(!1),$&&$())},[X,p,W,$]);const te=X&&X.onFilled,ue=X&&X.onEmpty,ie=P.useCallback(xe=>{qi(xe)?te&&te():ue&&ue()},[te,ue]);Pt(()=>{se&&ie({value:Q})},[Q,ie,se]);const me=xe=>{L&&L(xe),S.onFocus&&S.onFocus(xe),X&&X.onFocus?X.onFocus(xe):ee(!0)},le=xe=>{$&&$(xe),S.onBlur&&S.onBlur(xe),X&&X.onBlur?X.onBlur(xe):ee(!1)},de=(xe,...Ve)=>{if(!se){const Be=xe.target||J.current;if(Be==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.":Cn(1));ie({value:Be.value})}S.onChange&&S.onChange(xe,...Ve),N&&N(xe,...Ve)};P.useEffect(()=>{ie(J.current)},[]);const pe=xe=>{J.current&&xe.currentTarget===xe.target&&J.current.focus(),x&&x(xe)};let Ne=C,Oe=S;_&&Ne==="input"&&(F?(process.env.NODE_ENV!=="production"&&(M||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe={type:void 0,minRows:F,maxRows:F,...Oe}):Oe={type:void 0,maxRows:E,minRows:M,...Oe},Ne=Fb);const Xe=xe=>{ie(xe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};P.useEffect(()=>{X&&X.setAdornedStart(!!q)},[X,q]);const tt={...o,color:re.color||"primary",disabled:re.disabled,endAdornment:m,error:re.error,focused:re.focused,formControl:X,fullWidth:y,hiddenLabel:re.hiddenLabel,multiline:_,size:re.size,startAdornment:q,type:K},wt=SN(tt),mt=Y.root||u.Root||Ea,Ee=R.root||d.root||{},we=Y.input||u.Input||Ma;return Oe={...Oe,...R.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof ph=="function"&&(fh||(fh=b.jsx(ph,{}))),b.jsxs(mt,{...Ee,ref:n,onClick:pe,...Z,...!fr(mt)&&{ownerState:{...tt,...Ee.ownerState}},className:ye(wt.root,Ee.className,l,j&&"MuiInputBase-readOnly"),children:[q,b.jsx(qs.Provider,{value:null,children:b.jsx(we,{"aria-invalid":re.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:re.disabled,id:v,onAnimationStart:Xe,name:D,placeholder:O,readOnly:j,required:re.required,rows:F,value:Q,onKeyDown:I,onKeyUp:A,type:K,...Oe,...!fr(we)&&{as:Ne,ownerState:{...tt,...Oe.ownerState}},ref:U,className:ye(wt.input,Oe.className,j&&"MuiInputBase-readOnly"),onBlur:le,onChange:de,onFocus:me})}),m,B?B({...re,startAdornment:q}):null]})]})});process.env.NODE_ENV!=="production"&&(Oa.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:xa,inputProps:s.object,inputRef:St,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 wN(e){return Pe("MuiInput",e)}const Vr={...br,...Te("MuiInput",["root","underline","input"])},CN=e=>{const{classes:t,disableUnderline:n}=e,r=Ce({root:["root",!n&&"underline"],input:["input"]},wN,t);return{...t,...r}},TN=be(Ea,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ta(e,t),!n.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Vr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vr.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(.${Vr.disabled}, .${Vr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Vr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),PN=be(Ma,{name:"MuiInput",slot:"Input",overridesResolver:Pa})({}),ka=P.forwardRef(function(t,n){const o=Fe({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=CN(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?At(d??a,y):y,C=f.root??i.Root??TN,S=f.input??i.Input??PN;return b.jsx(Oa,{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"&&(ka.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:St,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});ka.muiName="Input";function EN(e){return Pe("MuiFilledInput",e)}const yo={...br,...Te("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},MN=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=Ce(c,EN,t);return{...t,...u}},ON=be(Ea,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ta(e,t),!n.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${yo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${yo.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"},[`&.${yo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yo.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(.${yo.disabled}, .${yo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).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}}]}})),kN=be(Ma,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pa})(Ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Da=P.forwardRef(function(t,n){const o=Fe({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=MN(o),v={root:{ownerState:g},input:{ownerState:g}},C=f??a?At(v,f??a):v,S=p.root??i.Root??ON,w=p.input??i.Input??kN;return b.jsx(Oa,{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"&&(Da.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:St,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});Da.muiName="Input";var hh;const DN=be("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:fn})({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%"}),RN=be("legend",{name:"MuiNotchedOutlined",shouldForwardProp:fn})(Ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Bb(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(DN,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(RN,{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"&&(Bb.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function IN(e){return Pe("MuiOutlinedInput",e)}const yn={...br,...Te("MuiOutlinedInput",["root","notchedOutline","input"])},AN=e=>{const{classes:t}=e,o=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},IN,t);return{...t,...o}},NN=be(Ea,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ta})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${yn.focused} .${yn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{color:n},style:{[`&.${yn.focused} .${yn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${yn.error} .${yn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yn.disabled} .${yn.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"}}]}})),_N=be(Bb,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),jN=be(Ma,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pa})(Ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ra=P.forwardRef(function(t,n){const o=Fe({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=AN(o),g=Bn(),y=Pr({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??NN,S=d.input??r.Input??jN,[w,T]=st("notchedOutline",{elementType:_N,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(Oa,{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"&&(Ra.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:St,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});Ra.muiName="Input";function LN(e){return Pe("MuiFormLabel",e)}const as=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$N=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 Ce(c,LN,t)},VN=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{[`&.${as.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${as.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${as.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),FN=be("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ke(({theme:e})=>({[`&.${as.error}`]:{color:(e.vars||e).palette.error.main}}))),zb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:f,required:p,...h}=o,m=Bn(),g=Pr({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=$N(y);return b.jsxs(VN,{as:l,ownerState:y,className:ye(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(FN,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(zb.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 BN(e){return Pe("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const zN=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=Ce(c,BN,t);return{...t,...u}},WN=be(zb,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${as.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Gu=P.forwardRef(function(t,n){const o=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=Bn();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=Pr({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=zN(h);return b.jsx(WN,{"data-shrink":f,ref:n,className:ye(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 UN(e){return Pe("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const HN=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return Ce(r,UN,t)},YN=be("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=Fe({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=HN(C),[w,T]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,j=>{if(!ts(j,["Input","Select"]))return;const B=ts(j,["Select"])?j.props.input:j;B&&vN(B.props)&&(O=!0)}),O}),[E,M]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,j=>{ts(j,["Input","Select"])&&(qi(j.props,!0)||qi(j.props.inputProps,!0))&&(O=!0)}),O}),[_,D]=P.useState(!1);c&&_&&D(!1);const $=d!==void 0&&!c?d:_;let N;const x=P.useRef(!1);process.env.NODE_ENV!=="production"&&(N=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
232
|
+
`)),x.current=!0,()=>{x.current=!1}));const L=P.useCallback(()=>{M(!0)},[]),I=P.useCallback(()=>{M(!1)},[]),A=P.useMemo(()=>({adornedStart:w,setAdornedStart:T,color:a,disabled:c,error:u,filled:E,focused:$,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:I,onFilled:L,registerEffect:N,required:m,variant:y}),[w,a,c,u,E,$,f,p,N,I,L,m,g,y]);return b.jsx(qs.Provider,{value:A,children:b.jsx(YN,{as:l,ownerState:C,className:ye(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 qN(e){return Pe("MuiFormHelperText",e)}const mh=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gh;const GN=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 Ce(u,qN,t)},KN=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${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=Fe({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:p,variant:h,...m}=o,g=Bn(),y=Pr({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=GN(v);return b.jsx(KN,{as:a,className:ye(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 Wb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function vl(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 Ub(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 Fr(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")||!Ub(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const Hb=P.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...p}=t,h=P.useRef(null),m=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt(()=>{r&&h.current.focus()},[r]),P.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(S,{direction:w})=>{const T=!h.current.style.width;if(S.clientHeight<h.current.clientHeight&&T){const E=`${Wb(_n(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=Xr(Et(w));if(T==="ArrowDown")S.preventDefault(),Fr(w,M,u,c,vl);else if(T==="ArrowUp")S.preventDefault(),Fr(w,M,u,c,yh);else if(T==="Home")S.preventDefault(),Fr(w,null,u,c,vl);else if(T==="End")S.preventDefault(),Fr(w,null,u,c,yh);else if(T.length===1){const _=m.current,D=T.toLowerCase(),$=performance.now();_.keys.length>0&&($-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&D!==_.keys[0]&&(_.repeating=!1)),_.lastTime=$,_.keys.push(D);const N=M&&!_.repeating&&Ub(M,_);_.previousKeyMatched&&(N||Fr(w,M,!1,c,vl,_))?S.preventDefault():_.previousKeyMatched=!1}d&&d(S)},y=$e(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"&&_o.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"&&(Hb.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 ZN(e){const t=Et(e);return t.body===e?_n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ls(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bh(e){return parseFloat(_n(e).getComputedStyle(e).paddingRight)||0}function XN(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=!XN(a);l&&c&&ls(a,r)})}function xl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function QN(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(ZN(o)){const a=Wb(_n(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${bh(o)+a}px`;const l=Et(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=Et(o).body;else{const a=o.parentElement,l=_n(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function JN(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class e5{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&&ls(t.modalRef,!1);const r=JN(n);vh(n,t.mount,t.modalRef,r,!0);const i=xl(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=xl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=QN(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=xl(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&&ls(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&&ls(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function t5(e){return Pe("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const n5=e=>{const{classes:t,invisible:n}=e;return Ce({root:["root",n&&"invisible"]},t5,t)},o5=be("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=Fe({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=n5(y),C={transition:h,root:u.Root,...p},S={...d,...f},w={component:a,slots:C,slotProps:S},[T,E]=st("root",{elementType:o5,externalForwardedProps:w,className:ye(v.root,i),ownerState:y}),[M,_]=st("transition",{elementType:to,externalForwardedProps:w,ownerState:y});return b.jsx(M,{in:c,timeout:m,...g,..._,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 r5(e){return typeof e=="function"?e():e}function s5(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},ui=new e5;function i5(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=$e(h,d),[g,y]=P.useState(!u),v=s5(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const S=()=>Et(p.current),w=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{ui.mount(w(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=he(()=>{const A=r5(t)||S().body;ui.add(w(),A),h.current&&T()}),M=()=>ui.isTopModal(w()),_=he(A=>{p.current=A,A&&(u&&M()?T():h.current&&ls(h.current,C))}),D=P.useCallback(()=>{ui.remove(w(),C)},[C]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{u?E():(!v||!r)&&D()},[u,D,v,r,E]);const $=A=>O=>{var j;(j=A.onKeyDown)==null||j.call(A,O),!(O.key!=="Escape"||O.which===229||!M())&&(n||(O.stopPropagation(),c&&c(O,"escapeKeyDown")))},N=A=>O=>{var j;(j=A.onClick)==null||j.call(A,O),O.target===O.currentTarget&&c&&c(O,"backdropClick")};return{getRootProps:(A={})=>{const O=Zy(e);delete O.onTransitionEnter,delete O.onTransitionExited;const j={...O,...A};return{role:"presentation",...j,onKeyDown:$(j),ref:m}},getBackdropProps:(A={})=>{const O=A;return{"aria-hidden":!0,...O,onClick:N(O),open:u}},getTransitionProps:()=>{const A=()=>{y(!1),i&&i()},O=()=>{y(!0),a&&a(),r&&D()};return{onEnter:Sd(A,(l==null?void 0:l.props.onEnter)??xh),onExited:Sd(O,(l==null?void 0:l.props.onExited)??xh)}},rootRef:m,portalRef:_,isTopModal:M,exited:g,hasTransition:v}}function a5(e){return Pe("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const l5=e=>{const{open:t,exited:n,classes:o}=e;return Ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},a5,o)},c5=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),u5=be(Xu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Qu=P.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=u5,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:_,open:D,slotProps:$={},slots:N={},theme:x,...L}=o,I={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:C,disableScrollLock:S,hideBackdrop:w,keepMounted:T},{getRootProps:A,getBackdropProps:O,getTransitionProps:j,portalRef:B,isTopModal:F,exited:z,hasTransition:R}=i5({...I,rootRef:n}),Y={...I,exited:z},q=l5(Y),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),R){const{onEnter:V,onExited:U}=j();K.onEnter=V,K.onExited=U}const oe={slots:{root:p.Root,backdrop:p.Backdrop,...N},slotProps:{...h,...$}},[Z,Q]=st("root",{ref:n,elementType:c5,externalForwardedProps:{...oe,...L,component:f},getSlotProps:A,ownerState:Y,className:ye(l,q==null?void 0:q.root,!Y.open&&Y.exited&&(q==null?void 0:q.hidden))}),[se,J]=st("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:V=>O({...V,onClick:U=>{V!=null&&V.onClick&&V.onClick(U)}}),className:ye(i==null?void 0:i.className,q==null?void 0:q.backdrop),ownerState:Y});return!T&&!D&&(!R||z)?null:b.jsx(ws,{ref:B,container:d,disablePortal:v,children:b.jsxs(Z,{...Q,children:[!w&&r?b.jsx(se,{...J}):null,b.jsx(Cs,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:F,open:D,children:P.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Fs.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([$n,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 d5(e){return Pe("MuiPopover",e)}Te("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 Qr(e){return typeof e=="function"?e():e}const f5=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"]},d5,t)},p5=be(Qu,{name:"MuiPopover",slot:"Root"})({}),Yb=be(Ws,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qb=P.forwardRef(function(t,n){const o=Fe({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,_=P.useRef(),D={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:C,TransitionComponent:S,transitionDuration:w,TransitionProps:T},$=f5(D),N=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 V=Qr(i),U=V&&V.nodeType===1?V:Et(_.current).body,W=U.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=U.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.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:W.top+Sh(W,a.vertical),left:W.left+wh(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),x=P.useCallback(V=>({vertical:Sh(V,C.vertical),horizontal:wh(V,C.horizontal)}),[C.horizontal,C.vertical]),L=P.useCallback(V=>{const U={width:V.offsetWidth,height:V.offsetHeight},W=x(U);if(c==="none")return{top:null,left:null,transformOrigin:Ch(W)};const ee=N();let X=ee.top-W.vertical,re=ee.left-W.horizontal;const te=X+U.height,ue=re+U.width,ie=_n(Qr(i)),me=ie.innerHeight-h,le=ie.innerWidth-h;if(h!==null&&X<h){const de=X-h;X-=de,W.vertical+=de}else if(h!==null&&te>me){const de=te-me;X-=de,W.vertical+=de}if(process.env.NODE_ENV!=="production"&&U.height>me&&U.height&&me&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${U.height-me}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
235
|
+
`)),h!==null&&re<h){const de=re-h;re-=de,W.horizontal+=de}else if(ue>le){const de=ue-le;re-=de,W.horizontal+=de}return{top:`${Math.round(X)}px`,left:`${Math.round(re)}px`,transformOrigin:Ch(W)}},[i,c,N,x,h]),[I,A]=P.useState(m),O=P.useCallback(()=>{const V=_.current;if(!V)return;const U=L(V);U.top!==null&&V.style.setProperty("top",U.top),U.left!==null&&(V.style.left=U.left),V.style.transformOrigin=U.transformOrigin,A(!0)},[L]);P.useEffect(()=>(E&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,E,O]);const j=()=>{O()},B=()=>{A(!1)};P.useEffect(()=>{m&&O()}),P.useImperativeHandle(r,()=>m?{updatePosition:()=>{O()}}:null,[m,O]),P.useEffect(()=>{if(!m)return;const V=mm(()=>{O()}),U=_n(Qr(i));return U.addEventListener("resize",V),()=>{V.clear(),U.removeEventListener("resize",V)}},[i,m,O]);let F=w;const z={slots:{transition:S,...y},slotProps:{transition:T,paper:g,...v}},[R,Y]=st("transition",{elementType:vs,externalForwardedProps:z,ownerState:D,getSlotProps:V=>({...V,onEntering:(U,W)=>{var ee;(ee=V.onEntering)==null||ee.call(V,U,W),j()},onExited:U=>{var W;(W=V.onExited)==null||W.call(V,U),B()}}),additionalProps:{appear:!0,in:m}});w==="auto"&&!R.muiSupportAuto&&(F=void 0);const q=f||(i?Et(Qr(i)).body:void 0),[K,{slots:oe,slotProps:Z,...Q}]=st("root",{ref:n,elementType:p5,externalForwardedProps:{...z,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:iS(typeof v.backdrop=="function"?v.backdrop(D):v.backdrop,{invisible:!0})},container:q,open:m},ownerState:D,className:ye($.root,d)}),[se,J]=st("paper",{ref:_,className:$.paper,elementType:Yb,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:I?void 0:{opacity:0}},ownerState:D});return b.jsx(K,{...Q,...!fr(K)&&{slots:oe,slotProps:Z,disableScrollLock:E},children:b.jsx(R,{...Y,timeout:F,children:b.jsx(se,{...J,children:u})})})});process.env.NODE_ENV!=="production"&&(qb.propTypes={action:St,anchorEl:Fn(s.oneOfType([$n,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Qr(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([
|
|
238
|
-
`)),
|
|
239
|
-
`));let
|
|
240
|
-
`))}},[Tt,ue,C,x,R]),St&&(C?tt.length===0?Oe=null:Oe=tt.reduce((ge,Ae,at)=>(ge.push(Ae),at<tt.length-1&&ge.push(", "),ge),[]):Oe=qe);let Me=z;!a&&te&&Q&&(Me=J.clientWidth);let Se;typeof O<"u"?Se=O:Se=f?null:0;const Be=I.id||(x?`mui-component-select-${x}`:void 0),ze={...t,variant:V,value:R,open:ie,error:h},nt=g_(ze),Je={...v.PaperProps,...typeof((ut=v.slotProps)==null?void 0:ut.paper)=="function"?v.slotProps.paper(ze):(yt=v.slotProps)==null?void 0:yt.paper},Vt={...v.MenuListProps,...typeof((Et=v.slotProps)==null?void 0:Et.list)=="function"?v.slotProps.list(ze):(hn=v.slotProps)==null?void 0:hn.list},ke=so();return b.jsxs(P.Fragment,{children:[b.jsx(f_,{as:"div",ref:ee,tabIndex:Se,role:"combobox","aria-controls":ie?ke:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":D?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:me,onMouseDown:f||w?null:de,onBlur:Ie,onFocus:M,...I,ownerState:ze,className:ye(I.className,nt.select,c),id:Be,children:m_(Oe)?Eh||(Eh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Oe}),b.jsx(h_,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:x,ref:re,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:nt.nativeInput,autoFocus:i,required:D,...B,ownerState:ze}),b.jsx(p_,{as:m,className:nt.icon,ownerState:ze}),b.jsx(Kb,{id:`menu-${x||""}`,anchorEl:J,open:ie,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:ke,...Vt},paper:{...Je,style:{minWidth:Me,...Je!=null?Je.style:null}}},children:Ee})]})});process.env.NODE_ENV!=="production"&&(ev.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:xt,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 y_=gt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),b_=e=>{const{classes:t}=e,o=we({root:["root"]},Jb,t);return{...t,...o}},nd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pn(e)&&e!=="variant"},v_=be(Oa,nd)(""),x_=be(Da,nd)(""),S_=be(ka,nd)(""),od=P.forwardRef(function(t,n){const o=Fe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=y_,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",...k}=o,$=C?Qb:ev,j=zn(),w=Or({props:o,muiFormControl:j,states:["variant","error"]}),L=w.variant||A,D={...o,variant:L,classes:a},I=b_(D),{root:O,...N}=I,F=p||{standard:b.jsx(v_,{ownerState:D}),outlined:b.jsx(x_,{label:m,ownerState:D}),filled:b.jsx(S_,{ownerState:D})}[L],V=$e(n,Fs(F));return b.jsx(P.Fragment,{children:P.cloneElement(F,{inputComponent:$,inputProps:{children:i,error:w.error,IconComponent:d,variant:L,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?At(N,h.classes):N,...p?p.props.inputProps:{}},...(v&&C||u)&&L==="outlined"?{notched:!0}:{},ref:V,className:ye(F.props.className,l,I.root),...!p&&{variant:L},...k})})});process.env.NODE_ENV!=="production"&&(od.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"])});od.muiName="Select";function w_(e){return Te("MuiTextField",e)}Ce("MuiTextField",["root"]);const C_={standard:Oa,filled:ka,outlined:Da},T_=e=>{const{classes:t}=e;return we({root:["root"]},w_,t)},P_=be(Xu,{name:"MuiTextField",slot:"Root"})({}),tv=P.forwardRef(function(t,n){const o=Fe({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:k,onChange:$,onFocus:j,placeholder:w,required:L=!1,rows:D,select:I=!1,SelectProps:O,slots:N={},slotProps:F={},type:V,value:B,variant:R="outlined",...Y}=o,G={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:I,variant:R},Z=T_(G);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const re=so(g),X=m&&re?`${re}-helper-text`:void 0,Q=S&&re?`${re}-label`:void 0,K=C_[R],te={slots:N,slotProps:{input:C,inputLabel:y,htmlInput:v,formHelperText:p,select:O,...F}},z={},H=te.slotProps.inputLabel;R==="outlined"&&(H&&typeof H.shrink<"u"&&(z.notched=H.shrink),z.label=S),I&&((!O||!O.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const[W,ee]=it("root",{elementType:P_,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...Y},ownerState:G,className:ye(Z.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:L,color:c,variant:R}}),[J,ie]=it("input",{elementType:K,externalForwardedProps:te,additionalProps:z,ownerState:G}),[ne,de]=it("inputLabel",{elementType:Zu,externalForwardedProps:te,ownerState:G}),[se,ue]=it("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:G}),[le,fe]=it("formHelperText",{elementType:Qu,externalForwardedProps:te,ownerState:G}),[me,Ie]=it("select",{elementType:od,externalForwardedProps:te,ownerState:G}),Oe=b.jsx(J,{"aria-describedby":X,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:A,rows:D,maxRows:T,minRows:E,type:V,value:B,id:re,inputRef:x,onBlur:k,onChange:$,onFocus:j,placeholder:w,inputProps:ue,slots:{input:N.htmlInput?se:void 0},...ie});return b.jsxs(W,{...ee,children:[S!=null&&S!==""&&b.jsx(ne,{htmlFor:re,id:Q,...de,children:S}),I?b.jsx(me,{"aria-describedby":X,id:re,labelId:Q,value:B,input:Oe,...Ie,children:a}):Oe,m&&b.jsx(le,{id:X,...fe,children:m})]})});process.env.NODE_ENV!=="production"&&(tv.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:xt,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 E_(e){return Te("MuiIconButton",e)}const Oh=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),M_=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,E_,t)},O_=be(xr,{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)}`]]}})(Xe(({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}}]})),Xe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Yt()).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)}}],[`&.${Oh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Oh.loading}`]:{color:"transparent"}}))),k_=be("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"}}]})),Es=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:p=null,loadingIndicator:h,...m}=o,g=so(f),y=h??b.jsx(Hu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},C=M_(v);return b.jsxs(O_,{id:p?g:f,className:ye(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(k_,{className:C.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:Bn(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},H_=["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"],Y_=e=>Math.round(e*1e5)/1e5,Ia=ae.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>U({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${Y_(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),ad=ae.styled(ov,{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}}]})),q_=ae.styled(rv,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),G_=ae.styled(iv,{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"})),K_=ae.styled(sv,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Z_=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},F_)),X_=ae.styled("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),Q_=(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,B_,e)};function Rh(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 J_(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+=Rh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Rh(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 qs=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:p,slotProps:h,contentEditable:m,tabIndex:g,onInput:y,onPaste:v,onKeyDown:C,name:x,readOnly:S,inputProps:T,inputRef:E,sectionListRef:M,onFocus:A,onBlur:k,classes:$,ownerState:j}=o,w=Pe(o,H_),L=Ra(),D=P.useRef(null),I=P.useRef(null),O=P.useRef([]),N=$e(n,D),F=$e(T==null?void 0:T.ref,E),V=zn();if(!V)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const B=j??L,R=z=>{var H;(H=V.onFocus)==null||H.call(V,z),A==null||A(z)},Y=z=>{R(z)},G=z=>{var H,W;if(C==null||C(z),z.key==="Enter"&&!z.defaultMuiPrevented){if((H=D.current)!=null&&H.dataset.multiInput)return;const ee=(W=D.current)==null?void 0:W.closest("form"),J=ee==null?void 0:ee.querySelector('[type="submit"]');if(!ee||!J)return;z.preventDefault(),ee.requestSubmit(J)}},Z=z=>{var H;(H=V.onBlur)==null||H.call(V,z),k==null||k(z)};P.useEffect(()=>{V&&V.setAdornedStart(!!d)},[V,d]),P.useEffect(()=>{V&&(i?V.onEmpty():V.onFilled())},[V,i]);const re=Q_($,B),X=(p==null?void 0:p.root)||Ia,Q=Le({elementType:X,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:w,additionalProps:{"aria-invalid":V.error,ref:N},className:re.root,ownerState:B}),K=(p==null?void 0:p.input)||ad,te=r.some(z=>z.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!te||!B.isPickerOpen)return;const{activeBarWidth:z,sectionOffsets:H}=J_(r,D);O.current=[H[0],H[1]],I.current&&(I.current.style.width=`${z}px`)},[r,te,B.isPickerOpen]),b.jsxs(X,U({},Q,{children:[d,b.jsx(sd,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:re.sectionsContainer,onFocus:R,onBlur:Z,onInput:y,onPaste:v,onKeyDown:G,slots:{root:K,section:q_,sectionContent:G_,sectionSeparator:K_},slotProps:{root:U({},h==null?void 0:h.input,{ownerState:B}),sectionContent:{className:dr.sectionContent},sectionSeparator:({separatorPosition:z})=>({className:z==="before"?dr.sectionBefore:dr.sectionAfter})}}),u,f?f(U({},V)):null,b.jsx(Z_,U({name:x,className:re.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:V.required,disabled:V.disabled,onFocus:Y},T,{ref:F})),te&&b.jsx(X_,{className:re.activeBar,ref:I,ownerState:{sectionOffsets:O.current}})]}))});process.env.NODE_ENV!=="production"&&(qs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(qs.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:xt,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 e5(e){return Te("MuiPickersOutlinedInput",e)}const un=U({},dr,Ce("MuiPickersOutlinedInput",["root","notchedOutline","input"])),t5=["children","className","label","notched","shrink"],n5=ae.styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Ih=ae.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),o5=ae.styled("legend",{slot:"internal",shouldForwardProp:e=>Zn(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 r5(e){const{className:t,label:n,notched:o}=e,r=Pe(e,t5),i=Ra();return b.jsx(n5,U({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(o5,{ownerState:i,notched:o,children:n?b.jsx(Ih,{children:n}):b.jsx(Ih,{className:"notranslate",children:""})})}))}const s5=["label","autoFocus","ownerState","classes","notched"],i5=ae.styled(Ia,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${un.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${un.focused} .${un.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${un.disabled}`]:{[`& .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${un.error} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${un.focused}:not(.${un.error}) .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),a5=ae.styled(ad,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),l5=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},e5,e);return U({},e,n)},Aa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Pe(o,s5),c=zn(),u=l5(i);return b.jsx(qs,U({slots:{root:i5,input:a5},renderSuffix:d=>b.jsx(r5,{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"&&(Aa.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Aa.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:xt,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});Aa.muiName="Input";function c5(e){return Te("MuiPickersFilledInput",e)}const xo=U({},dr,Ce("MuiPickersFilledInput",["root","underline","input"])),u5=["label","autoFocus","disableUnderline","hiddenLabel","classes"],d5=ae.styled(Ia,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xo.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"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.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(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),f5=ae.styled(ad,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),p5=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},c5,e);return U({},e,r)},Na=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Pe(o,u5),u=Ra(),d=U({},u,{inputHasUnderline:!i}),f=p5(l,d);return b.jsx(qs,U({slots:{root:d5,input:f5},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Na.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Na.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:xt,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});Na.muiName="Input";function h5(e){return Te("MuiPickersFilledInput",e)}const Wr=U({},dr,Ce("MuiPickersInput",["root","underline","input"])),m5=["label","autoFocus","disableUnderline","ownerState","classes"],g5=ae.styled(Ia,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),y5=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},h5,e);return U({},e,r)},_a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Pe(o,m5),c=Ra(),u=U({},c,{inputHasUnderline:!i}),d=y5(a,u);return b.jsx(qs,U({slots:{root:g5},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(_a.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(_a.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});_a.muiName="Input";const b5=["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"],v5={standard:_a,filled:Na,outlined:Aa},x5=ae.styled(Xu,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),S5=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},V_,e)},ja=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:C,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:A,endAdornment:k,startAdornment:$,tabIndex:j,contentEditable:w,focused:L,value:D,onChange:I,fullWidth:O,id:N,name:F,helperText:V,FormHelperTextProps:B,label:R,InputLabelProps:Y,"data-active-range-position":G}=o,Z=Pe(o,b5),re=P.useRef(null),X=$e(n,re),Q=so(N),K=V&&Q?`${Q}-helper-text`:void 0,te=R&&Q?`${Q}-label`:void 0,z=rd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),H=P.useMemo(()=>U({},z,{isFieldValueEmpty:x,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!($??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(k??(m==null?void 0:m.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[z,x,L,d,o.size,c,O,$,k,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,R,Y==null?void 0:Y.shrink]),W=S5(l,H),ee=v5[f],J={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(J.notched=Y.shrink),J.label=R):f==="filled"&&(J.hiddenLabel=h),b.jsx(id.Provider,{value:H,children:b.jsxs(x5,U({className:ye(W.root,a),ref:X,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:O,required:p,ownerState:H},Z,{children:[R!=null&&R!==""&&b.jsx(Zu,U({htmlFor:Q,id:te},Y,{children:R})),b.jsx(ee,U({elements:C,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onInput:A,onPaste:M,onFocus:r,onBlur:i,endAdornment:k,startAdornment:$,tabIndex:j,contentEditable:w,value:D,onChange:I,id:Q,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:v,label:R,name:F,role:"group","aria-labelledby":te,"aria-describedby":K,"aria-live":K?"polite":void 0,"data-active-range-position":G},J,m)),V&&b.jsx(Qu,U({id:K},B,{children:V}))]}))})});process.env.NODE_ENV!=="production"&&(ja.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(ja.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:xt,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 w5=["enableAccessibleFieldDOMStructure"],C5=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],T5=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],P5=["ownerState"],E5=["ownerState"],M5=["ownerState"],O5=["ownerState"],k5=["InputProps","inputProps"],wl=()=>{},D5=e=>{var C,x,S,T,E,M,A,k,$;let{enableAccessibleFieldDOMStructure:t}=e,n=Pe(e,w5);if(t){const{InputProps:j,readOnly:w,onClear:L,clearable:D,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:N}=n,F=Pe(n,C5),V=qn>=6&&((C=F==null?void 0:F.slotProps)!=null&&C.input)?us((x=F==null?void 0:F.slotProps)==null?void 0:x.input,j):wl;return{clearable:D,onClear:L,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:N,textFieldProps:U({},F,qn>=6&&((S=F==null?void 0:F.slotProps)!=null&&S.input)?{slotProps:U({},F==null?void 0:F.slotProps,{input:B=>U({},tn(V,B),{readOnly:w})})}:{InputProps:U({},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=Pe(n,T5),y=qn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?us((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):wl,v=qn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?us((A=g==null?void 0:g.slotProps)==null?void 0:A.htmlInput,c):wl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:U({},g,qn>=6&&((k=g==null?void 0:g.slotProps)!=null&&k.input||($=g==null?void 0:g.slotProps)!=null&&$.htmlInput)?{slotProps:U({},g==null?void 0:g.slotProps,{input:j=>U({},tn(y,j),{readOnly:a}),htmlInput:j=>U({},tn(v,j),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:U({},l??{},{readOnly:a}),inputProps:U({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},La=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(La.displayName="PickerFieldUIContext");function R5(e){var B,R,Y,G;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=lo(),r=Iu(),i=P.useContext(La),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=D5(t),p=rd(a),h=he(Z=>{Z.preventDefault(),r==null||r.setOpen(re=>!re)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?tv:ja),C=i.slots.inputAdornment??nv,x=Le({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:U({},p,{position:"start"})}),S=Pe(x,P5),T=Le({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:U({},p,{position:"end"})}),E=Pe(T,E5),M=i.slots.openPickerButton??Es,A=Le({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),k=Pe(A,M5),$=i.slots.openPickerIcon??n,j=Le({elementType:$,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),w=i.slots.clearButton??Es,L=Le({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}),D=Pe(L,O5),I=i.slots.clearIcon??$_,O=Le({elementType:I,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=$e(a.ref,r==null?void 0:r.rootRef);const N={},F=tn((qn>=6&&((B=a==null?void 0:a.slotProps)==null?void 0:B.input))??a.InputProps,p);r&&(N.ref=r.triggerRef),!(F!=null&&F.startAdornment)&&(g==="start"||y==="start")&&(N.startAdornment=b.jsxs(C,U({},S,{children:[y==="start"&&b.jsx(M,U({},k,{children:b.jsx($,U({},j))})),g==="start"&&b.jsx(w,U({},D,{children:b.jsx(I,U({},O))}))]}))),!(F!=null&&F.endAdornment)&&(g==="end"||y==="end")&&(N.endAdornment=b.jsxs(C,U({},E,{children:[g==="end"&&b.jsx(w,U({},D,{children:b.jsx(I,U({},O))})),y==="end"&&b.jsx(M,U({},k,{children:b.jsx($,U({},j))}))]}))),!(N!=null&&N.endAdornment)&&!(N!=null&&N.startAdornment)&&i.slots.inputAdornment&&(N.endAdornment=b.jsx(C,U({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const V=qn>=6&&((R=a==null?void 0:a.slotProps)!=null&&R.input)?tn(us(F,N),p):U({},F,N);return a.inputProps=qn>=6&&((Y=a==null?void 0:a.slotProps)!=null&&Y.htmlInput)?tn(a.slotProps.htmlInput,p):a.inputProps,(G=a==null?void 0:a.slotProps)==null||delete G.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,U({},a,{InputProps:V}))}function us(e,t){return e?t?n=>U({},tn(t,n),tn(e,n)):e:t}function I5(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(La),i=Iu(),a=rd(n),{InputProps:l,inputProps:c}=n,u=Pe(n,k5),d=Le({elementType:ja,externalSlotProps:us(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=U({},c,d.inputProps),d.InputProps=U({},l,d.InputProps),d}function A5(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(La.Provider,{value:i,children:r})}const N5=["slots","slotProps"],$a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Pe(o,N5),l=I5({slotProps:i,ref:n,externalForwardedProps:a}),c=oN(l);return b.jsx(A5,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(R5,{fieldResponse:c,defaultOpenPickerIcon:L_})})});process.env.NODE_ENV!=="production"&&($a.displayName="DateField");process.env.NODE_ENV!=="production"&&($a.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:xt,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 lv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Qe();return P.useCallback(u=>Ls({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])},_5=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return U({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const r=o.newTimezone;if(t.getTimezone(n.currentMonth)===r)return n;let i=t.setTimezone(n.currentMonth,r);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),U({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return U({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},j5=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=Qe(),m=P.useRef(_5(!!u,h)).current,g=P.useMemo(()=>En.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:vn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),C=lv({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=he(({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 w=h.startOfMonth(T),L=h.endOfMonth(T);k=vs({adapter:h,date:k,minDate:h.isBefore(a,w)?w:a,maxDate:h.isAfter(i,L)?L:i,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:f})}const $=!h.isSameMonth(y.currentMonth,A),j=!h.isSameYear(y.currentMonth,A);$&&(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&&k!=null&&h.isSameDay(k,y.focusedDay)?y.focusedDay:k,skipAnimation:M})}),S=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:x,isDateDisabled:C,onMonthSwitchingAnimationEnd:S}},L5=e=>Te("MuiPickersFadeTransitionGroup",e);Ce("MuiPickersFadeTransitionGroup",["root"]);const $5=["children"],V5=e=>we({root:["root"]},L5,e),F5=ae.styled(Bs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function cv(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Pe(t,$5),c=V5(i),u=ae.useTheme();return o?a:b.jsx(F5,{className:ye(c.root,n),ownerState:l,children:b.jsx(no,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function B5(e){return Te("MuiPickersDay",e)}const So=Ce("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function uv(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Qe(),{ownerState:d}=Dt();return P.useMemo(()=>U({},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 z5=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],W5=(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"]},B5,e)},dv=({theme:e})=>U({},e.typography.caption,{width:Ps,height:Ps,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${So.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${So.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}},[`&.${So.disabled}:not(.${So.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${So.disabled}&.${So.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${xa}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${So.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),fv=(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]},U5=ae.styled(xr,{name:"MuiPickersDay",slot:"Root",overridesResolver:fv})(dv),H5=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:fv})(({theme:e})=>U({},dv({theme:e}),{opacity:0,pointerEvents:"none"})),Ur=()=>{},ld=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Ur,onBlur:f=Ur,onKeyDown:p=Ur,onMouseDown:h=Ur,onMouseEnter:m=Ur,children:g,day:y,selected:v,disabled:C,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,A=Pe(o,z5),k=uv({day:y,selected:v,disabled:C,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),$=W5(a,k),j=Qe(),w=P.useRef(null),L=$e(w,n);Ct(()=>{r&&!C&&!l&&!S&&w.current.focus()},[r,C,l,S]);const D=O=>{h(O),S&&O.preventDefault()},I=O=>{O.defaultMuiPrevented=!0,C||u(y),S&&O.currentTarget.focus(),c&&c(O)};return S&&!M?b.jsx(H5,{className:ye($.root,$.hiddenDaySpacingFiller,i),ownerState:k,role:A.role}):b.jsx(U5,U({className:ye($.root,i),ref:L,centerRipple:!0,disabled:C,tabIndex:v?0:-1,onKeyDown:O=>p(O,y),onFocus:O=>d(O,y),onBlur:O=>f(O,y),onMouseEnter:O=>m(O,y),onClick:I,onMouseDown:D},A,{ownerState:k,children:g??j.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(ld.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(ld.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 pv=P.memo(ld);process.env.NODE_ENV!=="production"&&(pv.displayName="PickersDay");const Y5=e=>Te("MuiPickersSlideTransition",e),Kt=Ce("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),q5=["children","className","reduceAnimations","slideDirection","transKey","classes"],G5=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,Y5,e)},K5=ae.styled(Bs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Kt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Kt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Kt.slideEnterActive}`]:t.slideEnterActive},{[`.${Kt.slideExit}`]:t.slideExit},{[`.${Kt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Kt["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},[`& .${Kt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Kt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Kt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Kt.slideExit}`]:{transform:"translate(0%)"},[`& .${Kt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Kt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Z5(e){const t=ae.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Pe(t,q5),{ownerState:u}=Dt(),d=U({},u,{slideDirection:i}),f=G5(l,d),p=ae.useTheme();if(r)return b.jsx("div",{className:ye(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx(K5,{className:ye(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(ju,U({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const X5=e=>Te("MuiDayCalendar",e);Ce("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Q5=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],J5=["ownerState"],ej=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},X5,e),hv=(Ps+xa*2)*6,tj=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),nj=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),oj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),rj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),sj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>U({},e.typography.caption,{width:Ps,height:Ps,padding:0,margin:`0 ${xa}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ij=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:hv}),aj=ae.styled(Z5,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:hv}),lj=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),cj=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${xa}px 0`,display:"flex",justifyContent:"center"});function uj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Pe(e,Q5);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Qe(),v=ga(g),C=o!=null&&y.isSameDay(n,o),x=l&&C,S=r.some(D=>y.isSameDay(D,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=uv({day:n,selected:S,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),k=(h==null?void 0:h.day)??pv,$=Le({elementType:k,externalSlotProps:m==null?void 0:m.day,additionalProps:U({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:U({},A,{day:n,isDayDisabled:E,isDaySelected:S})}),j=Pe($,J5),w=P.useMemo(()=>{const D=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(D)):y.isSameDay(n,D)},[a,n,p,y]),L=P.useMemo(()=>{const D=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(D)):y.isSameDay(n,D)},[a,n,p,y]);return b.jsx(k,U({},j,{day:n,disabled:E,autoFocus:!M&&x,today:T,outsideCurrentMonth:M,isFirstVisibleCell:w,isLastVisibleCell:L,selected:S,tabIndex:C?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function dj(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Qe(),{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=H=>n.format(H,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:$,gridLabelId:j,displayWeekNumber:w,fixedWeekNumber:L,timezone:D}=t,I=ga(D),O=ej(i),N=fn(),F=lv({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:x,maxDate:S,disablePast:v,disableFuture:C,timezone:D}),V=lo(),B=he(H=>{p||d(H)}),R=H=>{F(H)||(o(H),$==null||$(!0))},Y=he((H,W)=>{switch(H.key){case"ArrowUp":R(n.addDays(W,-7)),H.preventDefault();break;case"ArrowDown":R(n.addDays(W,7)),H.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(W,N?1:-1),J=n.addMonths(W,N?1:-1),ie=vs({adapter:n,date:ee,minDate:N?ee:n.startOfMonth(J),maxDate:N?n.endOfMonth(J):ee,isDateDisabled:F,timezone:D});R(ie||ee),H.preventDefault();break}case"ArrowRight":{const ee=n.addDays(W,N?-1:1),J=n.addMonths(W,N?-1:1),ie=vs({adapter:n,date:ee,minDate:N?n.startOfMonth(J):ee,maxDate:N?ee:n.endOfMonth(J),isDateDisabled:F,timezone:D});R(ie||ee),H.preventDefault();break}case"Home":R(n.startOfWeek(W)),H.preventDefault();break;case"End":R(n.endOfWeek(W)),H.preventDefault();break;case"PageUp":R(n.addMonths(W,1)),H.preventDefault();break;case"PageDown":R(n.addMonths(W,-1)),H.preventDefault();break}}),G=he((H,W)=>R(W)),Z=he((H,W)=>{c!=null&&n.isSameDay(c,W)&&($==null||$(!1))}),re=n.getMonth(a),X=n.getYear(a),Q=P.useMemo(()=>l.filter(H=>!!H).map(H=>n.startOfDay(H)),[n,l]),K=`${X}-${re}`,te=P.useMemo(()=>P.createRef(),[K]),z=P.useMemo(()=>{const H=n.getWeekArray(a);let W=n.addMonths(a,1);for(;L&&H.length<L;){const ee=n.getWeekArray(W),J=n.isSameDay(H[H.length-1][0],ee[0][0]);ee.slice(J?1:0).forEach(ie=>{H.length<L&&H.push(ie)}),W=n.addMonths(W,1)}return H},[a,L,n]);return b.jsxs(tj,{role:"grid","aria-labelledby":j,className:O.root,children:[b.jsxs(nj,{role:"row",className:O.header,children:[w&&b.jsx(rj,{variant:"caption",role:"columnheader","aria-label":V.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:V.calendarWeekNumberHeaderText}),ID(n,I).map((H,W)=>b.jsx(oj,{variant:"caption",role:"columnheader","aria-label":n.format(H,"weekday"),className:O.weekDayLabel,children:A(H)},W.toString()))]}),u?b.jsx(ij,{className:O.loadingContainer,children:m()}):b.jsx(aj,U({transKey:K,onExited:f,reduceAnimations:h,slideDirection:g,className:ye(r,O.slideTransition)},y,{nodeRef:te,children:b.jsx(lj,{ref:te,role:"rowgroup",className:O.monthContainer,children:z.map((H,W)=>b.jsxs(cj,{role:"row",className:O.weekContainer,"aria-rowindex":W+1,children:[w&&b.jsx(sj,{className:O.weekNumber,role:"rowheader","aria-label":V.calendarWeekNumberAriaLabelText(n.getWeekNumber(H[0])),children:V.calendarWeekNumberText(n.getWeekNumber(H[0]))}),H.map((ee,J)=>b.jsx(uj,{parentProps:t,day:ee,selectedDays:Q,isViewFocused:k,focusedDay:c,onKeyDown:Y,onFocus:G,onBlur:Z,onDaySelect:B,isDateDisabled:F,currentMonthNumber:re,"aria-colindex":J+1},ee.toString()))]},`week-${H[0]}`))})}))]})}function mv(e){return Te("MuiMonthCalendar",e)}const ci=Ce("MuiMonthCalendar",["root","button","disabled","selected"]),fj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],pj=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,mv,e)},hj=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ci.disabled}`]:t.disabled},{[`&.${ci.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ci.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ci.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),gv=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=Pe(t,fj),m=P.useRef(null),{ownerState:g}=Dt(),y=U({},g,{isMonthDisabled:r,isMonthSelected:i}),v=pj(o,y);Ct(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.monthButton)??hj,x=Le({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,U({},x))});process.env.NODE_ENV!=="production"&&(gv.displayName="MonthCalendarButton");const mj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],gj=e=>we({root:["root"]},mv,e);function yj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ah=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),bj=ae.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Sa,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),cd=P.forwardRef(function(t,n){const o=yj(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:k,slotProps:$}=o,j=Pe(o,mj),{value:w,handleValueChange:L,timezone:D}=Hs({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:En}),I=ga(D),O=fn(),N=Qe(),{ownerState:F}=Dt(),V=P.useMemo(()=>En.getInitialReferenceValue({value:w,adapter:N,props:o,timezone:D,referenceDate:d,granularity:vn.month}),[]),B=gj(l),R=P.useMemo(()=>N.getMonth(I),[N,I]),Y=P.useMemo(()=>w!=null?N.getMonth(w):null,[w,N]),[G,Z]=P.useState(()=>Y||N.getMonth(V)),[re,X]=Jn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=he(J=>{X(J),T&&T(J)}),K=P.useCallback(J=>{const ie=N.startOfMonth(h&&N.isAfter(I,g)?I:g),ne=N.startOfMonth(p&&N.isBefore(I,m)?I:m),de=N.startOfMonth(J);return N.isBefore(de,ie)||N.isAfter(de,ne)?!0:v?v(de):!1},[p,h,m,g,I,v,N]),te=he((J,ie)=>{if(C)return;const de=(w&&a&&!N.isSameYear(w,a)?N.setYear(w,N.getYear(a)):w)??a??V,se=N.setMonth(de,ie);L(se)}),z=he(J=>{K(N.setMonth(w??a??V,J))||(Z(J),Q(!0),x&&x(J))});P.useEffect(()=>{Z(J=>Y!==null&&J!==Y?Y:J)},[Y]);const H=he((J,ie)=>{switch(J.key){case"ArrowUp":z((12+ie-3)%12),J.preventDefault();break;case"ArrowDown":z((12+ie+3)%12),J.preventDefault();break;case"ArrowLeft":z((12+ie+(O?1:-1))%12),J.preventDefault();break;case"ArrowRight":z((12+ie+(O?-1:1))%12),J.preventDefault();break}}),W=he((J,ie)=>{z(ie)}),ee=he((J,ie)=>{G===ie&&Q(!1)});return b.jsx(bj,U({ref:n,className:ye(B.root,i),ownerState:F,role:"radiogroup","aria-labelledby":A,monthsPerRow:E},j,{children:Su(N,a??w??V).map(J=>{const ie=N.getMonth(J),ne=N.format(J,"monthShort"),de=N.format(J,"month"),se=Ah(ie,Y,J,w,N),ue=f||K(J);return b.jsx(gv,{selected:se,value:ie,onClick:te,onKeyDown:H,autoFocus:re&&ie===G,disabled:ue,tabIndex:ie===G&&!ue?0:-1,onFocus:W,onBlur:ee,"aria-current":Ah(ie,R,J,I,N)?"date":void 0,"aria-label":de,slots:k,slotProps:$,classes:l,children:ne},ne)})}))});process.env.NODE_ENV!=="production"&&(cd.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(cd.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 yv(e){return Te("MuiYearCalendar",e)}const ui=Ce("MuiYearCalendar",["root","button","disabled","selected"]),vj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],xj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,yv,e)},Sj=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ui.disabled}`]:t.disabled},{[`&.${ui.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ui.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ui.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bv=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=Pe(t,vj),m=P.useRef(null),{ownerState:g}=Dt(),y=U({},g,{isYearDisabled:r,isYearSelected:i}),v=xj(o,y);Ct(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.yearButton)??Sj,x=Le({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,U({},x))});process.env.NODE_ENV!=="production"&&(bv.displayName="YearCalendarButton");const wj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Cj=e=>we({root:["root"]},yv,e);function Tj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const Pj=ae.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Sa,maxHeight:DA,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),Ej=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ud=P.forwardRef(function(t,n){const o=Tj(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:k,slotProps:$}=o,j=Pe(o,wj),{value:w,handleValueChange:L,timezone:D}=Hs({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:En}),I=ga(D),O=fn(),N=Qe(),{ownerState:F}=Dt(),V=P.useMemo(()=>En.getInitialReferenceValue({value:w,adapter:N,props:o,timezone:D,referenceDate:u,granularity:vn.year}),[]),B=Cj(a),R=P.useMemo(()=>N.getYear(I),[N,I]),Y=P.useMemo(()=>w!=null?N.getYear(w):null,[w,N]),[G,Z]=P.useState(()=>Y||N.getYear(V)),[re,X]=Jn({name:"YearCalendar",state:"hasFocus",controlled:x,default:r??!1}),Q=he(le=>{X(le),S&&S(le)}),K=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 fe=N.startOfYear(le);return v(fe)},[f,p,h,m,I,v,N]),te=he((le,fe)=>{if(y)return;const me=N.setYear(w??V,fe);L(me)}),z=he(le=>{K(N.setYear(w??V,le))||(Z(le),Q(!0),C==null||C(le))});P.useEffect(()=>{Z(le=>Y!==null&&le!==Y?Y:le)},[Y]);const H=T!=="desc"?E*1:E*-1,W=O&&T==="asc"||!O&&T==="desc"?-1:1,ee=he((le,fe)=>{switch(le.key){case"ArrowUp":z(fe-H),le.preventDefault();break;case"ArrowDown":z(fe+H),le.preventDefault();break;case"ArrowLeft":z(fe-W),le.preventDefault();break;case"ArrowRight":z(fe+W),le.preventDefault();break}}),J=he((le,fe)=>{z(fe)}),ie=he((le,fe)=>{G===fe&&Q(!1)}),ne=P.useRef(null),de=$e(n,ne);P.useEffect(()=>{if(r||ne.current===null)return;const le=ne.current.querySelector('[tabindex="0"]');if(!le)return;const fe=le.offsetHeight,me=le.offsetTop,Ie=ne.current.clientHeight,Oe=ne.current.scrollTop,qe=me+fe;fe>Ie||me<Oe||(ne.current.scrollTop=qe-Ie/2-fe/2)},[r]);const se=N.getYearRange([m,h]);T==="desc"&&se.reverse();let ue=E-se.length%E;return ue===E&&(ue=0),b.jsxs(Pj,U({ref:de,className:ye(B.root,i),ownerState:F,role:"radiogroup","aria-labelledby":A,yearsPerRow:E},j,{children:[se.map(le=>{const fe=N.getYear(le),me=fe===Y,Ie=d||K(le);return b.jsx(bv,{selected:me,value:fe,onClick:te,onKeyDown:ee,autoFocus:re&&fe===G,disabled:Ie,tabIndex:fe===G&&!Ie?0:-1,onFocus:J,onBlur:ie,"aria-current":R===fe?"date":void 0,slots:k,slotProps:$,classes:a,children:N.format(le,"year")},N.format(le,"year"))}),Array.from({length:ue},(le,fe)=>b.jsx(Ej,{},fe))]}))});process.env.NODE_ENV!=="production"&&(ud.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(ud.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 Mj=e=>Te("MuiPickersCalendarHeader",e),Oj=Ce("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function kj(e){return Te("MuiPickersArrowSwitcher",e)}Ce("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Dj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Rj=["ownerState"],Ij=["ownerState"],Aj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Nj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Nh=ae.styled(Es,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),_j=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},kj,e),vv=P.forwardRef(function(t,n){const o=fn(),r=ae.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:v,classes:C}=r,x=Pe(r,Dj),{ownerState:S}=Dt(),T=_j(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)??Nh,k=Le({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:U({},S,{isButtonHidden:M.isHidden??!1}),className:ye(T.button,T.previousIconButton)}),$=(l==null?void 0:l.nextIconButton)??Nh,j=Le({elementType:$,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:U({},S,{isButtonHidden:E.isHidden??!1}),className:ye(T.button,T.nextIconButton)}),w=(l==null?void 0:l.leftArrowIcon)??__,L=Le({elementType:w,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.leftArrowIcon}),D=Pe(L,Rj),I=(l==null?void 0:l.rightArrowIcon)??j_,O=Le({elementType:I,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.rightArrowIcon}),N=Pe(O,Ij);return b.jsxs(Aj,U({ref:n,className:ye(T.root,a),ownerState:S},x,{children:[b.jsx(A,U({},k,{children:o?b.jsx(I,U({},N)):b.jsx(w,U({},D))})),i?b.jsx(ao,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(Nj,{className:T.spacer,ownerState:S}),b.jsx($,U({},j,{children:o?b.jsx(w,U({},D)):b.jsx(I,U({},N))}))]}))});process.env.NODE_ENV!=="production"&&(vv.displayName="PickersArrowSwitcher");function jj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Qe();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 Lj(e,{disablePast:t,minDate:n,timezone:o}){const r=Qe();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 $j=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Vj=["ownerState"],Fj=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Mj,e),Bj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),zj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>U({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Wj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Uj=ae.styled(Es,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Oj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Hj=ae.styled(N_,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),dd=P.forwardRef(function(t,n){const o=lo(),r=Qe(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:v,views:C,labelId:x,className:S,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,A=Pe(i,$j),{ownerState:k}=Dt(),$=Fj(T),j=(a==null?void 0:a.switchViewButton)??Uj,w=Le({elementType:j,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:U({},k,{view:y}),className:$.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??Hj,D=Le({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:k,className:$.switchViewIcon}),I=Pe(D,Vj),O=()=>m(r.addMonths(c,1)),N=()=>m(r.addMonths(c,-1)),F=jj(c,{disableFuture:d,maxDate:p,timezone:E}),V=Lj(c,{disablePast:f,minDate:h,timezone:E}),B=()=>{if(!(C.length===1||!g||u))if(C.length===2)g(C.find(Y=>Y!==y)||C[0]);else{const Y=C.indexOf(y)!==0?0:1;g(C[Y])}};if(C.length===1&&C[0]==="year")return null;const R=r.formatByString(c,M);return b.jsxs(Bj,U({},A,{ownerState:k,className:ye($.root,S),ref:n,children:[b.jsxs(zj,{role:"presentation",onClick:B,ownerState:k,"aria-live":"polite",className:$.labelContainer,children:[b.jsx(cv,{reduceAnimations:v,transKey:R,children:b.jsx(Wj,{id:x,ownerState:k,className:$.label,children:R})}),C.length>1&&!u&&b.jsx(j,U({},w,{children:b.jsx(L,U({},I))}))]}),b.jsx(no,{in:y==="day",appear:!v,enter:!v,children:b.jsx(vv,{slots:a,slotProps:l,onGoToPrevious:N,isPreviousDisabled:V,previousLabel:o.previousMonth,onGoToNext:O,isNextDisabled:F,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(dd.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(dd.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 Yj=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Sa,maxHeight:Gu,display:"flex",flexDirection:"column",margin:"0 auto"}),qj=e=>Te("MuiDateCalendar",e);Ce("MuiDateCalendar",["root","viewTransitionContainer"]);const Gj=["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"],Kj=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},qj,e);function Zj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=vb(n.reduceAnimations),r=$s(n);return U({},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 Xj=ae.styled(Yj,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Gu}),Qj=ae.styled(cv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),fd=P.forwardRef(function(t,n){const o=Qe(),{ownerState:r}=Dt(),i=so(),a=Zj(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:k,readOnly:$,minDate:j,maxDate:w,disableHighlightToday:L,focusedView:D,onFocusedViewChange:I,showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:F,slots:V,slotProps:B,loading:R,renderLoading:Y,displayWeekNumber:G,yearsOrder:Z,yearsPerRow:re,monthsPerRow:X,timezone:Q}=a,K=Pe(a,Gj),{value:te,handleValueChange:z,timezone:H}=Hs({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:En}),{view:W,setView:ee,focusedView:J,setFocusedView:ie,goToNextView:ne,setValueAndGoToNextView:de}=Sb({view:S,views:T,openTo:E,onChange:z,onViewChange:c,autoFocus:l,focusedView:D,onFocusedViewChange:I}),{referenceDate:se,calendarState:ue,setVisibleDate:le,isDateDisabled:fe,onMonthSwitchingAnimationEnd:me}=j5({value:te,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:j,maxDate:w,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:H,getCurrentMonthFromVisibleDate:(ke,ut)=>o.isSameMonth(ke,ut)?ut:o.startOfMonth(ke)}),Ie=k&&te||j,Oe=k&&te||w,qe=`${i}-grid-label`,tt=J!==null,St=(V==null?void 0:V.calendarHeader)??dd,Tt=Le({elementType:St,externalSlotProps:B==null?void 0:B.calendarHeader,additionalProps:{views:T,view:W,currentMonth:ue.currentMonth,onViewChange:ee,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:Ie,maxDate:Oe,disabled:k,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:H,labelId:qe},ownerState:r}),Ee=he(ke=>{const ut=o.startOfMonth(ke),yt=o.endOfMonth(ke),Et=fe(ke)?vs({adapter:o,date:ke,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(w,yt)?yt:w,disablePast:h,disableFuture:p,isDateDisabled:fe,timezone:H}):ke;Et?(de(Et,"finish"),le({target:Et,reason:"cell-interaction"})):(ne(),le({target:ut,reason:"cell-interaction"}))}),Me=he(ke=>{const ut=o.startOfYear(ke),yt=o.endOfYear(ke),Et=fe(ke)?vs({adapter:o,date:ke,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(w,yt)?yt:w,disablePast:h,disableFuture:p,isDateDisabled:fe,timezone:H}):ke;Et?(de(Et,"finish"),le({target:Et,reason:"cell-interaction"})):(ne(),le({target:ut,reason:"cell-interaction"}))}),Se=he(ke=>z(ke&&$i(o,ke,te??se),"finish",W));P.useEffect(()=>{o.isValid(te)&&le({target:te,reason:"controlled-value-change"})},[te]);const Be=Kj(A),ze={disablePast:h,disableFuture:p,maxDate:w,minDate:j},nt={disableHighlightToday:L,readOnly:$,disabled:k,timezone:H,gridLabelId:qe,slots:V,slotProps:B},Je=P.useRef(W);P.useEffect(()=>{Je.current!==W&&(J===Je.current&&ie(W,!0),Je.current=W)},[J,ie,W]);const Vt=P.useMemo(()=>[te],[te]);return b.jsxs(Xj,U({ref:n,className:ye(Be.root,M),ownerState:r},K,{children:[b.jsx(St,U({},Tt,{slots:V,slotProps:B})),b.jsx(Qj,{reduceAnimations:y,className:Be.viewTransitionContainer,transKey:W,ownerState:r,children:b.jsxs("div",{children:[W==="year"&&b.jsx(ud,U({},ze,nt,{value:te,onChange:Me,shouldDisableYear:x,hasFocus:tt,onFocusedViewChange:ke=>ie("year",ke),yearsOrder:Z,yearsPerRow:re,referenceDate:se})),W==="month"&&b.jsx(cd,U({},ze,nt,{currentMonth:ue.currentMonth,hasFocus:tt,className:M,value:te,onChange:Ee,shouldDisableMonth:C,onFocusedViewChange:ke=>ie("month",ke),monthsPerRow:X,referenceDate:se})),W==="day"&&b.jsx(dj,U({},ue,ze,nt,{onMonthSwitchingAnimationEnd:me,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:Vt,onSelectedDaysChange:Se,shouldDisableDate:v,shouldDisableMonth:C,shouldDisableYear:x,onFocusedViewChange:ke=>ie("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:F,displayWeekNumber:G,loading:R,renderLoading:Y}))]})})]}))});process.env.NODE_ENV!=="production"&&(fd.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(fd.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 jo=({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:k,loading:$,renderLoading:j,disableHighlightToday:w,readOnly:L,disabled:D,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:O,sx:N,autoFocus:F,fixedWeekNumber:V,displayWeekNumber:B,timezone:R})=>b.jsx(fd,{view:e,onViewChange:t,views:n.filter(Ip),focusedView:o&&Ip(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:k,loading:$,renderLoading:j,disableHighlightToday:w,readOnly:L,disabled:D,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:O,sx:N,autoFocus:F,fixedWeekNumber:V,displayWeekNumber:B,timezone:R});process.env.NODE_ENV!=="production"&&(jo.displayName="renderDateViewCalendar");const pd=P.forwardRef(function(t,n){var c;const o=Qe(),r=Ky(t,"MuiDesktopDatePicker"),i=U({day:jo,month:jo,year:jo},r.viewRenderers),a=U({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:wu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},tn((d=r.slotProps)==null?void 0:d.field,u),Yy(r))},toolbar:U({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=WA({ref:n,props:a,valueManager:En,valueType:"date",validator:Ls,steps:null});return l()});process.env.NODE_ENV!=="production"&&(pd.displayName="DesktopDatePicker");pd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,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 Jj(e){return Te("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);const eL=Ce("MuiDialogTitle",["root"]),tL=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},Jj,t)},nL=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xe(({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:{[`.${eL.root} + &`]:{paddingTop:0}}}]}))),xv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=tL(l);return b.jsx(nL,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(xv.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 oL(e){return Te("MuiDialog",e)}const ds=Ce("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Sv=P.createContext({});process.env.NODE_ENV!=="production"&&(Sv.displayName="DialogContext");const rL=be(Ju,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),sL=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,oL,t)},iL=be(ed,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),aL=be("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"}}}]}),lL=be(zs,{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]}})(Xe(({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)`,[`&.${ds.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}`,[`&.${ds.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,[`&.${ds.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialog"}),r=sa(),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=zs,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:A={},TransitionComponent:k=no,transitionDuration:$=i,TransitionProps:j,...w}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},D=sL(L),I=P.useRef(),O=ee=>{I.current=ee.target===ee.currentTarget},N=ee=>{v&&v(ee),I.current&&(I.current=null,C&&C(ee,"backdropClick"))},F=so(l),V=P.useMemo(()=>({titleId:F}),[F]),B={transition:k,...M},R={transition:j,paper:T,backdrop:d,...A},Y={slots:B,slotProps:R},[G,Z]=it("root",{elementType:iL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(D.root,p),ref:n}),[re,X]=it("backdrop",{elementType:rL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:D.backdrop}),[Q,K]=it("paper",{elementType:lL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(D.paper,T.className)}),[te,z]=it("container",{elementType:aL,externalForwardedProps:Y,ownerState:L,className:D.container}),[H,W]=it("transition",{elementType:no,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:x,timeout:$,role:"presentation"}});return b.jsx(G,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:$,as:u,...X}},disableEscapeKeyDown:h,onClose:C,open:x,onClick:N,...Z,...w,children:b.jsx(H,{...W,children:b.jsx(te,{onMouseDown:O,...z,children:b.jsx(Q,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":F,"aria-modal":c,...K,children:b.jsx(Sv.Provider,{value:V,children:f})})})})})});process.env.NODE_ENV!=="production"&&(wv.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 cL=ae.styled(wv,{slot:"internal"})({[`& .${ds.container}`]:{outline:0},[`& .${ds.paper}`]:{outline:0,minWidth:Sa}}),uL=ae.styled(xv,{slot:"internal"})({"&:first-of-type":{padding:0}});function dL(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Mr(),{dismissViews:i,onPopperExited:a}=Dt(),l=(n==null?void 0:n.dialog)??cL,c=(n==null?void 0:n.mobileTransition)??no;return b.jsx(l,U({open:r,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:b.jsx(uL,{children:t})}))}const fL=["props","steps"],pL=["ownerState"],hL=e=>{var E;let{props:t,steps:n}=e,o=Pe(e,fL);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=jb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=Cb(U({},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=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Pe(y,pL),C=r.layout??wa;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:U({"aria-labelledby":x},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(By,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(dL,{slots:r,slotProps:S,children:b.jsx(C,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},hd=P.forwardRef(function(t,n){var c;const o=Qe(),r=Ky(t,"MuiMobileDatePicker"),i=U({day:jo,month:jo,year:jo},r.viewRenderers),a=U({},r,{viewRenderers:i,format:wu(o,r,!1),slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},tn((d=r.slotProps)==null?void 0:d.field,u),Yy(r))},toolbar:U({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=hL({ref:n,props:a,valueManager:En,valueType:"date",validator:Ls,steps:null});return l()});process.env.NODE_ENV!=="production"&&(hd.displayName="MobileDatePicker");hd.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:xt,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 mL=["desktopModeMediaQuery"],md=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=x2}=o,i=Pe(o,mL);return _y(r,{defaultMatches:!0})?b.jsx(pd,U({ref:n},i)):b.jsx(hd,U({ref:n},i))});process.env.NODE_ENV!=="production"&&(md.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(md.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:xt,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 Cv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,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(D){var I=["th","st","nd","rd"],O=D%100;return"["+D+(I[(O-20)%10]||I[O]||I[0])+"]"}},x=function(D,I,O){var N=String(D);return!N||N.length>=I?D:""+Array(I+1-N.length).join(O)+D},S={s:x,z:function(D){var I=-D.utcOffset(),O=Math.abs(I),N=Math.floor(O/60),F=O%60;return(I<=0?"+":"-")+x(N,2,"0")+":"+x(F,2,"0")},m:function D(I,O){if(I.date()<O.date())return-D(O,I);var N=12*(O.year()-I.year())+(O.month()-I.month()),F=I.clone().add(N,f),V=O-F<0,B=I.clone().add(N+(V?-1:1),f);return+(-(N+(O-F)/(V?F-B:B-F))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},T="en",E={};E[T]=C;var M="$isDayjsObject",A=function(D){return D instanceof w||!(!D||!D[M])},k=function D(I,O,N){var F;if(!I)return T;if(typeof I=="string"){var V=I.toLowerCase();E[V]&&(F=V),O&&(E[V]=O,F=V);var B=I.split("-");if(!F&&B.length>1)return D(B[0])}else{var R=I.name;E[R]=I,F=R}return!N&&F&&(T=F),F||!N&&T},$=function(D,I){if(A(D))return D.clone();var O=typeof I=="object"?I:{};return O.date=D,O.args=arguments,new w(O)},j=S;j.l=k,j.i=A,j.w=function(D,I){return $(D,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var w=function(){function D(O){this.$L=k(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var I=D.prototype;return I.parse=function(O){this.$d=function(N){var F=N.date,V=N.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 B=F.match(y);if(B){var R=B[2]-1||0,Y=(B[7]||"0").substring(0,3);return V?new Date(Date.UTC(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)):new Date(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)}}return new Date(F)}(O),this.init()},I.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},I.$utils=function(){return j},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(O,N){var F=$(O);return this.startOf(N)<=F&&F<=this.endOf(N)},I.isAfter=function(O,N){return $(O)<this.startOf(N)},I.isBefore=function(O,N){return this.endOf(N)<$(O)},I.$g=function(O,N,F){return j.u(O)?this[N]:this.set(F,O)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(O,N){var F=this,V=!!j.u(N)||N,B=j.p(O),R=function(te,z){var H=j.w(F.$u?Date.UTC(F.$y,z,te):new Date(F.$y,z,te),F);return V?H:H.endOf(u)},Y=function(te,z){return j.w(F.toDate()[te].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(z)),F)},G=this.$W,Z=this.$M,re=this.$D,X="set"+(this.$u?"UTC":"");switch(B){case h:return V?R(1,0):R(31,11);case f:return V?R(1,Z):R(0,Z+1);case d:var Q=this.$locale().weekStart||0,K=(G<Q?G+7:G)-Q;return R(V?re-K:re+(6-K),Z);case u:case m:return Y(X+"Hours",0);case c:return Y(X+"Minutes",1);case l:return Y(X+"Seconds",2);case a:return Y(X+"Milliseconds",3);default:return this.clone()}},I.endOf=function(O){return this.startOf(O,!1)},I.$set=function(O,N){var F,V=j.p(O),B="set"+(this.$u?"UTC":""),R=(F={},F[u]=B+"Date",F[m]=B+"Date",F[f]=B+"Month",F[h]=B+"FullYear",F[c]=B+"Hours",F[l]=B+"Minutes",F[a]=B+"Seconds",F[i]=B+"Milliseconds",F)[V],Y=V===u?this.$D+(N-this.$W):N;if(V===f||V===h){var G=this.clone().set(m,1);G.$d[R](Y),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else R&&this.$d[R](Y);return this.init(),this},I.set=function(O,N){return this.clone().$set(O,N)},I.get=function(O){return this[j.p(O)]()},I.add=function(O,N){var F,V=this;O=Number(O);var B=j.p(N),R=function(Z){var re=$(V);return j.w(re.date(re.date()+Math.round(Z*O)),V)};if(B===f)return this.set(f,this.$M+O);if(B===h)return this.set(h,this.$y+O);if(B===u)return R(1);if(B===d)return R(7);var Y=(F={},F[l]=o,F[c]=r,F[a]=n,F)[B]||1,G=this.$d.getTime()+O*Y;return j.w(G,this)},I.subtract=function(O,N){return this.add(-1*O,N)},I.format=function(O){var N=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var V=O||"YYYY-MM-DDTHH:mm:ssZ",B=j.z(this),R=this.$H,Y=this.$m,G=this.$M,Z=F.weekdays,re=F.months,X=F.meridiem,Q=function(z,H,W,ee){return z&&(z[H]||z(N,V))||W[H].slice(0,ee)},K=function(z){return j.s(R%12||12,z,"0")},te=X||function(z,H,W){var ee=z<12?"AM":"PM";return W?ee.toLowerCase():ee};return V.replace(v,function(z,H){return H||function(W){switch(W){case"YY":return String(N.$y).slice(-2);case"YYYY":return j.s(N.$y,4,"0");case"M":return G+1;case"MM":return j.s(G+1,2,"0");case"MMM":return Q(F.monthsShort,G,re,3);case"MMMM":return Q(re,G);case"D":return N.$D;case"DD":return j.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Q(F.weekdaysMin,N.$W,Z,2);case"ddd":return Q(F.weekdaysShort,N.$W,Z,3);case"dddd":return Z[N.$W];case"H":return String(R);case"HH":return j.s(R,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return te(R,Y,!0);case"A":return te(R,Y,!1);case"m":return String(Y);case"mm":return j.s(Y,2,"0");case"s":return String(N.$s);case"ss":return j.s(N.$s,2,"0");case"SSS":return j.s(N.$ms,3,"0");case"Z":return B}return null}(z)||B.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(O,N,F){var V,B=this,R=j.p(N),Y=$(O),G=(Y.utcOffset()-this.utcOffset())*o,Z=this-Y,re=function(){return j.m(B,Y)};switch(R){case h:V=re()/12;break;case f:V=re();break;case p:V=re()/3;break;case d:V=(Z-G)/6048e5;break;case u:V=(Z-G)/864e5;break;case c:V=Z/r;break;case l:V=Z/o;break;case a:V=Z/n;break;default:V=Z}return F?V:j.a(V)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return E[this.$L]},I.locale=function(O,N){if(!O)return this.$L;var F=this.clone(),V=k(O,N,!0);return V&&(F.$L=V),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()},D}(),L=w.prototype;return $.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(D){L[D[1]]=function(I){return this.$g(I,D[0],D[1])}}),$.extend=function(D,I){return D.$i||(D(I,w,$),D.$i=!0),$},$.locale=k,$.isDayjs=A,$.unix=function(D){return $(1e3*D)},$.en=E[T],$.Ls=E,$.p={},$})})(Cv);var gL=Cv.exports;const bt=oo(gL);var Tv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,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)}}})})(Tv);var yL=Tv.exports;const bL=oo(yL);var Pv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,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($,j,w){var L=w&&w.toUpperCase();return j||C[w]||n[w]||C[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,I,O){return I||O.slice(1)})})).match(o),S=x.length,T=0;T<S;T+=1){var E=x[T],M=m[E],A=M&&M[0],k=M&&M[1];x[T]=k?{regex:A,parser:k}:E.replace(/^\[|\]$/g,"")}return function($){for(var j={},w=0,L=0;w<S;w+=1){var D=x[w];if(typeof D=="string")L+=D.length;else{var I=D.regex,O=D.parser,N=$.slice(L),F=I.exec(N)[0];O.call(j,F),$=$.replace(F,"")}}return function(V){var B=V.afternoon;if(B!==void 0){var R=V.hours;B?R<12&&(V.hours+=12):R===12&&(V.hours=0),delete V.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 k=A[1];if(typeof k=="string"){var $=A[2]===!0,j=A[3]===!0,w=$||j,L=A[2];j&&(L=A[2]),c=this.$locale(),!$&&L&&(c=C.Ls[L]),this.$d=function(N,F,V,B){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*N);var R=g(F)(N),Y=R.year,G=R.month,Z=R.day,re=R.hours,X=R.minutes,Q=R.seconds,K=R.milliseconds,te=R.zone,z=R.week,H=new Date,W=Z||(Y||G?1:H.getDate()),ee=Y||H.getFullYear(),J=0;Y&&!G||(J=G>0?G-1:H.getMonth());var ie,ne=re||0,de=X||0,se=Q||0,ue=K||0;return te?new Date(Date.UTC(ee,J,W,ne,de,se,ue+60*te.offset*1e3)):V?new Date(Date.UTC(ee,J,W,ne,de,se,ue)):(ie=new Date(ee,J,W,ne,de,se,ue),z&&(ie=B(ie).week(z).toDate()),ie)}catch{return new Date("")}}(E,k,M,C),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),w&&E!=this.format(k)&&(this.$d=new Date("")),c={}}else if(k instanceof Array)for(var D=k.length,I=1;I<=D;I+=1){A[1]=k[I-1];var O=C.apply(this,A);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}I===D&&(this.$d=new Date(""))}else S.call(this,T)}}})})(Pv);var vL=Pv.exports;const xL=oo(vL);var Ev={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,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)}}})})(Ev);var SL=Ev.exports;const wL=oo(SL);var Mv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,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))}}})})(Mv);var CL=Mv.exports;const TL=oo(CL);var Ov={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,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)}}})})(Ov);var PL=Ov.exports;const EL=oo(PL);bt.extend(wL);bt.extend(bL);bt.extend(TL);bt.extend(EL);const ML={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"},OL={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"},Cl=["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 kL{constructor({locale:t,formats:n}={}){pe(this,"isMUIAdapter",!0);pe(this,"isTimezoneCompatible",!0);pe(this,"lib","dayjs");pe(this,"escapedCharacters",{start:"[",end:"]"});pe(this,"formatTokenMap",ML);pe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});pe(this,"hasUTCPlugin",()=>typeof bt.utc<"u");pe(this,"hasTimezonePlugin",()=>typeof bt.tz<"u");pe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});pe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return bt.tz.guess();default:return t}});pe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=bt.tz.guess();o==="UTC"?n=bt(t):n=bt.tz(t,o)}else n=bt(t);return this.setLocaleToValue(n)});pe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(Cl);return this.setLocaleToValue(bt.utc(t))});pe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Cl);if(!this.hasTimezonePlugin())throw new Error(_h);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(bt(t).tz(this.cleanTimezone(n),o))});pe(this,"getLocaleFormats",()=>{const t=bt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&wb(["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});pe(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});pe(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));pe(this,"getInvalidDate",()=>bt(new Date("Invalid date")));pe(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"});pe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(Cl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(_h)}return this.setLocaleToValue(bt.tz(t,this.cleanTimezone(n)))});pe(this,"toJsDate",t=>t.toDate());pe(this,"parse",(t,n)=>t===""?null:bt(t,n,this.locale,!0));pe(this,"getCurrentLocaleCode",()=>this.locale||"en");pe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));pe(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])})});pe(this,"isValid",t=>t==null?!1:t.isValid());pe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));pe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));pe(this,"formatNumber",t=>t);pe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());pe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));pe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));pe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));pe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));pe(this,"isAfter",(t,n)=>t>n);pe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));pe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));pe(this,"isBefore",(t,n)=>t<n);pe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));pe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));pe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);pe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));pe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));pe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));pe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));pe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));pe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));pe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));pe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));pe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));pe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));pe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));pe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));pe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));pe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));pe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));pe(this,"getYear",t=>t.year());pe(this,"getMonth",t=>t.month());pe(this,"getDate",t=>t.date());pe(this,"getHours",t=>t.hour());pe(this,"getMinutes",t=>t.minute());pe(this,"getSeconds",t=>t.second());pe(this,"getMilliseconds",t=>t.millisecond());pe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));pe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));pe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));pe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));pe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));pe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));pe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));pe(this,"getDaysInMonth",t=>t.daysInMonth());pe(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});pe(this,"getWeekNumber",t=>t.week());pe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=U({},OL,n),bt.extend(xL)}getDayOfWeek(t){return t.day()+1}}const DL="_root_1dntq_1",RL="_container_1dntq_72",IL="_header_1dntq_83",AL="_headerText_1dntq_91",NL="_headerTitle_1dntq_97",_L="_headerSubtitle_1dntq_102",jL="_controls_1dntq_106",LL="_headerButton_1dntq_113",$L="_zoomGroup_1dntq_133",VL="_zoomLabel_1dntq_144",FL="_tracksWrapper_1dntq_153",BL="_tracksWithHeader_1dntq_158",zL="_layers_1dntq_162",WL="_timeScale_1dntq_168",UL="_videoTrack_1dntq_172",HL="_eventsTrack_1dntq_176",YL="_trackBox_1dntq_180",qL="_trackLabelRow_1dntq_190",GL="_label_1dntq_198",KL="_trackArea_1dntq_209",ZL="_tick_1dntq_215",XL="_tickMajor_1dntq_223",QL="_tickMinor_1dntq_227",JL="_tickLabel_1dntq_231",e$="_segment_1dntq_243",t$="_event_1dntq_176",n$="_eventDot_1dntq_276",o$="_selectionOverlay_1dntq_283",r$="_playhead_1dntq_292",s$="_playheadLine_1dntq_302",i$="_playheadHandle_1dntq_312",Re={root:DL,container:RL,header:IL,headerText:AL,headerTitle:NL,headerSubtitle:_L,controls:jL,headerButton:LL,zoomGroup:$L,zoomLabel:VL,tracksWrapper:FL,tracksWithHeader:BL,layers:zL,timeScale:WL,videoTrack:UL,eventsTrack:HL,trackBox:YL,trackLabelRow:qL,label:GL,trackArea:KL,tick:ZL,tickMajor:XL,tickMinor:QL,tickLabel:JL,segment:e$,event:t$,eventDot:n$,selectionOverlay:o$,playhead:r$,playheadLine:s$,playheadHandle:i$};function rt(e,t,n){return Math.min(n,Math.max(t,e))}function Nn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Jo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function st(e){return String(Math.floor(e)).padStart(2,"0")}function a$(e){return String(Math.floor(e)).padStart(4,"0")}function jh(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60);return`${a$(t.getFullYear())}${st(t.getMonth()+1)}${st(t.getDate())}T${st(o)}${st(r)}${st(i)}Z`}function l$(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Tl(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`${st(n)}:${st(o)}:${st(r)}`}function c$(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`${st(o)}:${st(r)}:${st(i)}:${st(l)}`}function Pl(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?`${st(n)}:${st(o)}:${st(r)}`:`${st(o)}:${st(r)}`}function u$(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?`${st(o)}:${st(r)}:${st(i)}:${st(l)}`:`${st(r)}:${st(i)}:${st(l)}`}function d$(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 f$=(e,t,n)=>t>=3600?Tl(e).slice(0,2)+":00:00":t>=60?Tl(e).slice(0,5):t>=1?Tl(e):c$(e,n),p$=(e,t,n)=>t>=3600||t>=60||t>=1?Pl(e):u$(e,n);function h$(){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 m$(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i,date:a,onChangePeriod:l,segments:c,events:u,fps:d=30}=e,[f,p]=_.useState(0),[h,m]=_.useState(!1),[g,y]=_.useState(null),[v,C]=_.useState({windowSeconds:t,fps:d}),{ref:x,width:S}=h$(),T=102,M=Math.max(0,S-T-10),[A,k]=_.useState(0),$=_.useMemo(()=>{const z=Math.max(1/Math.max(1,v.fps),.05);return rt(v.windowSeconds,z,t)},[v.windowSeconds,v.fps,t]);_.useEffect(()=>{if(!h||S<=0)return;const z=rt(f-$*.9,0,Math.max(0,t-$));k(z)},[f,h,S,$,t]);const j=_.useMemo(()=>{const z=rt(A,0,Math.max(0,t-$)),H=z+$;return{start:z,end:H,seconds:$}},[A,t,$]),w=_.useMemo(()=>{if(M<=0)return[];const{majorStep:z,minorStep:H}=d$({width:M,windowSeconds:j.seconds,fps:v.fps}),W=Math.floor(j.start/H)*H,ee=j.end,J=[],ie=H*1e-6;for(let ne=W;ne<=ee+ie;ne+=H){const de=Nn({time:ne,windowStart:j.start,windowSeconds:j.seconds,width:M});if(de<-1||de>M+1)continue;const se=Math.abs(ne/z-Math.round(ne/z))<1e-6;J.push({time:ne,px:de,kind:se?"major":"minor",label:se?r(ne,z,v.fps):void 0})}return J},[M,r,j.end,j.seconds,j.start,v.fps]),L=_.useRef(l);L.current=l;const D=_.useRef(a);D.current=a;const I=_.useCallback((z,H)=>{const W=L.current;if(!W)return;const ee=D.current;W({startDate:jh(z,ee),endDate:jh(H,ee)})},[]),O=_.useRef(null),N=_.useRef(null),F=z=>{N.current=z,O.current==null&&(O.current=requestAnimationFrame(()=>{O.current=null;const H=N.current;N.current=null,H==null||H()}))};_.useEffect(()=>()=>{O.current!=null&&cancelAnimationFrame(O.current)},[]);const V=_.useRef(null),B=z=>{const H=x.current;if(!H)return 0;const W=H.getBoundingClientRect();return rt(z-W.left-T,0,M)};return{viewportRef:x,width:S,axisLeft:T,axisWidth:M,totalSeconds:t,zoom:v,setZoom:C,isLive:h,setIsLive:m,currentTime:f,selectedRange:g,setSelectedRange:y,videoSegments:c,events:u,view:j,ticks:w,onWheel:z=>{if(!n||S<=0)return;z.preventDefault(),m(!1);const H=B(z.clientX),W=rt(Jo({px:H,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t),J=z.deltaY<0?.8:1.25,ie=rt(j.seconds*J,Math.max(1/Math.max(1,v.fps),.05),t),ne=rt(W-H/Math.max(1,M)*ie,0,Math.max(0,t-ie));C(de=>({...de,windowSeconds:ie})),k(ne)},onPointerDownScrub:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"playhead",pointerId:z.pointerId,startPx:W,startTime:ee},p(ee)},onPointerDownSelect:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"select",pointerId:z.pointerId,startPx:W,startTime:ee},y({start:ee,end:ee})},onPointerDownPlayhead:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"playhead",pointerId:z.pointerId,startPx:W,startTime:ee},p(ee)},onPointerMove:z=>{const H=V.current;if(!H||H.pointerId!==z.pointerId)return;const W=B(z.clientX);F(()=>{const ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);if(H.mode==="playhead")p(ee);else{const J=Math.min(H.startTime,ee),ie=Math.max(H.startTime,ee);y({start:J,end:ie})}})},onPointerUp:z=>{const H=V.current;if(!(!H||H.pointerId!==z.pointerId)&&(V.current=null,H.mode==="select"&&g)){const W=Math.abs(g.end-g.start);if(W<Math.max(1/Math.max(1,v.fps),.1))y(null);else if(I(g.start,g.end),o){const ee=rt(W*1.05,Math.max(1/Math.max(1,v.fps),.05),t),J=rt(g.start,0,Math.max(0,t-ee));C(ie=>({...ie,windowSeconds:ee})),k(J)}}},onClickSegment:(z,H)=>{m(!1);const W=rt(z,0,t);p(W),I(H.start,H.end)},onClickEvent:z=>{i&&y(null),m(!1);const H=rt(z,0,t);p(H),I(H,H),k(rt(z-j.seconds/2,0,Math.max(0,t-j.seconds)))},resetView:()=>{m(!1),C(z=>({...z,windowSeconds:t})),k(0)}}}const kv=({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}`))});kv.displayName="TimeScale";const Dv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:rt(c.start,0,r),end:rt(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=Nn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=rt(Jo({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=Nn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Nn({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}`)})})};Dv.displayName="VideoTrack";const Rv=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:rt(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=Nn({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)})})};Rv.displayName="EventsTrack";const Iv=({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",onChangePeriod:S,onSegmentClick:T,onEventClick:E,segments:M,events:A,...k})=>{const j=ae.useTheme().palette.mode==="dark",[w,L]=_.useState(!1),D=a??(i==="duration"?p$:f$),{viewportRef:I,axisLeft:O,axisWidth:N,zoom:F,currentTime:V,selectedRange:B,videoSegments:R,events:Y,view:G,ticks:Z,onWheel:re,onPointerDownScrub:X,onPointerDownSelect:Q,onPointerDownPlayhead:K,onPointerMove:te,onPointerUp:z,onClickSegment:H,onClickEvent:W,setZoom:ee}=m$({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:D,clearSelectionOnEventClick:h,date:g??new Date,onChangePeriod:S,segments:M??[],events:A??[]}),J=N?O+Nn({time:V,windowStart:G.start,windowSeconds:G.seconds,width:N}):O,ie=Math.max(1/Math.max(1,F.fps),.5),ne=ie/l,de=(()=>{const le=rt(G.seconds,ie,l);if(ne<=0||ne>=1)return 0;const fe=Math.log(le/l)/Math.log(ne)*100;return rt(fe,0,100)})(),se=le=>{const fe=rt(le,0,100),me=l*Math.pow(ne,fe/100);ee(Ie=>({...Ie,windowSeconds:rt(me,ie,l)}))},ue=`${Math.round(de)}%`;return b.jsxs(q.Box,{className:`${Re.root} ${Re.container} ${e??""}`.trim(),"data-theme":j?"dark":"light",sx:t,...k,children:[r?b.jsxs("div",{className:Re.header,children:[b.jsxs("div",{className:Re.headerText,children:[b.jsx(q.Typography,{variant:"subtitle1",className:Re.headerTitle,children:n}),b.jsx(q.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(wD,{fontSize:"small"}),x]}):null,g!==void 0?b.jsx(ha,{dateAdapter:kL,children:b.jsx(md,{open:w,onOpen:()=>L(!0),onClose:()=>L(!1),value:bt(g),onChange:le=>{le&&y&&y(le.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:Re.headerButton,onClick:()=>L(!0),"aria-label":"Selecionar data",children:[b.jsx(CD,{fontSize:"small"}),bt(g).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(q.Box,{className:Re.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(q.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>se(de-10),children:b.jsx(SD,{fontSize:"small"})}),b.jsx("span",{className:Re.zoomLabel,children:ue}),b.jsx(q.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>se(de+10),children:b.jsx(xD,{fontSize:"small"})})]}):null]})]}):null,b.jsx(q.Box,{className:`${Re.tracksWrapper} ${r?Re.tracksWithHeader:""}`.trim(),style:{height:u},children:b.jsxs("div",{ref:I,className:Re.layers,onWheel:re,onPointerMove:te,onPointerUp:z,children:[b.jsxs("div",{className:Re.playhead,style:{left:`${J}px`},onPointerDown:K,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":V,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:X,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(kv,{ticks:Z})})]}),b.jsxs(q.Box,{className:Re.trackBox,onPointerDown:Q,children:[B?b.jsx("div",{className:Re.selectionOverlay,style:{left:`${O+Nn({time:B.start,windowStart:G.start,windowSeconds:G.seconds,width:N})}px`,width:`${Math.max(0,Nn({time:B.end,windowStart:G.start,windowSeconds:G.seconds,width:N})-Nn({time:B.start,windowStart:G.start,windowSeconds:G.seconds,width:N}))}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?X:void 0,style:{height:"100%"},children:b.jsx(Dv,{segments:R,viewStart:G.start,viewSeconds:G.seconds,width:N,totalSeconds:l,onClickSegment:(le,fe)=>{H(le,fe),T==null||T(le,fe)}})})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.eventsTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:C}),b.jsx("div",{onPointerDown:p?X:void 0,style:{height:"100%"},children:b.jsx(Rv,{events:Y,viewStart:G.start,viewSeconds:G.seconds,width:N,totalSeconds:l,onClickEvent:(le,fe)=>{W(le),E==null||E(le,fe)}})})]})]})]})})]})};Iv.displayName="VideoTimeline";const g$=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=vu(),[a,l]=Li(Dy),[c,u]=Li(Ry),d=ky(zk),f=_.useRef(-1);return _.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(l$()),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},Av=({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:k,loading:$,unavailable:j,unavailableIcon:w,unavailableMessage:L})=>{const D=!!e,I=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(Iy,{children:[b.jsx(xu,{stream:e,availableQualities:I,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:k,loading:$,unavailable:j,unavailableIcon:w,unavailableMessage:L}),b.jsx(g$,{isStream:D,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Av.displayName="VideoPlayerWebRTC";const y$=gt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),b$="_container_1vjy6_1",v$="_segment_1vjy6_7",x$="_selected_1vjy6_20",S$="_label_1vjy6_28",w$="_icon_1vjy6_37",C$="_checkIcon_1vjy6_47",T$="_unselected_1vjy6_53",wo={container:b$,segment:v$,selected:x$,label:S$,icon:w$,checkIcon:C$,unselected:T$},Nv=({items:e,className:t,sx:n,...o})=>{const i=q.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(q.Box,{className:`${wo.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(q.Box,{className:`${wo.segment} ${l.selected?wo.selected:wo.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(q.Box,{className:wo.icon,children:b.jsx(y$,{className:wo.checkIcon})}),b.jsx(q.Box,{className:wo.label,children:l.label})]},c))})};Nv.displayName="DisplayTypes";const P$=600,El=[.32,.72,0,1],Ml=400,_v=({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=q.useTheme(),d=q.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${Ml}ms cubic-bezier(${El.join(",")}), min-width ${Ml}ms cubic-bezier(${El.join(",")})`;if(d&&i!=="both")return b.jsxs(q.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:p?"flex":"none",flexDirection:"column"},children:t})]});const g=r?0:o,y=r?0:void 0,v=r?"none":"auto";return b.jsxs(q.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${Ml}ms cubic-bezier(${El.join(",")})`,...c},children:[b.jsx(q.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(q.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};_v.displayName="SplitLayout";const E$=256,jv=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=E$,gap:r=2,className:i,sx:a})=>{const c=q.useTheme().spacing(r),u=n-1;return b.jsx(q.Box,{className:i,sx:{"--responsive-grid-gap":c,display:"grid",gap:c,width:"100%",minHeight:0,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(${o}px, calc((100% - ${u} * var(--responsive-grid-gap)) / ${n}))), 1fr))`,alignContent:"start",...a},children:e})};jv.displayName="ResponsiveGrid";const Lv=gt(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",es=e=>e instanceof Date,gd=e=>e==null;const $v=e=>typeof e=="object";var Fo=e=>!gd(e)&&!Array.isArray(e)&&$v(e)&&!es(e),O$=e=>Fo(e)&&e.target?M$(e.target)?e.target.checked:e.target.value:e,k$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,D$=(e,t)=>e.has(k$(t)),R$=e=>{const t=e.constructor&&e.constructor.prototype;return Fo(t)&&t.hasOwnProperty("isPrototypeOf")},I$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vv(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(I$&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Fo(e)&&R$(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Vv(e[r]));return o}var Fv=e=>/^\w*$/.test(e),Ec=e=>e===void 0,A$=e=>Array.isArray(e)?e.filter(Boolean):[],Bv=e=>A$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,n)=>{if(!t||!Fo(e))return n;const o=(Fv(t)?[t]:Bv(t)).reduce((r,i)=>gd(r)?r:r[i],e);return Ec(o)||o===e?Ec(e[t])?n:e[t]:o},Ol=e=>typeof e=="boolean",di=e=>typeof e=="function",Lh=(e,t,n)=>{let o=-1;const r=Fv(t)?[t]:Bv(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=Fo(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"},Vh={all:"all"},zv=_.createContext(null);zv.displayName="HookFormControlContext";const yd=()=>_.useContext(zv);var N$=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Vh.all&&(t._proxyFormState[a]=!o||Vh.all),n&&(n[a]=!0),e[a]}});return r};const Wv=typeof window<"u"?_.useLayoutEffect:_.useEffect;function _$(e){const t=yd(),{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 Wv(()=>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(()=>N$(a,n,c.current,!1),[a,n])}var j$=e=>typeof e=="string",Fh=(e,t,n,o,r)=>j$(e)?Ft(n,e,r):Array.isArray(e)?e.map(i=>Ft(n,i)):n,Bh=e=>gd(e)||!$v(e);function Si(e,t,n=new WeakSet){if(Bh(e)||Bh(t))return Object.is(e,t);if(es(e)&&es(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(es(a)&&es(l)||Fo(a)&&Fo(l)||Array.isArray(a)&&Array.isArray(l)?!Si(a,l,n):!Object.is(a,l))return!1}}return!0}function L$(e){const t=yd(),{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 S=n._getWatch(o,c.current);return u.current?u.current(S):S}),g=_.useCallback(S=>{const T=Fh(o,n._names,S||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=_.useCallback(S=>{if(!i){const T=Fh(o,n._names,S||n._formValues,!1,c.current);if(u.current){const E=u.current(T);Si(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);Wv(()=>((f.current!==n||!Si(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]),_.useEffect(()=>n._removeUnmounted());const v=f.current!==n,C=p.current,x=_.useMemo(()=>{if(i)return null;const S=!v&&!Si(C,o);return v||S?g():null},[i,v,o,C,g]);return x!==null?x:h}function $$(e){const t=yd(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=D$(r._names.array,n),u=_.useMemo(()=>Ft(r._formValues,n,Ft(r._defaultValues,n,a)),[r,n,a]),d=L$({control:r,name:n,defaultValue:u,exact:l}),f=_$({control:r,name:n,exact:l}),p=_.useRef(e),h=_.useRef(void 0),m=_.useRef(r.register(n,{...e.rules,value:d,...Ol(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ft(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ft(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ft(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ft(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ft(f.errors,n)}}),[f,n]),y=_.useCallback(S=>m.current.onChange({target:{value:O$(S),name:n},type:$h.CHANGE}),[n]),v=_.useCallback(()=>m.current.onBlur({target:{value:Ft(r._formValues,n),name:n},type:$h.BLUR}),[n,r._formValues]),C=_.useCallback(S=>{const T=Ft(r._fields,n);T&&T._f&&S&&(T._f.ref={focus:()=>di(S.focus)&&S.focus(),select:()=>di(S.select)&&S.select(),setCustomValidity:E=>di(S.setCustomValidity)&&S.setCustomValidity(E),reportValidity:()=>di(S.reportValidity)&&S.reportValidity()})},[r._fields,n]),x=_.useMemo(()=>({name:n,value:d,...Ol(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:C}),[n,o,f.disabled,y,v,C,d]);return _.useEffect(()=>{const S=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...Ol(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,A)=>{const k=Ft(r._fields,M);k&&k._f&&(k._f.mount=A)};if(E(n,!0),S){const M=Vv(Ft(r._options.defaultValues,n,p.current.defaultValue));Lh(r._defaultValues,n,M),Ec(Ft(r._formValues,n))&&Lh(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]),_.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),_.useMemo(()=>({field:x,formState:f,fieldState:g}),[x,f,g])}const bd=e=>e.render($$(e)),V$=_.createContext(null);V$.displayName="HookFormContext";const F$="_formSelect_s09hu_1",B$="_labelWrapper_s09hu_5",z$="_inputLabel_s09hu_9",W$="_placeholder_s09hu_75",U$="_helperText_s09hu_121",Co={formSelect:F$,labelWrapper:B$,inputLabel:z$,placeholder:W$,helperText:U$},Uv=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,renderValue:u,className:d,...f})=>{const h=q.useTheme().palette.mode==="dark";return b.jsx(bd,{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:`${Co.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:Co.labelWrapper,children:b.jsxs("span",{className:Co.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(q.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(S=>{if(S===""||S===null||S===void 0)return b.jsx("span",{className:Co.placeholder,children:r||""});const T=o.find(E=>E.value===S);return(T==null?void 0:T.label)||String(S)}),className:Co.select,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...h?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...h?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...h?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...h?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:h?"#101111":"#FAF9F9",width:20,height:20}}},children:[r&&b.jsx(q.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:Co.placeholder,children:r})}),o.map(S=>{const T=m.value===S.value;return b.jsxs(q.MenuItem,{value:S.value,disabled:S.disabled,children:[T&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Lv,{sx:{fontSize:20}})}),S.label]},String(S.value))})]}),v&&b.jsx(q.FormHelperText,{className:Co.helperText,children:C})]})]})}})};Uv.displayName="FormSelect";const H$="_formMultiSelect_1d6fa_1",Y$="_labelWrapper_1d6fa_5",q$="_inputLabel_1d6fa_9",G$="_placeholder_1d6fa_75",K$="_helperText_1d6fa_124",Z$="_chipsContainer_1d6fa_153",X$="_chip_1d6fa_153",Rn={formMultiSelect:H$,labelWrapper:Y$,inputLabel:q$,placeholder:G$,helperText:K$,chipsContainer:Z$,chip:X$},Hv=({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=q.useTheme().palette.mode==="dark";return b.jsx(bd,{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 $=f||(w=>{if(!Array.isArray(w)||w.length===0)return b.jsx("span",{className:Rn.placeholder,children:r||""});const L=d?w.slice(0,d):w,D=d&&w.length>d?w.length-d:0;return b.jsxs(q.Box,{className:Rn.chipsContainer,children:[L.map(I=>{const O=o.find(N=>N.value===I);return b.jsx(q.Chip,{label:(O==null?void 0:O.label)||String(I),size:"small",variant:u,className:Rn.chip},String(I))}),D>0&&b.jsx(q.Chip,{label:`+${D}`,size:"small",variant:u,className:Rn.chip})]})});return b.jsxs("div",{className:`${Rn.formMultiSelect} ${p||""}`,"data-theme":C?"dark":"light",children:[b.jsx("div",{className:Rn.labelWrapper,children:b.jsxs("span",{className:Rn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(q.Select,{...x,...y,variant:"outlined",multiple:!0,value:A,onChange:w=>{x.onChange(w.target.value)},displayEmpty:!!r,renderValue:$,className:Rn.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:m,onClose:g,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...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 L=A.includes(w.value);return b.jsxs(q.MenuItem,{value:w.value,disabled:w.disabled,children:[L&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Lv,{sx:{fontSize:20}})}),w.label]},String(w.value))})}),E&&b.jsx(q.FormHelperText,{className:Rn.helperText,children:M})]})]})}})};Hv.displayName="FormMultiSelect";const Yv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})),qv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM11 13H13V7H11V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"})),Q$=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})),J$="_formInput_84pfi_1",eV="_labelWrapper_84pfi_5",tV="_inputLabel_84pfi_9",nV="_startAdornment_84pfi_163",oV="_endAdornment_84pfi_170",rV="_iconButton_84pfi_177",sV="_clearButton_84pfi_197",iV="_errorButton_84pfi_216",Ut={formInput:J$,labelWrapper:eV,inputLabel:tV,startAdornment:nV,endAdornment:oV,iconButton:rV,clearButton:sV,errorButton:iV},Gv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,startIcon:d,endIcon:f,onEndIconClick:p,clearable:h=!1,...m})=>{const y=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:v,fieldState:C})=>{var k;const x=!!C.error,S=x?(k=C.error)==null?void 0:k.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=d?b.jsx(q.InputAdornment,{position:"start",className:Ut.startAdornment,children:b.jsx("span",{className:Ut.iconButton,children:d})}):void 0;let A;return f?A=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:p,className:Ut.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(x?A=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{className:Ut.errorButton,children:b.jsx(qv,{})})}):A=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:E,className:Ut.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(Yv,{})})})),b.jsxs("div",{className:`${Ut.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Ut.labelWrapper,children:b.jsxs("span",{className:Ut.inputLabel,children:[n,a?" *":""]})}),b.jsx(q.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:x,helperText:S,variant:"outlined",className:Ut.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Ut.inputRoot,...M&&{startAdornment:M},...A&&{endAdornment:A}}})]})}})};Gv.displayName="FormInput";const aV="_viewChip_18qqe_1",lV="_active_18qqe_61",cV="_icon_18qqe_76",uV="_label_18qqe_81",fi={viewChip:aV,active:lV,icon:cV,label:uV},Kv=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=q.useTheme().palette.mode==="dark";return b.jsxs(q.Box,{ref:i,className:`${fi.viewChip} ${n?fi.active:""} ${o||""}`.trim(),"data-theme":c?"dark":"light",onClick:r,role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),r==null||r(u))},"aria-label":e,"aria-pressed":n,component:"div",...a,children:[t&&b.jsx(q.Box,{className:fi.icon,component:"div",children:t}),b.jsx(q.Box,{className:fi.label,component:"span",children:e})]})};Kv.displayName="ViewChip";exports.Button=Mc;exports.CAMERA_ALGORITHM_FACIAL=Ns;exports.CAMERA_ALGORITHM_LPR=_s;exports.CameraCard=kM;exports.CancelIcon=Yv;exports.CountCard=qS;exports.DisplayTypes=Nv;exports.ErrorIcon=qv;exports.FilterButton=Kh;exports.FilterChip=Zh;exports.FilterModal=bm;exports.FormInput=Gv;exports.FormMultiSelect=Hv;exports.FormSelect=Uv;exports.GoogleMap=fy;exports.MapContent=hu;exports.MapMarkers=gy;exports.MapSpot=fu;exports.ModuleMenu=Sy;exports.NotFoundContent=by;exports.ResponsiveGrid=jv;exports.SearchBar=yy;exports.SearchIcon=Q$;exports.SidebarMenu=xy;exports.SplitLayout=_v;exports.VideoControlProvider=Iy;exports.VideoPlayer=xu;exports.VideoPlayerWebRTC=Av;exports.VideoTimeline=Iv;exports.ViewChip=Kv;exports.VisioThemeProvider=r0;exports.ZoomControls=jM;exports.darkColors=ft;exports.darkTheme=qh;exports.lightColors=dt;exports.lightTheme=Yh;exports.radiiTokens=pi;exports.spacingScale=t0;exports.spacingTokens=Uh;exports.typographyTokens=Mt;exports.useGoogleMapContext=pu;exports.useVideoControl=vu;exports.useVideoControlRequired=Wk;exports.useVisioTheme=s0;
|
|
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([$n,s.func]),disableScrollLock:s.bool,elevation:rb,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:xa}),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 h5(e){return Pe("MuiMenu",e)}Te("MuiMenu",["root","paper","list"]);const m5={vertical:"top",horizontal:"right"},g5={vertical:"top",horizontal:"left"},y5=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"],list:["list"]},h5,t)},b5=be(qb,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),v5=be(Yb,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),x5=be(Hb,{name:"MuiMenu",slot:"List"})({outline:0}),Gb=P.forwardRef(function(t,n){const o=Fe({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=dn(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},E=y5(T),M=r&&!l&&d,_=P.useRef(null),D=(F,z)=>{_.current&&_.current.adjustStyleForScrollbar(F,{direction:w?"rtl":"ltr"}),m&&m(F,z)},$=F=>{F.key==="Tab"&&(F.preventDefault(),u&&u(F,"tabKeyDown"))};let N=-1;P.Children.map(i,(F,z)=>{P.isValidElement(F)&&(process.env.NODE_ENV!=="production"&&_o.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||N===-1)&&(N=z))});const x={slots:v,slotProps:{list:c,transition:g,paper:f,...C}},L=Le({elementType:v.root,externalSlotProps:C.root,ownerState:T,className:[E.root,a]}),[I,A]=st("paper",{className:E.paper,elementType:v5,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:T}),[O,j]=st("list",{className:ye(E.list,c.className),elementType:x5,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:F=>({...F,onKeyDown:z=>{var R;$(z),(R=F.onKeyDown)==null||R.call(F,z)}}),ownerState:T}),B=typeof x.slotProps.transition=="function"?x.slotProps.transition(T):x.slotProps.transition;return b.jsx(b5,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?m5:g5,slots:{root:v.root,paper:I,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:L,paper:A,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...B,onEntering:(...F)=>{var z;D(...F),(z=B==null?void 0:B.onEntering)==null||z.call(B,...F)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...S,classes:p,children:b.jsx(O,{actions:_,autoFocus:r&&(N===-1||l),autoFocusItem:M,variant:y,...j,children:i})})});process.env.NODE_ENV!=="production"&&(Gb.propTypes={anchorEl:s.oneOfType([$n,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 S5(e){return Pe("MuiNativeSelect",e)}const Ju=Te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),w5=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 Ce(l,S5,t)},Kb=be("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}}}]})),C5=be(Kb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:fn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ju.multiple}`]:t.multiple}]}})({}),Zb=be("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}}]})),T5=be(Zb,{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]}})({}),Xb=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=w5(d);return b.jsxs(P.Fragment,{children:[b.jsx(C5,{ownerState:d,className:ye(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:b.jsx(T5,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Xb.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:St,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function Qb(e){return Pe("MuiSelect",e)}const Br=Te("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Th;const P5=be(Kb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Br.select}`]:t.select},{[`&.${Br.select}`]:t[n.variant]},{[`&.${Br.error}`]:t.error},{[`&.${Br.multiple}`]:t.multiple}]}})({[`&.${Br.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),E5=be(Zb,{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]}})({}),M5=be("input",{shouldForwardProp:e=>hm(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 O5(e){return e==null||typeof e=="string"&&!e.trim()}const k5=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 Ce(l,Qb,t)},Jb=P.forwardRef(function(t,n){var ct,bt,Dt,pn;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:_,onMouseDown:D,onOpen:$,open:N,readOnly:x,renderValue:L,required:I,SelectDisplayProps:A={},tabIndex:O,type:j,value:B,variant:F="standard",...z}=t,[R,Y]=Qn({controlled:B,default:d,name:"Select"}),[q,K]=Qn({controlled:N,default:u,name:"Select"}),oe=P.useRef(null),Z=P.useRef(null),[Q,se]=P.useState(null),{current:J}=P.useRef(N!=null),[V,U]=P.useState(),W=$e(n,g),ee=P.useCallback(ge=>{Z.current=ge,ge&&se(ge)},[]),X=Q==null?void 0:Q.parentNode;P.useImperativeHandle(W,()=>({focus:()=>{Z.current.focus()},node:oe.current,value:R}),[R]);const re=Q!==null&&q;P.useEffect(()=>{if(!re||!X||a||typeof ResizeObserver>"u")return;const ge=new ResizeObserver(()=>{U(X.clientWidth)});return ge.observe(X),()=>{ge.disconnect()}},[re,X,a]),P.useEffect(()=>{u&&q&&Q&&!J&&(U(a?null:X.clientWidth),Z.current.focus())},[Q,a]),P.useEffect(()=>{i&&Z.current.focus()},[i]),P.useEffect(()=>{if(!y)return;const ge=Et(Z.current).getElementById(y);if(ge){const De=()=>{getSelection().isCollapsed&&Z.current.focus()};return ge.addEventListener("click",De),()=>{ge.removeEventListener("click",De)}}},[y]);const te=(ge,De)=>{ge?$&&$(De):E&&E(De),J||(U(a?null:X.clientWidth),K(ge))},ue=ge=>{D==null||D(ge),ge.button===0&&(ge.preventDefault(),Z.current.focus(),te(!0,ge))},ie=ge=>{te(!1,ge)},me=P.Children.toArray(l),le=ge=>{const De=me.find(ut=>ut.props.value===ge.target.value);De!==void 0&&(Y(De.props.value),T&&T(ge,De))},de=ge=>De=>{let ut;if(De.currentTarget.hasAttribute("tabindex")){if(C){ut=Array.isArray(R)?R.slice():[];const Mn=R.indexOf(ge.props.value);Mn===-1?ut.push(ge.props.value):ut.splice(Mn,1)}else ut=ge.props.value;if(ge.props.onClick&&ge.props.onClick(De),R!==ut&&(Y(ut),T)){const Mn=De.nativeEvent||De,Er=new Mn.constructor(Mn.type,Mn);Object.defineProperty(Er,"target",{writable:!0,value:{value:ut,name:S}}),T(Er,ge)}C||te(!1,De)}},pe=ge=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),te(!0,ge)),_==null||_(ge))},Ne=ge=>{!re&&w&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:R,name:S}}),w(ge))};delete z["aria-invalid"];let Oe,Xe;const tt=[];let wt=!1,mt=!1;(qi({value:R})||p)&&(L?Oe=L(R):wt=!0);const Ee=me.map(ge=>{if(!P.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&_o.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
239
|
+
`));let De;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`.":Cn(2));De=R.some(ut=>Ph(ut,ge.props.value)),De&&wt&&tt.push(ge.props.children)}else De=Ph(R,ge.props.value),De&&wt&&(Xe=ge.props.children);return De&&(mt=!0),P.cloneElement(ge,{"aria-selected":De?"true":"false",onClick:de(ge),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(ut)},role:"option",selected:De,value:void 0,"data-value":ge.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!mt&&!C&&R!==""){const ge=me.map(De=>De.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 ${ge.filter(De=>De!=null).map(De=>`\`${De}\``).join(", ")||'""'}.`].join(`
|
|
240
|
+
`))}},[mt,me,C,S,R]),wt&&(C?tt.length===0?Oe=null:Oe=tt.reduce((ge,De,ut)=>(ge.push(De),ut<tt.length-1&&ge.push(", "),ge),[]):Oe=Xe);let we=V;!a&&J&&Q&&(we=X.clientWidth);let xe;typeof O<"u"?xe=O:xe=f?null:0;const Ve=A.id||(S?`mui-component-select-${S}`:void 0),Be={...t,variant:F,value:R,open:re,error:h},it=k5(Be),Qe={...v.PaperProps,...typeof((ct=v.slotProps)==null?void 0:ct.paper)=="function"?v.slotProps.paper(Be):(bt=v.slotProps)==null?void 0:bt.paper},_t={...v.MenuListProps,...typeof((Dt=v.slotProps)==null?void 0:Dt.list)=="function"?v.slotProps.list(Be):(pn=v.slotProps)==null?void 0:pn.list},ke=ro();return b.jsxs(P.Fragment,{children:[b.jsx(P5,{as:"div",ref:ee,tabIndex:xe,role:"combobox","aria-controls":re?ke:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,Ve].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":I?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:pe,onMouseDown:f||x?null:ue,onBlur:Ne,onFocus:M,...A,ownerState:Be,className:ye(A.className,it.select,c),id:Ve,children:O5(Oe)?Th||(Th=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Oe}),b.jsx(M5,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:S,ref:oe,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:it.nativeInput,autoFocus:i,required:I,...z,ownerState:Be}),b.jsx(E5,{as:m,className:it.icon,ownerState:Be}),b.jsx(Gb,{id:`menu-${S||""}`,anchorEl:X,open:re,onClose:ie,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:ke,..._t},paper:{...Qe,style:{minWidth:we,...Qe!=null?Qe.style:null}}},children:Ee})]})});process.env.NODE_ENV!=="production"&&(Jb.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:St,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 D5=yt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),R5=e=>{const{classes:t}=e,o=Ce({root:["root"]},Qb,t);return{...t,...o}},ed={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>fn(e)&&e!=="variant"},I5=be(ka,ed)(""),A5=be(Ra,ed)(""),N5=be(Da,ed)(""),td=P.forwardRef(function(t,n){const o=Fe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=D5,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:_="outlined",...D}=o,$=C?Xb:Jb,N=Bn(),x=Pr({props:o,muiFormControl:N,states:["variant","error"]}),L=x.variant||_,I={...o,variant:L,classes:a},A=R5(I),{root:O,...j}=A,B=p||{standard:b.jsx(I5,{ownerState:I}),outlined:b.jsx(A5,{label:m,ownerState:I}),filled:b.jsx(N5,{ownerState:I})}[L],F=$e(n,Bs(B));return b.jsx(P.Fragment,{children:P.cloneElement(B,{inputComponent:$,inputProps:{children:i,error:x.error,IconComponent:d,variant:L,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?At(j,h.classes):j,...p?p.props.inputProps:{}},...(v&&C||u)&&L==="outlined"?{notched:!0}:{},ref:F,className:ye(B.props.className,l,A.root),...!p&&{variant:L},...D})})});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 _5(e){return Pe("MuiTextField",e)}Te("MuiTextField",["root"]);const j5={standard:ka,filled:Da,outlined:Ra},L5=e=>{const{classes:t}=e;return Ce({root:["root"]},_5,t)},$5=be(Ku,{name:"MuiTextField",slot:"Root"})({}),ev=P.forwardRef(function(t,n){const o=Fe({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:_,onBlur:D,onChange:$,onFocus:N,placeholder:x,required:L=!1,rows:I,select:A=!1,SelectProps:O,slots:j={},slotProps:B={},type:F,value:z,variant:R="outlined",...Y}=o,q={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:A,variant:R},K=L5(q);process.env.NODE_ENV!=="production"&&A&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const oe=ro(g),Z=m&&oe?`${oe}-helper-text`:void 0,Q=w&&oe?`${oe}-label`:void 0,se=j5[R],J={slots:j,slotProps:{input:C,inputLabel:y,htmlInput:v,formHelperText:p,select:O,...B}},V={},U=J.slotProps.inputLabel;R==="outlined"&&(U&&typeof U.shrink<"u"&&(V.notched=U.shrink),V.label=w),A&&((!O||!O.native)&&(V.id=void 0),V["aria-describedby"]=void 0);const[W,ee]=st("root",{elementType:$5,shouldForwardComponentProp:!0,externalForwardedProps:{...J,...Y},ownerState:q,className:ye(K.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:L,color:c,variant:R}}),[X,re]=st("input",{elementType:se,externalForwardedProps:J,additionalProps:V,ownerState:q}),[te,ue]=st("inputLabel",{elementType:Gu,externalForwardedProps:J,ownerState:q}),[ie,me]=st("htmlInput",{elementType:"input",externalForwardedProps:J,ownerState:q}),[le,de]=st("formHelperText",{elementType:Zu,externalForwardedProps:J,ownerState:q}),[pe,Ne]=st("select",{elementType:td,externalForwardedProps:J,ownerState:q}),Oe=b.jsx(X,{"aria-describedby":Z,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:_,rows:I,maxRows:T,minRows:E,type:F,value:z,id:oe,inputRef:S,onBlur:D,onChange:$,onFocus:N,placeholder:x,inputProps:me,slots:{input:j.htmlInput?ie:void 0},...re});return b.jsxs(W,{...ee,children:[w!=null&&w!==""&&b.jsx(te,{htmlFor:oe,id:Q,...ue,children:w}),A?b.jsx(pe,{"aria-describedby":Z,id:oe,labelId:Q,value:z,input:Oe,...Ne,children:a}):Oe,m&&b.jsx(le,{id:Z,...de,children:m})]})});process.env.NODE_ENV!=="production"&&(ev.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:St,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 V5(e){return Pe("MuiIconButton",e)}const Eh=Te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),F5=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 Ce(l,V5,t)},B5=be(yr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Ke(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Yt()).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"}}))),z5=be("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"}}]})),Ps=P.forwardRef(function(t,n){const o=Fe({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=ro(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=F5(v);return b.jsxs(B5,{id:p?g:f,className:ye(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(z5,{className:C.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={children:Fn(s.node,e=>P.Children.toArray(e.children).some(n=>P.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
241
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function W5(e){return Pe("MuiInputAdornment",e)}const Mh=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Oh;const U5=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},H5=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 Ce(l,W5,t)},Y5=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:U5})(Ke(({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"}}]}))),tv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=o,p=Bn()||{};let h=d;d&&p.variant&&process.env.NODE_ENV!=="production"&&d===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!h&&(h=p.variant);const m={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:u,variant:h},g=H5(m);return b.jsx(qs.Provider,{value:null,children:b.jsx(Y5,{as:a,ownerState:m,className:ye(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?b.jsx(io,{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"&&(tv.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Yn=7;function nd(e){const{ownerState:t}=kt(),n=dn();return P.useMemo(()=>H({},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 q5=yt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),G5=yt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),K5=yt(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Z5=yt(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");yt(b.jsxs(P.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");yt(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");yt(b.jsxs(P.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const X5=yt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Q5(e){return Pe("MuiPickersTextField",e)}Te("MuiPickersTextField",["root","focused","disabled","error","required"]);const J5={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function e_(e){return Pe("MuiPickersInputBase",e)}const lr=Te("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function t_(e){return Pe("MuiPickersSectionList",e)}const Ko=Te("MuiPickersSectionList",["root","section","sectionContent"]),n_=["slots","slotProps","elements","sectionListRef","classes"],nv=ae.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),ov=ae.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),rv=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),sv=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),o_=e=>Ce({root:["root"],section:["section"],sectionContent:["sectionContent"]},t_,e);function iv(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=kt(),a=(t==null?void 0:t.section)??ov,l=Le({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??sv,u=Le({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)??rv,f=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:H({},i,{separatorPosition:"before"})}),p=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:H({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=$e(u.ref,h),g=y=>{const v=y.relatedTarget,C=y.currentTarget.closest(`.${Ko.root}`);if(C&&v instanceof Node&&C.contains(v)){y.stopPropagation();return}};return b.jsxs(a,H({},l,{children:[b.jsx(d,H({},f)),b.jsx(c,H({},u,{ref:m,onBlur:g})),b.jsx(d,H({},p))]}))}process.env.NODE_ENV!=="production"&&(iv.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=ae.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Me(o,n_),d=o_(c),{ownerState:f}=kt(),p=P.useRef(null),h=$e(n,p),m=v=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return p.current};P.useImperativeHandle(l,()=>({getRoot(){return m("getRoot")},getSectionContainer(v){return m("getSectionContainer").querySelector(`.${Ko.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${Ko.section}[data-sectionindex="${v}"] .${Ko.sectionContent}`)},getSectionIndexFromDOMElement(v){const C=m("getSectionIndexFromDOMElement");if(v==null||!C.contains(v))return null;let S=null;return v.classList.contains(Ko.section)?S=v:v.classList.contains(Ko.sectionContent)&&(S=v.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??nv,y=Le({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,H({},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(iv,{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 Ia=()=>{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},r_=["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"],s_=e=>Math.round(e*1e5)/1e5,Aa=ae.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>H({},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:`${s_(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),sd=ae.styled(nv,{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}}]})),i_=ae.styled(ov,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),a_=ae.styled(sv,{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"})),l_=ae.styled(rv,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),c_=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(H({},J5)),u_=ae.styled("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),d_=(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 Ce(f,e_,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 f_(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 Gs=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:p,slotProps:h,contentEditable:m,tabIndex:g,onInput:y,onPaste:v,onKeyDown:C,name:S,readOnly:w,inputProps:T,inputRef:E,sectionListRef:M,onFocus:_,onBlur:D,classes:$,ownerState:N}=o,x=Me(o,r_),L=Ia(),I=P.useRef(null),A=P.useRef(null),O=P.useRef([]),j=$e(n,I),B=$e(T==null?void 0:T.ref,E),F=Bn();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const z=N??L,R=V=>{var U;(U=F.onFocus)==null||U.call(F,V),_==null||_(V)},Y=V=>{R(V)},q=V=>{var U,W;if(C==null||C(V),V.key==="Enter"&&!V.defaultMuiPrevented){if((U=I.current)!=null&&U.dataset.multiInput)return;const ee=(W=I.current)==null?void 0:W.closest("form"),X=ee==null?void 0:ee.querySelector('[type="submit"]');if(!ee||!X)return;V.preventDefault(),ee.requestSubmit(X)}},K=V=>{var U;(U=F.onBlur)==null||U.call(F,V),D==null||D(V)};P.useEffect(()=>{F&&F.setAdornedStart(!!d)},[F,d]),P.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const oe=d_($,z),Z=(p==null?void 0:p.root)||Aa,Q=Le({elementType:Z,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:x,additionalProps:{"aria-invalid":F.error,ref:j},className:oe.root,ownerState:z}),se=(p==null?void 0:p.input)||sd,J=r.some(V=>V.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!J||!z.isPickerOpen)return;const{activeBarWidth:V,sectionOffsets:U}=f_(r,I);O.current=[U[0],U[1]],A.current&&(A.current.style.width=`${V}px`)},[r,J,z.isPickerOpen]),b.jsxs(Z,H({},Q,{children:[d,b.jsx(od,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:oe.sectionsContainer,onFocus:R,onBlur:K,onInput:y,onPaste:v,onKeyDown:q,slots:{root:se,section:i_,sectionContent:a_,sectionSeparator:l_},slotProps:{root:H({},h==null?void 0:h.input,{ownerState:z}),sectionContent:{className:lr.sectionContent},sectionSeparator:({separatorPosition:V})=>({className:V==="before"?lr.sectionBefore:lr.sectionAfter})}}),u,f?f(H({},F)):null,b.jsx(c_,H({name:S,className:oe.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:F.required,disabled:F.disabled,onFocus:Y},T,{ref:B})),J&&b.jsx(u_,{className:oe.activeBar,ref:A,ownerState:{sectionOffsets:O.current}})]}))});process.env.NODE_ENV!=="production"&&(Gs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Gs.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:St,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 p_(e){return Pe("MuiPickersOutlinedInput",e)}const cn=H({},lr,Te("MuiPickersOutlinedInput",["root","notchedOutline","input"])),h_=["children","className","label","notched","shrink"],m_=ae.styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Dh=ae.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),g_=ae.styled("legend",{slot:"internal",shouldForwardProp:e=>Kn(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function y_(e){const{className:t,label:n,notched:o}=e,r=Me(e,h_),i=Ia();return b.jsx(m_,H({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(g_,{ownerState:i,notched:o,children:n?b.jsx(Dh,{children:n}):b.jsx(Dh,{className:"notranslate",children:""})})}))}const b_=["label","autoFocus","ownerState","classes","notched"],v_=ae.styled(Aa,{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 .${cn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${cn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${cn.focused} .${cn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${cn.disabled}`]:{[`& .${cn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${cn.error} .${cn.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:{[`&.${cn.focused}:not(.${cn.error}) .${cn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),x_=ae.styled(sd,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),S_=e=>{const n=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},p_,e);return H({},e,n)},Na=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Me(o,b_),c=Bn(),u=S_(i);return b.jsx(Gs,H({slots:{root:v_,input:x_},renderSuffix:d=>b.jsx(y_,{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"&&(Na.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Na.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:St,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});Na.muiName="Input";function w_(e){return Pe("MuiPickersFilledInput",e)}const bo=H({},lr,Te("MuiPickersFilledInput",["root","underline","input"])),C_=["label","autoFocus","disableUnderline","hiddenLabel","classes"],T_=ae.styled(Aa,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>zt.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}},[`&.${bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bo.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"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`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(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),P_=ae.styled(sd,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>zt.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}}]}),E_=(e,t)=>{const{inputHasUnderline:n}=t,r=Ce({root:["root",n&&"underline"],input:["input"]},w_,e);return H({},e,r)},_a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Me(o,C_),u=Ia(),d=H({},u,{inputHasUnderline:!i}),f=E_(l,d);return b.jsx(Gs,H({slots:{root:T_,input:P_},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(_a.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(_a.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:St,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});_a.muiName="Input";function M_(e){return Pe("MuiPickersFilledInput",e)}const zr=H({},lr,Te("MuiPickersInput",["root","underline","input"])),O_=["label","autoFocus","disableUnderline","ownerState","classes"],k_=ae.styled(Aa,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zr.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(.${zr.disabled}, .${zr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${zr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),D_=(e,t)=>{const{inputHasUnderline:n}=t,r=Ce({root:["root",!n&&"underline"],input:["input"]},M_,e);return H({},e,r)},ja=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Me(o,O_),c=Ia(),u=H({},c,{inputHasUnderline:!i}),d=D_(a,u);return b.jsx(Gs,H({slots:{root:k_},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(ja.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(ja.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:St,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});ja.muiName="Input";const R_=["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"],I_={standard:ja,filled:_a,outlined:Na},A_=ae.styled(Ku,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),N_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return Ce({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},Q5,e)},La=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:C,areAllSectionsEmpty:S,onClick:w,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:_,endAdornment:D,startAdornment:$,tabIndex:N,contentEditable:x,focused:L,value:I,onChange:A,fullWidth:O,id:j,name:B,helperText:F,FormHelperTextProps:z,label:R,InputLabelProps:Y,"data-active-range-position":q}=o,K=Me(o,R_),oe=P.useRef(null),Z=$e(n,oe),Q=ro(j),se=F&&Q?`${Q}-helper-text`:void 0,J=R&&Q?`${Q}-label`:void 0,V=nd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),U=P.useMemo(()=>H({},V,{isFieldValueEmpty:S,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!($??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[V,S,L,d,o.size,c,O,$,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,R,Y==null?void 0:Y.shrink]),W=N_(l,U),ee=I_[f],X={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(X.notched=Y.shrink),X.label=R):f==="filled"&&(X.hiddenLabel=h),b.jsx(rd.Provider,{value:U,children:b.jsxs(A_,H({className:ye(W.root,a),ref:Z,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:O,required:p,ownerState:U},K,{children:[R!=null&&R!==""&&b.jsx(Gu,H({htmlFor:Q,id:J},Y,{children:R})),b.jsx(ee,H({elements:C,areAllSectionsEmpty:S,onClick:w,onKeyDown:T,onKeyUp:E,onInput:_,onPaste:M,onFocus:r,onBlur:i,endAdornment:D,startAdornment:$,tabIndex:N,contentEditable:x,value:I,onChange:A,id:Q,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:v,label:R,name:B,role:"group","aria-labelledby":J,"aria-describedby":se,"aria-live":se?"polite":void 0,"data-active-range-position":q},X,m)),F&&b.jsx(Zu,H({id:se},z,{children:F}))]}))})});process.env.NODE_ENV!=="production"&&(La.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(La.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:St,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 __=["enableAccessibleFieldDOMStructure"],j_=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],L_=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],$_=["ownerState"],V_=["ownerState"],F_=["ownerState"],B_=["ownerState"],z_=["InputProps","inputProps"],Sl=()=>{},W_=e=>{var C,S,w,T,E,M,_,D,$;let{enableAccessibleFieldDOMStructure:t}=e,n=Me(e,__);if(t){const{InputProps:N,readOnly:x,onClear:L,clearable:I,clearButtonPosition:A,openPickerButtonPosition:O,openPickerAriaLabel:j}=n,B=Me(n,j_),F=Yn>=6&&((C=B==null?void 0:B.slotProps)!=null&&C.input)?cs((S=B==null?void 0:B.slotProps)==null?void 0:S.input,N):Sl;return{clearable:I,onClear:L,clearButtonPosition:A,openPickerButtonPosition:O,openPickerAriaLabel:j,textFieldProps:H({},B,Yn>=6&&((w=B==null?void 0:B.slotProps)!=null&&w.input)?{slotProps:H({},B==null?void 0:B.slotProps,{input:z=>H({},en(F,z),{readOnly:x})})}:{InputProps:H({},N??{},{readOnly:x})})}}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:f,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m}=n,g=Me(n,L_),y=Yn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?cs((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):Sl,v=Yn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?cs((_=g==null?void 0:g.slotProps)==null?void 0:_.htmlInput,c):Sl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:H({},g,Yn>=6&&((D=g==null?void 0:g.slotProps)!=null&&D.input||($=g==null?void 0:g.slotProps)!=null&&$.htmlInput)?{slotProps:H({},g==null?void 0:g.slotProps,{input:N=>H({},en(y,N),{readOnly:a}),htmlInput:N=>H({},en(v,N),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:H({},l??{},{readOnly:a}),inputProps:H({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},$a=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&($a.displayName="PickerFieldUIContext");function U_(e){var z,R,Y,q;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=ao(),r=Du(),i=P.useContext($a),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=W_(t),p=nd(a),h=he(K=>{K.preventDefault(),r==null||r.setOpen(oe=>!oe)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?ev:La),C=i.slots.inputAdornment??tv,S=Le({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:H({},p,{position:"start"})}),w=Me(S,$_),T=Le({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:H({},p,{position:"end"})}),E=Me(T,V_),M=i.slots.openPickerButton??Ps,_=Le({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),D=Me(_,F_),$=i.slots.openPickerIcon??n,N=Le({elementType:$,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),x=i.slots.clearButton??Ps,L=Le({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}),I=Me(L,B_),A=i.slots.clearIcon??X5,O=Le({elementType:A,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=$e(a.ref,r==null?void 0:r.rootRef);const j={},B=en((Yn>=6&&((z=a==null?void 0:a.slotProps)==null?void 0:z.input))??a.InputProps,p);r&&(j.ref=r.triggerRef),!(B!=null&&B.startAdornment)&&(g==="start"||y==="start")&&(j.startAdornment=b.jsxs(C,H({},w,{children:[y==="start"&&b.jsx(M,H({},D,{children:b.jsx($,H({},N))})),g==="start"&&b.jsx(x,H({},I,{children:b.jsx(A,H({},O))}))]}))),!(B!=null&&B.endAdornment)&&(g==="end"||y==="end")&&(j.endAdornment=b.jsxs(C,H({},E,{children:[g==="end"&&b.jsx(x,H({},I,{children:b.jsx(A,H({},O))})),y==="end"&&b.jsx(M,H({},D,{children:b.jsx($,H({},N))}))]}))),!(j!=null&&j.endAdornment)&&!(j!=null&&j.startAdornment)&&i.slots.inputAdornment&&(j.endAdornment=b.jsx(C,H({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const F=Yn>=6&&((R=a==null?void 0:a.slotProps)!=null&&R.input)?en(cs(B,j),p):H({},B,j);return a.inputProps=Yn>=6&&((Y=a==null?void 0:a.slotProps)!=null&&Y.htmlInput)?en(a.slotProps.htmlInput,p):a.inputProps,(q=a==null?void 0:a.slotProps)==null||delete q.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,H({},a,{InputProps:F}))}function cs(e,t){return e?t?n=>H({},en(t,n),en(e,n)):e:t}function H_(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext($a),i=Du(),a=nd(n),{InputProps:l,inputProps:c}=n,u=Me(n,z_),d=Le({elementType:La,externalSlotProps:cs(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=H({},c,d.inputProps),d.InputProps=H({},l,d.InputProps),d}function Y_(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($a.Provider,{value:i,children:r})}const q_=["slots","slotProps"],Va=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Me(o,q_),l=H_({slotProps:i,ref:n,externalForwardedProps:a}),c=gN(l);return b.jsx(Y_,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(U_,{fieldResponse:c,defaultOpenPickerIcon:Z5})})});process.env.NODE_ENV!=="production"&&(Va.displayName="DateField");process.env.NODE_ENV!=="production"&&(Va.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:St,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 av=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ze();return P.useCallback(u=>$s({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])},G_=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return H({},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))),H({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return H({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},K_=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=Ze(),m=P.useRef(G_(!!u,h)).current,g=P.useMemo(()=>Pn.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:bn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),C=av({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=he(({target:T,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const M=E==="cell-interaction";let _,D;if(E==="cell-interaction")_=p(T,y.currentMonth),D=T;else if(_=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),D=T,C(D)){const x=h.startOfMonth(T),L=h.endOfMonth(T);D=bs({adapter:h,date:D,minDate:h.isBefore(a,x)?x:a,maxDate:h.isAfter(i,L)?L:i,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:f})}const $=!h.isSameMonth(y.currentMonth,_),N=!h.isSameYear(y.currentMonth,_);$&&(l==null||l(_)),N&&(c==null||c(h.startOfYear(_))),v({type:"setVisibleDate",month:_,direction:h.isAfterDay(_,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&D!=null&&h.isSameDay(D,y.focusedDay)?y.focusedDay:D,skipAnimation:M})}),w=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:S,isDateDisabled:C,onMonthSwitchingAnimationEnd:w}},Z_=e=>Pe("MuiPickersFadeTransitionGroup",e);Te("MuiPickersFadeTransitionGroup",["root"]);const X_=["children"],Q_=e=>Ce({root:["root"]},Z_,e),J_=ae.styled(zs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function lv(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Me(t,X_),c=Q_(i),u=ae.useTheme();return o?a:b.jsx(J_,{className:ye(c.root,n),ownerState:l,children:b.jsx(to,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function ej(e){return Pe("MuiPickersDay",e)}const vo=Te("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function cv(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Ze(),{ownerState:d}=kt();return P.useMemo(()=>H({},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 tj=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],nj=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return Ce({root:["root",n&&!u&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ej,e)},uv=({theme:e})=>H({},e.typography.caption,{width:Ts,height:Ts,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${vo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${vo.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}},[`&.${vo.disabled}:not(.${vo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${vo.disabled}&.${vo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Sa}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${vo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),dv=(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]},oj=ae.styled(yr,{name:"MuiPickersDay",slot:"Root",overridesResolver:dv})(uv),rj=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:dv})(({theme:e})=>H({},uv({theme:e}),{opacity:0,pointerEvents:"none"})),Wr=()=>{},id=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Wr,onBlur:f=Wr,onKeyDown:p=Wr,onMouseDown:h=Wr,onMouseEnter:m=Wr,children:g,day:y,selected:v,disabled:C,today:S,outsideCurrentMonth:w,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,_=Me(o,tj),D=cv({day:y,selected:v,disabled:C,today:S,outsideCurrentMonth:w,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),$=nj(a,D),N=Ze(),x=P.useRef(null),L=$e(x,n);Pt(()=>{r&&!C&&!l&&!w&&x.current.focus()},[r,C,l,w]);const I=O=>{h(O),w&&O.preventDefault()},A=O=>{O.defaultMuiPrevented=!0,C||u(y),w&&O.currentTarget.focus(),c&&c(O)};return w&&!M?b.jsx(rj,{className:ye($.root,$.hiddenDaySpacingFiller,i),ownerState:D,role:_.role}):b.jsx(oj,H({className:ye($.root,i),ref:L,centerRipple:!0,disabled:C,tabIndex:v?0:-1,onKeyDown:O=>p(O,y),onFocus:O=>d(O,y),onBlur:O=>f(O,y),onMouseEnter:O=>m(O,y),onClick:A,onMouseDown:I},_,{ownerState:D,children:g??N.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 fv=P.memo(id);process.env.NODE_ENV!=="production"&&(fv.displayName="PickersDay");const sj=e=>Pe("MuiPickersSlideTransition",e),Gt=Te("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ij=["children","className","reduceAnimations","slideDirection","transKey","classes"],aj=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ce(o,sj,e)},lj=ae.styled(zs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Gt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Gt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Gt.slideEnterActive}`]:t.slideEnterActive},{[`.${Gt.slideExit}`]:t.slideExit},{[`.${Gt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Gt["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},[`& .${Gt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Gt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Gt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Gt.slideExit}`]:{transform:"translate(0%)"},[`& .${Gt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Gt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function cj(e){const t=ae.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Me(t,ij),{ownerState:u}=kt(),d=H({},u,{slideDirection:i}),f=aj(l,d),p=ae.useTheme();if(r)return b.jsx("div",{className:ye(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx(lj,{className:ye(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(Nu,H({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const uj=e=>Pe("MuiDayCalendar",e);Te("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const dj=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],fj=["ownerState"],pj=e=>Ce({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},uj,e),pv=(Ts+Sa*2)*6,hj=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),mj=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),gj=ae.styled(io,{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})),yj=ae.styled(io,{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})),bj=ae.styled(io,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>H({},e.typography.caption,{width:Ts,height:Ts,padding:0,margin:`0 ${Sa}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),vj=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pv}),xj=ae.styled(cj,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:pv}),Sj=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),wj=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Sa}px 0`,display:"flex",justifyContent:"center"});function Cj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Me(e,dj);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ze(),v=ya(g),C=o!=null&&y.isSameDay(n,o),S=l&&C,w=r.some(I=>y.isSameDay(I,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]),_=cv({day:n,selected:w,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),D=(h==null?void 0:h.day)??fv,$=Le({elementType:D,externalSlotProps:m==null?void 0:m.day,additionalProps:H({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:H({},_,{day:n,isDayDisabled:E,isDaySelected:w})}),N=Me($,fj),x=P.useMemo(()=>{const I=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(I)):y.isSameDay(n,I)},[a,n,p,y]),L=P.useMemo(()=>{const I=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(I)):y.isSameDay(n,I)},[a,n,p,y]);return b.jsx(D,H({},N,{day:n,disabled:E,autoFocus:!M&&S,today:T,outsideCurrentMonth:M,isFirstVisibleCell:x,isLastVisibleCell:L,selected:w,tabIndex:C?0:-1,"aria-selected":w,"aria-current":T?"date":void 0}))}function Tj(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Ze(),{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:_=U=>n.format(U,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:$,gridLabelId:N,displayWeekNumber:x,fixedWeekNumber:L,timezone:I}=t,A=ya(I),O=pj(i),j=dn(),B=av({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:S,maxDate:w,disablePast:v,disableFuture:C,timezone:I}),F=ao(),z=he(U=>{p||d(U)}),R=U=>{B(U)||(o(U),$==null||$(!0))},Y=he((U,W)=>{switch(U.key){case"ArrowUp":R(n.addDays(W,-7)),U.preventDefault();break;case"ArrowDown":R(n.addDays(W,7)),U.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(W,j?1:-1),X=n.addMonths(W,j?1:-1),re=bs({adapter:n,date:ee,minDate:j?ee:n.startOfMonth(X),maxDate:j?n.endOfMonth(X):ee,isDateDisabled:B,timezone:I});R(re||ee),U.preventDefault();break}case"ArrowRight":{const ee=n.addDays(W,j?-1:1),X=n.addMonths(W,j?-1:1),re=bs({adapter:n,date:ee,minDate:j?n.startOfMonth(X):ee,maxDate:j?ee:n.endOfMonth(X),isDateDisabled:B,timezone:I});R(re||ee),U.preventDefault();break}case"Home":R(n.startOfWeek(W)),U.preventDefault();break;case"End":R(n.endOfWeek(W)),U.preventDefault();break;case"PageUp":R(n.addMonths(W,1)),U.preventDefault();break;case"PageDown":R(n.addMonths(W,-1)),U.preventDefault();break}}),q=he((U,W)=>R(W)),K=he((U,W)=>{c!=null&&n.isSameDay(c,W)&&($==null||$(!1))}),oe=n.getMonth(a),Z=n.getYear(a),Q=P.useMemo(()=>l.filter(U=>!!U).map(U=>n.startOfDay(U)),[n,l]),se=`${Z}-${oe}`,J=P.useMemo(()=>P.createRef(),[se]),V=P.useMemo(()=>{const U=n.getWeekArray(a);let W=n.addMonths(a,1);for(;L&&U.length<L;){const ee=n.getWeekArray(W),X=n.isSameDay(U[U.length-1][0],ee[0][0]);ee.slice(X?1:0).forEach(re=>{U.length<L&&U.push(re)}),W=n.addMonths(W,1)}return U},[a,L,n]);return b.jsxs(hj,{role:"grid","aria-labelledby":N,className:O.root,children:[b.jsxs(mj,{role:"row",className:O.header,children:[x&&b.jsx(yj,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),HD(n,A).map((U,W)=>b.jsx(gj,{variant:"caption",role:"columnheader","aria-label":n.format(U,"weekday"),className:O.weekDayLabel,children:_(U)},W.toString()))]}),u?b.jsx(vj,{className:O.loadingContainer,children:m()}):b.jsx(xj,H({transKey:se,onExited:f,reduceAnimations:h,slideDirection:g,className:ye(r,O.slideTransition)},y,{nodeRef:J,children:b.jsx(Sj,{ref:J,role:"rowgroup",className:O.monthContainer,children:V.map((U,W)=>b.jsxs(wj,{role:"row",className:O.weekContainer,"aria-rowindex":W+1,children:[x&&b.jsx(bj,{className:O.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(U[0])),children:F.calendarWeekNumberText(n.getWeekNumber(U[0]))}),U.map((ee,X)=>b.jsx(Cj,{parentProps:t,day:ee,selectedDays:Q,isViewFocused:D,focusedDay:c,onKeyDown:Y,onFocus:q,onBlur:K,onDaySelect:z,isDateDisabled:B,currentMonthNumber:oe,"aria-colindex":X+1},ee.toString()))]},`week-${U[0]}`))})}))]})}function hv(e){return Pe("MuiMonthCalendar",e)}const di=Te("MuiMonthCalendar",["root","button","disabled","selected"]),Pj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Ej=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Ce(n,hv,e)},Mj=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${di.disabled}`]:t.disabled},{[`&.${di.selected}`]:t.selected}]})(({theme:e})=>H({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${di.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${di.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),mv=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Me(t,Pj),m=P.useRef(null),{ownerState:g}=kt(),y=H({},g,{isMonthDisabled:r,isMonthSelected:i}),v=Ej(o,y);Pt(()=>{var w;n&&((w=m.current)==null||w.focus())},[n]);const C=(f==null?void 0:f.monthButton)??Mj,S=Le({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,H({},S))});process.env.NODE_ENV!=="production"&&(mv.displayName="MonthCalendarButton");const Oj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],kj=e=>Ce({root:["root"]},hv,e);function Dj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Vs(n);return H({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Rh=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),Rj=ae.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:wa,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),ad=P.forwardRef(function(t,n){const o=Dj(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:_,slots:D,slotProps:$}=o,N=Me(o,Oj),{value:x,handleValueChange:L,timezone:I}=Ys({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:Pn}),A=ya(I),O=dn(),j=Ze(),{ownerState:B}=kt(),F=P.useMemo(()=>Pn.getInitialReferenceValue({value:x,adapter:j,props:o,timezone:I,referenceDate:d,granularity:bn.month}),[]),z=kj(l),R=P.useMemo(()=>j.getMonth(A),[j,A]),Y=P.useMemo(()=>x!=null?j.getMonth(x):null,[x,j]),[q,K]=P.useState(()=>Y||j.getMonth(F)),[oe,Z]=Qn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:r??!1}),Q=he(X=>{Z(X),T&&T(X)}),se=P.useCallback(X=>{const re=j.startOfMonth(h&&j.isAfter(A,g)?A:g),te=j.startOfMonth(p&&j.isBefore(A,m)?A:m),ue=j.startOfMonth(X);return j.isBefore(ue,re)||j.isAfter(ue,te)?!0:v?v(ue):!1},[p,h,m,g,A,v,j]),J=he((X,re)=>{if(C)return;const ue=(x&&a&&!j.isSameYear(x,a)?j.setYear(x,j.getYear(a)):x)??a??F,ie=j.setMonth(ue,re);L(ie)}),V=he(X=>{se(j.setMonth(x??a??F,X))||(K(X),Q(!0),S&&S(X))});P.useEffect(()=>{K(X=>Y!==null&&X!==Y?Y:X)},[Y]);const U=he((X,re)=>{switch(X.key){case"ArrowUp":V((12+re-3)%12),X.preventDefault();break;case"ArrowDown":V((12+re+3)%12),X.preventDefault();break;case"ArrowLeft":V((12+re+(O?1:-1))%12),X.preventDefault();break;case"ArrowRight":V((12+re+(O?-1:1))%12),X.preventDefault();break}}),W=he((X,re)=>{V(re)}),ee=he((X,re)=>{q===re&&Q(!1)});return b.jsx(Rj,H({ref:n,className:ye(z.root,i),ownerState:B,role:"radiogroup","aria-labelledby":_,monthsPerRow:E},N,{children:vu(j,a??x??F).map(X=>{const re=j.getMonth(X),te=j.format(X,"monthShort"),ue=j.format(X,"month"),ie=Rh(re,Y,X,x,j),me=f||se(X);return b.jsx(mv,{selected:ie,value:re,onClick:J,onKeyDown:U,autoFocus:oe&&re===q,disabled:me,tabIndex:re===q&&!me?0:-1,onFocus:W,onBlur:ee,"aria-current":Rh(re,R,X,A,j)?"date":void 0,"aria-label":ue,slots:D,slotProps:$,classes:l,children:te},te)})}))});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 gv(e){return Pe("MuiYearCalendar",e)}const fi=Te("MuiYearCalendar",["root","button","disabled","selected"]),Ij=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Aj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Ce(n,gv,e)},Nj=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${fi.disabled}`]:t.disabled},{[`&.${fi.selected}`]:t.selected}]})(({theme:e})=>H({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${fi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${fi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),yv=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Me(t,Ij),m=P.useRef(null),{ownerState:g}=kt(),y=H({},g,{isYearDisabled:r,isYearSelected:i}),v=Aj(o,y);Pt(()=>{var w;n&&((w=m.current)==null||w.focus())},[n]);const C=(f==null?void 0:f.yearButton)??Nj,S=Le({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,H({},S))});process.env.NODE_ENV!=="production"&&(yv.displayName="YearCalendarButton");const _j=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],jj=e=>Ce({root:["root"]},gv,e);function Lj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=Vs(n);return H({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const $j=ae.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Kn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:wa,maxHeight:WA,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),Vj=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ld=P.forwardRef(function(t,n){const o=Lj(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:_,slots:D,slotProps:$}=o,N=Me(o,_j),{value:x,handleValueChange:L,timezone:I}=Ys({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:Pn}),A=ya(I),O=dn(),j=Ze(),{ownerState:B}=kt(),F=P.useMemo(()=>Pn.getInitialReferenceValue({value:x,adapter:j,props:o,timezone:I,referenceDate:u,granularity:bn.year}),[]),z=jj(a),R=P.useMemo(()=>j.getYear(A),[j,A]),Y=P.useMemo(()=>x!=null?j.getYear(x):null,[x,j]),[q,K]=P.useState(()=>Y||j.getYear(F)),[oe,Z]=Qn({name:"YearCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=he(le=>{Z(le),w&&w(le)}),se=P.useCallback(le=>{if(p&&j.isBeforeYear(le,A)||f&&j.isAfterYear(le,A)||m&&j.isBeforeYear(le,m)||h&&j.isAfterYear(le,h))return!0;if(!v)return!1;const de=j.startOfYear(le);return v(de)},[f,p,h,m,A,v,j]),J=he((le,de)=>{if(y)return;const pe=j.setYear(x??F,de);L(pe)}),V=he(le=>{se(j.setYear(x??F,le))||(K(le),Q(!0),C==null||C(le))});P.useEffect(()=>{K(le=>Y!==null&&le!==Y?Y:le)},[Y]);const U=T!=="desc"?E*1:E*-1,W=O&&T==="asc"||!O&&T==="desc"?-1:1,ee=he((le,de)=>{switch(le.key){case"ArrowUp":V(de-U),le.preventDefault();break;case"ArrowDown":V(de+U),le.preventDefault();break;case"ArrowLeft":V(de-W),le.preventDefault();break;case"ArrowRight":V(de+W),le.preventDefault();break}}),X=he((le,de)=>{V(de)}),re=he((le,de)=>{q===de&&Q(!1)}),te=P.useRef(null),ue=$e(n,te);P.useEffect(()=>{if(r||te.current===null)return;const le=te.current.querySelector('[tabindex="0"]');if(!le)return;const de=le.offsetHeight,pe=le.offsetTop,Ne=te.current.clientHeight,Oe=te.current.scrollTop,Xe=pe+de;de>Ne||pe<Oe||(te.current.scrollTop=Xe-Ne/2-de/2)},[r]);const ie=j.getYearRange([m,h]);T==="desc"&&ie.reverse();let me=E-ie.length%E;return me===E&&(me=0),b.jsxs($j,H({ref:ue,className:ye(z.root,i),ownerState:B,role:"radiogroup","aria-labelledby":_,yearsPerRow:E},N,{children:[ie.map(le=>{const de=j.getYear(le),pe=de===Y,Ne=d||se(le);return b.jsx(yv,{selected:pe,value:de,onClick:J,onKeyDown:ee,autoFocus:oe&&de===q,disabled:Ne,tabIndex:de===q&&!Ne?0:-1,onFocus:X,onBlur:re,"aria-current":R===de?"date":void 0,slots:D,slotProps:$,classes:a,children:j.format(le,"year")},j.format(le,"year"))}),Array.from({length:me},(le,de)=>b.jsx(Vj,{},de))]}))});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 Fj=e=>Pe("MuiPickersCalendarHeader",e),Bj=Te("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function zj(e){return Pe("MuiPickersArrowSwitcher",e)}Te("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Wj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Uj=["ownerState"],Hj=["ownerState"],Yj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),qj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Ih=ae.styled(Ps,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),Gj=e=>Ce({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},zj,e),bv=P.forwardRef(function(t,n){const o=dn(),r=ae.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:v,classes:C}=r,S=Me(r,Wj),{ownerState:w}=kt(),T=Gj(C),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},_=(l==null?void 0:l.previousIconButton)??Ih,D=Le({elementType:_,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:H({},w,{isButtonHidden:M.isHidden??!1}),className:ye(T.button,T.previousIconButton)}),$=(l==null?void 0:l.nextIconButton)??Ih,N=Le({elementType:$,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:H({},w,{isButtonHidden:E.isHidden??!1}),className:ye(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??G5,L=Le({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:T.leftArrowIcon}),I=Me(L,Uj),A=(l==null?void 0:l.rightArrowIcon)??K5,O=Le({elementType:A,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:T.rightArrowIcon}),j=Me(O,Hj);return b.jsxs(Yj,H({ref:n,className:ye(T.root,a),ownerState:w},S,{children:[b.jsx(_,H({},D,{children:o?b.jsx(A,H({},j)):b.jsx(x,H({},I))})),i?b.jsx(io,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(qj,{className:T.spacer,ownerState:w}),b.jsx($,H({},N,{children:o?b.jsx(x,H({},I)):b.jsx(A,H({},j))}))]}))});process.env.NODE_ENV!=="production"&&(bv.displayName="PickersArrowSwitcher");function Kj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ze();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function Zj(e,{disablePast:t,minDate:n,timezone:o}){const r=Ze();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const Xj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Qj=["ownerState"],Jj=e=>Ce({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Fj,e),eL=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),tL=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>H({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),nL=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),oL=ae.styled(Ps,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Bj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),rL=ae.styled(q5,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),cd=P.forwardRef(function(t,n){const o=ao(),r=Ze(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:v,views:C,labelId:S,className:w,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,_=Me(i,Xj),{ownerState:D}=kt(),$=Jj(T),N=(a==null?void 0:a.switchViewButton)??oL,x=Le({elementType:N,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:H({},D,{view:y}),className:$.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??rL,I=Le({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:$.switchViewIcon}),A=Me(I,Qj),O=()=>m(r.addMonths(c,1)),j=()=>m(r.addMonths(c,-1)),B=Kj(c,{disableFuture:d,maxDate:p,timezone:E}),F=Zj(c,{disablePast:f,minDate:h,timezone:E}),z=()=>{if(!(C.length===1||!g||u))if(C.length===2)g(C.find(Y=>Y!==y)||C[0]);else{const Y=C.indexOf(y)!==0?0:1;g(C[Y])}};if(C.length===1&&C[0]==="year")return null;const R=r.formatByString(c,M);return b.jsxs(eL,H({},_,{ownerState:D,className:ye($.root,w),ref:n,children:[b.jsxs(tL,{role:"presentation",onClick:z,ownerState:D,"aria-live":"polite",className:$.labelContainer,children:[b.jsx(lv,{reduceAnimations:v,transKey:R,children:b.jsx(nL,{id:S,ownerState:D,className:$.label,children:R})}),C.length>1&&!u&&b.jsx(N,H({},x,{children:b.jsx(L,H({},A))}))]}),b.jsx(to,{in:y==="day",appear:!v,enter:!v,children:b.jsx(bv,{slots:a,slotProps:l,onGoToPrevious:j,isPreviousDisabled:F,previousLabel:o.previousMonth,onGoToNext:O,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 sL=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:wa,maxHeight:Yu,display:"flex",flexDirection:"column",margin:"0 auto"}),iL=e=>Pe("MuiDateCalendar",e);Te("MuiDateCalendar",["root","viewTransitionContainer"]);const aL=["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"],lL=e=>Ce({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},iL,e);function cL(e,t){const n=ae.useThemeProps({props:e,name:t}),o=bb(n.reduceAnimations),r=Vs(n);return H({},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 uL=ae.styled(sL,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Yu}),dL=ae.styled(lv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),ud=P.forwardRef(function(t,n){const o=Ze(),{ownerState:r}=kt(),i=ro(),a=cL(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:_,disabled:D,readOnly:$,minDate:N,maxDate:x,disableHighlightToday:L,focusedView:I,onFocusedViewChange:A,showDaysOutsideCurrentMonth:O,fixedWeekNumber:j,dayOfWeekFormatter:B,slots:F,slotProps:z,loading:R,renderLoading:Y,displayWeekNumber:q,yearsOrder:K,yearsPerRow:oe,monthsPerRow:Z,timezone:Q}=a,se=Me(a,aL),{value:J,handleValueChange:V,timezone:U}=Ys({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:Pn}),{view:W,setView:ee,focusedView:X,setFocusedView:re,goToNextView:te,setValueAndGoToNextView:ue}=xb({view:w,views:T,openTo:E,onChange:V,onViewChange:c,autoFocus:l,focusedView:I,onFocusedViewChange:A}),{referenceDate:ie,calendarState:me,setVisibleDate:le,isDateDisabled:de,onMonthSwitchingAnimationEnd:pe}=K_({value:J,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:N,maxDate:x,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:U,getCurrentMonthFromVisibleDate:(ke,ct)=>o.isSameMonth(ke,ct)?ct:o.startOfMonth(ke)}),Ne=D&&J||N,Oe=D&&J||x,Xe=`${i}-grid-label`,tt=X!==null,wt=(F==null?void 0:F.calendarHeader)??cd,mt=Le({elementType:wt,externalSlotProps:z==null?void 0:z.calendarHeader,additionalProps:{views:T,view:W,currentMonth:me.currentMonth,onViewChange:ee,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:Ne,maxDate:Oe,disabled:D,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:U,labelId:Xe},ownerState:r}),Ee=he(ke=>{const ct=o.startOfMonth(ke),bt=o.endOfMonth(ke),Dt=de(ke)?bs({adapter:o,date:ke,minDate:o.isBefore(N,ct)?ct:N,maxDate:o.isAfter(x,bt)?bt:x,disablePast:h,disableFuture:p,isDateDisabled:de,timezone:U}):ke;Dt?(ue(Dt,"finish"),le({target:Dt,reason:"cell-interaction"})):(te(),le({target:ct,reason:"cell-interaction"}))}),we=he(ke=>{const ct=o.startOfYear(ke),bt=o.endOfYear(ke),Dt=de(ke)?bs({adapter:o,date:ke,minDate:o.isBefore(N,ct)?ct:N,maxDate:o.isAfter(x,bt)?bt:x,disablePast:h,disableFuture:p,isDateDisabled:de,timezone:U}):ke;Dt?(ue(Dt,"finish"),le({target:Dt,reason:"cell-interaction"})):(te(),le({target:ct,reason:"cell-interaction"}))}),xe=he(ke=>V(ke&&Fi(o,ke,J??ie),"finish",W));P.useEffect(()=>{o.isValid(J)&&le({target:J,reason:"controlled-value-change"})},[J]);const Ve=lL(_),Be={disablePast:h,disableFuture:p,maxDate:x,minDate:N},it={disableHighlightToday:L,readOnly:$,disabled:D,timezone:U,gridLabelId:Xe,slots:F,slotProps:z},Qe=P.useRef(W);P.useEffect(()=>{Qe.current!==W&&(X===Qe.current&&re(W,!0),Qe.current=W)},[X,re,W]);const _t=P.useMemo(()=>[J],[J]);return b.jsxs(uL,H({ref:n,className:ye(Ve.root,M),ownerState:r},se,{children:[b.jsx(wt,H({},mt,{slots:F,slotProps:z})),b.jsx(dL,{reduceAnimations:y,className:Ve.viewTransitionContainer,transKey:W,ownerState:r,children:b.jsxs("div",{children:[W==="year"&&b.jsx(ld,H({},Be,it,{value:J,onChange:we,shouldDisableYear:S,hasFocus:tt,onFocusedViewChange:ke=>re("year",ke),yearsOrder:K,yearsPerRow:oe,referenceDate:ie})),W==="month"&&b.jsx(ad,H({},Be,it,{currentMonth:me.currentMonth,hasFocus:tt,className:M,value:J,onChange:Ee,shouldDisableMonth:C,onFocusedViewChange:ke=>re("month",ke),monthsPerRow:Z,referenceDate:ie})),W==="day"&&b.jsx(Tj,H({},me,Be,it,{onMonthSwitchingAnimationEnd:pe,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:_t,onSelectedDaysChange:xe,shouldDisableDate:v,shouldDisableMonth:C,shouldDisableYear:S,onFocusedViewChange:ke=>re("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:j,dayOfWeekFormatter:B,displayWeekNumber:q,loading:R,renderLoading:Y}))]})})]}))});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 No=({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:_,slotProps:D,loading:$,renderLoading:N,disableHighlightToday:x,readOnly:L,disabled:I,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:O,sx:j,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:z,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:_,slotProps:D,loading:$,renderLoading:N,disableHighlightToday:x,readOnly:L,disabled:I,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:O,sx:j,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:z,timezone:R});process.env.NODE_ENV!=="production"&&(No.displayName="renderDateViewCalendar");const dd=P.forwardRef(function(t,n){var c;const o=Ze(),r=Gy(t,"MuiDesktopDatePicker"),i=H({day:No,month:No,year:No},r.viewRenderers),a=H({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:xu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:H({field:Va},r.slots),slotProps:H({},r.slotProps,{field:u=>{var d;return H({},en((d=r.slotProps)==null?void 0:d.field,u),Hy(r))},toolbar:H({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=nN({ref:n,props:a,valueManager:Pn,valueType:"date",validator:$s,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:St,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 fL(e){return Pe("MuiDialogContent",e)}Te("MuiDialogContent",["root","dividers"]);const pL=Te("MuiDialogTitle",["root"]),hL=e=>{const{classes:t,dividers:n}=e;return Ce({root:["root",n&&"dividers"]},fL,t)},mL=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${pL.root} + &`]:{paddingTop:0}}}]}))),vv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=hL(l);return b.jsx(mL,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(vv.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 gL(e){return Pe("MuiDialog",e)}const us=Te("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xv=P.createContext({});process.env.NODE_ENV!=="production"&&(xv.displayName="DialogContext");const yL=be(Xu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),bL=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 Ce(a,gL,t)},vL=be(Qu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),xL=be("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"}}}]}),SL=be(Ws,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${us.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}`,[`&.${us.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,[`&.${us.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Sv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialog"}),r=aa(),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=Ws,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:_={},TransitionComponent:D=to,transitionDuration:$=i,TransitionProps:N,...x}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},I=bL(L),A=P.useRef(),O=ee=>{A.current=ee.target===ee.currentTarget},j=ee=>{v&&v(ee),A.current&&(A.current=null,C&&C(ee,"backdropClick"))},B=ro(l),F=P.useMemo(()=>({titleId:B}),[B]),z={transition:D,...M},R={transition:N,paper:T,backdrop:d,..._},Y={slots:z,slotProps:R},[q,K]=st("root",{elementType:vL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(I.root,p),ref:n}),[oe,Z]=st("backdrop",{elementType:yL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:I.backdrop}),[Q,se]=st("paper",{elementType:SL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(I.paper,T.className)}),[J,V]=st("container",{elementType:xL,externalForwardedProps:Y,ownerState:L,className:I.container}),[U,W]=st("transition",{elementType:to,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:S,timeout:$,role:"presentation"}});return b.jsx(q,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:$,as:u,...Z}},disableEscapeKeyDown:h,onClose:C,open:S,onClick:j,...K,...x,children:b.jsx(U,{...W,children:b.jsx(J,{onMouseDown:O,...V,children:b.jsx(Q,{as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B,"aria-modal":c,...se,children:b.jsx(xv.Provider,{value:F,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Sv.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 wL=ae.styled(Sv,{slot:"internal"})({[`& .${us.container}`]:{outline:0},[`& .${us.paper}`]:{outline:0,minWidth:wa}}),CL=ae.styled(vv,{slot:"internal"})({"&:first-of-type":{padding:0}});function TL(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Tr(),{dismissViews:i,onPopperExited:a}=kt(),l=(n==null?void 0:n.dialog)??wL,c=(n==null?void 0:n.mobileTransition)??to;return b.jsx(l,H({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(CL,{children:t})}))}const PL=["props","steps"],EL=["ownerState"],ML=e=>{var E;let{props:t,steps:n}=e,o=Me(e,PL);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=_b({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=wb(H({},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=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:H({},m&&{id:h}),ownerState:p}),v=Me(y,EL),C=r.layout??Ca;let S=h;m&&(a?S=`${h}-label`:S=void 0);const w=H({},i,{toolbar:H({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:H({"aria-labelledby":S},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(Fy,H({},d,{children:[b.jsx(g,H({},v,{slots:H({},r,v.slots),slotProps:H({},w,v.slotProps),inputRef:l})),b.jsx(TL,{slots:r,slotProps:w,children:b.jsx(C,H({},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=Ze(),r=Gy(t,"MuiMobileDatePicker"),i=H({day:No,month:No,year:No},r.viewRenderers),a=H({},r,{viewRenderers:i,format:xu(o,r,!1),slots:H({field:Va},r.slots),slotProps:H({},r.slotProps,{field:u=>{var d;return H({},en((d=r.slotProps)==null?void 0:d.field,u),Hy(r))},toolbar:H({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=ML({ref:n,props:a,valueManager:Pn,valueType:"date",validator:$s,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:St,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 OL=["desktopModeMediaQuery"],pd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=A2}=o,i=Me(o,OL);return Ny(r,{defaultMatches:!0})?b.jsx(dd,H({ref:n},i)):b.jsx(fd,H({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:St,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 wv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vr,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(I){var A=["th","st","nd","rd"],O=I%100;return"["+I+(A[(O-20)%10]||A[O]||A[0])+"]"}},S=function(I,A,O){var j=String(I);return!j||j.length>=A?I:""+Array(A+1-j.length).join(O)+I},w={s:S,z:function(I){var A=-I.utcOffset(),O=Math.abs(A),j=Math.floor(O/60),B=O%60;return(A<=0?"+":"-")+S(j,2,"0")+":"+S(B,2,"0")},m:function I(A,O){if(A.date()<O.date())return-I(O,A);var j=12*(O.year()-A.year())+(O.month()-A.month()),B=A.clone().add(j,f),F=O-B<0,z=A.clone().add(j+(F?-1:1),f);return+(-(j+(O-B)/(F?B-z:z-B))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},T="en",E={};E[T]=C;var M="$isDayjsObject",_=function(I){return I instanceof x||!(!I||!I[M])},D=function I(A,O,j){var B;if(!A)return T;if(typeof A=="string"){var F=A.toLowerCase();E[F]&&(B=F),O&&(E[F]=O,B=F);var z=A.split("-");if(!B&&z.length>1)return I(z[0])}else{var R=A.name;E[R]=A,B=R}return!j&&B&&(T=B),B||!j&&T},$=function(I,A){if(_(I))return I.clone();var O=typeof A=="object"?A:{};return O.date=I,O.args=arguments,new x(O)},N=w;N.l=D,N.i=_,N.w=function(I,A){return $(I,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var x=function(){function I(O){this.$L=D(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var A=I.prototype;return A.parse=function(O){this.$d=function(j){var B=j.date,F=j.utc;if(B===null)return new Date(NaN);if(N.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var z=B.match(y);if(z){var R=z[2]-1||0,Y=(z[7]||"0").substring(0,3);return F?new Date(Date.UTC(z[1],R,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)):new Date(z[1],R,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)}}return new Date(B)}(O),this.init()},A.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},A.$utils=function(){return N},A.isValid=function(){return this.$d.toString()!==g},A.isSame=function(O,j){var B=$(O);return this.startOf(j)<=B&&B<=this.endOf(j)},A.isAfter=function(O,j){return $(O)<this.startOf(j)},A.isBefore=function(O,j){return this.endOf(j)<$(O)},A.$g=function(O,j,B){return N.u(O)?this[j]:this.set(B,O)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(O,j){var B=this,F=!!N.u(j)||j,z=N.p(O),R=function(J,V){var U=N.w(B.$u?Date.UTC(B.$y,V,J):new Date(B.$y,V,J),B);return F?U:U.endOf(u)},Y=function(J,V){return N.w(B.toDate()[J].apply(B.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(V)),B)},q=this.$W,K=this.$M,oe=this.$D,Z="set"+(this.$u?"UTC":"");switch(z){case h:return F?R(1,0):R(31,11);case f:return F?R(1,K):R(0,K+1);case d:var Q=this.$locale().weekStart||0,se=(q<Q?q+7:q)-Q;return R(F?oe-se:oe+(6-se),K);case u:case m:return Y(Z+"Hours",0);case c:return Y(Z+"Minutes",1);case l:return Y(Z+"Seconds",2);case a:return Y(Z+"Milliseconds",3);default:return this.clone()}},A.endOf=function(O){return this.startOf(O,!1)},A.$set=function(O,j){var B,F=N.p(O),z="set"+(this.$u?"UTC":""),R=(B={},B[u]=z+"Date",B[m]=z+"Date",B[f]=z+"Month",B[h]=z+"FullYear",B[c]=z+"Hours",B[l]=z+"Minutes",B[a]=z+"Seconds",B[i]=z+"Milliseconds",B)[F],Y=F===u?this.$D+(j-this.$W):j;if(F===f||F===h){var q=this.clone().set(m,1);q.$d[R](Y),q.init(),this.$d=q.set(m,Math.min(this.$D,q.daysInMonth())).$d}else R&&this.$d[R](Y);return this.init(),this},A.set=function(O,j){return this.clone().$set(O,j)},A.get=function(O){return this[N.p(O)]()},A.add=function(O,j){var B,F=this;O=Number(O);var z=N.p(j),R=function(K){var oe=$(F);return N.w(oe.date(oe.date()+Math.round(K*O)),F)};if(z===f)return this.set(f,this.$M+O);if(z===h)return this.set(h,this.$y+O);if(z===u)return R(1);if(z===d)return R(7);var Y=(B={},B[l]=o,B[c]=r,B[a]=n,B)[z]||1,q=this.$d.getTime()+O*Y;return N.w(q,this)},A.subtract=function(O,j){return this.add(-1*O,j)},A.format=function(O){var j=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var F=O||"YYYY-MM-DDTHH:mm:ssZ",z=N.z(this),R=this.$H,Y=this.$m,q=this.$M,K=B.weekdays,oe=B.months,Z=B.meridiem,Q=function(V,U,W,ee){return V&&(V[U]||V(j,F))||W[U].slice(0,ee)},se=function(V){return N.s(R%12||12,V,"0")},J=Z||function(V,U,W){var ee=V<12?"AM":"PM";return W?ee.toLowerCase():ee};return F.replace(v,function(V,U){return U||function(W){switch(W){case"YY":return String(j.$y).slice(-2);case"YYYY":return N.s(j.$y,4,"0");case"M":return q+1;case"MM":return N.s(q+1,2,"0");case"MMM":return Q(B.monthsShort,q,oe,3);case"MMMM":return Q(oe,q);case"D":return j.$D;case"DD":return N.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Q(B.weekdaysMin,j.$W,K,2);case"ddd":return Q(B.weekdaysShort,j.$W,K,3);case"dddd":return K[j.$W];case"H":return String(R);case"HH":return N.s(R,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return J(R,Y,!0);case"A":return J(R,Y,!1);case"m":return String(Y);case"mm":return N.s(Y,2,"0");case"s":return String(j.$s);case"ss":return N.s(j.$s,2,"0");case"SSS":return N.s(j.$ms,3,"0");case"Z":return z}return null}(V)||z.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(O,j,B){var F,z=this,R=N.p(j),Y=$(O),q=(Y.utcOffset()-this.utcOffset())*o,K=this-Y,oe=function(){return N.m(z,Y)};switch(R){case h:F=oe()/12;break;case f:F=oe();break;case p:F=oe()/3;break;case d:F=(K-q)/6048e5;break;case u:F=(K-q)/864e5;break;case c:F=K/r;break;case l:F=K/o;break;case a:F=K/n;break;default:F=K}return B?F:N.a(F)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return E[this.$L]},A.locale=function(O,j){if(!O)return this.$L;var B=this.clone(),F=D(O,j,!0);return F&&(B.$L=F),B},A.clone=function(){return N.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},I}(),L=x.prototype;return $.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(I){L[I[1]]=function(A){return this.$g(A,I[0],I[1])}}),$.extend=function(I,A){return I.$i||(I(A,x,$),I.$i=!0),$},$.locale=D,$.isDayjs=_,$.unix=function(I){return $(1e3*I)},$.en=E[T],$.Ls=E,$.p={},$})})(wv);var kL=wv.exports;const vt=no(kL);var Cv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vr,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)}}})})(Cv);var DL=Cv.exports;const RL=no(DL);var Tv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vr,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($,N,x){var L=x&&x.toUpperCase();return N||C[x]||n[x]||C[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,A,O){return A||O.slice(1)})})).match(o),w=S.length,T=0;T<w;T+=1){var E=S[T],M=m[E],_=M&&M[0],D=M&&M[1];S[T]=D?{regex:_,parser:D}:E.replace(/^\[|\]$/g,"")}return function($){for(var N={},x=0,L=0;x<w;x+=1){var I=S[x];if(typeof I=="string")L+=I.length;else{var A=I.regex,O=I.parser,j=$.slice(L),B=A.exec(j)[0];O.call(N,B),$=$.replace(B,"")}}return function(F){var z=F.afternoon;if(z!==void 0){var R=F.hours;z?R<12&&(F.hours+=12):R===12&&(F.hours=0),delete F.afternoon}}(N),N}}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,_=T.args;this.$u=M;var D=_[1];if(typeof D=="string"){var $=_[2]===!0,N=_[3]===!0,x=$||N,L=_[2];N&&(L=_[2]),c=this.$locale(),!$&&L&&(c=C.Ls[L]),this.$d=function(j,B,F,z){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*j);var R=g(B)(j),Y=R.year,q=R.month,K=R.day,oe=R.hours,Z=R.minutes,Q=R.seconds,se=R.milliseconds,J=R.zone,V=R.week,U=new Date,W=K||(Y||q?1:U.getDate()),ee=Y||U.getFullYear(),X=0;Y&&!q||(X=q>0?q-1:U.getMonth());var re,te=oe||0,ue=Z||0,ie=Q||0,me=se||0;return J?new Date(Date.UTC(ee,X,W,te,ue,ie,me+60*J.offset*1e3)):F?new Date(Date.UTC(ee,X,W,te,ue,ie,me)):(re=new Date(ee,X,W,te,ue,ie,me),V&&(re=z(re).week(V).toDate()),re)}catch{return new Date("")}}(E,D,M,C),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),x&&E!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var I=D.length,A=1;A<=I;A+=1){_[1]=D[A-1];var O=C.apply(this,_);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}A===I&&(this.$d=new Date(""))}else w.call(this,T)}}})})(Tv);var IL=Tv.exports;const AL=no(IL);var Pv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vr,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)}}})})(Pv);var NL=Pv.exports;const _L=no(NL);var Ev={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vr,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))}}})})(Ev);var jL=Ev.exports;const LL=no(jL);var Mv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(vr,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)}}})})(Mv);var $L=Mv.exports;const VL=no($L);vt.extend(_L);vt.extend(RL);vt.extend(LL);vt.extend(VL);const FL={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"},BL={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"},wl=["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 zL{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",FL);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof vt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof vt.tz<"u");fe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});fe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return vt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=vt.tz.guess();o==="UTC"?n=vt(t):n=vt.tz(t,o)}else n=vt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(wl);return this.setLocaleToValue(vt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(wl);if(!this.hasTimezonePlugin())throw new Error(Ah);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(vt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=vt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&Sb(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});fe(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});fe(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));fe(this,"getInvalidDate",()=>vt(new Date("Invalid date")));fe(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});fe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(wl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Ah)}return this.setLocaleToValue(vt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:vt(t,n,this.locale,!0));fe(this,"getCurrentLocaleCode",()=>this.locale||"en");fe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));fe(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});fe(this,"isValid",t=>t==null?!1:t.isValid());fe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));fe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));fe(this,"formatNumber",t=>t);fe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());fe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));fe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));fe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));fe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));fe(this,"isAfter",(t,n)=>t>n);fe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));fe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));fe(this,"isBefore",(t,n)=>t<n);fe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));fe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));fe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);fe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));fe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));fe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));fe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));fe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));fe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));fe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));fe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));fe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));fe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));fe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));fe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));fe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));fe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));fe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));fe(this,"getYear",t=>t.year());fe(this,"getMonth",t=>t.month());fe(this,"getDate",t=>t.date());fe(this,"getHours",t=>t.hour());fe(this,"getMinutes",t=>t.minute());fe(this,"getSeconds",t=>t.second());fe(this,"getMilliseconds",t=>t.millisecond());fe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));fe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));fe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));fe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));fe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));fe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));fe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));fe(this,"getDaysInMonth",t=>t.daysInMonth());fe(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let r=0,i=n;const a=[];for(;i<o;){const l=Math.floor(r/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),r+=1}return a});fe(this,"getWeekNumber",t=>t.week());fe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=H({},BL,n),vt.extend(AL)}getDayOfWeek(t){return t.day()+1}}const WL="_root_1dntq_1",UL="_container_1dntq_72",HL="_header_1dntq_83",YL="_headerText_1dntq_91",qL="_headerTitle_1dntq_97",GL="_headerSubtitle_1dntq_102",KL="_controls_1dntq_106",ZL="_headerButton_1dntq_113",XL="_zoomGroup_1dntq_133",QL="_zoomLabel_1dntq_144",JL="_tracksWrapper_1dntq_153",e$="_tracksWithHeader_1dntq_158",t$="_layers_1dntq_162",n$="_timeScale_1dntq_168",o$="_videoTrack_1dntq_172",r$="_eventsTrack_1dntq_176",s$="_trackBox_1dntq_180",i$="_trackLabelRow_1dntq_190",a$="_label_1dntq_198",l$="_trackArea_1dntq_209",c$="_tick_1dntq_215",u$="_tickMajor_1dntq_223",d$="_tickMinor_1dntq_227",f$="_tickLabel_1dntq_231",p$="_segment_1dntq_243",h$="_event_1dntq_176",m$="_eventDot_1dntq_276",g$="_selectionOverlay_1dntq_283",y$="_playhead_1dntq_292",b$="_playheadLine_1dntq_302",v$="_playheadHandle_1dntq_312",Ae={root:WL,container:UL,header:HL,headerText:YL,headerTitle:qL,headerSubtitle:GL,controls:KL,headerButton:ZL,zoomGroup:XL,zoomLabel:QL,tracksWrapper:JL,tracksWithHeader:e$,layers:t$,timeScale:n$,videoTrack:o$,eventsTrack:r$,trackBox:s$,trackLabelRow:i$,label:a$,trackArea:l$,tick:c$,tickMajor:u$,tickMinor:d$,tickLabel:f$,segment:p$,event:h$,eventDot:m$,selectionOverlay:g$,playhead:y$,playheadLine:b$,playheadHandle:v$};function ot(e,t,n){return Math.min(n,Math.max(t,e))}function An(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Zo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function rt(e){return String(Math.floor(e)).padStart(2,"0")}function x$(e){return String(Math.floor(e)).padStart(4,"0")}function Nh(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60);return`${x$(t.getFullYear())}${rt(t.getMonth()+1)}${rt(t.getDate())}T${rt(o)}${rt(r)}${rt(i)}Z`}function S$(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Cl(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`${rt(n)}:${rt(o)}:${rt(r)}`}function w$(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`${rt(o)}:${rt(r)}:${rt(i)}:${rt(l)}`}function Tl(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?`${rt(n)}:${rt(o)}:${rt(r)}`:`${rt(o)}:${rt(r)}`}function C$(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?`${rt(o)}:${rt(r)}:${rt(i)}:${rt(l)}`:`${rt(r)}:${rt(i)}:${rt(l)}`}function T$(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 P$=(e,t,n)=>t>=3600?Cl(e).slice(0,2)+":00:00":t>=60?Cl(e).slice(0,5):t>=1?Cl(e):w$(e,n),E$=(e,t,n)=>t>=3600||t>=60||t>=1?Tl(e):C$(e,n);function M$(){const e=k.useRef(null),[t,n]=k.useState(0);return k.useLayoutEffect(()=>{const o=e.current;if(!o)return;const r=new ResizeObserver(()=>{n(o.getBoundingClientRect().width)});return r.observe(o),n(o.getBoundingClientRect().width),()=>r.disconnect()},[]),{ref:e,width:t}}function O$(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i,date:a,onChangePeriod:l,segments:c,events:u,fps:d=30}=e,[f,p]=k.useState(0),[h,m]=k.useState(!1),[g,y]=k.useState(null),[v,C]=k.useState({windowSeconds:t,fps:d}),{ref:S,width:w}=M$(),T=102,M=Math.max(0,w-T-10),[_,D]=k.useState(0),$=k.useMemo(()=>{const V=Math.max(1/Math.max(1,v.fps),.05);return ot(v.windowSeconds,V,t)},[v.windowSeconds,v.fps,t]);k.useEffect(()=>{if(!h||w<=0)return;const V=ot(f-$*.9,0,Math.max(0,t-$));D(V)},[f,h,w,$,t]);const N=k.useMemo(()=>{const V=ot(_,0,Math.max(0,t-$)),U=V+$;return{start:V,end:U,seconds:$}},[_,t,$]),x=k.useMemo(()=>{if(M<=0)return[];const{majorStep:V,minorStep:U}=T$({width:M,windowSeconds:N.seconds,fps:v.fps}),W=Math.floor(N.start/U)*U,ee=N.end,X=[],re=U*1e-6;for(let te=W;te<=ee+re;te+=U){const ue=An({time:te,windowStart:N.start,windowSeconds:N.seconds,width:M});if(ue<-1||ue>M+1)continue;const ie=Math.abs(te/V-Math.round(te/V))<1e-6;X.push({time:te,px:ue,kind:ie?"major":"minor",label:ie?r(te,V,v.fps):void 0})}return X},[M,r,N.end,N.seconds,N.start,v.fps]),L=k.useRef(l);L.current=l;const I=k.useRef(a);I.current=a;const A=k.useCallback((V,U)=>{const W=L.current;if(!W)return;const ee=I.current;W({startDate:Nh(V,ee),endDate:Nh(U,ee)})},[]),O=k.useRef(null),j=k.useRef(null),B=V=>{j.current=V,O.current==null&&(O.current=requestAnimationFrame(()=>{O.current=null;const U=j.current;j.current=null,U==null||U()}))};k.useEffect(()=>()=>{O.current!=null&&cancelAnimationFrame(O.current)},[]);const F=k.useRef(null),z=V=>{const U=S.current;if(!U)return 0;const W=U.getBoundingClientRect();return ot(V-W.left-T,0,M)};return{viewportRef:S,width:w,axisLeft:T,axisWidth:M,totalSeconds:t,zoom:v,setZoom:C,isLive:h,setIsLive:m,currentTime:f,selectedRange:g,setSelectedRange:y,videoSegments:c,events:u,view:N,ticks:x,onWheel:V=>{if(!n||w<=0)return;V.preventDefault(),m(!1);const U=z(V.clientX),W=ot(Zo({px:U,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t),X=V.deltaY<0?.8:1.25,re=ot(N.seconds*X,Math.max(1/Math.max(1,v.fps),.05),t),te=ot(W-U/Math.max(1,M)*re,0,Math.max(0,t-re));C(ue=>({...ue,windowSeconds:re})),D(te)},onPointerDownScrub:V=>{if(V.button!==0)return;const U=S.current;if(!U)return;U.setPointerCapture(V.pointerId);const W=z(V.clientX),ee=ot(Zo({px:W,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"playhead",pointerId:V.pointerId,startPx:W,startTime:ee},p(ee)},onPointerDownSelect:V=>{if(V.button!==0)return;const U=S.current;if(!U)return;U.setPointerCapture(V.pointerId);const W=z(V.clientX),ee=ot(Zo({px:W,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"select",pointerId:V.pointerId,startPx:W,startTime:ee},y({start:ee,end:ee})},onPointerDownPlayhead:V=>{if(V.button!==0)return;const U=S.current;if(!U)return;U.setPointerCapture(V.pointerId);const W=z(V.clientX),ee=ot(Zo({px:W,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"playhead",pointerId:V.pointerId,startPx:W,startTime:ee},p(ee)},onPointerMove:V=>{const U=F.current;if(!U||U.pointerId!==V.pointerId)return;const W=z(V.clientX);B(()=>{const ee=ot(Zo({px:W,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);if(U.mode==="playhead")p(ee);else{const X=Math.min(U.startTime,ee),re=Math.max(U.startTime,ee);y({start:X,end:re})}})},onPointerUp:V=>{const U=F.current;if(!(!U||U.pointerId!==V.pointerId)&&(F.current=null,U.mode==="select"&&g)){const W=Math.abs(g.end-g.start);if(W<Math.max(1/Math.max(1,v.fps),.1))y(null);else if(A(g.start,g.end),o){const ee=ot(W*1.05,Math.max(1/Math.max(1,v.fps),.05),t),X=ot(g.start,0,Math.max(0,t-ee));C(re=>({...re,windowSeconds:ee})),D(X)}}},onClickSegment:(V,U)=>{m(!1);const W=ot(V,0,t);p(W),A(U.start,U.end)},onClickEvent:V=>{i&&y(null),m(!1);const U=ot(V,0,t);p(U),A(U,U),D(ot(V-N.seconds/2,0,Math.max(0,t-N.seconds)))},resetView:()=>{m(!1),C(V=>({...V,windowSeconds:t})),D(0)}}}const Ov=({ticks:e})=>b.jsx("div",{className:Ae.trackArea,children:e.map(t=>b.jsxs("div",{children:[b.jsx("div",{className:`${Ae.tick} ${t.kind==="minor"?Ae.tickMinor:Ae.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?b.jsx("div",{className:Ae.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});Ov.displayName="TimeScale";const kv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:ot(c.start,0,r),end:ot(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=An({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=ot(Zo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return b.jsx("div",{className:Ae.trackArea,children:a.map((c,u)=>{const d=An({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=An({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return b.jsx("div",{className:Ae.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}`)})})};kv.displayName="VideoTrack";const Dv=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:ot(l.time,0,r)})).filter(l=>l.time>=t&&l.time<=t+n);return b.jsx("div",{className:Ae.trackArea,children:a.map(l=>{const c=An({time:l.time,windowStart:t,windowSeconds:n,width:o});return b.jsx("button",{type:"button",className:Ae.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:Ae.eventDot})},l.id)})})};Dv.displayName="EventsTrack";const Rv=({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=150,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",onChangePeriod:w,onSegmentClick:T,onEventClick:E,segments:M,events:_,...D})=>{const N=ae.useTheme().palette.mode==="dark",[x,L]=k.useState(!1),I=a??(i==="duration"?E$:P$),{viewportRef:A,axisLeft:O,axisWidth:j,zoom:B,currentTime:F,selectedRange:z,videoSegments:R,events:Y,view:q,ticks:K,onWheel:oe,onPointerDownScrub:Z,onPointerDownSelect:Q,onPointerDownPlayhead:se,onPointerMove:J,onPointerUp:V,onClickSegment:U,onClickEvent:W,setZoom:ee}=O$({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:I,clearSelectionOnEventClick:h,date:g??new Date,onChangePeriod:w,segments:M??[],events:_??[]}),X=j?O+An({time:F,windowStart:q.start,windowSeconds:q.seconds,width:j}):O,re=Math.max(1/Math.max(1,B.fps),.5),te=re/l,ue=(()=>{const le=ot(q.seconds,re,l);if(te<=0||te>=1)return 0;const de=Math.log(le/l)/Math.log(te)*100;return ot(de,0,100)})(),ie=le=>{const de=ot(le,0,100),pe=l*Math.pow(te,de/100);ee(Ne=>({...Ne,windowSeconds:ot(pe,re,l)}))},me=`${Math.round(ue)}%`;return b.jsxs(G.Box,{className:`${Ae.root} ${Ae.container} ${e??""}`.trim(),"data-theme":N?"dark":"light",sx:t,...D,children:[r?b.jsxs("div",{className:Ae.header,children:[b.jsxs("div",{className:Ae.headerText,children:[b.jsx(G.Typography,{variant:"subtitle1",className:Ae.headerTitle,children:n}),b.jsx(G.Typography,{variant:"body2",className:Ae.headerSubtitle,children:o})]}),b.jsxs("div",{className:Ae.controls,children:[m?b.jsxs("button",{type:"button",className:Ae.headerButton,onClick:m,"aria-label":S,children:[b.jsx(_D,{fontSize:"small"}),S]}):null,g!==void 0?b.jsx(ma,{dateAdapter:zL,children:b.jsx(pd,{open:x,onOpen:()=>L(!0),onClose:()=>L(!1),value:vt(g),onChange:le=>{le&&y&&y(le.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:Ae.headerButton,onClick:()=>L(!0),"aria-label":"Selecionar data",children:[b.jsx(jD,{fontSize:"small"}),vt(g).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(G.Box,{className:Ae.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(G.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>ie(ue-10),children:b.jsx(ND,{fontSize:"small"})}),b.jsx("span",{className:Ae.zoomLabel,children:me}),b.jsx(G.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>ie(ue+10),children:b.jsx(AD,{fontSize:"small"})})]}):null]})]}):null,b.jsx(G.Box,{className:`${Ae.tracksWrapper} ${r?Ae.tracksWithHeader:""}`.trim(),style:{height:u},children:b.jsxs("div",{ref:A,className:Ae.layers,onWheel:oe,onPointerMove:J,onPointerUp:V,children:[b.jsxs("div",{className:Ae.playhead,style:{left:`${X}px`},onPointerDown:se,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":F,tabIndex:0,children:[b.jsx("div",{className:Ae.playheadHandle}),b.jsx("div",{className:Ae.playheadLine})]}),b.jsxs("div",{className:`${Ae.trackLabelRow} ${Ae.timeScale}`.trim(),children:[b.jsx("div",{}),b.jsx("div",{onPointerDown:Z,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(Ov,{ticks:K})})]}),b.jsxs(G.Box,{className:Ae.trackBox,onPointerDown:Q,children:[z?b.jsx("div",{className:Ae.selectionOverlay,style:{left:`${O+An({time:z.start,windowStart:q.start,windowSeconds:q.seconds,width:j})}px`,width:`${Math.max(0,An({time:z.end,windowStart:q.start,windowSeconds:q.seconds,width:j})-An({time:z.start,windowStart:q.start,windowSeconds:q.seconds,width:j}))}px`}}):null,b.jsxs("div",{className:`${Ae.trackLabelRow} ${Ae.videoTrack}`.trim(),children:[b.jsx("div",{className:Ae.label,children:v}),b.jsx("div",{onPointerDown:p?Z:void 0,style:{height:"100%"},children:b.jsx(kv,{segments:R,viewStart:q.start,viewSeconds:q.seconds,width:j,totalSeconds:l,onClickSegment:(le,de)=>{U(le,de),T==null||T(le,de)}})})]}),b.jsxs("div",{className:`${Ae.trackLabelRow} ${Ae.eventsTrack}`.trim(),children:[b.jsx("div",{className:Ae.label,children:C}),b.jsx("div",{onPointerDown:p?Z:void 0,style:{height:"100%"},children:b.jsx(Dv,{events:Y,viewStart:q.start,viewSeconds:q.seconds,width:j,totalSeconds:l,onClickEvent:(le,de)=>{W(le),E==null||E(le,de)}})})]})]})]})})]})};Rv.displayName="VideoTimeline";const k$=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=yu(),[a,l]=Vi(Oy),[c,u]=Vi(ky),d=My(Uk),f=k.useRef(-1);return k.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(S$()),p=requestAnimationFrame(m))};return p=requestAnimationFrame(m),()=>{h=!1,p!=null&&cancelAnimationFrame(p)}},[e,l,u,t]),k.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]),k.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;if(c){if(Number.isFinite(p.duration)&&p.duration>0){const m=p.duration;Math.abs(p.currentTime-m)>.25&&(p.currentTime=m,f.current=m)}return}if(Math.abs(f.current-a)<.05)return;let h=a;if(n&&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]),k.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},Iv=({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:_,borderRadius:D,loading:$,unavailable:N,unavailableIcon:x,unavailableMessage:L})=>{const I=!!e,A=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(Dy,{children:[b.jsx(bu,{stream:e,availableQualities:A,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:_,borderRadius:D,loading:$,unavailable:N,unavailableIcon:x,unavailableMessage:L}),b.jsx(k$,{isStream:I,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Iv.displayName="VideoPlayerWebRTC";const D$=yt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),R$="_container_1vjy6_1",I$="_segment_1vjy6_7",A$="_selected_1vjy6_20",N$="_label_1vjy6_28",_$="_icon_1vjy6_37",j$="_checkIcon_1vjy6_47",L$="_unselected_1vjy6_53",xo={container:R$,segment:I$,selected:A$,label:N$,icon:_$,checkIcon:j$,unselected:L$},Av=({items:e,className:t,sx:n,...o})=>{const i=G.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(G.Box,{className:`${xo.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(G.Box,{className:`${xo.segment} ${l.selected?xo.selected:xo.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(G.Box,{className:xo.icon,children:b.jsx(D$,{className:xo.checkIcon})}),b.jsx(G.Box,{className:xo.label,children:l.label})]},c))})};Av.displayName="DisplayTypes";const $$=600,Pl=[.32,.72,0,1],El=400,Nv=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=$$,className:l,sx:c})=>{const u=G.useTheme(),d=G.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${El}ms cubic-bezier(${Pl.join(",")}), min-width ${El}ms cubic-bezier(${Pl.join(",")})`;if(d&&i!=="both")return b.jsxs(G.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(G.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(G.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(G.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${El}ms cubic-bezier(${Pl.join(",")})`,...c},children:[b.jsx(G.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(G.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};Nv.displayName="SplitLayout";const V$=256,_v=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=V$,gap:r=2,className:i,sx:a})=>{const c=G.useTheme().spacing(r),u=n-1;return b.jsx(G.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})};_v.displayName="ResponsiveGrid";const jv=yt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var F$=e=>e.type==="checkbox",Jr=e=>e instanceof Date,hd=e=>e==null;const Lv=e=>typeof e=="object";var $o=e=>!hd(e)&&!Array.isArray(e)&&Lv(e)&&!Jr(e),B$=e=>$o(e)&&e.target?F$(e.target)?e.target.checked:e.target.value:e,z$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,W$=(e,t)=>e.has(z$(t)),U$=e=>{const t=e.constructor&&e.constructor.prototype;return $o(t)&&t.hasOwnProperty("isPrototypeOf")},H$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function $v(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(H$&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!($o(e)&&U$(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=$v(e[r]));return o}var Vv=e=>/^\w*$/.test(e),Pc=e=>e===void 0,Y$=e=>Array.isArray(e)?e.filter(Boolean):[],Fv=e=>Y$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Vt=(e,t,n)=>{if(!t||!$o(e))return n;const o=(Vv(t)?[t]:Fv(t)).reduce((r,i)=>hd(r)?r:r[i],e);return Pc(o)||o===e?Pc(e[t])?n:e[t]:o},Ml=e=>typeof e=="boolean",pi=e=>typeof e=="function",_h=(e,t,n)=>{let o=-1;const r=Vv(t)?[t]:Fv(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const u=e[l];c=$o(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const jh={BLUR:"blur",CHANGE:"change"},Lh={all:"all"},Bv=k.createContext(null);Bv.displayName="HookFormControlContext";const md=()=>k.useContext(Bv);var q$=(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]!==Lh.all&&(t._proxyFormState[a]=!o||Lh.all),n&&(n[a]=!0),e[a]}});return r};const zv=typeof window<"u"?k.useLayoutEffect:k.useEffect;function G$(e){const t=md(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=k.useState(n._formState),c=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return zv(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),k.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),k.useMemo(()=>q$(a,n,c.current,!1),[a,n])}var K$=e=>typeof e=="string",$h=(e,t,n,o,r)=>K$(e)?Vt(n,e,r):Array.isArray(e)?e.map(i=>Vt(n,i)):n,Vh=e=>hd(e)||!Lv(e);function Ci(e,t,n=new WeakSet){if(Vh(e)||Vh(t))return Object.is(e,t);if(Jr(e)&&Jr(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(Jr(a)&&Jr(l)||$o(a)&&$o(l)||Array.isArray(a)&&Array.isArray(l)?!Ci(a,l,n):!Object.is(a,l))return!1}}return!0}function Z$(e){const t=md(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=k.useRef(r),u=k.useRef(l),d=k.useRef(void 0),f=k.useRef(n),p=k.useRef(o);u.current=l;const[h,m]=k.useState(()=>{const w=n._getWatch(o,c.current);return u.current?u.current(w):w}),g=k.useCallback(w=>{const T=$h(o,n._names,w||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=k.useCallback(w=>{if(!i){const T=$h(o,n._names,w||n._formValues,!1,c.current);if(u.current){const E=u.current(T);Ci(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);zv(()=>((f.current!==n||!Ci(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]),k.useEffect(()=>n._removeUnmounted());const v=f.current!==n,C=p.current,S=k.useMemo(()=>{if(i)return null;const w=!v&&!Ci(C,o);return v||w?g():null},[i,v,o,C,g]);return S!==null?S:h}function X$(e){const t=md(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=W$(r._names.array,n),u=k.useMemo(()=>Vt(r._formValues,n,Vt(r._defaultValues,n,a)),[r,n,a]),d=Z$({control:r,name:n,defaultValue:u,exact:l}),f=G$({control:r,name:n,exact:l}),p=k.useRef(e),h=k.useRef(void 0),m=k.useRef(r.register(n,{...e.rules,value:d,...Ml(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=k.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Vt(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Vt(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Vt(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Vt(f.validatingFields,n)},error:{enumerable:!0,get:()=>Vt(f.errors,n)}}),[f,n]),y=k.useCallback(w=>m.current.onChange({target:{value:B$(w),name:n},type:jh.CHANGE}),[n]),v=k.useCallback(()=>m.current.onBlur({target:{value:Vt(r._formValues,n),name:n},type:jh.BLUR}),[n,r._formValues]),C=k.useCallback(w=>{const T=Vt(r._fields,n);T&&T._f&&w&&(T._f.ref={focus:()=>pi(w.focus)&&w.focus(),select:()=>pi(w.select)&&w.select(),setCustomValidity:E=>pi(w.setCustomValidity)&&w.setCustomValidity(E),reportValidity:()=>pi(w.reportValidity)&&w.reportValidity()})},[r._fields,n]),S=k.useMemo(()=>({name:n,value:d,...Ml(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:C}),[n,o,f.disabled,y,v,C,d]);return k.useEffect(()=>{const w=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...Ml(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,_)=>{const D=Vt(r._fields,M);D&&D._f&&(D._f.mount=_)};if(E(n,!0),w){const M=$v(Vt(r._options.defaultValues,n,p.current.defaultValue));_h(r._defaultValues,n,M),Pc(Vt(r._formValues,n))&&_h(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]),k.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),k.useMemo(()=>({field:S,formState:f,fieldState:g}),[S,f,g])}const gd=e=>e.render(X$(e)),Q$=k.createContext(null);Q$.displayName="HookFormContext";const J$="_formSelect_s09hu_1",eV="_labelWrapper_s09hu_5",tV="_inputLabel_s09hu_9",nV="_placeholder_s09hu_75",oV="_helperText_s09hu_121",So={formSelect:J$,labelWrapper:eV,inputLabel:tV,placeholder:nV,helperText:oV},Wv=({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=G.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:`${So.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:So.labelWrapper,children:b.jsxs("span",{className:So.inputLabel,children:[n,a?" *":""]})}),b.jsxs(G.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(G.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(w=>{if(w===""||w===null||w===void 0)return b.jsx("span",{className:So.placeholder,children:r||""});const T=o.find(E=>E.value===w);return(T==null?void 0:T.label)||String(w)}),className:So.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(G.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:So.placeholder,children:r})}),o.map(w=>{const T=m.value===w.value;return b.jsxs(G.MenuItem,{value:w.value,disabled:w.disabled,children:[T&&b.jsx(G.ListItemIcon,{sx:{minWidth:20},children:b.jsx(jv,{sx:{fontSize:20}})}),w.label]},String(w.value))})]}),v&&b.jsx(G.FormHelperText,{className:So.helperText,children:C})]})]})}})};Wv.displayName="FormSelect";const rV="_formMultiSelect_1d6fa_1",sV="_labelWrapper_1d6fa_5",iV="_inputLabel_1d6fa_9",aV="_placeholder_1d6fa_75",lV="_helperText_1d6fa_124",cV="_chipsContainer_1d6fa_153",uV="_chip_1d6fa_153",Dn={formMultiSelect:rV,labelWrapper:sV,inputLabel:iV,placeholder:aV,helperText:lV,chipsContainer:cV,chip:uV},Uv=({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=G.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:S,fieldState:w})=>{var N;const T=!!w.error,E=T||!!i,M=T?(N=w.error)==null?void 0:N.message:i,_=Array.isArray(S.value)?S.value:[];_.length>0;const $=f||(x=>{if(!Array.isArray(x)||x.length===0)return b.jsx("span",{className:Dn.placeholder,children:r||""});const L=d?x.slice(0,d):x,I=d&&x.length>d?x.length-d:0;return b.jsxs(G.Box,{className:Dn.chipsContainer,children:[L.map(A=>{const O=o.find(j=>j.value===A);return b.jsx(G.Chip,{label:(O==null?void 0:O.label)||String(A),size:"small",variant:u,className:Dn.chip},String(A))}),I>0&&b.jsx(G.Chip,{label:`+${I}`,size:"small",variant:u,className:Dn.chip})]})});return b.jsxs("div",{className:`${Dn.formMultiSelect} ${p||""}`,"data-theme":C?"dark":"light",children:[b.jsx("div",{className:Dn.labelWrapper,children:b.jsxs("span",{className:Dn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(G.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(G.Select,{...S,...y,variant:"outlined",multiple:!0,value:_,onChange:x=>{S.onChange(x.target.value)},displayEmpty:!!r,renderValue:$,className:Dn.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 L=_.includes(x.value);return b.jsxs(G.MenuItem,{value:x.value,disabled:x.disabled,children:[L&&b.jsx(G.ListItemIcon,{sx:{minWidth:20},children:b.jsx(jv,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),E&&b.jsx(G.FormHelperText,{className:Dn.helperText,children:M})]})]})}})};Uv.displayName="FormMultiSelect";const Hv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})),Yv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM11 13H13V7H11V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"})),dV=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})),fV="_formInput_84pfi_1",pV="_labelWrapper_84pfi_5",hV="_inputLabel_84pfi_9",mV="_startAdornment_84pfi_163",gV="_endAdornment_84pfi_170",yV="_iconButton_84pfi_177",bV="_clearButton_84pfi_197",vV="_errorButton_84pfi_216",Ut={formInput:fV,labelWrapper:pV,inputLabel:hV,startAdornment:mV,endAdornment:gV,iconButton:yV,clearButton:bV,errorButton:vV},qv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,startIcon:d,endIcon:f,onEndIconClick:p,clearable:h=!1,...m})=>{const y=G.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:v,fieldState:C})=>{var D;const S=!!C.error,w=S?(D=C.error)==null?void 0:D.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=d?b.jsx(G.InputAdornment,{position:"start",className:Ut.startAdornment,children:b.jsx("span",{className:Ut.iconButton,children:d})}):void 0;let _;return f?_=b.jsx(G.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:p,className:Ut.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(S?_=b.jsx(G.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{className:Ut.errorButton,children:b.jsx(Yv,{})})}):_=b.jsx(G.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:E,className:Ut.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(Hv,{})})})),b.jsxs("div",{className:`${Ut.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Ut.labelWrapper,children:b.jsxs("span",{className:Ut.inputLabel,children:[n,a?" *":""]})}),b.jsx(G.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:S,helperText:w,variant:"outlined",className:Ut.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Ut.inputRoot,...M&&{startAdornment:M},..._&&{endAdornment:_}}})]})}})};qv.displayName="FormInput";const xV="_viewChip_18qqe_1",SV="_active_18qqe_61",wV="_icon_18qqe_76",CV="_label_18qqe_81",hi={viewChip:xV,active:SV,icon:wV,label:CV},Gv=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=G.useTheme().palette.mode==="dark";return b.jsxs(G.Box,{ref:i,className:`${hi.viewChip} ${n?hi.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(G.Box,{className:hi.icon,component:"div",children:t}),b.jsx(G.Box,{className:hi.label,component:"span",children:e})]})};Gv.displayName="ViewChip";exports.Button=Ec;exports.CAMERA_ALGORITHM_FACIAL=_s;exports.CAMERA_ALGORITHM_LPR=js;exports.CameraCard=RM;exports.CancelIcon=Hv;exports.CountCard=qS;exports.DisplayTypes=Av;exports.ErrorIcon=Yv;exports.FacialIcon=As;exports.FilterButton=qh;exports.FilterChip=Gh;exports.FilterModal=gm;exports.FormInput=qv;exports.FormMultiSelect=Uv;exports.FormSelect=Wv;exports.GoogleMap=uy;exports.LPRIcon=Ns;exports.MapContent=pu;exports.MapMarkers=hy;exports.MapSpot=du;exports.ModuleMenu=vy;exports.NotFoundContent=gy;exports.ResponsiveGrid=_v;exports.SearchBar=my;exports.SearchIcon=dV;exports.SidebarMenu=by;exports.SplitLayout=Nv;exports.VideoControlProvider=Dy;exports.VideoPlayer=bu;exports.VideoPlayerWebRTC=Iv;exports.VideoTimeline=Rv;exports.ViewChip=Gv;exports.VisioThemeProvider=r0;exports.ZoomControls=$M;exports.darkColors=ft;exports.darkTheme=Hh;exports.lightColors=dt;exports.lightTheme=Uh;exports.radiiTokens=mi;exports.spacingScale=t0;exports.spacingTokens=zh;exports.typographyTokens=Mt;exports.useGoogleMapContext=fu;exports.useVideoControl=yu;exports.useVideoControlRequired=Hk;exports.useVisioTheme=s0;
|
|
245
245
|
//# sourceMappingURL=index.cjs.js.map
|