@visio-io/design-system 1.8.7 → 1.8.8
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 +67 -67
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1477 -1459
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/VideoPlayer/icons/NofFoundCamera.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Kb=Object.defineProperty;var Xb=(e,t,n)=>t in e?Kb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>Xb(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"),Ct=require("@mui/icons-material"),Ht=require("@mui/system"),Qb=require("@emotion/styled"),Jb=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),ev=Bh(Xo),dt={primary:"#E5FF4A",onPrimary:"#101111",primaryContainer:"#cfe5ff",onPrimaryContainer:"#001d33",secondary:"#526070",onSecondary:"#ffffff",secondaryContainer:"#d5e4f7",onSecondaryContainer:"#0f1d2a",tertiary:"#68587a",onTertiary:"#ffffff",tertiaryContainer:"#eedcff",onTertiaryContainer:"#231533",error:"#ba1a1a",onError:"#ffffff",errorContainer:"#ffdad6",onErrorContainer:"#410002",surface:"#fdfcff",onSurface:"#1a1c1e",surfaceVariant:"#dee3eb",onSurfaceVariant:"#3B3B3C",outline:"#72787e",inverseSurface:"#2f3033",inverseOnSurface:"#f1f0f4",inversePrimary:"#98cbff"},mt={primary:"#E5FF4A",onPrimary:"#101111",primaryContainer:"#004a78",onPrimaryContainer:"#cfe5ff",secondary:"#b9c8da",onSecondary:"#233241",secondaryContainer:"#3a4a58",onSecondaryContainer:"#d5e4f7",tertiary:"#d3bee5",onTertiary:"#382a4a",tertiaryContainer:"#4f4062",onTertiaryContainer:"#eedcff",error:"#ffb4ab",onError:"#690005",errorContainer:"#93000a",onErrorContainer:"#ffdad6",surface:"#252626",onSurface:"#e2e2e6",surfaceVariant:"#42474e",onSurfaceVariant:"#c2c7cf",outline:"#8c9198",inverseSurface:"#e2e2e6",inverseOnSurface:"#2f3033",inversePrimary:"#006399"},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}},Hh={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},zh={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"}}},Wh=ae.createTheme({...zh,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,action:{hover:"#EDEDED",selected:"#E0E0E0"}},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}}}),Uh=ae.createTheme({...zh,palette:{mode:"dark",primary:{main:mt.primary,contrastText:mt.onPrimary},secondary:{main:mt.secondary,contrastText:mt.onSecondary},error:{main:mt.error,contrastText:mt.onError},background:{default:mt.surface,paper:"#1A1C1C"},text:{primary:mt.onSurface,secondary:mt.onSurfaceVariant},divider:mt.outline},visio:{surfaceVariant:mt.surfaceVariant,onSurfaceVariant:mt.onSurfaceVariant,inverseSurface:mt.inverseSurface,inverseOnSurface:mt.inverseOnSurface,inversePrimary:mt.inversePrimary,outline:mt.outline,tertiary:{main:mt.tertiary,contrastText:mt.onTertiary,container:mt.tertiaryContainer,onContainer:mt.onTertiaryContainer}}}),tv=Hh;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
|
*
|
|
@@ -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 vd;function ov(){return vd||(vd=1,process.env.NODE_ENV!=="production"&&function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===N?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case y:return"Fragment";case
|
|
17
|
+
*/var vd;function ov(){return vd||(vd=1,process.env.NODE_ENV!=="production"&&function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===N?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case y:return"Fragment";case S:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case g:return"Portal";case w:return I.displayName||"Context";case C:return(I._context.displayName||"Context")+".Consumer";case T:var Y=I.render;return I=I.displayName,I||(I=Y.displayName||Y.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case _:return Y=I.displayName||null,Y!==null?Y:e(I.type)||"Memo";case D:Y=I._payload,I=I._init;try{return e(I(Y))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var Y=!1}catch{Y=!0}if(Y){Y=console;var q=Y.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return q.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),t(I)}}function o(I){if(I===y)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===D)return"<...>";try{var Y=e(I);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function r(){var I=x.A;return I===null?null:I.getOwner()}function i(){return Error("react-stack-top-frame")}function a(I){if(L.call(I,"key")){var Y=Object.getOwnPropertyDescriptor(I,"key").get;if(Y&&Y.isReactWarning)return!1}return I.key!==void 0}function l(I,Y){function q(){O||(O=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}q.isReactWarning=!0,Object.defineProperty(I,"key",{get:q,configurable:!0})}function c(){var I=e(this.type);return j[I]||(j[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function u(I,Y,q,Z,oe,K){var Q=q.ref;return I={$$typeof:m,type:I,key:Y,props:q,_owner:Z},(Q!==void 0?Q:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:c}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function d(I,Y,q,Z,oe,K){var Q=Y.children;if(Q!==void 0)if(Z)if(R(Q)){for(Z=0;Z<Q.length;Z++)f(Q[Z]);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(I);var se=Object.keys(Y).filter(function($){return $!=="key"});Z=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",H[Q+Z]||(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} />`,Z,Q,se,Q),H[Q+Z]=!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 I=="function"?I.displayName||I.name||"Unknown":I),u(I,Q,q,r(),oe,K)}function f(I){p(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===D&&(I._payload.status==="fulfilled"?p(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function p(I){return typeof I=="object"&&I!==null&&I.$$typeof===m}var h=k,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=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"),V=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,R=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(I){return I()}};var O,j={},B=h.react_stack_bottom_frame.bind(h,i)(),F=A(o(i)),H={};Dr.Fragment=y,Dr.jsx=function(I,Y,q){var Z=1e4>x.recentlyCreatedOwnerStacks++;return d(I,Y,q,!1,Z?Error("react-stack-top-frame"):B,Z?A(o(I)):F)},Dr.jsxs=function(I,Y,q){var Z=1e4>x.recentlyCreatedOwnerStacks++;return d(I,Y,q,!0,Z?Error("react-stack-top-frame"):B,Z?A(o(I)):F)}}()),Dr}process.env.NODE_ENV==="production"?Ol.exports=nv():Ol.exports=ov();var b=Ol.exports;const Yh=k.createContext(null),rv=({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"?Uh:Wh,[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]})})},sv=()=>{const e=k.useContext(Yh);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},iv="_button_1x96v_1",av="_borderRadiusNone_1x96v_8",lv="_borderRadiusSmall_1x96v_12",cv="_borderRadiusMedium_1x96v_16",uv="_borderRadiusLarge_1x96v_20",dv="_borderRadiusRound_1x96v_24",wo={button:iv,borderRadiusNone:av,borderRadiusSmall:lv,borderRadiusMedium:cv,borderRadiusLarge:uv,borderRadiusRound:dv},fv=(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}},pv=e=>{if(typeof e=="number")return`${e}px`},hv=(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,S=fv(c),C=pv(c),w=hv(v,h,m),T=`${wo.button} ${S} ${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:C?{borderRadius:C}:void 0,...g,children:t&&n?n:e})});Ec.displayName="Button";const mv=e=>{if(e)return t=>{e(t)}},gv="_filterButton_1gynw_1",yv={filterButton:gv},qh=k.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=G.useTheme().palette.mode==="dark",l=mv(t);return b.jsx(G.Button,{ref:r,variant:"outlined",onClick:l,className:`${yv.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});qh.displayName="FilterButton";const bv=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},vv="_filterChip_1nmuc_1",xv="_textVariant_1nmuc_52",Cv="_icon_1nmuc_64",wv="_label_1nmuc_80",Sv="_overlay_1nmuc_92",Tv="_deleteIcon_1nmuc_106",$o={filterChip:vv,textVariant:xv,icon:Cv,label:wv,overlay:Sv,deleteIcon:Tv},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=bv(n,r),f=i==="text";return b.jsxs(G.Box,{ref:a,className:`${$o.filterChip} ${f?$o.textVariant:""} ${o||""}`.trim(),"data-theme":u?"dark":"light",onClick:d,role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...l,children:[t&&b.jsx(G.Box,{className:$o.icon,component:"div",children:t}),b.jsx(G.Box,{className:$o.label,component:"span",children:e}),!f&&b.jsx(G.Box,{className:$o.overlay,component:"div",children:b.jsx(Ct.Delete,{className:$o.deleteIcon})})]})};Gh.displayName="FilterChip";const xd=e=>e,Pv=()=>{let e=xd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xd}}},Ev=Pv();function Sn(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.":Sn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Cd(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var kl={exports:{}},Ks={exports:{}},He={};/** @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 Mv(){if(wd)return He;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,S=e?Symbol.for("react.scope"):60119;function C(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 C(T)===u}return He.AsyncMode=c,He.ConcurrentMode=u,He.ContextConsumer=l,He.ContextProvider=a,He.Element=t,He.ForwardRef=d,He.Fragment=o,He.Lazy=m,He.Memo=h,He.Portal=n,He.Profiler=i,He.StrictMode=r,He.Suspense=f,He.isAsyncMode=function(T){return w(T)||C(T)===c},He.isConcurrentMode=w,He.isContextConsumer=function(T){return C(T)===l},He.isContextProvider=function(T){return C(T)===a},He.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},He.isForwardRef=function(T){return C(T)===d},He.isFragment=function(T){return C(T)===o},He.isLazy=function(T){return C(T)===m},He.isMemo=function(T){return C(T)===h},He.isPortal=function(T){return C(T)===n},He.isProfiler=function(T){return C(T)===i},He.isStrictMode=function(T){return C(T)===r},He.isSuspense=function(T){return C(T)===f},He.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===u||T===i||T===r||T===f||T===p||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===l||T.$$typeof===d||T.$$typeof===y||T.$$typeof===v||T.$$typeof===S||T.$$typeof===g)},He.typeOf=C,He}var ze={};/** @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 Sd;function Ov(){return Sd||(Sd=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(z){return typeof z=="string"||typeof z=="function"||z===o||z===u||z===i||z===r||z===f||z===p||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===h||z.$$typeof===a||z.$$typeof===l||z.$$typeof===d||z.$$typeof===y||z.$$typeof===v||z.$$typeof===S||z.$$typeof===g)}function w(z){if(typeof z=="object"&&z!==null){var ee=z.$$typeof;switch(ee){case t:var X=z.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,V=d,N=o,x=m,L=h,R=n,A=i,O=r,j=f,B=!1;function F(z){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.")),H(z)||w(z)===c}function H(z){return w(z)===u}function I(z){return w(z)===l}function Y(z){return w(z)===a}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Z(z){return w(z)===d}function oe(z){return w(z)===o}function K(z){return w(z)===m}function Q(z){return w(z)===h}function se(z){return w(z)===n}function J(z){return w(z)===i}function $(z){return w(z)===r}function W(z){return w(z)===f}ze.AsyncMode=T,ze.ConcurrentMode=E,ze.ContextConsumer=M,ze.ContextProvider=_,ze.Element=D,ze.ForwardRef=V,ze.Fragment=N,ze.Lazy=x,ze.Memo=L,ze.Portal=R,ze.Profiler=A,ze.StrictMode=O,ze.Suspense=j,ze.isAsyncMode=F,ze.isConcurrentMode=H,ze.isContextConsumer=I,ze.isContextProvider=Y,ze.isElement=q,ze.isForwardRef=Z,ze.isFragment=oe,ze.isLazy=K,ze.isMemo=Q,ze.isPortal=se,ze.isProfiler=J,ze.isStrictMode=$,ze.isSuspense=W,ze.isValidElementType=C,ze.typeOf=w}()),ze}var Td;function Zh(){return Td||(Td=1,process.env.NODE_ENV==="production"?Ks.exports=Mv():Ks.exports=Ov()),Ks.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var Fa,Pd;function kv(){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
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
40
|
+
*/var Fa,Pd;function kv(){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 Ha,Md;function Kh(){return Md||(Md=1,Ha=Function.call.bind(Object.prototype.hasOwnProperty)),Ha}var za,Od;function Dv(){if(Od)return za;Od=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Mc(),n={},o=Kh();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var f;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=i[d](a,d,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},za=r,za}var Wa,kd;function Iv(){if(kd)return Wa;kd=1;var e=Zh(),t=kv(),n=Mc(),o=Kh(),r=Dv(),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 Wa=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(H){var I=H&&(u&&H[u]||H[d]);if(typeof I=="function")return I}var p="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:C,element:w(),elementType:T(),instanceOf:E,node:V(),objectOf:_,oneOf:M,oneOfType:D,shape:x,exact:L};function m(H,I){return H===I?H!==0||1/H===1/I:H!==H&&I!==I}function g(H,I){this.message=H,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function y(H){if(process.env.NODE_ENV!=="production")var I={},Y=0;function q(oe,K,Q,se,J,$,W){if(se=se||p,$=$||Q,W!==n){if(c){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=se+":"+Q;!I[ee]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+$+"` 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."),I[ee]=!0,Y++)}}return K[Q]==null?oe?K[Q]===null?new g("The "+J+" `"+$+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new g("The "+J+" `"+$+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:H(K,Q,se,J,$)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function v(H){function I(Y,q,Z,oe,K,Q){var se=Y[q],J=O(se);if(J!==H){var $=j(se);return new g("Invalid "+oe+" `"+K+"` of type "+("`"+$+"` supplied to `"+Z+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return y(I)}function S(){return y(a)}function C(H){function I(Y,q,Z,oe,K){if(typeof H!="function")return new g("Property `"+K+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var Q=Y[q];if(!Array.isArray(Q)){var se=O(Q);return new g("Invalid "+oe+" `"+K+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an array."))}for(var J=0;J<Q.length;J++){var $=H(Q,J,Z,oe,K+"["+J+"]",n);if($ instanceof Error)return $}return null}return y(I)}function w(){function H(I,Y,q,Z,oe){var K=I[Y];if(!l(K)){var Q=O(K);return new g("Invalid "+Z+" `"+oe+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return y(H)}function T(){function H(I,Y,q,Z,oe){var K=I[Y];if(!e.isValidElementType(K)){var Q=O(K);return new g("Invalid "+Z+" `"+oe+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return y(H)}function E(H){function I(Y,q,Z,oe,K){if(!(Y[q]instanceof H)){var Q=H.name||p,se=F(Y[q]);return new g("Invalid "+oe+" `"+K+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(I)}function M(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function I(Y,q,Z,oe,K){for(var Q=Y[q],se=0;se<H.length;se++)if(m(Q,H[se]))return null;var J=JSON.stringify(H,function(W,z){var ee=j(z);return ee==="symbol"?String(z):z});return new g("Invalid "+oe+" `"+K+"` of value `"+String(Q)+"` "+("supplied to `"+Z+"`, expected one of "+J+"."))}return y(I)}function _(H){function I(Y,q,Z,oe,K){if(typeof H!="function")return new g("Property `"+K+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var Q=Y[q],se=O(Q);if(se!=="object")return new g("Invalid "+oe+" `"+K+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an object."));for(var J in Q)if(o(Q,J)){var $=H(Q,J,Z,oe,K+"."+J,n);if($ instanceof Error)return $}return null}return y(I)}function D(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<H.length;I++){var Y=H[I];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(Y)+" at index "+I+"."),a}function q(Z,oe,K,Q,se){for(var J=[],$=0;$<H.length;$++){var W=H[$],z=W(Z,oe,K,Q,se,n);if(z==null)return null;z.data&&o(z.data,"expectedType")&&J.push(z.data.expectedType)}var ee=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new g("Invalid "+Q+" `"+se+"` supplied to "+("`"+K+"`"+ee+"."))}return y(q)}function V(){function H(I,Y,q,Z,oe){return R(I[Y])?null:new g("Invalid "+Z+" `"+oe+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return y(H)}function N(H,I,Y,q,Z){return new g((H||"React class")+": "+I+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function x(H){function I(Y,q,Z,oe,K){var Q=Y[q],se=O(Q);if(se!=="object")return new g("Invalid "+oe+" `"+K+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));for(var J in H){var $=H[J];if(typeof $!="function")return N(Z,oe,K,J,j($));var W=$(Q,J,Z,oe,K+"."+J,n);if(W)return W}return null}return y(I)}function L(H){function I(Y,q,Z,oe,K){var Q=Y[q],se=O(Q);if(se!=="object")return new g("Invalid "+oe+" `"+K+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));var J=t({},Y[q],H);for(var $ in J){var W=H[$];if(o(H,$)&&typeof W!="function")return N(Z,oe,K,$,j(W));if(!W)return new g("Invalid "+oe+" `"+K+"` key `"+$+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var z=W(Q,$,Z,oe,K+"."+$,n);if(z)return z}return null}return y(I)}function R(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(R);if(H===null||l(H))return!0;var I=f(H);if(I){var Y=I.call(H),q;if(I!==H.entries){for(;!(q=Y.next()).done;)if(!R(q.value))return!1}else for(;!(q=Y.next()).done;){var Z=q.value;if(Z&&!R(Z[1]))return!1}}else return!1;return!0;default:return!1}}function A(H,I){return H==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function O(H){var I=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":A(I,H)?"symbol":I}function j(H){if(typeof H>"u"||H===null)return""+H;var I=O(H);if(I==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return I}function B(H){var I=j(H);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function F(H){return!H.constructor||!H.constructor.name?p:H.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},Wa}var Ua,Dd;function Rv(){if(Dd)return Ua;Dd=1;var e=Mc();function t(){}function n(){}return n.resetWarningCache=t,Ua=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},Ua}if(process.env.NODE_ENV!=="production"){var Av=Zh(),Nv=!0;kl.exports=Iv()(Av.isElement,Nv)}else kl.exports=Rv()();var _v=kl.exports;const s=no(_v);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 Se(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
|
*
|
|
@@ -55,14 +55,14 @@ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var H=W(Q,$,K,oe,Z+"."+$
|
|
|
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
57
|
*/var Rd;function Lv(){return Rd||(Rd=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=jv():Dl.exports=Lv();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 Vv(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function $v(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\`.`:
|
|
58
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Sn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function Fv(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)`},Bv={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(Vv(i.keys,l)){const c=$v(o.containerQueries?o:Bv,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 Hv(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 Zi(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=Zi(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=Zi(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 zv(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Wv={m:"margin",p:"padding"},Uv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yv=zv(e=>{if(e.length>2)if(jd[e])e=jd[e];else return[e];const[t,n]=e.split(""),o=Wv[t],r=Uv[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Ki=["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"],qv=[...Ki,...Xi];function Es(e,t,n,o){const r=Zi(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 Oc(e){return Es(e,"spacing",8,"spacing")}function Ms(e,t){return typeof t=="string"||t==null?t:e(t)}function Gv(e,t){return n=>e.reduce((o,r)=>(o[r]=Ms(t,n),o),{})}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:
|
|
65
|
-
The color object needs to have a \`main\` property or a \`${
|
|
61
|
+
`)),()=>{})}function Oc(e){return Es(e,"spacing",8,"spacing")}function Ms(e,t){return typeof t=="string"||t==null?t:e(t)}function Gv(e,t){return n=>e.reduce((o,r)=>(o[r]=Ms(t,n),o),{})}function Zv(e,t,n,o){if(!t.includes(n))return null;const r=Yv(n),i=Gv(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=>Zv(e,t,o,n)).reduce(es,{})}function ft(e){return Jh(e,Ki)}ft.propTypes=process.env.NODE_ENV!=="production"?Ki.reduce((e,t)=>(e[t]=oo,e),{}):{};ft.filterProps=Ki;function pt(e){return Jh(e,Xi)}pt.propTypes=process.env.NODE_ENV!=="production"?Xi.reduce((e,t)=>(e[t]=oo,e),{}):{};pt.filterProps=Xi;process.env.NODE_ENV!=="production"&&qv.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 Kv=rn("border",Xt),Xv=rn("borderTop",Xt),Qv=rn("borderRight",Xt),Jv=rn("borderBottom",Xt),e0=rn("borderLeft",Xt),t0=rn("borderColor"),n0=rn("borderTopColor"),o0=rn("borderRightColor"),r0=rn("borderBottomColor"),s0=rn("borderLeftColor"),i0=rn("outline",Xt),a0=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(Kv,Xv,Qv,Jv,e0,t0,n0,o0,r0,s0,Ji,i0,a0);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 l0=gt({prop:"gridColumn"}),c0=gt({prop:"gridRow"}),u0=gt({prop:"gridAutoFlow"}),d0=gt({prop:"gridAutoColumns"}),f0=gt({prop:"gridAutoRows"}),p0=gt({prop:"gridTemplateColumns"}),h0=gt({prop:"gridTemplateRows"}),m0=gt({prop:"gridTemplateAreas"}),g0=gt({prop:"gridArea"});Qi(ea,ta,na,l0,c0,u0,d0,f0,p0,h0,m0,g0);function rr(e,t){return t==="grey"?t:e}const y0=gt({prop:"color",themeKey:"palette",transform:rr}),b0=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rr}),v0=gt({prop:"backgroundColor",themeKey:"palette",transform:rr});Qi(y0,b0,v0);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const x0=gt({prop:"width",transform:Ut}),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:Ut(n)}};return Nn(e,e.maxWidth,t)}return null};kc.filterProps=["maxWidth"];const C0=gt({prop:"minWidth",transform:Ut}),w0=gt({prop:"height",transform:Ut}),S0=gt({prop:"maxHeight",transform:Ut}),T0=gt({prop:"minHeight",transform:Ut});gt({prop:"size",cssProperty:"width",transform:Ut});gt({prop:"size",cssProperty:"height",transform:Ut});const P0=gt({prop:"boxSizing"});Qi(x0,kc,C0,w0,S0,T0,P0);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:pt},pt:{style:pt},pr:{style:pt},pb:{style:pt},pl:{style:pt},px:{style:pt},py:{style:pt},padding:{style:pt},paddingTop:{style:pt},paddingRight:{style:pt},paddingBottom:{style:pt},paddingLeft:{style:pt},paddingX:{style:pt},paddingY:{style:pt},paddingInline:{style:pt},paddingInlineStart:{style:pt},paddingInlineEnd:{style:pt},paddingBlock:{style:pt},paddingBlockStart:{style:pt},paddingBlockEnd:{style:pt},m:{style:ft},mt:{style:ft},mr:{style:ft},mb:{style:ft},ml:{style:ft},mx:{style:ft},my:{style:ft},margin:{style:ft},marginTop:{style:ft},marginRight:{style:ft},marginBottom:{style:ft},marginLeft:{style:ft},marginX:{style:ft},marginY:{style:ft},marginInline:{style:ft},marginInlineStart:{style:ft},marginInlineEnd:{style:ft},marginBlock:{style:ft},marginBlockStart:{style:ft},marginBlockEnd:{style:ft},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:Ut},maxWidth:{style:kc},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},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 E0(...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 M0(e,t){return typeof e=="function"?e(t):e}function O0(){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=Zi(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=Hv(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=M0(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}));E0(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=O0();cr.filterProps=["sx"];const k0=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 D0(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=k0(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 I0(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}].`),I0(e,t,n)}function R0(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(R0(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().`:Sn(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.`:Sn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const A0=e=>{const t=Xn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Wr=(e,t)=>{try{return A0(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 Il(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=Il(e),o=Il(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 We(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 Ue(e,t,n){try{return sa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function N0(e,t=.15){return Il(e)>.5?ra(e,t):sa(e,t)}function Xs(e,t,n){try{return N0(e,t)}catch{return e}}const ds={black:"#000",white:"#fff"},_0={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"},Ir={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ho={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},zo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Wo={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 Rl=om();function Vd(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 $d(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 j0(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}function L0(e="light"){return e==="dark"?{main:Fo[200],light:Fo[50],dark:Fo[400]}:{main:Fo[500],light:Fo[300],dark:Fo[700]}}function V0(e="light"){return e==="dark"?{main:Bo[500],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}function $0(e="light"){return e==="dark"?{main:zo[400],light:zo[300],dark:zo[700]}:{main:zo[700],light:zo[500],dark:zo[900]}}function F0(e="light"){return e==="dark"?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[800],light:Wo[500],dark:Wo[900]}}function B0(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:"#ed6c02",light:Ir[500],dark:Ir[900]}}function H0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ic(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||j0(t),l=e.secondary||L0(t),c=e.error||V0(t),u=e.info||$0(t),d=e.success||F0(t),f=e.warning||B0(t);function p(y){if(r)return H0(y);const v=Ld(y,Rl.text.primary)>=n?Rl.text.primary:nm.text.primary;if(process.env.NODE_ENV!=="production"){const S=Ld(y,v);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${v} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
64
|
+
`))}return v}const h=({color:y,name:v,mainShade:S=500,lightShade:C=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
65
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Sn(11,v?` (${v})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
66
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
|
+
} });`:Sn(12,v?` (${v})`:"",JSON.stringify(y.main)));return r?($d(r,y,"light",C,o),$d(r,y,"dark",w,o)):(Vd(y,"light",C,o),Vd(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:_0,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function z0(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 W0={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 U0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Y0=/[A-Z]|^ms/g,q0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rm=function(t){return t.charCodeAt(1)===45},Fd=function(t){return t!=null&&typeof t!="boolean"},Ya=U0(function(e){return rm(e)?e:e.replace(Y0,"-$&").toLowerCase()}),Bd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q0,function(o,r,i){return qn={name:r,styles:i,next:qn},r})}return W0[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 G0(e,t,n)}}var c=n;return c}function G0(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 Hd=/label:\s*([^\s;{]+)\s*(;|$)/g,qn;function Z0(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]}Hd.lastIndex=0;for(var u="",d;(d=Hd.exec(r))!==null;)u+="-"+d[1];var f=z0(r)+u;return{name:f,styles:r,next:qn}}/**
|
|
79
79
|
* @mui/styled-engine v7.3.7
|
|
80
80
|
*
|
|
81
81
|
* @license MIT
|
|
82
82
|
* This source code is licensed under the MIT license found in the
|
|
83
83
|
* LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/function
|
|
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 X0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Hd=[];function Io(e){return Hd[0]=e,K0(Hd)}const Q0="exact-prop: ";function sm(e){return process.env.NODE_ENV==="production"?e:{...e,[Q0]: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 J0(e){return Object.keys(e).length===0}function ex(e=null){const t=P.useContext(Jb.ThemeContext);return!t||J0(t)?e:t}const tx=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const dn=()=>P.useContext(tx)??!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 nx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function ox(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 rx({props:e,name:t}){const n=P.useContext(nx);return ox({props:e,name:t,theme:{components:n}})}let Wd=0;function sx(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Wd+=1,n(`mui-${Wd}`))},[t]),o}const ix={...P},Ud=ix.useId;function ro(e){if(Ud!==void 0){const t=Ud();return e??t}return sx(e)}const ax=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 lx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=ax(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 cx={borderRadius:4};function ux(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 dx(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=lx(n),c=ux(r);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...cx,...i}},a);return u=Fv(u),u.applyStyles=dx,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])})},fx=(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)},px=(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 fx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=px(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 hx(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:_}=qa(T,t);h=At(h,_),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,_;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: ${((_=(M=a[S])==null?void 0:M.palette)==null?void 0:_.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 D,V;const S=[],T=e.defaultColorScheme||"light";function E(N,x){Object.keys(x).length&&S.push(typeof N=="string"?{[N]:{...x}}:N)}E(n(void 0,{...f}),f);const{[T]:M,..._}=m;if(M){const{css:N}=M,x=(V=(D=a[T])==null?void 0:D.palette)==null?void 0:V.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,R=!o&&L?{colorScheme:L,...x}:{...x};E(n(N,{...R}),R)}),i&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function mx(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 gx(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 yx={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=yx[t];return o?`${n}-${o}`:`${Ev.generate(e)}-${t}`}function bx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vx(e){return Math.round(e*1e5)/1e5}const qd={textTransform:"uppercase"},Gd='"Roboto", "Helvetica", "Arial", sans-serif';function xx(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,w,C,S)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:w,...n===Gd?{letterSpacing:`${vx(C/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,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 Cx=.2,Sx=.14,wx=.12;function nt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wx})`].join(",")}const Tx=["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)],Px={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)"},Ex={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kd(e){return`${Math.round(e)}ms`}function Mx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ox(e){const t={...Px,...e.easing},n={...Ex,...e.duration};return{getAutoHeightDuration:Mx,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
86
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:
|
|
84
|
+
*/function K0(e,t){const n=Qb(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 X0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const zd=[];function Io(e){return zd[0]=e,Z0(zd)}const Q0="exact-prop: ";function sm(e){return process.env.NODE_ENV==="production"?e:{...e,[Q0]: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 J0(e){return Object.keys(e).length===0}function ex(e=null){const t=P.useContext(Jb.ThemeContext);return!t||J0(t)?e:t}const tx=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const dn=()=>P.useContext(tx)??!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 nx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function ox(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 rx({props:e,name:t}){const n=P.useContext(nx);return ox({props:e,name:t,theme:{components:n}})}let Wd=0;function sx(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Wd+=1,n(`mui-${Wd}`))},[t]),o}const ix={...P},Ud=ix.useId;function ro(e){if(Ud!==void 0){const t=Ud();return e??t}return sx(e)}const ax=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 lx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=ax(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 cx={borderRadius:4};function ux(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 dx(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=lx(n),c=ux(r);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...cx,...i}},a);return u=Fv(u),u.applyStyles=dx,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])})},fx=(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)},px=(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 fx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=px(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 hx(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,V;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=(V=(D=a[T])==null?void 0:D.palette)==null?void 0:V.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,R=!o&&L?{colorScheme:L,...x}:{...x};E(n(N,{...R}),R)}),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 mx(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 gx(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 yx={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=yx[t];return o?`${n}-${o}`:`${Ev.generate(e)}-${t}`}function bx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vx(e){return Math.round(e*1e5)/1e5}const qd={textTransform:"uppercase"},Gd='"Roboto", "Helvetica", "Arial", sans-serif';function xx(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,S,C,w)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:S,...n===Gd?{letterSpacing:`${vx(C/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 Cx=.2,wx=.14,Sx=.12;function nt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Sx})`].join(",")}const Tx=["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)],Px={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)"},Ex={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zd(e){return`${Math.round(e)}ms`}function Mx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ox(e){const t={...Px,...e.easing},n={...Ex,...e.duration};return{getAutoHeightDuration:Mx,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:Zd(a)} ${l} ${typeof c=="string"?c:Zd(c)}`).join(",")},...e,easing:t,duration:n}}const kx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Dx(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];!Dx(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[
|
|
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 $x(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{}},Fx=(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]=Nx({...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 Bx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=_x,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=Fx(i),{[p]:m,light:g,dark:y,...v}=n,w={...v};let C=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:wn(21,p));let S;a&&(S="oklch");const T=Ga(S,w,C,d,p);g&&!w.light&&Ga(S,w,g,void 0,"light"),y&&!w.dark&&Ga(S,w,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:w,font:{...mx(T.typography),...T.font},spacing:$x(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 R(A,O,j){if(S){let B;return A===uo&&(B=`transparent ${((1-j)*100).toFixed(0)}%`),A===We&&(B=`#000 ${(j*100).toFixed(0)}%`),A===Ue&&(B=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${S}, ${O}, ${B})`}return A(O,j)}if(Vx(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",R(We,x.error.light,.6)),ne(x.Alert,"infoColor",R(We,x.info.light,.6)),ne(x.Alert,"successColor",R(We,x.success.light,.6)),ne(x.Alert,"warningColor",R(We,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",R(Ue,x.error.light,.9)),ne(x.Alert,"infoStandardBg",R(Ue,x.info.light,.9)),ne(x.Alert,"successStandardBg",R(Ue,x.success.light,.9)),ne(x.Alert,"warningStandardBg",R(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-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",R(Ue,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",R(Ue,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",R(Ue,x.error.main,.62)),ne(x.LinearProgress,"infoBg",R(Ue,x.info.main,.62)),ne(x.LinearProgress,"successBg",R(Ue,x.success.main,.62)),ne(x.LinearProgress,"warningBg",R(Ue,x.warning.main,.62)),ne(x.Skeleton,"bg",S?R(uo,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",R(Ue,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",R(Ue,x.secondary.main,.62)),ne(x.Slider,"errorTrack",R(Ue,x.error.main,.62)),ne(x.Slider,"infoTrack",R(Ue,x.info.main,.62)),ne(x.Slider,"successTrack",R(Ue,x.success.main,.62)),ne(x.Slider,"warningTrack",R(Ue,x.warning.main,.62));const A=S?R(We,x.background.default,.6825):Xs(x.background.default,.8);ne(x.SnackbarContent,"bg",A),ne(x.SnackbarContent,"color",mn(()=>S?Rl.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",R(Ue,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",R(Ue,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",R(Ue,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",R(Ue,x.info.main,.62)),ne(x.Switch,"successDisabledColor",R(Ue,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",R(Ue,x.warning.main,.62)),ne(x.TableCell,"border",R(Ue,R(uo,x.divider,1),.88)),ne(x.Tooltip,"bg",R(uo,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",R(Ue,x.error.light,.6)),ne(x.Alert,"infoColor",R(Ue,x.info.light,.6)),ne(x.Alert,"successColor",R(Ue,x.success.light,.6)),ne(x.Alert,"warningColor",R(Ue,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",R(We,x.error.light,.9)),ne(x.Alert,"infoStandardBg",R(We,x.info.light,.9)),ne(x.Alert,"successStandardBg",R(We,x.success.light,.9)),ne(x.Alert,"warningStandardBg",R(We,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-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",R(We,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",R(We,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",R(We,x.error.main,.5)),ne(x.LinearProgress,"infoBg",R(We,x.info.main,.5)),ne(x.LinearProgress,"successBg",R(We,x.success.main,.5)),ne(x.LinearProgress,"warningBg",R(We,x.warning.main,.5)),ne(x.Skeleton,"bg",S?R(uo,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",R(We,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",R(We,x.secondary.main,.5)),ne(x.Slider,"errorTrack",R(We,x.error.main,.5)),ne(x.Slider,"infoTrack",R(We,x.info.main,.5)),ne(x.Slider,"successTrack",R(We,x.success.main,.5)),ne(x.Slider,"warningTrack",R(We,x.warning.main,.5));const A=S?R(Ue,x.background.default,.985):Xs(x.background.default,.98);ne(x.SnackbarContent,"bg",A),ne(x.SnackbarContent,"color",mn(()=>S?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",R(We,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",R(We,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",R(We,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",R(We,x.info.main,.55)),ne(x.Switch,"successDisabledColor",R(We,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",R(We,x.warning.main,.55)),ne(x.TableCell,"border",R(We,R(uo,x.divider,1),.68)),ne(x.Tooltip,"bg",R(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",Wr(Ur(O.main))),O.light&&ne(x[A],"lightChannel",Wr(Ur(O.light))),O.dark&&ne(x[A],"darkChannel",Wr(Ur(O.dark))),O.contrastText&&ne(x[A],"contrastTextChannel",Wr(Ur(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:Lx(E),enableContrastVars:a},{vars:_,generateThemeVars:D,generateStyleSheets:V}=hx(E,M);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([N,x])=>{E[N]=x}),E.generateThemeVars=D,E.generateStyleSheets=V,E.generateSpacing=function(){return zt.createSpacing(d.spacing,Oc(this))},E.getColorSchemeSelector=gx(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:Ic({...n===!0?{}:n.palette,mode:t})})}function zx(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),Bx({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Rc=zx(),ia="$$material";function aa(){const e=zt.useTheme(Rc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ia]||e}function um(e){return b.jsx(zt.GlobalStyles,{...e,defaultTheme:Rc,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 Hx(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 Wx(e){const{variants:t,...n}=e,o={variants:t,style:Io(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Io(r.style))}),o}const Ux=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 Yx(e){return e?(t,n)=>n[e]:null}function qx(e,t,n){e.theme=Xx(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(Io(a),n):a}return fm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Mo(Io(o.style),n):o.style:n?Mo(Io(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(Io(l.style(r)),o):l.style(r))):n.push(o?Mo(Io(l.style),o):l.style)}return n}function Gx(e={}){const{themeId:t,defaultTheme:n=Ux,rootShouldForwardProp:o=Kn,slotShouldForwardProp:r=Kn}=e;function i(l){qx(l,t,n)}return(l,c={})=>{X0(l,E=>E.filter(M=>M!==cr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Yx(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 w=Kn;d==="Root"||d==="root"?w=o:d?w=r:Qx(l)&&(w=void 0);const C=Z0(l,{shouldForwardProp:w,label:Zx(u,d),...m}),S=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=Wx(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(S),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 R=L.theme,A=(j=(O=R==null?void 0:R.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(""),R=new Array(D.length).fill("");let A;A=[...L,...x,...R],A.raw=[...L,...x.raw,...R],M.unshift(A)}const V=[...M,..._,...D],N=C(...V);return l.muiName&&(N.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=Kx(u,d,l)),N};return C.withConfig&&(T.withConfig=C.withConfig),T}}function Kx(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${Hx(n)})`}function Zx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${pm(t||"Root")}`),n}function Xx(e){for(const t in e)return!1;return!0}function Qx(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=Gx({themeId:ia,defaultTheme:Rc,rootShouldForwardProp:fn});function Jx(e){return function(n){return b.jsx(um,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function eC(){return D0}const Ke=zt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return rx(e)}function Te(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Pe(e,r,n)}),o}function tC(e){return Pe("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nC=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,tC,o)},oC=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=nC(g);return b.jsxs(oC,{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 bt(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 rC(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(`
|
|
93
|
+
export default theme;`}function Kd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ix=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 Rx(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,Ix(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Kd(n)})`:sa(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Kd(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.":Sn(20));const f=Ic({...i,colorSpace:u}),p=im(e);let h=At(p,{mixins:bx(p.breakpoints,o),palette:f,shadows:Tx.slice(),typography:xx(f,l),transitions:Ox(a),zIndex:{...kx}});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 S;for(S in y){const C=y[S];if(m.includes(S)&&Object.keys(C).length>0){if(process.env.NODE_ENV!=="production"){const w=Pe("",S);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:C}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
94
|
+
`))}y[S]={}}}};Object.keys(h.components).forEach(y=>{const v=h.components[y].styleOverrides;v&&y.startsWith("Mui")&&g(v,y)})}return h.unstable_sxConfig={...Os,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return cr({sx:g,theme:this})},h.toRuntimeSource=am,Rx(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 Ax=[...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"?Ax:[]}function Nx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Ic({...t,colorSpace:r});return{palette:a,opacity:{...lm(a.mode),...n},overlays:o||cm(a.mode),...i}}function _x(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 jx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Lx=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 jx(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 Vx(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Ur(e){return typeof e!="string"||!e.startsWith("hsl")?e:em(e)}function On(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wr(Ur(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 $x(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{}},Fx=(e="mui")=>Ht.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]=Nx({...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 Bx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=_x,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=Fx(i),{[p]:m,light:g,dark:y,...v}=n,S={...v};let C=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Sn(21,p));let w;a&&(w="oklch");const T=Ga(w,S,C,d,p);g&&!S.light&&Ga(w,S,g,void 0,"light"),y&&!S.dark&&Ga(w,S,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:S,font:{...mx(T.typography),...T.font},spacing:$x(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 R(A,O,j){if(w){let B;return A===uo&&(B=`transparent ${((1-j)*100).toFixed(0)}%`),A===We&&(B=`#000 ${(j*100).toFixed(0)}%`),A===Ue&&(B=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${w}, ${O}, ${B})`}return A(O,j)}if(Vx(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",R(We,x.error.light,.6)),ne(x.Alert,"infoColor",R(We,x.info.light,.6)),ne(x.Alert,"successColor",R(We,x.success.light,.6)),ne(x.Alert,"warningColor",R(We,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",R(Ue,x.error.light,.9)),ne(x.Alert,"infoStandardBg",R(Ue,x.info.light,.9)),ne(x.Alert,"successStandardBg",R(Ue,x.success.light,.9)),ne(x.Alert,"warningStandardBg",R(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-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",R(Ue,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",R(Ue,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",R(Ue,x.error.main,.62)),ne(x.LinearProgress,"infoBg",R(Ue,x.info.main,.62)),ne(x.LinearProgress,"successBg",R(Ue,x.success.main,.62)),ne(x.LinearProgress,"warningBg",R(Ue,x.warning.main,.62)),ne(x.Skeleton,"bg",w?R(uo,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",R(Ue,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",R(Ue,x.secondary.main,.62)),ne(x.Slider,"errorTrack",R(Ue,x.error.main,.62)),ne(x.Slider,"infoTrack",R(Ue,x.info.main,.62)),ne(x.Slider,"successTrack",R(Ue,x.success.main,.62)),ne(x.Slider,"warningTrack",R(Ue,x.warning.main,.62));const A=w?R(We,x.background.default,.6825):Xs(x.background.default,.8);ne(x.SnackbarContent,"bg",A),ne(x.SnackbarContent,"color",mn(()=>w?Rl.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",R(Ue,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",R(Ue,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",R(Ue,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",R(Ue,x.info.main,.62)),ne(x.Switch,"successDisabledColor",R(Ue,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",R(Ue,x.warning.main,.62)),ne(x.TableCell,"border",R(Ue,R(uo,x.divider,1),.88)),ne(x.Tooltip,"bg",R(uo,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",R(Ue,x.error.light,.6)),ne(x.Alert,"infoColor",R(Ue,x.info.light,.6)),ne(x.Alert,"successColor",R(Ue,x.success.light,.6)),ne(x.Alert,"warningColor",R(Ue,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",R(We,x.error.light,.9)),ne(x.Alert,"infoStandardBg",R(We,x.info.light,.9)),ne(x.Alert,"successStandardBg",R(We,x.success.light,.9)),ne(x.Alert,"warningStandardBg",R(We,x.warning.light,.9)),ne(x.Alert,"errorIconColor",L("palette-error-main")),ne(x.Alert,"infoIconColor",L("palette-info-main")),ne(x.Alert,"successIconColor",L("palette-success-main")),ne(x.Alert,"warningIconColor",L("palette-warning-main")),ne(x.AppBar,"defaultBg",L("palette-grey-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",R(We,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",R(We,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",R(We,x.error.main,.5)),ne(x.LinearProgress,"infoBg",R(We,x.info.main,.5)),ne(x.LinearProgress,"successBg",R(We,x.success.main,.5)),ne(x.LinearProgress,"warningBg",R(We,x.warning.main,.5)),ne(x.Skeleton,"bg",w?R(uo,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",R(We,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",R(We,x.secondary.main,.5)),ne(x.Slider,"errorTrack",R(We,x.error.main,.5)),ne(x.Slider,"infoTrack",R(We,x.info.main,.5)),ne(x.Slider,"successTrack",R(We,x.success.main,.5)),ne(x.Slider,"warningTrack",R(We,x.warning.main,.5));const A=w?R(Ue,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",R(We,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",R(We,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",R(We,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",R(We,x.info.main,.55)),ne(x.Switch,"successDisabledColor",R(We,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",R(We,x.warning.main,.55)),ne(x.TableCell,"border",R(We,R(uo,x.divider,1),.68)),ne(x.Tooltip,"bg",R(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",Wr(Ur(O.main))),O.light&&ne(x[A],"lightChannel",Wr(Ur(O.light))),O.dark&&ne(x[A],"darkChannel",Wr(Ur(O.dark))),O.contrastText&&ne(x[A],"contrastTextChannel",Wr(Ur(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:Lx(E),enableContrastVars:a},{vars:_,generateThemeVars:D,generateStyleSheets:V}=hx(E,M);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([N,x])=>{E[N]=x}),E.generateThemeVars=D,E.generateStyleSheets=V,E.generateSpacing=function(){return Ht.createSpacing(d.spacing,Oc(this))},E.getColorSchemeSelector=gx(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:Ic({...n===!0?{}:n.palette,mode:t})})}function Hx(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),Bx({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Rc=Hx(),ia="$$material";function aa(){const e=Ht.useTheme(Rc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ia]||e}function um(e){return b.jsx(Ht.GlobalStyles,{...e,defaultTheme:Rc,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 zx(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 Wx(e){const{variants:t,...n}=e,o={variants:t,style:Io(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Io(r.style))}),o}const Ux=im();function Zn(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 Yx(e){return e?(t,n)=>n[e]:null}function qx(e,t,n){e.theme=Xx(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(Io(a),n):a}return fm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Mo(Io(o.style),n):o.style:n?Mo(Io(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(Io(l.style(r)),o):l.style(r))):n.push(o?Mo(Io(l.style),o):l.style)}return n}function Gx(e={}){const{themeId:t,defaultTheme:n=Ux,rootShouldForwardProp:o=Zn,slotShouldForwardProp:r=Zn}=e;function i(l){qx(l,t,n)}return(l,c={})=>{X0(l,E=>E.filter(M=>M!==cr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Yx(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 S=Zn;d==="Root"||d==="root"?S=o:d?S=r:Qx(l)&&(S=void 0);const C=K0(l,{shouldForwardProp:S,label:Kx(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=Wx(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 R=L.theme,A=(j=(O=R==null?void 0:R.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(""),R=new Array(D.length).fill("");let A;A=[...L,...x,...R],A.raw=[...L,...x.raw,...R],M.unshift(A)}const V=[...M,..._,...D],N=C(...V);return l.muiName&&(N.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=Zx(u,d,l)),N};return C.withConfig&&(T.withConfig=C.withConfig),T}}function Zx(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${zx(n)})`}function Kx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${pm(t||"Root")}`),n}function Xx(e){for(const t in e)return!1;return!0}function Qx(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=Gx({themeId:ia,defaultTheme:Rc,rootShouldForwardProp:fn});function Jx(e){return function(n){return b.jsx(um,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function eC(){return D0}const Ze=Ht.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return rx(e)}function Te(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Pe(e,r,n)}),o}function tC(e){return Pe("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nC=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return Se(r,tC,o)},oC=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)}`]]}})(Ze(({theme:e})=>{var t,n,o,r,i,a,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var y,v;return{props:{color:g},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),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=nC(g);return b.jsxs(oC,{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 rC(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 Pt(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function Ve(...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 sC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function iC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{sC(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 aC=bt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lC=bt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),cC=bt(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"),uC=(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)},dC=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},fC=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},pC=(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)},hC="_modal_1ktm2_1",mC="_content_1ktm2_67",gC="_contentWrapper_1ktm2_74",yC="_closeButton_1ktm2_81",bC="_header_1ktm2_93",vC="_title_1ktm2_100",xC="_description_1ktm2_109",CC="_filtersContent_1ktm2_118",SC="_filterGroup_1ktm2_128",wC="_expandableHeader_1ktm2_135",TC="_expandableLabel_1ktm2_145",PC="_chevronIcon_1ktm2_153",EC="_chevron_1ktm2_153",MC="_filterItems_1ktm2_166",OC="_filterItem_1ktm2_166",kC="_filterItemSize1_1ktm2_178",DC="_filterItemSize2_1ktm2_182",IC="_filterItemSize3_1ktm2_186",RC="_filterItemSize4_1ktm2_190",AC="_filterItemSize5_1ktm2_194",NC="_filterItemSize6_1ktm2_198",_C="_filterInput_1ktm2_202",jC="_inputLabel_1ktm2_206",LC="_select_1ktm2_210",VC="_placeholder_1ktm2_227",$C="_helperText_1ktm2_231",FC="_footer_1ktm2_238",BC="_clearButton_1ktm2_245",zC="_applyButton_1ktm2_267",Ge={modal:hC,content:mC,contentWrapper:gC,closeButton:yC,header:bC,title:vC,description:xC,filtersContent:CC,filterGroup:SC,expandableHeader:wC,expandableLabel:TC,chevronIcon:PC,chevron:EC,filterItems:MC,filterItem:OC,filterItemSize1:kC,filterItemSize2:DC,filterItemSize3:IC,filterItemSize4:RC,filterItemSize5:AC,filterItemSize6:NC,filterInput:_C,inputLabel:jC,select:LC,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:VC,helperText:$C,footer:FC,clearButton:BC,applyButton:zC},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,w]=k.useState(a??[]),C=!!r;k.useEffect(()=>{w(a??[])},[a]);const S=uC(v,l),T=dC(v,c,w),E=(M,_)=>{var x;const D=pC(_,M.id,v,w),V=M.size||6,N=Ge[`filterItemSize${V}`];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 R;L?M.value!==void 0&&M.value!==null?R=Array.isArray(M.value)?M.value:[M.value]:R=[]:R=M.value!==void 0&&M.value!==null?M.value:"";const A=L?Array.isArray(R)&&R.length>0:R!==""&&R!==null&&R!==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:R,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(I=>{var Y,q;return((q=(Y=M.options)==null?void 0:Y.find(K=>K.value===I))==null?void 0:q.label)||I}).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(cC,{})}),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:C?r:v.map(M=>{const _=fC(M.id,v,w),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(lC,{className:Ge.chevron}):b.jsx(aC,{className:Ge.chevron})})]}),D&&b.jsx(G.Box,{className:Ge.filterItems,children:M.items.map(V=>E(V,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:S,className:Ge.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};gm.displayName="FilterModal";const HC="_container_sfavn_1",WC="_card_sfavn_7",UC="_icon_sfavn_19",YC="_text_sfavn_33",Qs={container:HC,card:WC,icon:UC,text:YC},qC=({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 Cm=e=>/^0[^.\s]+$/u.test(e);function Lc(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jt=e=>e,GC=(e,t)=>n=>t(e(n)),ks=(...e)=>e.reduce(GC),ps=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Vc{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 Sm(e,t){return t?e*(1e3/t):0}const ef=new Set;function $c(e,t,n){e||ef.has(t)||(console.warn(_l(t,n)),ef.add(t))}const wm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KC=1e-7,ZC=12;function XC(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=wm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>KC&&++l<ZC);return a}function Ds(e,t,n,o){if(e===t&&n===o)return Jt;const r=i=>XC(i,0,1,e,n);return i=>i===0||i===1?i:wm(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),QC=Ds(.42,0,1,1),JC=Ds(0,0,.58,1),Im=Ds(.42,0,.58,1),e2=e=>Array.isArray(e)&&typeof e[0]!="number",Rm=e=>Array.isArray(e)&&typeof e[0]=="number",tf={linear:Jt,easeIn:QC,easeInOut:Im,easeOut:JC,circIn:Bc,circInOut:Dm,circOut:km,backIn:Fc,backInOut:Mm,backOut:Em,anticipate:Om},t2=e=>typeof e=="string",nf=e=>{if(Rm(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(t2(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 n2(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 o2=40;function Am(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Js.reduce((C,S)=>(C[S]=n2(i),C),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const C=Ln.useManualTiming?r.timestamp:performance.now();n=!1,Ln.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(C-r.timestamp,o2),1)),r.timestamp=C,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((C,S)=>{const T=a[S];return C[S]=(E,M=!1,_=!1)=>(n||y(),T.schedule(E,M,_)),C},{}),cancel:C=>{for(let S=0;S<Js.length;S++)a[Js[S]].cancel(C)},state:r,steps:a}}const{schedule:et,cancel:Jn,state:Ot,steps:Ka}=Am(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jt,!0);let yi;function r2(){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(r2)}},Nm=e=>t=>typeof t=="string"&&t.startsWith(e),_m=Nm("--"),s2=Nm("var(--"),zc=e=>s2(e)?i2.test(e.split("/*")[0].trim()):!1,i2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Cr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hs={...Cr,transform:e=>Tn(0,1,e)},ei={...Cr,default:1},ns=e=>Math.round(e*1e5)/1e5,Hc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function a2(e){return e==null}const l2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wc=(e,t)=>n=>!!(typeof n=="string"&&l2.test(n)&&n.startsWith(e)||t&&!a2(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(Hc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},c2=e=>Tn(0,255,e),Za={...Cr,transform:e=>Math.round(c2(e))},Oo={test:Wc("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 u2(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:Wc("#"),parse:u2,transform:Oo.transform},Is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zn=Is("deg"),Cn=Is("%"),ve=Is("px"),d2=Is("vh"),f2=Is("vw"),rf={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(e*100)},Qo={test:Wc("hsl","hue"),parse:jm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Cn.transform(ns(t))+", "+Cn.transform(ns(n))+", "+ns(hs.transform(o))+")"},Ct={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=Ct.parse(e);return t.alpha=0,Ct.transform(t)}},p2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function h2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Hc))==null?void 0:t.length)||0)+(((n=e.match(p2))==null?void 0:n.length)||0)>0}const Lm="number",Vm="color",m2="var",g2="var(",sf="${}",y2=/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(y2,c=>(Ct.test(c)?(o.color.push(i),r.push(Vm),n.push(Ct.parse(c))):c.startsWith(g2)?(o.var.push(i),r.push(m2),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 $m(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===Vm?i+=Ct.transform(r[a]):i+=r[a]}return i}}const b2=e=>typeof e=="number"?0:Ct.test(e)?Ct.getAnimatableNone(e):e;function v2(e){const t=$m(e);return Fm(e)(t.map(b2))}const eo={test:h2,parse:$m,createTransformer:Fm,getAnimatableNone:v2};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 x2({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)},C2=[jl,Oo,Qo],S2=e=>C2.find(t=>t.test(e));function af(e){const t=S2(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=x2(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 w2(e,t){return Ll.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function T2(e,t){return n=>lt(e,t,n)}function Uc(e){return typeof e=="number"?T2:typeof e=="string"?zc(e)?Oi:Ct.test(e)?lf:M2:Array.isArray(e)?Bm:typeof e=="object"?Ct.test(e)?lf:P2:Oi}function Bm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Uc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function P2(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Uc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function E2(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 M2=(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?w2(e,t):ks(Bm(E2(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):Uc(e)(e,t)}const O2=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()}},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)})`},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 k2(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 D2=5;function Wm(e,t,n){const o=Math.max(t-D2,0);return Sm(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 I2({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=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=A2(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 R2=12;function A2(e,t,n){let o=n;for(let r=1;r<R2;r++)o=o-e(o)/t(o);return o}function Vl(e,t){return e*Math.sqrt(1-t*t)}const N2=["duration","bounce"],_2=["stiffness","damping","mass"];function cf(e,t){return t.some(n=>e[n]!==void 0)}function j2(e){let t={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...e};if(!cf(e,_2)&&cf(e,N2))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=I2(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}=j2({...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)),w=Math.abs(y)<5;o||(o=w?at.restSpeed.granular:at.restSpeed.default),r||(r=w?at.restDelta.granular:at.restDelta.default);let C;if(g<1){const T=Vl(v,g);C=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)C=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);C=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 S={calculatedDuration:h&&f||null,next:T=>{const E=C(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?xn(m):Wm(C,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(S),ki),E=Hm(M=>S.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return S}Di.applyToOptions=e=>{const t=k2(e,100,Di);return e.ease=t.ease,e.duration=xn(t.duration),e.type="keyframes",e};function $l({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 w=_=>-g*Math.exp(-_/o),C=_=>v+w(_),S=_=>{const D=w(_),V=C(_);p.done=Math.abs(D)<=u,p.value=p.done?v:V};let T,E;const M=_=>{h(p.value)&&(T=_,E=Di({keyframes:[p.value,m(p.value)],velocity:Wm(C,_,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,S(_),M(_)),T!==void 0&&_>=T?E.next(_-T):(!D&&S(_),p)}}}function L2(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 V2(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=L2(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 $2(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 F2(e){const t=[0];return $2(t,e.length-1),t}function B2(e,t){return e.map(n=>n*t)}function z2(e,t){return e.map(()=>t||Im).splice(0,e.length-1)}function Jo({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=e2(o)?o.map(nf):nf(o),i={done:!1,value:t[0]},a=B2(n&&n.length===t.length?n:F2(t),e),l=V2(a,t,{ease:Array.isArray(r)?r:z2(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const H2=e=>e!==null;function qc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(H2),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const W2={decay:$l,inertia:$l,tween:Jo,keyframes:Jo,spring:Di};function Um(e){typeof e.type=="string"&&(e.type=W2[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 U2=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;Um(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(U2,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),w=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let C=this.currentTime,S=o;if(f){const _=Math.min(this.currentTime,r)/l;let D=Math.floor(_),V=_%1;!V&&_>=1&&(V=1),V===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(S=a)),C=Tn(0,1,V)*l}const T=w?{done:!1,value:d[0]}:S.next(C);i&&(T.value=i(T.value));let{done:E}=T;!w&&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!==$l&&(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=O2,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 Y2(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)},q2={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]),G2={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 Hl(e,t){if(!e||e==="none")return zl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=G2,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=q2,r=l}if(!r)return zl(t);const i=o[t],a=r[1].split(",").map(Z2);return typeof i=="function"?i(a):a[i]}const K2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Hl(n,t)};function Z2(e){return parseFloat(e.trim())}const Sr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wr=new Set(Sr),pf=e=>e===Cr||e===ve,X2=new Set(["x","y","z"]),Q2=Sr.filter(e=>!X2.has(e));function J2(e){const t=[];return Q2.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})=>Hl(t,"x"),y:(e,{transform:t})=>Hl(t,"y")};Gn.translateX=Gn.x;Gn.translateY=Gn.y;const Ro=new Set;let Wl=!1,Ul=!1,Yl=!1;function Ym(){if(Ul){const e=Array.from(Ro).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=J2(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)})}Ul=!1,Wl=!1,Ro.forEach(e=>e.complete(Yl)),Ro.clear()}function qm(){Ro.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ul=!0)})}function eS(){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?(Ro.add(this),Wl||(Wl=!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])}Y2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ro.delete(this)}cancel(){this.state==="scheduled"&&(Ro.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tS=e=>e.startsWith("--");function nS(e,t,n){tS(t)?e.style.setProperty(t,n):e.style[t]=n}const oS=Lc(()=>window.ScrollTimeline!==void 0),rS={};function sS(e,t){const n=Lc(e);return()=>rS[t]??n()}const Gm=sS(()=>{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()?Hm(e,t):"ease-out":Rm(e)?Yr(e):Array.isArray(e)?e.map(n=>Km(n,t)||hf.easeOut):hf[e]}function iS(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 aS({type:e,...t}){return Zm(e)&&Gm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lS 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=aS(t);this.animation=iS(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):nS(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&&oS()?(this.animation.timeline=t,Jt):n(this)}}const Xm={anticipate:Om,backInOut:Mm,circInOut:Dm};function cS(e){return e in Xm}function uS(e){typeof e.ease=="string"&&cS(e.ease)&&(e.ease=Xm[e.ease])}const el=10;class dS extends lS{constructor(t){uS(t),Um(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new 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 fS(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 pS(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:fS(e)||(n==="spring"||Zm(n))&&o}function ql(e){e.duration=0,e.type="keyframes"}const hS=new Set(["opacity","clipPath","filter","transform"]),mS=Lc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gS(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 mS()&&n&&hS.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const yS=40;class bS 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(),pS(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>yS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&gS(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new dS({...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(),eS()),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 vS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xS(e){const t=vS.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const CS=4;function Jm(e,t,n=1){jn(n<=CS,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=xS(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 SS={type:"spring",stiffness:500,damping:25,restSpeed:10},wS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TS={type:"keyframes",duration:.8},PS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ES=(e,{keyframes:t})=>t.length>2?TS:wr.has(e)?e.startsWith("scale")?wS(t[1]):SS:PS,MS=e=>e!==null;function OS(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(MS),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 kS({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};kS(l)||Object.assign(d,ES(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=OS(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Kc(d):new bS(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",...Sr]),yf=30,DS=e=>!isNaN(parseFloat(e));class IS{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=DS(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$c(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new 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>yf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yf);return Sm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ur(e,t){return new IS(e,t)}const Gl=e=>Array.isArray(e);function RS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function AS(e){return Gl(e)?e[e.length-1]||0:e}function NS(e,t){const n=sr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=AS(i[a]);RS(e,a,l)}}const Rt=e=>!!(e&&e.getVelocity);function _S(e){return!!(Rt(e)&&e.add)}function Kl(e,t){const n=e.getValue("willChange");if(_S(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 jS="framerAppearId",tg="data-"+eu(jS);function ng(e){return e.props[tg]}function LS({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&&LS(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 C=ng(e);if(C){const S=window.MotionHandoffAnimation(C,f,et);S!==null&&(m.startTime=S,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 w=p.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&NS(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 VS(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 VS(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 $S(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 FS={test:e=>e==="auto",parse:e=>e},rg=e=>t=>t.test(e),sg=[Cr,ve,Cn,zn,f2,d2,FS],bf=e=>sg.find(rg(e));function BS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cm(e):!0}const zS=new Set(["brightness","contrast","saturate","opacity"]);function HS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Hc)||[];if(!o)return e;const r=n.replace(o,"");let i=zS.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const WS=/\b([a-z-]*)\(.*?\)/gu,Xl={...eo,getAnimatableNone:e=>{const t=e.match(WS);return t?t.map(HS).join(" "):e}},vf={...Cr,transform:Math.round},US={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,...US,zIndex:vf,fillOpacity:hs,strokeOpacity:hs,numOctaves:vf},YS={...tu,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Xl,WebkitFilter:Xl},ig=e=>YS[e];function ag(e,t){let n=ig(e);return n!==Xl&&(n=eo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qS=new Set(["auto","none","0"]);function GS(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!qS.has(i)&&ms(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=ag(n,r)}class KS 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||BS(t[r]))&&o.push(r);o.length&&GS(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 ZS(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 XS(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=ZS(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 QS(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,JS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fg(e){return JS.has(e.tagName)||e.isContentEditable===!0}const bi=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 ew=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Cf(()=>{if(bi.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 Sf(e){return ou(e)&&!cg()}function tw(e,t,n={}){const[o,r,i]=ug(e,n),a=l=>{const c=l.currentTarget;if(!Sf(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),Sf(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=>ew(u,r)),!fg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function pg(e){return xm(e)&&"ownerSVGElement"in e}function nw(e){return pg(e)&&e.tagName==="svg"}const ow=[...sg,Ct,eo],rw=e=>ow.find(rg(e)),wf=()=>({translate:0,scale:1,origin:0,originPoint:0}),er=()=>({x:wf(),y:wf()}),Tf=()=>({min:0,max:0}),Tt=()=>({x:Tf(),y:Tf()}),Jl={current:null},hg={current:!1},sw=typeof window<"u";function iw(){if(hg.current=!0,!!sw)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 aw=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 lw(e,t,n){for(const o in t){const r=t[o],i=n[o];if(Rt(r))e.addValue(o,r);else if(Rt(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 Ii={};function gg(e){Ii=e}function cw(){return Ii}class uw{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&&Rt(m)&&m.set(u[h])}}mount(t){var n;this.current=t,aw.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||iw(),this.shouldReduceMotion=Jl.current),process.env.NODE_ENV!=="production"&&$c(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),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=wr.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 Ii){const n=Ii[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Tt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<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=lw(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)||Cm(o))?o=parseFloat(o):!rw(o)&&eo.test(n)&&(o=ag(t,n)),this.setBaseTarget(t,Rt(o)?o.get():o)),Rt(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&&!Rt(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(){nu.render(this.render)}}class yg extends uw{constructor(){super(...arguments),this.KeyframeResolver=KS}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;Rt(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 dw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fw(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 wo(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 Ri(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=Ri(e,r,o)),Ri(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 pw(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&&wo(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 Cg(e,t){return bg(fw(e.getBoundingClientRect(),t))}function hw(e,t,n){const o=Cg(e,n),{scroll:r}=t;return r&&(tr(o.x,r.offset.x),tr(o.y,r.offset.y)),o}const mw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gw=Sr.length;function yw(e,t,n){let o="",r=!0;for(let i=0;i<gw;i++){const a=Sr[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=mw[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(wr.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=yw(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${u} ${d}`}}function Sg(e,{style:t,vars:n},o,r){const i=e.style;let a;for(a in t)i[a]=t[a];r==null||r.applyProjectionStyles(i,o);for(a in n)i.setProperty(a,n[a])}function If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=If(e,t.target.x),o=If(e,t.target.y);return`${n}% ${o}%`}},bw={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:{...Rr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rr,borderTopRightRadius:Rr,borderBottomLeftRadius:Rr,borderBottomRightRadius:Rr,boxShadow:bw};function wg(e,{layout:t,layoutId:n}){return wr.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)(Rt(o[l])||r&&Rt(r[l])||wg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function vw(e){return window.getComputedStyle(e)}class xw extends yg{constructor(){super(...arguments),this.type="html",this.renderInstance=Sg}readValueFromInstance(t,n){var o;if(wr.has(n))return(o=this.projection)!=null&&o.isProjecting?zl(n):K2(t,n);{const r=vw(t),i=(_m(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){iu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return au(t,n,o)}}const Cw={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sw={offset:"strokeDashoffset",array:"strokeDasharray"};function ww(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?Cw:Sw;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const Tw=["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 Tw)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&&ww(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 Pw(e,t,n,o){Sg(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(Rt(e[r])||Rt(t[r])){const i=Sr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class Ew extends yg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Tt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wr.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){Pw(t,n,o,r)}mount(t){this.isSVGTag=Eg(t.tagName),super.mount(t)}}const Mw=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<Mw;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 Ow=[...ru].reverse(),kw=ru.length;function Dw(e){return t=>Promise.all(t.map(({animation:n,options:o})=>$S(e,n,o)))}function Iw(e){let t=Dw(e),n=Rf(),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<kw;y++){const v=Ow[y],w=n[v],C=u[v]!==void 0?u[v]:d[v],S=gs(C),T=v===c?w.isActive:null;T===!1&&(m=y);let E=C===d[v]&&C!==u[v]&&S;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...h},!w.isActive&&T===null||!C&&!w.prevProp||ca(C)||typeof C=="boolean")continue;const M=Rw(w.prevProp,C);let _=M||v===c&&w.isActive&&!E&&S||y>m&&S,D=!1;const V=Array.isArray(C)?C:[C];let N=V.reduce(r(v),{});T===!1&&(N={});const{prevResolvedValues:x={}}=w,L={...x,...N},R=j=>{_=!0,p.has(j)&&(D=!0,p.delete(j)),w.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?R(j):p.add(j):B!==void 0&&p.has(j)?R(j):w.protectedKeys[j]=!0}w.prevProp=C,w.prevResolvedValues=N,w.isActive&&(h={...h,...N}),o&&e.blockInitialAnimation&&(_=!1);const A=E&&M;_&&(!A||D)&&f.push(...V.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:I}=z.transition||{};B.delay=Qm(F.enteringChildren,e,I)}}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 w=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),y[v]=w??null}),f.push({animation:y})}let g=!!f.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Rf()}}}function Rw(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 Rf(){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,Aw=1-Dg,Nw=1+Dg,Ig=.01,_w=0-Ig,jw=0+Ig;function Vt(e){return e.max-e.min}function Lw(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=Vt(n)/Vt(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Aw&&e.scale<=Nw||isNaN(e.scale))&&(e.scale=1),(e.translate>=_w&&e.translate<=jw||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+Vt(t)}function Vw(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+Vt(t)}function Ai(e,t,n){Lf(e.x,t.x,n.x),Lf(e.y,t.y,n.y)}function Vf(e,t,n,o,r){return e-=t,e=Ri(e,1/n,o),r!==void 0&&(e=Ri(e,1/r,o)),e}function $w(e,t=0,n=1,o=.5,r,i=e,a=e){if(Cn.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=Vf(e.min,t,n,l,r),e.max=Vf(e.max,t,n,l,r)}function $f(e,t,[n,o,r],i,a){$w(e,t[n],t[o],t[r],t.scale,i,a)}const Fw=["x","scaleX","originX"],Bw=["y","scaleY","originY"];function Ff(e,t,n,o){$f(e.x,t,Fw,n?n.x:void 0,o?o.x:void 0),$f(e.y,t,Bw,n?n.y:void 0,o?o.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Rg(e){return Bf(e.x)&&Bf(e.y)}function zf(e,t){return e.min===t.min&&e.max===t.max}function zw(e,t){return zf(e.x,t.x)&&zf(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 Ag(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Wf(e){return Vt(e.x)/Vt(e.y)}function Uf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Kt(e){return[e("x"),e("y")]}function Hw(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"],Ww=Ng.length,Yf=e=>typeof e=="string"?parseFloat(e):e,qf=e=>typeof e=="number"||ve.test(e);function Uw(e,t,n,o,r,i){r?(e.opacity=lt(0,n.opacity??1,Yw(o)),e.opacityExit=lt(t.opacity??1,0,qw(o))):i&&(e.opacity=lt(t.opacity??1,n.opacity??1,o));for(let a=0;a<Ww;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),(Cn.test(u)||Cn.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 Yw=_g(0,.5,km),qw=_g(.5,.95,Jt);function _g(e,t,n){return o=>o<e?0:o>t?1:n(ps(e,t,o))}function Gw(e,t,n){const o=Rt(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 Kw=(e,t)=>e.depth-t.depth;class Zw{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(Kw),this.isDirty=!1,this.children.forEach(t)}}function Xw(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 Rt(e)?e.get():e}class Qw{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"],Jw=1e3;let e5=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=e5++,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(o5),this.nodes.forEach(a5),this.nodes.forEach(l5),this.nodes.forEach(r5)},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 Zw)}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=pg(a)&&!nw(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=Xw(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()||p5,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Ag(this.targetLayout,h),w=!f&&p;if(this.options.layoutRoot||this.resumeFrom||w||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Xc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,w)}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(c5),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(i5),this.nodes.forEach(t5),this.nodes.forEach(n5)):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(s5),this.sharedNodes.forEach(u5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vt(this.snapshot.measuredBox.x)&&!Vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Rg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||wo(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)),h5(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return Tt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(m5))){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=Tt();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=Tt();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}),wo(d.latestValues)&&nr(c,d.latestValues)}return wo(this.latestValues)&&nr(c,this.latestValues),c}removeTransform(a){const l=Tt();an(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!wo(u.latestValues))continue;ec(u.latestValues)&&u.updateSnapshot();const d=Tt(),f=u.measurePageBox();an(d,f),Ff(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return wo(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=Tt(),this.targetWithTransforms=Tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Vw(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=Tt(),this.relativeTargetOrigin=Tt(),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;pw(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Tt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(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||!Uf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=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=Tt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,y=this.getStack(),v=!y||y.members.length<=1,w=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(f5));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const T=S/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),d5(this.relativeTarget,this.relativeTargetOrigin,p,T),C&&zw(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Tt()),an(C,this.relativeTarget)),g&&(this.animationValues=d,Uw(d,u,this.latestValues,T,w,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=Gw(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(Jw),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&&Vg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Tt();const f=Vt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Vt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}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 Qw),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&&!wo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Hw(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],w=f==="none"?d[m]:g(d[m],u);if(y){const C=y.length;for(let S=0;S<C;S++)a[y[S]]=w}else v?this.options.visualElement.renderState.vars[m]=w:a[m]=w}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 t5(e){e.updateLayout()}function n5(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Kt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Vt(p);p.min=o[f].min,p.max=p.min+h}):Vg(i,t.layoutBox,o)&&Kt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Vt(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=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=!Rg(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=Tt();Ai(m,t.layoutBox,p.layoutBox);const g=Tt();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 o5(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 r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s5(e){e.clearSnapshot()}function Kf(e){e.clearMeasurements()}function Zf(e){e.isLayoutDirty=!1}function i5(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 a5(e){e.resolveTargetDelta()}function l5(e){e.calcProjection()}function c5(e){e.resetSkewAndRotation()}function u5(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 d5(e,t,n,o){Jf(e.x,t.x,n.x,o),Jf(e.y,t.y,n.y,o)}function f5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p5={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 h5(e){np(e.x),np(e.y)}function Vg(e,t,n){return e==="position"||e==="preserve-aspect"&&!Lw(Wf(t),Wf(n),.2)}function m5(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const g5=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},$g=Lg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sl.current){const e=new g5({});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 y5(...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 b5(...e){return P.useCallback(y5(...e),e)}class v5 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 x5({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=b5(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 w=n==="left"?`left: ${g}`:`right: ${y}`,C=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 Ve(...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 sC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function iC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{sC(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 aC=yt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lC=yt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),cC=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"),uC=(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)},dC=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},fC=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},pC=(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)},hC="_modal_1ktm2_1",mC="_content_1ktm2_67",gC="_contentWrapper_1ktm2_74",yC="_closeButton_1ktm2_81",bC="_header_1ktm2_93",vC="_title_1ktm2_100",xC="_description_1ktm2_109",CC="_filtersContent_1ktm2_118",wC="_filterGroup_1ktm2_128",SC="_expandableHeader_1ktm2_135",TC="_expandableLabel_1ktm2_145",PC="_chevronIcon_1ktm2_153",EC="_chevron_1ktm2_153",MC="_filterItems_1ktm2_166",OC="_filterItem_1ktm2_166",kC="_filterItemSize1_1ktm2_178",DC="_filterItemSize2_1ktm2_182",IC="_filterItemSize3_1ktm2_186",RC="_filterItemSize4_1ktm2_190",AC="_filterItemSize5_1ktm2_194",NC="_filterItemSize6_1ktm2_198",_C="_filterInput_1ktm2_202",jC="_inputLabel_1ktm2_206",LC="_select_1ktm2_210",VC="_placeholder_1ktm2_227",$C="_helperText_1ktm2_231",FC="_footer_1ktm2_238",BC="_clearButton_1ktm2_245",HC="_applyButton_1ktm2_267",Ge={modal:hC,content:mC,contentWrapper:gC,closeButton:yC,header:bC,title:vC,description:xC,filtersContent:CC,filterGroup:wC,expandableHeader:SC,expandableLabel:TC,chevronIcon:PC,chevron:EC,filterItems:MC,filterItem:OC,filterItemSize1:kC,filterItemSize2:DC,filterItemSize3:IC,filterItemSize4:RC,filterItemSize5:AC,filterItemSize6:NC,filterInput:_C,inputLabel:jC,select:LC,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:VC,helperText:$C,footer:FC,clearButton:BC,applyButton:HC},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,S]=k.useState(a??[]),C=!!r;k.useEffect(()=>{S(a??[])},[a]);const w=uC(v,l),T=dC(v,c,S),E=(M,_)=>{var x;const D=pC(_,M.id,v,S),V=M.size||6,N=Ge[`filterItemSize${V}`];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 R;L?M.value!==void 0&&M.value!==null?R=Array.isArray(M.value)?M.value:[M.value]:R=[]:R=M.value!==void 0&&M.value!==null?M.value:"";const A=L?Array.isArray(R)&&R.length>0:R!==""&&R!==null&&R!==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:R,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(I=>{var Y,q;return((q=(Y=M.options)==null?void 0:Y.find(Z=>Z.value===I))==null?void 0:q.label)||I}).join(", ")}if(!O||O==="")return 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(cC,{})}),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:C?r:v.map(M=>{const _=fC(M.id,v,S),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(lC,{className:Ge.chevron}):b.jsx(aC,{className:Ge.chevron})})]}),D&&b.jsx(G.Box,{className:Ge.filterItems,children:M.items.map(V=>E(V,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 zC="_container_sfavn_1",WC="_card_sfavn_7",UC="_icon_sfavn_19",YC="_text_sfavn_33",Qs={container:zC,card:WC,icon:UC,text:YC},qC=({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 Cm=e=>/^0[^.\s]+$/u.test(e);function Lc(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jt=e=>e,GC=(e,t)=>n=>t(e(n)),ks=(...e)=>e.reduce(GC),ps=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Vc{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 $c(e,t,n){e||ef.has(t)||(console.warn(_l(t,n)),ef.add(t))}const Sm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ZC=1e-7,KC=12;function XC(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Sm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>ZC&&++l<KC);return a}function Ds(e,t,n,o){if(e===t&&n===o)return Jt;const r=i=>XC(i,0,1,e,n);return i=>i===0||i===1?i:Sm(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),QC=Ds(.42,0,1,1),JC=Ds(0,0,.58,1),Im=Ds(.42,0,.58,1),e2=e=>Array.isArray(e)&&typeof e[0]!="number",Rm=e=>Array.isArray(e)&&typeof e[0]=="number",tf={linear:Jt,easeIn:QC,easeInOut:Im,easeOut:JC,circIn:Bc,circInOut:Dm,circOut:km,backIn:Fc,backInOut:Mm,backOut:Em,anticipate:Om},t2=e=>typeof e=="string",nf=e=>{if(Rm(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(t2(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 n2(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 o2=40;function Am(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Js.reduce((C,w)=>(C[w]=n2(i),C),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const C=Ln.useManualTiming?r.timestamp:performance.now();n=!1,Ln.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(C-r.timestamp,o2),1)),r.timestamp=C,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((C,w)=>{const T=a[w];return C[w]=(E,M=!1,_=!1)=>(n||y(),T.schedule(E,M,_)),C},{}),cancel:C=>{for(let w=0;w<Js.length;w++)a[Js[w]].cancel(C)},state:r,steps:a}}const{schedule:et,cancel:Jn,state:Ot,steps:Za}=Am(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jt,!0);let yi;function r2(){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(r2)}},Nm=e=>t=>typeof t=="string"&&t.startsWith(e),_m=Nm("--"),s2=Nm("var(--"),Hc=e=>s2(e)?i2.test(e.split("/*")[0].trim()):!1,i2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Cr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hs={...Cr,transform:e=>Tn(0,1,e)},ei={...Cr,default:1},ns=e=>Math.round(e*1e5)/1e5,zc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function a2(e){return e==null}const l2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wc=(e,t)=>n=>!!(typeof n=="string"&&l2.test(n)&&n.startsWith(e)||t&&!a2(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(zc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},c2=e=>Tn(0,255,e),Ka={...Cr,transform:e=>Math.round(c2(e))},Oo={test:Wc("rgb","red"),parse:jm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ka.transform(e)+", "+Ka.transform(t)+", "+Ka.transform(n)+", "+ns(hs.transform(o))+")"};function u2(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:Wc("#"),parse:u2,transform:Oo.transform},Is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hn=Is("deg"),Cn=Is("%"),ve=Is("px"),d2=Is("vh"),f2=Is("vw"),rf={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(e*100)},Qo={test:Wc("hsl","hue"),parse:jm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Cn.transform(ns(t))+", "+Cn.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)}},p2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function h2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(zc))==null?void 0:t.length)||0)+(((n=e.match(p2))==null?void 0:n.length)||0)>0}const Lm="number",Vm="color",m2="var",g2="var(",sf="${}",y2=/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(y2,c=>(xt.test(c)?(o.color.push(i),r.push(Vm),n.push(xt.parse(c))):c.startsWith(g2)?(o.var.push(i),r.push(m2),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 $m(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===Vm?i+=xt.transform(r[a]):i+=r[a]}return i}}const b2=e=>typeof e=="number"?0:xt.test(e)?xt.getAnimatableNone(e):e;function v2(e){const t=$m(e);return Fm(e)(t.map(b2))}const eo={test:h2,parse:$m,createTransformer:Fm,getAnimatableNone:v2};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 x2({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)},C2=[jl,Oo,Qo],w2=e=>C2.find(t=>t.test(e));function af(e){const t=w2(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=x2(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 S2(e,t){return Ll.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function T2(e,t){return n=>lt(e,t,n)}function Uc(e){return typeof e=="number"?T2:typeof e=="string"?Hc(e)?Oi:xt.test(e)?lf:M2:Array.isArray(e)?Bm:typeof e=="object"?xt.test(e)?lf:P2:Oi}function Bm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Uc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function P2(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Uc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function E2(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 M2=(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?S2(e,t):ks(Bm(E2(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 Hm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):Uc(e)(e,t)}const O2=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()}},zm=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},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 k2(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 D2=5;function Wm(e,t,n){const o=Math.max(t-D2,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 I2({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=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=A2(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 R2=12;function A2(e,t,n){let o=n;for(let r=1;r<R2;r++)o=o-e(o)/t(o);return o}function Vl(e,t){return e*Math.sqrt(1-t*t)}const N2=["duration","bounce"],_2=["stiffness","damping","mass"];function cf(e,t){return t.some(n=>e[n]!==void 0)}function j2(e){let t={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...e};if(!cf(e,_2)&&cf(e,N2))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=I2(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}=j2({...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)),S=Math.abs(y)<5;o||(o=S?at.restSpeed.granular:at.restSpeed.default),r||(r=S?at.restDelta.granular:at.restDelta.default);let C;if(g<1){const T=Vl(v,g);C=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)C=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);C=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=C(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?xn(m):Wm(C,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=zm(M=>w.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return w}Di.applyToOptions=e=>{const t=k2(e,100,Di);return e.ease=t.ease,e.duration=xn(t.duration),e.type="keyframes",e};function $l({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 S=_=>-g*Math.exp(-_/o),C=_=>v+S(_),w=_=>{const D=S(_),V=C(_);p.done=Math.abs(D)<=u,p.value=p.done?v:V};let T,E;const M=_=>{h(p.value)&&(T=_,E=Di({keyframes:[p.value,m(p.value)],velocity:Wm(C,_,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 L2(e,t,n){const o=[],r=n||Ln.mix||Hm,i=e.length-1;for(let a=0;a<i;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Jt:t;l=ks(c,l)}o.push(l)}return o}function V2(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=L2(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 $2(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 F2(e){const t=[0];return $2(t,e.length-1),t}function B2(e,t){return e.map(n=>n*t)}function H2(e,t){return e.map(()=>t||Im).splice(0,e.length-1)}function Jo({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=e2(o)?o.map(nf):nf(o),i={done:!1,value:t[0]},a=B2(n&&n.length===t.length?n:F2(t),e),l=V2(a,t,{ease:Array.isArray(r)?r:H2(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const z2=e=>e!==null;function qc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(z2),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const W2={decay:$l,inertia:$l,tween:Jo,keyframes:Jo,spring:Di};function Um(e){typeof e.type=="string"&&(e.type=W2[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 U2=e=>e/100;class Zc 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;Um(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(U2,Hm(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=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),S=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let C=this.currentTime,w=o;if(f){const _=Math.min(this.currentTime,r)/l;let D=Math.floor(_),V=_%1;!V&&_>=1&&(V=1),V===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(w=a)),C=Tn(0,1,V)*l}const T=S?{done:!1,value:d[0]}:w.next(C);i&&(T.value=i(T.value));let{done:E}=T;!S&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&m!==$l&&(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=O2,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 Y2(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)},q2={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]),G2={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 Hl(e){return e.includes("scale")?1:0}function zl(e,t){if(!e||e==="none")return Hl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=G2,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=q2,r=l}if(!r)return Hl(t);const i=o[t],a=r[1].split(",").map(K2);return typeof i=="function"?i(a):a[i]}const Z2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zl(n,t)};function K2(e){return parseFloat(e.trim())}const wr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sr=new Set(wr),pf=e=>e===Cr||e===ve,X2=new Set(["x","y","z"]),Q2=wr.filter(e=>!X2.has(e));function J2(e){const t=[];return Q2.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})=>zl(t,"x"),y:(e,{transform:t})=>zl(t,"y")};Gn.translateX=Gn.x;Gn.translateY=Gn.y;const Ro=new Set;let Wl=!1,Ul=!1,Yl=!1;function Ym(){if(Ul){const e=Array.from(Ro).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=J2(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)})}Ul=!1,Wl=!1,Ro.forEach(e=>e.complete(Yl)),Ro.clear()}function qm(){Ro.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ul=!0)})}function ew(){Yl=!0,qm(),Ym(),Yl=!1}class Kc{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?(Ro.add(this),Wl||(Wl=!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])}Y2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ro.delete(this)}cancel(){this.state==="scheduled"&&(Ro.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tw=e=>e.startsWith("--");function nw(e,t,n){tw(t)?e.style.setProperty(t,n):e.style[t]=n}const ow=Lc(()=>window.ScrollTimeline!==void 0),rw={};function sw(e,t){const n=Lc(e);return()=>rw[t]??n()}const Gm=sw(()=>{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 Zm(e,t){if(e)return typeof e=="function"?Gm()?zm(e,t):"ease-out":Rm(e)?Yr(e):Array.isArray(e)?e.map(n=>Zm(n,t)||hf.easeOut):hf[e]}function iw(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=Zm(l,r);Array.isArray(f)&&(d.easing=f);const p={delay:o,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function Km(e){return typeof e=="function"&&"applyToOptions"in e}function aw({type:e,...t}){return Km(e)&&Gm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lw 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=aw(t);this.animation=iw(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):nw(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&&ow()?(this.animation.timeline=t,Jt):n(this)}}const Xm={anticipate:Om,backInOut:Mm,circInOut:Dm};function cw(e){return e in Xm}function uw(e){typeof e.ease=="string"&&cw(e.ease)&&(e.ease=Xm[e.ease])}const el=10;class dw extends lw{constructor(t){uw(t),Um(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Zc({...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 fw(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 pw(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:fw(e)||(n==="spring"||Km(n))&&o}function ql(e){e.duration=0,e.type="keyframes"}const hw=new Set(["opacity","clipPath","filter","transform"]),mw=Lc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gw(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 mw()&&n&&hw.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const yw=40;class bw 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)||Kc;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(),pw(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>yw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&gw(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new dw({...p,element:m}):new Zc(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(),ew()),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 vw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xw(e){const t=vw.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const Cw=4;function Jm(e,t,n=1){jn(n<=Cw,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=xw(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return vm(a)?parseFloat(a):a}return Hc(r)?Jm(r,t,n+1):r}const ww={type:"spring",stiffness:500,damping:25,restSpeed:10},Sw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tw={type:"keyframes",duration:.8},Pw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ew=(e,{keyframes:t})=>t.length>2?Tw:Sr.has(e)?e.startsWith("scale")?Sw(t[1]):ww:Pw,Mw=e=>e!==null;function Ow(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(Mw),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 kw({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};kw(l)||Object.assign(d,Ew(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=Ow(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Zc(d):new bw(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,Dw=e=>!isNaN(parseFloat(e));class Iw{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=Dw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$c(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new 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>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 Iw(e,t)}const Gl=e=>Array.isArray(e);function Rw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function Aw(e){return Gl(e)?e[e.length-1]||0:e}function Nw(e,t){const n=sr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=Aw(i[a]);Rw(e,a,l)}}const Rt=e=>!!(e&&e.getVelocity);function _w(e){return!!(Rt(e)&&e.add)}function Zl(e,t){const n=e.getValue("willChange");if(_w(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 jw="framerAppearId",tg="data-"+eu(jw);function ng(e){return e.props[tg]}function Lw({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&&Lw(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 C=ng(e);if(C){const w=window.MotionHandoffAnimation(C,f,et);w!==null&&(m.startTime=w,y=!0)}}Zl(e,f);const v=c??e.shouldReduceMotion;p.start(Qc(f,p,h,v&&eg.has(f)?{type:!1}:m,e,y));const S=p.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&Nw(e,a)})}),u}function Kl(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 Vw(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 Vw(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(Kl(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 $w(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Kl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Kl(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 Fw={test:e=>e==="auto",parse:e=>e},rg=e=>t=>t.test(e),sg=[Cr,ve,Cn,Hn,f2,d2,Fw],bf=e=>sg.find(rg(e));function Bw(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cm(e):!0}const Hw=new Set(["brightness","contrast","saturate","opacity"]);function zw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(zc)||[];if(!o)return e;const r=n.replace(o,"");let i=Hw.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const Ww=/\b([a-z-]*)\(.*?\)/gu,Xl={...eo,getAnimatableNone:e=>{const t=e.match(Ww);return t?t.map(zw).join(" "):e}},vf={...Cr,transform:Math.round},Uw={rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scale:ei,scaleX:ei,scaleY:ei,scaleZ:ei,skew:Hn,skewX:Hn,skewY:Hn,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,...Uw,zIndex:vf,fillOpacity:hs,strokeOpacity:hs,numOctaves:vf},Yw={...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=>Yw[e];function ag(e,t){let n=ig(e);return n!==Xl&&(n=eo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qw=new Set(["auto","none","0"]);function Gw(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!qw.has(i)&&ms(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=ag(n,r)}class Zw extends Kc{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(),Hc(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||Bw(t[r]))&&o.push(r);o.length&&Gw(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 Kw(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 Xw(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=Kw(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 Qw(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,Jw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fg(e){return Jw.has(e.tagName)||e.isContentEditable===!0}const bi=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 eS=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Cf(()=>{if(bi.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 wf(e){return ou(e)&&!cg()}function tS(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=>eS(u,r)),!fg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function pg(e){return xm(e)&&"ownerSVGElement"in e}function nS(e){return pg(e)&&e.tagName==="svg"}const oS=[...sg,xt,eo],rS=e=>oS.find(rg(e)),Sf=()=>({translate:0,scale:1,origin:0,originPoint:0}),er=()=>({x:Sf(),y:Sf()}),Tf=()=>({min:0,max:0}),Tt=()=>({x:Tf(),y:Tf()}),Jl={current:null},hg={current:!1},sS=typeof window<"u";function iS(){if(hg.current=!0,!!sS)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 aS=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 lS(e,t,n){for(const o in t){const r=t[o],i=n[o];if(Rt(r))e.addValue(o,r);else if(Rt(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 Ii={};function gg(e){Ii=e}function cS(){return Ii}class uS{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=Kc,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&&Rt(m)&&m.set(u[h])}}mount(t){var n;this.current=t,aS.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||iS(),this.shouldReduceMotion=Jl.current),process.env.NODE_ENV!=="production"&&$c(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),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=Sr.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 Ii){const n=Ii[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Tt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<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=lS(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)||Cm(o))?o=parseFloat(o):!rS(o)&&eo.test(n)&&(o=ag(t,n)),this.setBaseTarget(t,Rt(o)?o.get():o)),Rt(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&&!Rt(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(){nu.render(this.render)}}class yg extends uS{constructor(){super(...arguments),this.KeyframeResolver=Zw}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;Rt(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 dS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fS(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 So(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 Ri(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=Ri(e,r,o)),Ri(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 pS(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&&So(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 Cg(e,t){return bg(fS(e.getBoundingClientRect(),t))}function hS(e,t,n){const o=Cg(e,n),{scroll:r}=t;return r&&(tr(o.x,r.offset.x),tr(o.y,r.offset.y)),o}const mS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gS=wr.length;function yS(e,t,n){let o="",r=!0;for(let i=0;i<gS;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=mS[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(Sr.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=yS(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 If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=If(e,t.target.x),o=If(e,t.target.y);return`${n}% ${o}%`}},bS={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:{...Rr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rr,borderTopRightRadius:Rr,borderBottomLeftRadius:Rr,borderBottomRightRadius:Rr,boxShadow:bS};function Sg(e,{layout:t,layoutId:n}){return Sr.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)(Rt(o[l])||r&&Rt(r[l])||Sg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function vS(e){return window.getComputedStyle(e)}class xS extends yg{constructor(){super(...arguments),this.type="html",this.renderInstance=wg}readValueFromInstance(t,n){var o;if(Sr.has(n))return(o=this.projection)!=null&&o.isProjecting?Hl(n):Z2(t,n);{const r=vS(t),i=(_m(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){iu(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return au(t,n,o)}}const CS={offset:"stroke-dashoffset",array:"stroke-dasharray"},wS={offset:"strokeDashoffset",array:"strokeDasharray"};function SS(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?CS:wS;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const TS=["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 TS)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&&SS(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 PS(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(Rt(e[r])||Rt(t[r])){const i=wr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class ES extends yg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Tt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Sr.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){PS(t,n,o,r)}mount(t){this.isSVGTag=Eg(t.tagName),super.mount(t)}}const MS=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<MS;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 OS=[...ru].reverse(),kS=ru.length;function DS(e){return t=>Promise.all(t.map(({animation:n,options:o})=>$w(e,n,o)))}function IS(e){let t=DS(e),n=Rf(),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<kS;y++){const v=OS[y],S=n[v],C=u[v]!==void 0?u[v]:d[v],w=gs(C),T=v===c?S.isActive:null;T===!1&&(m=y);let E=C===d[v]&&C!==u[v]&&w;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),S.protectedKeys={...h},!S.isActive&&T===null||!C&&!S.prevProp||ca(C)||typeof C=="boolean")continue;const M=RS(S.prevProp,C);let _=M||v===c&&S.isActive&&!E&&w||y>m&&w,D=!1;const V=Array.isArray(C)?C:[C];let N=V.reduce(r(v),{});T===!1&&(N={});const{prevResolvedValues:x={}}=S,L={...x,...N},R=j=>{_=!0,p.has(j)&&(D=!0,p.delete(j)),S.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 H=!1;Gl(B)&&Gl(F)?H=!kg(B,F):H=B!==F,H?B!=null?R(j):p.add(j):B!==void 0&&p.has(j)?R(j):S.protectedKeys[j]=!0}S.prevProp=C,S.prevResolvedValues=N,S.isActive&&(h={...h,...N}),o&&e.blockInitialAnimation&&(_=!1);const A=E&&M;_&&(!A||D)&&f.push(...V.map(j=>{const B={type:v};if(typeof j=="string"&&o&&!A&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,H=sr(F,j);if(F.enteringChildren&&H){const{delayChildren:I}=H.transition||{};B.delay=Qm(F.enteringChildren,e,I)}}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 S=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),y[v]=S??null}),f.push({animation:y})}let g=!!f.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Rf()}}}function RS(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 Rf(){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,AS=1-Dg,NS=1+Dg,Ig=.01,_S=0-Ig,jS=0+Ig;function Vt(e){return e.max-e.min}function LS(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=Vt(n)/Vt(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AS&&e.scale<=NS||isNaN(e.scale))&&(e.scale=1),(e.translate>=_S&&e.translate<=jS||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+Vt(t)}function VS(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+Vt(t)}function Ai(e,t,n){Lf(e.x,t.x,n.x),Lf(e.y,t.y,n.y)}function Vf(e,t,n,o,r){return e-=t,e=Ri(e,1/n,o),r!==void 0&&(e=Ri(e,1/r,o)),e}function $S(e,t=0,n=1,o=.5,r,i=e,a=e){if(Cn.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=Vf(e.min,t,n,l,r),e.max=Vf(e.max,t,n,l,r)}function $f(e,t,[n,o,r],i,a){$S(e,t[n],t[o],t[r],t.scale,i,a)}const FS=["x","scaleX","originX"],BS=["y","scaleY","originY"];function Ff(e,t,n,o){$f(e.x,t,FS,n?n.x:void 0,o?o.x:void 0),$f(e.y,t,BS,n?n.y:void 0,o?o.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Rg(e){return Bf(e.x)&&Bf(e.y)}function Hf(e,t){return e.min===t.min&&e.max===t.max}function HS(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function zf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ag(e,t){return zf(e.x,t.x)&&zf(e.y,t.y)}function Wf(e){return Vt(e.x)/Vt(e.y)}function Uf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Zt(e){return[e("x"),e("y")]}function zS(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"],WS=Ng.length,Yf=e=>typeof e=="string"?parseFloat(e):e,qf=e=>typeof e=="number"||ve.test(e);function US(e,t,n,o,r,i){r?(e.opacity=lt(0,n.opacity??1,YS(o)),e.opacityExit=lt(t.opacity??1,0,qS(o))):i&&(e.opacity=lt(t.opacity??1,n.opacity??1,o));for(let a=0;a<WS;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),(Cn.test(u)||Cn.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 YS=_g(0,.5,km),qS=_g(.5,.95,Jt);function _g(e,t,n){return o=>o<e?0:o>t?1:n(ps(e,t,o))}function GS(e,t,n){const o=Rt(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 ZS=(e,t)=>e.depth-t.depth;class KS{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(ZS),this.isDirty=!1,this.children.forEach(t)}}function XS(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 Rt(e)?e.get():e}class QS{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"],JS=1e3;let e5=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=e5++,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(o5),this.nodes.forEach(a5),this.nodes.forEach(l5),this.nodes.forEach(r5)},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 KS)}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=pg(a)&&!nS(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=XS(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()||p5,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Ag(this.targetLayout,h),S=!f&&p;if(this.options.layoutRoot||this.resumeFrom||S||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Xc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,S)}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(c5),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(Zf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Kf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i5),this.nodes.forEach(t5),this.nodes.forEach(n5)):this.nodes.forEach(Kf),this.clearAllSnapshots();const l=Lt.now();Ot.delta=Tn(0,1e3/60,l-Ot.timestamp),Ot.timestamp=l,Ot.isProcessing=!0,Za.update.process(Ot),Za.preRender.process(Ot),Za.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s5),this.sharedNodes.forEach(u5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vt(this.snapshot.measuredBox.x)&&!Vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Rg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||So(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)),h5(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return Tt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(m5))){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=Tt();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=Tt();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}),So(d.latestValues)&&nr(c,d.latestValues)}return So(this.latestValues)&&nr(c,this.latestValues),c}removeTransform(a){const l=Tt();an(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!So(u.latestValues))continue;ec(u.latestValues)&&u.updateSnapshot();const d=Tt(),f=u.measurePageBox();an(d,f),Ff(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return So(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=Tt(),this.targetWithTransforms=Tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VS(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=Tt(),this.relativeTargetOrigin=Tt(),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;pS(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Tt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(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||!Uf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=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=Tt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,y=this.getStack(),v=!y||y.members.length<=1,S=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(f5));this.animationProgress=0;let C;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),d5(this.relativeTarget,this.relativeTargetOrigin,p,T),C&&HS(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Tt()),an(C,this.relativeTarget)),g&&(this.animationValues=d,US(d,u,this.latestValues,T,S,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{xi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ur(0)),this.currentAnimation=GS(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(JS),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&&Vg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Tt();const f=Vt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Vt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}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 QS),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&&!So(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=zS(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],S=f==="none"?d[m]:g(d[m],u);if(y){const C=y.length;for(let w=0;w<C;w++)a[y[w]]=S}else v?this.options.visualElement.renderState.vars[m]=S:a[m]=S}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(Zf),this.root.sharedNodes.clear()}}}function t5(e){e.updateLayout()}function n5(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=Vt(p);p.min=o[f].min,p.max=p.min+h}):Vg(i,t.layoutBox,o)&&Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=Vt(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=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=!Rg(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=Tt();Ai(m,t.layoutBox,p.layoutBox);const g=Tt();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 o5(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 r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s5(e){e.clearSnapshot()}function Zf(e){e.clearMeasurements()}function Kf(e){e.isLayoutDirty=!1}function i5(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 a5(e){e.resolveTargetDelta()}function l5(e){e.calcProjection()}function c5(e){e.resetSkewAndRotation()}function u5(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 d5(e,t,n,o){Jf(e.x,t.x,n.x,o),Jf(e.y,t.y,n.y,o)}function f5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p5={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 h5(e){np(e.x),np(e.y)}function Vg(e,t,n){return e==="position"||e==="preserve-aspect"&&!LS(Wf(t),Wf(n),.2)}function m5(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const g5=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},$g=Lg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sl.current){const e=new g5({});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 y5(...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 b5(...e){return P.useCallback(y5(...e),e)}class v5 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 x5({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=b5(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 S=n==="left"?`left: ${g}`:`right: ${y}`,C=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
|
+
${S}px !important;
|
|
103
103
|
${C}px !important;
|
|
104
104
|
}
|
|
105
|
-
`),()=>{T.contains(S)&&T.removeChild(S)}},[t]),b.jsx(v5,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const C5=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Nc(S5),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(x5,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(la.Provider,{value:h,children:e})};function S5(){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),[w,C]=k.useState(p),[S,T]=k.useState(p);bm(()=>{m.current=!1,g.current=p;for(let _=0;_<S.length;_++){const D=ti(S[_]);h.includes(D)?(y.delete(D),v.current.delete(D)):y.get(D)!==!0&&y.set(D,!1)}},[S,h.length,h.join("-")]);const E=[];if(p!==w){let _=[...p];for(let D=0;D<S.length;D++){const V=S[D],N=ti(V);h.includes(N)||(_.splice(D,0,V),E.push(V))}return i==="wait"&&E.length&&(_=E),T(rp(_)),C(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}=k.useContext(Ac);return b.jsx(b.Fragment,{children:S.map(_=>{const D=ti(_),V=a&&!d?!1:p===S||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(C5,{isPresent:V,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:V?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 w5(){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 w5(),cw()}function T5(e){const t=zg();for(const n in e)t[n]={...t[n],...e[n]};gg(t)}const P5=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")||P5.has(e)}let Hg=e=>!Ni(e);function E5(e){typeof e=="function"&&(Hg=t=>t.startsWith("on")?!Ni(t):e(t))}try{E5(require("@emotion/is-prop-valid").default)}catch{}function M5(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Hg(r)||n===!0&&Ni(r)||!t&&!Ni(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const da=k.createContext({});function O5(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 k5(e){const{initial:t,animate:n}=O5(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 Wg(e,t,n){for(const o in t)!Rt(t[o])&&!wg(o,n)&&(e[o]=t[o])}function D5({transformTemplate:e},t){return k.useMemo(()=>{const n=cu();return iu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function I5(e,t){const n=e.style||{},o={};return Wg(o,n,e),Object.assign(o,D5(e,t)),o}function R5(e,t){const n={},o=I5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const Ug=()=>({...cu(),attrs:{}});function A5(e,t,n,o){const r=k.useMemo(()=>{const i=Ug();return Tg(i,t,Eg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wg(i,e.style,e),r.style={...i,...r.style}}return r}const N5=["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:!!(N5.indexOf(e)>-1||/[A-Z]/u.test(e))}function _5(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??uu(e)?A5:R5)(t,o,r,e),u=M5(t,typeof e=="string",i),d=e!==k.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=k.useMemo(()=>Rt(f)?f.get():f,[f]);return k.createElement(e,{...d,children:p})}function j5({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:L5(n,o,r,e),renderState:t()}}function L5(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 w in v){let C=v[w];if(Array.isArray(C)){const S=d?C.length-1:0;C=C[S]}C!==null&&(r[w]=C)}for(const w in g)r[w]=g[w]}}}return r}const Yg=e=>(t,n)=>{const o=k.useContext(da),r=k.useContext(la),i=()=>j5(e,t,o,r);return n?i():Nc(i)},V5=Yg({scrapeMotionValuesFromProps:au,createRenderState:cu}),$5=Yg({scrapeMotionValuesFromProps:Mg,createRenderState:Ug}),F5=Symbol.for("motionComponentSymbol");function B5(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 z5(e,t,n,o,r,i){var C,S;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")&&H5(p.current,n,r,g);const y=k.useRef(!1);k.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[tg],w=k.useRef(!!v&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,v))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,v)));return bm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),w.current&&m.animationState&&m.animationState.animateChanges())}),k.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),w.current=!1),m.enteringChildren=void 0)}),m}function H5(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&&T5(o);const i=n?n==="svg":uu(e),a=i?$5:V5;function l(u,d){let f;const p={...k.useContext(lu),...u,layoutId:W5(u)},{isStatic:h}=p,m=k5(u),g=a(u,h);if(!h&&ym){U5(p,o);const y=Y5(p);f=y.MeasureLayout,m.visualElement=z5(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,_5(e,u,B5(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[F5]=e,c}function W5({layoutId:e}){const t=k.useContext(Ac).id;return t&&e!==void 0?t+"-"+e:e}function U5(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 Y5(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 q5(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"&&$c(!1,"motion() is deprecated. Use motion.create() instead."),o(i,a));return new Proxy(r,{get:(i,a)=>a==="create"?o:(n.has(a)||n.set(a,il(a,void 0,e,t)),n.get(a))})}const G5=(e,t)=>t.isSVG??uu(e)?new Ew(t):new xw(t,{allowProjection:e!==k.Fragment});class K5 extends so{constructor(t){super(t),t.animationState||(t.animationState=Iw(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 Z5=0;class X5 extends so{constructor(){super(...arguments),this.id=Z5++}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 Q5={animation:{Feature:K5},exit:{Feature:X5}};function Rs(e){return{point:{x:e.pageX,y:e.pageY}}}const J5=e=>t=>ou(t)&&e(t,Rs(t));function rs(e,t,n,o){return ys(e,t,J5(n),o)}const Kg=({current:e})=>e?e.ownerDocument.defaultView:null,cp=(e,t)=>Math.abs(e-t);function e3(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=e3(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:w,onMove:C}=this.handlers;m||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(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 w=ll(h.type==="pointercancel"?this.lastMoveEventInfo:al(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,w),y&&y(h,w)},!ou(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Rs(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,t3(t)),velocity:n3(t,.1)}}function t3(e){return e[0]}function Xg(e){return e[e.length-1]}function n3(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 o3(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 r3(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 s3(e,t){return{x:pp(e.x,t.x),y:pp(e.y,t.y)}}function i3(e,t){let n=.5;const o=Vt(e),r=Vt(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 a3(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 l3(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 c3=new WeakMap;class u3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{n?(this.stopAnimation(),this.snapToCursor(Rs(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=XS(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 w=this.getAxisMotionValue(v).get()||0;if(Cn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const S=C.layout.layoutBox[v];S&&(w=Vt(S)*(parseFloat(w)/100))}}this.originPoint[v]=w}),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=d3(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=o3(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=r3(o.layoutBox,t):this.constraints=!1,this.elastic=l3(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Kt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=a3(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=hw(o,r.root,this.visualElement.getTransformPagePoint());let a=s3(r.layout.layoutBox,i);if(n){const l=n(dw(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]=i3({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;c3.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 d3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class f3 extends so{constructor(t){super(t),this.removeGroupControls=Jt,this.removeListeners=Jt,this.controls=new u3(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 p3 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 h3 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(h3,{...e,layoutGroup:o,switchLayoutGroup:k.useContext(qg),isPresent:t,safeToRemove:n})}const m3={pan:{Feature:p3},drag:{Feature:f3,ProjectionNode:$g,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,Rs(t)))}class g3 extends so{mount(){const{current:t}=this.node;t&&(this.unmount=QS(t,(n,o)=>(yp(this.node,o,"Start"),r=>yp(this.node,r,"End"))))}unmount(){}}class y3 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,Rs(t)))}class b3 extends so{mount(){const{current:t}=this.node;t&&(this.unmount=tw(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,v3=e=>{const t=rc.get(e.target);t&&t(e)},x3=e=>{e.forEach(v3)};function C3({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(x3,{root:e,...t})),o[r]}function S3(e,t,n){const o=C3(t);return rc.set(e,n),o.observe(e),()=>{rc.delete(e),o.unobserve(e)}}const w3={some:0,all:1};class T3 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:w3[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 S3(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(P3(t,n))&&this.startObserver()}unmount(){}}function P3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const E3={inView:{Feature:T3},tap:{Feature:b3},focus:{Feature:y3},hover:{Feature:g3}},M3={layout:{ProjectionNode:$g,MeasureLayout:Qg}},O3={...Q5,...E3,...m3,...M3},qo=q5(O3,G5),Eo=15.5,dl=18,k3=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",D3=[_s,js];function I3(e,t){return e===_s?b.jsx(As,{fill:t,size:16}):e===js?b.jsx(Ns,{fill:t,size:16}):null}function R3(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 A3(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&D3.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:I3(o,t)}))}const N3="_spotWrapper_p7ng0_1",_3="_mapSpot_p7ng0_8",j3="_selected_p7ng0_24",L3="_rotationLines_p7ng0_36",V3="_rotationLine_p7ng0_36",$3="_rotationLineInner_p7ng0_56",F3="_rotationConeSvg_p7ng0_63",B3="_rotationLineSvg_p7ng0_77",z3="_cameraButtonAtTip_p7ng0_89",H3="_cameraButtonSelected_p7ng0_107",W3="_cameraButtonAtTipIcon_p7ng0_129",U3="_count_p7ng0_137",Y3="_cameraTypesContainer_p7ng0_157",q3="_cameraTypeItem_p7ng0_164",G3="_cameraTypeCount_p7ng0_171",K3="_cameraTypeIcon_p7ng0_182",It={spotWrapper:N3,mapSpot:_3,selected:j3,rotationLines:L3,rotationLine:V3,rotationLineInner:$3,rotationConeSvg:F3,rotationLineSvg:B3,cameraButtonAtTip:z3,cameraButtonSelected:H3,cameraButtonAtTipIcon:W3,count:U3,cameraTypesContainer:Y3,cameraTypeItem:q3,cameraTypeCount:G3,cameraTypeIcon:K3},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 Z3=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(()=>A3(n,g),[n,g]),v=y&&y.length>0,w=n&&n.length===1,C=!r&&v&&(w||o>=Eo),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",_=m?"#CEE643":"#44808C",D=8,V=n??[],N=r&&V.length>0;return b.jsxs("div",{className:It.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(sp,{children:N&&b.jsx(qo.div,{className:It.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:V.map((x,L)=>{const R=i===x.id||l===x.id,A=m?"#101111":"#FDFCFC";return b.jsx("div",{className:It.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${x.orientation??0}deg)`},children:b.jsxs(qo.div,{className:It.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ey,{fill:_,className:It.rotationConeSvg}),b.jsx(Jg,{fill:M,className:It.rotationLineSvg}),b.jsx("button",{type:"button",className:`${It.cameraButtonAtTip} ${R?It.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(x)},"aria-label":`Câmera ${x.algorithm??"câmera"}`,children:b.jsx("span",{className:It.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(x.orientation??0)}deg)`},children:R3(x.algorithm,18,A)})})]})},x.id??L)})})}),b.jsx(Z3,{className:`${It.mapSpot} ${r?It.selected:""} ${u||""}`,onClick:c?void 0:d,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${D}px solid transparent`,borderRight:`${D}px solid transparent`,borderTop:`${D}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T:S,"--arrow-opacity":C?1:0,backgroundColor:E},animate:{width:C?"auto":r?34:30,height:C?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:C?"4px 8px":0,y:C?-D:0,"--arrow-opacity":C?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(sp,{mode:"wait",children:C?b.jsx(qo.div,{className:It.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((x,L)=>b.jsxs(qo.div,{className:It.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(G.Typography,{className:It.cameraTypeCount,children:x.count}),x.icon&&b.jsx(G.Box,{className:It.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:It.count,children:e})},"collapsed")})})]})};du.displayName="MapSpot";const X3="_cameraCard_kvy53_2",Q3="_clickable_kvy53_12",J3="_topContainer_kvy53_66",eT="_playOverlay_kvy53_80",tT="_playIcon_kvy53_96",nT="_mediaImage_kvy53_117",oT="_mediaPlaceholder_kvy53_124",rT="_offlinePlaceholder_kvy53_130",sT="_offlinePlaceholderIcon_kvy53_141",iT="_offlinePlaceholderText_kvy53_147",aT="_menuButton_kvy53_155",lT="_menuButtonIcon_kvy53_174",cT="_closeButton_kvy53_180",uT="_closeButtonIcon_kvy53_199",dT="_bottomContainer_kvy53_205",fT="_infoRow_kvy53_218",pT="_iconWrapper_kvy53_226",hT="_cameraIcon_kvy53_233",mT="_cameraTypeImage_kvy53_240",gT="_headerText_kvy53_248",yT="_addressText_kvy53_265",bT="_tagsContainer_kvy53_282",vT="_tag_kvy53_282",xT="_tagOverflow_kvy53_298",CT="_recordingButtonContainer_kvy53_320",ST="_menuButtonInline_kvy53_329",wT="_menuButtonInlineIcon_kvy53_348",TT="_recordingButton_kvy53_320",PT="_recordingButtonIcon_kvy53_379",ET="_recordingButtonText_kvy53_382",MT="_cameraCardMenuPaper_kvy53_413",OT="_cameraCardMenuList_kvy53_437",kT="_cameraCardMenuItem_kvy53_445",DT="_menuItemDisabled_kvy53_484",IT="_cameraCardMenuItemText_kvy53_490",Ne={cameraCard:X3,clickable:Q3,topContainer:J3,playOverlay:eT,playIcon:tT,mediaImage:nT,mediaPlaceholder:oT,offlinePlaceholder:rT,offlinePlaceholderIcon:sT,offlinePlaceholderText:iT,menuButton:aT,menuButtonIcon:lT,closeButton:cT,closeButtonIcon:uT,bottomContainer:dT,infoRow:fT,iconWrapper:pT,cameraIcon:hT,cameraTypeImage:mT,headerText:gT,addressText:yT,tagsContainer:bT,tag:vT,tagOverflow:xT,recordingButtonContainer:CT,menuButtonInline:ST,menuButtonInlineIcon:wT,recordingButton:TT,recordingButtonIcon:PT,recordingButtonText:ET,cameraCardMenuPaper:MT,cameraCardMenuList:OT,cameraCardMenuItem:kT,menuItemDisabled:DT,cameraCardMenuItemText:IT};function RT(e,t){const n=t?"#FAF9F9":"#000000";return e===_s?b.jsx(As,{fill:n,size:20,className:Ne.cameraTypeImage}):e===js?b.jsx(Ns,{fill:n,size:20,className:Ne.cameraTypeImage}):b.jsx(gt.VideocamOutlined,{className:Ne.cameraIcon,style:{color:n}})}const AT=({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),w=k.useRef(!1),[C,S]=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(", "):"",V=[n,t,o].filter(Boolean).join(" - ");return b.jsxs(G.Box,{className:`${Ne.cameraCard} ${p?Ne.clickable:""} ${u||""}`.trim(),"data-theme":y?"dark":"light",onClick:()=>{w.current||p==null||p()},sx:{"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[b.jsxs(G.Box,{className:Ne.topContainer,children:[m?b.jsxs(G.Box,{className:Ne.offlinePlaceholder,"aria-label":"Câmera offline",children:[b.jsx(gt.VideocamOff,{className:Ne.offlinePlaceholderIcon}),b.jsx("span",{className:Ne.offlinePlaceholderText,children:"Imagem não disponível"})]}):i?b.jsx("img",{src:i,alt:"",className:Ne.mediaImage}):b.jsx(G.Box,{className:Ne.mediaPlaceholder,"aria-hidden":!0}),b.jsx(G.Box,{className:Ne.playOverlay,children:b.jsx(gt.PlayCircleOutline,{className:Ne.playIcon})}),!d&&M&&b.jsx(G.Tooltip,{title:D,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:b.jsxs(G.Box,{className:Ne.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[b.jsx("span",{className:Ne.tag,children:M}),_>0&&b.jsxs("span",{className:Ne.tagOverflow,children:["+",_]})]})}),f&&b.jsx(G.IconButton,{onClick:N=>{N.stopPropagation(),f()},className:Ne.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(gt.Close,{className:Ne.closeButtonIcon})}),T&&!d&&b.jsx(G.IconButton,{ref:v,onClick:N=>{N.stopPropagation(),E?S(!0):c==null||c()},className:Ne.menuButton,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(gt.MoreHoriz,{className:Ne.menuButtonIcon})})]}),E&&b.jsx(G.Popover,{open:C,anchorEl:v.current,onClose:()=>{S(!1),w.current=!0,requestAnimationFrame(()=>{w.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:Ne.cameraCardMenuPaper,"data-theme":y?"dark":"light",children:b.jsx(G.Box,{className:Ne.cameraCardMenuList,role:"menu",children:l.map(N=>b.jsx("button",{type:"button",className:`${Ne.cameraCardMenuItem} ${h?Ne.menuItemDisabled:""}`,role:"menuitem",disabled:h,onClick:()=>{var x;h||((x=N.onClick)==null||x.call(N),S(!1))},children:b.jsx("span",{className:Ne.cameraCardMenuItemText,children:N.label})},N.label))})})}),b.jsxs(G.Box,{className:`${Ne.bottomContainer} bottom-container`,children:[b.jsxs(G.Box,{className:Ne.infoRow,children:[b.jsx(G.Box,{className:Ne.iconWrapper,children:RT(a,y)}),b.jsx(G.Tooltip,{title:e,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ne.headerText,children:e})})]}),V&&b.jsx(G.Tooltip,{title:V,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ne.addressText,children:V})}),d&&b.jsxs(G.Box,{className:Ne.recordingButtonContainer,children:[T&&b.jsx(G.IconButton,{ref:v,onClick:()=>{E?S(!0):c==null||c()},className:Ne.menuButtonInline,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(gt.MoreHoriz,{className:Ne.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:Ne.recordingButton,onClick:N=>{N.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(gt.VideocamOutlined,{className:Ne.recordingButtonIcon}),b.jsx("span",{className:Ne.recordingButtonText,children:"Ver gravação"})]})]})]})]})},NT=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},_T=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},jT="_container_1whpg_2",LT="_zoomButton_1whpg_10",VT="_stateLayer_1whpg_43",$T="_icon_1whpg_59",gn={container:jT,zoomButton:LT,stateLayer:VT,icon:$T},FT=({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=NT(e,o,i),d=_T(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(gt.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(gt.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(gt.ZoomOutMap,{className:gn.icon,sx:p})})})]})};var BT=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 zT=no(BT),HT="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 In={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},WT="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=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=WT+"?"+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)}}_i.loadingStatus=In.NOT_LOADED;_i.listeners=[];const UT="GMP_visgl_rgmlibrary_v1_default",YT=[`gmp_visgl_reactgooglemaps_v${HT}`],Ls=k.createContext(null);function qT(){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 GT(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=UT: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 KT(e){return k.useMemo(()=>e.disableUsageAttribution?null:YT,[e.disableUsageAttribution])}const ZT=e=>{const{children:t}=e,n=dr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=qT(),{status:l,loadedLibraries:c,importLibrary:u}=GT(n),d=KT(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 XT(e,t){for(const n of tP){const o=t[n],r=ty[n];k.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(QT(r,e,a))});return()=>i.remove()},[e,r,o])}}function QT(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(JT.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(eP.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"},JT=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],eP=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],tP=Object.keys(ty);function nP(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e}),t.current}function oP(e,t){const n=nP(e);return k.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function rP(e,t,n){k.useEffect(e,[oP(t,n)])}function sP(e,t){rP(e,t,zT)}const iP=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 aP(e,t){const n={},o=Object.keys(t);for(const r of o)iP.has(r)&&(n[r]=t[r]);sP(()=>{e&&e.setOptions(n)},[n])}function ny(){var e;return((e=k.useContext(Ls))===null||e===void 0?void 0:e.status)||In.NOT_LOADED}function lP(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 cP(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 cP(e)?e:e.toJSON()}function uP(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 dP=()=>{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 fP(){const[e,t]=k.useState(null),n=k.useCallback(o=>t(o),[t]);return[e,n]}function ry(){return ny()===In.LOADED}function pP(){const[,e]=k.useReducer(t=>t+1,0);return e}function hP(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 mP(e){const t=pP(),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",()=>{hP(e,n),t()});return()=>o.remove()},[e,t]),n}class Ci{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)}}Ci.entries={};function gP(e,t){const n=ry(),[o,r]=k.useState(null),[i,a]=fP(),l=mP(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"]),w=e.zoom!==void 0||e.defaultZoom!==void 0,C=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!w||!C)&&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=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 V,N;if(m&&Ci.has(D)?(N=Ci.pop(D),V=N.getDiv(),i.appendChild(V),N.setOptions(v),setTimeout(()=>N.setCenter(N.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",i.appendChild(V),N=new google.maps.Map(V,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(!w||!C)&&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},V.remove(),m?Ci.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]=gP(e,i);uP(l,u,e),XT(l,e),aP(l,e);const d=lP(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 w,C,S;return{center:{lat:h??0,lng:m??0},zoom:(w=e.zoom)!==null&&w!==void 0?w:0,heading:(C=e.heading)!==null&&C!==void 0?C:0,tilt:(S=e.tilt)!==null&&S!==void 0?S:0}},[h,m,e.zoom,e.heading,e.tilt]);k.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const w=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>w.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===In.AUTH_FAILURE?k.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},k.createElement(dP,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 yP(...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 yP("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 bP(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 vP{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(v5,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const C5=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Nc(w5),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(x5,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(la.Provider,{value:h,children:e})};function w5(){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),[S,C]=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!==S){let _=[...p];for(let D=0;D<w.length;D++){const V=w[D],N=ti(V);h.includes(N)||(_.splice(D,0,V),E.push(V))}return i==="wait"&&E.length&&(_=E),T(rp(_)),C(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(_),V=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(C5,{isPresent:V,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:V?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 S5(){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 Hg(){return S5(),cS()}function T5(e){const t=Hg();for(const n in e)t[n]={...t[n],...e[n]};gg(t)}const P5=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")||P5.has(e)}let zg=e=>!Ni(e);function E5(e){typeof e=="function"&&(zg=t=>t.startsWith("on")?!Ni(t):e(t))}try{E5(require("@emotion/is-prop-valid").default)}catch{}function M5(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(zg(r)||n===!0&&Ni(r)||!t&&!Ni(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const da=k.createContext({});function O5(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 k5(e){const{initial:t,animate:n}=O5(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 Wg(e,t,n){for(const o in t)!Rt(t[o])&&!Sg(o,n)&&(e[o]=t[o])}function D5({transformTemplate:e},t){return k.useMemo(()=>{const n=cu();return iu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function I5(e,t){const n=e.style||{},o={};return Wg(o,n,e),Object.assign(o,D5(e,t)),o}function R5(e,t){const n={},o=I5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const Ug=()=>({...cu(),attrs:{}});function A5(e,t,n,o){const r=k.useMemo(()=>{const i=Ug();return Tg(i,t,Eg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wg(i,e.style,e),r.style={...i,...r.style}}return r}const N5=["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:!!(N5.indexOf(e)>-1||/[A-Z]/u.test(e))}function _5(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??uu(e)?A5:R5)(t,o,r,e),u=M5(t,typeof e=="string",i),d=e!==k.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=k.useMemo(()=>Rt(f)?f.get():f,[f]);return k.createElement(e,{...d,children:p})}function j5({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:L5(n,o,r,e),renderState:t()}}function L5(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 S in v){let C=v[S];if(Array.isArray(C)){const w=d?C.length-1:0;C=C[w]}C!==null&&(r[S]=C)}for(const S in g)r[S]=g[S]}}}return r}const Yg=e=>(t,n)=>{const o=k.useContext(da),r=k.useContext(la),i=()=>j5(e,t,o,r);return n?i():Nc(i)},V5=Yg({scrapeMotionValuesFromProps:au,createRenderState:cu}),$5=Yg({scrapeMotionValuesFromProps:Mg,createRenderState:Ug}),F5=Symbol.for("motionComponentSymbol");function B5(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 H5(e,t,n,o,r,i){var C,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")&&z5(p.current,n,r,g);const y=k.useRef(!1);k.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[tg],S=k.useRef(!!v&&!((C=window.MotionHandoffIsComplete)!=null&&C.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(),S.current&&m.animationState&&m.animationState.animateChanges())}),k.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),S.current=!1),m.enteringChildren=void 0)}),m}function z5(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&&T5(o);const i=n?n==="svg":uu(e),a=i?$5:V5;function l(u,d){let f;const p={...k.useContext(lu),...u,layoutId:W5(u)},{isStatic:h}=p,m=k5(u),g=a(u,h);if(!h&&ym){U5(p,o);const y=Y5(p);f=y.MeasureLayout,m.visualElement=H5(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,_5(e,u,B5(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[F5]=e,c}function W5({layoutId:e}){const t=k.useContext(Ac).id;return t&&e!==void 0?t+"-"+e:e}function U5(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 Y5(e){const t=Hg(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n!=null&&n.isEnabled(e)||o!=null&&o.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function q5(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"&&$c(!1,"motion() is deprecated. Use motion.create() instead."),o(i,a));return new Proxy(r,{get:(i,a)=>a==="create"?o:(n.has(a)||n.set(a,il(a,void 0,e,t)),n.get(a))})}const G5=(e,t)=>t.isSVG??uu(e)?new ES(t):new xS(t,{allowProjection:e!==k.Fragment});class Z5 extends so{constructor(t){super(t),t.animationState||(t.animationState=IS(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 K5=0;class X5 extends so{constructor(){super(...arguments),this.id=K5++}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 Q5={animation:{Feature:Z5},exit:{Feature:X5}};function Rs(e){return{point:{x:e.pageX,y:e.pageY}}}const J5=e=>t=>ou(t)&&e(t,Rs(t));function rs(e,t,n,o){return ys(e,t,J5(n),o)}const Zg=({current:e})=>e?e.ownerDocument.defaultView:null,cp=(e,t)=>Math.abs(e-t);function e3(e,t){const n=cp(e.x,t.x),o=cp(e.y,t.y);return Math.sqrt(n**2+o**2)}const up=new Set(["auto","scroll"]);class Kg{constructor(t,n,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ll(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=e3(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:S,onMove:C}=this.handlers;m||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(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 S=ll(h.type==="pointercancel"?this.lastMoveEventInfo:al(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,S),y&&y(h,S)},!ou(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Rs(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,t3(t)),velocity:n3(t,.1)}}function t3(e){return e[0]}function Xg(e){return e[e.length-1]}function n3(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 o3(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 r3(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 s3(e,t){return{x:pp(e.x,t.x),y:pp(e.y,t.y)}}function i3(e,t){let n=.5;const o=Vt(e),r=Vt(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 a3(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 l3(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 c3=new WeakMap;class u3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{n?(this.stopAnimation(),this.snapToCursor(Rs(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=Xw(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 S=this.getAxisMotionValue(v).get()||0;if(Cn.test(S)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[v];w&&(S=Vt(w)*(parseFloat(S)/100))}}this.originPoint[v]=S}),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=d3(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 Kg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Zg(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=o3(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=r3(o.layoutBox,t):this.constraints=!1,this.elastic=l3(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Zt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=a3(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=hS(o,r.root,this.visualElement.getTransformPagePoint());let a=s3(r.layout.layoutBox,i);if(n){const l=n(dS(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=Zt(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 Zl(this.visualElement,t),o.start(Qc(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(!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};Zt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=i3({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(!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;c3.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&&(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=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 d3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class f3 extends so{constructor(t){super(t),this.removeGroupControls=Jt,this.removeListeners=Jt,this.controls=new u3(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 p3 extends so{constructor(){super(...arguments),this.removePointerDownListener=Jt}onPointerDown(t){this.session=new Kg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zg(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 h3 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(h3,{...e,layoutGroup:o,switchLayoutGroup:k.useContext(qg),isPresent:t,safeToRemove:n})}const m3={pan:{Feature:p3},drag:{Feature:f3,ProjectionNode:$g,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,Rs(t)))}class g3 extends so{mount(){const{current:t}=this.node;t&&(this.unmount=Qw(t,(n,o)=>(yp(this.node,o,"Start"),r=>yp(this.node,r,"End"))))}unmount(){}}class y3 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,Rs(t)))}class b3 extends so{mount(){const{current:t}=this.node;t&&(this.unmount=tS(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,v3=e=>{const t=rc.get(e.target);t&&t(e)},x3=e=>{e.forEach(v3)};function C3({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(x3,{root:e,...t})),o[r]}function w3(e,t,n){const o=C3(t);return rc.set(e,n),o.observe(e),()=>{rc.delete(e),o.unobserve(e)}}const S3={some:0,all:1};class T3 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:S3[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 w3(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(P3(t,n))&&this.startObserver()}unmount(){}}function P3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const E3={inView:{Feature:T3},tap:{Feature:b3},focus:{Feature:y3},hover:{Feature:g3}},M3={layout:{ProjectionNode:$g,MeasureLayout:Qg}},O3={...Q5,...E3,...m3,...M3},qo=q5(O3,G5),Eo=15.5,dl=18,k3=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",D3=[_s,js];function I3(e,t){return e===_s?b.jsx(As,{fill:t,size:16}):e===js?b.jsx(Ns,{fill:t,size:16}):null}function R3(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 A3(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&D3.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:I3(o,t)}))}const N3="_spotWrapper_p7ng0_1",_3="_mapSpot_p7ng0_8",j3="_selected_p7ng0_24",L3="_rotationLines_p7ng0_36",V3="_rotationLine_p7ng0_36",$3="_rotationLineInner_p7ng0_56",F3="_rotationConeSvg_p7ng0_63",B3="_rotationLineSvg_p7ng0_77",H3="_cameraButtonAtTip_p7ng0_89",z3="_cameraButtonSelected_p7ng0_107",W3="_cameraButtonAtTipIcon_p7ng0_129",U3="_count_p7ng0_137",Y3="_cameraTypesContainer_p7ng0_157",q3="_cameraTypeItem_p7ng0_164",G3="_cameraTypeCount_p7ng0_171",Z3="_cameraTypeIcon_p7ng0_182",It={spotWrapper:N3,mapSpot:_3,selected:j3,rotationLines:L3,rotationLine:V3,rotationLineInner:$3,rotationConeSvg:F3,rotationLineSvg:B3,cameraButtonAtTip:H3,cameraButtonSelected:z3,cameraButtonAtTipIcon:W3,count:U3,cameraTypesContainer:Y3,cameraTypeItem:q3,cameraTypeCount:G3,cameraTypeIcon:Z3},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 K3=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(()=>A3(n,g),[n,g]),v=y&&y.length>0,S=n&&n.length===1,C=!r&&v&&(S||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,V=n??[],N=r&&V.length>0;return b.jsxs("div",{className:It.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(sp,{children:N&&b.jsx(qo.div,{className:It.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:V.map((x,L)=>{const R=i===x.id||l===x.id,A=m?"#101111":"#FDFCFC";return b.jsx("div",{className:It.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${x.orientation??0}deg)`},children:b.jsxs(qo.div,{className:It.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ey,{fill:_,className:It.rotationConeSvg}),b.jsx(Jg,{fill:M,className:It.rotationLineSvg}),b.jsx("button",{type:"button",className:`${It.cameraButtonAtTip} ${R?It.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(x)},"aria-label":`Câmera ${x.algorithm??"câmera"}`,children:b.jsx("span",{className:It.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(x.orientation??0)}deg)`},children:R3(x.algorithm,18,A)})})]})},x.id??L)})})}),b.jsx(K3,{className:`${It.mapSpot} ${r?It.selected:""} ${u||""}`,onClick:c?void 0:d,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${D}px solid transparent`,borderRight:`${D}px solid transparent`,borderTop:`${D}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T:w,"--arrow-opacity":C?1:0,backgroundColor:E},animate:{width:C?"auto":r?34:30,height:C?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:C?"4px 8px":0,y:C?-D:0,"--arrow-opacity":C?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(sp,{mode:"wait",children:C?b.jsx(qo.div,{className:It.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((x,L)=>b.jsxs(qo.div,{className:It.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(G.Typography,{className:It.cameraTypeCount,children:x.count}),x.icon&&b.jsx(G.Box,{className:It.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:It.count,children:e})},"collapsed")})})]})};du.displayName="MapSpot";const X3="_cameraCard_kvy53_2",Q3="_clickable_kvy53_12",J3="_topContainer_kvy53_66",eT="_playOverlay_kvy53_80",tT="_playIcon_kvy53_96",nT="_mediaImage_kvy53_117",oT="_mediaPlaceholder_kvy53_124",rT="_offlinePlaceholder_kvy53_130",sT="_offlinePlaceholderIcon_kvy53_141",iT="_offlinePlaceholderText_kvy53_147",aT="_menuButton_kvy53_155",lT="_menuButtonIcon_kvy53_174",cT="_closeButton_kvy53_180",uT="_closeButtonIcon_kvy53_199",dT="_bottomContainer_kvy53_205",fT="_infoRow_kvy53_218",pT="_iconWrapper_kvy53_226",hT="_cameraIcon_kvy53_233",mT="_cameraTypeImage_kvy53_240",gT="_headerText_kvy53_248",yT="_addressText_kvy53_265",bT="_tagsContainer_kvy53_282",vT="_tag_kvy53_282",xT="_tagOverflow_kvy53_298",CT="_recordingButtonContainer_kvy53_320",wT="_menuButtonInline_kvy53_329",ST="_menuButtonInlineIcon_kvy53_348",TT="_recordingButton_kvy53_320",PT="_recordingButtonIcon_kvy53_379",ET="_recordingButtonText_kvy53_382",MT="_cameraCardMenuPaper_kvy53_413",OT="_cameraCardMenuList_kvy53_437",kT="_cameraCardMenuItem_kvy53_445",DT="_menuItemDisabled_kvy53_484",IT="_cameraCardMenuItemText_kvy53_490",Ne={cameraCard:X3,clickable:Q3,topContainer:J3,playOverlay:eT,playIcon:tT,mediaImage:nT,mediaPlaceholder:oT,offlinePlaceholder:rT,offlinePlaceholderIcon:sT,offlinePlaceholderText:iT,menuButton:aT,menuButtonIcon:lT,closeButton:cT,closeButtonIcon:uT,bottomContainer:dT,infoRow:fT,iconWrapper:pT,cameraIcon:hT,cameraTypeImage:mT,headerText:gT,addressText:yT,tagsContainer:bT,tag:vT,tagOverflow:xT,recordingButtonContainer:CT,menuButtonInline:wT,menuButtonInlineIcon:ST,recordingButton:TT,recordingButtonIcon:PT,recordingButtonText:ET,cameraCardMenuPaper:MT,cameraCardMenuList:OT,cameraCardMenuItem:kT,menuItemDisabled:DT,cameraCardMenuItemText:IT};function RT(e,t){const n=t?"#FAF9F9":"#000000";return e===_s?b.jsx(As,{fill:n,size:20,className:Ne.cameraTypeImage}):e===js?b.jsx(Ns,{fill:n,size:20,className:Ne.cameraTypeImage}):b.jsx(Ct.VideocamOutlined,{className:Ne.cameraIcon,style:{color:n}})}const AT=({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),S=k.useRef(!1),[C,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(", "):"",V=[n,t,o].filter(Boolean).join(" - ");return b.jsxs(G.Box,{className:`${Ne.cameraCard} ${p?Ne.clickable:""} ${u||""}`.trim(),"data-theme":y?"dark":"light",onClick:()=>{S.current||p==null||p()},sx:{"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[b.jsxs(G.Box,{className:Ne.topContainer,children:[m?b.jsxs(G.Box,{className:Ne.offlinePlaceholder,"aria-label":"Câmera offline",children:[b.jsx(Ct.VideocamOff,{className:Ne.offlinePlaceholderIcon}),b.jsx("span",{className:Ne.offlinePlaceholderText,children:"Imagem não disponível"})]}):i?b.jsx("img",{src:i,alt:"",className:Ne.mediaImage}):b.jsx(G.Box,{className:Ne.mediaPlaceholder,"aria-hidden":!0}),b.jsx(G.Box,{className:Ne.playOverlay,children:b.jsx(Ct.PlayCircleOutline,{className:Ne.playIcon})}),!d&&M&&b.jsx(G.Tooltip,{title:D,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:b.jsxs(G.Box,{className:Ne.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[b.jsx("span",{className:Ne.tag,children:M}),_>0&&b.jsxs("span",{className:Ne.tagOverflow,children:["+",_]})]})}),f&&b.jsx(G.IconButton,{onClick:N=>{N.stopPropagation(),f()},className:Ne.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(Ct.Close,{className:Ne.closeButtonIcon})}),T&&!d&&b.jsx(G.IconButton,{ref:v,onClick:N=>{N.stopPropagation(),E?w(!0):c==null||c()},className:Ne.menuButton,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(Ct.MoreHoriz,{className:Ne.menuButtonIcon})})]}),E&&b.jsx(G.Popover,{open:C,anchorEl:v.current,onClose:()=>{w(!1),S.current=!0,requestAnimationFrame(()=>{S.current=!1})},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:b.jsx(G.Box,{className:Ne.cameraCardMenuPaper,"data-theme":y?"dark":"light",children:b.jsx(G.Box,{className:Ne.cameraCardMenuList,role:"menu",children:l.map(N=>b.jsx("button",{type:"button",className:`${Ne.cameraCardMenuItem} ${h?Ne.menuItemDisabled:""}`,role:"menuitem",disabled:h,onClick:()=>{var x;h||((x=N.onClick)==null||x.call(N),w(!1))},children:b.jsx("span",{className:Ne.cameraCardMenuItemText,children:N.label})},N.label))})})}),b.jsxs(G.Box,{className:`${Ne.bottomContainer} bottom-container`,children:[b.jsxs(G.Box,{className:Ne.infoRow,children:[b.jsx(G.Box,{className:Ne.iconWrapper,children:RT(a,y)}),b.jsx(G.Tooltip,{title:e,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ne.headerText,children:e})})]}),V&&b.jsx(G.Tooltip,{title:V,placement:"top",enterDelay:300,children:b.jsx("span",{className:Ne.addressText,children:V})}),d&&b.jsxs(G.Box,{className:Ne.recordingButtonContainer,children:[T&&b.jsx(G.IconButton,{ref:v,onClick:()=>{E?w(!0):c==null||c()},className:Ne.menuButtonInline,"aria-label":"Opções","aria-haspopup":E?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(Ct.MoreHoriz,{className:Ne.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:Ne.recordingButton,onClick:N=>{N.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(Ct.VideocamOutlined,{className:Ne.recordingButtonIcon}),b.jsx("span",{className:Ne.recordingButtonText,children:"Ver gravação"})]})]})]})]})},NT=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},_T=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},jT="_container_1whpg_2",LT="_zoomButton_1whpg_10",VT="_stateLayer_1whpg_43",$T="_icon_1whpg_59",gn={container:jT,zoomButton:LT,stateLayer:VT,icon:$T},FT=({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=NT(e,o,i),d=_T(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(Ct.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(Ct.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(Ct.ZoomOutMap,{className:gn.icon,sx:p})})})]})};var BT=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 HT=no(BT),zT="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 In={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},WT="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=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=WT+"?"+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)}}_i.loadingStatus=In.NOT_LOADED;_i.listeners=[];const UT="GMP_visgl_rgmlibrary_v1_default",YT=[`gmp_visgl_reactgooglemaps_v${zT}`],Ls=k.createContext(null);function qT(){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 GT(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=UT: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 ZT(e){return k.useMemo(()=>e.disableUsageAttribution?null:YT,[e.disableUsageAttribution])}const KT=e=>{const{children:t}=e,n=dr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=qT(),{status:l,loadedLibraries:c,importLibrary:u}=GT(n),d=ZT(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 XT(e,t){for(const n of tP){const o=t[n],r=ty[n];k.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(QT(r,e,a))});return()=>i.remove()},[e,r,o])}}function QT(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(JT.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(eP.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"},JT=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],eP=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],tP=Object.keys(ty);function nP(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e}),t.current}function oP(e,t){const n=nP(e);return k.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function rP(e,t,n){k.useEffect(e,[oP(t,n)])}function sP(e,t){rP(e,t,HT)}const iP=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 aP(e,t){const n={},o=Object.keys(t);for(const r of o)iP.has(r)&&(n[r]=t[r]);sP(()=>{e&&e.setOptions(n)},[n])}function ny(){var e;return((e=k.useContext(Ls))===null||e===void 0?void 0:e.status)||In.NOT_LOADED}function lP(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 cP(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 cP(e)?e:e.toJSON()}function uP(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 dP=()=>{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 fP(){const[e,t]=k.useState(null),n=k.useCallback(o=>t(o),[t]);return[e,n]}function ry(){return ny()===In.LOADED}function pP(){const[,e]=k.useReducer(t=>t+1,0);return e}function hP(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 mP(e){const t=pP(),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",()=>{hP(e,n),t()});return()=>o.remove()},[e,t]),n}class Ci{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)}}Ci.entries={};function gP(e,t){const n=ry(),[o,r]=k.useState(null),[i,a]=fP(),l=mP(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"]),S=e.zoom!==void 0||e.defaultZoom!==void 0,C=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!S||!C)&&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 V,N;if(m&&Ci.has(D)?(N=Ci.pop(D),V=N.getDiv(),i.appendChild(V),N.setOptions(v),setTimeout(()=>N.setCenter(N.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",i.appendChild(V),N=new google.maps.Map(V,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(!S||!C)&&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},V.remove(),m?Ci.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]=gP(e,i);uP(l,u,e),XT(l,e),aP(l,e);const d=lP(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 S,C,w;return{center:{lat:h??0,lng:m??0},zoom:(S=e.zoom)!==null&&S!==void 0?S:0,heading:(C=e.heading)!==null&&C!==void 0?C: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 S=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>S.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===In.AUTH_FAILURE?k.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},k.createElement(dP,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 yP(...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 yP("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 bP(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 vP{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 xP=new vP;function CP(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 SP=k.createContext(null),wP={BOTTOM:["50%","100%"]},ay=k.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=PP(e),c=k.useMemo(()=>a?{marker:a}:null,[a]);return k.useImperativeHandle(t,()=>a,[a]),l?k.createElement(SP.Provider,{value:c},Xo.createPortal(k.createElement(TP,{anchorPoint:i,styles:o,className:r},n),l)):null});ay.displayName="AdvancedMarker";function ic(e){return e.nodeType===Node.ELEMENT_NODE}const TP=({children:e,styles:t,className:n})=>k.createElement("div",{className:n,style:t},e);function PP(e){const[t,n]=k.useState(null),[o,r]=k.useState(null),i=fa(),a=bP("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:w,title:C,zIndex:S,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 V=null;return _>0&&(V=document.createElement("div"),D.content=V,r(V)),()=>{D.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,_]),k.useEffect(()=>{!(t!=null&&t.content)||!ic(t.content)||_>0||(t.content.className=u??"")},[t,u,_]),EP(t,T,E,M,_>0),ri(t,"position",w),ri(t,"title",C??""),ri(t,"zIndex",S),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 EP(e,t,n,o,r){k.useEffect(()=>{if(!e||!r)return;const i=CP(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??wP.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",xP.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function MP(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 OP=k.forwardRef((e,t)=>{const n=MP(e);return k.useImperativeHandle(t,()=>n,[n]),k.createElement(k.Fragment,null)});OP.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 w=v===g?f:p+m*v,C=window.setTimeout(()=>{t.setZoom(w)},y*v);a.current.push(C)}},[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 kP=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}},kP)});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 DP="_googleMap_1gh3l_1",IP="_container_1gh3l_14",RP="_errorContainer_1gh3l_29",si={googleMap:DP,container:IP,errorContainer:RP},AP={lat:-26.3044,lng:-48.8487},NP=13,_P={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},jP=({options:e,onLoad:t,children:n})=>{const o=fa();return k.useEffect(()=>{o&&(o.setOptions(_P),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},uy=({center:e=AP,zoom:t=NP,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(ZT,{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(jP,{options:l,onLoad:c,children:b.jsxs(pu,{children:[b.jsx(cy,{}),o]})})},p)})})};uy.displayName="GoogleMap";const Cp=[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=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 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=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,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],w=a[2*y+1];v>=t&&v<=o&&w>=n&&w<=r&&u.push(i[y])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&u.push(i[h]),(d===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-d)),(d===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-d))}return u}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],u=o*o;for(;l.length;){const d=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let y=p;y<=f;y++)Sp(i[2*y],i[2*y+1],t,n)<=u&&c.push(r[y]);continue}const h=p+f>>1,m=i[2*h],g=i[2*h+1];Sp(m,g,t,n)<=u&&c.push(r[h]),(d===0?t-o<=m:n-o<=g)&&(l.push(p),l.push(h-1),l.push(1-d)),(d===0?t+o>=m:n+o>=g)&&(l.push(h+1),l.push(f),l.push(1-d))}return c}}function 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 Sp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const LP={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},wp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),po=2,Un=3,hl=4,Hn=5,fy=6;class VP{constructor(t){this.options=Object.assign(Object.create(LP),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:o,maxZoom:r}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const a=[];for(let c=0;c<t.length;c++){const u=t[c];if(!u.geometry)continue;const[d,f]=u.geometry.coordinates,p=wp(ii(d)),h=wp(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+Hn]>1?Tp(u,p,this.clusterProps):this.points[u[p+Un]])}return d}getChildren(t){const n=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[o];if(!i)throw new Error(r);const a=i.data;if(n*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,o-1)),c=a[n*this.stride],u=a[n*this.stride+1],d=i.within(c,u,l),f=[];for(const p of d){const h=p*this.stride;a[h+hl]===t&&f.push(a[h+Hn]>1?Tp(a,h,this.clusterProps):this.points[a[h+Un]])}if(f.length===0)throw new Error(r);return f}getLeaves(t,n,o){n=n||10,o=o||0;const r=[];return this._appendLeaves(r,t,n,o,0),r}getTile(t,n,o){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:l}=this.options,c=l/a,u=(o-c)/i,d=(o+1+c)/i,f={features:[]};return this._addTileFeatures(r.range((n-c)/i,u,(n+1+c)/i,d),r.data,n,o,i,f),n===0&&this._addTileFeatures(r.range(1-c/i,u,1,d),r.data,i,o,i,f),n===i-1&&this._addTileFeatures(r.range(0,u,c/i,d),r.data,-1,o,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const o=this.getChildren(t);if(n++,o.length!==1)break;t=o[0].properties.cluster_id}return n}_appendLeaves(t,n,o,r,i){const a=this.getChildren(n);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(t,c.cluster_id,o,r,i):i<r?i++:t.push(l),t.length===o)break}return i}_createTree(t){const n=new 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+Hn]>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+Un]];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+Un]:m=this.points[n[c+Un]].id,m!==void 0&&(h.id=m),a.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:o,extent:r,reduce:i,minPoints:a}=this.options,l=o/(r*Math.pow(2,n)),c=t.data,u=[],d=this.stride;for(let f=0;f<c.length;f+=d){if(c[f+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+Hn];let y=g;for(const v of m){const w=v*d;c[w+po]>n&&(y+=c[w+Hn])}if(y>g&&y>=a){let v=p*g,w=h*g,C,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+po]<=n)continue;c[M+po]=n;const _=c[M+Hn];v+=c[M]*_,w+=c[M+1]*_,c[M+hl]=T,i&&(C||(C=this._map(c,f,!0),S=this.clusterProps.length,this.clusterProps.push(C)),i(C,this._map(c,M)))}c[f+hl]=T,u.push(v/y,w/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 w=v*d;if(!(c[w+po]<=n)){c[w+po]=n;for(let C=0;C<d;C++)u.push(c[w+C])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,o){if(t[n+Hn]>1){const a=this.clusterProps[t[n+fy]];return o?Object.assign({},a):a}const r=this.points[t[n+Un]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Tp(e,t,n){return{type:"Feature",id:e[t+Un],properties:py(e,t,n),geometry:{type:"Point",coordinates:[$P(e[t]),FP(e[t+1])]}}}function py(e,t,n){const o=e[t+Hn],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+fy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Un],point_count:o,point_count_abbreviated:r})}function 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 $P(e){return(e-.5)*360}function FP(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const BP={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 zP(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 HP(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||!zP(e.cameras,t.cameras))}function WP(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&&HP(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function UP(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function YP(e,t,n,o={}){const r=k.useRef(null),[i,a]=k.useState([]),l=k.useRef(""),c={...BP,...o};return k.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=UP(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 VP({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(C=>C.properties.cameras||[]),w=y.reduce((C,S)=>C+S.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:w,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=>WP(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=k3,selectedZoomLevel:r=dl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f,expandAll:p})=>{const{isLoaded:h,currentZoom:m,bounds:g,zoomToPosition:y}=fu(),v=(a==null?void 0:a.id)??i,{spotsForClustering:w,pinnedSpot:C}=k.useMemo(()=>{if(v==null)return{spotsForClustering:e,pinnedSpot:null};const M=e.find(D=>D.id===v)??null;return M?{spotsForClustering:e.filter(D=>D.id!==v),pinnedSpot:M}:{spotsForClustering:e,pinnedSpot:null}},[e,v]),S=YP(w,m,g),T=k.useCallback(M=>{M.isCluster?y({lat:M.lat,lng:M.lng},Eo):f?y({lat:M.lat,lng:M.lng},m<Eo?Eo:r??o):(a?a.id===M.id:i===M.id)?t==null||t(M):m<Eo?(y({lat:M.lat,lng:M.lng},Eo),t==null||t(M)):(m<(r??dl)&&y({lat:M.lat,lng:M.lng},r??dl),t==null||t(M))},[y,f,a,i,m,r,o,t]),E=k.useCallback(M=>!c&&!u?!1:!M.isCluster&&M.id===c?!0:M.isCluster&&u&&M.cameras?M.cameras.some(_=>_.id===u):!1,[c,u]);return h?b.jsxs(b.Fragment,{children:[S.map((M,_)=>{const D=!M.isCluster&&String(M.id)===String(c);return b.jsx(Ep,{spot:M,currentZoom:m,isSelected:!!p||D,selectedCameraId:l,isHighlighted:E(M),highlightedCameraId:D?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:T,onCameraClick:n},M.id??_)}),C&&b.jsx(Ep,{spot:C,currentZoom:m,isSelected:!0,selectedCameraId:l,isHighlighted:String(C.id)===String(c),highlightedCameraId:String(C.id)===String(c)?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:T,onCameraClick:n},`pinned-${C.id}`)]}):null};hy.displayName="MapMarkers";const qP="_searchBar_uld4g_1",GP="_startIconContainer_uld4g_106",KP="_endIconContainer_uld4g_117",ZP="_endIconContainerClickable_uld4g_153",XP="_defaultIcon_uld4g_157",Gr={searchBar:qP,startIconContainer:GP,endIconContainer:KP,endIconContainerClickable:ZP,defaultIcon:XP},QP=e=>()=>{e&&e()},JP=e=>t=>{e&&e(t)},eE=()=>b.jsx(gt.Search,{className:Gr.defaultIcon}),tE=e=>e||eE(),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=tE(t),p=QP(n),h=JP(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 nE=bt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),oE=bt([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"),rE="_container_1mb8b_1",sE="_iconWrapper_1mb8b_11",iE="_icon_1mb8b_11",aE="_title_1mb8b_21",lE="_subtitle_1mb8b_30",cE="_description_1mb8b_34",uE="_button_1mb8b_38",ho={container:rE,iconWrapper:sE,icon:iE,title:aE,subtitle:lE,description:cE,button:uE},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(oE,{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(nE,{}),onClick:e,className:ho.button,children:t})]})});gy.displayName="NotFoundContent";const dE=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}},fE=({items:e,isExpanded:t=!0,onClick:n})=>{const o=k.useMemo(()=>dE(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(V=>V===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(D=E.onClick)==null||D.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,_,D)=>{var V;i(E.id),l(M.id),D!=null&&D.closeMenu&&(f(null),h(null)),(V=M.onClick)==null||V.call(M,_),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},yy=e=>typeof e=="number"?`${e*4}px`:e,pE=({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}=fE({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),w=t?r.spacing(2):r.spacing(4),C=t&&y?r.palette.primary.main:"transparent",S=t?"transparent":y?r.palette.primary.main:"transparent",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,minHeight:t?56:32,justifyContent:t?"flex-start":"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"padding 0.2s ease, min-height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",color:t&&y?r.palette.primary.contrastText:r.palette.text.primary,backgroundColor:C,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t&&!y?r.palette.action.hover:C}},children:b.jsxs(G.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:.25,sx:{width:"100%"},children:[b.jsx(G.Box,{sx:{width:56,height:w,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(G.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500,fontSize:t?"14px":"10px"},children:g.label}),t&&g.trailingIcon?b.jsx(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(pE,{item:_,isActive:D,onClick:V=>h(g,_,V)},_.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],backgroundImage:"none"}},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 hE=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},mE=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=k.useMemo(()=>hE(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)}}},gE=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=gE(d.shape.borderRadius),[h,m]=k.useState(!1),g=k.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:w,openMenu:C,closeMenu:S,handleItemClick:T}=mE({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}C(B)},V=(B,F)=>{T(B,F),m(!1)},N=b.jsx(G.Stack,{direction:"column",spacing:.5,children:e.map(B=>{const F=w(B);return b.jsxs(G.MenuItem,{selected:F,onClick:z=>V(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,{sx:{fontSize:14,fontWeight:F?600:500},children:B.label})]},B.id)})}),x=b.jsxs(G.Box,{sx:{borderRadius:"16px 16px 8px 8px",backgroundColor:d.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026",display:"flex",flexDirection:"column",maxHeight:d.spacing(62)},children:[i?b.jsx(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,"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:d.palette.action.disabled,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:d.palette.action.active},scrollbarWidth:"thin",scrollbarColor:`${d.palette.action.disabled} transparent`},children:N})]}),L=a?b.jsxs(G.MenuItem,{onClick:B=>{var F;m(!1),S(),(F=a.onClick)==null||F.call(a,B)},sx:{borderRadius:"12px",gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(G.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(G.Typography,{sx:{fontSize:14,fontWeight:500},children:a.label})]}):null,R=L?b.jsx(G.Box,{sx:{borderRadius:"8px",backgroundColor:d.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026"},children:L}):null,A=b.jsxs(G.Stack,{direction:"column",spacing:.25,sx:{minWidth:d.spacing(32)},children:[x,R]});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:"12px",px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"width 0.2s ease, height 0.2s ease, padding 0.2s ease",backgroundColor:d.palette.mode==="light"?"#C7C6C6":d.palette.action.hover,"&:hover":{backgroundColor:d.palette.mode==="light"?"#B8B7B7":d.palette.action.selected}},children:b.jsxs(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: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: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))}},yE=(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}}),Rn={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((Rn?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Li=new WeakMap;function Cy(e){var t;return Vi(e)&&!!((t=Li.get(e))!=null&&t[0])}function bE(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 Vi(e){return typeof(e==null?void 0:e.then)=="function"}function Sy(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function wy(e,t,n){var o;const r=new Set;for(const i of((o=n.get(e))==null?void 0:o.t)||[])r.add(i);for(const i of t.p)r.add(i);return r}const vE=(e,t,...n)=>t.read(...n),xE=(e,t,...n)=>t.write(...n),CE=(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)},SE=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},wE=(e,t)=>{var n;const o=Nt(e),r=o[0],i=o[6],a=o[9];if((Rn?"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},TE=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)},PE=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((Rn?"production":void 0)!=="production"&&o.has(p))throw new Error("[Bug] invalidated atom exists");d.add(p),f.pop();continue}u.add(p);for(const m of wy(p,h,n))u.has(m)||f.push(m)}for(let p=c.length-1;p>=0;--p){const[h,m]=c[p];let g=!1;for(const y of m.d.keys())if(y!==h&&r.has(y)){g=!0;break}g&&(a(e,h),l(e,h)),o.delete(h)}},uc=new WeakSet,EE=(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[V,N]of v.d)if(h(e,V).n!==N){D=!0;break}if(!D)return v}v.d.clear();let w=!0;function C(){i.has(t)&&(g(e,t),p(e),f(e))}function S(D){var V;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),Cy(v.v)&&Sy(t,v.v,N),i.has(t)&&((V=i.get(D))==null||V.t.add(t)),w||C()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(Rn?"production":void 0)!=="production"&&!lc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&lc(t)&&(E=(...D)=>{if((Rn?"production":void 0)!=="production"&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,t,...D)}finally{p(e),f(e)}}),E}},_=v.n;try{(Rn?"production":void 0)!=="production"&&uc.delete(e);const D=u(e,t,S,M);return(Rn?"production":void 0)!=="production"&&uc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,D),Vi(D)&&(cc(D,()=>T==null?void 0:T.abort()),D.then(C,C)),(n=c.r)==null||n.call(c,t),v}catch(D){return delete v.v,v.e=D,++v.n,v}finally{w=!1,_!==v.n&&a.get(t)===_&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},ME=(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 wy(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},OE=(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=w=>ji(d(e,w)),v=(w,...C)=>{var S;const T=l(e,w);try{if(w===t){if(!xy(w))throw new Error("atom not writable");(Rn?"production":void 0)!=="production"&&uc.add(e);const E=T.n,M=C[0];m(e,w,M),h(e,w),E!==T.n&&(r.add(w),f(e,w),(S=i.c)==null||S.call(i,w));return}else return p(e,w,...C)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},kE=(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)}}},DE=(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 w=(...C)=>{try{return p(e,t,...C)}finally{v||(d(e),u(e))}};try{const C=l(e,t,w);C&&(g.u=()=>{v=!0;try{C()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},IE=(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},RE=(e,t,n)=>{const o=Nt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(Vi(n))for(const l of r.d.keys())Sy(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,Vi(a)&&bE(a))},AE=(e,t)=>{const n=Nt(e)[14];return ji(n(e,t))},NE=(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)}},_E=(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((Rn?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function jE(...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,{},vE,xE,CE,SE,wE,TE,PE,EE,ME,OE,kE,DE,IE,RE,AE,NE,_E,void 0].map((o,r)=>e[r]||o);return Ty.set(t,Object.freeze(n)),t}const Py={};let LE=0;function mu(e,t){const n=`atom${++LE}`,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=VE,o.write=$E),o}function VE(e){return e(this)}function $E(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function FE(){return jE()}let _r;function BE(){return _r||(_r=FE(),(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 zE={},HE=k.createContext(void 0);function Ey(e){return k.useContext(HE)||BE()}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}))},WE=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),WE(d)}return u}function UE(e,t){const n=Ey();return k.useCallback((...r)=>{if((zE?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function $i(e,t){return[My(e),UE(e)]}const Oy=mu(0),ky=mu(!0),YE=mu(null),gu=k.createContext(null),Dy=({children:e})=>{const t=k.useRef(null),[n,o]=$i(Oy),[r,i]=$i(ky),[a,l]=k.useState(!1),[c,u]=k.useState(0),[d,f]=k.useState(!1);k.useEffect(()=>{const C=t.current;if(!C)return;const S=()=>{if(C.seekable&&C.seekable.length>0){const M=C.seekable.end(C.seekable.length-1);u(M),f(M>0)}else C.duration&&isFinite(C.duration)&&(u(C.duration),f(!0))},T=()=>l(!0),E=()=>l(!1);return C.addEventListener("durationchange",S),C.addEventListener("loadedmetadata",S),C.addEventListener("play",T),C.addEventListener("pause",E),S(),()=>{C.removeEventListener("durationchange",S),C.removeEventListener("loadedmetadata",S),C.removeEventListener("play",T),C.removeEventListener("pause",E)}},[]);const p=k.useCallback(C=>{o(C)},[o]),h=k.useCallback(C=>{i(C)},[i]),m=k.useCallback(C=>{const S=t.current;!S||!d||(S.currentTime=C,o(C),i(!1))},[d,o,i]),g=k.useCallback(async()=>{const C=t.current;if(C)try{await C.play(),l(!0)}catch(S){console.error("Failed to play video:",S)}},[]),y=k.useCallback(()=>{const C=t.current;C&&(C.pause(),l(!1))},[]),v=k.useCallback(()=>{a?y():g()},[a,g,y]),w=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:w,children:e})},yu=()=>k.useContext(gu),qE=()=>{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},GE=({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($=>{c.current=$,l!=null&&l.videoRef&&(l.videoRef.current=$)},[l]),d=k.useMemo(()=>{if(!t||!t.length)return null;if(n){const $=t.find(W=>W.value===n);if($)return $}return t[0]},[t,n]),[f,p]=k.useState(d),[h,m]=k.useState(!1),[g,y]=k.useState(!0),[v,w]=k.useState(!1),[C,S]=k.useState(0),[T,E]=k.useState(0),[M,_]=k.useState(1),[D,V]=k.useState(1),[N,x]=k.useState(0),[L,R]=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),[I,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 $=c.current;if(!$)return;if(!$.seekable||$.seekable.length===0){y(!0),w(!1),l&&l.setIsLive(!0);return}const W=pa($),H=Math.max(0,W-$.currentTime);se.current={seekableEnd:W,currentTime:$.currentTime,canSeek:W>0,isLive:H<=(r??2)},Q.current||(Q.current=!0,requestAnimationFrame(()=>{Q.current=!1;const ee=se.current;E(ee.seekableEnd),S(ee.currentTime),w(ee.canSeek),y(ee.isLive),l&&(l.setCurrentTime(ee.currentTime),l.setIsLive(ee.isLive))}))},[r,l]);return k.useEffect(()=>{const $=c.current;if(!$)return;const W=()=>m(!0),H=()=>m(!1),ee=()=>Y(!0),X=()=>Y(!0),re=()=>Y(!1),te=()=>Y(!1);return $.addEventListener("play",W),$.addEventListener("pause",H),$.addEventListener("waiting",ee),$.addEventListener("loadstart",X),$.addEventListener("canplay",re),$.addEventListener("playing",te),$.addEventListener("timeupdate",J),$.addEventListener("durationchange",J),$.addEventListener("loadedmetadata",J),$.addEventListener("progress",J),()=>{$.removeEventListener("play",W),$.removeEventListener("pause",H),$.removeEventListener("waiting",ee),$.removeEventListener("loadstart",X),$.removeEventListener("canplay",re),$.removeEventListener("playing",te),$.removeEventListener("timeupdate",J),$.removeEventListener("durationchange",J),$.removeEventListener("loadedmetadata",J),$.removeEventListener("progress",J)}},[J]),k.useEffect(()=>{const $=c.current;$&&(Y(!0),q?($.srcObject!==q&&($.srcObject=q),$.getAttribute("src")&&$.removeAttribute("src")):K?($.srcObject&&($.srcObject=null),$.src!==K&&($.src=K,$.load())):($.srcObject&&($.srcObject=null),$.getAttribute("src")&&$.removeAttribute("src")),o&&$.play().then(()=>{}).catch(()=>{}))},[q,K,o]),k.useEffect(()=>{const $=c.current;$&&(Z?$.playbackRate=M:($.playbackRate=1,_(1)))},[M,Z]),k.useEffect(()=>{D<=1&&(x(0),R(0))},[D]),k.useEffect(()=>{const $=()=>{z(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",$),()=>{document.removeEventListener("fullscreenchange",$)}},[]),k.useEffect(()=>{if(D<=1)return;const $=a.current;if(!$)return;const W=requestAnimationFrame(()=>{const H=$.getBoundingClientRect(),ee=Kr(N,L,D,H.width,H.height);x(ee.panX),R(ee.panY)});return()=>cancelAnimationFrame(W)},[F]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:C,setCurrentTime:S,seekableEnd:T,playbackRate:M,setPlaybackRate:_,zoom:D,setZoom:V,panX:N,setPanX:x,panY:L,setPanY:R,isDraggingRef:A,dragStartRef:O,panStartRef:j,didDragRef:B,isFullscreen:F,isLoading:I,canAdjustPlaybackRate:Z,updateLiveStatus:J}},KE="_container_29bzh_1",ZE="_loader_29bzh_78",XE="_spinner_29bzh_88",QE="_video_29bzh_111",JE="_videoZoomed_29bzh_119",e6="_timestampOverlay_29bzh_127",t6="_timestampText_29bzh_140",n6="_badgeFloating_29bzh_152",o6="_controlsOverlay_29bzh_159",r6="_controlsVisible_29bzh_183",s6="_timeline_29bzh_188",i6="_controlsRow_29bzh_195",a6="_controlGroup_29bzh_213",l6="_iconButton_29bzh_230",c6="_menuButton_29bzh_281",u6="_liveBadge_29bzh_291",d6="_liveBadgeInactive_29bzh_309",f6="_liveBadgeActive_29bzh_319",p6="_recordingBadge_29bzh_329",h6="_recordingDot_29bzh_348",m6="_emptyState_29bzh_377",g6="_emptyStateIcon_29bzh_389",y6="_emptyStateText_29bzh_394",b6="_controlMenuWrapper_29bzh_400",v6="_zoomControl_29bzh_418",x6="_zoomValue_29bzh_425",Ie={container:KE,loader:ZE,spinner:XE,video:QE,videoZoomed:JE,timestampOverlay:e6,timestampText:t6,badgeFloating:n6,controlsOverlay:o6,controlsVisible:r6,timeline:s6,controlsRow:i6,controlGroup:a6,iconButton:l6,menuButton:c6,liveBadge:u6,liveBadgeInactive:d6,liveBadgeActive:f6,recordingBadge:p6,recordingDot:h6,emptyState:m6,emptyStateIcon:g6,emptyStateText:y6,controlMenuWrapper:b6,zoomControl:v6,zoomValue:x6},C6=({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)}`))})]})},S6=k.memo(C6),w6=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];function T6(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),r=w6[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 Iy=k.memo(({show:e})=>{const[t,n]=k.useState("");return k.useEffect(()=>{if(!e)return;const o=()=>n(T6());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})})});Iy.displayName="Timestamp";const P6=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},E6=(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()},M6=(e,t,n)=>()=>{const o=e.current;if(!o||!t)return;const r=pa(o);o.currentTime=Math.max(r-.1,0),n()},O6=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},k6=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},D6=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},I6=(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()},R6=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"})})},A6=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"})})},N6={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:w=!0,isRecording:C=!1,recordingLabel:S="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),R=k.useRef(!0),A=k.useRef(null);R.current=x;const{containerRef:O,videoRef:j,setVideoRef:B,selectedQuality:F,setSelectedQuality:z,isPlaying:I,isLive:Y,canSeek:q,currentTime:K,setCurrentTime:oe,seekableEnd:Z,playbackRate:Q,setPlaybackRate:se,zoom:J,setZoom:$,panX:W,setPanX:H,panY:ee,setPanY:X,isDraggingRef:re,dragStartRef:te,panStartRef:ue,didDragRef:ie,isFullscreen:me,isLoading:le,canAdjustPlaybackRate:de,updateLiveStatus:pe}=GE({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f});k.useEffect(()=>{const Ce=O.current;if(!Ce)return;const je=()=>{A.current&&(clearTimeout(A.current),A.current=null),L(!0)},Je=()=>{A.current=setTimeout(()=>{},1e4)},Ht=()=>{R.current||L(!0),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{},1e4)};return Ce.addEventListener("mouseenter",je),Ce.addEventListener("mouseleave",Je),Ce.addEventListener("mousemove",Ht),()=>{Ce.removeEventListener("mouseenter",je),Ce.removeEventListener("mouseleave",Je),Ce.removeEventListener("mousemove",Ht),A.current&&clearTimeout(A.current)}},[]);const _e=k.useMemo(()=>P6(j),[j]),Oe=k.useMemo(()=>E6(j,q,pe),[j,q,pe]);k.useMemo(()=>M6(j,q,pe),[j,q,pe]);const Xe=k.useMemo(()=>O6(O),[O]);k.useMemo(()=>k6(t,z,o),[t,z,o]);const tt=k.useMemo(()=>D6(q,oe),[q,oe]),wt=k.useMemo(()=>I6(j,q,pe),[j,q,pe]),ht=k.useRef(W),Ee=k.useRef(ee);ht.current=W,Ee.current=ee;const Se=k.useRef(J);Se.current=J;const xe=k.useCallback(Ce=>{if($(Ce),Ce<=1)H(0),X(0);else{const je=O.current;if(je){const Je=je.getBoundingClientRect(),Ht=Kr(ht.current,Ee.current,Ce,Je.width,Je.height);H(Ht.panX),X(Ht.panY)}}},[O,$,H,X]),$e=k.useCallback(Ce=>{const je=h.indexOf(J),Je=Math.max(0,Math.min(h.length-1,je+Ce));xe(h[Je])},[J,h,xe]),Be=k.useCallback(Ce=>{if(ie.current){ie.current=!1;return}const je=O.current;if(!je)return;const Je=je.getBoundingClientRect(),Ht=Ce.clientX-Je.left-Je.width/2,co=Ce.clientY-Je.top-Je.height/2,Or=(h.indexOf(Se.current)+1)%h.length,hn=h[Or];if(hn<=1){$(1),H(0),X(0);return}const Ks=-Ht*(1-1/hn),Kb=-co*(1-1/hn),yd=Kr(Ks,Kb,hn,Je.width,Je.height);$(hn),H(yd.panX),X(yd.panY)},[h,O,$,H,X,ie]),it=k.useCallback(Ce=>{Se.current<=1||(Ce.preventDefault(),re.current=!0,ie.current=!1,te.current={x:Ce.clientX,y:Ce.clientY},ue.current={x:ht.current,y:Ee.current})},[re,ie,te,ue]),Qe=k.useCallback(Ce=>{if(!re.current||Se.current<=1)return;Ce.preventDefault();const je=Ce.clientX-te.current.x,Je=Ce.clientY-te.current.y;(Math.abs(je)>3||Math.abs(Je)>3)&&(ie.current=!0);const Ht=O.current;if(!Ht)return;const co=Ht.getBoundingClientRect(),Mr=ue.current.x+je/Se.current,Or=ue.current.y+Je/Se.current,hn=Kr(Mr,Or,Se.current,co.width,co.height);H(hn.panX),X(hn.panY)},[O,re,te,ue,ie,H,X]),_t=k.useCallback(()=>{re.current=!1},[re]),ke=k.useCallback(Ce=>{if(Se.current<=1||Ce.touches.length!==1)return;const je=Ce.touches[0];re.current=!0,ie.current=!1,te.current={x:je.clientX,y:je.clientY},ue.current={x:ht.current,y:Ee.current}},[re,ie,te,ue]),ct=k.useCallback(Ce=>{if(!re.current||Se.current<=1||Ce.touches.length!==1)return;const je=Ce.touches[0],Je=je.clientX-te.current.x,Ht=je.clientY-te.current.y;(Math.abs(Je)>3||Math.abs(Ht)>3)&&(ie.current=!0);const co=O.current;if(!co)return;const Mr=co.getBoundingClientRect(),Or=ue.current.x+Je/Se.current,hn=ue.current.y+Ht/Se.current,Ks=Kr(Or,hn,Se.current,Mr.width,Mr.height);H(Ks.panX),X(Ks.panY)},[O,re,te,ue,ie,H,X]),vt=k.useCallback(()=>{re.current=!1},[re]);k.useEffect(()=>{const Ce=j.current;if(!Ce)return;const je=Je=>{Se.current>1&&re.current&&Je.preventDefault()};return Ce.addEventListener("touchmove",je,{passive:!1}),()=>{Ce.removeEventListener("touchmove",je)}},[j,re]);const Dt=k.useMemo(()=>p.map(Ce=>({value:Ce,label:`${Ce}x`})),[p]);k.useMemo(()=>t.map(Ce=>({value:Ce.value,label:Ce.label})),[t]),F==null||F.label;const pn=`${Math.round(J*100)}%`,ge=`${Q}x`,De=q&&Z>0,ut=yE(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(${W}px, ${ee}px)`:void 0}),[J,W,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(gt.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:vt}),b.jsx(Iy,{show:v}),C&&!x&&b.jsx("div",{className:Ie.badgeFloating,children:b.jsxs("span",{className:Ie.recordingBadge,children:[b.jsx("span",{className:Ie.recordingDot}),S]})}),Y&&!C&&!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:[w&&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:N6})}),b.jsxs("div",{className:Ie.controlsRow,children:[b.jsxs("div",{className:Ie.controlGroup,children:[C?b.jsxs("span",{className:Ie.recordingBadge,children:[b.jsx("span",{className:Ie.recordingDot}),S]}):b.jsx("span",{className:`${Ie.liveBadge} ${Y?Ie.liveBadgeActive:Ie.liveBadgeInactive}`,children:"ao vivo"}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>Oe(-15),disabled:!q,"aria-label":"Voltar 15 segundos",children:b.jsx(R6,{})}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:_e,"aria-label":"Play/Pause",children:I?b.jsx(gt.Pause,{fontSize:"small"}):b.jsx(gt.PlayArrow,{fontSize:"small"})}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>Oe(15),disabled:!q,"aria-label":"Avançar 15 segundos",children:b.jsx(A6,{})})]}),b.jsxs("div",{className:Ie.controlGroup,children:[b.jsx(S6,{icon:b.jsx(gt.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:()=>xe(1),disabled:J<=1,"aria-label":"Resetar zoom",children:b.jsx(gt.Undo,{fontSize:"small"})}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>$e(-1),disabled:J<=h[0],"aria-label":"Diminuir zoom",children:b.jsx(gt.ZoomOut,{fontSize:"small"})}),b.jsx("span",{className:Ie.zoomValue,children:pn}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:()=>$e(1),disabled:J>=h[h.length-1],"aria-label":"Aumentar zoom",children:b.jsx(gt.ZoomIn,{fontSize:"small"})})]}),b.jsx(G.IconButton,{className:Ie.iconButton,onClick:Xe,"aria-label":"Fullscreen",children:me?b.jsx(gt.CloseFullscreen,{fontSize:"small"}):b.jsx(gt.OpenInFull,{fontSize:"small"})})]})]})]})]})})};bu.displayName="VideoPlayer";const _6=bt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),j6=bt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),L6=bt(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"),V6=bt(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 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 $6(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 F6(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 B6={...P},Ry=B6.useSyncExternalStore;function z6(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 Ry(c,l,a)}function Ay(e={}){const{themeId:t}=e;return function(o,r={}){let i=ex();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}=$6({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 xP=new vP;function CP(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 wP=k.createContext(null),SP={BOTTOM:["50%","100%"]},ay=k.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=PP(e),c=k.useMemo(()=>a?{marker:a}:null,[a]);return k.useImperativeHandle(t,()=>a,[a]),l?k.createElement(wP.Provider,{value:c},Xo.createPortal(k.createElement(TP,{anchorPoint:i,styles:o,className:r},n),l)):null});ay.displayName="AdvancedMarker";function ic(e){return e.nodeType===Node.ELEMENT_NODE}const TP=({children:e,styles:t,className:n})=>k.createElement("div",{className:n,style:t},e);function PP(e){const[t,n]=k.useState(null),[o,r]=k.useState(null),i=fa(),a=bP("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:S,title:C,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 V=null;return _>0&&(V=document.createElement("div"),D.content=V,r(V)),()=>{D.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,_]),k.useEffect(()=>{!(t!=null&&t.content)||!ic(t.content)||_>0||(t.content.className=u??"")},[t,u,_]),EP(t,T,E,M,_>0),ri(t,"position",S),ri(t,"title",C??""),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 EP(e,t,n,o,r){k.useEffect(()=>{if(!e||!r)return;const i=CP(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??SP.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",xP.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function MP(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 OP=k.forwardRef((e,t)=>{const n=MP(e);return k.useImperativeHandle(t,()=>n,[n]),k.createElement(k.Fragment,null)});OP.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 S=v===g?f:p+m*v,C=window.setTimeout(()=>{t.setZoom(S)},y*v);a.current.push(C)}},[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 kP=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}},kP)});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 DP="_googleMap_1gh3l_1",IP="_container_1gh3l_14",RP="_errorContainer_1gh3l_29",si={googleMap:DP,container:IP,errorContainer:RP},AP={lat:-26.3044,lng:-48.8487},NP=13,_P={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},jP=({options:e,onLoad:t,children:n})=>{const o=fa();return k.useEffect(()=>{o&&(o.setOptions(_P),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},uy=({center:e=AP,zoom:t=NP,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(KT,{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(jP,{options:l,onLoad:c,children:b.jsxs(pu,{children:[b.jsx(cy,{}),o]})})},p)})})};uy.displayName="GoogleMap";const Cp=[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=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 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=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,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],S=a[2*y+1];v>=t&&v<=o&&S>=n&&S<=r&&u.push(i[y])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&u.push(i[h]),(d===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-d)),(d===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-d))}return u}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],u=o*o;for(;l.length;){const d=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let y=p;y<=f;y++)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 LP={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Sp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),po=2,Un=3,hl=4,zn=5,fy=6;class VP{constructor(t){this.options=Object.assign(Object.create(LP),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=Sp(ii(d)),h=Sp(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+zn]>1?Tp(u,p,this.clusterProps):this.points[u[p+Un]])}return d}getChildren(t){const n=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[o];if(!i)throw new Error(r);const a=i.data;if(n*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,o-1)),c=a[n*this.stride],u=a[n*this.stride+1],d=i.within(c,u,l),f=[];for(const p of d){const h=p*this.stride;a[h+hl]===t&&f.push(a[h+zn]>1?Tp(a,h,this.clusterProps):this.points[a[h+Un]])}if(f.length===0)throw new Error(r);return f}getLeaves(t,n,o){n=n||10,o=o||0;const r=[];return this._appendLeaves(r,t,n,o,0),r}getTile(t,n,o){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:l}=this.options,c=l/a,u=(o-c)/i,d=(o+1+c)/i,f={features:[]};return this._addTileFeatures(r.range((n-c)/i,u,(n+1+c)/i,d),r.data,n,o,i,f),n===0&&this._addTileFeatures(r.range(1-c/i,u,1,d),r.data,i,o,i,f),n===i-1&&this._addTileFeatures(r.range(0,u,c/i,d),r.data,-1,o,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const o=this.getChildren(t);if(n++,o.length!==1)break;t=o[0].properties.cluster_id}return n}_appendLeaves(t,n,o,r,i){const a=this.getChildren(n);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(t,c.cluster_id,o,r,i):i<r?i++:t.push(l),t.length===o)break}return i}_createTree(t){const n=new 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+zn]>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+Un]];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+Un]:m=this.points[n[c+Un]].id,m!==void 0&&(h.id=m),a.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:o,extent:r,reduce:i,minPoints:a}=this.options,l=o/(r*Math.pow(2,n)),c=t.data,u=[],d=this.stride;for(let f=0;f<c.length;f+=d){if(c[f+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+zn];let y=g;for(const v of m){const S=v*d;c[S+po]>n&&(y+=c[S+zn])}if(y>g&&y>=a){let v=p*g,S=h*g,C,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+zn];v+=c[M]*_,S+=c[M+1]*_,c[M+hl]=T,i&&(C||(C=this._map(c,f,!0),w=this.clusterProps.length,this.clusterProps.push(C)),i(C,this._map(c,M)))}c[f+hl]=T,u.push(v/y,S/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 S=v*d;if(!(c[S+po]<=n)){c[S+po]=n;for(let C=0;C<d;C++)u.push(c[S+C])}}}}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+zn]>1){const a=this.clusterProps[t[n+fy]];return o?Object.assign({},a):a}const r=this.points[t[n+Un]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Tp(e,t,n){return{type:"Feature",id:e[t+Un],properties:py(e,t,n),geometry:{type:"Point",coordinates:[$P(e[t]),FP(e[t+1])]}}}function py(e,t,n){const o=e[t+zn],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+Un],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 $P(e){return(e-.5)*360}function FP(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const BP={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 HP(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 zP(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||!HP(e.cameras,t.cameras))}function WP(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&&zP(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function UP(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function YP(e,t,n,o={}){const r=k.useRef(null),[i,a]=k.useState([]),l=k.useRef(""),c={...BP,...o};return k.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=UP(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 VP({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(C=>C.properties.cameras||[]),S=y.reduce((C,w)=>C+w.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:S,cameras:v,isCluster:!0,pointCount:m.point_count,clusterId:g}}else{const g=m;return{id:g.id,lat:h,lng:p,count:g.count,addressText:g.addressText,cameras:g.cameras}}});a(f=>WP(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=k3,selectedZoomLevel:r=dl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f,expandAll:p})=>{const{isLoaded:h,currentZoom:m,bounds:g,zoomToPosition:y}=fu(),v=(a==null?void 0:a.id)??i,{spotsForClustering:S,pinnedSpot:C}=k.useMemo(()=>{if(v==null)return{spotsForClustering:e,pinnedSpot:null};const M=e.find(D=>D.id===v)??null;return M?{spotsForClustering:e.filter(D=>D.id!==v),pinnedSpot:M}:{spotsForClustering:e,pinnedSpot:null}},[e,v]),w=YP(S,m,g),T=k.useCallback(M=>{M.isCluster?y({lat:M.lat,lng:M.lng},Eo):f?y({lat:M.lat,lng:M.lng},m<Eo?Eo:r??o):(a?a.id===M.id:i===M.id)?t==null||t(M):m<Eo?(y({lat:M.lat,lng:M.lng},Eo),t==null||t(M)):(m<(r??dl)&&y({lat:M.lat,lng:M.lng},r??dl),t==null||t(M))},[y,f,a,i,m,r,o,t]),E=k.useCallback(M=>!c&&!u?!1:!M.isCluster&&M.id===c?!0:M.isCluster&&u&&M.cameras?M.cameras.some(_=>_.id===u):!1,[c,u]);return h?b.jsxs(b.Fragment,{children:[w.map((M,_)=>{const D=!M.isCluster&&String(M.id)===String(c);return b.jsx(Ep,{spot:M,currentZoom:m,isSelected:!!p||D,selectedCameraId:l,isHighlighted:E(M),highlightedCameraId:D?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:T,onCameraClick:n},M.id??_)}),C&&b.jsx(Ep,{spot:C,currentZoom:m,isSelected:!0,selectedCameraId:l,isHighlighted:String(C.id)===String(c),highlightedCameraId:String(C.id)===String(c)?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:T,onCameraClick:n},`pinned-${C.id}`)]}):null};hy.displayName="MapMarkers";const qP="_searchBar_uld4g_1",GP="_startIconContainer_uld4g_106",ZP="_endIconContainer_uld4g_117",KP="_endIconContainerClickable_uld4g_153",XP="_defaultIcon_uld4g_157",Gr={searchBar:qP,startIconContainer:GP,endIconContainer:ZP,endIconContainerClickable:KP,defaultIcon:XP},QP=e=>()=>{e&&e()},JP=e=>t=>{e&&e(t)},eE=()=>b.jsx(Ct.Search,{className:Gr.defaultIcon}),tE=e=>e||eE(),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=tE(t),p=QP(n),h=JP(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 nE=yt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),oE=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"),rE="_container_1mb8b_1",sE="_iconWrapper_1mb8b_11",iE="_icon_1mb8b_11",aE="_title_1mb8b_21",lE="_subtitle_1mb8b_30",cE="_description_1mb8b_34",uE="_button_1mb8b_38",ho={container:rE,iconWrapper:sE,icon:iE,title:aE,subtitle:lE,description:cE,button:uE},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(oE,{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(nE,{}),onClick:e,className:ho.button,children:t})]})});gy.displayName="NotFoundContent";const dE=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}},fE=({items:e,isExpanded:t=!0,onClick:n})=>{const o=k.useMemo(()=>dE(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(V=>V===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(D=E.onClick)==null||D.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,_,D)=>{var V;i(E.id),l(M.id),D!=null&&D.closeMenu&&(f(null),h(null)),(V=M.onClick)==null||V.call(M,_),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},yy=e=>typeof e=="number"?`${e*4}px`:e,pE=({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}=fE({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),S=t?r.spacing(2):r.spacing(4),C=t&&y?r.palette.primary.main:"transparent",w=t?"transparent":y?r.palette.primary.main:"transparent",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,minHeight:t?56:32,justifyContent:t?"flex-start":"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"padding 0.2s ease, min-height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",color:t&&y?r.palette.primary.contrastText:r.palette.text.primary,backgroundColor:C,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t&&!y?r.palette.action.hover:C}},children:b.jsxs(G.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:.25,sx:{width:"100%"},children:[b.jsx(G.Box,{sx:{width:56,height:S,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,fontSize:t?"14px":"10px"},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(pE,{item:_,isActive:D,onClick:V=>h(g,_,V)},_.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],backgroundImage:"none"}},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 hE=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},mE=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=k.useMemo(()=>hE(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)}}},gE=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=gE(d.shape.borderRadius),[h,m]=k.useState(!1),g=k.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:S,openMenu:C,closeMenu:w,handleItemClick:T}=mE({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}C(B)},V=(B,F)=>{T(B,F),m(!1)},N=b.jsx(G.Stack,{direction:"column",spacing:.5,children:e.map(B=>{const F=S(B);return b.jsxs(G.MenuItem,{selected:F,onClick:H=>V(B,H),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,{sx:{fontSize:14,fontWeight:F?600:500},children:B.label})]},B.id)})}),x=b.jsxs(G.Box,{sx:{borderRadius:"16px 16px 8px 8px",backgroundColor:d.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026",display:"flex",flexDirection:"column",maxHeight:d.spacing(62)},children:[i?b.jsx(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,"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:d.palette.action.disabled,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:d.palette.action.active},scrollbarWidth:"thin",scrollbarColor:`${d.palette.action.disabled} transparent`},children:N})]}),L=a?b.jsxs(G.MenuItem,{onClick:B=>{var F;m(!1),w(),(F=a.onClick)==null||F.call(a,B)},sx:{borderRadius:"12px",gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(G.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(G.Typography,{sx:{fontSize:14,fontWeight:500},children:a.label})]}):null,R=L?b.jsx(G.Box,{sx:{borderRadius:"8px",backgroundColor:d.palette.background.paper,boxShadow:"0px 1px 3px 0px #0000004D, 0px 4px 8px 3px #00000026"},children:L}):null,A=b.jsxs(G.Stack,{direction:"column",spacing:.25,sx:{minWidth:d.spacing(32)},children:[x,R]});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:"12px",px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",transition:"width 0.2s ease, height 0.2s ease, padding 0.2s ease",backgroundColor:d.palette.mode==="light"?"#C7C6C6":d.palette.action.hover,"&:hover":{backgroundColor:d.palette.mode==="light"?"#B8B7B7":d.palette.action.selected}},children:b.jsxs(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,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))}},yE=(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}}),Rn={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((Rn?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Li=new WeakMap;function Cy(e){var t;return Vi(e)&&!!((t=Li.get(e))!=null&&t[0])}function bE(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 Vi(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 Sy(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 vE=(e,t,...n)=>t.read(...n),xE=(e,t,...n)=>t.write(...n),CE=(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)},wE=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},SE=(e,t)=>{var n;const o=Nt(e),r=o[0],i=o[6],a=o[9];if((Rn?"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},TE=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)},PE=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((Rn?"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 Sy(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,EE=(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[V,N]of v.d)if(h(e,V).n!==N){D=!0;break}if(!D)return v}v.d.clear();let S=!0;function C(){i.has(t)&&(g(e,t),p(e),f(e))}function w(D){var V;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),Cy(v.v)&&wy(t,v.v,N),i.has(t)&&((V=i.get(D))==null||V.t.add(t)),S||C()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(Rn?"production":void 0)!=="production"&&!lc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&lc(t)&&(E=(...D)=>{if((Rn?"production":void 0)!=="production"&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,t,...D)}finally{p(e),f(e)}}),E}},_=v.n;try{(Rn?"production":void 0)!=="production"&&uc.delete(e);const D=u(e,t,w,M);return(Rn?"production":void 0)!=="production"&&uc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,D),Vi(D)&&(cc(D,()=>T==null?void 0:T.abort()),D.then(C,C)),(n=c.r)==null||n.call(c,t),v}catch(D){return delete v.v,v.e=D,++v.n,v}finally{S=!1,_!==v.n&&a.get(t)===_&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},ME=(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 Sy(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},OE=(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=S=>ji(d(e,S)),v=(S,...C)=>{var w;const T=l(e,S);try{if(S===t){if(!xy(S))throw new Error("atom not writable");(Rn?"production":void 0)!=="production"&&uc.add(e);const E=T.n,M=C[0];m(e,S,M),h(e,S),E!==T.n&&(r.add(S),f(e,S),(w=i.c)==null||w.call(i,S));return}else return p(e,S,...C)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},kE=(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)}}},DE=(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 S=(...C)=>{try{return p(e,t,...C)}finally{v||(d(e),u(e))}};try{const C=l(e,t,S);C&&(g.u=()=>{v=!0;try{C()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},IE=(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},RE=(e,t,n)=>{const o=Nt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(Vi(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,Vi(a)&&bE(a))},AE=(e,t)=>{const n=Nt(e)[14];return ji(n(e,t))},NE=(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)}},_E=(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((Rn?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function jE(...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,{},vE,xE,CE,wE,SE,TE,PE,EE,ME,OE,kE,DE,IE,RE,AE,NE,_E,void 0].map((o,r)=>e[r]||o);return Ty.set(t,Object.freeze(n)),t}const Py={};let LE=0;function mu(e,t){const n=`atom${++LE}`,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=VE,o.write=$E),o}function VE(e){return e(this)}function $E(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function FE(){return jE()}let _r;function BE(){return _r||(_r=FE(),(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 HE={},zE=k.createContext(void 0);function Ey(e){return k.useContext(zE)||BE()}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}))},WE=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),WE(d)}return u}function UE(e,t){const n=Ey();return k.useCallback((...r)=>{if((HE?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function $i(e,t){return[My(e),UE(e)]}const Oy=mu(0),ky=mu(!0),YE=mu(null),gu=k.createContext(null),Dy=({children:e})=>{const t=k.useRef(null),[n,o]=$i(Oy),[r,i]=$i(ky),[a,l]=k.useState(!1),[c,u]=k.useState(0),[d,f]=k.useState(!1);k.useEffect(()=>{const C=t.current;if(!C)return;const w=()=>{if(C.seekable&&C.seekable.length>0){const M=C.seekable.end(C.seekable.length-1);u(M),f(M>0)}else C.duration&&isFinite(C.duration)&&(u(C.duration),f(!0))},T=()=>l(!0),E=()=>l(!1);return C.addEventListener("durationchange",w),C.addEventListener("loadedmetadata",w),C.addEventListener("play",T),C.addEventListener("pause",E),w(),()=>{C.removeEventListener("durationchange",w),C.removeEventListener("loadedmetadata",w),C.removeEventListener("play",T),C.removeEventListener("pause",E)}},[]);const p=k.useCallback(C=>{o(C)},[o]),h=k.useCallback(C=>{i(C)},[i]),m=k.useCallback(C=>{const w=t.current;!w||!d||(w.currentTime=C,o(C),i(!1))},[d,o,i]),g=k.useCallback(async()=>{const C=t.current;if(C)try{await C.play(),l(!0)}catch(w){console.error("Failed to play video:",w)}},[]),y=k.useCallback(()=>{const C=t.current;C&&(C.pause(),l(!1))},[]),v=k.useCallback(()=>{a?y():g()},[a,g,y]),S=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:S,children:e})},yu=()=>k.useContext(gu),qE=()=>{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},GE=({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($=>{c.current=$,l!=null&&l.videoRef&&(l.videoRef.current=$)},[l]),d=k.useMemo(()=>{if(!t||!t.length)return null;if(n){const $=t.find(W=>W.value===n);if($)return $}return t[0]},[t,n]),[f,p]=k.useState(d),[h,m]=k.useState(!1),[g,y]=k.useState(!0),[v,S]=k.useState(!1),[C,w]=k.useState(0),[T,E]=k.useState(0),[M,_]=k.useState(1),[D,V]=k.useState(1),[N,x]=k.useState(0),[L,R]=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,H]=k.useState(!1),[I,Y]=k.useState(!0),q=(f==null?void 0:f.stream)??e??null,Z=(f==null?void 0:f.src)??null,K=!!!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 $=c.current;if(!$)return;if(!$.seekable||$.seekable.length===0){y(!0),S(!1),l&&l.setIsLive(!0);return}const W=pa($),z=Math.max(0,W-$.currentTime);se.current={seekableEnd:W,currentTime:$.currentTime,canSeek:W>0,isLive:z<=(r??2)},Q.current||(Q.current=!0,requestAnimationFrame(()=>{Q.current=!1;const ee=se.current;E(ee.seekableEnd),w(ee.currentTime),S(ee.canSeek),y(ee.isLive),l&&(l.setCurrentTime(ee.currentTime),l.setIsLive(ee.isLive))}))},[r,l]);return k.useEffect(()=>{const $=c.current;if(!$)return;const W=()=>m(!0),z=()=>m(!1),ee=()=>Y(!0),X=()=>Y(!0),re=()=>Y(!1),te=()=>Y(!1);return $.addEventListener("play",W),$.addEventListener("pause",z),$.addEventListener("waiting",ee),$.addEventListener("loadstart",X),$.addEventListener("canplay",re),$.addEventListener("playing",te),$.addEventListener("timeupdate",J),$.addEventListener("durationchange",J),$.addEventListener("loadedmetadata",J),$.addEventListener("progress",J),()=>{$.removeEventListener("play",W),$.removeEventListener("pause",z),$.removeEventListener("waiting",ee),$.removeEventListener("loadstart",X),$.removeEventListener("canplay",re),$.removeEventListener("playing",te),$.removeEventListener("timeupdate",J),$.removeEventListener("durationchange",J),$.removeEventListener("loadedmetadata",J),$.removeEventListener("progress",J)}},[J]),k.useEffect(()=>{const $=c.current;$&&(Y(!0),q?($.srcObject!==q&&($.srcObject=q),$.getAttribute("src")&&$.removeAttribute("src")):Z?($.srcObject&&($.srcObject=null),$.src!==Z&&($.src=Z,$.load())):($.srcObject&&($.srcObject=null),$.getAttribute("src")&&$.removeAttribute("src")),o&&$.play().then(()=>{}).catch(()=>{}))},[q,Z,o]),k.useEffect(()=>{const $=c.current;$&&(K?$.playbackRate=M:($.playbackRate=1,_(1)))},[M,K]),k.useEffect(()=>{D<=1&&(x(0),R(0))},[D]),k.useEffect(()=>{const $=()=>{H(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",$),()=>{document.removeEventListener("fullscreenchange",$)}},[]),k.useEffect(()=>{if(D<=1)return;const $=a.current;if(!$)return;const W=requestAnimationFrame(()=>{const z=$.getBoundingClientRect(),ee=Zr(N,L,D,z.width,z.height);x(ee.panX),R(ee.panY)});return()=>cancelAnimationFrame(W)},[F]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:C,setCurrentTime:w,seekableEnd:T,playbackRate:M,setPlaybackRate:_,zoom:D,setZoom:V,panX:N,setPanX:x,panY:L,setPanY:R,isDraggingRef:A,dragStartRef:O,panStartRef:j,didDragRef:B,isFullscreen:F,isLoading:I,canAdjustPlaybackRate:K,updateLiveStatus:J}},ZE="_container_ajnww_1",KE="_loader_ajnww_78",XE="_spinner_ajnww_88",QE="_video_ajnww_111",JE="_videoZoomed_ajnww_119",e6="_timestampOverlay_ajnww_127",t6="_timestampText_ajnww_140",n6="_badgeFloating_ajnww_152",o6="_controlsOverlay_ajnww_159",r6="_controlsVisible_ajnww_183",s6="_timeline_ajnww_188",i6="_controlsRow_ajnww_195",a6="_controlGroup_ajnww_213",l6="_iconButton_ajnww_230",c6="_menuButton_ajnww_281",u6="_liveBadge_ajnww_291",d6="_liveBadgeInactive_ajnww_309",f6="_liveBadgeActive_ajnww_319",p6="_recordingBadge_ajnww_329",h6="_recordingDot_ajnww_348",m6="_emptyState_ajnww_377",g6="_emptyStateText_ajnww_394",y6="_controlMenuWrapper_ajnww_400",b6="_zoomControl_ajnww_418",v6="_zoomValue_ajnww_425",Re={container:ZE,loader:KE,spinner:XE,video:QE,videoZoomed:JE,timestampOverlay:e6,timestampText:t6,badgeFloating:n6,controlsOverlay:o6,controlsVisible:r6,timeline:s6,controlsRow:i6,controlGroup:a6,iconButton:l6,menuButton:c6,liveBadge:u6,liveBadgeInactive:d6,liveBadgeActive:f6,recordingBadge:p6,recordingDot:h6,emptyState:m6,emptyStateText:g6,controlMenuWrapper:y6,zoomControl:b6,zoomValue:v6},x6=({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:`${Re.menuButton} ${Re.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)}`))})]})},C6=k.memo(x6),w6=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"];function S6(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),r=w6[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 Iy=k.memo(({show:e})=>{const[t,n]=k.useState("");return k.useEffect(()=>{if(!e)return;const o=()=>n(S6());o();const r=setInterval(o,1e3);return()=>clearInterval(r)},[e]),!e||!t?null:b.jsx("div",{className:Re.timestampOverlay,children:b.jsx("span",{className:Re.timestampText,children:t})})});Iy.displayName="Timestamp";const T6=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},P6=(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()},E6=(e,t,n)=>()=>{const o=e.current;if(!o||!t)return;const r=pa(o);o.currentTime=Math.max(r-.1,0),n()},M6=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},O6=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},k6=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},D6=(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()},I6=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"})})},R6=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"})})},A6=e=>{const{width:t=65,height:n=64,...o}=e;return b.jsx("svg",{width:t,height:n,viewBox:"0 0 65 64",fill:"none",...o,children:b.jsx("path",{d:"M64.05 46.35L52.05 34.35V39.375L18.525 5.85H46.05C47.7 5.85 49.1125 6.4375 50.2875 7.6125C51.4625 8.7875 52.05 10.2 52.05 11.85V25.35L64.05 13.35V46.35ZM59.7 63.9L0 4.2L4.2 0L63.9 59.7L59.7 63.9ZM10.05 5.85L52.05 47.85C52.05 49.5 51.4625 50.9125 50.2875 52.0875C49.1125 53.2625 47.7 53.85 46.05 53.85H10.05C8.4 53.85 6.9875 53.2625 5.8125 52.0875C4.6375 50.9125 4.05 49.5 4.05 47.85V11.85C4.05 10.2 4.6375 8.7875 5.8125 7.6125C6.9875 6.4375 8.4 5.85 10.05 5.85Z",fill:"#525253"})})},N6={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:S=!0,isRecording:C=!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),R=k.useRef(!0),A=k.useRef(null);R.current=x;const{containerRef:O,videoRef:j,setVideoRef:B,selectedQuality:F,setSelectedQuality:H,isPlaying:I,isLive:Y,canSeek:q,currentTime:Z,setCurrentTime:oe,seekableEnd:K,playbackRate:Q,setPlaybackRate:se,zoom:J,setZoom:$,panX:W,setPanX:z,panY:ee,setPanY:X,isDraggingRef:re,dragStartRef:te,panStartRef:ue,didDragRef:ie,isFullscreen:me,isLoading:le,canAdjustPlaybackRate:de,updateLiveStatus:pe}=GE({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f});k.useEffect(()=>{const Ce=O.current;if(!Ce)return;const je=()=>{A.current&&(clearTimeout(A.current),A.current=null),L(!0)},Je=()=>{A.current=setTimeout(()=>{},1e4)},zt=()=>{R.current||L(!0),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{},1e4)};return Ce.addEventListener("mouseenter",je),Ce.addEventListener("mouseleave",Je),Ce.addEventListener("mousemove",zt),()=>{Ce.removeEventListener("mouseenter",je),Ce.removeEventListener("mouseleave",Je),Ce.removeEventListener("mousemove",zt),A.current&&clearTimeout(A.current)}},[]);const _e=k.useMemo(()=>T6(j),[j]),Oe=k.useMemo(()=>P6(j,q,pe),[j,q,pe]);k.useMemo(()=>E6(j,q,pe),[j,q,pe]);const Xe=k.useMemo(()=>M6(O),[O]);k.useMemo(()=>O6(t,H,o),[t,H,o]);const tt=k.useMemo(()=>k6(q,oe),[q,oe]),St=k.useMemo(()=>D6(j,q,pe),[j,q,pe]),ht=k.useRef(W),Ee=k.useRef(ee);ht.current=W,Ee.current=ee;const we=k.useRef(J);we.current=J;const xe=k.useCallback(Ce=>{if($(Ce),Ce<=1)z(0),X(0);else{const je=O.current;if(je){const Je=je.getBoundingClientRect(),zt=Zr(ht.current,Ee.current,Ce,Je.width,Je.height);z(zt.panX),X(zt.panY)}}},[O,$,z,X]),$e=k.useCallback(Ce=>{const je=h.indexOf(J),Je=Math.max(0,Math.min(h.length-1,je+Ce));xe(h[Je])},[J,h,xe]),Be=k.useCallback(Ce=>{if(ie.current){ie.current=!1;return}const je=O.current;if(!je)return;const Je=je.getBoundingClientRect(),zt=Ce.clientX-Je.left-Je.width/2,co=Ce.clientY-Je.top-Je.height/2,Or=(h.indexOf(we.current)+1)%h.length,hn=h[Or];if(hn<=1){$(1),z(0),X(0);return}const Zs=-zt*(1-1/hn),Zb=-co*(1-1/hn),yd=Zr(Zs,Zb,hn,Je.width,Je.height);$(hn),z(yd.panX),X(yd.panY)},[h,O,$,z,X,ie]),it=k.useCallback(Ce=>{we.current<=1||(Ce.preventDefault(),re.current=!0,ie.current=!1,te.current={x:Ce.clientX,y:Ce.clientY},ue.current={x:ht.current,y:Ee.current})},[re,ie,te,ue]),Qe=k.useCallback(Ce=>{if(!re.current||we.current<=1)return;Ce.preventDefault();const je=Ce.clientX-te.current.x,Je=Ce.clientY-te.current.y;(Math.abs(je)>3||Math.abs(Je)>3)&&(ie.current=!0);const zt=O.current;if(!zt)return;const co=zt.getBoundingClientRect(),Mr=ue.current.x+je/we.current,Or=ue.current.y+Je/we.current,hn=Zr(Mr,Or,we.current,co.width,co.height);z(hn.panX),X(hn.panY)},[O,re,te,ue,ie,z,X]),_t=k.useCallback(()=>{re.current=!1},[re]),ke=k.useCallback(Ce=>{if(we.current<=1||Ce.touches.length!==1)return;const je=Ce.touches[0];re.current=!0,ie.current=!1,te.current={x:je.clientX,y:je.clientY},ue.current={x:ht.current,y:Ee.current}},[re,ie,te,ue]),ct=k.useCallback(Ce=>{if(!re.current||we.current<=1||Ce.touches.length!==1)return;const je=Ce.touches[0],Je=je.clientX-te.current.x,zt=je.clientY-te.current.y;(Math.abs(Je)>3||Math.abs(zt)>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+zt/we.current,Zs=Zr(Or,hn,we.current,Mr.width,Mr.height);z(Zs.panX),X(Zs.panY)},[O,re,te,ue,ie,z,X]),bt=k.useCallback(()=>{re.current=!1},[re]);k.useEffect(()=>{const Ce=j.current;if(!Ce)return;const je=Je=>{we.current>1&&re.current&&Je.preventDefault()};return Ce.addEventListener("touchmove",je,{passive:!1}),()=>{Ce.removeEventListener("touchmove",je)}},[j,re]);const Dt=k.useMemo(()=>p.map(Ce=>({value:Ce,label:`${Ce}x`})),[p]);k.useMemo(()=>t.map(Ce=>({value:Ce.value,label:Ce.label})),[t]),F==null||F.label;const pn=`${Math.round(J*100)}%`,ge=`${Q}x`,De=q&&K>0,ut=yE(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(${W}px, ${ee}px)`:void 0}),[J,W,ee]);return b.jsx(G.Box,{ref:O,className:`${Re.container} ${c||""}`.trim(),"data-theme":N?"dark":"light",style:Mn,sx:u,children:M?b.jsxs("div",{className:Re.emptyState,children:[_??b.jsx(A6,{}),typeof D=="string"?b.jsx(G.Typography,{className:Re.emptyStateText,children:D}):D]}):b.jsxs(b.Fragment,{children:[(E??le)&&b.jsx("div",{className:Re.loader,children:b.jsx("span",{className:Re.spinner})}),b.jsx("video",{ref:B,className:`${Re.video} ${J>1?Re.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(Iy,{show:v}),C&&!x&&b.jsx("div",{className:Re.badgeFloating,children:b.jsxs("span",{className:Re.recordingBadge,children:[b.jsx("span",{className:Re.recordingDot}),w]})}),Y&&!C&&!x&&b.jsx("div",{className:Re.badgeFloating,children:b.jsx("span",{className:`${Re.liveBadge} ${Re.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs("div",{className:`${Re.controlsOverlay} ${x?Re.controlsVisible:""}`,children:[S&&b.jsx("div",{className:Re.timeline,children:b.jsx(G.Slider,{size:"small",min:0,max:De?K:1,step:1,value:De?Z:0,disabled:!De,onChange:tt,onChangeCommitted:St,"aria-label":"Linha do tempo do video",sx:N6})}),b.jsxs("div",{className:Re.controlsRow,children:[b.jsxs("div",{className:Re.controlGroup,children:[C?b.jsxs("span",{className:Re.recordingBadge,children:[b.jsx("span",{className:Re.recordingDot}),w]}):b.jsx("span",{className:`${Re.liveBadge} ${Y?Re.liveBadgeActive:Re.liveBadgeInactive}`,children:"ao vivo"}),b.jsx(G.IconButton,{className:Re.iconButton,onClick:()=>Oe(-15),disabled:!q,"aria-label":"Voltar 15 segundos",children:b.jsx(I6,{})}),b.jsx(G.IconButton,{className:Re.iconButton,onClick:_e,"aria-label":"Play/Pause",children:I?b.jsx(Ct.Pause,{fontSize:"small"}):b.jsx(Ct.PlayArrow,{fontSize:"small"})}),b.jsx(G.IconButton,{className:Re.iconButton,onClick:()=>Oe(15),disabled:!q,"aria-label":"Avançar 15 segundos",children:b.jsx(R6,{})})]}),b.jsxs("div",{className:Re.controlGroup,children:[b.jsx(C6,{icon:b.jsx(Ct.Speed,{fontSize:"small"}),label:"",valueLabel:ge,selectedValue:Q,options:Dt,ariaLabel:"Selecionar velocidade de reprodução",onChange:se,disabled:!de}),b.jsxs("div",{className:Re.zoomControl,children:[b.jsx(G.IconButton,{className:Re.iconButton,onClick:()=>xe(1),disabled:J<=1,"aria-label":"Resetar zoom",children:b.jsx(Ct.Undo,{fontSize:"small"})}),b.jsx(G.IconButton,{className:Re.iconButton,onClick:()=>$e(-1),disabled:J<=h[0],"aria-label":"Diminuir zoom",children:b.jsx(Ct.ZoomOut,{fontSize:"small"})}),b.jsx("span",{className:Re.zoomValue,children:pn}),b.jsx(G.IconButton,{className:Re.iconButton,onClick:()=>$e(1),disabled:J>=h[h.length-1],"aria-label":"Aumentar zoom",children:b.jsx(Ct.ZoomIn,{fontSize:"small"})})]}),b.jsx(G.IconButton,{className:Re.iconButton,onClick:Xe,"aria-label":"Fullscreen",children:me?b.jsx(Ct.CloseFullscreen,{fontSize:"small"}):b.jsx(Ct.OpenInFull,{fontSize:"small"})})]})]})]})]})})};bu.displayName="VideoPlayer";const _6=yt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),j6=yt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),L6=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"),V6=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 U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(null,arguments)}function Me(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function $6(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 F6(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 B6={...P},Ry=B6.useSyncExternalStore;function H6(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 Ry(c,l,a)}function Ay(e={}){const{themeId:t}=e;return function(o,r={}){let i=ex();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}=$6({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=(Ry!==void 0?
|
|
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[]}},Rp="s",J6=["0","1","2","3","4","5","6","7","8","9"],eM=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Rp)==="0"?J6:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Rp))},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("")},
|
|
111
|
+
`));const h=(Ry!==void 0?H6:F6)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}Ay();const Ny=Ay({themeId:ia}),wt=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)),z6=({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},W6=(e,t)=>e.isValid(t)?t:null,kp=(e,t,n)=>t==null||!e.isValid(t)?n:t,U6=(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),Y6=["year","month","day"],Dp=e=>Y6.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},q6=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},G6=["hours","minutes","seconds"],Z6=e=>G6.includes(e),Ip=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),K6=(e,t)=>(n,o)=>e?t.isAfter(n,o):Ip(n,t)>Ip(o,t),bn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},X6=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},Q6=({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=K6(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},Cu=(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[]}},Rp="s",J6=["0","1","2","3","4","5","6","7","8","9"],eM=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Rp)==="0"?J6:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Rp))},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))},Su=(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=wu(i,r.maxLength)),Su(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"&&Cu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},tM=(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")}},nM=(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)},oM=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),rM=(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},sM=(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:tM(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)}},iM=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=wu(r,t.maxLength));const i=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},Vp=(e,t,n,o,r)=>[...n].sort((i,a)=>Lp[i.type]-Lp[a.type]).reduce((i,a)=>!r||a.modified?iM(e,a,t,i):i,o),aM=()=>navigator.userAgent.toLowerCase().includes("android"),lM=(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},cM=["value","referenceDate"],Pn={emptyValue:null,getTodayValue:_y,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Me(e,cM);return o.adapter.isValid(t)?t:n??Q6(o)},cleanValue:W6,areValuesEqual:U6,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)},uM={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:oM,getV6InputValueFromSections:rM,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 dM(e){return typeof e.main=="string"}function fM(e,t=[]){if(!dM(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&&fM(t,e)}function pM(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 hM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mM=eC(),gM=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,pM,a)},yM=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}}]}})),$p={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=!hM[o],a=mM({...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=$p,...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]||$p[h])||"span",w=gM(y);return b.jsx(yM,{as:v,ref:n,className:ye(w.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 bM(e){return Pe("MuiPickersToolbar",e)}Te("MuiPickersToolbar",["root","title","content"]);const vM=["localeText"],Bi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Bi.displayName="PickerAdapterContext");const ma=function(t){const{localeText:n}=t,o=Me(t,vM),{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(()=>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(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 xM(){return P.useContext(Pu)}const Eu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Eu.displayName="PickerFieldPrivateContext");function $y(){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(()=>U({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const CM=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],
|
|
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=Su(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"&&Cu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},tM=(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")}},nM=(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)},oM=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),rM=(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},sM=(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:tM(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)}},iM=(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=Su(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},Vp=(e,t,n,o,r)=>[...n].sort((i,a)=>Lp[i.type]-Lp[a.type]).reduce((i,a)=>!r||a.modified?iM(e,a,t,i):i,o),aM=()=>navigator.userAgent.toLowerCase().includes("android"),lM=(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},cM=["value","referenceDate"],Pn={emptyValue:null,getTodayValue:_y,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Me(e,cM);return o.adapter.isValid(t)?t:n??Q6(o)},cleanValue:W6,areValuesEqual:U6,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)},uM={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:oM,getV6InputValueFromSections:rM,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 dM(e){return typeof e.main=="string"}function fM(e,t=[]){if(!dM(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&&fM(t,e)}function pM(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 hM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mM=eC(),gM=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 Se(l,pM,a)},yM=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]}})(Ze(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(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}}]}})),$p={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=!hM[o],a=mM({...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=$p,...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]||$p[h])||"span",S=gM(y);return b.jsx(yM,{as:v,ref:n,className:ye(S.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 bM(e){return Pe("MuiPickersToolbar",e)}Te("MuiPickersToolbar",["root","title","content"]);const vM=["localeText"],Bi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Bi.displayName="PickerAdapterContext");const ma=function(t){const{localeText:n}=t,o=Me(t,vM),{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(()=>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(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 xM(){return P.useContext(Pu)}const Eu=P.createContext(null);process.env.NODE_ENV!=="production"&&(Eu.displayName="PickerFieldPrivateContext");function $y(){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(()=>U({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const CM=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],wM=e=>Se({root:["root"],title:["title"],content:["content"]},bM,e),SM=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"}}]})),TM=ae.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Zn(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"}}]}),Hy=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,CM),p=By(),h=wM(a);return c?null:b.jsxs(SM,U({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(TM,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(Hy.displayName="PickersToolbar");const PM=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:U({},e)}}}}),zy={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"},EM=zy;PM(zy);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(()=>U({},EM,e.localeText),[e.localeText]);return P.useMemo(()=>U({},e,{localeText:t}),[e,t])},
|
|
118
|
-
`));return e};function jM(e){return Pe("MuiDatePickerToolbar",e)}Te("MuiDatePickerToolbar",["root","title"]);const LM=["toolbarFormat","toolbarPlaceholder","className","classes"],VM=e=>we({root:["root"],title:["title"]},jM,e),$M=ae.styled(zy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),FM=ae.styled(io,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Iu=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Me(o,LM),u=Ze(),{value:d,views:f,orientation:p}=Tr(),h=ao(),m=By(),g=VM(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($M,U({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ye(g.root,a)},c,{children:b.jsx(FM,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Iu.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Iu.propTypes={classes:s.object,className:s.string,hidden:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node});const Vs=({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}};Vs.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 BM=()=>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 zM(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Vs,internal_valueManager:Pn,internal_fieldValueManager:uM,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:WM,internal_useOpenPickerButtonAriaLabel:HM}),[t])}function HM(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 WM(e){const t=Ze(),n=$s(e);return P.useMemo(()=>U({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function $s(e){const t=Ze(),n=BM();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=$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},H6({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:U({toolbar:Iu},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=Ve(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 UM=[];function YM(e){P.useEffect(e,UM)}class Ru{constructor(){fe(this,"currentId",null);fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fe(this,"disposeEffect",()=>this.clear)}static create(){return new Ru}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Zn(){const e=Qy(Ru.create).current;return YM(e.disposeEffect),e}function Fn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function qM(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"&&!qM(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 GM(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function KM(e,t){e.classList?e.classList.add(t):GM(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 ZM(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 Wp={disabled:!1};var XM=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,QM=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 e1=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&&e1(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||Wp.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||Wp.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=XM;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 Uo(){}sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uo,onEntering:Uo,onEntered:Uo,onExit:Uo,onExiting:Uo,onExited:Uo};sn.UNMOUNTED=Zr;sn.EXITED=To;sn.ENTERING=Po;sn.ENTERED=Go;sn.EXITING=yc;var JM=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return KM(t,o)})},gl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return ZM(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&&e1(r),l&&(this.appliedClasses[i][a]=l,JM(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,U({},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"?U({},sn.propTypes,{classNames:QM,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function eO(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 tO(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 nO(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 oO(e,t,n){var o=_u(e.children),r=tO(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 rO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sO={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(eO(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?nO(r,l):oO(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=U({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Me(r,["component","childFactory"]),c=this.state.contextValue,u=rO(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=sO;const t1=e=>e.scrollTop;function Hi(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 iO={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,w=Zn(),C=P.useRef(),S=aa(),T=P.useRef(null),E=Ve(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)=>{t1(A);const{duration:j,delay:B,easing:F}=Hi({style:m,timeout:g,easing:a},{mode:"enter"});let z;g==="auto"?(z=S.transitions.getAutoHeightDuration(A.clientHeight),C.current=z):z=j,A.style.transition=[S.transitions.create("opacity",{duration:z,delay:B}),S.transitions.create("transform",{duration:yl?z:z*.666,delay:B,easing:F})].join(","),c&&c(A,O)}),V=M(u),N=M(h),x=M(A=>{const{duration:O,delay:j,easing:B}=Hi({style:m,timeout:g,easing:a},{mode:"exit"});let F;g==="auto"?(F=S.transitions.getAutoHeightDuration(A.clientHeight),C.current=F):F=O,A.style.transition=[S.transitions.create("opacity",{duration:F,delay:j}),S.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),R=A=>{g==="auto"&&w.start(C.current||0,A),o&&o(T.current,A)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:D,onEntered:V,onEntering:_,onExit:x,onExited:L,onExiting:N,addEndListener:R,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,...iO[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 aO={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:w=sn,...C}=t,S=P.useRef(null),T=Ve(S,Bs(l),n),E=R=>A=>{if(R){const O=S.current;A===void 0?R(O):R(O,A)}},M=E(p),_=E((R,A)=>{t1(R);const O=Hi({style:y,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=o.transitions.create("opacity",O),R.style.transition=o.transitions.create("opacity",O),d&&d(R,A)}),D=E(f),V=E(g),N=E(R=>{const A=Hi({style:y,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=o.transitions.create("opacity",A),R.style.transition=o.transitions.create("opacity",A),h&&h(R)}),x=E(m),L=R=>{i&&i(S.current,R)};return b.jsx(w,{appear:a,in:u,nodeRef:S,onEnter:_,onEntered:D,onEntering:M,onExit:N,onExited:x,onExiting:V,addEndListener:L,timeout:v,...C,children:(R,{ownerState:A,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!u?"hidden":void 0,...aO[R],...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 lO(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 n1(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=lO(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function o1(e,t,n,o){return e[t]===void 0?null:n1(e,t,n,o)}function vc(){return null}o1.isRequired=n1;vc.isRequired=vc;const r1=process.env.NODE_ENV==="production"?vc:o1;function cO(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 uO=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,cO,r)},dO=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)"}}]}))),Hs=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=uO(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(dO,{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"&&(Hs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Fn(r1,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 Ft="top",nn="bottom",on="right",Bt="left",ju="auto",Ws=[Ft,nn,on,Bt],pr="start",xs="end",fO="clippingParents",s1="viewport",Vr="popper",pO="reference",Up=Ws.reduce(function(e,t){return e.concat([t+"-"+pr,t+"-"+xs])},[]),i1=[].concat(Ws,[ju]).reduce(function(e,t){return e.concat([t,t+"-"+pr,t+"-"+xs])},[]),hO="beforeRead",mO="read",gO="afterRead",yO="beforeMain",bO="main",vO="afterMain",xO="beforeWrite",CO="write",SO="afterWrite",wO=[hO,mO,gO,yO,bO,vO,xO,CO,SO];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 TO(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 PO(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 EO={name:"applyStyles",enabled:!0,phase:"write",fn:TO,effect:PO,requires:["computeStyles"]};function Sn(e){return e.split("-")[0]}var Ao=Math.max,Wi=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 a1(){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=!a1()&&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 Vu(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 l1(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 $n(e){return qt(e).getComputedStyle(e)}function MO(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)||$n(e).position==="fixed"?null:e.offsetParent}function OO(e){var t=/firefox/i.test(xc()),n=/Trident/i.test(xc());if(n&&tn(e)){var o=$n(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=$n(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Us(e){for(var t=qt(e),n=Yp(e);n&&MO(n)&&$n(n).position==="static";)n=Yp(n);return n&&(En(n)==="html"||En(n)==="body"&&$n(n).position==="static")?t:n||OO(e)||t}function $u(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ss(e,t,n){return Ao(e,Wi(t,n))}function kO(e,t,n){var o=ss(e,t,n);return o>n?n:o}function c1(){return{top:0,right:0,bottom:0,left:0}}function u1(e){return Object.assign({},c1(),e)}function d1(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var DO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u1(typeof t!="number"?t:d1(t,Ws))};function IO(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Sn(n.placement),c=$u(l),u=[Bt,on].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=DO(r.padding,n),p=Vu(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=Us(i),w=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,C=g/2-y/2,S=f[h],T=w-p[d]-f[m],E=w/2-p[d]/2+C,M=ss(S,E,T),_=c;n.modifiersData[o]=(t={},t[_]=M,t.centerOffset=M-E,t)}}function RO(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)||l1(t.elements.popper,r)&&(t.elements.arrow=r))}const AO={name:"arrow",enabled:!0,phase:"main",fn:IO,effect:RO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gr(e){return e.split("-")[1]}var NO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _O(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x: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"),w=a.hasOwnProperty("y"),C=Bt,S=Ft,T=window;if(u){var E=Us(n),M="clientHeight",_="clientWidth";if(E===qt(n)&&(E=lo(n),$n(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",_="scrollWidth")),E=E,r===Ft||(r===Bt||r===on)&&i===xs){S=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){C=on;var V=f&&E===T&&T.visualViewport?T.visualViewport.width:E[_];h-=V-o.width,h*=c?1:-1}}var N=Object.assign({position:l},u&&NO),x=d===!0?_O({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[S]=w?"0":"",L[C]=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[S]=w?g+"px":"",t[C]=v?h+"px":"",t.transform="",t))}function jO(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:Sn(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 LO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jO,data:{}};var li={passive:!0};function VO(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 $O={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VO,data:{}};var FO={left:"right",right:"left",bottom:"top",top:"bottom"};function Si(e){return e.replace(/left|right|bottom|top/g,function(t){return FO[t]})}var BO={start:"end",end:"start"};function Gp(e){return e.replace(/start|end/g,function(t){return BO[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 zO(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=a1();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Bu(e),y:c}}function HO(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 $n(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=$n(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function f1(e){return["html","body","#document"].indexOf(En(e))>=0?e.ownerDocument.body:tn(e)&&zu(e)?e:f1(ba(e))}function is(e,t){var n;t===void 0&&(t=[]);var o=f1(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 Cc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WO(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===s1?Cc(zO(e,n)):Lo(t)?WO(t,n):Cc(HO(lo(e)))}function UO(e){var t=is(ba(e)),n=["absolute","fixed"].indexOf($n(e).position)>=0,o=n&&tn(e)?Us(e):e;return Lo(o)?t.filter(function(r){return Lo(r)&&l1(r,o)&&En(r)!=="body"}):[]}function YO(e,t,n,o){var r=t==="clippingParents"?UO(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=Wi(d.right,c.right),c.bottom=Wi(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 p1(e){var t=e.reference,n=e.element,o=e.placement,r=o?Sn(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?$u(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 Cs(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?fO:l,u=n.rootBoundary,d=u===void 0?s1: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=u1(typeof y!="number"?y:d1(y,Ws)),w=p===Vr?pO:Vr,C=e.rects.popper,S=e.elements[m?w:p],T=YO(Lo(S)?S:S.contextElement||lo(e.elements.popper),c,d,a),E=mr(e.elements.reference),M=p1({reference:E,element:C,placement:r}),_=Cc(Object.assign({},C,M)),D=p===Vr?_:E,V={top:T.top-D.top+v.top,bottom:D.bottom-T.bottom+v.bottom,left:T.left-D.left+v.left,right:D.right-T.right+v.right},N=e.modifiersData.offset;if(p===Vr&&N){var x=N[r];Object.keys(V).forEach(function(L){var R=[on,nn].indexOf(L)>=0?1:-1,A=[Ft,nn].indexOf(L)>=0?"y":"x";V[L]+=x[A]*R})}return V}function qO(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?i1:c,d=gr(o),f=d?l?Up:Up.filter(function(m){return gr(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]=Cs(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[Sn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function GO(e){if(Sn(e)===ju)return[];var t=Si(e);return[Gp(e),t,Gp(t)]}function KO(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=Sn(y),w=v===y,C=c||(w||!m?[Si(y)]:GO(y)),S=[y].concat(C).reduce(function(K,oe){return K.concat(Sn(oe)===ju?qO(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=S[0],V=0;V<S.length;V++){var N=S[V],x=Sn(N),L=gr(N)===pr,R=[Ft,nn].indexOf(x)>=0,A=R?"width":"height",O=Cs(t,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=R?L?on:Bt:L?nn:Ft;T[A]>E[A]&&(j=Si(j));var B=Si(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,I=function(oe){var Z=S.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=I(Y);if(q==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const ZO={name:"flip",enabled:!0,phase:"main",fn:KO,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 XO(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Cs(t,{elementContext:"reference"}),l=Cs(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 QO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XO};function JO(e,t,n){var o=Sn(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 ek(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=i1.reduce(function(d,f){return d[f]=JO(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 tk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ek};function nk(e){var t=e.state,n=e.name;t.modifiersData[n]=p1({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ok={name:"popperOffsets",enabled:!0,phase:"read",fn:nk,data:{}};function rk(e){return e==="x"?"y":"x"}function sk(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=Cs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=Sn(t.placement),w=gr(t.placement),C=!w,S=$u(v),T=rk(S),E=t.modifiersData.popperOffsets,M=t.rects.reference,_=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(E){if(i){var L,R=S==="y"?Ft:Bt,A=S==="y"?nn:on,O=S==="y"?"height":"width",j=E[S],B=j+y[R],F=j-y[A],z=h?-_[O]/2:0,I=w===pr?M[O]:_[O],Y=w===pr?-_[O]:-M[O],q=t.elements.arrow,K=h&&q?Vu(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:c1(),Z=oe[R],Q=oe[A],se=ss(0,M[O],K[O]),J=C?M[O]/2-z-se-Z-V.mainAxis:I-se-Z-V.mainAxis,$=C?-M[O]/2+z+se+Q+V.mainAxis:Y+se+Q+V.mainAxis,W=t.elements.arrow&&Us(t.elements.arrow),H=W?S==="y"?W.clientTop||0:W.clientLeft||0:0,ee=(L=N==null?void 0:N[S])!=null?L:0,X=j+J-ee-H,re=j+$-ee,te=ss(h?Wi(B,X):B,j,h?Ao(F,re):F);E[S]=te,x[S]=te-j}if(l){var ue,ie=S==="x"?Ft:Bt,me=S==="x"?nn:on,le=E[T],de=T==="y"?"height":"width",pe=le+y[ie],_e=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+V.altAxis,wt=Oe?le+M[de]+_[de]-Xe-V.altAxis:_e,ht=h&&Oe?kO(tt,le,wt):ss(h?tt:pe,le,h?wt:_e);E[T]=ht,x[T]=ht-le}t.modifiersData[o]=x}}const ik={name:"preventOverflow",enabled:!0,phase:"main",fn:sk,requiresIfExists:["offset"]};function ak(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lk(e){return e===qt(e)||!tn(e)?Fu(e):ak(e)}function ck(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 uk(e,t,n){n===void 0&&(n=!1);var o=tn(t),r=tn(t)&&ck(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=lk(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 dk(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 fk(e){var t=dk(e);return wO.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function pk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hk(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 mk(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 w=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:Lo(l)?is(l):l.contextElement?is(l.contextElement):[],popper:is(c)};var C=fk(hk([].concat(o,d.options.modifiers)));return d.orderedModifiers=C.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,w=v.reference,C=v.popper;if(Jp(w,C)){d.rects={reference:uk(w,Us(C),d.options.strategy==="fixed"),popper:Vu(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var T=d.orderedModifiers[S],E=T.fn,M=T.options,_=M===void 0?{}:M,D=T.name;typeof E=="function"&&(d=E({state:d,options:_,name:D,instance:h})||d)}}}},update:pk(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,w=y.options,C=w===void 0?{}:w,S=y.effect;if(typeof S=="function"){var T=S({state:d,name:v,instance:h,options:C}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var gk=[$O,ok,LO,EO,tk,ZO,ik,AO,QO],yk=mk({defaultModifiers:gk});function bk(e){return typeof e=="function"?e():e}const Ss=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=Ve(P.isValidElement(o)?Bs(o):null,n);if(Pt(()=>{i||l(bk(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&&ev.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Ss.propTypes={children:s.node,container:s.oneOfType([Vn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Ss.propTypes=sm(Ss.propTypes));function vk(e){return Pe("MuiPopper",e)}Te("MuiPopper",["root"]);function xk(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 Ui(e){return typeof e=="function"?e():e}function va(e){return e.nodeType!==void 0}function Ck(e){return!va(e)}const Sk=e=>{const{classes:t}=e;return we({root:["root"]},vk,t)},wk={},Tk=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),w=Ve(v,n),C=P.useRef(null),S=Ve(C,f),T=P.useRef(S);Pt(()=>{T.current=S},[S]),P.useImperativeHandle(f,()=>C.current,[]);const E=xk(u,i),[M,_]=P.useState(E),[D,V]=P.useState(Ui(o));P.useEffect(()=>{C.current&&C.current.forceUpdate()}),P.useEffect(()=>{o&&V(Ui(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=yk(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=
|
|
117
|
+
`));const t=P.useMemo(()=>U({},EM,e.localeText),[e.localeText]);return P.useMemo(()=>U({},e,{localeText:t}),[e,t])},Ke=()=>ku().adapter,ao=()=>ku().localeText,hc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],mc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Wy=["minDateTime","maxDateTime"],MM=[...hc,...mc,...Wy],Uy=e=>MM.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),OM=["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=U({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return OM.forEach(r),t==="date"?hc.forEach(r):t==="time"?mc.forEach(r):t==="date-time"&&(hc.forEach(r),mc.forEach(r),Wy.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),kM=({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},DM=({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},IM=(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}},RM=({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=Cu(e,a),u=Vy(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(Su(jo(p,r),h),r))}return U({},c,{format:a,maxLength:h,value:p,placeholder:IM(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},AM=e=>{var h;const{adapter:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=m=>o.find(g=>g.start<=m&&g.end>=m);let p=0;for(;p<n.length;){const m=f(p),g=m!=null,y=(h=c.exec(n.slice(p)))==null?void 0:h[1];if(!g&&y!=null&&u.test(y)){let v=y;for(;v.length>0;){const S=d.exec(v)[1];v=v.slice(S.length),i.push(RM(U({},e,{now:r,token:S,startSeparator:a}))),a=""}p+=y.length}else{const v=n[p];g&&(m==null?void 0:m.start)===p||(m==null?void 0:m.end)===p||(i.length===0?a+=v:(i[i.length-1].endSeparator+=v,i[i.length-1].isEndFormatSeparator=!0)),p+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},NM=({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=kM(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=DM(U({},e,{expandedFormat:t})),o=AM(U({},e,{expandedFormat:t,escapedParts:n}));return NM(U({},e,{sections:o}))},Du=()=>P.useContext(ga),_M=()=>{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 jM(e){return Pe("MuiDatePickerToolbar",e)}Te("MuiDatePickerToolbar",["root","title"]);const LM=["toolbarFormat","toolbarPlaceholder","className","classes"],VM=e=>Se({root:["root"],title:["title"]},jM,e),$M=ae.styled(Hy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),FM=ae.styled(io,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Iu=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Me(o,LM),u=Ke(),{value:d,views:f,orientation:p}=Tr(),h=ao(),m=By(),g=VM(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($M,U({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ye(g.root,a)},c,{children:b.jsx(FM,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Iu.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Iu.propTypes={classes:s.object,className:s.string,hidden:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node});const Vs=({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}};Vs.valueManager=Pn;function qy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Ke(),l=P.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(c);P.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=he(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const BM=()=>ku().defaultDates,ya=e=>{const t=Ke(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function HM(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Vs,internal_valueManager:Pn,internal_fieldValueManager:uM,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:WM,internal_useOpenPickerButtonAriaLabel:zM}),[t])}function zM(e){const t=Ke(),n=ao();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function WM(e){const t=Ke(),n=$s(e);return P.useMemo(()=>U({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function $s(e){const t=Ke(),n=BM();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=$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},z6({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:U({toolbar:Iu},n.slots)})}function fr(e){return typeof e=="string"}function Zy(e,t,n){return e===void 0||fr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ky(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=Ky({...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=Ve(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Zy(t,{...l,ref:u},o)}const Hp={};function Qy(e,t){const n=P.useRef(Hp);return n.current===Hp&&(n.current=e(t)),n}const UM=[];function YM(e){P.useEffect(e,UM)}class Ru{constructor(){fe(this,"currentId",null);fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fe(this,"disposeEffect",()=>this.clear)}static create(){return new Ru}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Kn(){const e=Qy(Ru.create).current;return YM(e.disposeEffect),e}function Fn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function qM(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"&&!qM(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 GM(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ZM(e,t){e.classList?e.classList.add(t):GM(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function zp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function KM(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=zp(e.className,t):e.setAttribute("class",zp(e.className&&e.className.baseVal||"",t))}const Wp={disabled:!1};var XM=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,QM=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 Hi=k.createContext(null);var e1=function(t){return t.scrollTop},Kr="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=Kr:c=To,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Kr?{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&&e1(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===To&&this.setState({status:Kr})},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||Wp.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||Wp.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===Kr)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(Hi.Provider,{value:null},typeof a=="function"?a(r,l):k.cloneElement(k.Children.only(a),l))},t}(k.Component);sn.contextType=Hi;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=XM;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 Uo(){}sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uo,onEntering:Uo,onEntered:Uo,onExit:Uo,onExiting:Uo,onExited:Uo};sn.UNMOUNTED=Kr;sn.EXITED=To;sn.ENTERING=Po;sn.ENTERED=Go;sn.EXITING=yc;var JM=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return ZM(t,o)})},gl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return KM(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&&e1(r),l&&(this.appliedClasses[i][a]=l,JM(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,U({},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"?U({},sn.propTypes,{classNames:QM,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function eO(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 tO(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 nO(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 oO(e,t,n){var o=_u(e.children),r=tO(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 rO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sO={component:"div",childFactory:function(t){return t}},Hs=function(e){Au(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(eO(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?nO(r,l):oO(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=U({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Me(r,["component","childFactory"]),c=this.state.contextValue,u=rO(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?k.createElement(Hi.Provider,{value:c},u):k.createElement(Hi.Provider,{value:c},k.createElement(i,l,u))},t}(k.Component);Hs.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Hs.defaultProps=sO;const t1=e=>e.scrollTop;function zi(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function bc(e){return`scale(${e}, ${e**2})`}const iO={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,S=Kn(),C=P.useRef(),w=aa(),T=P.useRef(null),E=Ve(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)=>{t1(A);const{duration:j,delay:B,easing:F}=zi({style:m,timeout:g,easing:a},{mode:"enter"});let H;g==="auto"?(H=w.transitions.getAutoHeightDuration(A.clientHeight),C.current=H):H=j,A.style.transition=[w.transitions.create("opacity",{duration:H,delay:B}),w.transitions.create("transform",{duration:yl?H:H*.666,delay:B,easing:F})].join(","),c&&c(A,O)}),V=M(u),N=M(h),x=M(A=>{const{duration:O,delay:j,easing:B}=zi({style:m,timeout:g,easing:a},{mode:"exit"});let F;g==="auto"?(F=w.transitions.getAutoHeightDuration(A.clientHeight),C.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),R=A=>{g==="auto"&&S.start(C.current||0,A),o&&o(T.current,A)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:D,onEntered:V,onEntering:_,onExit:x,onExited:L,onExiting:N,addEndListener:R,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,...iO[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 aO={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:S=sn,...C}=t,w=P.useRef(null),T=Ve(w,Bs(l),n),E=R=>A=>{if(R){const O=w.current;A===void 0?R(O):R(O,A)}},M=E(p),_=E((R,A)=>{t1(R);const O=zi({style:y,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=o.transitions.create("opacity",O),R.style.transition=o.transitions.create("opacity",O),d&&d(R,A)}),D=E(f),V=E(g),N=E(R=>{const A=zi({style:y,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=o.transitions.create("opacity",A),R.style.transition=o.transitions.create("opacity",A),h&&h(R)}),x=E(m),L=R=>{i&&i(w.current,R)};return b.jsx(S,{appear:a,in:u,nodeRef:w,onEnter:_,onEntered:D,onEntering:M,onExit:N,onExited:x,onExiting:V,addEndListener:L,timeout:v,...C,children:(R,{ownerState:A,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!u?"hidden":void 0,...aO[R],...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 lO(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 n1(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=lO(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function o1(e,t,n,o){return e[t]===void 0?null:n1(e,t,n,o)}function vc(){return null}o1.isRequired=n1;vc.isRequired=vc;const r1=process.env.NODE_ENV==="production"?vc:o1;function cO(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 uO=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Se(i,cO,r)},dO=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}`]]}})(Ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),zs=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=uO(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(dO,{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"&&(zs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Fn(r1,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 Ft="top",nn="bottom",on="right",Bt="left",ju="auto",Ws=[Ft,nn,on,Bt],pr="start",xs="end",fO="clippingParents",s1="viewport",Vr="popper",pO="reference",Up=Ws.reduce(function(e,t){return e.concat([t+"-"+pr,t+"-"+xs])},[]),i1=[].concat(Ws,[ju]).reduce(function(e,t){return e.concat([t,t+"-"+pr,t+"-"+xs])},[]),hO="beforeRead",mO="read",gO="afterRead",yO="beforeMain",bO="main",vO="afterMain",xO="beforeWrite",CO="write",wO="afterWrite",SO=[hO,mO,gO,yO,bO,vO,xO,CO,wO];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 TO(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 PO(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 EO={name:"applyStyles",enabled:!0,phase:"write",fn:TO,effect:PO,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var Ao=Math.max,Wi=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 a1(){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=!a1()&&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 Vu(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 l1(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 $n(e){return qt(e).getComputedStyle(e)}function MO(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)||$n(e).position==="fixed"?null:e.offsetParent}function OO(e){var t=/firefox/i.test(xc()),n=/Trident/i.test(xc());if(n&&tn(e)){var o=$n(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=$n(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Us(e){for(var t=qt(e),n=Yp(e);n&&MO(n)&&$n(n).position==="static";)n=Yp(n);return n&&(En(n)==="html"||En(n)==="body"&&$n(n).position==="static")?t:n||OO(e)||t}function $u(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ss(e,t,n){return Ao(e,Wi(t,n))}function kO(e,t,n){var o=ss(e,t,n);return o>n?n:o}function c1(){return{top:0,right:0,bottom:0,left:0}}function u1(e){return Object.assign({},c1(),e)}function d1(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var DO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u1(typeof t!="number"?t:d1(t,Ws))};function IO(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=$u(l),u=[Bt,on].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=DO(r.padding,n),p=Vu(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=Us(i),S=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,C=g/2-y/2,w=f[h],T=S-p[d]-f[m],E=S/2-p[d]/2+C,M=ss(w,E,T),_=c;n.modifiersData[o]=(t={},t[_]=M,t.centerOffset=M-E,t)}}function RO(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)||l1(t.elements.popper,r)&&(t.elements.arrow=r))}const AO={name:"arrow",enabled:!0,phase:"main",fn:IO,effect:RO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gr(e){return e.split("-")[1]}var NO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _O(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x: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"),S=a.hasOwnProperty("y"),C=Bt,w=Ft,T=window;if(u){var E=Us(n),M="clientHeight",_="clientWidth";if(E===qt(n)&&(E=lo(n),$n(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){C=on;var V=f&&E===T&&T.visualViewport?T.visualViewport.width:E[_];h-=V-o.width,h*=c?1:-1}}var N=Object.assign({position:l},u&&NO),x=d===!0?_O({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]=S?"0":"",L[C]=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]=S?g+"px":"",t[C]=v?h+"px":"",t.transform="",t))}function jO(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 LO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jO,data:{}};var li={passive:!0};function VO(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 $O={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VO,data:{}};var FO={left:"right",right:"left",bottom:"top",top:"bottom"};function wi(e){return e.replace(/left|right|bottom|top/g,function(t){return FO[t]})}var BO={start:"end",end:"start"};function Gp(e){return e.replace(/start|end/g,function(t){return BO[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 HO(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=a1();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Bu(e),y:c}}function zO(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 $n(r||n).direction==="rtl"&&(l+=Ao(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Hu(e){var t=$n(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function f1(e){return["html","body","#document"].indexOf(En(e))>=0?e.ownerDocument.body:tn(e)&&Hu(e)?e:f1(ba(e))}function is(e,t){var n;t===void 0&&(t=[]);var o=f1(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=qt(o),a=r?[i].concat(i.visualViewport||[],Hu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(is(ba(a)))}function Cc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WO(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 Zp(e,t,n){return t===s1?Cc(HO(e,n)):Lo(t)?WO(t,n):Cc(zO(lo(e)))}function UO(e){var t=is(ba(e)),n=["absolute","fixed"].indexOf($n(e).position)>=0,o=n&&tn(e)?Us(e):e;return Lo(o)?t.filter(function(r){return Lo(r)&&l1(r,o)&&En(r)!=="body"}):[]}function YO(e,t,n,o){var r=t==="clippingParents"?UO(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Zp(e,u,o);return c.top=Ao(d.top,c.top),c.right=Wi(d.right,c.right),c.bottom=Wi(d.bottom,c.bottom),c.left=Ao(d.left,c.left),c},Zp(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 p1(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?$u(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 Cs(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?fO:l,u=n.rootBoundary,d=u===void 0?s1: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=u1(typeof y!="number"?y:d1(y,Ws)),S=p===Vr?pO:Vr,C=e.rects.popper,w=e.elements[m?S:p],T=YO(Lo(w)?w:w.contextElement||lo(e.elements.popper),c,d,a),E=mr(e.elements.reference),M=p1({reference:E,element:C,placement:r}),_=Cc(Object.assign({},C,M)),D=p===Vr?_:E,V={top:T.top-D.top+v.top,bottom:D.bottom-T.bottom+v.bottom,left:T.left-D.left+v.left,right:D.right-T.right+v.right},N=e.modifiersData.offset;if(p===Vr&&N){var x=N[r];Object.keys(V).forEach(function(L){var R=[on,nn].indexOf(L)>=0?1:-1,A=[Ft,nn].indexOf(L)>=0?"y":"x";V[L]+=x[A]*R})}return V}function qO(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?i1:c,d=gr(o),f=d?l?Up:Up.filter(function(m){return gr(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]=Cs(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 GO(e){if(wn(e)===ju)return[];var t=wi(e);return[Gp(e),t,Gp(t)]}function ZO(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),S=v===y,C=c||(S||!m?[wi(y)]:GO(y)),w=[y].concat(C).reduce(function(Z,oe){return Z.concat(wn(oe)===ju?qO(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],V=0;V<w.length;V++){var N=w[V],x=wn(N),L=gr(N)===pr,R=[Ft,nn].indexOf(x)>=0,A=R?"width":"height",O=Cs(t,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=R?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(Z){return Z})){D=N,_=!1;break}M.set(N,F)}if(_)for(var H=m?3:1,I=function(oe){var K=w.find(function(Q){var se=M.get(Q);if(se)return se.slice(0,oe).every(function(J){return J})});if(K)return D=K,"break"},Y=H;Y>0;Y--){var q=I(Y);if(q==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const KO={name:"flip",enabled:!0,phase:"main",fn:ZO,requiresIfExists:["offset"],data:{_skip:!1}};function Kp(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 XO(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Cs(t,{elementContext:"reference"}),l=Cs(t,{altBoundary:!0}),c=Kp(a,o),u=Kp(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 QO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XO};function JO(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 ek(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=i1.reduce(function(d,f){return d[f]=JO(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 tk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ek};function nk(e){var t=e.state,n=e.name;t.modifiersData[n]=p1({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ok={name:"popperOffsets",enabled:!0,phase:"read",fn:nk,data:{}};function rk(e){return e==="x"?"y":"x"}function sk(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=Cs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=wn(t.placement),S=gr(t.placement),C=!S,w=$u(v),T=rk(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,V=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,R=w==="y"?Ft:Bt,A=w==="y"?nn:on,O=w==="y"?"height":"width",j=E[w],B=j+y[R],F=j-y[A],H=h?-_[O]/2:0,I=S===pr?M[O]:_[O],Y=S===pr?-_[O]:-M[O],q=t.elements.arrow,Z=h&&q?Vu(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:c1(),K=oe[R],Q=oe[A],se=ss(0,M[O],Z[O]),J=C?M[O]/2-H-se-K-V.mainAxis:I-se-K-V.mainAxis,$=C?-M[O]/2+H+se+Q+V.mainAxis:Y+se+Q+V.mainAxis,W=t.elements.arrow&&Us(t.elements.arrow),z=W?w==="y"?W.clientTop||0:W.clientLeft||0:0,ee=(L=N==null?void 0:N[w])!=null?L:0,X=j+J-ee-z,re=j+$-ee,te=ss(h?Wi(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],_e=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+V.altAxis,St=Oe?le+M[de]+_[de]-Xe-V.altAxis:_e,ht=h&&Oe?kO(tt,le,St):ss(h?tt:pe,le,h?St:_e);E[T]=ht,x[T]=ht-le}t.modifiersData[o]=x}}const ik={name:"preventOverflow",enabled:!0,phase:"main",fn:sk,requiresIfExists:["offset"]};function ak(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lk(e){return e===qt(e)||!tn(e)?Fu(e):ak(e)}function ck(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 uk(e,t,n){n===void 0&&(n=!1);var o=tn(t),r=tn(t)&&ck(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"||Hu(i))&&(l=lk(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 dk(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 fk(e){var t=dk(e);return SO.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function pk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hk(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 mk(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 S=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,S),d.scrollParents={reference:Lo(l)?is(l):l.contextElement?is(l.contextElement):[],popper:is(c)};var C=fk(hk([].concat(o,d.options.modifiers)));return d.orderedModifiers=C.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,S=v.reference,C=v.popper;if(Jp(S,C)){d.rects={reference:uk(S,Us(C),d.options.strategy==="fixed"),popper:Vu(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var T=d.orderedModifiers[w],E=T.fn,M=T.options,_=M===void 0?{}:M,D=T.name;typeof E=="function"&&(d=E({state:d,options:_,name:D,instance:h})||d)}}}},update:pk(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,S=y.options,C=S===void 0?{}:S,w=y.effect;if(typeof w=="function"){var T=w({state:d,name:v,instance:h,options:C}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var gk=[$O,ok,LO,EO,tk,KO,ik,AO,QO],yk=mk({defaultModifiers:gk});function bk(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=Ve(P.isValidElement(o)?Bs(o):null,n);if(Pt(()=>{i||l(bk(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&&ev.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(ws.propTypes={children:s.node,container:s.oneOfType([Vn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ws.propTypes=sm(ws.propTypes));function vk(e){return Pe("MuiPopper",e)}Te("MuiPopper",["root"]);function xk(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 Ui(e){return typeof e=="function"?e():e}function va(e){return e.nodeType!==void 0}function Ck(e){return!va(e)}const wk=e=>{const{classes:t}=e;return Se({root:["root"]},vk,t)},Sk={},Tk=P.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:g,...y}=t,v=P.useRef(null),S=Ve(v,n),C=P.useRef(null),w=Ve(C,f),T=P.useRef(w);Pt(()=>{T.current=w},[w]),P.useImperativeHandle(f,()=>C.current,[]);const E=xk(u,i),[M,_]=P.useState(E),[D,V]=P.useState(Ui(o));P.useEffect(()=>{C.current&&C.current.forceUpdate()}),P.useEffect(()=>{o&&V(Ui(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=yk(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=wk(t),L=h.root??"div",R=Le({elementType:L,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:x.root});return b.jsx(L,{...R,children:typeof r=="function"?r(N):r})}),h1=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=Sk,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:v={},...S}=t,[C,w]=P.useState(!0),T=()=>{w(!1)},E=()=>{w(!0)};if(!c&&!d&&(!g||C))return null;let M;if(i)M=i;else if(o){const V=Ui(o);M=V&&va(V)?Et(V).body:Et(null).body}const _=!d&&c&&(!g||C)?"none":void 0,D=g?{in:d,onEnter:T,onExited:E}:void 0;return b.jsx(ws,{disablePortal:l,container:M,children:b.jsx(Tk,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!C:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:v,...S,style:{position:"fixed",top:0,left:0,display:_,...m},TransitionProps:D,children:r})})});process.env.NODE_ENV!=="production"&&(h1.propTypes={anchorEl:Fn(s.oneOfType([Vn,s.object,s.func]),e=>{if(e.open){const t=Ui(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
121
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Ck(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
122
|
-
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Vn,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:
|
|
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 C=Et(m.current),
|
|
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=
|
|
122
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Vn,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const Pk=be(h1,{name:"MuiPopper",slot:"Root"})({}),m1=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:S,slotProps:C,...w}=r,T=(S==null?void 0:S.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,...w};return b.jsx(Pk,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:C??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(m1.propTypes={anchorEl:s.oneOfType([Vn,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Vn,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function 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 Ek=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Mk(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 Ok(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 kk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ok(e))}function Dk(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ek)).forEach((o,r)=>{const i=Mk(o);i===-1||!kk(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 Ik(){return!0}function Ss(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=Dk,isEnabled:a=Ik,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=Ve(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 C=Et(m.current),w=Xr(C);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 C=Et(m.current),w=M=>{if(y.current=M,o||!a()||M.key!=="Tab")return;Xr(C)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var V,N;const M=m.current;if(M===null)return;const _=Xr(C);if(!C.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=!!((V=y.current)!=null&&V.shiftKey&&((N=y.current)==null?void 0:N.key)==="Tab"),L=D[0],R=D[D.length-1];typeof L!="string"&&typeof R!="string"&&(x?R.focus():L.focus())}else M.focus()};C.addEventListener("focusin",T),C.addEventListener("keydown",w,!0);const E=setInterval(()=>{const M=Xr(C);M&&M.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),C.removeEventListener("focusin",T),C.removeEventListener("keydown",w,!0)}},[n,o,r,a,l,i]);const v=C=>{f.current===null&&(f.current=C.relatedTarget),h.current=!0,p.current=C.target;const w=t.props.onFocus;w&&w(C)},S=C=>{f.current===null&&(f.current=C.relatedTarget),h.current=!0};return b.jsxs(P.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:v}),b.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ss.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"&&(Ss.propTypes=sm(Ss.propTypes));function Rk(e){return Pe("MuiPickerPopper",e)}Te("MuiPickerPopper",["root","paper"]);function Ak(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Nk=e=>{setTimeout(e,0)},g1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?g1(t.shadowRoot):t:null},jt=e=>g1(Et(e)),_k="@media (pointer: fine)",jk=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Lk=e=>Se({root:["root"],paper:["paper"]},Rk,e),Vk=ae.styled(m1,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),$k=ae.styled(zs,{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 Fk(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Bk(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&&Fk(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 y1=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Me(e,jk),d=Le({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,U({},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"&&(y1.displayName="PickerPopperPaperWrapper");function Hk(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 S=Lk(a),C=he(()=>{y==="tooltip"?Nk(()=>{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]=Bk(l,C),M=P.useRef(null),_=Ve(M,c),D=Ve(_,w),V=j=>{j.key==="Escape"&&(j.stopPropagation(),p())},N=(r==null?void 0:r.desktopTransition)??u?to:vs,x=(r==null?void 0:r.desktopTrapFocus)??Ss,L=(r==null?void 0:r.desktopPaper)??$k,R=(r==null?void 0:r.popper)??Vk,A=Le({elementType:R,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:V},className:S.root,ownerState:d}),O=P.useMemo(()=>U({},d,{popperPlacement:A.placement}),[d,A.placement]);return b.jsx(R,U({},A,{children:({TransitionProps:j})=>b.jsx(x,U({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(N,U({},j,i==null?void 0:i.desktopTransition,{onExited:B=>{var F,H,I;m==null||m(),(H=(F=i==null?void 0:i.desktopTransition)==null?void 0:F.onExited)==null||H.call(F,B),(I=j==null?void 0:j.onExited)==null||I.call(j)},children:b.jsx(y1,{PaperComponent:L,ownerState:O,ref:D,onPaperClick:T,onPaperTouchStart:E,paperClasses:S.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const zk="@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,Wk=eh&&eh<10||th&&th<13||!1;function b1(e){const t=Ny(zk,{defaultMatches:!1});return e??(t||Wk)}const v1={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function Uk(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return v1;const i=t.findIndex(l=>n(r.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(U({},r,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(f=>n(l,f)),d=t.find(f=>n(c,f));return u===d}}}}let bl=!1;function x1({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}):v1;P.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(D=>!r.includes(D)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const S=r.indexOf(p),C=r[S-1]??null,w=r[S+1]??null,T=he((D,V)=>{y(V?D:N=>D===N?null:N),l==null||l(D,V)}),E=he(D=>{T(D,!0),D!==p&&(h(D),t&&t(D))}),M=he(()=>{w&&E(w)}),_=he((D,V,N)=>{const x=V==="finish",L=N?r.indexOf(N)<r.length-1:!!w;e(D,x&&L?"partial":V,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 U({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:w,previousView:C,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 Yk(e,t){const[n,o]=P.useState(nh);return Pt(()=>{const r=()=>{o(nh())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),Ak(e,["hours","minutes","seconds"])?"portrait":t??n}const oh=new Set;function C1(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=Ke(),[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 qk(e){const{props:t,valueManager:n,validator:o}=e,{value:r,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:f,onOpen:p,onClose:h}=t,{current:m}=P.useRef(i),{current:g}=P.useRef(r!==void 0),{current:y}=P.useRef(f!==void 0),v=Ke();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&C1(["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:
|
|
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=Qk(),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 Xk(){return Yi.use()}function Qk(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function T1(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"&&(T1.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
|
|
126
|
+
`))},[JSON.stringify(m)]));const{timezone:S,value:C,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:C,clockShallowValue:void 0,lastCommittedValue:C,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=qy({props:t,validator:o,timezone:S,value:C,onError:t.onError}),_=he(x=>{const L=typeof x=="function"?x(T.open):x;y||E(R=>U({},R,{open:L})),L&&p&&p(),L||h==null||h()}),D=he((x,L)=>{const{changeImportance:R="accept",skipPublicationIfPristine:A=!1,validationError:O,shortcut:j,source:B,shouldClose:F=R==="accept"}=L??{};let H,I;!A&&!g&&!T.hasBeenModifiedSinceMount?(H=!0,I=R==="accept"):(H=!n.areValuesEqual(v,x,C),I=R==="accept"&&!n.areValuesEqual(v,x,T.lastCommittedValue)),E(Z=>U({},Z,{clockShallowValue:H?void 0:Z.clockShallowValue,lastCommittedValue:I?x:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const q=()=>{if(!Y){let Z;B?Z=B:j?Z="view":Z="unknown",Y={validationError:O??M(x),source:Z},j&&(Y.shortcut=j)}return Y};H&&w(x,q()),I&&u&&u(x,q()),F&&_(!1)});C!==T.lastExternalValue&&E(x=>U({},x,{lastExternalValue:C,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=he((x,L="partial")=>{if(L==="shallow"){E(R=>U({},R,{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=>U({},x,{open:f}))}},[y,f]);const N=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?C:T.clockShallowValue),[v,n,T.clockShallowValue,C]);return{timezone:S,state:T,setValue:D,setValueFromView:V,setOpen:_,value:C,viewValue:N}}const Gk=["className","sx"],w1=({ref:e,props:t,valueManager:n,valueType:o,variant:r,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:p,view:h,openTo:m,onViewChange:g,viewRenderers:y,reduceAnimations:v,orientation:S,disableOpenPicker:C,closeOnSelect:w,disabled:T,readOnly:E,formatDensity:M,enableAccessibleFieldDOMStructure:_,selectedSections:D,onSelectedSectionsChange:V,format:N,label:x,autoFocus:L,name:R}=t,{className:A,sx:O}=t,j=Me(t,Gk),B=ro(),F=Ke(),H=b1(v),I=Yk(p,S),{current:Y}=P.useRef(m??null),[q,Z]=P.useState(null),oe=P.useRef(null),K=P.useRef(null),Q=P.useRef(null),se=Ve(e,Q),{timezone:J,state:$,setOpen:W,setValue:z,setValueFromView:ee,value:X,viewValue:re}=qk({props:t,valueManager:n,validator:i}),{view:te,setView:ue,defaultView:ie,focusedView:me,setFocusedView:le,setValueAndGoToNextView:de,goToNextStep:pe,hasNextStep:_e,hasSeveralSteps:Oe}=x1({view:h,views:p,openTo:m,onChange:ee,onViewChange:g,autoFocus:l,getStepNavigation:f}),Xe=he(()=>z(n.emptyValue,{source:"view"})),tt=he(()=>z(n.getTodayValue(F,J,o),{source:"view"})),St=he(()=>z(X,{source:"view"})),ht=he(()=>z($.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Ee=he(()=>{z(X,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:we,viewModeLookup:xe,timeViewsCount:$e}=P.useMemo(()=>p.reduce((Ce,je)=>{const Je=y[je]==null?"field":"UI";return Ce.viewModeLookup[je]=Je,Je==="UI"&&(Ce.hasUIView=!0,Z6(je)&&(Ce.timeViewsCount+=1)),Ce},{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"&&$.open&&(W(!1),setTimeout(()=>{var Ce,je;(Ce=K==null?void 0:K.current)==null||Ce.setSelectedSections(te),(je=K==null?void 0:K.current)==null||je.focusField(te)}))},[te]),Pt(()=>{if(!$.open)return;let Ce=te;Be==="field"&&Qe!=null&&(Ce=Qe),Ce!==ie&&xe[Ce]==="UI"&&xe[ie]==="UI"&&(Ce=ie),Ce!==te&&ue(Ce),le(Ce,!0)},[$.open]);const ke=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(F,X,n.emptyValue),isPickerOpen:$.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:I,pickerVariant:r}),[F,n,X,$.open,I,r,t.disabled,t.readOnly]),ct=P.useMemo(()=>C||!we?"hidden":T||E?"disabled":"enabled",[C,we,T,E]),bt=he(pe),Dt=P.useMemo(()=>w&&!Oe?[]:["cancel","nextOrAccept"],[w,Oe]),pn=P.useMemo(()=>({setValue:z,setOpen:W,clearValue:Xe,setValueToToday:tt,acceptValueChanges:St,cancelValueChanges:ht,setView:ue,goToNextStep:bt}),[z,W,Xe,tt,St,ht,ue,bt]),ge=P.useMemo(()=>U({},pn,{value:X,timezone:J,open:$.open,views:p,view:Qe,initialView:Y,disabled:T??!1,readOnly:E??!1,autoFocus:L??!1,variant:r,orientation:I,popupRef:oe,reduceAnimations:H,triggerRef:Z,triggerStatus:ct,hasNextStep:_e,fieldFormat:N??"",name:R,label:x,rootSx:O,rootRef:se,rootClassName:A}),[pn,X,se,r,I,H,T,E,N,A,R,x,O,ct,_e,J,$.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:V,fieldRef:K}),[M,_,D,V,K]);return{providerProps:{localeText:u,contextValue:ge,privateContextValue:De,actionsContextValue:pn,fieldPrivateContextValue:ut,isValidContextValue:Ce=>{const je=i({adapter:F,value:Ce,timezone:J,props:t});return!n.hasError(je)}},renderCurrentView:()=>{if(Qe==null)return null;const Ce=y[Qe];if(Ce==null)return null;const je=U({},j,{views:p,timezone:J,value:re,onChange:de,view:Qe,onViewChange:ue,showViewSwitcher:$e>1,timeViewsCount:$e},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:me,onFocusedViewChange:le});return c?b.jsx(c,{viewRenderers:y,popperView:Qe,rendererProps:je}):Ce(je)},ownerState:ke}};function S1(e){return Pe("MuiPickersLayout",e)}const mo=Te("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Zk(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Kk(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"&&!Zk(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,Kk);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=Qk(),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 Xk(){return Yi.use()}function Qk(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function T1(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"&&(T1.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 Kt=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wc=550,Jk=80,eD=Ht.keyframes`
|
|
128
128
|
0% {
|
|
129
129
|
transform: scale(0);
|
|
130
130
|
opacity: 0.1;
|
|
@@ -134,7 +134,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
134
134
|
transform: scale(1);
|
|
135
135
|
opacity: 0.3;
|
|
136
136
|
}
|
|
137
|
-
`,tD=
|
|
137
|
+
`,tD=Ht.keyframes`
|
|
138
138
|
0% {
|
|
139
139
|
opacity: 1;
|
|
140
140
|
}
|
|
@@ -142,7 +142,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
142
142
|
100% {
|
|
143
143
|
opacity: 0;
|
|
144
144
|
}
|
|
145
|
-
`,nD=
|
|
145
|
+
`,nD=Ht.keyframes`
|
|
146
146
|
0% {
|
|
147
147
|
transform: scale(1);
|
|
148
148
|
}
|
|
@@ -158,19 +158,19 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
158
158
|
opacity: 0;
|
|
159
159
|
position: absolute;
|
|
160
160
|
|
|
161
|
-
&.${
|
|
161
|
+
&.${Kt.rippleVisible} {
|
|
162
162
|
opacity: 0.3;
|
|
163
163
|
transform: scale(1);
|
|
164
164
|
animation-name: ${eD};
|
|
165
|
-
animation-duration: ${
|
|
165
|
+
animation-duration: ${wc}ms;
|
|
166
166
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
&.${
|
|
169
|
+
&.${Kt.ripplePulsate} {
|
|
170
170
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
& .${
|
|
173
|
+
& .${Kt.child} {
|
|
174
174
|
opacity: 1;
|
|
175
175
|
display: block;
|
|
176
176
|
width: 100%;
|
|
@@ -179,14 +179,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
179
179
|
background-color: currentColor;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
& .${
|
|
182
|
+
& .${Kt.childLeaving} {
|
|
183
183
|
opacity: 0;
|
|
184
184
|
animation-name: ${tD};
|
|
185
|
-
animation-duration: ${
|
|
185
|
+
animation-duration: ${wc}ms;
|
|
186
186
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
& .${
|
|
189
|
+
& .${Kt.childPulsate} {
|
|
190
190
|
position: absolute;
|
|
191
191
|
/* @noflip */
|
|
192
192
|
left: 0px;
|
|
@@ -197,7 +197,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
197
197
|
animation-iteration-count: infinite;
|
|
198
198
|
animation-delay: 200ms;
|
|
199
199
|
}
|
|
200
|
-
`,P1=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=
|
|
200
|
+
`,P1=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=Kn(),m=P.useRef(null),g=P.useRef(null),y=P.useCallback(w=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:_,cb:D}=w;u(V=>[...V,b.jsx(rD,{classes:{ripple:ye(i.ripple,Kt.ripple),rippleVisible:ye(i.rippleVisible,Kt.rippleVisible),ripplePulsate:ye(i.ripplePulsate,Kt.ripplePulsate),child:ye(i.child,Kt.child),childLeaving:ye(i.childLeaving,Kt.childLeaving),childPulsate:ye(i.childPulsate,Kt.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 V=D?null:g.current,N=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,L,R;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(_)R=Math.sqrt((2*N.width**2+N.height**2)/3),R%2===0&&(R+=1);else{const A=Math.max(Math.abs((V?V.clientWidth:0)-x),x)*2+2,O=Math.max(Math.abs((V?V.clientHeight:0)-L),L)*2+2;R=Math.sqrt(A**2+O**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{y({pulsate:M,rippleX:x,rippleY:L,rippleSize:R,cb:E})},h.start(Jk,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:M,rippleX:x,rippleY:L,rippleSize:R,cb:E})},[r,y,h]),S=P.useCallback(()=>{v({},{pulsate:!0})},[v]),C=P.useCallback((w,T)=>{if(h.clear(),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{C(w,T)});return}m.current=null,u(E=>E.length>0?E.slice(1):E),f.current=T},[h]);return P.useImperativeHandle(n,()=>({pulsate:S,start:v,stop:C}),[S,v,C]),b.jsx(oD,{className:ye(Kt.root,i.root,a),ref:g,...l,children:b.jsx(Hs,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(P1.propTypes={center:s.bool,classes:s.object,className:s.string});function sD(e){return Pe("MuiButtonBase",e)}const iD=Te("MuiButtonBase",["root","disabled","focusVisible"]),aD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},sD,r);return n&&o&&(a.root+=` ${o}`),a},lD=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"},[`&.${iD.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:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:M,onMouseLeave:_,onMouseUp:D,onTouchEnd:V,onTouchMove:N,onTouchStart:x,tabIndex:L=0,TouchRippleProps:R,touchRippleRef:A,type:O,...j}=o,B=P.useRef(null),F=Xk(),H=Ve(F.ref,A),[I,Y]=P.useState(!1);u&&I&&Y(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{Y(!0),B.current.focus()}}),[]);const q=F.shouldMount&&!d&&!u;P.useEffect(()=>{I&&p&&!d&&F.pulsate()},[d,p,I,F]);const Z=kn(F,"start",M,f),oe=kn(F,"stop",v,f),K=kn(F,"stop",S,f),Q=kn(F,"stop",D,f),se=kn(F,"stop",pe=>{I&&pe.preventDefault(),_&&_(pe)},f),J=kn(F,"start",x,f),$=kn(F,"stop",V,f),W=kn(F,"stop",N,f),z=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)),C&&C(pe)}),X=()=>{const pe=B.current;return c&&c!=="button"&&!(pe.tagName==="A"&&pe.href)},re=he(pe=>{p&&!pe.repeat&&I&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&X()&&pe.key===" "&&pe.preventDefault(),T&&T(pe),pe.target===pe.currentTarget&&X()&&pe.key==="Enter"&&!u&&(pe.preventDefault(),y&&y(pe))}),te=he(pe=>{p&&pe.key===" "&&I&&!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=Ve(n,B),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:L,focusVisible:I},de=aD(le);return b.jsxs(lD,{as:ue,className:ye(de.root,l),ownerState:le,onBlur:z,onClick:y,onContextMenu:oe,onFocus:ee,onKeyDown:re,onKeyUp:te,onMouseDown:Z,onMouseLeave:se,onMouseUp:Q,onDragLeave:K,onTouchEnd:$,onTouchMove:W,onTouchStart:J,ref:me,tabIndex:u?-1:L,type:O,...ie,...j,children:[a,q?b.jsx(P1,{ref:H,center:i,...R}):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:wt,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 cD(e){return Pe("MuiCircularProgress",e)}Te("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ln=44,Sc=Ht.keyframes`
|
|
201
201
|
0% {
|
|
202
202
|
transform: rotate(0deg);
|
|
203
203
|
}
|
|
@@ -205,7 +205,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
205
205
|
100% {
|
|
206
206
|
transform: rotate(360deg);
|
|
207
207
|
}
|
|
208
|
-
`,Tc=
|
|
208
|
+
`,Tc=Ht.keyframes`
|
|
209
209
|
0% {
|
|
210
210
|
stroke-dasharray: 1px, 200px;
|
|
211
211
|
stroke-dashoffset: 0;
|
|
@@ -220,26 +220,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
220
220
|
stroke-dasharray: 1px, 200px;
|
|
221
221
|
stroke-dashoffset: -126px;
|
|
222
222
|
}
|
|
223
|
-
`,uD=typeof
|
|
224
|
-
animation: ${
|
|
225
|
-
`:null,dD=typeof Tc!="string"?
|
|
223
|
+
`,uD=typeof Sc!="string"?Ht.css`
|
|
224
|
+
animation: ${Sc} 1.4s linear infinite;
|
|
225
|
+
`:null,dD=typeof Tc!="string"?Ht.css`
|
|
226
226
|
animation: ${Tc} 1.4s ease-in-out infinite;
|
|
227
|
-
`:null,fD=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,cD,t)},pD=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:uD||{animation:`${wc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),hD=be("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),mD=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:dD||{animation:`${Tc} 1.4s ease-in-out infinite`}}]}))),gD=be("circle",{name:"MuiCircularProgress",slot:"Track"})(Ke(({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=fD(m),y={},v={},w={};if(p==="determinate"){const C=2*Math.PI*((ln-d)/2);y.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*C).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(pD,{className:ye(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...w,...h,children:b.jsxs(hD,{className:g.svg,ownerState:m,viewBox:`${ln/2} ${ln/2} ${ln} ${ln}`,children:[l?b.jsx(gD,{className:g.track,ownerState:m,cx:ln,cy:ln,r:(ln-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(mD,{className:g.circle,style:y,ownerState:m,cx:ln,cy:ln,r:(ln-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: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 yD(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"]),E1=P.createContext({});process.env.NODE_ENV!=="production"&&(E1.displayName="ButtonGroupContext");const M1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(M1.displayName="ButtonGroupButtonContext");const bD=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,yD,c);return{...c,...d}},O1=[{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}}}],vD=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"}}}]}})),xD=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}},...O1]})),CD=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}},...O1]})),SD=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"}),Wn=P.forwardRef(function(t,n){const o=P.useContext(E1),r=P.useContext(M1),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:w=null,loadingIndicator:C,loadingPosition:S="center",size:T="medium",startIcon:E,type:M,variant:_="text",...D}=a,V=ro(v),N=C??b.jsx(Hu,{"aria-labelledby":V,color:"inherit",size:16}),x={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:w,loadingIndicator:N,loadingPosition:S,size:T,type:M,variant:_},L=bD(x),R=(E||w&&S==="start")&&b.jsx(xD,{className:L.startIcon,ownerState:x,children:E||b.jsx(sh,{className:L.loadingIconPlaceholder,ownerState:x})}),A=(m||w&&S==="end")&&b.jsx(CD,{className:L.endIcon,ownerState:x,children:m||b.jsx(sh,{className:L.loadingIconPlaceholder,ownerState:x})}),O=r||"",j=typeof w=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:w&&b.jsx(SD,{className:L.loadingIndicator,ownerState:x,children:N})}):null;return b.jsxs(vD,{ownerState:x,className:ye(o.className,L.root,d,O),component:u,disabled:f||w,focusRipple:!h,focusVisibleClassName:ye(L.focusVisible,g),ref:n,type:M,id:w?V:v,...D,classes:L,children:[R,S!=="end"&&j,l,S==="end"&&j,A]})});process.env.NODE_ENV!=="production"&&(Wn.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function wD(e){return Pe("MuiDialogActions",e)}Te("MuiDialogActions",["root","spacing"]);const TD=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},wD,t)},PD=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}}}]}),k1=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=TD(l);return b.jsx(PD,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(k1.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 ED=["actions"],MD=ae.styled(k1,{name:"MuiPickersLayout",slot:"ActionBar"})({});function D1(e){const{actions:t}=e,n=Me(e,ED),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(Wn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Wn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Wn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Wn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Wn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Wn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Wn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(MD,U({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(D1.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 I1=P.memo(D1);process.env.NODE_ENV!=="production"&&(I1.displayName="PickersActionBar");const ar=P.createContext({});process.env.NODE_ENV!=="production"&&(ar.displayName="ListContext");function OD(e){return Pe("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const kD=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},OD,t)},DD=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}}]}),Wu=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=kD(p);return b.jsx(ar.Provider,{value:f,children:b.jsxs(DD,{as:a,className:ye(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Wu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function 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}),w=Ve(v,m==null?void 0:m.ref,t.ref),C=e==="root"?g||u:g,S=Ky(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...C&&!l&&{as:C},...C&&l&&{component:C},ref:w},r);return[h,S]}function ID(e){return Pe("MuiListItem",e)}Te("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const RD=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AD(e){return Pe("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const ND=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},AD,n)},_D=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}}]}),Uu=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=ND(l);return b.jsx(_D,{className:ye(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Uu.muiName="ListItemSecondaryAction";const jD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},LD=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"]},ID,n)},VD=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:jD})(Ke(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${RD.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}}]}))),$D=be("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),R1=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:w={},slots:C={},...S}=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"]),V={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:D},N=LD(V),x=Ve(M,n),L={slots:C,slotProps:w},[R,A]=st("secondaryAction",{elementType:Uu,externalForwardedProps:L,ownerState:V,className:N.secondaryAction}),O=C.root||c.Root||VD,j=w.root||u.root||{},B={className:ye(N.root,j.className,a),...S};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($D,{as:d,className:ye(N.container,f),ref:x,ownerState:V,...p,children:[b.jsx(O,{...j,...!fr(O)&&{as:F,ownerState:{...V,...j.ownerState}},...B,children:_}),_.pop()]})})):b.jsx(ar.Provider,{value:E,children:b.jsxs(O,{...j,as:F,ref:x,...!fr(O)&&{ownerState:{...V,...j.ownerState}},...B,children:[_,v&&b.jsx(R,{...A,children:v})]})})});process.env.NODE_ENV!=="production"&&(R1.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 FD=bt(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 BD(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"]),zD=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,BD,t)},HD=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}}}}))]}})),WD=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 A1=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:w="filled",tabIndex:C,skipFocusWhenDisabled:S=!1,slots:T={},slotProps:E={},...M}=o,_=P.useRef(null),D=Ve(_,n),V=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,R=L||m?yr:c||"div",A={...o,component:R,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:w},O=zD(A),j=R===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:V}):b.jsx(FD,{className:O.deleteIcon,onClick:V}));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 I={slots:T,slotProps:E},[Y,q]=st("root",{elementType:HD,externalForwardedProps:{...I,...M},ownerState:A,shouldForwardComponentProp:!0,ref:D,className:ye(O.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:S&&d?-1:C,...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:WD,externalForwardedProps:I,ownerState:A,className:O.label});return b.jsxs(Y,{as:R,...q,children:[F||z,b.jsx(K,{...oe,children:p}),B]})});process.env.NODE_ENV!=="production"&&(A1.propTypes={avatar:s.element,children:rC,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,Ca=2,Sa=320,UD=280,Yu=336,YD=["items","changeImportance"],qD=["getValue"],GD=ae.styled(Wu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function N1(e){const{items:t,changeImportance:n="accept"}=e,o=Me(e,YD),{setValue:r}=_M(),i=xM();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Me(l,qD);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(GD,U({dense:!0,sx:[{maxHeight:Yu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(R1,{children:b.jsx(A1,U({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(N1.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 KD=["ownerState"];function ZD(e){return e.view!==null}const XD=(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"]},w1,e)},QD=e=>{const{ownerState:t,defaultActionBarActions:n}=kt(),{view:o}=Tr(),r=dn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>U({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=XD(c,u),f=(a==null?void 0:a.actionBar)??I1,p=Le({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Me(p,KD),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=ZD(y)&&g?b.jsx(g,U({},y)):null,w=i,C=a==null?void 0:a.tabs,S=o&&C?b.jsx(C,U({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??N1,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,U({},E)):null;return{toolbar:v,content:w,tabs:S,actionBar:m,shortcuts:_,ownerState:U({},u,{hasShortcuts:M})}},JD=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},w1,e)},eI=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}}}]}),tI=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}=QD(o),{orientation:d,variant:f}=Tr(),{sx:p,className:h,classes:m}=o,g=JD(m,u);return b.jsxs(eI,{ref:n,sx:p,className:ye(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(tI,{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 _1(e){const{steps:t}=e;return Uk({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 nI=["props","steps"],oI=["ownerState"],rI=e=>{var E;let{props:t,steps:n}=e,o=Me(e,nI);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=_1({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=S1(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=Me(y,oI),w=r.layout??wa;let C=h;m&&(a?C=`${h}-label`:C=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),popper:U({"aria-labelledby":C},i==null?void 0:i.popper)}),T=()=>b.jsxs(Fy,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(zk,{slots:r,slotProps:S,children:b.jsx(w,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Yo=e=>e.saveQuery!=null,j1=({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 w=`${n.characterQuery.value}${g}`,C=h(w,y);if(!Yo(C))return r({sectionIndex:p,value:w,sectionType:y.type}),C}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 w=y.filter(C=>C.toLowerCase().startsWith(v));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},h=(g,y,v,w)=>{const C=S=>jy(l,o,y.type,S);if(y.contentType==="letter")return p(y.format,C(y.format),g);if(v&&w!=null&&Cu(l,v).contentType==="letter"){const S=C(v),T=p(v,S,g);return Yo(T)?{saveQuery:!1}:U({},T,{sectionValue:w(T.sectionValue,S)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=w=>Np(l,w,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(w,C)=>C.indexOf(w).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),w=Number(v),C=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(w>C.maximum)return{saveQuery:!1};if(g&&w<C.minimum)return{saveQuery:!0};const S=w*10>C.maximum||v.length===C.maximum.toString().length;return{sectionValue:Ly(l,w,C,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(Yo(y))return y;const v=Np(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(Yo(y))return y;const v=ha(l,g.format)[Number(y.sectionValue)-1];return U({},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(U({},f,{keyPressed:Su(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},sI=5e3,L1=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:w,enableAccessibleFieldDOMStructure:C=!0},forwardedProps:{error:S}}=e,{value:T,handleValueChange:E,timezone:M}=Ys({name:"a field component",timezone:w,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}),V=P.useMemo(()=>eM(t),[t]),N=P.useMemo(()=>sM(t,V,M),[t,V,M]),x=P.useCallback(ie=>l.getSectionsFromValue(ie,me=>Fp({adapter:t,localeText:n,localizedDigits:V,format:h,date:me,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:C,isRtl:o})),[l,h,n,V,o,v,t,m,C]),[L,R]=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=X6(ie),de=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return U({},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(()=>lM(L.sections,o&&!C),[L.sections,o,C]),I=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(()=>S!==void 0?S:D||Y,[D,Y,S]),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]=U({},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)?R(ie=>U({},ie,{sections:ie.sections.map(me=>U({},me,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(R(ie=>U({},ie,{characterQuery:null})),K(a.emptyValue))},$=()=>{if(F==null)return;const ie=L.sections[F];ie.value!==""&&(se(""),l.getDateFromSection(T,ie)===null?R(me=>U({},me,{sections:oe(F,""),tempValueStrAndroid:null,characterQuery:null})):(R(me=>U({},me,{characterQuery:null})),K(l.updateDateInValue(T,ie,null))))},W=ie=>{const me=(de,pe)=>{const _e=t.parse(de,h);if(!t.isValid(_e))return null;const Oe=Fp({adapter:t,localeText:n,localizedDigits:V,format:h,date:_e,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:C,isRtl:o});return Vp(t,_e,Oe,pe,!1)},le=l.parseValueStr(ie,L.referenceValue,me);K(le)},H=Zn(),ee=({section:ie,newSectionValue:me,shouldGoToNextSection:le})=>{Q.clear(),H.clear();const de=l.getDateFromSection(T,ie);le&&F<L.sections.length-1&&j(F+1);const pe=oe(F,me),_e=l.getDateSectionsFromValue(pe,ie),Oe=nM(t,_e,V);if(t.isValid(Oe)){const Xe=Vp(t,Oe,_e,l.getDateFromSection(L.referenceValue,ie),!0);return de==null&&H.start(0,()=>{_.current===T&&R(tt=>U({},tt,{sections:l.clearDateSections(L.sections,ie),tempValueStrAndroid:null}))}),K(l.updateDateInValue(T,ie,Xe))}return _e.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))),R(Xe=>U({},Xe,{sections:pe,tempValueStrAndroid:null})))},X=ie=>R(me=>U({},me,{tempValueStrAndroid:ie})),re=he(ie=>{R(me=>U({},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),R(le=>U({},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),R(me=>U({},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(sI,()=>re(null)),()=>{}),[L.characterQuery,re,te]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&F!=null&&$()},[L.sections]),{activeSectionIndex:F,areAllSectionsEmpty:I,error:q,localizedDigits:V,parsedSelectedSections:B,sectionOrder:z,sectionsValueBoundaries:N,state:L,timezone:M,value:T,clearValue:J,clearActiveSection:$,setCharacterQuery:re,setSelectedSections:j,setTempAndroidValueStr:X,updateSectionValue:ee,updateValueFromValueStr:W,getSectionsFromValue:x}};function V1(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Du(),i=$y(),a=Ve(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 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 $1(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(w=>{if(!r)switch(!0){case((w.ctrlKey||w.metaKey)&&String.fromCharCode(w.keyCode)==="A"&&!w.shiftKey&&!w.altKey):{w.preventDefault(),y("all");break}case w.key==="ArrowRight":{if(w.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const C=h.neighbors[u].rightIndex;C!==null&&y(C)}break}case w.key==="ArrowLeft":{if(w.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const C=h.neighbors[u].leftIndex;C!==null&&y(C)}break}case w.key==="Delete":{if(w.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(w.key):{if(w.preventDefault(),i||c==null)break;u==="all"&&y(c);const C=a.sections[c],S=aI(t,p,C,w.key,d,f,n.getDateFromSection(l,C),{minutesStep:o});v({section:C,newSectionValue:S,shouldGoToNextSection:!1});break}}})}function iI(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function aI(e,t,n,o,r,i,a,l){const c=iI(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=w=>Ly(e,w,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 lI(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=$1({manager:t,internalPropsWithDefaults:l,stateResponse:i}),w=Zn(),C=he(_=>{g||!r.isReady()||(o(!0),c==="all"?w.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){h(u.startIndex);return}let V=0,N=0;for(;N<D&&V<d.sections.length;){const x=d.sections[V];V+=1,N+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(_.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),S=he(_=>{if(!r.isReady()||c!=="all")return;const V=_.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}),V.length===0||V.charCodeAt(0)===10?(f(),h("all")):V.length>1?m(V):(c==="all"&&h(0),a({keyPressed:V,sectionIndex:0}))}),T=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:C,onPaste:T,onInput:S,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function cI(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 uI(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 dI(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:w=!1}}=e,C=c==="all",S=!C&&!v&&!w,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??"",R=r.getSectionIndexFromDOMElement(x),A=d.sections[R];if(w){T(R);return}if(L.length===0){if(A.value===""){T(R);return}const O=N.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(R);return}T(R),p();return}a({keyPressed:L,sectionIndex:R}),T(R)}),M=he(N=>{N.preventDefault()}),_=he(N=>{if(N.preventDefault(),w||v||typeof c!="number")return;const x=d.sections[c],L=N.clipboardData.getData("text"),R=/^[a-zA-Z]+$/.test(L),A=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);x.contentType==="letter"&&R||x.contentType==="digit"&&A||x.contentType==="digit-with-letter"&&O?(h(null),g({section:x,newSectionValue:L,shouldGoToNextSection:!0})):!R&&!A&&(h(null),y(L))}),D=he(N=>{N.preventDefault(),N.dataTransfer.dropEffect="none"}),V=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:V(x),"aria-readonly":w,"aria-valuenow":pI(N,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":N.value?fI(N,t):n.empty,"aria-label":n[N.type],"aria-disabled":v,tabIndex:!S||C||x>0?-1:0,contentEditable:!C&&!v&&!w,role:"spinbutton","data-range-position":N.dateName||void 0,spellCheck:S?!1:void 0,autoCapitalize:S?"none":void 0,autoCorrect:S?"off":void 0,children:N.value||N.placeholder,inputMode:N.contentType==="letter"?"text":"numeric"}},[u,C,v,w,S,n,t,E,_,M,D,V,l,f])}function fI(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 pI(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 hI=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=Yy(t,r),c=V1({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:w=!1,readOnly:C=!1,autoFocus:S=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),_=Ve(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]),V=L1({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:N,error:x,parsedSelectedSections:L,sectionOrder:R,state:A,value:O,clearValue:j,setSelectedSections:B}=V,F=j1({stateResponse:V}),z=i(O),[I,Y]=P.useState(!1);function q(te=0){if(w||!M.current||ah(M)!=null)return;const ue=pc(te,A.sections);Y(!0),M.current.getSectionContent(ue).focus()}const K=lI({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:F,focused:I,setFocused:Y,domGetters:D}),oe=cI({manager:n,stateResponse:V}),Z=uI({stateResponse:V,internalPropsWithDefaults:c}),Q=dI({manager:n,stateResponse:V,applyCharacterEditing:F,internalPropsWithDefaults:c,domGetters:D,focused:I}),se=he(te=>{g==null||g(te),K.onKeyDown(te)}),J=he(te=>{d==null||d(te),K.onBlur(te)}),$=he(te=>{p==null||p(te),K.onFocus(te)}),W=he(te=>{te.isDefaultPrevented()||(f==null||f(te),K.onClick(te))}),H=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(R.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
|
-
`));S
|
|
229
|
-
`&&(
|
|
230
|
-
`),M=
|
|
231
|
-
`))},[]),W=Ve(J,S,C.ref,$),[H,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:H,P.useEffect(()=>{!X&&p&&H&&(ee(!1),V&&V())},[X,p,H,V]);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),C.onFocus&&C.onFocus(xe),X&&X.onFocus?X.onFocus(xe):ee(!0)},le=xe=>{V&&V(xe),C.onBlur&&C.onBlur(xe),X&&X.onBlur?X.onBlur(xe):ee(!1)},de=(xe,...$e)=>{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.":wn(1));ie({value:Be.value})}C.onChange&&C.onChange(xe,...$e),N&&N(xe,...$e)};P.useEffect(()=>{ie(J.current)},[]);const pe=xe=>{J.current&&xe.currentTarget===xe.target&&J.current.focus(),x&&x(xe)};let _e=w,Oe=C;_&&_e==="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},_e=F1);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=wI(tt),ht=Y.root||u.Root||Ea,Ee=I.root||d.root||{},Se=Y.input||u.Input||Ma;return Oe={...Oe,...I.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof ph=="function"&&(fh||(fh=b.jsx(ph,{}))),b.jsxs(ht,{...Ee,ref:n,onClick:pe,...Z,...!fr(ht)&&{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(Se,{"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:R,onKeyUp:A,type:K,...Oe,...!fr(Se)&&{as:_e,ownerState:{...tt,...Oe.ownerState}},ref:W,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 TI(e){return Pe("MuiInput",e)}const $r={...br,...Te("MuiInput",["root","underline","input"])},PI=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},TI,t);return{...t,...r}},EI=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"},[`&.${$r.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$r.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(.${$r.disabled}, .${$r.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$r.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}`}}}))]}})),MI=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=PI(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?At(d??a,y):y,w=f.root??i.Root??EI,C=f.input??i.Input??MI;return b.jsx(Oa,{slots:{root:w,input:C},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 OI(e){return Pe("MuiFilledInput",e)}const yo={...br,...Te("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},kI=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,OI,t);return{...t,...u}},DI=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}}]}})),II=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=kI(o),v={root:{ownerState:g},input:{ownerState:g}},w=f??a?At(v,f??a):v,C=p.root??i.Root??DI,S=p.input??i.Input??II;return b.jsx(Oa,{slots:{root:C,input:S},slotProps:w,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 RI=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%"}),AI=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 B1(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(RI,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(AI,{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"&&(B1.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function NI(e){return Pe("MuiOutlinedInput",e)}const yn={...br,...Te("MuiOutlinedInput",["root","notchedOutline","input"])},_I=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NI,t);return{...t,...o}},jI=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"}}]}})),LI=be(B1,{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}})),VI=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}}]}))),Ia=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=_I(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},w=d.root??r.Root??jI,C=d.input??r.Input??VI,[S,T]=st("notchedOutline",{elementType:LI,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:w,input:C},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"&&(Ia.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),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});Ia.muiName="Input";function $I(e){return Pe("MuiFormLabel",e)}const as=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),FI=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,$I,t)},BI=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}}}]}))),zI=be("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ke(({theme:e})=>({[`&.${as.error}`]:{color:(e.vars||e).palette.error.main}}))),z1=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=FI(y);return b.jsxs(BI,{as:l,ownerState:y,className:ye(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(zI,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(z1.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 HI(e){return Pe("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const WI=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,HI,t);return{...t,...u}},UI=be(z1,{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=WI(h);return b.jsx(UI,{"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 YI(e){return Pe("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,YI,t)},GI=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,w={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},C=qI(w),[S,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&&CI(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 V=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)},[]),R=P.useCallback(()=>{M(!1)},[]),A=P.useMemo(()=>({adornedStart:
|
|
233
|
-
`)),C.props.disabled||(f==="selectedMenu"&&C.props.selected||v===-1)&&(v=S),v===S&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const w=P.Children.map(a,(C,S)=>{if(S===v){const T={};return i&&(T.autoFocus=!0),C.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(C,T)}return C});return b.jsx(Wu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:w})});process.env.NODE_ENV!=="production"&&(U1.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 QI(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 JI(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=!JI(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 eR(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(QI(o)){const a=H1(_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 tR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class nR{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=tR(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=eR(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 oR(e){return Pe("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const rR=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},oR,t)},sR=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=rR(y),w={transition:h,root:u.Root,...p},C={...d,...f},S={component:a,slots:w,slotProps:C},[T,E]=st("root",{elementType:sR,externalForwardedProps:S,className:ye(v.root,i),ownerState:y}),[M,_]=st("transition",{elementType:to,externalForwardedProps:S,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 iR(e){return typeof e=="function"?e():e}function aR(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},ui=new nR;function lR(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=Ve(h,d),[g,y]=P.useState(!u),v=aR(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Et(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{ui.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=he(()=>{const A=iR(t)||C().body;ui.add(S(),A),h.current&&T()}),M=()=>ui.isTopModal(S()),_=he(A=>{p.current=A,A&&(u&&M()?T():h.current&&ls(h.current,w))}),D=P.useCallback(()=>{ui.remove(S(),w)},[w]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{u?E():(!v||!r)&&D()},[u,D,v,r,E]);const V=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:V(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:Cd(A,(l==null?void 0:l.props.onEnter)??xh),onExited:Cd(O,(l==null?void 0:l.props.onExited)??xh)}},rootRef:m,portalRef:_,isTopModal:M,exited:g,hasTransition:v}}function cR(e){return Pe("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const uR=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cR,o)},dR=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"}}]}))),fR=be(Xu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Qu=P.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=fR,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:w=!1,disableScrollLock:C=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:_,open:D,slotProps:V={},slots:N={},theme:x,...L}=o,R={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:S,keepMounted:T},{getRootProps:A,getBackdropProps:O,getTransitionProps:j,portalRef:B,isTopModal:F,exited:z,hasTransition:I}=lR({...R,rootRef:n}),Y={...R,exited:z},q=uR(Y),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),I){const{onEnter:$,onExited:W}=j();K.onEnter=$,K.onExited=W}const oe={slots:{root:p.Root,backdrop:p.Backdrop,...N},slotProps:{...h,...V}},[Z,Q]=st("root",{ref:n,elementType:dR,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:$=>O({...$,onClick:W=>{$!=null&&$.onClick&&$.onClick(W)}}),className:ye(i==null?void 0:i.className,q==null?void 0:q.backdrop),ownerState:Y});return!T&&!D&&(!I||z)?null:b.jsx(Ss,{ref:B,container:d,disablePortal:v,children:b.jsxs(Z,{...Q,children:[!S&&r?b.jsx(se,{...J}):null,b.jsx(ws,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:w,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([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 pR(e){return Pe("MuiPopover",e)}Te("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 Sh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function wh(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 hR=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},pR,t)},mR=be(Qu,{name:"MuiPopover",slot:"Root"})({}),Y1=be(Hs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),q1=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:w={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:S="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,_=P.useRef(),D={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:w,TransitionComponent:C,transitionDuration:S,TransitionProps:T},V=hR(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 $=Qr(i),W=$&&$.nodeType===1?$:Et(_.current).body,H=W.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=W.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:
|
|
235
|
-
`)),h!==null&&re<h){const de=re-h;re-=de,
|
|
227
|
+
`:null,fD=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 Se(i,cD,t)},pD=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:uD||{animation:`${Sc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),hD=be("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),mD=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]}})(Ze(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:dD||{animation:`${Tc} 1.4s ease-in-out infinite`}}]}))),gD=be("circle",{name:"MuiCircularProgress",slot:"Track"})(Ze(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),zu=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=fD(m),y={},v={},S={};if(p==="determinate"){const C=2*Math.PI*((ln-d)/2);y.strokeDasharray=C.toFixed(3),S["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*C).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(pD,{className:ye(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...S,...h,children:b.jsxs(hD,{className:g.svg,ownerState:m,viewBox:`${ln/2} ${ln/2} ${ln} ${ln}`,children:[l?b.jsx(gD,{className:g.track,ownerState:m,cx:ln,cy:ln,r:(ln-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(mD,{className:g.circle,style:y,ownerState:m,cx:ln,cy:ln,r:(ln-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(zu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink: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 yD(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"]),E1=P.createContext({});process.env.NODE_ENV!=="production"&&(E1.displayName="ButtonGroupContext");const M1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(M1.displayName="ButtonGroupButtonContext");const bD=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=Se(u,yD,c);return{...c,...d}},O1=[{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}}}],vD=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]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${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"}}}]}})),xD=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}},...O1]})),CD=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}},...O1]})),wD=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"}),Wn=P.forwardRef(function(t,n){const o=P.useContext(E1),r=P.useContext(M1),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:S=null,loadingIndicator:C,loadingPosition:w="center",size:T="medium",startIcon:E,type:M,variant:_="text",...D}=a,V=ro(v),N=C??b.jsx(zu,{"aria-labelledby":V,color:"inherit",size:16}),x={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:S,loadingIndicator:N,loadingPosition:w,size:T,type:M,variant:_},L=bD(x),R=(E||S&&w==="start")&&b.jsx(xD,{className:L.startIcon,ownerState:x,children:E||b.jsx(sh,{className:L.loadingIconPlaceholder,ownerState:x})}),A=(m||S&&w==="end")&&b.jsx(CD,{className:L.endIcon,ownerState:x,children:m||b.jsx(sh,{className:L.loadingIconPlaceholder,ownerState:x})}),O=r||"",j=typeof S=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:S&&b.jsx(wD,{className:L.loadingIndicator,ownerState:x,children:N})}):null;return b.jsxs(vD,{ownerState:x,className:ye(o.className,L.root,d,O),component:u,disabled:f||S,focusRipple:!h,focusVisibleClassName:ye(L.focusVisible,g),ref:n,type:M,id:S?V:v,...D,classes:L,children:[R,w!=="end"&&j,l,w==="end"&&j,A]})});process.env.NODE_ENV!=="production"&&(Wn.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function SD(e){return Pe("MuiDialogActions",e)}Te("MuiDialogActions",["root","spacing"]);const TD=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},SD,t)},PD=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}}}]}),k1=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=TD(l);return b.jsx(PD,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(k1.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 ED=["actions"],MD=ae.styled(k1,{name:"MuiPickersLayout",slot:"ActionBar"})({});function D1(e){const{actions:t}=e,n=Me(e,ED),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(Wn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Wn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Wn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Wn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Wn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Wn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Wn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(MD,U({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(D1.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 I1=P.memo(D1);process.env.NODE_ENV!=="production"&&(I1.displayName="PickersActionBar");const ar=P.createContext({});process.env.NODE_ENV!=="production"&&(ar.displayName="ListContext");function OD(e){return Pe("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const kD=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Se({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},OD,t)},DD=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}}]}),Wu=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=kD(p);return b.jsx(ar.Provider,{value:f,children:b.jsxs(DD,{as:a,className:ye(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Wu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function 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}),S=Ve(v,m==null?void 0:m.ref,t.ref),C=e==="root"?g||u:g,w=Zy(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...C&&!l&&{as:C},...C&&l&&{component:C},ref:S},r);return[h,w]}function ID(e){return Pe("MuiListItem",e)}Te("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const RD=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AD(e){return Pe("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const ND=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},AD,n)},_D=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}}]}),Uu=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=ND(l);return b.jsx(_D,{className:ye(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Uu.muiName="ListItemSecondaryAction";const jD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},LD=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Se({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},ID,n)},VD=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:jD})(Ze(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${RD.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}}]}))),$D=be("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),R1=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:S={},slots:C={},...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"]),V={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:D},N=LD(V),x=Ve(M,n),L={slots:C,slotProps:S},[R,A]=st("secondaryAction",{elementType:Uu,externalForwardedProps:L,ownerState:V,className:N.secondaryAction}),O=C.root||c.Root||VD,j=S.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($D,{as:d,className:ye(N.container,f),ref:x,ownerState:V,...p,children:[b.jsx(O,{...j,...!fr(O)&&{as:F,ownerState:{...V,...j.ownerState}},...B,children:_}),_.pop()]})})):b.jsx(ar.Provider,{value:E,children:b.jsxs(O,{...j,as:F,ref:x,...!fr(O)&&{ownerState:{...V,...j.ownerState}},...B,children:[_,v&&b.jsx(R,{...A,children:v})]})})});process.env.NODE_ENV!=="production"&&(R1.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 FD=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 BD(e){return Pe("MuiChip",e)}const Ie=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"]),HD=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 Se(u,BD,t)},zD=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[{[`& .${Ie.avatar}`]:t.avatar},{[`& .${Ie.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${Ie.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${Ie.icon}`]:t.icon},{[`& .${Ie.icon}`]:t[`icon${ce(l)}`]},{[`& .${Ie.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${Ie.deleteIcon}`]:t.deleteIcon},{[`& .${Ie.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${Ie.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${Ie.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(o)}`]},t.root,t[`size${ce(l)}`],t[`color${ce(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${ce(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${ce(o)}`],t[c],t[`${c}${ce(o)}`]]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ie.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ie.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ie.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ie.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ie.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ie.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ie.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ie.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ie.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Yt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ie.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ie.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ie.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ie.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ie.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ie.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ie.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ie.avatar}`]:{marginLeft:4},[`& .${Ie.avatarSmall}`]:{marginLeft:2},[`& .${Ie.icon}`]:{marginLeft:4},[`& .${Ie.iconSmall}`]:{marginLeft:2},[`& .${Ie.deleteIcon}`]:{marginRight:5},[`& .${Ie.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(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)}`,[`&.${Ie.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ie.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),WD=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 A1=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:S="filled",tabIndex:C,skipFocusWhenDisabled:w=!1,slots:T={},slotProps:E={},...M}=o,_=P.useRef(null),D=Ve(_,n),V=K=>{K.stopPropagation(),m&&m(K)},N=K=>{K.currentTarget===K.target&&ih(K)&&K.preventDefault(),g&&g(K)},x=K=>{K.currentTarget===K.target&&m&&ih(K)&&m(K),y&&y(K)},L=a!==!1&&h?!0:a,R=L||m?yr:c||"div",A={...o,component:R,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:S},O=HD(A),j=R===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:V}):b.jsx(FD,{className:O.deleteIcon,onClick:V}));let F=null;r&&P.isValidElement(r)&&(F=P.cloneElement(r,{className:ye(O.avatar,r.props.className)}));let H=null;f&&P.isValidElement(f)&&(H=P.cloneElement(f,{className:ye(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&F&&H&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const I={slots:T,slotProps:E},[Y,q]=st("root",{elementType:zD,externalForwardedProps:{...I,...M},ownerState:A,shouldForwardComponentProp:!0,ref:D,className:ye(O.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:w&&d?-1:C,...j},getSlotProps:K=>({...K,onClick:Q=>{var se;(se=K.onClick)==null||se.call(K,Q),h==null||h(Q)},onKeyDown:Q=>{var se;(se=K.onKeyDown)==null||se.call(K,Q),N(Q)},onKeyUp:Q=>{var se;(se=K.onKeyUp)==null||se.call(K,Q),x(Q)}})}),[Z,oe]=st("label",{elementType:WD,externalForwardedProps:I,ownerState:A,className:O.label});return b.jsxs(Y,{as:R,...q,children:[F||H,b.jsx(Z,{...oe,children:p}),B]})});process.env.NODE_ENV!=="production"&&(A1.propTypes={avatar:s.element,children:rC,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,Ca=2,wa=320,UD=280,Yu=336,YD=["items","changeImportance"],qD=["getValue"],GD=ae.styled(Wu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function N1(e){const{items:t,changeImportance:n="accept"}=e,o=Me(e,YD),{setValue:r}=_M(),i=xM();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Me(l,qD);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(GD,U({dense:!0,sx:[{maxHeight:Yu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(R1,{children:b.jsx(A1,U({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(N1.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 ZD=["ownerState"];function KD(e){return e.view!==null}const XD=(e,t)=>{const{pickerOrientation:n}=t;return Se({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},S1,e)},QD=e=>{const{ownerState:t,defaultActionBarActions:n}=kt(),{view:o}=Tr(),r=dn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>U({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=XD(c,u),f=(a==null?void 0:a.actionBar)??I1,p=Le({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Me(p,ZD),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=KD(y)&&g?b.jsx(g,U({},y)):null,S=i,C=a==null?void 0:a.tabs,w=o&&C?b.jsx(C,U({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??N1,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,U({},E)):null;return{toolbar:v,content:S,tabs:w,actionBar:m,shortcuts:_,ownerState:U({},u,{hasShortcuts:M})}},JD=(e,t)=>{const{pickerOrientation:n}=t;return Se({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},S1,e)},eI=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}}}]}),tI=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Sa=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}=QD(o),{orientation:d,variant:f}=Tr(),{sx:p,className:h,classes:m}=o,g=JD(m,u);return b.jsxs(eI,{ref:n,sx:p,className:ye(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(tI,{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"&&(Sa.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Sa.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 _1(e){const{steps:t}=e;return Uk({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 nI=["props","steps"],oI=["ownerState"],rI=e=>{var E;let{props:t,steps:n}=e,o=Me(e,nI);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=_1({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=w1(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=Me(y,oI),S=r.layout??Sa;let C=h;m&&(a?C=`${h}-label`:C=void 0);const w=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),popper:U({"aria-labelledby":C},i==null?void 0:i.popper)}),T=()=>b.jsxs(Fy,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},w,v.slotProps),inputRef:l})),b.jsx(Hk,{slots:r,slotProps:w,children:b.jsx(S,U({},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,j1=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Ke(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),y=n.sections[p];if(n.characterQuery!=null&&(!m||m(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const S=`${n.characterQuery.value}${g}`,C=h(S,y);if(!Yo(C))return r({sectionIndex:p,value:S,sectionType:y.type}),C}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 S=y.filter(C=>C.toLowerCase().startsWith(v));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},h=(g,y,v,S)=>{const C=w=>jy(l,o,y.type,w);if(y.contentType==="letter")return p(y.format,C(y.format),g);if(v&&S!=null&&Cu(l,v).contentType==="letter"){const w=C(v),T=p(v,w,g);return Yo(T)?{saveQuery:!1}:U({},T,{sectionValue:S(T.sectionValue,w)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=S=>Np(l,S,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(S,C)=>C.indexOf(S).toString();return h(g,y,l.formats.weekday,v)}case"meridiem":return h(g,y);default:return{saveQuery:!1}}})},d=f=>{const p=({queryValue:m,skipIfBelowMinimum:g,section:y})=>{const v=jo(m,e),S=Number(v),C=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(S>C.maximum)return{saveQuery:!1};if(g&&S<C.minimum)return{saveQuery:!0};const w=S*10>C.maximum||v.length===C.maximum.toString().length;return{sectionValue:Ly(l,S,C,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"){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(Yo(y))return y;const v=Np(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(Yo(y))return y;const v=ha(l,g.format)[Number(y.sectionValue)-1];return U({},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(U({},f,{keyPressed:wu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},sI=5e3,L1=e=>{var ue;const t=Ke(),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:S,enableAccessibleFieldDOMStructure:C=!0},forwardedProps:{error:w}}=e,{value:T,handleValueChange:E,timezone:M}=Ys({name:"a field component",timezone:S,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}),V=P.useMemo(()=>eM(t),[t]),N=P.useMemo(()=>sM(t,V,M),[t,V,M]),x=P.useCallback(ie=>l.getSectionsFromValue(ie,me=>Fp({adapter:t,localeText:n,localizedDigits:V,format:h,date:me,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:C,isRtl:o})),[l,h,n,V,o,v,t,m,C]),[L,R]=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=X6(ie),de=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return U({},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,H=P.useMemo(()=>lM(L.sections,o&&!C),[L.sections,o,C]),I=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]),Z=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]=U({},le[ie],{value:me,modified:!0}),le},K=P.useRef(null),Q=Kn(),se=ie=>{F!=null&&(K.current={sectionIndex:F,value:ie},Q.start(0,()=>{K.current=null}))},J=()=>{a.areValuesEqual(t,T,a.emptyValue)?R(ie=>U({},ie,{sections:ie.sections.map(me=>U({},me,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(R(ie=>U({},ie,{characterQuery:null})),Z(a.emptyValue))},$=()=>{if(F==null)return;const ie=L.sections[F];ie.value!==""&&(se(""),l.getDateFromSection(T,ie)===null?R(me=>U({},me,{sections:oe(F,""),tempValueStrAndroid:null,characterQuery:null})):(R(me=>U({},me,{characterQuery:null})),Z(l.updateDateInValue(T,ie,null))))},W=ie=>{const me=(de,pe)=>{const _e=t.parse(de,h);if(!t.isValid(_e))return null;const Oe=Fp({adapter:t,localeText:n,localizedDigits:V,format:h,date:_e,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:C,isRtl:o});return Vp(t,_e,Oe,pe,!1)},le=l.parseValueStr(ie,L.referenceValue,me);Z(le)},z=Kn(),ee=({section:ie,newSectionValue:me,shouldGoToNextSection:le})=>{Q.clear(),z.clear();const de=l.getDateFromSection(T,ie);le&&F<L.sections.length-1&&j(F+1);const pe=oe(F,me),_e=l.getDateSectionsFromValue(pe,ie),Oe=nM(t,_e,V);if(t.isValid(Oe)){const Xe=Vp(t,Oe,_e,l.getDateFromSection(L.referenceValue,ie),!0);return de==null&&z.start(0,()=>{_.current===T&&R(tt=>U({},tt,{sections:l.clearDateSections(L.sections,ie),tempValueStrAndroid:null}))}),Z(l.updateDateInValue(T,ie,Xe))}return _e.every(Xe=>Xe.value!=="")&&(de==null||t.isValid(de))?(se(me),Z(l.updateDateInValue(T,ie,Oe))):(de!=null&&(se(me),Z(l.updateDateInValue(T,ie,Oe))),R(Xe=>U({},Xe,{sections:pe,tempValueStrAndroid:null})))},X=ie=>R(me=>U({},me,{tempValueStrAndroid:ie})),re=he(ie=>{R(me=>U({},me,{characterQuery:ie}))});if(T!==L.lastExternalValue){const ie=K.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[K.current.sectionIndex]));let me;ie?me=oe(K.current.sectionIndex,K.current.value):me=x(T),R(le=>U({},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),R(me=>U({},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(()=>{K.current!=null&&(K.current=null)});const te=Kn();return P.useEffect(()=>(L.characterQuery!=null&&te.start(sI,()=>re(null)),()=>{}),[L.characterQuery,re,te]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&F!=null&&$()},[L.sections]),{activeSectionIndex:F,areAllSectionsEmpty:I,error:q,localizedDigits:V,parsedSelectedSections:B,sectionOrder:H,sectionsValueBoundaries:N,state:L,timezone:M,value:T,clearValue:J,clearActiveSection:$,setCharacterQuery:re,setSelectedSections:j,setTempAndroidValueStr:X,updateSectionValue:ee,updateValueFromValueStr:W,getSectionsFromValue:x}};function V1(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Du(),i=$y(),a=Ve(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 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 $1(e){const t=Ke(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:r,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:f,timezone:p,sectionOrder:h,clearValue:m,clearActiveSection:g,setSelectedSections:y,updateSectionValue:v}}=e;return he(S=>{if(!r)switch(!0){case((S.ctrlKey||S.metaKey)&&String.fromCharCode(S.keyCode)==="A"&&!S.shiftKey&&!S.altKey):{S.preventDefault(),y("all");break}case S.key==="ArrowRight":{if(S.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const C=h.neighbors[u].rightIndex;C!==null&&y(C)}break}case S.key==="ArrowLeft":{if(S.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const C=h.neighbors[u].leftIndex;C!==null&&y(C)}break}case S.key==="Delete":{if(S.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(S.key):{if(S.preventDefault(),i||c==null)break;u==="all"&&y(c);const C=a.sections[c],w=aI(t,p,C,S.key,d,f,n.getDateFromSection(l,C),{minutesStep:o});v({section:C,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function iI(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function aI(e,t,n,o,r,i,a,l){const c=iI(o),u=o==="Home",d=o==="End",f=n.value===""||u||d,p=()=>{const m=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=S=>Ly(e,S,m,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let v;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?v=m.minimum:v=m.maximum}else v=parseInt(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 lI(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=$1({manager:t,internalPropsWithDefaults:l,stateResponse:i}),S=Kn(),C=he(_=>{g||!r.isReady()||(o(!0),c==="all"?S.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){h(u.startIndex);return}let V=0,N=0;for(;N<D&&V<d.sections.length;){const x=d.sections[V];V+=1,N+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(_.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),w=he(_=>{if(!r.isReady()||c!=="all")return;const V=_.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}),V.length===0||V.charCodeAt(0)===10?(f(),h("all")):V.length>1?m(V):(c==="all"&&h(0),a({keyPressed:V,sectionIndex:0}))}),T=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:C,onPaste:T,onInput:w,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function cI(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 uI(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 dI(e){const t=Ke(),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:S=!1}}=e,C=c==="all",w=!C&&!v&&!S,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??"",R=r.getSectionIndexFromDOMElement(x),A=d.sections[R];if(S){T(R);return}if(L.length===0){if(A.value===""){T(R);return}const O=N.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(R);return}T(R),p();return}a({keyPressed:L,sectionIndex:R}),T(R)}),M=he(N=>{N.preventDefault()}),_=he(N=>{if(N.preventDefault(),S||v||typeof c!="number")return;const x=d.sections[c],L=N.clipboardData.getData("text"),R=/^[a-zA-Z]+$/.test(L),A=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);x.contentType==="letter"&&R||x.contentType==="digit"&&A||x.contentType==="digit-with-letter"&&O?(h(null),g({section:x,newSectionValue:L,shouldGoToNextSection:!0})):!R&&!A&&(h(null),y(L))}),D=he(N=>{N.preventDefault(),N.dataTransfer.dropEffect="none"}),V=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:V(x),"aria-readonly":S,"aria-valuenow":pI(N,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":N.value?fI(N,t):n.empty,"aria-label":n[N.type],"aria-disabled":v,tabIndex:!w||C||x>0?-1:0,contentEditable:!C&&!v&&!S,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,C,v,S,w,n,t,E,_,M,D,V,l,f])}function fI(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 pI(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 hI=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=Yy(t,r),c=V1({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:p,onInput:h,onPaste:m,onKeyDown:g,onClear:y,clearable:v}=l,{disabled:S=!1,readOnly:C=!1,autoFocus:w=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),_=Ve(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]),V=L1({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:N,error:x,parsedSelectedSections:L,sectionOrder:R,state:A,value:O,clearValue:j,setSelectedSections:B}=V,F=j1({stateResponse:V}),H=i(O),[I,Y]=P.useState(!1);function q(te=0){if(S||!M.current||ah(M)!=null)return;const ue=pc(te,A.sections);Y(!0),M.current.getSectionContent(ue).focus()}const Z=lI({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:F,focused:I,setFocused:Y,domGetters:D}),oe=cI({manager:n,stateResponse:V}),K=uI({stateResponse:V,internalPropsWithDefaults:c}),Q=dI({manager:n,stateResponse:V,applyCharacterEditing:F,internalPropsWithDefaults:c,domGetters:D,focused:I}),se=he(te=>{g==null||g(te),Z.onKeyDown(te)}),J=he(te=>{d==null||d(te),Z.onBlur(te)}),$=he(te=>{p==null||p(te),Z.onFocus(te)}),W=he(te=>{te.isDefaultPrevented()||(f==null||f(te),Z.onClick(te))}),z=he(te=>{m==null||m(te),Z.onPaste(te)}),ee=he(te=>{h==null||h(te),Z.onInput(te)}),X=he((te,...ue)=>{te.preventDefault(),y==null||y(te,...ue),j(),lh(M)?B(R.startIndex):q(0)}),re=P.useMemo(()=>A.sections.map((te,ue)=>{const ie=Q(te,ue);return{container:K(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,K,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&&!S&&M.current&&M.current.getSectionContent(R.startIndex).focus()},[]),Pt(()=>{if(!(!I||!M.current)){if(L==="all")M.current.getRoot().focus();else if(typeof L=="number"){const te=M.current.getSectionContent(L);te&&te.focus()}}},[L,I]),Pt(()=>{qu({focused:I,domGetters:D,stateResponse:V})}),P.useImperativeHandle(E,()=>({getSections:()=>A.sections,getActiveSectionIndex:()=>ah(M),setSelectedSections:te=>{if(S||!M.current)return;const ue=pc(te,A.sections);Y((ue==="all"?0:ue)!==null),B(te)},focusField:q,isFieldFocused:()=>lh(M)})),U({},l,Z,{onBlur:J,onClick:W,onFocus:$,onInput:ee,onPaste:z,onKeyDown:se,onClear:X},oe,{error:x,clearable:!!(v&&!N&&!C&&!S),focused:T??I,sectionListRef:_,enableAccessibleFieldDOMStructure:!0,elements:re,areAllSectionsEmpty:N,disabled:S,readOnly:C,autoFocus:w,openPickerAriaLabel:H})};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,""),mI=(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(U({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},gI=e=>{const t=dn(),n=Kn(),o=Kn(),{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=V1({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:y,onBlur:v,onKeyDown:S,onClear:C,clearable:w,inputRef:T,placeholder:E}=p,{readOnly:M=!1,disabled:_=!1,autoFocus:D=!1,focused:V,unstableFieldRef:N}=h,x=P.useRef(null),L=Ve(T,x),R=L1({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:A,areAllSectionsEmpty:O,error:j,localizedDigits:B,parsedSelectedSections:F,sectionOrder:H,state:I,value:Y,clearValue:q,clearActiveSection:Z,setCharacterQuery:oe,setSelectedSections:K,setTempAndroidValueStr:Q,updateSectionValue:se,updateValueFromValueStr:J,getSectionsFromValue:$}=R,W=j1({stateResponse:R}),z=d(Y),ee=P.useMemo(()=>mI(I.sections,B,t),[I.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($e=>$e.startInInput-$e.startSeparator.length>Ee);const xe=we===-1?ee.length-1:we-1;K(xe)}function re(Ee=0){var we;jt(x.current)!==x.current&&((we=x.current)==null||we.focus(),K(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?K("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=I.sections[F],$e=/^[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"&&$e||xe.contentType==="digit"&&Be||xe.contentType==="digit-with-letter"&&it){oe(null),se({section:xe,newSectionValue:we,shouldGoToNextSection:!0});return}if($e||Be)return}oe(null),J(we)}),me=he(Ee=>{v==null||v(Ee),K(null)}),le=he(Ee=>{if(M)return;const we=Ee.target.value;if(we===""){q();return}const xe=Ee.nativeEvent.data,$e=xe&&xe.length>1,Be=$e?xe:we,it=or(Be);if(F==="all"&&K(A),A==null||$e){J($e?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){aM()&&Q(Be),Z();return}W({keyPressed:Qe,sectionIndex:A})}),de=he((Ee,...we)=>{Ee.preventDefault(),C==null||C(Ee,...we),q(),ch(x)?K(H.startIndex):re(0)}),pe=$1({manager:i,internalPropsWithDefaults:h,stateResponse:R}),_e=he(Ee=>{S==null||S(Ee),pe(Ee)}),Oe=P.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections($(c.emptyValue),B,t),[E,u,$,c.emptyValue,B,t]),Xe=P.useMemo(()=>I.tempValueStrAndroid??u.getV6InputValueFromSections(I.sections,B,t),[I.sections,u,I.tempValueStrAndroid,B,t]);P.useEffect(()=>{x.current&&x.current===jt(x.current)&&K("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],$e=xe.type==="empty"?xe.startInInput-xe.startSeparator.length:xe.startInInput,Be=xe.type==="empty"?xe.endInInput+xe.endSeparator.length:xe.endInInput;($e!==x.current.selectionStart||Be!==x.current.selectionEnd)&&x.current===jt(x.current)&&x.current.setSelectionRange($e,Be),o.start(0,()=>{x.current&&x.current===jt(x.current)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==$e||x.current.selectionEnd!==Be)&&Ee()})}x.current.scrollTop=we}Ee()});const tt=P.useMemo(()=>A==null||I.sections[A].contentType==="letter"?"text":"numeric",[A,I.sections]),ht=!(x.current&&x.current===jt(x.current))&&O;return P.useImperativeHandle(N,()=>({getSections:()=>I.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($e=>$e.startInInput-$e.startSeparator.length>Ee);return xe===-1?ee.length-1:xe-1},setSelectedSections:Ee=>K(Ee),focusField:re,isFieldFocused:()=>ch(x)})),U({},p,{error:j,"aria-invalid":j,clearable:!!(w&&!O&&!M&&!_),onBlur:me,onClick:ue,onFocus:te,onPaste:ie,onKeyDown:_e,onClear:de,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:Oe,inputMode:tt,autoComplete:"off",value:ht?"":Xe,onChange:le,focused:V,disabled:_,readOnly:M,autoFocus:D,openPickerAriaLabel:z})};function ch(e){return e.current===jt(e.current)}const yI=e=>{const t=$y();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?hI:gI)(e)},bI=e=>{const t=HM(e);return yI({manager:t,props:e})};function ci(e){return parseInt(e,10)||0}const vI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xI(e){for(const t in e)return!1;return!0}function uh(e){return xI(e)||e.outerHeightStyle===0&&!e.overflowing}const F1=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=Ve(n,d),p=P.useRef(null),h=P.useRef(null),m=P.useCallback(()=>{const C=d.current,w=h.current;if(!C||!w)return;const E=_n(C).getComputedStyle(C);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=E.width,w.value=C.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),V=w.scrollHeight;w.value="x";const N=w.scrollHeight;let x=V;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),R=Math.abs(x-V)<=1;return{outerHeightStyle:L,overflowing:R}},[r,i,t.placeholder]),g=he(()=>{const C=d.current,w=m();if(!C||!w||uh(w))return!1;const T=w.outerHeightStyle;return p.current!=null&&p.current!==T}),y=P.useCallback(()=>{const C=d.current,w=m();if(!C||!w||uh(w))return;const T=w.outerHeightStyle;p.current!==T&&(p.current=T,C.style.height=`${T}px`),C.style.overflow=w.overflowing?"hidden":""},[m]),v=P.useRef(-1);Pt(()=>{const C=mm(y),w=d==null?void 0:d.current;if(!w)return;const T=_n(w);T.addEventListener("resize",C);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)),()=>{C.clear(),cancelAnimationFrame(v.current),T.removeEventListener("resize",C),E&&E.disconnect()}},[m,y,g]),Pt(()=>{y()});const S=C=>{u||y();const w=C.target,T=w.value.length,E=w.value.endsWith(`
|
|
230
|
+
`),M=w.selectionStart===T;E&&M&&w.setSelectionRange(T,T),o&&o(C)};return b.jsxs(P.Fragment,{children:[b.jsx("textarea",{value:l,onChange:S,ref:f,rows:i,style:a,...c}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...vI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(F1.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 CI(e){return e.startAdornment}function wI(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]},SI=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 Se(g,wI,t)},Ea=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ta})(Ze(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${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})(Ze(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${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=Jx({"@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:S="input",inputProps:C={},inputRef:w,margin:T,maxRows:E,minRows:M,multiline:_=!1,name:D,onBlur:V,onChange:N,onClick:x,onFocus:L,onKeyDown:R,onKeyUp:A,placeholder:O,readOnly:j,renderSuffix:B,rows:F,size:H,slotProps:I={},slots:Y={},startAdornment:q,type:Z="text",value:oe,...K}=o,Q=C.value!=null?C.value:oe,{current:se}=P.useRef(Q!=null),J=P.useRef(),$=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
|
+
`))},[]),W=Ve(J,w,C.ref,$),[z,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:z,P.useEffect(()=>{!X&&p&&z&&(ee(!1),V&&V())},[X,p,z,V]);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),C.onFocus&&C.onFocus(xe),X&&X.onFocus?X.onFocus(xe):ee(!0)},le=xe=>{V&&V(xe),C.onBlur&&C.onBlur(xe),X&&X.onBlur?X.onBlur(xe):ee(!1)},de=(xe,...$e)=>{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.":Sn(1));ie({value:Be.value})}C.onChange&&C.onChange(xe,...$e),N&&N(xe,...$e)};P.useEffect(()=>{ie(J.current)},[]);const pe=xe=>{J.current&&xe.currentTarget===xe.target&&J.current.focus(),x&&x(xe)};let _e=S,Oe=C;_&&_e==="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},_e=F1);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:Z},St=SI(tt),ht=Y.root||u.Root||Ea,Ee=I.root||d.root||{},we=Y.input||u.Input||Ma;return Oe={...Oe,...I.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof ph=="function"&&(fh||(fh=b.jsx(ph,{}))),b.jsxs(ht,{...Ee,ref:n,onClick:pe,...K,...!fr(ht)&&{ownerState:{...tt,...Ee.ownerState}},className:ye(St.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:R,onKeyUp:A,type:Z,...Oe,...!fr(we)&&{as:_e,ownerState:{...tt,...Oe.ownerState}},ref:W,className:ye(St.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:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function TI(e){return Pe("MuiInput",e)}const $r={...br,...Te("MuiInput",["root","underline","input"])},PI=e=>{const{classes:t,disableUnderline:n}=e,r=Se({root:["root",!n&&"underline"],input:["input"]},TI,t);return{...t,...r}},EI=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]}})(Ze(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$r.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$r.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(.${$r.disabled}, .${$r.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$r.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}`}}}))]}})),MI=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=PI(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?At(d??a,y):y,S=f.root??i.Root??EI,C=f.input??i.Input??MI;return b.jsx(Oa,{slots:{root:S,input:C},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:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ka.muiName="Input";function OI(e){return Pe("MuiFilledInput",e)}const yo={...br,...Te("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},kI=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=Se(c,OI,t);return{...t,...u}},DI=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]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${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}}]}})),II=be(Ma,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pa})(Ze(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),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=kI(o),v={root:{ownerState:g},input:{ownerState:g}},S=f??a?At(v,f??a):v,C=p.root??i.Root??DI,w=p.input??i.Input??II;return b.jsx(Oa,{slots:{root:C,input:w},slotProps:S,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:wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Da.muiName="Input";var hh;const RI=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%"}),AI=be("legend",{name:"MuiNotchedOutlined",shouldForwardProp:fn})(Ze(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function B1(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(RI,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(AI,{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"&&(B1.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function NI(e){return Pe("MuiOutlinedInput",e)}const yn={...br,...Te("MuiOutlinedInput",["root","notchedOutline","input"])},_I=e=>{const{classes:t}=e,o=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NI,t);return{...t,...o}},jI=be(Ea,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ta})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${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"}}]}})),LI=be(B1,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),VI=be(Ma,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pa})(Ze(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ia=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=_I(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},S=d.root??r.Root??jI,C=d.input??r.Input??VI,[w,T]=st("notchedOutline",{elementType:LI,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:S,input:C},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"&&(Ia.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,notchedOutline:s.oneOfType([s.func,s.object]),root:s.object}),slots:s.shape({input:s.elementType,notchedOutline:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Ia.muiName="Input";function $I(e){return Pe("MuiFormLabel",e)}const as=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),FI=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 Se(c,$I,t)},BI=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]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(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}}}]}))),HI=be("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ze(({theme:e})=>({[`&.${as.error}`]:{color:(e.vars||e).palette.error.main}}))),H1=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=FI(y);return b.jsxs(BI,{as:l,ownerState:y,className:ye(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(HI,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(H1.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 zI(e){return Pe("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const WI=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=Se(c,zI,t);return{...t,...u}},UI=be(H1,{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]]}})(Ze(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),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=WI(h);return b.jsx(UI,{"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 YI(e){return Pe("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return Se(r,YI,t)},GI=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%"}}]}),Zu=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,S={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},C=qI(S),[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&&CI(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 V=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)},[]),R=P.useCallback(()=>{M(!1)},[]),A=P.useMemo(()=>({adornedStart:w,setAdornedStart:T,color:a,disabled:c,error:u,filled:E,focused:V,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:R,onFilled:L,registerEffect:N,required:m,variant:y}),[w,a,c,u,E,V,f,p,N,R,L,m,g,y]);return b.jsx(qs.Provider,{value:A,children:b.jsx(GI,{as:l,ownerState:S,className:ye(C.root,i),ref:n,...v,children:r})})});process.env.NODE_ENV!=="production"&&(Zu.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 ZI(e){return Pe("MuiFormHelperText",e)}const mh=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gh;const KI=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 Se(u,ZI,t)},XI=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]}})(Ze(({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}}]}))),Ku=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 S=KI(v);return b.jsx(XI,{as:a,className:ye(S.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"&&(Ku.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 z1(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 W1(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")||!W1(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const U1=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:(C,{direction:w})=>{const T=!h.current.style.width;if(C.clientHeight<h.current.clientHeight&&T){const E=`${z1(_n(C))}px`;h.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const g=C=>{const w=h.current,T=C.key;if(C.ctrlKey||C.metaKey||C.altKey){d&&d(C);return}const M=Xr(Et(w));if(T==="ArrowDown")C.preventDefault(),Fr(w,M,u,c,vl);else if(T==="ArrowUp")C.preventDefault(),Fr(w,M,u,c,yh);else if(T==="Home")C.preventDefault(),Fr(w,null,u,c,vl);else if(T==="End")C.preventDefault(),Fr(w,null,u,c,yh);else if(T.length===1){const _=m.current,D=T.toLowerCase(),V=performance.now();_.keys.length>0&&(V-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&D!==_.keys[0]&&(_.repeating=!1)),_.lastTime=V,_.keys.push(D);const N=M&&!_.repeating&&W1(M,_);_.previousKeyMatched&&(N||Fr(w,M,!1,c,vl,_))?C.preventDefault():_.previousKeyMatched=!1}d&&d(C)},y=Ve(h,n);let v=-1;P.Children.forEach(a,(C,w)=>{if(!P.isValidElement(C)){v===w&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&_o.isFragment(C)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
233
|
+
`)),C.props.disabled||(f==="selectedMenu"&&C.props.selected||v===-1)&&(v=w),v===w&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const S=P.Children.map(a,(C,w)=>{if(w===v){const T={};return i&&(T.autoFocus=!0),C.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(C,T)}return C});return b.jsx(Wu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:S})});process.env.NODE_ENV!=="production"&&(U1.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 QI(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 JI(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=!JI(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 eR(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(QI(o)){const a=z1(_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 tR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class nR{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=tR(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=eR(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 oR(e){return Pe("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const rR=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},oR,t)},sR=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=rR(y),S={transition:h,root:u.Root,...p},C={...d,...f},w={component:a,slots:S,slotProps:C},[T,E]=st("root",{elementType:sR,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 iR(e){return typeof e=="function"?e():e}function aR(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},ui=new nR;function lR(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=Ve(h,d),[g,y]=P.useState(!u),v=aR(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const C=()=>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=iR(t)||C().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,S))}),D=P.useCallback(()=>{ui.remove(w(),S)},[S]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{u?E():(!v||!r)&&D()},[u,D,v,r,E]);const V=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=Ky(e);delete O.onTransitionEnter,delete O.onTransitionExited;const j={...O,...A};return{role:"presentation",...j,onKeyDown:V(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:Cd(A,(l==null?void 0:l.props.onEnter)??xh),onExited:Cd(O,(l==null?void 0:l.props.onExited)??xh)}},rootRef:m,portalRef:_,isTopModal:M,exited:g,hasTransition:v}}function cR(e){return Pe("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const uR=e=>{const{open:t,exited:n,classes:o}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cR,o)},dR=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ze(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),fR=be(Xu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Qu=P.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=fR,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:v=!1,disableRestoreFocus:S=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:_,open:D,slotProps:V={},slots:N={},theme:x,...L}=o,R={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:S,disableScrollLock:C,hideBackdrop:w,keepMounted:T},{getRootProps:A,getBackdropProps:O,getTransitionProps:j,portalRef:B,isTopModal:F,exited:H,hasTransition:I}=lR({...R,rootRef:n}),Y={...R,exited:H},q=uR(Y),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),I){const{onEnter:$,onExited:W}=j();Z.onEnter=$,Z.onExited=W}const oe={slots:{root:p.Root,backdrop:p.Backdrop,...N},slotProps:{...h,...V}},[K,Q]=st("root",{ref:n,elementType:dR,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:$=>O({...$,onClick:W=>{$!=null&&$.onClick&&$.onClick(W)}}),className:ye(i==null?void 0:i.className,q==null?void 0:q.backdrop),ownerState:Y});return!T&&!D&&(!I||H)?null:b.jsx(ws,{ref:B,container:d,disablePortal:v,children:b.jsxs(K,{...Q,children:[!w&&r?b.jsx(se,{...J}):null,b.jsx(Ss,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:S,isEnabled:F,open:D,children:P.cloneElement(u,Z)})]})})});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([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 pR(e){return Pe("MuiPopover",e)}Te("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 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 Sh(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 hR=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},pR,t)},mR=be(Qu,{name:"MuiPopover",slot:"Root"})({}),Y1=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}),q1=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:S={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:w="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,_=P.useRef(),D={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:S,TransitionComponent:C,transitionDuration:w,TransitionProps:T},V=hR(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 $=Qr(i),W=$&&$.nodeType===1?$:Et(_.current).body,z=W.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=W.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:z.top+Ch(z,a.vertical),left:z.left+wh(z,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),x=P.useCallback($=>({vertical:Ch($,S.vertical),horizontal:wh($,S.horizontal)}),[S.horizontal,S.vertical]),L=P.useCallback($=>{const W={width:$.offsetWidth,height:$.offsetHeight},z=x(W);if(c==="none")return{top:null,left:null,transformOrigin:Sh(z)};const ee=N();let X=ee.top-z.vertical,re=ee.left-z.horizontal;const te=X+W.height,ue=re+W.width,ie=_n(Qr(i)),me=ie.innerHeight-h,le=ie.innerWidth-h;if(h!==null&&X<h){const de=X-h;X-=de,z.vertical+=de}else if(h!==null&&te>me){const de=te-me;X-=de,z.vertical+=de}if(process.env.NODE_ENV!=="production"&&W.height>me&&W.height&&me&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${W.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,z.horizontal+=de}else if(ue>le){const de=ue-le;re-=de,z.horizontal+=de}return{top:`${Math.round(X)}px`,left:`${Math.round(re)}px`,transformOrigin:Sh(z)}},[i,c,N,x,h]),[R,A]=P.useState(m),O=P.useCallback(()=>{const $=_.current;if(!$)return;const W=L($);W.top!==null&&$.style.setProperty("top",W.top),W.left!==null&&($.style.left=W.left),$.style.transformOrigin=W.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 $=mm(()=>{O()}),W=_n(Qr(i));return W.addEventListener("resize",$),()=>{$.clear(),W.removeEventListener("resize",$)}},[i,m,O]);let F=w;const H={slots:{transition:C,...y},slotProps:{transition:T,paper:g,...v}},[I,Y]=st("transition",{elementType:vs,externalForwardedProps:H,ownerState:D,getSlotProps:$=>({...$,onEntering:(W,z)=>{var ee;(ee=$.onEntering)==null||ee.call($,W,z),j()},onExited:W=>{var z;(z=$.onExited)==null||z.call($,W),B()}}),additionalProps:{appear:!0,in:m}});w==="auto"&&!I.muiSupportAuto&&(F=void 0);const q=f||(i?Et(Qr(i)).body:void 0),[Z,{slots:oe,slotProps:K,...Q}]=st("root",{ref:n,elementType:mR,externalForwardedProps:{...H,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:iC(typeof v.backdrop=="function"?v.backdrop(D):v.backdrop,{invisible:!0})},container:q,open:m},ownerState:D,className:ye(V.root,d)}),[se,J]=st("paper",{ref:_,className:V.paper,elementType:Y1,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:R?void 0:{opacity:0}},ownerState:D});return b.jsx(Z,{...Q,...!fr(Z)&&{slots:oe,slotProps:K,disableScrollLock:E},children:b.jsx(I,{...Y,timeout:F,children:b.jsx(se,{...J,children:u})})})});process.env.NODE_ENV!=="production"&&(q1.propTypes={action:wt,anchorEl:Fn(s.oneOfType([Vn,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([Vn,s.func]),disableScrollLock:s.bool,elevation:r1,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 gR(e){return Pe("MuiMenu",e)}Te("MuiMenu",["root","paper","list"]);const yR={vertical:"top",horizontal:"right"},bR={vertical:"top",horizontal:"left"},vR=e=>{const{classes:t}=e;return
|
|
238
|
-
`)),F.props.disabled||(y==="selectedMenu"&&F.props.selected||N===-1)&&(N=
|
|
239
|
-
`));let De;if(
|
|
240
|
-
`))}},[ht,me,w,C,I]),wt&&(w?tt.length===0?Oe=null:Oe=tt.reduce((ge,De,ut)=>(ge.push(De),ut<tt.length-1&&ge.push(", "),ge),[]):Oe=Xe);let Se=$;!a&&J&&Q&&(Se=X.clientWidth);let xe;typeof O<"u"?xe=O:xe=f?null:0;const $e=A.id||(C?`mui-component-select-${C}`:void 0),Be={...t,variant:F,value:I,open:re,error:h},it=IR(Be),Qe={...v.PaperProps,...typeof((ct=v.slotProps)==null?void 0:ct.paper)=="function"?v.slotProps.paper(Be):(vt=v.slotProps)==null?void 0:vt.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(MR,{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,$e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":R?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:pe,onMouseDown:f||x?null:ue,onBlur:_e,onFocus:M,...A,ownerState:Be,className:ye(A.className,it.select,c),id:$e,children:DR(Oe)?Th||(Th=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Oe}),b.jsx(kR,{"aria-invalid":h,value:Array.isArray(I)?I.join(","):I,name:C,ref:oe,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:it.nativeInput,autoFocus:i,required:R,...z,ownerState:Be}),b.jsx(OR,{as:m,className:it.icon,ownerState:Be}),b.jsx(G1,{id:`menu-${C||""}`,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":w?"true":void 0,disableListWrap:!0,id:ke,..._t},paper:{...Qe,style:{minWidth:Se,...Qe!=null?Qe.style:null}}},children:Ee})]})});process.env.NODE_ENV!=="production"&&(J1.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 RR=bt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),AR=e=>{const{classes:t}=e,o=we({root:["root"]},Q1,t);return{...t,...o}},ed={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>fn(e)&&e!=="variant"},NR=be(ka,ed)(""),_R=be(Ia,ed)(""),jR=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=RR,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:w=!1,onClose:C,onOpen:S,open:T,renderValue:E,SelectDisplayProps:M,variant:_="outlined",...D}=o,V=w?X1:J1,N=Bn(),x=Pr({props:o,muiFormControl:N,states:["variant","error"]}),L=x.variant||_,R={...o,variant:L,classes:a},A=AR(R),{root:O,...j}=A,B=p||{standard:b.jsx(NR,{ownerState:R}),outlined:b.jsx(_R,{label:m,ownerState:R}),filled:b.jsx(jR,{ownerState:R})}[L],F=Ve(n,Bs(B));return b.jsx(P.Fragment,{children:P.cloneElement(B,{inputComponent:V,inputProps:{children:i,error:x.error,IconComponent:d,variant:L,type:void 0,multiple:v,...w?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:C,onOpen:S,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?At(j,h.classes):j,...p?p.props.inputProps:{}},...(v&&w||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 LR(e){return Pe("MuiTextField",e)}Te("MuiTextField",["root"]);const VR={standard:ka,filled:Da,outlined:Ia},$R=e=>{const{classes:t}=e;return we({root:["root"]},LR,t)},FR=be(Ku,{name:"MuiTextField",slot:"Root"})({}),eb=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:w,inputRef:C,label:S,maxRows:T,minRows:E,multiline:M=!1,name:_,onBlur:D,onChange:V,onFocus:N,placeholder:x,required:L=!1,rows:R,select:A=!1,SelectProps:O,slots:j={},slotProps:B={},type:F,value:z,variant:I="outlined",...Y}=o,q={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:A,variant:I},K=$R(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=S&&oe?`${oe}-label`:void 0,se=VR[I],J={slots:j,slotProps:{input:w,inputLabel:y,htmlInput:v,formHelperText:p,select:O,...B}},$={},W=J.slotProps.inputLabel;I==="outlined"&&(W&&typeof W.shrink<"u"&&($.notched=W.shrink),$.label=S),A&&((!O||!O.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[H,ee]=st("root",{elementType:FR,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:I}}),[X,re]=st("input",{elementType:se,externalForwardedProps:J,additionalProps:$,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,_e]=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:R,maxRows:T,minRows:E,type:F,value:z,id:oe,inputRef:C,onBlur:D,onChange:V,onFocus:N,placeholder:x,inputProps:me,slots:{input:j.htmlInput?ie:void 0},...re});return b.jsxs(H,{...ee,children:[S!=null&&S!==""&&b.jsx(te,{htmlFor:oe,id:Q,...ue,children:S}),A?b.jsx(pe,{"aria-describedby":Z,id:oe,labelId:Q,value:z,input:Oe,..._e,children:a}):Oe,m&&b.jsx(le,{id:Z,...de,children:m})]})});process.env.NODE_ENV!=="production"&&(eb.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 BR(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"]),zR=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,BR,t)},HR=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"}}))),WR=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(Hu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},w=zR(v);return b.jsxs(HR,{id:p?g:f,className:ye(w.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:b.jsx(WR,{className:w.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 UR(e){return Pe("MuiInputAdornment",e)}const Mh=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Oh;const YR=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},qR=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
|
|
242
|
-
`));return e},iA=["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"],aA=e=>Math.round(e*1e5)/1e5,Aa=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:`${aA(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),sd=ae.styled(nb,{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}}]})),lA=ae.styled(ob,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),cA=ae.styled(sb,{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"})),uA=ae.styled(rb,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),dA=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},tA)),fA=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]}})),pA=(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,nA,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 hA(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:w,name:C,readOnly:S,inputProps:T,inputRef:E,sectionListRef:M,onFocus:_,onBlur:D,classes:V,ownerState:N}=o,x=Me(o,iA),L=Ra(),R=P.useRef(null),A=P.useRef(null),O=P.useRef([]),j=Ve(n,R),B=Ve(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,I=$=>{var W;(W=F.onFocus)==null||W.call(F,$),_==null||_($)},Y=$=>{I($)},q=$=>{var W,H;if(w==null||w($),$.key==="Enter"&&!$.defaultMuiPrevented){if((W=R.current)!=null&&W.dataset.multiInput)return;const ee=(H=R.current)==null?void 0:H.closest("form"),X=ee==null?void 0:ee.querySelector('[type="submit"]');if(!ee||!X)return;$.preventDefault(),ee.requestSubmit(X)}},K=$=>{var W;(W=F.onBlur)==null||W.call(F,$),D==null||D($)};P.useEffect(()=>{F&&F.setAdornedStart(!!d)},[F,d]),P.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const oe=pA(V,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($=>$.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!J||!z.isPickerOpen)return;const{activeBarWidth:$,sectionOffsets:W}=hA(r,R);O.current=[W[0],W[1]],A.current&&(A.current.style.width=`${$}px`)},[r,J,z.isPickerOpen]),b.jsxs(Z,U({},Q,{children:[d,b.jsx(od,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:oe.sectionsContainer,onFocus:I,onBlur:K,onInput:y,onPaste:v,onKeyDown:q,slots:{root:se,section:lA,sectionContent:cA,sectionSeparator:uA},slotProps:{root:U({},h==null?void 0:h.input,{ownerState:z}),sectionContent:{className:lr.sectionContent},sectionSeparator:({separatorPosition:$})=>({className:$==="before"?lr.sectionBefore:lr.sectionAfter})}}),u,f?f(U({},F)):null,b.jsx(dA,U({name:C,className:oe.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:F.required,disabled:F.disabled,onFocus:Y},T,{ref:B})),J&&b.jsx(fA,{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 mA(e){return Pe("MuiPickersOutlinedInput",e)}const cn=U({},lr,Te("MuiPickersOutlinedInput",["root","notchedOutline","input"])),gA=["children","className","label","notched","shrink"],yA=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"})),bA=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 vA(e){const{className:t,label:n,notched:o}=e,r=Me(e,gA),i=Ra();return b.jsx(yA,U({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(bA,{ownerState:i,notched:o,children:n?b.jsx(Dh,{children:n}):b.jsx(Dh,{className:"notranslate",children:""})})}))}const xA=["label","autoFocus","ownerState","classes","notched"],CA=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}}}))}}),SA=ae.styled(sd,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),wA=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mA,e);return U({},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,xA),c=Bn(),u=wA(i);return b.jsx(Gs,U({slots:{root:CA,input:SA},renderSuffix:d=>b.jsx(vA,{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 TA(e){return Pe("MuiPickersFilledInput",e)}const bo=U({},lr,Te("MuiPickersFilledInput",["root","underline","input"])),PA=["label","autoFocus","disableUnderline","hiddenLabel","classes"],EA=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}}]}}),MA=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}}]}),OA=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},TA,e);return U({},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,PA),u=Ra(),d=U({},u,{inputHasUnderline:!i}),f=OA(l,d);return b.jsx(Gs,U({slots:{root:EA,input:MA},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 kA(e){return Pe("MuiPickersFilledInput",e)}const zr=U({},lr,Te("MuiPickersInput",["root","underline","input"])),DA=["label","autoFocus","disableUnderline","ownerState","classes"],IA=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"}}}]}}),RA=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},kA,e);return U({},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,DA),c=Ra(),u=U({},c,{inputHasUnderline:!i}),d=RA(a,u);return b.jsx(Gs,U({slots:{root:IA},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 AA=["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"],NA={standard:ja,filled:_a,outlined:Na},_A=ae.styled(Ku,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),jA=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},eA,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:w,areAllSectionsEmpty:C,onClick:S,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:_,endAdornment:D,startAdornment:V,tabIndex:N,contentEditable:x,focused:L,value:R,onChange:A,fullWidth:O,id:j,name:B,helperText:F,FormHelperTextProps:z,label:I,InputLabelProps:Y,"data-active-range-position":q}=o,K=Me(o,AA),oe=P.useRef(null),Z=Ve(n,oe),Q=ro(j),se=F&&Q?`${Q}-helper-text`:void 0,J=I&&Q?`${Q}-label`:void 0,$=nd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),W=P.useMemo(()=>U({},$,{isFieldValueEmpty:C,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!I,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[$,C,L,d,o.size,c,O,V,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,I,Y==null?void 0:Y.shrink]),H=jA(l,W),ee=NA[f],X={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(X.notched=Y.shrink),X.label=I):f==="filled"&&(X.hiddenLabel=h),b.jsx(rd.Provider,{value:W,children:b.jsxs(_A,U({className:ye(H.root,a),ref:Z,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:O,required:p,ownerState:W},K,{children:[I!=null&&I!==""&&b.jsx(Gu,U({htmlFor:Q,id:J},Y,{children:I})),b.jsx(ee,U({elements:w,areAllSectionsEmpty:C,onClick:S,onKeyDown:T,onKeyUp:E,onInput:_,onPaste:M,onFocus:r,onBlur:i,endAdornment:D,startAdornment:V,tabIndex:N,contentEditable:x,value:R,onChange:A,id:Q,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:v,label:I,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,U({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 LA=["enableAccessibleFieldDOMStructure"],VA=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],$A=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],FA=["ownerState"],BA=["ownerState"],zA=["ownerState"],HA=["ownerState"],WA=["InputProps","inputProps"],Cl=()=>{},UA=e=>{var w,C,S,T,E,M,_,D,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Me(e,LA);if(t){const{InputProps:N,readOnly:x,onClear:L,clearable:R,clearButtonPosition:A,openPickerButtonPosition:O,openPickerAriaLabel:j}=n,B=Me(n,VA),F=Yn>=6&&((w=B==null?void 0:B.slotProps)!=null&&w.input)?cs((C=B==null?void 0:B.slotProps)==null?void 0:C.input,N):Cl;return{clearable:R,onClear:L,clearButtonPosition:A,openPickerButtonPosition:O,openPickerAriaLabel:j,textFieldProps:U({},B,Yn>=6&&((S=B==null?void 0:B.slotProps)!=null&&S.input)?{slotProps:U({},B==null?void 0:B.slotProps,{input:z=>U({},en(F,z),{readOnly:x})})}:{InputProps:U({},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,$A),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):Cl,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):Cl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:U({},g,Yn>=6&&((D=g==null?void 0:g.slotProps)!=null&&D.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:U({},g==null?void 0:g.slotProps,{input:N=>U({},en(y,N),{readOnly:a}),htmlInput:N=>U({},en(v,N),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:U({},l??{},{readOnly:a}),inputProps:U({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},Va=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Va.displayName="PickerFieldUIContext");function YA(e){var z,I,Y,q;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=ao(),r=Du(),i=P.useContext(Va),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=UA(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?eb:La),w=i.slots.inputAdornment??tb,C=Le({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:U({},p,{position:"start"})}),S=Me(C,FA),T=Le({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:U({},p,{position:"end"})}),E=Me(T,BA),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(_,zA),V=i.slots.openPickerIcon??n,N=Le({elementType:V,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}),R=Me(L,HA),A=i.slots.clearIcon??JR,O=Le({elementType:A,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=Ve(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(w,U({},S,{children:[y==="start"&&b.jsx(M,U({},D,{children:b.jsx(V,U({},N))})),g==="start"&&b.jsx(x,U({},R,{children:b.jsx(A,U({},O))}))]}))),!(B!=null&&B.endAdornment)&&(g==="end"||y==="end")&&(j.endAdornment=b.jsxs(w,U({},E,{children:[g==="end"&&b.jsx(x,U({},R,{children:b.jsx(A,U({},O))})),y==="end"&&b.jsx(M,U({},D,{children:b.jsx(V,U({},N))}))]}))),!(j!=null&&j.endAdornment)&&!(j!=null&&j.startAdornment)&&i.slots.inputAdornment&&(j.endAdornment=b.jsx(w,U({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const F=Yn>=6&&((I=a==null?void 0:a.slotProps)!=null&&I.input)?en(cs(B,j),p):U({},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,U({},a,{InputProps:F}))}function cs(e,t){return e?t?n=>U({},en(t,n),en(e,n)):e:t}function qA(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(Va),i=Du(),a=nd(n),{InputProps:l,inputProps:c}=n,u=Me(n,WA),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=U({},c,d.inputProps),d.InputProps=U({},l,d.InputProps),d}function GA(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(Va.Provider,{value:i,children:r})}const KA=["slots","slotProps"],$a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Me(o,KA),l=qA({slotProps:i,ref:n,externalForwardedProps:a}),c=bI(l);return b.jsx(GA,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(YA,{fieldResponse:c,defaultOpenPickerIcon:QR})})});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: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 ab=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ze();return P.useCallback(u=>Vs({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])},ZA=(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")}},XA=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(ZA(!!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"}),w=ab({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const C=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,w(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:w,timezone:f})}const V=!h.isSameMonth(y.currentMonth,_),N=!h.isSameYear(y.currentMonth,_);V&&(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})}),S=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:C,isDateDisabled:w,onMonthSwitchingAnimationEnd:S}},QA=e=>Pe("MuiPickersFadeTransitionGroup",e);Te("MuiPickersFadeTransitionGroup",["root"]);const JA=["children"],e7=e=>we({root:["root"]},QA,e),t7=ae.styled(zs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function lb(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Me(t,JA),c=e7(i),u=ae.useTheme();return o?a:b.jsx(t7,{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 n7(e){return Pe("MuiPickersDay",e)}const vo=Te("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function cb(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(()=>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 o7=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],r7=(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"]},n7,e)},ub=({theme:e})=>U({},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 ${Ca}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}`}}}]}),db=(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]},s7=ae.styled(yr,{name:"MuiPickersDay",slot:"Root",overridesResolver:db})(ub),i7=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:db})(({theme:e})=>U({},ub({theme:e}),{opacity:0,pointerEvents:"none"})),Hr=()=>{},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=Hr,onBlur:f=Hr,onKeyDown:p=Hr,onMouseDown:h=Hr,onMouseEnter:m=Hr,children:g,day:y,selected:v,disabled:w,today:C,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,_=Me(o,o7),D=cb({day:y,selected:v,disabled:w,today:C,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),V=r7(a,D),N=Ze(),x=P.useRef(null),L=Ve(x,n);Pt(()=>{r&&!w&&!l&&!S&&x.current.focus()},[r,w,l,S]);const R=O=>{h(O),S&&O.preventDefault()},A=O=>{O.defaultMuiPrevented=!0,w||u(y),S&&O.currentTarget.focus(),c&&c(O)};return S&&!M?b.jsx(i7,{className:ye(V.root,V.hiddenDaySpacingFiller,i),ownerState:D,role:_.role}):b.jsx(s7,U({className:ye(V.root,i),ref:L,centerRipple:!0,disabled:w,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:R},_,{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 fb=P.memo(id);process.env.NODE_ENV!=="production"&&(fb.displayName="PickersDay");const a7=e=>Pe("MuiPickersSlideTransition",e),Gt=Te("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),l7=["children","className","reduceAnimations","slideDirection","transKey","classes"],c7=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,a7,e)},u7=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 d7(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,l7),{ownerState:u}=kt(),d=U({},u,{slideDirection:i}),f=c7(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(u7,{className:ye(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(Nu,U({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const f7=e=>Pe("MuiDayCalendar",e);Te("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const p7=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],h7=["ownerState"],m7=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},f7,e),pb=(Ts+Ca*2)*6,g7=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),y7=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),b7=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})),v7=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})),x7=ae.styled(io,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>U({},e.typography.caption,{width:Ts,height:Ts,padding:0,margin:`0 ${Ca}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),C7=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pb}),S7=ae.styled(d7,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:pb}),w7=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),T7=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Ca}px 0`,display:"flex",justifyContent:"center"});function P7(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Me(e,p7);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ze(),v=ya(g),w=o!=null&&y.isSameDay(n,o),C=l&&w,S=r.some(R=>y.isSameDay(R,n)),T=y.isSameDay(n,v),E=P.useMemo(()=>u||i(n),[u,i,n]),M=P.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),_=cb({day:n,selected:S,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),D=(h==null?void 0:h.day)??fb,V=Le({elementType:D,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({},_,{day:n,isDayDisabled:E,isDaySelected:S})}),N=Me(V,h7),x=P.useMemo(()=>{const R=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]),L=P.useMemo(()=>{const R=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]);return b.jsx(D,U({},N,{day:n,disabled:E,autoFocus:!M&&C,today:T,outsideCurrentMonth:M,isFirstVisibleCell:x,isLastVisibleCell:L,selected:S,tabIndex:w?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function E7(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:w,minDate:C,maxDate:S,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:_=W=>n.format(W,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:V,gridLabelId:N,displayWeekNumber:x,fixedWeekNumber:L,timezone:R}=t,A=ya(R),O=m7(i),j=dn(),B=ab({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:C,maxDate:S,disablePast:v,disableFuture:w,timezone:R}),F=ao(),z=he(W=>{p||d(W)}),I=W=>{B(W)||(o(W),V==null||V(!0))},Y=he((W,H)=>{switch(W.key){case"ArrowUp":I(n.addDays(H,-7)),W.preventDefault();break;case"ArrowDown":I(n.addDays(H,7)),W.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(H,j?1:-1),X=n.addMonths(H,j?1:-1),re=bs({adapter:n,date:ee,minDate:j?ee:n.startOfMonth(X),maxDate:j?n.endOfMonth(X):ee,isDateDisabled:B,timezone:R});I(re||ee),W.preventDefault();break}case"ArrowRight":{const ee=n.addDays(H,j?-1:1),X=n.addMonths(H,j?-1:1),re=bs({adapter:n,date:ee,minDate:j?n.startOfMonth(X):ee,maxDate:j?ee:n.endOfMonth(X),isDateDisabled:B,timezone:R});I(re||ee),W.preventDefault();break}case"Home":I(n.startOfWeek(H)),W.preventDefault();break;case"End":I(n.endOfWeek(H)),W.preventDefault();break;case"PageUp":I(n.addMonths(H,1)),W.preventDefault();break;case"PageDown":I(n.addMonths(H,-1)),W.preventDefault();break}}),q=he((W,H)=>I(H)),K=he((W,H)=>{c!=null&&n.isSameDay(c,H)&&(V==null||V(!1))}),oe=n.getMonth(a),Z=n.getYear(a),Q=P.useMemo(()=>l.filter(W=>!!W).map(W=>n.startOfDay(W)),[n,l]),se=`${Z}-${oe}`,J=P.useMemo(()=>P.createRef(),[se]),$=P.useMemo(()=>{const W=n.getWeekArray(a);let H=n.addMonths(a,1);for(;L&&W.length<L;){const ee=n.getWeekArray(H),X=n.isSameDay(W[W.length-1][0],ee[0][0]);ee.slice(X?1:0).forEach(re=>{W.length<L&&W.push(re)}),H=n.addMonths(H,1)}return W},[a,L,n]);return b.jsxs(g7,{role:"grid","aria-labelledby":N,className:O.root,children:[b.jsxs(y7,{role:"row",className:O.header,children:[x&&b.jsx(v7,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),q6(n,A).map((W,H)=>b.jsx(b7,{variant:"caption",role:"columnheader","aria-label":n.format(W,"weekday"),className:O.weekDayLabel,children:_(W)},H.toString()))]}),u?b.jsx(C7,{className:O.loadingContainer,children:m()}):b.jsx(S7,U({transKey:se,onExited:f,reduceAnimations:h,slideDirection:g,className:ye(r,O.slideTransition)},y,{nodeRef:J,children:b.jsx(w7,{ref:J,role:"rowgroup",className:O.monthContainer,children:$.map((W,H)=>b.jsxs(T7,{role:"row",className:O.weekContainer,"aria-rowindex":H+1,children:[x&&b.jsx(x7,{className:O.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(W[0])),children:F.calendarWeekNumberText(n.getWeekNumber(W[0]))}),W.map((ee,X)=>b.jsx(P7,{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-${W[0]}`))})}))]})}function hb(e){return Pe("MuiMonthCalendar",e)}const di=Te("MuiMonthCalendar",["root","button","disabled","selected"]),M7=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],O7=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,hb,e)},k7=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${di.disabled}`]:t.disabled},{[`&.${di.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"},[`&.${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}}})),mb=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,M7),m=P.useRef(null),{ownerState:g}=kt(),y=U({},g,{isMonthDisabled:r,isMonthSelected:i}),v=O7(o,y);Pt(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const w=(f==null?void 0:f.monthButton)??k7,C=Le({elementType:w,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(w,U({},C))});process.env.NODE_ENV!=="production"&&(mb.displayName="MonthCalendarButton");const D7=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],I7=e=>we({root:["root"]},hb,e);function R7(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ih=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),A7=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:Sa,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),ad=P.forwardRef(function(t,n){const o=R7(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:w,onMonthFocus:C,hasFocus:S,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:_,slots:D,slotProps:V}=o,N=Me(o,D7),{value:x,handleValueChange:L,timezone:R}=Ys({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:Pn}),A=ya(R),O=dn(),j=Ze(),{ownerState:B}=kt(),F=P.useMemo(()=>Pn.getInitialReferenceValue({value:x,adapter:j,props:o,timezone:R,referenceDate:d,granularity:bn.month}),[]),z=I7(l),I=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:S,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(w)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)}),$=he(X=>{se(j.setMonth(x??a??F,X))||(K(X),Q(!0),C&&C(X))});P.useEffect(()=>{K(X=>Y!==null&&X!==Y?Y:X)},[Y]);const W=he((X,re)=>{switch(X.key){case"ArrowUp":$((12+re-3)%12),X.preventDefault();break;case"ArrowDown":$((12+re+3)%12),X.preventDefault();break;case"ArrowLeft":$((12+re+(O?1:-1))%12),X.preventDefault();break;case"ArrowRight":$((12+re+(O?-1:1))%12),X.preventDefault();break}}),H=he((X,re)=>{$(re)}),ee=he((X,re)=>{q===re&&Q(!1)});return b.jsx(A7,U({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=Ih(re,Y,X,x,j),me=f||se(X);return b.jsx(mb,{selected:ie,value:re,onClick:J,onKeyDown:W,autoFocus:oe&&re===q,disabled:me,tabIndex:re===q&&!me?0:-1,onFocus:H,onBlur:ee,"aria-current":Ih(re,I,X,A,j)?"date":void 0,"aria-label":ue,slots:D,slotProps:V,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 gb(e){return Pe("MuiYearCalendar",e)}const fi=Te("MuiYearCalendar",["root","button","disabled","selected"]),N7=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],_7=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,gb,e)},j7=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${fi.disabled}`]:t.disabled},{[`&.${fi.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"},[`&.${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}}})),yb=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,N7),m=P.useRef(null),{ownerState:g}=kt(),y=U({},g,{isYearDisabled:r,isYearSelected:i}),v=_7(o,y);Pt(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const w=(f==null?void 0:f.yearButton)??j7,C=Le({elementType:w,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(w,U({},C))});process.env.NODE_ENV!=="production"&&(yb.displayName="YearCalendarButton");const L7=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],V7=e=>we({root:["root"]},gb,e);function $7(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 F7=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:Sa,maxHeight:UD,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),B7=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ld=P.forwardRef(function(t,n){const o=$7(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:w,hasFocus:C,onFocusedViewChange:S,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:_,slots:D,slotProps:V}=o,N=Me(o,L7),{value:x,handleValueChange:L,timezone:R}=Ys({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:Pn}),A=ya(R),O=dn(),j=Ze(),{ownerState:B}=kt(),F=P.useMemo(()=>Pn.getInitialReferenceValue({value:x,adapter:j,props:o,timezone:R,referenceDate:u,granularity:bn.year}),[]),z=V7(a),I=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:C,default:r??!1}),Q=he(le=>{Z(le),S&&S(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)}),$=he(le=>{se(j.setYear(x??F,le))||(K(le),Q(!0),w==null||w(le))});P.useEffect(()=>{K(le=>Y!==null&&le!==Y?Y:le)},[Y]);const W=T!=="desc"?E*1:E*-1,H=O&&T==="asc"||!O&&T==="desc"?-1:1,ee=he((le,de)=>{switch(le.key){case"ArrowUp":$(de-W),le.preventDefault();break;case"ArrowDown":$(de+W),le.preventDefault();break;case"ArrowLeft":$(de-H),le.preventDefault();break;case"ArrowRight":$(de+H),le.preventDefault();break}}),X=he((le,de)=>{$(de)}),re=he((le,de)=>{q===de&&Q(!1)}),te=P.useRef(null),ue=Ve(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,_e=te.current.clientHeight,Oe=te.current.scrollTop,Xe=pe+de;de>_e||pe<Oe||(te.current.scrollTop=Xe-_e/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(F7,U({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,_e=d||se(le);return b.jsx(yb,{selected:pe,value:de,onClick:J,onKeyDown:ee,autoFocus:oe&&de===q,disabled:_e,tabIndex:de===q&&!_e?0:-1,onFocus:X,onBlur:re,"aria-current":I===de?"date":void 0,slots:D,slotProps:V,classes:a,children:j.format(le,"year")},j.format(le,"year"))}),Array.from({length:me},(le,de)=>b.jsx(B7,{},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 z7=e=>Pe("MuiPickersCalendarHeader",e),H7=Te("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function W7(e){return Pe("MuiPickersArrowSwitcher",e)}Te("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const U7=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Y7=["ownerState"],q7=["ownerState"],G7=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),K7=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Rh=ae.styled(Ps,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),Z7=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},W7,e),bb=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:w}=r,C=Me(r,U7),{ownerState:S}=kt(),T=Z7(w),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},_=(l==null?void 0:l.previousIconButton)??Rh,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:U({},S,{isButtonHidden:M.isHidden??!1}),className:ye(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Rh,N=Le({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:U({},S,{isButtonHidden:E.isHidden??!1}),className:ye(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??ZR,L=Le({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.leftArrowIcon}),R=Me(L,Y7),A=(l==null?void 0:l.rightArrowIcon)??XR,O=Le({elementType:A,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.rightArrowIcon}),j=Me(O,q7);return b.jsxs(G7,U({ref:n,className:ye(T.root,a),ownerState:S},C,{children:[b.jsx(_,U({},D,{children:o?b.jsx(A,U({},j)):b.jsx(x,U({},R))})),i?b.jsx(io,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(K7,{className:T.spacer,ownerState:S}),b.jsx(V,U({},N,{children:o?b.jsx(x,U({},R)):b.jsx(A,U({},j))}))]}))});process.env.NODE_ENV!=="production"&&(bb.displayName="PickersArrowSwitcher");function X7(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 Q7(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 J7=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],e4=["ownerState"],t4=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},z7,e),n4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),o4=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})),r4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),s4=ae.styled(Ps,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${H7.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),i4=ae.styled(KR,{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:w,labelId:C,className:S,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,_=Me(i,J7),{ownerState:D}=kt(),V=t4(T),N=(a==null?void 0:a.switchViewButton)??s4,x=Le({elementType:N,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:U({},D,{view:y}),className:V.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??i4,R=Le({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:V.switchViewIcon}),A=Me(R,e4),O=()=>m(r.addMonths(c,1)),j=()=>m(r.addMonths(c,-1)),B=X7(c,{disableFuture:d,maxDate:p,timezone:E}),F=Q7(c,{disablePast:f,minDate:h,timezone:E}),z=()=>{if(!(w.length===1||!g||u))if(w.length===2)g(w.find(Y=>Y!==y)||w[0]);else{const Y=w.indexOf(y)!==0?0:1;g(w[Y])}};if(w.length===1&&w[0]==="year")return null;const I=r.formatByString(c,M);return b.jsxs(n4,U({},_,{ownerState:D,className:ye(V.root,S),ref:n,children:[b.jsxs(o4,{role:"presentation",onClick:z,ownerState:D,"aria-live":"polite",className:V.labelContainer,children:[b.jsx(lb,{reduceAnimations:v,transKey:I,children:b.jsx(r4,{id:C,ownerState:D,className:V.label,children:I})}),w.length>1&&!u&&b.jsx(N,U({},x,{children:b.jsx(L,U({},A))}))]}),b.jsx(to,{in:y==="day",appear:!v,enter:!v,children:b.jsx(bb,{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 a4=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Sa,maxHeight:Yu,display:"flex",flexDirection:"column",margin:"0 auto"}),l4=e=>Pe("MuiDateCalendar",e);Te("MuiDateCalendar",["root","viewTransitionContainer"]);const c4=["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"],u4=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},l4,e);function d4(e,t){const n=ae.useThemeProps({props:e,name:t}),o=b1(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 f4=ae.styled(a4,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Yu}),p4=ae.styled(lb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),ud=P.forwardRef(function(t,n){const o=Ze(),{ownerState:r}=kt(),i=ro(),a=d4(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:w,shouldDisableYear:C,view:S,views:T,openTo:E,className:M,classes:_,disabled:D,readOnly:V,minDate:N,maxDate:x,disableHighlightToday:L,focusedView:R,onFocusedViewChange:A,showDaysOutsideCurrentMonth:O,fixedWeekNumber:j,dayOfWeekFormatter:B,slots:F,slotProps:z,loading:I,renderLoading:Y,displayWeekNumber:q,yearsOrder:K,yearsPerRow:oe,monthsPerRow:Z,timezone:Q}=a,se=Me(a,c4),{value:J,handleValueChange:$,timezone:W}=Ys({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:Pn}),{view:H,setView:ee,focusedView:X,setFocusedView:re,goToNextView:te,setValueAndGoToNextView:ue}=x1({view:S,views:T,openTo:E,onChange:$,onViewChange:c,autoFocus:l,focusedView:R,onFocusedViewChange:A}),{referenceDate:ie,calendarState:me,setVisibleDate:le,isDateDisabled:de,onMonthSwitchingAnimationEnd:pe}=XA({value:J,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:N,maxDate:x,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:W,getCurrentMonthFromVisibleDate:(ke,ct)=>o.isSameMonth(ke,ct)?ct:o.startOfMonth(ke)}),_e=D&&J||N,Oe=D&&J||x,Xe=`${i}-grid-label`,tt=X!==null,wt=(F==null?void 0:F.calendarHeader)??cd,ht=Le({elementType:wt,externalSlotProps:z==null?void 0:z.calendarHeader,additionalProps:{views:T,view:H,currentMonth:me.currentMonth,onViewChange:ee,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:_e,maxDate:Oe,disabled:D,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:W,labelId:Xe},ownerState:r}),Ee=he(ke=>{const ct=o.startOfMonth(ke),vt=o.endOfMonth(ke),Dt=de(ke)?bs({adapter:o,date:ke,minDate:o.isBefore(N,ct)?ct:N,maxDate:o.isAfter(x,vt)?vt:x,disablePast:h,disableFuture:p,isDateDisabled:de,timezone:W}):ke;Dt?(ue(Dt,"finish"),le({target:Dt,reason:"cell-interaction"})):(te(),le({target:ct,reason:"cell-interaction"}))}),Se=he(ke=>{const ct=o.startOfYear(ke),vt=o.endOfYear(ke),Dt=de(ke)?bs({adapter:o,date:ke,minDate:o.isBefore(N,ct)?ct:N,maxDate:o.isAfter(x,vt)?vt:x,disablePast:h,disableFuture:p,isDateDisabled:de,timezone:W}):ke;Dt?(ue(Dt,"finish"),le({target:Dt,reason:"cell-interaction"})):(te(),le({target:ct,reason:"cell-interaction"}))}),xe=he(ke=>$(ke&&Fi(o,ke,J??ie),"finish",H));P.useEffect(()=>{o.isValid(J)&&le({target:J,reason:"controlled-value-change"})},[J]);const $e=u4(_),Be={disablePast:h,disableFuture:p,maxDate:x,minDate:N},it={disableHighlightToday:L,readOnly:V,disabled:D,timezone:W,gridLabelId:Xe,slots:F,slotProps:z},Qe=P.useRef(H);P.useEffect(()=>{Qe.current!==H&&(X===Qe.current&&re(H,!0),Qe.current=H)},[X,re,H]);const _t=P.useMemo(()=>[J],[J]);return b.jsxs(f4,U({ref:n,className:ye($e.root,M),ownerState:r},se,{children:[b.jsx(wt,U({},ht,{slots:F,slotProps:z})),b.jsx(p4,{reduceAnimations:y,className:$e.viewTransitionContainer,transKey:H,ownerState:r,children:b.jsxs("div",{children:[H==="year"&&b.jsx(ld,U({},Be,it,{value:J,onChange:Se,shouldDisableYear:C,hasFocus:tt,onFocusedViewChange:ke=>re("year",ke),yearsOrder:K,yearsPerRow:oe,referenceDate:ie})),H==="month"&&b.jsx(ad,U({},Be,it,{currentMonth:me.currentMonth,hasFocus:tt,className:M,value:J,onChange:Ee,shouldDisableMonth:w,onFocusedViewChange:ke=>re("month",ke),monthsPerRow:Z,referenceDate:ie})),H==="day"&&b.jsx(E7,U({},me,Be,it,{onMonthSwitchingAnimationEnd:pe,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:_t,onSelectedDaysChange:xe,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:C,onFocusedViewChange:ke=>re("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:j,dayOfWeekFormatter:B,displayWeekNumber:q,loading:I,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:w,onMonthChange:C,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:_,slotProps:D,loading:V,renderLoading:N,disableHighlightToday:x,readOnly:L,disabled:R,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:O,sx:j,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:z,timezone:I})=>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:w,onMonthChange:C,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:_,slotProps:D,loading:V,renderLoading:N,disableHighlightToday:x,readOnly:L,disabled:R,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:O,sx:j,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:z,timezone:I});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=U({day:No,month:No,year:No},r.viewRenderers),a=U({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:xu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},en((d=r.slotProps)==null?void 0:d.field,u),Uy(r))},toolbar:U({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=rI({ref:n,props:a,valueManager:Pn,valueType:"date",validator:Vs,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 h4(e){return Pe("MuiDialogContent",e)}Te("MuiDialogContent",["root","dividers"]);const m4=Te("MuiDialogTitle",["root"]),g4=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},h4,t)},y4=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:{[`.${m4.root} + &`]:{paddingTop:0}}}]}))),vb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=g4(l);return b.jsx(y4,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(vb.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 b4(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"]),xb=P.createContext({});process.env.NODE_ENV!=="production"&&(xb.displayName="DialogContext");const v4=be(Xu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),x4=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,b4,t)},C4=be(Qu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),S4=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"}}}]}),w4=be(Hs,{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%"}}}]}))),Cb=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:w,open:C,PaperComponent:S=Hs,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:_={},TransitionComponent:D=to,transitionDuration:V=i,TransitionProps:N,...x}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},R=x4(L),A=P.useRef(),O=ee=>{A.current=ee.target===ee.currentTarget},j=ee=>{v&&v(ee),A.current&&(A.current=null,w&&w(ee,"backdropClick"))},B=ro(l),F=P.useMemo(()=>({titleId:B}),[B]),z={transition:D,...M},I={transition:N,paper:T,backdrop:d,..._},Y={slots:z,slotProps:I},[q,K]=st("root",{elementType:C4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(R.root,p),ref:n}),[oe,Z]=st("backdrop",{elementType:v4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:R.backdrop}),[Q,se]=st("paper",{elementType:w4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(R.paper,T.className)}),[J,$]=st("container",{elementType:S4,externalForwardedProps:Y,ownerState:L,className:R.container}),[W,H]=st("transition",{elementType:to,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:C,timeout:V,role:"presentation"}});return b.jsx(q,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:V,as:u,...Z}},disableEscapeKeyDown:h,onClose:w,open:C,onClick:j,...K,...x,children:b.jsx(W,{...H,children:b.jsx(J,{onMouseDown:O,...$,children:b.jsx(Q,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B,"aria-modal":c,...se,children:b.jsx(xb.Provider,{value:F,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Cb.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 T4=ae.styled(Cb,{slot:"internal"})({[`& .${us.container}`]:{outline:0},[`& .${us.paper}`]:{outline:0,minWidth:Sa}}),P4=ae.styled(vb,{slot:"internal"})({"&:first-of-type":{padding:0}});function E4(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Tr(),{dismissViews:i,onPopperExited:a}=kt(),l=(n==null?void 0:n.dialog)??T4,c=(n==null?void 0:n.mobileTransition)??to;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(P4,{children:t})}))}const M4=["props","steps"],O4=["ownerState"],k4=e=>{var E;let{props:t,steps:n}=e,o=Me(e,M4);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=_1({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=S1(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=Me(y,O4),w=r.layout??wa;let C=h;m&&(a?C=`${h}-label`:C=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:U({"aria-labelledby":C},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(Fy,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(E4,{slots:r,slotProps:S,children:b.jsx(w,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,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=U({day:No,month:No,year:No},r.viewRenderers),a=U({},r,{viewRenderers:i,format:xu(o,r,!1),slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},en((d=r.slotProps)==null?void 0:d.field,u),Uy(r))},toolbar:U({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=k4({ref:n,props:a,valueManager:Pn,valueType:"date",validator:Vs,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 D4=["desktopModeMediaQuery"],pd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=_k}=o,i=Me(o,D4);return Ny(r,{defaultMatches:!0})?b.jsx(dd,U({ref:n},i)):b.jsx(fd,U({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 Sb={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,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var A=["th","st","nd","rd"],O=R%100;return"["+R+(A[(O-20)%10]||A[O]||A[0])+"]"}},C=function(R,A,O){var j=String(R);return!j||j.length>=A?R:""+Array(A+1-j.length).join(O)+R},S={s:C,z:function(R){var A=-R.utcOffset(),O=Math.abs(A),j=Math.floor(O/60),B=O%60;return(A<=0?"+":"-")+C(j,2,"0")+":"+C(B,2,"0")},m:function R(A,O){if(A.date()<O.date())return-R(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(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},T="en",E={};E[T]=w;var M="$isDayjsObject",_=function(R){return R instanceof x||!(!R||!R[M])},D=function R(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 R(z[0])}else{var I=A.name;E[I]=A,B=I}return!j&&B&&(T=B),B||!j&&T},V=function(R,A){if(_(R))return R.clone();var O=typeof A=="object"?A:{};return O.date=R,O.args=arguments,new x(O)},N=S;N.l=D,N.i=_,N.w=function(R,A){return V(R,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var x=function(){function R(O){this.$L=D(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var A=R.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 I=z[2]-1||0,Y=(z[7]||"0").substring(0,3);return F?new Date(Date.UTC(z[1],I,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)):new Date(z[1],I,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=V(O);return this.startOf(j)<=B&&B<=this.endOf(j)},A.isAfter=function(O,j){return V(O)<this.startOf(j)},A.isBefore=function(O,j){return this.endOf(j)<V(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),I=function(J,$){var W=N.w(B.$u?Date.UTC(B.$y,$,J):new Date(B.$y,$,J),B);return F?W:W.endOf(u)},Y=function(J,$){return N.w(B.toDate()[J].apply(B.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice($)),B)},q=this.$W,K=this.$M,oe=this.$D,Z="set"+(this.$u?"UTC":"");switch(z){case h:return F?I(1,0):I(31,11);case f:return F?I(1,K):I(0,K+1);case d:var Q=this.$locale().weekStart||0,se=(q<Q?q+7:q)-Q;return I(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":""),I=(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[I](Y),q.init(),this.$d=q.set(m,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](Y);return this.init(),this},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),I=function(K){var oe=V(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 I(1);if(z===d)return I(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),I=this.$H,Y=this.$m,q=this.$M,K=B.weekdays,oe=B.months,Z=B.meridiem,Q=function($,W,H,ee){return $&&($[W]||$(j,F))||H[W].slice(0,ee)},se=function($){return N.s(I%12||12,$,"0")},J=Z||function($,W,H){var ee=$<12?"AM":"PM";return H?ee.toLowerCase():ee};return F.replace(v,function($,W){return W||function(H){switch(H){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(I);case"HH":return N.s(I,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return J(I,Y,!0);case"A":return J(I,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}($)||z.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(O,j,B){var F,z=this,I=N.p(j),Y=V(O),q=(Y.utcOffset()-this.utcOffset())*o,K=this-Y,oe=function(){return N.m(z,Y)};switch(I){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()},R}(),L=x.prototype;return V.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(R){L[R[1]]=function(A){return this.$g(A,R[0],R[1])}}),V.extend=function(R,A){return R.$i||(R(A,x,V),R.$i=!0),V},V.locale=D,V.isDayjs=_,V.unix=function(R){return V(1e3*R)},V.en=E[T],V.Ls=E,V.p={},V})})(Sb);var I4=Sb.exports;const xt=no(I4);var wb={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)}}})})(wb);var R4=wb.exports;const A4=no(R4);var Tb={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 w=v.match(/([+-]|\d\d)/g),C=60*w[1]+(+w[2]||0);return C===0?0:w[0]==="+"?-C:C}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var w,C=c.meridiem;if(C){for(var S=1;S<=24;S+=1)if(y.indexOf(C(S,0,v))>-1){w=S>12;break}}else w=y===(v?"pm":"PM");return w},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,w=y.match(/\d+/);if(this.day=w[0],v)for(var C=1;C<=31;C+=1)v(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),w=(p("monthsShort")||v.map(function(C){return C.slice(0,3)})).indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],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,w;v=y,w=c&&c.formats;for(var C=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,N,x){var L=x&&x.toUpperCase();return N||w[x]||n[x]||w[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,A,O){return A||O.slice(1)})})).match(o),S=C.length,T=0;T<S;T+=1){var E=C[T],M=m[E],_=M&&M[0],D=M&&M[1];C[T]=D?{regex:_,parser:D}:E.replace(/^\[|\]$/g,"")}return function(V){for(var N={},x=0,L=0;x<S;x+=1){var R=C[x];if(typeof R=="string")L+=R.length;else{var A=R.regex,O=R.parser,j=V.slice(L),B=A.exec(j)[0];O.call(N,B),V=V.replace(B,"")}}return function(F){var z=F.afternoon;if(z!==void 0){var I=F.hours;z?I<12&&(F.hours+=12):I===12&&(F.hours=0),delete F.afternoon}}(N),N}}return function(y,v,w){w.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var C=v.prototype,S=C.parse;C.parse=function(T){var E=T.date,M=T.utc,_=T.args;this.$u=M;var D=_[1];if(typeof D=="string"){var V=_[2]===!0,N=_[3]===!0,x=V||N,L=_[2];N&&(L=_[2]),c=this.$locale(),!V&&L&&(c=w.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 I=g(B)(j),Y=I.year,q=I.month,K=I.day,oe=I.hours,Z=I.minutes,Q=I.seconds,se=I.milliseconds,J=I.zone,$=I.week,W=new Date,H=K||(Y||q?1:W.getDate()),ee=Y||W.getFullYear(),X=0;Y&&!q||(X=q>0?q-1:W.getMonth());var re,te=oe||0,ue=Z||0,ie=Q||0,me=se||0;return J?new Date(Date.UTC(ee,X,H,te,ue,ie,me+60*J.offset*1e3)):F?new Date(Date.UTC(ee,X,H,te,ue,ie,me)):(re=new Date(ee,X,H,te,ue,ie,me),$&&(re=z(re).week($).toDate()),re)}catch{return new Date("")}}(E,D,M,w),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 R=D.length,A=1;A<=R;A+=1){_[1]=D[A-1];var O=w.apply(this,_);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}A===R&&(this.$d=new Date(""))}else S.call(this,T)}}})})(Tb);var N4=Tb.exports;const _4=no(N4);var Pb={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,w,C){return w||C.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Pb);var j4=Pb.exports;const L4=no(j4);var Eb={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))}}})})(Eb);var V4=Eb.exports;const $4=no(V4);var Mb={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)}}})})(Mb);var F4=Mb.exports;const B4=no(F4);xt.extend(L4);xt.extend(A4);xt.extend($4);xt.extend(B4);const z4={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"},H4={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"},Sl=["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(`
|
|
237
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Vn,s.func]),disableScrollLock:s.bool,elevation:r1,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 gR(e){return Pe("MuiMenu",e)}Te("MuiMenu",["root","paper","list"]);const yR={vertical:"top",horizontal:"right"},bR={vertical:"top",horizontal:"left"},vR=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},gR,t)},xR=be(q1,{shouldForwardProp:e=>fn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),CR=be(Y1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wR=be(U1,{name:"MuiMenu",slot:"List"})({outline:0}),G1=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:S={},...C}=o,w=dn(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},E=vR(T),M=r&&!l&&d,_=P.useRef(null),D=(F,H)=>{_.current&&_.current.adjustStyleForScrollbar(F,{direction:w?"rtl":"ltr"}),m&&m(F,H)},V=F=>{F.key==="Tab"&&(F.preventDefault(),u&&u(F,"tabKeyDown"))};let N=-1;P.Children.map(i,(F,H)=>{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=H))});const x={slots:v,slotProps:{list:c,transition:g,paper:f,...S}},L=Le({elementType:v.root,externalSlotProps:S.root,ownerState:T,className:[E.root,a]}),[R,A]=st("paper",{className:E.paper,elementType:CR,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:T}),[O,j]=st("list",{className:ye(E.list,c.className),elementType:wR,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:F=>({...F,onKeyDown:H=>{var I;V(H),(I=F.onKeyDown)==null||I.call(F,H)}}),ownerState:T}),B=typeof x.slotProps.transition=="function"?x.slotProps.transition(T):x.slotProps.transition;return b.jsx(xR,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?yR:bR,slots:{root:v.root,paper:R,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:L,paper:A,backdrop:typeof S.backdrop=="function"?S.backdrop(T):S.backdrop,transition:{...B,onEntering:(...F)=>{var H;D(...F),(H=B==null?void 0:B.onEntering)==null||H.call(B,...F)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...C,classes:p,children:b.jsx(O,{actions:_,autoFocus:r&&(N===-1||l),autoFocusItem:M,variant:y,...j,children:i})})});process.env.NODE_ENV!=="production"&&(G1.propTypes={anchorEl:s.oneOfType([Vn,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),list:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,list:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function SR(e){return Pe("MuiNativeSelect",e)}const Ju=Te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),TR=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 Se(l,SR,t)},Z1=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}}}]})),PR=be(Z1,{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}]}})({}),K1=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}}]})),ER=be(K1,{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]}})({}),X1=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=TR(d);return b.jsxs(P.Fragment,{children:[b.jsx(PR,{ownerState:d,className:ye(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:b.jsx(ER,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(X1.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function Q1(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 MR=be(Z1,{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"}}),OR=be(K1,{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]}})({}),kR=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 DR(e){return e==null||typeof e=="string"&&!e.trim()}const IR=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 Se(l,Q1,t)},J1=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:S,name:C,onBlur:w,onChange:T,onClose:E,onFocus:M,onKeyDown:_,onMouseDown:D,onOpen:V,open:N,readOnly:x,renderValue:L,required:R,SelectDisplayProps:A={},tabIndex:O,type:j,value:B,variant:F="standard",...H}=t,[I,Y]=Qn({controlled:B,default:d,name:"Select"}),[q,Z]=Qn({controlled:N,default:u,name:"Select"}),oe=P.useRef(null),K=P.useRef(null),[Q,se]=P.useState(null),{current:J}=P.useRef(N!=null),[$,W]=P.useState(),z=Ve(n,g),ee=P.useCallback(ge=>{K.current=ge,ge&&se(ge)},[]),X=Q==null?void 0:Q.parentNode;P.useImperativeHandle(z,()=>({focus:()=>{K.current.focus()},node:oe.current,value:I}),[I]);const re=Q!==null&&q;P.useEffect(()=>{if(!re||!X||a||typeof ResizeObserver>"u")return;const ge=new ResizeObserver(()=>{W(X.clientWidth)});return ge.observe(X),()=>{ge.disconnect()}},[re,X,a]),P.useEffect(()=>{u&&q&&Q&&!J&&(W(a?null:X.clientWidth),K.current.focus())},[Q,a]),P.useEffect(()=>{i&&K.current.focus()},[i]),P.useEffect(()=>{if(!y)return;const ge=Et(K.current).getElementById(y);if(ge){const De=()=>{getSelection().isCollapsed&&K.current.focus()};return ge.addEventListener("click",De),()=>{ge.removeEventListener("click",De)}}},[y]);const te=(ge,De)=>{ge?V&&V(De):E&&E(De),J||(W(a?null:X.clientWidth),Z(ge))},ue=ge=>{D==null||D(ge),ge.button===0&&(ge.preventDefault(),K.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(S){ut=Array.isArray(I)?I.slice():[];const Mn=I.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),I!==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:C}}),T(Er,ge)}S||te(!1,De)}},pe=ge=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),te(!0,ge)),_==null||_(ge))},_e=ge=>{!re&&w&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:I,name:C}}),w(ge))};delete H["aria-invalid"];let Oe,Xe;const tt=[];let St=!1,ht=!1;(qi({value:I})||p)&&(L?Oe=L(I):St=!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(S){if(!Array.isArray(I))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Sn(2));De=I.some(ut=>Ph(ut,ge.props.value)),De&&St&&tt.push(ge.props.children)}else De=Ph(I,ge.props.value),De&&St&&(Xe=ge.props.children);return De&&(ht=!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(!ht&&!S&&I!==""){const ge=me.map(De=>De.props.value);console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${C?`(name="${C}") `:""}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
|
+
`))}},[ht,me,S,C,I]),St&&(S?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=$;!a&&J&&Q&&(we=X.clientWidth);let xe;typeof O<"u"?xe=O:xe=f?null:0;const $e=A.id||(C?`mui-component-select-${C}`:void 0),Be={...t,variant:F,value:I,open:re,error:h},it=IR(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(MR,{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,$e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":R?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:pe,onMouseDown:f||x?null:ue,onBlur:_e,onFocus:M,...A,ownerState:Be,className:ye(A.className,it.select,c),id:$e,children:DR(Oe)?Th||(Th=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Oe}),b.jsx(kR,{"aria-invalid":h,value:Array.isArray(I)?I.join(","):I,name:C,ref:oe,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:it.nativeInput,autoFocus:i,required:R,...H,ownerState:Be}),b.jsx(OR,{as:m,className:it.icon,ownerState:Be}),b.jsx(G1,{id:`menu-${C||""}`,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":S?"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"&&(J1.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:wt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,required:s.bool,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const RR=yt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),AR=e=>{const{classes:t}=e,o=Se({root:["root"]},Q1,t);return{...t,...o}},ed={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>fn(e)&&e!=="variant"},NR=be(ka,ed)(""),_R=be(Ia,ed)(""),jR=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=RR,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:S=!1,onClose:C,onOpen:w,open:T,renderValue:E,SelectDisplayProps:M,variant:_="outlined",...D}=o,V=S?X1:J1,N=Bn(),x=Pr({props:o,muiFormControl:N,states:["variant","error"]}),L=x.variant||_,R={...o,variant:L,classes:a},A=AR(R),{root:O,...j}=A,B=p||{standard:b.jsx(NR,{ownerState:R}),outlined:b.jsx(_R,{label:m,ownerState:R}),filled:b.jsx(jR,{ownerState:R})}[L],F=Ve(n,Bs(B));return b.jsx(P.Fragment,{children:P.cloneElement(B,{inputComponent:V,inputProps:{children:i,error:x.error,IconComponent:d,variant:L,type:void 0,multiple:v,...S?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:C,onOpen:w,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?At(j,h.classes):j,...p?p.props.inputProps:{}},...(v&&S||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 LR(e){return Pe("MuiTextField",e)}Te("MuiTextField",["root"]);const VR={standard:ka,filled:Da,outlined:Ia},$R=e=>{const{classes:t}=e;return Se({root:["root"]},LR,t)},FR=be(Zu,{name:"MuiTextField",slot:"Root"})({}),eb=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:S,inputRef:C,label:w,maxRows:T,minRows:E,multiline:M=!1,name:_,onBlur:D,onChange:V,onFocus:N,placeholder:x,required:L=!1,rows:R,select:A=!1,SelectProps:O,slots:j={},slotProps:B={},type:F,value:H,variant:I="outlined",...Y}=o,q={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:A,variant:I},Z=$R(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),K=m&&oe?`${oe}-helper-text`:void 0,Q=w&&oe?`${oe}-label`:void 0,se=VR[I],J={slots:j,slotProps:{input:S,inputLabel:y,htmlInput:v,formHelperText:p,select:O,...B}},$={},W=J.slotProps.inputLabel;I==="outlined"&&(W&&typeof W.shrink<"u"&&($.notched=W.shrink),$.label=w),A&&((!O||!O.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[z,ee]=st("root",{elementType:FR,shouldForwardComponentProp:!0,externalForwardedProps:{...J,...Y},ownerState:q,className:ye(Z.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:L,color:c,variant:I}}),[X,re]=st("input",{elementType:se,externalForwardedProps:J,additionalProps:$,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:Ku,externalForwardedProps:J,ownerState:q}),[pe,_e]=st("select",{elementType:td,externalForwardedProps:J,ownerState:q}),Oe=b.jsx(X,{"aria-describedby":K,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:_,rows:R,maxRows:T,minRows:E,type:F,value:H,id:oe,inputRef:C,onBlur:D,onChange:V,onFocus:N,placeholder:x,inputProps:me,slots:{input:j.htmlInput?ie:void 0},...re});return b.jsxs(z,{...ee,children:[w!=null&&w!==""&&b.jsx(te,{htmlFor:oe,id:Q,...ue,children:w}),A?b.jsx(pe,{"aria-describedby":K,id:oe,labelId:Q,value:H,input:Oe,..._e,children:a}):Oe,m&&b.jsx(le,{id:K,...de,children:m})]})});process.env.NODE_ENV!=="production"&&(eb.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,root:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});function BR(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"]),HR=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 Se(l,BR,t)},zR=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)}`]]}})(Ze(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(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"}}))),WR=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(zu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},S=HR(v);return b.jsxs(zR,{id:p?g:f,className:ye(S.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:b.jsx(WR,{className:S.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 UR(e){return Pe("MuiInputAdornment",e)}const Mh=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Oh;const YR=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},qR=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 Se(l,UR,t)},GR=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:YR})(Ze(({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"}}]}))),tb=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=qR(m);return b.jsx(qs.Provider,{value:null,children:b.jsx(GR,{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"&&(tb.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(()=>U({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const ZR=yt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),KR=yt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),XR=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"),QR=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 JR=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 eA(e){return Pe("MuiPickersTextField",e)}Te("MuiPickersTextField",["root","focused","disabled","error","required"]);const tA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function nA(e){return Pe("MuiPickersInputBase",e)}const lr=Te("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function oA(e){return Pe("MuiPickersSectionList",e)}const Zo=Te("MuiPickersSectionList",["root","section","sectionContent"]),rA=["slots","slotProps","elements","sectionListRef","classes"],nb=ae.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),ob=ae.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),rb=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),sb=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),sA=e=>Se({root:["root"],section:["section"],sectionContent:["sectionContent"]},oA,e);function ib(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=kt(),a=(t==null?void 0:t.section)??ob,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)??sb,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)??rb,f=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:U({},i,{separatorPosition:"before"})}),p=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:U({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=Ve(u.ref,h),g=y=>{const v=y.relatedTarget,S=y.currentTarget.closest(`.${Zo.root}`);if(S&&v instanceof Node&&S.contains(v)){y.stopPropagation();return}};return b.jsxs(a,U({},l,{children:[b.jsx(d,U({},f)),b.jsx(c,U({},u,{ref:m,onBlur:g})),b.jsx(d,U({},p))]}))}process.env.NODE_ENV!=="production"&&(ib.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,rA),d=sA(c),{ownerState:f}=kt(),p=P.useRef(null),h=Ve(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(`.${Zo.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${Zo.section}[data-sectionindex="${v}"] .${Zo.sectionContent}`)},getSectionIndexFromDOMElement(v){const S=m("getSectionIndexFromDOMElement");if(v==null||!S.contains(v))return null;let C=null;return v.classList.contains(Zo.section)?C=v:v.classList.contains(Zo.sectionContent)&&(C=v.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??nb,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,U({},y,{children:y.contentEditable?a.map(({content:v,before:S,after:C})=>`${S.children}${v.children}${C.children}`).join(""):b.jsx(P.Fragment,{children:a.map((v,S)=>b.jsx(ib,{slots:r,slotProps:i,element:v,classes:d},S))})}))});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 Ra=()=>{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},iA=["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"],aA=e=>Math.round(e*1e5)/1e5,Aa=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:`${aA(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),sd=ae.styled(nb,{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}}]})),lA=ae.styled(ob,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),cA=ae.styled(sb,{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"})),uA=ae.styled(rb,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),dA=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},tA)),fA=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]}})),pA=(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 Se(f,nA,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 hA(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:S,name:C,readOnly:w,inputProps:T,inputRef:E,sectionListRef:M,onFocus:_,onBlur:D,classes:V,ownerState:N}=o,x=Me(o,iA),L=Ra(),R=P.useRef(null),A=P.useRef(null),O=P.useRef([]),j=Ve(n,R),B=Ve(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 H=N??L,I=$=>{var W;(W=F.onFocus)==null||W.call(F,$),_==null||_($)},Y=$=>{I($)},q=$=>{var W,z;if(S==null||S($),$.key==="Enter"&&!$.defaultMuiPrevented){if((W=R.current)!=null&&W.dataset.multiInput)return;const ee=(z=R.current)==null?void 0:z.closest("form"),X=ee==null?void 0:ee.querySelector('[type="submit"]');if(!ee||!X)return;$.preventDefault(),ee.requestSubmit(X)}},Z=$=>{var W;(W=F.onBlur)==null||W.call(F,$),D==null||D($)};P.useEffect(()=>{F&&F.setAdornedStart(!!d)},[F,d]),P.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const oe=pA(V,H),K=(p==null?void 0:p.root)||Aa,Q=Le({elementType:K,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:x,additionalProps:{"aria-invalid":F.error,ref:j},className:oe.root,ownerState:H}),se=(p==null?void 0:p.input)||sd,J=r.some($=>$.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!J||!H.isPickerOpen)return;const{activeBarWidth:$,sectionOffsets:W}=hA(r,R);O.current=[W[0],W[1]],A.current&&(A.current.style.width=`${$}px`)},[r,J,H.isPickerOpen]),b.jsxs(K,U({},Q,{children:[d,b.jsx(od,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:oe.sectionsContainer,onFocus:I,onBlur:Z,onInput:y,onPaste:v,onKeyDown:q,slots:{root:se,section:lA,sectionContent:cA,sectionSeparator:uA},slotProps:{root:U({},h==null?void 0:h.input,{ownerState:H}),sectionContent:{className:lr.sectionContent},sectionSeparator:({separatorPosition:$})=>({className:$==="before"?lr.sectionBefore:lr.sectionAfter})}}),u,f?f(U({},F)):null,b.jsx(dA,U({name:C,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(fA,{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:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function mA(e){return Pe("MuiPickersOutlinedInput",e)}const cn=U({},lr,Te("MuiPickersOutlinedInput",["root","notchedOutline","input"])),gA=["children","className","label","notched","shrink"],yA=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"})),bA=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 vA(e){const{className:t,label:n,notched:o}=e,r=Me(e,gA),i=Ra();return b.jsx(yA,U({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(bA,{ownerState:i,notched:o,children:n?b.jsx(Dh,{children:n}):b.jsx(Dh,{className:"notranslate",children:""})})}))}const xA=["label","autoFocus","ownerState","classes","notched"],CA=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}}}))}}),wA=ae.styled(sd,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),SA=e=>{const n=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mA,e);return U({},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,xA),c=Bn(),u=SA(i);return b.jsx(Gs,U({slots:{root:CA,input:wA},renderSuffix:d=>b.jsx(vA,{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:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Na.muiName="Input";function TA(e){return Pe("MuiPickersFilledInput",e)}const bo=U({},lr,Te("MuiPickersFilledInput",["root","underline","input"])),PA=["label","autoFocus","disableUnderline","hiddenLabel","classes"],EA=ae.styled(Aa,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ht.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${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}}]}}),MA=ae.styled(sd,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ht.shouldForwardProp(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),OA=(e,t)=>{const{inputHasUnderline:n}=t,r=Se({root:["root",n&&"underline"],input:["input"]},TA,e);return U({},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,PA),u=Ra(),d=U({},u,{inputHasUnderline:!i}),f=OA(l,d);return b.jsx(Gs,U({slots:{root:EA,input:MA},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:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});_a.muiName="Input";function kA(e){return Pe("MuiPickersFilledInput",e)}const Hr=U({},lr,Te("MuiPickersInput",["root","underline","input"])),DA=["label","autoFocus","disableUnderline","ownerState","classes"],IA=ae.styled(Aa,{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"},[`&.${Hr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hr.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(.${Hr.disabled}, .${Hr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Hr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),RA=(e,t)=>{const{inputHasUnderline:n}=t,r=Se({root:["root",!n&&"underline"],input:["input"]},kA,e);return U({},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,DA),c=Ra(),u=U({},c,{inputHasUnderline:!i}),d=RA(a,u);return b.jsx(Gs,U({slots:{root:IA},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:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});ja.muiName="Input";const AA=["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"],NA={standard:ja,filled:_a,outlined:Na},_A=ae.styled(Zu,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),jA=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return Se({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},eA,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:S,areAllSectionsEmpty:C,onClick:w,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:_,endAdornment:D,startAdornment:V,tabIndex:N,contentEditable:x,focused:L,value:R,onChange:A,fullWidth:O,id:j,name:B,helperText:F,FormHelperTextProps:H,label:I,InputLabelProps:Y,"data-active-range-position":q}=o,Z=Me(o,AA),oe=P.useRef(null),K=Ve(n,oe),Q=ro(j),se=F&&Q?`${Q}-helper-text`:void 0,J=I&&Q?`${Q}-label`:void 0,$=nd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),W=P.useMemo(()=>U({},$,{isFieldValueEmpty:C,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!I,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[$,C,L,d,o.size,c,O,V,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,I,Y==null?void 0:Y.shrink]),z=jA(l,W),ee=NA[f],X={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(X.notched=Y.shrink),X.label=I):f==="filled"&&(X.hiddenLabel=h),b.jsx(rd.Provider,{value:W,children:b.jsxs(_A,U({className:ye(z.root,a),ref:K,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:O,required:p,ownerState:W},Z,{children:[I!=null&&I!==""&&b.jsx(Gu,U({htmlFor:Q,id:J},Y,{children:I})),b.jsx(ee,U({elements:S,areAllSectionsEmpty:C,onClick:w,onKeyDown:T,onKeyUp:E,onInput:_,onPaste:M,onFocus:r,onBlur:i,endAdornment:D,startAdornment:V,tabIndex:N,contentEditable:x,value:R,onChange:A,id:Q,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:v,label:I,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(Ku,U({id:se},H,{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:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const LA=["enableAccessibleFieldDOMStructure"],VA=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],$A=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],FA=["ownerState"],BA=["ownerState"],HA=["ownerState"],zA=["ownerState"],WA=["InputProps","inputProps"],Cl=()=>{},UA=e=>{var S,C,w,T,E,M,_,D,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Me(e,LA);if(t){const{InputProps:N,readOnly:x,onClear:L,clearable:R,clearButtonPosition:A,openPickerButtonPosition:O,openPickerAriaLabel:j}=n,B=Me(n,VA),F=Yn>=6&&((S=B==null?void 0:B.slotProps)!=null&&S.input)?cs((C=B==null?void 0:B.slotProps)==null?void 0:C.input,N):Cl;return{clearable:R,onClear:L,clearButtonPosition:A,openPickerButtonPosition:O,openPickerAriaLabel:j,textFieldProps:U({},B,Yn>=6&&((w=B==null?void 0:B.slotProps)!=null&&w.input)?{slotProps:U({},B==null?void 0:B.slotProps,{input:H=>U({},en(F,H),{readOnly:x})})}:{InputProps:U({},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,$A),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):Cl,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):Cl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:U({},g,Yn>=6&&((D=g==null?void 0:g.slotProps)!=null&&D.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:U({},g==null?void 0:g.slotProps,{input:N=>U({},en(y,N),{readOnly:a}),htmlInput:N=>U({},en(v,N),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:U({},l??{},{readOnly:a}),inputProps:U({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},Va=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Va.displayName="PickerFieldUIContext");function YA(e){var H,I,Y,q;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=ao(),r=Du(),i=P.useContext(Va),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=UA(t),p=nd(a),h=he(Z=>{Z.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?eb:La),S=i.slots.inputAdornment??tb,C=Le({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:U({},p,{position:"start"})}),w=Me(C,FA),T=Le({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:U({},p,{position:"end"})}),E=Me(T,BA),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(_,HA),V=i.slots.openPickerIcon??n,N=Le({elementType:V,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}),R=Me(L,zA),A=i.slots.clearIcon??JR,O=Le({elementType:A,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=Ve(a.ref,r==null?void 0:r.rootRef);const j={},B=en((Yn>=6&&((H=a==null?void 0:a.slotProps)==null?void 0:H.input))??a.InputProps,p);r&&(j.ref=r.triggerRef),!(B!=null&&B.startAdornment)&&(g==="start"||y==="start")&&(j.startAdornment=b.jsxs(S,U({},w,{children:[y==="start"&&b.jsx(M,U({},D,{children:b.jsx(V,U({},N))})),g==="start"&&b.jsx(x,U({},R,{children:b.jsx(A,U({},O))}))]}))),!(B!=null&&B.endAdornment)&&(g==="end"||y==="end")&&(j.endAdornment=b.jsxs(S,U({},E,{children:[g==="end"&&b.jsx(x,U({},R,{children:b.jsx(A,U({},O))})),y==="end"&&b.jsx(M,U({},D,{children:b.jsx(V,U({},N))}))]}))),!(j!=null&&j.endAdornment)&&!(j!=null&&j.startAdornment)&&i.slots.inputAdornment&&(j.endAdornment=b.jsx(S,U({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const F=Yn>=6&&((I=a==null?void 0:a.slotProps)!=null&&I.input)?en(cs(B,j),p):U({},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,U({},a,{InputProps:F}))}function cs(e,t){return e?t?n=>U({},en(t,n),en(e,n)):e:t}function qA(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(Va),i=Du(),a=nd(n),{InputProps:l,inputProps:c}=n,u=Me(n,WA),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=U({},c,d.inputProps),d.InputProps=U({},l,d.InputProps),d}function GA(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(Va.Provider,{value:i,children:r})}const ZA=["slots","slotProps"],$a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Me(o,ZA),l=qA({slotProps:i,ref:n,externalForwardedProps:a}),c=bI(l);return b.jsx(GA,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(YA,{fieldResponse:c,defaultOpenPickerIcon:QR})})});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:wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,openPickerButtonPosition:s.oneOf(["end","start"]),readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const ab=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ke();return P.useCallback(u=>Vs({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])},KA=(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")}},XA=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f,getCurrentMonthFromVisibleDate:p}=e,h=Ke(),m=P.useRef(KA(!!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"}),S=ab({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const C=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,S(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:S,timezone:f})}const V=!h.isSameMonth(y.currentMonth,_),N=!h.isSameYear(y.currentMonth,_);V&&(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:C,isDateDisabled:S,onMonthSwitchingAnimationEnd:w}},QA=e=>Pe("MuiPickersFadeTransitionGroup",e);Te("MuiPickersFadeTransitionGroup",["root"]);const JA=["children"],e7=e=>Se({root:["root"]},QA,e),t7=ae.styled(Hs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function lb(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Me(t,JA),c=e7(i),u=ae.useTheme();return o?a:b.jsx(t7,{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 n7(e){return Pe("MuiPickersDay",e)}const vo=Te("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function cb(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Ke(),{ownerState:d}=kt();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 o7=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],r7=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return Se({root:["root",n&&!u&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},n7,e)},ub=({theme:e})=>U({},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 ${Ca}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}`}}}]}),db=(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]},s7=ae.styled(yr,{name:"MuiPickersDay",slot:"Root",overridesResolver:db})(ub),i7=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:db})(({theme:e})=>U({},ub({theme:e}),{opacity:0,pointerEvents:"none"})),zr=()=>{},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=zr,onBlur:f=zr,onKeyDown:p=zr,onMouseDown:h=zr,onMouseEnter:m=zr,children:g,day:y,selected:v,disabled:S,today:C,outsideCurrentMonth:w,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,_=Me(o,o7),D=cb({day:y,selected:v,disabled:S,today:C,outsideCurrentMonth:w,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),V=r7(a,D),N=Ke(),x=P.useRef(null),L=Ve(x,n);Pt(()=>{r&&!S&&!l&&!w&&x.current.focus()},[r,S,l,w]);const R=O=>{h(O),w&&O.preventDefault()},A=O=>{O.defaultMuiPrevented=!0,S||u(y),w&&O.currentTarget.focus(),c&&c(O)};return w&&!M?b.jsx(i7,{className:ye(V.root,V.hiddenDaySpacingFiller,i),ownerState:D,role:_.role}):b.jsx(s7,U({className:ye(V.root,i),ref:L,centerRipple:!0,disabled:S,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:R},_,{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 fb=P.memo(id);process.env.NODE_ENV!=="production"&&(fb.displayName="PickersDay");const a7=e=>Pe("MuiPickersSlideTransition",e),Gt=Te("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),l7=["children","className","reduceAnimations","slideDirection","transKey","classes"],c7=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Se(o,a7,e)},u7=ae.styled(Hs,{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 d7(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,l7),{ownerState:u}=kt(),d=U({},u,{slideDirection:i}),f=c7(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(u7,{className:ye(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(Nu,U({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const f7=e=>Pe("MuiDayCalendar",e);Te("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const p7=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],h7=["ownerState"],m7=e=>Se({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},f7,e),pb=(Ts+Ca*2)*6,g7=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),y7=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),b7=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})),v7=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})),x7=ae.styled(io,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>U({},e.typography.caption,{width:Ts,height:Ts,padding:0,margin:`0 ${Ca}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),C7=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pb}),w7=ae.styled(d7,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:pb}),S7=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),T7=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Ca}px 0`,display:"flex",justifyContent:"center"});function P7(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Me(e,p7);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ke(),v=ya(g),S=o!=null&&y.isSameDay(n,o),C=l&&S,w=r.some(R=>y.isSameDay(R,n)),T=y.isSameDay(n,v),E=P.useMemo(()=>u||i(n),[u,i,n]),M=P.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),_=cb({day:n,selected:w,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),D=(h==null?void 0:h.day)??fb,V=Le({elementType:D,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({},_,{day:n,isDayDisabled:E,isDaySelected:w})}),N=Me(V,h7),x=P.useMemo(()=>{const R=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]),L=P.useMemo(()=>{const R=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]);return b.jsx(D,U({},N,{day:n,disabled:E,autoFocus:!M&&C,today:T,outsideCurrentMonth:M,isFirstVisibleCell:x,isLastVisibleCell:L,selected:w,tabIndex:S?0:-1,"aria-selected":w,"aria-current":T?"date":void 0}))}function E7(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Ke(),{onFocusedDayChange:o,className:r,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:m=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:y,disablePast:v,disableFuture:S,minDate:C,maxDate:w,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:_=W=>n.format(W,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:V,gridLabelId:N,displayWeekNumber:x,fixedWeekNumber:L,timezone:R}=t,A=ya(R),O=m7(i),j=dn(),B=ab({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:C,maxDate:w,disablePast:v,disableFuture:S,timezone:R}),F=ao(),H=he(W=>{p||d(W)}),I=W=>{B(W)||(o(W),V==null||V(!0))},Y=he((W,z)=>{switch(W.key){case"ArrowUp":I(n.addDays(z,-7)),W.preventDefault();break;case"ArrowDown":I(n.addDays(z,7)),W.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(z,j?1:-1),X=n.addMonths(z,j?1:-1),re=bs({adapter:n,date:ee,minDate:j?ee:n.startOfMonth(X),maxDate:j?n.endOfMonth(X):ee,isDateDisabled:B,timezone:R});I(re||ee),W.preventDefault();break}case"ArrowRight":{const ee=n.addDays(z,j?-1:1),X=n.addMonths(z,j?-1:1),re=bs({adapter:n,date:ee,minDate:j?n.startOfMonth(X):ee,maxDate:j?ee:n.endOfMonth(X),isDateDisabled:B,timezone:R});I(re||ee),W.preventDefault();break}case"Home":I(n.startOfWeek(z)),W.preventDefault();break;case"End":I(n.endOfWeek(z)),W.preventDefault();break;case"PageUp":I(n.addMonths(z,1)),W.preventDefault();break;case"PageDown":I(n.addMonths(z,-1)),W.preventDefault();break}}),q=he((W,z)=>I(z)),Z=he((W,z)=>{c!=null&&n.isSameDay(c,z)&&(V==null||V(!1))}),oe=n.getMonth(a),K=n.getYear(a),Q=P.useMemo(()=>l.filter(W=>!!W).map(W=>n.startOfDay(W)),[n,l]),se=`${K}-${oe}`,J=P.useMemo(()=>P.createRef(),[se]),$=P.useMemo(()=>{const W=n.getWeekArray(a);let z=n.addMonths(a,1);for(;L&&W.length<L;){const ee=n.getWeekArray(z),X=n.isSameDay(W[W.length-1][0],ee[0][0]);ee.slice(X?1:0).forEach(re=>{W.length<L&&W.push(re)}),z=n.addMonths(z,1)}return W},[a,L,n]);return b.jsxs(g7,{role:"grid","aria-labelledby":N,className:O.root,children:[b.jsxs(y7,{role:"row",className:O.header,children:[x&&b.jsx(v7,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),q6(n,A).map((W,z)=>b.jsx(b7,{variant:"caption",role:"columnheader","aria-label":n.format(W,"weekday"),className:O.weekDayLabel,children:_(W)},z.toString()))]}),u?b.jsx(C7,{className:O.loadingContainer,children:m()}):b.jsx(w7,U({transKey:se,onExited:f,reduceAnimations:h,slideDirection:g,className:ye(r,O.slideTransition)},y,{nodeRef:J,children:b.jsx(S7,{ref:J,role:"rowgroup",className:O.monthContainer,children:$.map((W,z)=>b.jsxs(T7,{role:"row",className:O.weekContainer,"aria-rowindex":z+1,children:[x&&b.jsx(x7,{className:O.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(W[0])),children:F.calendarWeekNumberText(n.getWeekNumber(W[0]))}),W.map((ee,X)=>b.jsx(P7,{parentProps:t,day:ee,selectedDays:Q,isViewFocused:D,focusedDay:c,onKeyDown:Y,onFocus:q,onBlur:Z,onDaySelect:H,isDateDisabled:B,currentMonthNumber:oe,"aria-colindex":X+1},ee.toString()))]},`week-${W[0]}`))})}))]})}function hb(e){return Pe("MuiMonthCalendar",e)}const di=Te("MuiMonthCalendar",["root","button","disabled","selected"]),M7=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],O7=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Se(n,hb,e)},k7=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${di.disabled}`]:t.disabled},{[`&.${di.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"},[`&.${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}}})),mb=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,M7),m=P.useRef(null),{ownerState:g}=kt(),y=U({},g,{isMonthDisabled:r,isMonthSelected:i}),v=O7(o,y);Pt(()=>{var w;n&&((w=m.current)==null||w.focus())},[n]);const S=(f==null?void 0:f.monthButton)??k7,C=Le({elementType:S,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(S,U({},C))});process.env.NODE_ENV!=="production"&&(mb.displayName="MonthCalendarButton");const D7=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],I7=e=>Se({root:["root"]},hb,e);function R7(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ih=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),A7=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: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=R7(t,"MuiMonthCalendar"),{autoFocus:r,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:f,disableFuture:p,disablePast:h,maxDate:m,minDate:g,onChange:y,shouldDisableMonth:v,readOnly:S,onMonthFocus:C,hasFocus:w,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:_,slots:D,slotProps:V}=o,N=Me(o,D7),{value:x,handleValueChange:L,timezone:R}=Ys({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:Pn}),A=ya(R),O=dn(),j=Ke(),{ownerState:B}=kt(),F=P.useMemo(()=>Pn.getInitialReferenceValue({value:x,adapter:j,props:o,timezone:R,referenceDate:d,granularity:bn.month}),[]),H=I7(l),I=P.useMemo(()=>j.getMonth(A),[j,A]),Y=P.useMemo(()=>x!=null?j.getMonth(x):null,[x,j]),[q,Z]=P.useState(()=>Y||j.getMonth(F)),[oe,K]=Qn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:r??!1}),Q=he(X=>{K(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(S)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)}),$=he(X=>{se(j.setMonth(x??a??F,X))||(Z(X),Q(!0),C&&C(X))});P.useEffect(()=>{Z(X=>Y!==null&&X!==Y?Y:X)},[Y]);const W=he((X,re)=>{switch(X.key){case"ArrowUp":$((12+re-3)%12),X.preventDefault();break;case"ArrowDown":$((12+re+3)%12),X.preventDefault();break;case"ArrowLeft":$((12+re+(O?1:-1))%12),X.preventDefault();break;case"ArrowRight":$((12+re+(O?-1:1))%12),X.preventDefault();break}}),z=he((X,re)=>{$(re)}),ee=he((X,re)=>{q===re&&Q(!1)});return b.jsx(A7,U({ref:n,className:ye(H.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=Ih(re,Y,X,x,j),me=f||se(X);return b.jsx(mb,{selected:ie,value:re,onClick:J,onKeyDown:W,autoFocus:oe&&re===q,disabled:me,tabIndex:re===q&&!me?0:-1,onFocus:z,onBlur:ee,"aria-current":Ih(re,I,X,A,j)?"date":void 0,"aria-label":ue,slots:D,slotProps:V,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 gb(e){return Pe("MuiYearCalendar",e)}const fi=Te("MuiYearCalendar",["root","button","disabled","selected"]),N7=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],_7=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Se(n,gb,e)},j7=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${fi.disabled}`]:t.disabled},{[`&.${fi.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"},[`&.${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}}})),yb=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,N7),m=P.useRef(null),{ownerState:g}=kt(),y=U({},g,{isYearDisabled:r,isYearSelected:i}),v=_7(o,y);Pt(()=>{var w;n&&((w=m.current)==null||w.focus())},[n]);const S=(f==null?void 0:f.yearButton)??j7,C=Le({elementType:S,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(S,U({},C))});process.env.NODE_ENV!=="production"&&(yb.displayName="YearCalendarButton");const L7=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],V7=e=>Se({root:["root"]},gb,e);function $7(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 F7=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:wa,maxHeight:UD,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),B7=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ld=P.forwardRef(function(t,n){const o=$7(t,"MuiYearCalendar"),{autoFocus:r,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:h,minDate:m,onChange:g,readOnly:y,shouldDisableYear:v,onYearFocus:S,hasFocus:C,onFocusedViewChange:w,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:_,slots:D,slotProps:V}=o,N=Me(o,L7),{value:x,handleValueChange:L,timezone:R}=Ys({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:Pn}),A=ya(R),O=dn(),j=Ke(),{ownerState:B}=kt(),F=P.useMemo(()=>Pn.getInitialReferenceValue({value:x,adapter:j,props:o,timezone:R,referenceDate:u,granularity:bn.year}),[]),H=V7(a),I=P.useMemo(()=>j.getYear(A),[j,A]),Y=P.useMemo(()=>x!=null?j.getYear(x):null,[x,j]),[q,Z]=P.useState(()=>Y||j.getYear(F)),[oe,K]=Qn({name:"YearCalendar",state:"hasFocus",controlled:C,default:r??!1}),Q=he(le=>{K(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)}),$=he(le=>{se(j.setYear(x??F,le))||(Z(le),Q(!0),S==null||S(le))});P.useEffect(()=>{Z(le=>Y!==null&&le!==Y?Y:le)},[Y]);const W=T!=="desc"?E*1:E*-1,z=O&&T==="asc"||!O&&T==="desc"?-1:1,ee=he((le,de)=>{switch(le.key){case"ArrowUp":$(de-W),le.preventDefault();break;case"ArrowDown":$(de+W),le.preventDefault();break;case"ArrowLeft":$(de-z),le.preventDefault();break;case"ArrowRight":$(de+z),le.preventDefault();break}}),X=he((le,de)=>{$(de)}),re=he((le,de)=>{q===de&&Q(!1)}),te=P.useRef(null),ue=Ve(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,_e=te.current.clientHeight,Oe=te.current.scrollTop,Xe=pe+de;de>_e||pe<Oe||(te.current.scrollTop=Xe-_e/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(F7,U({ref:ue,className:ye(H.root,i),ownerState:B,role:"radiogroup","aria-labelledby":_,yearsPerRow:E},N,{children:[ie.map(le=>{const de=j.getYear(le),pe=de===Y,_e=d||se(le);return b.jsx(yb,{selected:pe,value:de,onClick:J,onKeyDown:ee,autoFocus:oe&&de===q,disabled:_e,tabIndex:de===q&&!_e?0:-1,onFocus:X,onBlur:re,"aria-current":I===de?"date":void 0,slots:D,slotProps:V,classes:a,children:j.format(le,"year")},j.format(le,"year"))}),Array.from({length:me},(le,de)=>b.jsx(B7,{},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 H7=e=>Pe("MuiPickersCalendarHeader",e),z7=Te("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function W7(e){return Pe("MuiPickersArrowSwitcher",e)}Te("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const U7=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Y7=["ownerState"],q7=["ownerState"],G7=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Z7=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Rh=ae.styled(Ps,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),K7=e=>Se({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},W7,e),bb=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:S}=r,C=Me(r,U7),{ownerState:w}=kt(),T=K7(S),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},_=(l==null?void 0:l.previousIconButton)??Rh,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:U({},w,{isButtonHidden:M.isHidden??!1}),className:ye(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Rh,N=Le({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:U({},w,{isButtonHidden:E.isHidden??!1}),className:ye(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??KR,L=Le({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:T.leftArrowIcon}),R=Me(L,Y7),A=(l==null?void 0:l.rightArrowIcon)??XR,O=Le({elementType:A,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:T.rightArrowIcon}),j=Me(O,q7);return b.jsxs(G7,U({ref:n,className:ye(T.root,a),ownerState:w},C,{children:[b.jsx(_,U({},D,{children:o?b.jsx(A,U({},j)):b.jsx(x,U({},R))})),i?b.jsx(io,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(Z7,{className:T.spacer,ownerState:w}),b.jsx(V,U({},N,{children:o?b.jsx(x,U({},R)):b.jsx(A,U({},j))}))]}))});process.env.NODE_ENV!=="production"&&(bb.displayName="PickersArrowSwitcher");function X7(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ke();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function Q7(e,{disablePast:t,minDate:n,timezone:o}){const r=Ke();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const J7=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],e4=["ownerState"],t4=e=>Se({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},H7,e),n4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),o4=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})),r4=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),s4=ae.styled(Ps,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${z7.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),i4=ae.styled(ZR,{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=Ke(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:v,views:S,labelId:C,className:w,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,_=Me(i,J7),{ownerState:D}=kt(),V=t4(T),N=(a==null?void 0:a.switchViewButton)??s4,x=Le({elementType:N,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:U({},D,{view:y}),className:V.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??i4,R=Le({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:V.switchViewIcon}),A=Me(R,e4),O=()=>m(r.addMonths(c,1)),j=()=>m(r.addMonths(c,-1)),B=X7(c,{disableFuture:d,maxDate:p,timezone:E}),F=Q7(c,{disablePast:f,minDate:h,timezone:E}),H=()=>{if(!(S.length===1||!g||u))if(S.length===2)g(S.find(Y=>Y!==y)||S[0]);else{const Y=S.indexOf(y)!==0?0:1;g(S[Y])}};if(S.length===1&&S[0]==="year")return null;const I=r.formatByString(c,M);return b.jsxs(n4,U({},_,{ownerState:D,className:ye(V.root,w),ref:n,children:[b.jsxs(o4,{role:"presentation",onClick:H,ownerState:D,"aria-live":"polite",className:V.labelContainer,children:[b.jsx(lb,{reduceAnimations:v,transKey:I,children:b.jsx(r4,{id:C,ownerState:D,className:V.label,children:I})}),S.length>1&&!u&&b.jsx(N,U({},x,{children:b.jsx(L,U({},A))}))]}),b.jsx(to,{in:y==="day",appear:!v,enter:!v,children:b.jsx(bb,{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 a4=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:wa,maxHeight:Yu,display:"flex",flexDirection:"column",margin:"0 auto"}),l4=e=>Pe("MuiDateCalendar",e);Te("MuiDateCalendar",["root","viewTransitionContainer"]);const c4=["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"],u4=e=>Se({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},l4,e);function d4(e,t){const n=ae.useThemeProps({props:e,name:t}),o=b1(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 f4=ae.styled(a4,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Yu}),p4=ae.styled(lb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),ud=P.forwardRef(function(t,n){const o=Ke(),{ownerState:r}=kt(),i=ro(),a=d4(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:h,onChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:C,view:w,views:T,openTo:E,className:M,classes:_,disabled:D,readOnly:V,minDate:N,maxDate:x,disableHighlightToday:L,focusedView:R,onFocusedViewChange:A,showDaysOutsideCurrentMonth:O,fixedWeekNumber:j,dayOfWeekFormatter:B,slots:F,slotProps:H,loading:I,renderLoading:Y,displayWeekNumber:q,yearsOrder:Z,yearsPerRow:oe,monthsPerRow:K,timezone:Q}=a,se=Me(a,c4),{value:J,handleValueChange:$,timezone:W}=Ys({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:Pn}),{view:z,setView:ee,focusedView:X,setFocusedView:re,goToNextView:te,setValueAndGoToNextView:ue}=x1({view:w,views:T,openTo:E,onChange:$,onViewChange:c,autoFocus:l,focusedView:R,onFocusedViewChange:A}),{referenceDate:ie,calendarState:me,setVisibleDate:le,isDateDisabled:de,onMonthSwitchingAnimationEnd:pe}=XA({value:J,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:N,maxDate:x,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:W,getCurrentMonthFromVisibleDate:(ke,ct)=>o.isSameMonth(ke,ct)?ct:o.startOfMonth(ke)}),_e=D&&J||N,Oe=D&&J||x,Xe=`${i}-grid-label`,tt=X!==null,St=(F==null?void 0:F.calendarHeader)??cd,ht=Le({elementType:St,externalSlotProps:H==null?void 0:H.calendarHeader,additionalProps:{views:T,view:z,currentMonth:me.currentMonth,onViewChange:ee,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:_e,maxDate:Oe,disabled:D,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:W,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:W}):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:W}):ke;Dt?(ue(Dt,"finish"),le({target:Dt,reason:"cell-interaction"})):(te(),le({target:ct,reason:"cell-interaction"}))}),xe=he(ke=>$(ke&&Fi(o,ke,J??ie),"finish",z));P.useEffect(()=>{o.isValid(J)&&le({target:J,reason:"controlled-value-change"})},[J]);const $e=u4(_),Be={disablePast:h,disableFuture:p,maxDate:x,minDate:N},it={disableHighlightToday:L,readOnly:V,disabled:D,timezone:W,gridLabelId:Xe,slots:F,slotProps:H},Qe=P.useRef(z);P.useEffect(()=>{Qe.current!==z&&(X===Qe.current&&re(z,!0),Qe.current=z)},[X,re,z]);const _t=P.useMemo(()=>[J],[J]);return b.jsxs(f4,U({ref:n,className:ye($e.root,M),ownerState:r},se,{children:[b.jsx(St,U({},ht,{slots:F,slotProps:H})),b.jsx(p4,{reduceAnimations:y,className:$e.viewTransitionContainer,transKey:z,ownerState:r,children:b.jsxs("div",{children:[z==="year"&&b.jsx(ld,U({},Be,it,{value:J,onChange:we,shouldDisableYear:C,hasFocus:tt,onFocusedViewChange:ke=>re("year",ke),yearsOrder:Z,yearsPerRow:oe,referenceDate:ie})),z==="month"&&b.jsx(ad,U({},Be,it,{currentMonth:me.currentMonth,hasFocus:tt,className:M,value:J,onChange:Ee,shouldDisableMonth:S,onFocusedViewChange:ke=>re("month",ke),monthsPerRow:K,referenceDate:ie})),z==="day"&&b.jsx(E7,U({},me,Be,it,{onMonthSwitchingAnimationEnd:pe,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:_t,onSelectedDaysChange:xe,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:C,onFocusedViewChange:ke=>re("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:j,dayOfWeekFormatter:B,displayWeekNumber:q,loading:I,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:S,onMonthChange:C,monthsPerRow:w,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:_,slotProps:D,loading:V,renderLoading:N,disableHighlightToday:x,readOnly:L,disabled:R,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:O,sx:j,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:H,timezone:I})=>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:S,onMonthChange:C,monthsPerRow:w,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:_,slotProps:D,loading:V,renderLoading:N,disableHighlightToday:x,readOnly:L,disabled:R,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:O,sx:j,autoFocus:B,fixedWeekNumber:F,displayWeekNumber:H,timezone:I});process.env.NODE_ENV!=="production"&&(No.displayName="renderDateViewCalendar");const dd=P.forwardRef(function(t,n){var c;const o=Ke(),r=Gy(t,"MuiDesktopDatePicker"),i=U({day:No,month:No,year:No},r.viewRenderers),a=U({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:xu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},en((d=r.slotProps)==null?void 0:d.field,u),Uy(r))},toolbar:U({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=rI({ref:n,props:a,valueManager:Pn,valueType:"date",validator:Vs,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:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};function h4(e){return Pe("MuiDialogContent",e)}Te("MuiDialogContent",["root","dividers"]);const m4=Te("MuiDialogTitle",["root"]),g4=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},h4,t)},y4=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ze(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${m4.root} + &`]:{paddingTop:0}}}]}))),vb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=g4(l);return b.jsx(y4,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(vb.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 b4(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"]),xb=P.createContext({});process.env.NODE_ENV!=="production"&&(xb.displayName="DialogContext");const v4=be(Xu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),x4=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 Se(a,b4,t)},C4=be(Qu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),w4=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"}}}]}),S4=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]}})(Ze(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${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%"}}}]}))),Cb=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:S,open:C,PaperComponent:w=zs,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:_={},TransitionComponent:D=to,transitionDuration:V=i,TransitionProps:N,...x}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},R=x4(L),A=P.useRef(),O=ee=>{A.current=ee.target===ee.currentTarget},j=ee=>{v&&v(ee),A.current&&(A.current=null,S&&S(ee,"backdropClick"))},B=ro(l),F=P.useMemo(()=>({titleId:B}),[B]),H={transition:D,...M},I={transition:N,paper:T,backdrop:d,..._},Y={slots:H,slotProps:I},[q,Z]=st("root",{elementType:C4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(R.root,p),ref:n}),[oe,K]=st("backdrop",{elementType:v4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:R.backdrop}),[Q,se]=st("paper",{elementType:S4,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(R.paper,T.className)}),[J,$]=st("container",{elementType:w4,externalForwardedProps:Y,ownerState:L,className:R.container}),[W,z]=st("transition",{elementType:to,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:C,timeout:V,role:"presentation"}});return b.jsx(q,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:V,as:u,...K}},disableEscapeKeyDown:h,onClose:S,open:C,onClick:j,...Z,...x,children:b.jsx(W,{...z,children:b.jsx(J,{onMouseDown:O,...$,children:b.jsx(Q,{as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B,"aria-modal":c,...se,children:b.jsx(xb.Provider,{value:F,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Cb.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 T4=ae.styled(Cb,{slot:"internal"})({[`& .${us.container}`]:{outline:0},[`& .${us.paper}`]:{outline:0,minWidth:wa}}),P4=ae.styled(vb,{slot:"internal"})({"&:first-of-type":{padding:0}});function E4(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Tr(),{dismissViews:i,onPopperExited:a}=kt(),l=(n==null?void 0:n.dialog)??T4,c=(n==null?void 0:n.mobileTransition)??to;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(P4,{children:t})}))}const M4=["props","steps"],O4=["ownerState"],k4=e=>{var E;let{props:t,steps:n}=e,o=Me(e,M4);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=_1({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=w1(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=Me(y,O4),S=r.layout??Sa;let C=h;m&&(a?C=`${h}-label`:C=void 0);const w=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:U({"aria-labelledby":C},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(Fy,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},w,v.slotProps),inputRef:l})),b.jsx(E4,{slots:r,slotProps:w,children:b.jsx(S,U({},w==null?void 0:w.layout,{slots:r,slotProps:w,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},fd=P.forwardRef(function(t,n){var c;const o=Ke(),r=Gy(t,"MuiMobileDatePicker"),i=U({day:No,month:No,year:No},r.viewRenderers),a=U({},r,{viewRenderers:i,format:xu(o,r,!1),slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},en((d=r.slotProps)==null?void 0:d.field,u),Uy(r))},toolbar:U({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=k4({ref:n,props:a,valueManager:Pn,valueType:"date",validator:Vs,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:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const D4=["desktopModeMediaQuery"],pd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=_k}=o,i=Me(o,D4);return Ny(r,{defaultMatches:!0})?b.jsx(dd,U({ref:n},i)):b.jsx(fd,U({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:wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});var wb={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,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var A=["th","st","nd","rd"],O=R%100;return"["+R+(A[(O-20)%10]||A[O]||A[0])+"]"}},C=function(R,A,O){var j=String(R);return!j||j.length>=A?R:""+Array(A+1-j.length).join(O)+R},w={s:C,z:function(R){var A=-R.utcOffset(),O=Math.abs(A),j=Math.floor(O/60),B=O%60;return(A<=0?"+":"-")+C(j,2,"0")+":"+C(B,2,"0")},m:function R(A,O){if(A.date()<O.date())return-R(O,A);var j=12*(O.year()-A.year())+(O.month()-A.month()),B=A.clone().add(j,f),F=O-B<0,H=A.clone().add(j+(F?-1:1),f);return+(-(j+(O-B)/(F?B-H:H-B))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},T="en",E={};E[T]=S;var M="$isDayjsObject",_=function(R){return R instanceof x||!(!R||!R[M])},D=function R(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 H=A.split("-");if(!B&&H.length>1)return R(H[0])}else{var I=A.name;E[I]=A,B=I}return!j&&B&&(T=B),B||!j&&T},V=function(R,A){if(_(R))return R.clone();var O=typeof A=="object"?A:{};return O.date=R,O.args=arguments,new x(O)},N=w;N.l=D,N.i=_,N.w=function(R,A){return V(R,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var x=function(){function R(O){this.$L=D(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var A=R.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 H=B.match(y);if(H){var I=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return F?new Date(Date.UTC(H[1],I,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)):new Date(H[1],I,H[3]||1,H[4]||0,H[5]||0,H[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=V(O);return this.startOf(j)<=B&&B<=this.endOf(j)},A.isAfter=function(O,j){return V(O)<this.startOf(j)},A.isBefore=function(O,j){return this.endOf(j)<V(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,H=N.p(O),I=function(J,$){var W=N.w(B.$u?Date.UTC(B.$y,$,J):new Date(B.$y,$,J),B);return F?W:W.endOf(u)},Y=function(J,$){return N.w(B.toDate()[J].apply(B.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice($)),B)},q=this.$W,Z=this.$M,oe=this.$D,K="set"+(this.$u?"UTC":"");switch(H){case h:return F?I(1,0):I(31,11);case f:return F?I(1,Z):I(0,Z+1);case d:var Q=this.$locale().weekStart||0,se=(q<Q?q+7:q)-Q;return I(F?oe-se:oe+(6-se),Z);case u:case m:return Y(K+"Hours",0);case c:return Y(K+"Minutes",1);case l:return Y(K+"Seconds",2);case a:return Y(K+"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),H="set"+(this.$u?"UTC":""),I=(B={},B[u]=H+"Date",B[m]=H+"Date",B[f]=H+"Month",B[h]=H+"FullYear",B[c]=H+"Hours",B[l]=H+"Minutes",B[a]=H+"Seconds",B[i]=H+"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[I](Y),q.init(),this.$d=q.set(m,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](Y);return this.init(),this},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 H=N.p(j),I=function(Z){var oe=V(F);return N.w(oe.date(oe.date()+Math.round(Z*O)),F)};if(H===f)return this.set(f,this.$M+O);if(H===h)return this.set(h,this.$y+O);if(H===u)return I(1);if(H===d)return I(7);var Y=(B={},B[l]=o,B[c]=r,B[a]=n,B)[H]||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",H=N.z(this),I=this.$H,Y=this.$m,q=this.$M,Z=B.weekdays,oe=B.months,K=B.meridiem,Q=function($,W,z,ee){return $&&($[W]||$(j,F))||z[W].slice(0,ee)},se=function($){return N.s(I%12||12,$,"0")},J=K||function($,W,z){var ee=$<12?"AM":"PM";return z?ee.toLowerCase():ee};return F.replace(v,function($,W){return W||function(z){switch(z){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,Z,2);case"ddd":return Q(B.weekdaysShort,j.$W,Z,3);case"dddd":return Z[j.$W];case"H":return String(I);case"HH":return N.s(I,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return J(I,Y,!0);case"A":return J(I,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 H}return null}($)||H.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(O,j,B){var F,H=this,I=N.p(j),Y=V(O),q=(Y.utcOffset()-this.utcOffset())*o,Z=this-Y,oe=function(){return N.m(H,Y)};switch(I){case h:F=oe()/12;break;case f:F=oe();break;case p:F=oe()/3;break;case d:F=(Z-q)/6048e5;break;case u:F=(Z-q)/864e5;break;case c:F=Z/r;break;case l:F=Z/o;break;case a:F=Z/n;break;default:F=Z}return 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()},R}(),L=x.prototype;return V.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(R){L[R[1]]=function(A){return this.$g(A,R[0],R[1])}}),V.extend=function(R,A){return R.$i||(R(A,x,V),R.$i=!0),V},V.locale=D,V.isDayjs=_,V.unix=function(R){return V(1e3*R)},V.en=E[T],V.Ls=E,V.p={},V})})(wb);var I4=wb.exports;const vt=no(I4);var Sb={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)}}})})(Sb);var R4=Sb.exports;const A4=no(R4);var Tb={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 S=v.match(/([+-]|\d\d)/g),C=60*S[1]+(+S[2]||0);return C===0?0:S[0]==="+"?-C:C}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var S,C=c.meridiem;if(C){for(var w=1;w<=24;w+=1)if(y.indexOf(C(w,0,v))>-1){S=w>12;break}}else S=y===(v?"pm":"PM");return S},m={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[r,function(y){this.month=3*(y-1)+1}],S:[r,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var v=c.ordinal,S=y.match(/\d+/);if(this.day=S[0],v)for(var C=1;C<=31;C+=1)v(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),S=(p("monthsShort")||v.map(function(C){return C.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var v=p("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var v,S;v=y,S=c&&c.formats;for(var C=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,N,x){var L=x&&x.toUpperCase();return N||S[x]||n[x]||S[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,A,O){return A||O.slice(1)})})).match(o),w=C.length,T=0;T<w;T+=1){var E=C[T],M=m[E],_=M&&M[0],D=M&&M[1];C[T]=D?{regex:_,parser:D}:E.replace(/^\[|\]$/g,"")}return function(V){for(var N={},x=0,L=0;x<w;x+=1){var R=C[x];if(typeof R=="string")L+=R.length;else{var A=R.regex,O=R.parser,j=V.slice(L),B=A.exec(j)[0];O.call(N,B),V=V.replace(B,"")}}return function(F){var H=F.afternoon;if(H!==void 0){var I=F.hours;H?I<12&&(F.hours+=12):I===12&&(F.hours=0),delete F.afternoon}}(N),N}}return function(y,v,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var C=v.prototype,w=C.parse;C.parse=function(T){var E=T.date,M=T.utc,_=T.args;this.$u=M;var D=_[1];if(typeof D=="string"){var V=_[2]===!0,N=_[3]===!0,x=V||N,L=_[2];N&&(L=_[2]),c=this.$locale(),!V&&L&&(c=S.Ls[L]),this.$d=function(j,B,F,H){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*j);var I=g(B)(j),Y=I.year,q=I.month,Z=I.day,oe=I.hours,K=I.minutes,Q=I.seconds,se=I.milliseconds,J=I.zone,$=I.week,W=new Date,z=Z||(Y||q?1:W.getDate()),ee=Y||W.getFullYear(),X=0;Y&&!q||(X=q>0?q-1:W.getMonth());var re,te=oe||0,ue=K||0,ie=Q||0,me=se||0;return J?new Date(Date.UTC(ee,X,z,te,ue,ie,me+60*J.offset*1e3)):F?new Date(Date.UTC(ee,X,z,te,ue,ie,me)):(re=new Date(ee,X,z,te,ue,ie,me),$&&(re=H(re).week($).toDate()),re)}catch{return new Date("")}}(E,D,M,S),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),x&&E!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var R=D.length,A=1;A<=R;A+=1){_[1]=D[A-1];var O=S.apply(this,_);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}A===R&&(this.$d=new Date(""))}else w.call(this,T)}}})})(Tb);var N4=Tb.exports;const _4=no(N4);var Pb={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,S,C){return S||C.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Pb);var j4=Pb.exports;const L4=no(j4);var Eb={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))}}})})(Eb);var V4=Eb.exports;const $4=no(V4);var Mb={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)}}})})(Mb);var F4=Mb.exports;const B4=no(F4);vt.extend(L4);vt.extend(A4);vt.extend($4);vt.extend(B4);const H4={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"},z4={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
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 W4{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",z4);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof xt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof xt.tz<"u");fe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});fe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return xt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=xt.tz.guess();o==="UTC"?n=xt(t):n=xt.tz(t,o)}else n=xt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(Sl);return this.setLocaleToValue(xt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Sl);if(!this.hasTimezonePlugin())throw new Error(Ah);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(xt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=xt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&C1(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});fe(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});fe(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));fe(this,"getInvalidDate",()=>xt(new Date("Invalid date")));fe(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});fe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(Sl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Ah)}return this.setLocaleToValue(xt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:xt(t,n,this.locale,!0));fe(this,"getCurrentLocaleCode",()=>this.locale||"en");fe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));fe(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});fe(this,"isValid",t=>t==null?!1:t.isValid());fe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));fe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));fe(this,"formatNumber",t=>t);fe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());fe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));fe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));fe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));fe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));fe(this,"isAfter",(t,n)=>t>n);fe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));fe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));fe(this,"isBefore",(t,n)=>t<n);fe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));fe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));fe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);fe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));fe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));fe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));fe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));fe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));fe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));fe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));fe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));fe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));fe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));fe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));fe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));fe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));fe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));fe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));fe(this,"getYear",t=>t.year());fe(this,"getMonth",t=>t.month());fe(this,"getDate",t=>t.date());fe(this,"getHours",t=>t.hour());fe(this,"getMinutes",t=>t.minute());fe(this,"getSeconds",t=>t.second());fe(this,"getMilliseconds",t=>t.millisecond());fe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));fe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));fe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));fe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));fe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));fe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));fe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));fe(this,"getDaysInMonth",t=>t.daysInMonth());fe(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let r=0,i=n;const a=[];for(;i<o;){const l=Math.floor(r/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),r+=1}return a});fe(this,"getWeekNumber",t=>t.week());fe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=U({},H4,n),xt.extend(_4)}getDayOfWeek(t){return t.day()+1}}const U4="_root_1dntq_1",Y4="_container_1dntq_72",q4="_header_1dntq_83",G4="_headerText_1dntq_91",K4="_headerTitle_1dntq_97",Z4="_headerSubtitle_1dntq_102",X4="_controls_1dntq_106",Q4="_headerButton_1dntq_113",J4="_zoomGroup_1dntq_133",eN="_zoomLabel_1dntq_144",tN="_tracksWrapper_1dntq_153",nN="_tracksWithHeader_1dntq_158",oN="_layers_1dntq_162",rN="_timeScale_1dntq_168",sN="_videoTrack_1dntq_172",iN="_eventsTrack_1dntq_176",aN="_trackBox_1dntq_180",lN="_trackLabelRow_1dntq_190",cN="_label_1dntq_198",uN="_trackArea_1dntq_209",dN="_tick_1dntq_215",fN="_tickMajor_1dntq_223",pN="_tickMinor_1dntq_227",hN="_tickLabel_1dntq_231",mN="_segment_1dntq_243",gN="_event_1dntq_176",yN="_eventDot_1dntq_276",bN="_selectionOverlay_1dntq_283",vN="_playhead_1dntq_292",xN="_playheadLine_1dntq_302",CN="_playheadHandle_1dntq_312",Ae={root:U4,container:Y4,header:q4,headerText:G4,headerTitle:K4,headerSubtitle:Z4,controls:X4,headerButton:Q4,zoomGroup:J4,zoomLabel:eN,tracksWrapper:tN,tracksWithHeader:nN,layers:oN,timeScale:rN,videoTrack:sN,eventsTrack:iN,trackBox:aN,trackLabelRow:lN,label:cN,trackArea:uN,tick:dN,tickMajor:fN,tickMinor:pN,tickLabel:hN,segment:mN,event:gN,eventDot:yN,selectionOverlay:bN,playhead:vN,playheadLine:xN,playheadHandle:CN};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 SN(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`${SN(t.getFullYear())}${rt(t.getMonth()+1)}${rt(t.getDate())}T${rt(o)}${rt(r)}${rt(i)}Z`}function wN(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function wl(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 TN(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 PN(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 EN(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 MN=(e,t,n)=>t>=3600?wl(e).slice(0,2)+":00:00":t>=60?wl(e).slice(0,5):t>=1?wl(e):TN(e,n),ON=(e,t,n)=>t>=3600||t>=60||t>=1?Tl(e):PN(e,n);function kN(){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 DN(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,w]=k.useState({windowSeconds:t,fps:d}),{ref:C,width:S}=kN(),T=102,M=Math.max(0,S-T-10),[_,D]=k.useState(0),V=k.useMemo(()=>{const $=Math.max(1/Math.max(1,v.fps),.05);return ot(v.windowSeconds,$,t)},[v.windowSeconds,v.fps,t]);k.useEffect(()=>{if(!h||S<=0)return;const $=ot(f-V*.9,0,Math.max(0,t-V));D($)},[f,h,S,V,t]);const N=k.useMemo(()=>{const $=ot(_,0,Math.max(0,t-V)),W=$+V;return{start:$,end:W,seconds:V}},[_,t,V]),x=k.useMemo(()=>{if(M<=0)return[];const{majorStep:$,minorStep:W}=EN({width:M,windowSeconds:N.seconds,fps:v.fps}),H=Math.floor(N.start/W)*W,ee=N.end,X=[],re=W*1e-6;for(let te=H;te<=ee+re;te+=W){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/$-Math.round(te/$))<1e-6;X.push({time:te,px:ue,kind:ie?"major":"minor",label:ie?r(te,$,v.fps):void 0})}return X},[M,r,N.end,N.seconds,N.start,v.fps]),L=k.useRef(l);L.current=l;const R=k.useRef(a);R.current=a;const A=k.useCallback(($,W)=>{const H=L.current;if(!H)return;const ee=R.current;H({startDate:Nh($,ee),endDate:Nh(W,ee)})},[]),O=k.useRef(null),j=k.useRef(null),B=$=>{j.current=$,O.current==null&&(O.current=requestAnimationFrame(()=>{O.current=null;const W=j.current;j.current=null,W==null||W()}))};k.useEffect(()=>()=>{O.current!=null&&cancelAnimationFrame(O.current)},[]);const F=k.useRef(null),z=$=>{const W=C.current;if(!W)return 0;const H=W.getBoundingClientRect();return ot($-H.left-T,0,M)};return{viewportRef:C,width:S,axisLeft:T,axisWidth:M,totalSeconds:t,zoom:v,setZoom:w,isLive:h,setIsLive:m,currentTime:f,selectedRange:g,setSelectedRange:y,videoSegments:c,events:u,view:N,ticks:x,onWheel:$=>{if(!n||S<=0)return;$.preventDefault(),m(!1);const W=z($.clientX),H=ot(Zo({px:W,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t),X=$.deltaY<0?.8:1.25,re=ot(N.seconds*X,Math.max(1/Math.max(1,v.fps),.05),t),te=ot(H-W/Math.max(1,M)*re,0,Math.max(0,t-re));w(ue=>({...ue,windowSeconds:re})),D(te)},onPointerDownScrub:$=>{if($.button!==0)return;const W=C.current;if(!W)return;W.setPointerCapture($.pointerId);const H=z($.clientX),ee=ot(Zo({px:H,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"playhead",pointerId:$.pointerId,startPx:H,startTime:ee},p(ee)},onPointerDownSelect:$=>{if($.button!==0)return;const W=C.current;if(!W)return;W.setPointerCapture($.pointerId);const H=z($.clientX),ee=ot(Zo({px:H,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"select",pointerId:$.pointerId,startPx:H,startTime:ee},y({start:ee,end:ee})},onPointerDownPlayhead:$=>{if($.button!==0)return;const W=C.current;if(!W)return;W.setPointerCapture($.pointerId);const H=z($.clientX),ee=ot(Zo({px:H,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"playhead",pointerId:$.pointerId,startPx:H,startTime:ee},p(ee)},onPointerMove:$=>{const W=F.current;if(!W||W.pointerId!==$.pointerId)return;const H=z($.clientX);B(()=>{const ee=ot(Zo({px:H,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);if(W.mode==="playhead")p(ee);else{const X=Math.min(W.startTime,ee),re=Math.max(W.startTime,ee);y({start:X,end:re})}})},onPointerUp:$=>{const W=F.current;if(!(!W||W.pointerId!==$.pointerId)&&(F.current=null,W.mode==="select"&&g)){const H=Math.abs(g.end-g.start);if(H<Math.max(1/Math.max(1,v.fps),.1))y(null);else if(A(g.start,g.end),o){const ee=ot(H*1.05,Math.max(1/Math.max(1,v.fps),.05),t),X=ot(g.start,0,Math.max(0,t-ee));w(re=>({...re,windowSeconds:ee})),D(X)}}},onClickSegment:($,W)=>{m(!1);const H=ot($,0,t);p(H),A(W.start,W.end)},onClickEvent:$=>{i&&y(null),m(!1);const W=ot($,0,t);p(W),A(W,W),D(ot($-N.seconds/2,0,Math.max(0,t-N.seconds)))},resetView:()=>{m(!1),w($=>({...$,windowSeconds:t})),D(0)}}}const Ob=({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}`))});Ob.displayName="TimeScale";const kb=({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}`)})})};kb.displayName="VideoTrack";const Db=({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)})})};Db.displayName="EventsTrack";const Ib=({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:w="Eventos",downloadLabel:C="Baixar vídeo",onChangePeriod:S,onSegmentClick:T,onEventClick:E,segments:M,events:_,...D})=>{const N=ae.useTheme().palette.mode==="dark",[x,L]=k.useState(!1),R=a??(i==="duration"?ON:MN),{viewportRef:A,axisLeft:O,axisWidth:j,zoom:B,currentTime:F,selectedRange:z,videoSegments:I,events:Y,view:q,ticks:K,onWheel:oe,onPointerDownScrub:Z,onPointerDownSelect:Q,onPointerDownPlayhead:se,onPointerMove:J,onPointerUp:$,onClickSegment:W,onClickEvent:H,setZoom:ee}=DN({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:R,clearSelectionOnEventClick:h,date:g??new Date,onChangePeriod:S,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(_e=>({..._e,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":C,children:[b.jsx(L6,{fontSize:"small"}),C]}):null,g!==void 0?b.jsx(ma,{dateAdapter:W4,children:b.jsx(pd,{open:x,onOpen:()=>L(!0),onClose:()=>L(!1),value:xt(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(V6,{fontSize:"small"}),xt(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(j6,{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(_6,{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:$,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(Ob,{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(kb,{segments:I,viewStart:q.start,viewSeconds:q.seconds,width:j,totalSeconds:l,onClickSegment:(le,de)=>{W(le,de),T==null||T(le,de)}})})]}),b.jsxs("div",{className:`${Ae.trackLabelRow} ${Ae.eventsTrack}`.trim(),children:[b.jsx("div",{className:Ae.label,children:w}),b.jsx("div",{onPointerDown:p?Z:void 0,style:{height:"100%"},children:b.jsx(Db,{events:Y,viewStart:q.start,viewSeconds:q.seconds,width:j,totalSeconds:l,onClickEvent:(le,de)=>{H(le),E==null||E(le,de)}})})]})]})]})})]})};Ib.displayName="VideoTimeline";const IN=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=yu(),[a,l]=$i(Oy),[c,u]=$i(ky),d=My(YE),f=k.useRef(-1);return k.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(wN()),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},Rb=({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:w,height:C,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:_,borderRadius:D,loading:V,unavailable:N,unavailableIcon:x,unavailableMessage:L})=>{const R=!!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:w,height:C,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:_,borderRadius:D,loading:V,unavailable:N,unavailableIcon:x,unavailableMessage:L}),b.jsx(IN,{isStream:R,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Rb.displayName="VideoPlayerWebRTC";const RN=bt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),AN="_container_1vjy6_1",NN="_segment_1vjy6_7",_N="_selected_1vjy6_20",jN="_label_1vjy6_28",LN="_icon_1vjy6_37",VN="_checkIcon_1vjy6_47",$N="_unselected_1vjy6_53",xo={container:AN,segment:NN,selected:_N,label:jN,icon:LN,checkIcon:VN,unselected:$N},Ab=({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(RN,{className:xo.checkIcon})}),b.jsx(G.Box,{className:xo.label,children:l.label})]},c))})};Ab.displayName="DisplayTypes";const FN=600,Pl=[.32,.72,0,1],El=400,Nb=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=FN,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})]})};Nb.displayName="SplitLayout";const BN=256,_b=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=BN,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})};_b.displayName="ResponsiveGrid";const jb=bt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var zN=e=>e.type==="checkbox",Jr=e=>e instanceof Date,hd=e=>e==null;const Lb=e=>typeof e=="object";var Vo=e=>!hd(e)&&!Array.isArray(e)&&Lb(e)&&!Jr(e),HN=e=>Vo(e)&&e.target?zN(e.target)?e.target.checked:e.target.value:e,WN=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,UN=(e,t)=>e.has(WN(t)),YN=e=>{const t=e.constructor&&e.constructor.prototype;return Vo(t)&&t.hasOwnProperty("isPrototypeOf")},qN=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vb(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(qN&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Vo(e)&&YN(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Vb(e[r]));return o}var $b=e=>/^\w*$/.test(e),Pc=e=>e===void 0,GN=e=>Array.isArray(e)?e.filter(Boolean):[],Fb=e=>GN(e.replace(/["|']|\]/g,"").split(/\.|\[/)),$t=(e,t,n)=>{if(!t||!Vo(e))return n;const o=($b(t)?[t]:Fb(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=$b(t)?[t]:Fb(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=Vo(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"},Bb=k.createContext(null);Bb.displayName="HookFormControlContext";const md=()=>k.useContext(Bb);var KN=(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 zb=typeof window<"u"?k.useLayoutEffect:k.useEffect;function ZN(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 zb(()=>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(()=>KN(a,n,c.current,!1),[a,n])}var XN=e=>typeof e=="string",Vh=(e,t,n,o,r)=>XN(e)?$t(n,e,r):Array.isArray(e)?e.map(i=>$t(n,i)):n,$h=e=>hd(e)||!Lb(e);function wi(e,t,n=new WeakSet){if($h(e)||$h(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)||Vo(a)&&Vo(l)||Array.isArray(a)&&Array.isArray(l)?!wi(a,l,n):!Object.is(a,l))return!1}}return!0}function QN(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 S=n._getWatch(o,c.current);return u.current?u.current(S):S}),g=k.useCallback(S=>{const T=Vh(o,n._names,S||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=k.useCallback(S=>{if(!i){const T=Vh(o,n._names,S||n._formValues,!1,c.current);if(u.current){const E=u.current(T);wi(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);zb(()=>((f.current!==n||!wi(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]),k.useEffect(()=>n._removeUnmounted());const v=f.current!==n,w=p.current,C=k.useMemo(()=>{if(i)return null;const S=!v&&!wi(w,o);return v||S?g():null},[i,v,o,w,g]);return C!==null?C:h}function JN(e){const t=md(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=UN(r._names.array,n),u=k.useMemo(()=>$t(r._formValues,n,$t(r._defaultValues,n,a)),[r,n,a]),d=QN({control:r,name:n,defaultValue:u,exact:l}),f=ZN({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:()=>!!$t(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!$t(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$t(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$t(f.validatingFields,n)},error:{enumerable:!0,get:()=>$t(f.errors,n)}}),[f,n]),y=k.useCallback(S=>m.current.onChange({target:{value:HN(S),name:n},type:jh.CHANGE}),[n]),v=k.useCallback(()=>m.current.onBlur({target:{value:$t(r._formValues,n),name:n},type:jh.BLUR}),[n,r._formValues]),w=k.useCallback(S=>{const T=$t(r._fields,n);T&&T._f&&S&&(T._f.ref={focus:()=>pi(S.focus)&&S.focus(),select:()=>pi(S.select)&&S.select(),setCustomValidity:E=>pi(S.setCustomValidity)&&S.setCustomValidity(E),reportValidity:()=>pi(S.reportValidity)&&S.reportValidity()})},[r._fields,n]),C=k.useMemo(()=>({name:n,value:d,...Ml(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:w}),[n,o,f.disabled,y,v,w,d]);return k.useEffect(()=>{const S=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=$t(r._fields,M);D&&D._f&&(D._f.mount=_)};if(E(n,!0),S){const M=Vb($t(r._options.defaultValues,n,p.current.defaultValue));_h(r._defaultValues,n,M),Pc($t(r._formValues,n))&&_h(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]),k.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),k.useMemo(()=>({field:C,formState:f,fieldState:g}),[C,f,g])}const gd=e=>e.render(JN(e)),e_=k.createContext(null);e_.displayName="HookFormContext";const t_="_formSelect_s09hu_1",n_="_labelWrapper_s09hu_5",o_="_inputLabel_s09hu_9",r_="_placeholder_s09hu_75",s_="_helperText_s09hu_121",Co={formSelect:t_,labelWrapper:n_,inputLabel:o_,placeholder:r_,helperText:s_},Hb=({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 C;const y=!!g.error,v=y||!!i,w=y?(C=g.error)==null?void 0:C.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(G.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(G.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(G.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(G.MenuItem,{value:S.value,disabled:S.disabled,children:[T&&b.jsx(G.ListItemIcon,{sx:{minWidth:20},children:b.jsx(jb,{sx:{fontSize:20}})}),S.label]},String(S.value))})]}),v&&b.jsx(G.FormHelperText,{className:Co.helperText,children:w})]})]})}})};Hb.displayName="FormSelect";const i_="_formMultiSelect_1d6fa_1",a_="_labelWrapper_1d6fa_5",l_="_inputLabel_1d6fa_9",c_="_placeholder_1d6fa_75",u_="_helperText_1d6fa_124",d_="_chipsContainer_1d6fa_153",f_="_chip_1d6fa_153",Dn={formMultiSelect:i_,labelWrapper:a_,inputLabel:l_,placeholder:c_,helperText:u_,chipsContainer:d_,chip:f_},Wb=({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 w=G.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:C,fieldState:S})=>{var N;const T=!!S.error,E=T||!!i,M=T?(N=S.error)==null?void 0:N.message:i,_=Array.isArray(C.value)?C.value:[];_.length>0;const V=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,R=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))}),R>0&&b.jsx(G.Chip,{label:`+${R}`,size:"small",variant:u,className:Dn.chip})]})});return b.jsxs("div",{className:`${Dn.formMultiSelect} ${p||""}`,"data-theme":w?"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,{...C,...y,variant:"outlined",multiple:!0,value:_,onChange:x=>{C.onChange(x.target.value)},displayEmpty:!!r,renderValue:V,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)",...w?{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",...w?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...w?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...w?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...w?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...w?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...w?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...w?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:w?"#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(jb,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),E&&b.jsx(G.FormHelperText,{className:Dn.helperText,children:M})]})]})}})};Wb.displayName="FormMultiSelect";const Ub=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"})),Yb=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"})),p_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"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"})),h_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 2.09961L1 12H4V21H11V15H13V21H20V12H23L12 2.09961Z",fill:"currentColor"})),m_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M5.33335 26.6667C4.60002 26.6667 3.96669 26.4112 3.43335 25.9C2.92224 25.3667 2.66669 24.7334 2.66669 24V8.00004C2.66669 7.26671 2.92224 6.64449 3.43335 6.13337C3.96669 5.60004 4.60002 5.33337 5.33335 5.33337H21.3334C22.0667 5.33337 22.6889 5.60004 23.2 6.13337C23.7334 6.64449 24 7.26671 24 8.00004V14L29.3334 8.66671V23.3334L24 18V24C24 24.7334 23.7334 25.3667 23.2 25.9C22.6889 26.4112 22.0667 26.6667 21.3334 26.6667H5.33335ZM5.33335 24H21.3334V8.00004H5.33335V24ZM5.33335 24V8.00004V24Z",fill:"currentColor"})),g_=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:"currentColor"}),P.createElement("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:"currentColor"})),y_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3.99998 26.3333C3.99998 27.2543 4.74571 28 5.66665 28H9.99998V30.6666H5.66665C3.27295 30.6666 1.33331 28.727 1.33331 26.3333V22H3.99998V26.3333ZM30.6666 26.3333C30.6666 28.727 28.727 30.6666 26.3333 30.6666H22V28H26.3333C27.2543 28 28 27.2543 28 26.3333V22H30.6666V26.3333ZM25.3333 7.99998H15.7331L14.3997 12H25.3333V14.6666H13.3333V21.3333H25.3333V24H14.6666V25.3333C14.6666 26 14.1333 26.6666 13.3333 26.6666H12C11.3333 26.6666 10.6666 26 10.6666 25.3333V14.6666L13.4661 6.66665C13.7328 5.86665 14.4 5.33331 15.3333 5.33331H25.3333V7.99998ZM16.6666 16C17.7333 16 18.6666 16.9333 18.6666 18C18.6666 19.0666 17.7333 20 16.6666 20C15.6 20 14.6666 19.0666 14.6666 18C14.6666 16.9333 15.6 16 16.6666 16ZM9.99998 3.99998H5.66665C4.74569 3.99998 3.99998 4.74569 3.99998 5.66665V9.99998H1.33331V5.66665C1.33331 3.27293 3.27293 1.33331 5.66665 1.33331H9.99998V3.99998ZM26.3333 1.33331C28.727 1.33331 30.6666 3.27293 30.6666 5.66665V9.99998H28V5.66665C28 4.74569 27.2543 3.99998 26.3333 3.99998H22V1.33331H26.3333Z",fill:"currentColor"})),b_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 22C11.0667 22 10.2778 21.6778 9.63333 21.0334C8.98889 20.3889 8.66667 19.6 8.66667 18.6667C8.66667 17.7334 8.98889 16.9445 9.63333 16.3C10.2778 15.6556 11.0667 15.3334 12 15.3334C12.9333 15.3334 13.7222 15.6556 14.3667 16.3C15.0111 16.9445 15.3333 17.7334 15.3333 18.6667C15.3333 19.6 15.0111 20.3889 14.3667 21.0334C13.7222 21.6778 12.9333 22 12 22ZM6.66667 29.3334C5.93333 29.3334 5.30556 29.0722 4.78333 28.55C4.26111 28.0278 4 27.4 4 26.6667V8.00002C4 7.26669 4.26111 6.63891 4.78333 6.11669C5.30556 5.59446 5.93333 5.33335 6.66667 5.33335H8V2.66669H10.6667V5.33335H21.3333V2.66669H24V5.33335H25.3333C26.0667 5.33335 26.6944 5.59446 27.2167 6.11669C27.7389 6.63891 28 7.26669 28 8.00002V26.6667C28 27.4 27.7389 28.0278 27.2167 28.55C26.6944 29.0722 26.0667 29.3334 25.3333 29.3334H6.66667ZM6.66667 26.6667H25.3333V13.3334H6.66667V26.6667Z",fill:"currentColor"})),v_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V6.66667H6.66667V25.3333ZM8 22.6667H24L19 16L15 21.3333L12 17.3333L8 22.6667ZM6.66667 25.3333V6.66667V25.3333Z",fill:"currentColor"})),x_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3 19.75C3 20.4407 3.55928 21 4.25 21H7.5V23H4.25C2.45472 23 1 21.5453 1 19.75V16.5H3V19.75ZM23 19.75C23 21.5453 21.5453 23 19.75 23H16.5V21H19.75C20.4407 21 21 20.4407 21 19.75V16.5H23V19.75ZM18.8467 8.46973C19.061 8.25522 19.3838 8.19085 19.6641 8.30664C19.9444 8.42269 20.1279 8.6966 20.1279 9V14.002C20.1279 14.416 19.7919 14.7517 19.3779 14.752C18.9638 14.7519 18.6279 14.4161 18.6279 14.002V10.8076C18.3336 11.0722 17.881 11.0643 17.5977 10.7812C17.3047 10.4885 17.305 10.0137 17.5977 9.7207L18.8467 8.46973ZM15.1064 8.25781C15.3516 8.29292 15.5664 8.44755 15.6758 8.6748C15.8007 8.93465 15.766 9.24362 15.5859 9.46875L12.5605 13.25H15C15.4142 13.25 15.75 13.5858 15.75 14C15.75 14.4142 15.4142 14.75 15 14.75H11C10.7118 14.75 10.4492 14.5849 10.3242 14.3252C10.1993 14.0653 10.234 13.7564 10.4141 13.5312L13.4395 9.75H11C10.5858 9.75 10.25 9.41421 10.25 9C10.25 8.58579 10.5858 8.25 11 8.25H15L15.1064 8.25781ZM7 8.25977C7.27423 8.30412 7.50603 8.49803 7.59375 8.76855L9.21387 13.7686C9.34152 14.1626 9.1254 14.5861 8.73145 14.7139C8.33744 14.8415 7.91386 14.6254 7.78613 14.2314L7.62988 13.75H4.87012L4.71387 14.2314C4.58614 14.6254 4.16256 14.8415 3.76855 14.7139C3.3746 14.5861 3.15848 14.1626 3.28613 13.7686L3.58105 12.8555C3.59232 12.7977 3.61106 12.7426 3.63477 12.6904L4.90625 8.76855L4.95215 8.6582C5.07878 8.41056 5.3354 8.25 5.62012 8.25H6.87988L7 8.25977ZM5.35547 12.25H7.14453L6.33496 9.75H6.16504L5.35547 12.25ZM7.5 3H4.25C3.55928 3 3 3.55928 3 4.25V7.5H1V4.25C1 2.45472 2.45472 1 4.25 1H7.5V3ZM19.75 1C21.5453 1 23 2.45472 23 4.25V7.5H21V4.25C21 3.55928 20.4407 3 19.75 3H16.5V1H19.75Z",fill:"currentColor"})),C_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12.3333 29.3334L11.8 25.0667C11.5111 24.9556 11.2389 24.8222 10.9833 24.6667C10.7278 24.5111 10.4778 24.3445 10.2333 24.1667L6.26664 25.8334L2.59998 19.5L6.03331 16.9C6.01109 16.7445 5.99998 16.5945 5.99998 16.45V15.55C5.99998 15.4056 6.01109 15.2556 6.03331 15.1L2.59998 12.5L6.26664 6.16669L10.2333 7.83335C10.4778 7.65558 10.7333 7.48891 11 7.33335C11.2666 7.1778 11.5333 7.04446 11.8 6.93335L12.3333 2.66669H19.6666L20.2 6.93335C20.4889 7.04446 20.7611 7.1778 21.0166 7.33335C21.2722 7.48891 21.5222 7.65558 21.7666 7.83335L25.7333 6.16669L29.4 12.5L25.9666 15.1C25.9889 15.2556 26 15.4056 26 15.55V16.45C26 16.5945 25.9778 16.7445 25.9333 16.9L29.3666 19.5L25.7 25.8334L21.7666 24.1667C21.5222 24.3445 21.2666 24.5111 21 24.6667C20.7333 24.8222 20.4666 24.9556 20.2 25.0667L19.6666 29.3334H12.3333ZM14.6666 26.6667H17.3L17.7666 23.1334C18.4555 22.9556 19.0944 22.6945 19.6833 22.35C20.2722 22.0056 20.8111 21.5889 21.3 21.1L24.6 22.4667L25.9 20.2L23.0333 18.0334C23.1444 17.7222 23.2222 17.3945 23.2666 17.05C23.3111 16.7056 23.3333 16.3556 23.3333 16C23.3333 15.6445 23.3111 15.2945 23.2666 14.95C23.2222 14.6056 23.1444 14.2778 23.0333 13.9667L25.9 11.8L24.6 9.53335L21.3 10.9334C20.8111 10.4222 20.2722 9.99446 19.6833 9.65002C19.0944 9.30558 18.4555 9.04446 17.7666 8.86669L17.3333 5.33335H14.7L14.2333 8.86669C13.5444 9.04446 12.9055 9.30558 12.3166 9.65002C11.7278 9.99446 11.1889 10.4111 10.7 10.9L7.39998 9.53335L6.09998 11.8L8.96664 13.9334C8.85553 14.2667 8.77775 14.6 8.73331 14.9334C8.68886 15.2667 8.66664 15.6222 8.66664 16C8.66664 16.3556 8.68886 16.7 8.73331 17.0334C8.77775 17.3667 8.85553 17.7 8.96664 18.0334L6.09998 20.2L7.39998 22.4667L10.7 21.0667C11.1889 21.5778 11.7278 22.0056 12.3166 22.35C12.9055 22.6945 13.5444 22.9556 14.2333 23.1334L14.6666 26.6667ZM16.0666 20.6667C17.3555 20.6667 18.4555 20.2111 19.3666 19.3C20.2778 18.3889 20.7333 17.2889 20.7333 16C20.7333 14.7111 20.2778 13.6111 19.3666 12.7C18.4555 11.7889 17.3555 11.3334 16.0666 11.3334C14.7555 11.3334 13.65 11.7889 12.75 12.7C11.85 13.6111 11.4 14.7111 11.4 16C11.4 17.2889 11.85 18.3889 12.75 19.3C13.65 20.2111 14.7555 20.6667 16.0666 20.6667Z",fill:"currentColor"})),S_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V21.3333H21.3333C20.6667 22.1778 19.8667 22.8333 18.9333 23.3C18.0222 23.7667 17.0444 24 16 24C14.9556 24 13.9667 23.7667 13.0333 23.3C12.1222 22.8333 11.3333 22.1778 10.6667 21.3333H6.66667V25.3333ZM16 21.3333C16.8444 21.3333 17.6111 21.0889 18.3 20.6C18.9889 20.1111 19.4667 19.4667 19.7333 18.6667H25.3333V6.66667H6.66667V18.6667H12.2667C12.5333 19.4667 13.0111 20.1111 13.7 20.6C14.3889 21.0889 15.1556 21.3333 16 21.3333ZM6.66667 25.3333H10.6667C11.3333 25.3333 12.1222 25.3333 13.0333 25.3333C13.9667 25.3333 14.9556 25.3333 16 25.3333C17.0444 25.3333 18.0222 25.3333 18.9333 25.3333C19.8667 25.3333 20.6667 25.3333 21.3333 25.3333H25.3333H6.66667Z",fill:"currentColor"})),w_=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:"currentColor"})),T_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M20.15 13H8V11H20.15L18.6 9.45L20 8L24 12L20 16L18.6 14.55L20.15 13ZM15 9V5H5V19H15V15H17V19C17 19.55 16.8042 20.0208 16.4125 20.4125C16.0208 20.8042 15.55 21 15 21H5C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H15C15.55 3 16.0208 3.19583 16.4125 3.5875C16.8042 3.97917 17 4.45 17 5V9H15Z",fill:"currentColor"})),P_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 15C12.8333 15 13.5417 14.7083 14.125 14.125C14.7083 13.5417 15 12.8333 15 12C15 11.1667 14.7083 10.4583 14.125 9.875C13.5417 9.29167 12.8333 9 12 9C11.1667 9 10.4583 9.29167 9.875 9.875C9.29167 10.4583 9 11.1667 9 12C9 12.8333 9.29167 13.5417 9.875 14.125C10.4583 14.7083 11.1667 15 12 15ZM12 17C10.6167 17 9.4375 16.5125 8.4625 15.5375C7.4875 14.5625 7 13.3833 7 12C7 10.6167 7.4875 9.4375 8.4625 8.4625C9.4375 7.4875 10.6167 7 12 7C13.3833 7 14.5625 7.4875 15.5375 8.4625C16.5125 9.4375 17 10.6167 17 12C17 13.3833 16.5125 14.5625 15.5375 15.5375C14.5625 16.5125 13.3833 17 12 17ZM5 13H1V11H5V13ZM23 13H19V11H23V13ZM11 5V1H13V5H11ZM11 23V19H13V23H11ZM6.4 7.75L3.875 5.325L5.3 3.85L7.7 6.35L6.4 7.75ZM18.7 20.15L16.275 17.625L17.6 16.25L20.125 18.675L18.7 20.15ZM16.25 6.4L18.675 3.875L20.15 5.3L17.65 7.7L16.25 6.4ZM3.85 18.7L6.375 16.275L7.75 17.6L5.325 20.125L3.85 18.7Z",fill:"currentColor"})),E_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 21C9.5 21 7.375 20.125 5.625 18.375C3.875 16.625 3 14.5 3 12C3 9.5 3.875 7.375 5.625 5.625C7.375 3.875 9.5 3 12 3C12.2333 3 12.4625 3.00833 12.6875 3.025C12.9125 3.04167 13.1333 3.06667 13.35 3.1C12.6667 3.58333 12.1208 4.2125 11.7125 4.9875C11.3042 5.7625 11.1 6.6 11.1 7.5C11.1 9 11.625 10.275 12.675 11.325C13.725 12.375 15 12.9 16.5 12.9C17.4167 12.9 18.2583 12.6958 19.025 12.2875C19.7917 11.8792 20.4167 11.3333 20.9 10.65C20.9333 10.8667 20.9583 11.0875 20.975 11.3125C20.9917 11.5375 21 11.7667 21 12C21 14.5 20.125 16.625 18.375 18.375C16.625 20.125 14.5 21 12 21ZM12 19C13.4667 19 14.7833 18.5958 15.95 17.7875C17.1167 16.9792 17.9667 15.925 18.5 14.625C18.1667 14.7083 17.8333 14.775 17.5 14.825C17.1667 14.875 16.8333 14.9 16.5 14.9C14.45 14.9 12.7042 14.1792 11.2625 12.7375C9.82083 11.2958 9.1 9.55 9.1 7.5C9.1 7.16667 9.125 6.83333 9.175 6.5C9.225 6.16667 9.29167 5.83333 9.375 5.5C8.075 6.03333 7.02083 6.88333 6.2125 8.05C5.40417 9.21667 5 10.5333 5 12C5 13.9333 5.68333 15.5833 7.05 16.95C8.41667 18.3167 10.0667 19 12 19Z",fill:"currentColor"})),M_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4 19V17H6V10C6 8.61667 6.41667 7.39167 7.25 6.325C8.08333 5.24167 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6417 2.73333 10.925 2.45C11.225 2.15 11.5833 2 12 2C12.4167 2 12.7667 2.15 13.05 2.45C13.35 2.73333 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.24167 16.75 6.325C17.5833 7.39167 18 8.61667 18 10V17H20V19H4ZM12 22C11.45 22 10.975 21.8083 10.575 21.425C10.1917 21.025 10 20.55 10 20H14C14 20.55 13.8 21.025 13.4 21.425C13.0167 21.8083 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z",fill:"currentColor"})),O_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 12C10.9 12 9.95833 11.6083 9.175 10.825C8.39167 10.0417 8 9.1 8 8C8 6.9 8.39167 5.95833 9.175 5.175C9.95833 4.39167 10.9 4 12 4C13.1 4 14.0417 4.39167 14.825 5.175C15.6083 5.95833 16 6.9 16 8C16 9.1 15.6083 10.0417 14.825 10.825C14.0417 11.6083 13.1 12 12 12ZM4 20V17.2C4 16.6333 4.14583 16.1125 4.4375 15.6375C4.72917 15.1625 5.11667 14.8 5.6 14.55C6.63333 14.0333 7.68333 13.6458 8.75 13.3875C9.81667 13.1292 10.9 13 12 13C13.1 13 14.1833 13.1292 15.25 13.3875C16.3167 13.6458 17.3667 14.0333 18.4 14.55C18.8833 14.8 19.2708 15.1625 19.5625 15.6375C19.8542 16.1125 20 16.6333 20 17.2V20H4ZM6 18H18V17.2C18 17.0167 17.9542 16.85 17.8625 16.7C17.7708 16.55 17.65 16.4333 17.5 16.35C16.6 15.9 15.6917 15.5625 14.775 15.3375C13.8583 15.1125 12.9333 15 12 15C11.0667 15 10.1417 15.1125 9.225 15.3375C8.30833 15.5625 7.4 15.9 6.5 16.35C6.35 16.4333 6.22917 16.55 6.1375 16.7C6.04583 16.85 6 17.0167 6 17.2V18ZM12 10C12.55 10 13.0208 9.80417 13.4125 9.4125C13.8042 9.02083 14 8.55 14 8C14 7.45 13.8042 6.97917 13.4125 6.5875C13.0208 6.19583 12.55 6 12 6C11.45 6 10.9792 6.19583 10.5875 6.5875C10.1958 6.97917 10 7.45 10 8C10 8.55 10.1958 9.02083 10.5875 9.4125C10.9792 9.80417 11.45 10 12 10Z",fill:"currentColor"})),k_="_formInput_2r25j_1",D_="_labelWrapper_2r25j_5",I_="_inputLabel_2r25j_9",R_="_startAdornment_2r25j_163",A_="_endAdornment_2r25j_170",N_="_iconButton_2r25j_177",__="_clearButton_2r25j_197",j_="_errorButton_2r25j_216",Wt={formInput:k_,labelWrapper:D_,inputLabel:I_,startAdornment:R_,endAdornment:A_,iconButton:N_,clearButton:__,errorButton:j_},qb=({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:w})=>{var D;const C=!!w.error,S=C?(D=w.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:Wt.startAdornment,children:b.jsx("span",{className:Wt.iconButton,children:d})}):void 0;let _;return f?_=b.jsx(G.InputAdornment,{position:"end",className:Wt.endAdornment,children:b.jsx("span",{onClick:p,className:Wt.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(C?_=b.jsx(G.InputAdornment,{position:"end",className:Wt.endAdornment,children:b.jsx("span",{className:Wt.errorButton,children:b.jsx(Yb,{})})}):_=b.jsx(G.InputAdornment,{position:"end",className:Wt.endAdornment,children:b.jsx("span",{onClick:E,className:Wt.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(Ub,{})})})),b.jsxs("div",{className:`${Wt.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Wt.labelWrapper,children:b.jsxs("span",{className:Wt.inputLabel,children:[n,a?" *":""]})}),b.jsx(G.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:C,helperText:S,variant:"outlined",className:Wt.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Wt.inputRoot,...M&&{startAdornment:M},..._&&{endAdornment:_}}})]})}})};qb.displayName="FormInput";const L_="_viewChip_18qqe_1",V_="_active_18qqe_61",$_="_icon_18qqe_76",F_="_label_18qqe_81",hi={viewChip:L_,active:V_,icon:$_,label:F_},Gb=({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})]})};Gb.displayName="ViewChip";exports.Button=Ec;exports.CAMERA_ALGORITHM_FACIAL=_s;exports.CAMERA_ALGORITHM_LPR=js;exports.CameraCard=AT;exports.CancelIcon=Ub;exports.CarIcon=y_;exports.CountCard=qC;exports.DarkModeIcon=E_;exports.DisplayTypes=Ab;exports.ErrorIcon=Yb;exports.FacialIcon=As;exports.FacialNewIcon=g_;exports.FilterButton=qh;exports.FilterChip=Gh;exports.FilterModal=gm;exports.FormInput=qb;exports.FormMultiSelect=Wb;exports.FormSelect=Hb;exports.GoogleMap=uy;exports.HomeIcon=h_;exports.InboxIcon=S_;exports.LPRIcon=Ns;exports.LightModeIcon=P_;exports.LogoutIcon=T_;exports.LprIcon=w_;exports.MapContent=pu;exports.MapMarkers=hy;exports.MapSpot=du;exports.ModuleMenu=vy;exports.NotFoundContent=gy;exports.NotificationsIcon=M_;exports.PersonIcon=O_;exports.PhotoIcon=v_;exports.PlateCloneIcon=x_;exports.ResponsiveGrid=_b;exports.SearchBar=my;exports.SearchIcon=p_;exports.SettingsIcon=C_;exports.SidebarMenu=by;exports.SplitLayout=Nb;exports.TodayIcon=b_;exports.VideoControlProvider=Dy;exports.VideoPlayer=bu;exports.VideoPlayerWebRTC=Rb;exports.VideoTimeline=Ib;exports.VideocamIcon=m_;exports.ViewChip=Gb;exports.VisioThemeProvider=rv;exports.ZoomControls=FT;exports.darkColors=mt;exports.darkTheme=Uh;exports.lightColors=dt;exports.lightTheme=Wh;exports.radiiTokens=mi;exports.spacingScale=tv;exports.spacingTokens=zh;exports.typographyTokens=Mt;exports.useGoogleMapContext=fu;exports.useVideoControl=yu;exports.useVideoControlRequired=qE;exports.useVisioTheme=sv;
|
|
244
|
+
`);class W4{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",H4);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"&&C1(["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=U({},z4,n),vt.extend(_4)}getDayOfWeek(t){return t.day()+1}}const U4="_root_1dntq_1",Y4="_container_1dntq_72",q4="_header_1dntq_83",G4="_headerText_1dntq_91",Z4="_headerTitle_1dntq_97",K4="_headerSubtitle_1dntq_102",X4="_controls_1dntq_106",Q4="_headerButton_1dntq_113",J4="_zoomGroup_1dntq_133",eN="_zoomLabel_1dntq_144",tN="_tracksWrapper_1dntq_153",nN="_tracksWithHeader_1dntq_158",oN="_layers_1dntq_162",rN="_timeScale_1dntq_168",sN="_videoTrack_1dntq_172",iN="_eventsTrack_1dntq_176",aN="_trackBox_1dntq_180",lN="_trackLabelRow_1dntq_190",cN="_label_1dntq_198",uN="_trackArea_1dntq_209",dN="_tick_1dntq_215",fN="_tickMajor_1dntq_223",pN="_tickMinor_1dntq_227",hN="_tickLabel_1dntq_231",mN="_segment_1dntq_243",gN="_event_1dntq_176",yN="_eventDot_1dntq_276",bN="_selectionOverlay_1dntq_283",vN="_playhead_1dntq_292",xN="_playheadLine_1dntq_302",CN="_playheadHandle_1dntq_312",Ae={root:U4,container:Y4,header:q4,headerText:G4,headerTitle:Z4,headerSubtitle:K4,controls:X4,headerButton:Q4,zoomGroup:J4,zoomLabel:eN,tracksWrapper:tN,tracksWithHeader:nN,layers:oN,timeScale:rN,videoTrack:sN,eventsTrack:iN,trackBox:aN,trackLabelRow:lN,label:cN,trackArea:uN,tick:dN,tickMajor:fN,tickMinor:pN,tickLabel:hN,segment:mN,event:gN,eventDot:yN,selectionOverlay:bN,playhead:vN,playheadLine:xN,playheadHandle:CN};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 Ko(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 wN(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`${wN(t.getFullYear())}${rt(t.getMonth()+1)}${rt(t.getDate())}T${rt(o)}${rt(r)}${rt(i)}Z`}function SN(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Sl(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 TN(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 PN(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 EN(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 MN=(e,t,n)=>t>=3600?Sl(e).slice(0,2)+":00:00":t>=60?Sl(e).slice(0,5):t>=1?Sl(e):TN(e,n),ON=(e,t,n)=>t>=3600||t>=60||t>=1?Tl(e):PN(e,n);function kN(){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 DN(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,S]=k.useState({windowSeconds:t,fps:d}),{ref:C,width:w}=kN(),T=102,M=Math.max(0,w-T-10),[_,D]=k.useState(0),V=k.useMemo(()=>{const $=Math.max(1/Math.max(1,v.fps),.05);return ot(v.windowSeconds,$,t)},[v.windowSeconds,v.fps,t]);k.useEffect(()=>{if(!h||w<=0)return;const $=ot(f-V*.9,0,Math.max(0,t-V));D($)},[f,h,w,V,t]);const N=k.useMemo(()=>{const $=ot(_,0,Math.max(0,t-V)),W=$+V;return{start:$,end:W,seconds:V}},[_,t,V]),x=k.useMemo(()=>{if(M<=0)return[];const{majorStep:$,minorStep:W}=EN({width:M,windowSeconds:N.seconds,fps:v.fps}),z=Math.floor(N.start/W)*W,ee=N.end,X=[],re=W*1e-6;for(let te=z;te<=ee+re;te+=W){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/$-Math.round(te/$))<1e-6;X.push({time:te,px:ue,kind:ie?"major":"minor",label:ie?r(te,$,v.fps):void 0})}return X},[M,r,N.end,N.seconds,N.start,v.fps]),L=k.useRef(l);L.current=l;const R=k.useRef(a);R.current=a;const A=k.useCallback(($,W)=>{const z=L.current;if(!z)return;const ee=R.current;z({startDate:Nh($,ee),endDate:Nh(W,ee)})},[]),O=k.useRef(null),j=k.useRef(null),B=$=>{j.current=$,O.current==null&&(O.current=requestAnimationFrame(()=>{O.current=null;const W=j.current;j.current=null,W==null||W()}))};k.useEffect(()=>()=>{O.current!=null&&cancelAnimationFrame(O.current)},[]);const F=k.useRef(null),H=$=>{const W=C.current;if(!W)return 0;const z=W.getBoundingClientRect();return ot($-z.left-T,0,M)};return{viewportRef:C,width:w,axisLeft:T,axisWidth:M,totalSeconds:t,zoom:v,setZoom:S,isLive:h,setIsLive:m,currentTime:f,selectedRange:g,setSelectedRange:y,videoSegments:c,events:u,view:N,ticks:x,onWheel:$=>{if(!n||w<=0)return;$.preventDefault(),m(!1);const W=H($.clientX),z=ot(Ko({px:W,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t),X=$.deltaY<0?.8:1.25,re=ot(N.seconds*X,Math.max(1/Math.max(1,v.fps),.05),t),te=ot(z-W/Math.max(1,M)*re,0,Math.max(0,t-re));S(ue=>({...ue,windowSeconds:re})),D(te)},onPointerDownScrub:$=>{if($.button!==0)return;const W=C.current;if(!W)return;W.setPointerCapture($.pointerId);const z=H($.clientX),ee=ot(Ko({px:z,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"playhead",pointerId:$.pointerId,startPx:z,startTime:ee},p(ee)},onPointerDownSelect:$=>{if($.button!==0)return;const W=C.current;if(!W)return;W.setPointerCapture($.pointerId);const z=H($.clientX),ee=ot(Ko({px:z,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"select",pointerId:$.pointerId,startPx:z,startTime:ee},y({start:ee,end:ee})},onPointerDownPlayhead:$=>{if($.button!==0)return;const W=C.current;if(!W)return;W.setPointerCapture($.pointerId);const z=H($.clientX),ee=ot(Ko({px:z,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);m(!1),F.current={mode:"playhead",pointerId:$.pointerId,startPx:z,startTime:ee},p(ee)},onPointerMove:$=>{const W=F.current;if(!W||W.pointerId!==$.pointerId)return;const z=H($.clientX);B(()=>{const ee=ot(Ko({px:z,windowStart:N.start,windowSeconds:N.seconds,width:M}),0,t);if(W.mode==="playhead")p(ee);else{const X=Math.min(W.startTime,ee),re=Math.max(W.startTime,ee);y({start:X,end:re})}})},onPointerUp:$=>{const W=F.current;if(!(!W||W.pointerId!==$.pointerId)&&(F.current=null,W.mode==="select"&&g)){const z=Math.abs(g.end-g.start);if(z<Math.max(1/Math.max(1,v.fps),.1))y(null);else if(A(g.start,g.end),o){const ee=ot(z*1.05,Math.max(1/Math.max(1,v.fps),.05),t),X=ot(g.start,0,Math.max(0,t-ee));S(re=>({...re,windowSeconds:ee})),D(X)}}},onClickSegment:($,W)=>{m(!1);const z=ot($,0,t);p(z),A(W.start,W.end)},onClickEvent:$=>{i&&y(null),m(!1);const W=ot($,0,t);p(W),A(W,W),D(ot($-N.seconds/2,0,Math.max(0,t-N.seconds)))},resetView:()=>{m(!1),S($=>({...$,windowSeconds:t})),D(0)}}}const Ob=({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}`))});Ob.displayName="TimeScale";const kb=({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(Ko({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}`)})})};kb.displayName="VideoTrack";const Db=({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)})})};Db.displayName="EventsTrack";const Ib=({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:S="Eventos",downloadLabel:C="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),R=a??(i==="duration"?ON:MN),{viewportRef:A,axisLeft:O,axisWidth:j,zoom:B,currentTime:F,selectedRange:H,videoSegments:I,events:Y,view:q,ticks:Z,onWheel:oe,onPointerDownScrub:K,onPointerDownSelect:Q,onPointerDownPlayhead:se,onPointerMove:J,onPointerUp:$,onClickSegment:W,onClickEvent:z,setZoom:ee}=DN({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:R,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(_e=>({..._e,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":C,children:[b.jsx(L6,{fontSize:"small"}),C]}):null,g!==void 0?b.jsx(ma,{dateAdapter:W4,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(V6,{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(j6,{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(_6,{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:$,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:K,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(Ob,{ticks:Z})})]}),b.jsxs(G.Box,{className:Ae.trackBox,onPointerDown:Q,children:[H?b.jsx("div",{className:Ae.selectionOverlay,style:{left:`${O+An({time:H.start,windowStart:q.start,windowSeconds:q.seconds,width:j})}px`,width:`${Math.max(0,An({time:H.end,windowStart:q.start,windowSeconds:q.seconds,width:j})-An({time:H.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?K:void 0,style:{height:"100%"},children:b.jsx(kb,{segments:I,viewStart:q.start,viewSeconds:q.seconds,width:j,totalSeconds:l,onClickSegment:(le,de)=>{W(le,de),T==null||T(le,de)}})})]}),b.jsxs("div",{className:`${Ae.trackLabelRow} ${Ae.eventsTrack}`.trim(),children:[b.jsx("div",{className:Ae.label,children:S}),b.jsx("div",{onPointerDown:p?K:void 0,style:{height:"100%"},children:b.jsx(Db,{events:Y,viewStart:q.start,viewSeconds:q.seconds,width:j,totalSeconds:l,onClickEvent:(le,de)=>{z(le),E==null||E(le,de)}})})]})]})]})})]})};Ib.displayName="VideoTimeline";const IN=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=yu(),[a,l]=$i(Oy),[c,u]=$i(ky),d=My(YE),f=k.useRef(-1);return k.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(SN()),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},Rb=({stream:e=null,src:t,autoPlay:n=!0,muted:o=!0,playsInline:r=!0,className:i,updateTimeForLiveStream:a=!0,constrainToSelectedRange:l=!0,loopSelection:c=!1,availableQualities:u,initialQuality:d,onQualityChange:f,poster:p,sx:h,liveThresholdSeconds:m=2,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:S,height:C,aspectRatio:w,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:_,borderRadius:D,loading:V,unavailable:N,unavailableIcon:x,unavailableMessage:L})=>{const R=!!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:S,height:C,aspectRatio:w,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:_,borderRadius:D,loading:V,unavailable:N,unavailableIcon:x,unavailableMessage:L}),b.jsx(IN,{isStream:R,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Rb.displayName="VideoPlayerWebRTC";const RN=yt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),AN="_container_1vjy6_1",NN="_segment_1vjy6_7",_N="_selected_1vjy6_20",jN="_label_1vjy6_28",LN="_icon_1vjy6_37",VN="_checkIcon_1vjy6_47",$N="_unselected_1vjy6_53",xo={container:AN,segment:NN,selected:_N,label:jN,icon:LN,checkIcon:VN,unselected:$N},Ab=({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(RN,{className:xo.checkIcon})}),b.jsx(G.Box,{className:xo.label,children:l.label})]},c))})};Ab.displayName="DisplayTypes";const FN=600,Pl=[.32,.72,0,1],El=400,Nb=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=FN,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})]})};Nb.displayName="SplitLayout";const BN=256,_b=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=BN,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})};_b.displayName="ResponsiveGrid";const jb=yt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var HN=e=>e.type==="checkbox",Jr=e=>e instanceof Date,hd=e=>e==null;const Lb=e=>typeof e=="object";var Vo=e=>!hd(e)&&!Array.isArray(e)&&Lb(e)&&!Jr(e),zN=e=>Vo(e)&&e.target?HN(e.target)?e.target.checked:e.target.value:e,WN=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,UN=(e,t)=>e.has(WN(t)),YN=e=>{const t=e.constructor&&e.constructor.prototype;return Vo(t)&&t.hasOwnProperty("isPrototypeOf")},qN=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vb(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(qN&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Vo(e)&&YN(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Vb(e[r]));return o}var $b=e=>/^\w*$/.test(e),Pc=e=>e===void 0,GN=e=>Array.isArray(e)?e.filter(Boolean):[],Fb=e=>GN(e.replace(/["|']|\]/g,"").split(/\.|\[/)),$t=(e,t,n)=>{if(!t||!Vo(e))return n;const o=($b(t)?[t]:Fb(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=$b(t)?[t]:Fb(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=Vo(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"},Bb=k.createContext(null);Bb.displayName="HookFormControlContext";const md=()=>k.useContext(Bb);var ZN=(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 Hb=typeof window<"u"?k.useLayoutEffect:k.useEffect;function KN(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 Hb(()=>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(()=>ZN(a,n,c.current,!1),[a,n])}var XN=e=>typeof e=="string",Vh=(e,t,n,o,r)=>XN(e)?$t(n,e,r):Array.isArray(e)?e.map(i=>$t(n,i)):n,$h=e=>hd(e)||!Lb(e);function Si(e,t,n=new WeakSet){if($h(e)||$h(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)||Vo(a)&&Vo(l)||Array.isArray(a)&&Array.isArray(l)?!Si(a,l,n):!Object.is(a,l))return!1}}return!0}function QN(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=Vh(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=Vh(o,n._names,w||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]);Hb(()=>((f.current!==n||!Si(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,S=p.current,C=k.useMemo(()=>{if(i)return null;const w=!v&&!Si(S,o);return v||w?g():null},[i,v,o,S,g]);return C!==null?C:h}function JN(e){const t=md(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=UN(r._names.array,n),u=k.useMemo(()=>$t(r._formValues,n,$t(r._defaultValues,n,a)),[r,n,a]),d=QN({control:r,name:n,defaultValue:u,exact:l}),f=KN({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:()=>!!$t(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!$t(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$t(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$t(f.validatingFields,n)},error:{enumerable:!0,get:()=>$t(f.errors,n)}}),[f,n]),y=k.useCallback(w=>m.current.onChange({target:{value:zN(w),name:n},type:jh.CHANGE}),[n]),v=k.useCallback(()=>m.current.onBlur({target:{value:$t(r._formValues,n),name:n},type:jh.BLUR}),[n,r._formValues]),S=k.useCallback(w=>{const T=$t(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]),C=k.useMemo(()=>({name:n,value:d,...Ml(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:S}),[n,o,f.disabled,y,v,S,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=$t(r._fields,M);D&&D._f&&(D._f.mount=_)};if(E(n,!0),w){const M=Vb($t(r._options.defaultValues,n,p.current.defaultValue));_h(r._defaultValues,n,M),Pc($t(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:C,formState:f,fieldState:g}),[C,f,g])}const gd=e=>e.render(JN(e)),e_=k.createContext(null);e_.displayName="HookFormContext";const t_="_formSelect_s09hu_1",n_="_labelWrapper_s09hu_5",o_="_inputLabel_s09hu_9",r_="_placeholder_s09hu_75",s_="_helperText_s09hu_121",Co={formSelect:t_,labelWrapper:n_,inputLabel:o_,placeholder:r_,helperText:s_},zb=({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 C;const y=!!g.error,v=y||!!i,S=y?(C=g.error)==null?void 0:C.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(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:Co.placeholder,children:r||""});const T=o.find(E=>E.value===w);return(T==null?void 0:T.label)||String(w)}),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(G.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:Co.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(jb,{sx:{fontSize:20}})}),w.label]},String(w.value))})]}),v&&b.jsx(G.FormHelperText,{className:Co.helperText,children:S})]})]})}})};zb.displayName="FormSelect";const i_="_formMultiSelect_1d6fa_1",a_="_labelWrapper_1d6fa_5",l_="_inputLabel_1d6fa_9",c_="_placeholder_1d6fa_75",u_="_helperText_1d6fa_124",d_="_chipsContainer_1d6fa_153",f_="_chip_1d6fa_153",Dn={formMultiSelect:i_,labelWrapper:a_,inputLabel:l_,placeholder:c_,helperText:u_,chipsContainer:d_,chip:f_},Wb=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,chipVariant:u="filled",maxChipsDisplay:d,renderValue:f,className:p,open:h,onOpen:m,onClose:g,...y})=>{const S=G.useTheme().palette.mode==="dark";return b.jsx(gd,{name:t,control:e,render:({field:C,fieldState:w})=>{var N;const T=!!w.error,E=T||!!i,M=T?(N=w.error)==null?void 0:N.message:i,_=Array.isArray(C.value)?C.value:[];_.length>0;const V=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,R=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))}),R>0&&b.jsx(G.Chip,{label:`+${R}`,size:"small",variant:u,className:Dn.chip})]})});return b.jsxs("div",{className:`${Dn.formMultiSelect} ${p||""}`,"data-theme":S?"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,{...C,...y,variant:"outlined",multiple:!0,value:_,onChange:x=>{C.onChange(x.target.value)},displayEmpty:!!r,renderValue:V,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)",...S?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...S?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...S?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...S?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...S?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...S?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...S?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...S?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:S?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(x=>{const L=_.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(jb,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),E&&b.jsx(G.FormHelperText,{className:Dn.helperText,children:M})]})]})}})};Wb.displayName="FormMultiSelect";const Ub=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"})),Yb=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"})),p_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"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"})),h_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 2.09961L1 12H4V21H11V15H13V21H20V12H23L12 2.09961Z",fill:"currentColor"})),m_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M5.33335 26.6667C4.60002 26.6667 3.96669 26.4112 3.43335 25.9C2.92224 25.3667 2.66669 24.7334 2.66669 24V8.00004C2.66669 7.26671 2.92224 6.64449 3.43335 6.13337C3.96669 5.60004 4.60002 5.33337 5.33335 5.33337H21.3334C22.0667 5.33337 22.6889 5.60004 23.2 6.13337C23.7334 6.64449 24 7.26671 24 8.00004V14L29.3334 8.66671V23.3334L24 18V24C24 24.7334 23.7334 25.3667 23.2 25.9C22.6889 26.4112 22.0667 26.6667 21.3334 26.6667H5.33335ZM5.33335 24H21.3334V8.00004H5.33335V24ZM5.33335 24V8.00004V24Z",fill:"currentColor"})),g_=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:"currentColor"}),P.createElement("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:"currentColor"}),P.createElement("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:"currentColor"}),P.createElement("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:"currentColor"})),y_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3.99998 26.3333C3.99998 27.2543 4.74571 28 5.66665 28H9.99998V30.6666H5.66665C3.27295 30.6666 1.33331 28.727 1.33331 26.3333V22H3.99998V26.3333ZM30.6666 26.3333C30.6666 28.727 28.727 30.6666 26.3333 30.6666H22V28H26.3333C27.2543 28 28 27.2543 28 26.3333V22H30.6666V26.3333ZM25.3333 7.99998H15.7331L14.3997 12H25.3333V14.6666H13.3333V21.3333H25.3333V24H14.6666V25.3333C14.6666 26 14.1333 26.6666 13.3333 26.6666H12C11.3333 26.6666 10.6666 26 10.6666 25.3333V14.6666L13.4661 6.66665C13.7328 5.86665 14.4 5.33331 15.3333 5.33331H25.3333V7.99998ZM16.6666 16C17.7333 16 18.6666 16.9333 18.6666 18C18.6666 19.0666 17.7333 20 16.6666 20C15.6 20 14.6666 19.0666 14.6666 18C14.6666 16.9333 15.6 16 16.6666 16ZM9.99998 3.99998H5.66665C4.74569 3.99998 3.99998 4.74569 3.99998 5.66665V9.99998H1.33331V5.66665C1.33331 3.27293 3.27293 1.33331 5.66665 1.33331H9.99998V3.99998ZM26.3333 1.33331C28.727 1.33331 30.6666 3.27293 30.6666 5.66665V9.99998H28V5.66665C28 4.74569 27.2543 3.99998 26.3333 3.99998H22V1.33331H26.3333Z",fill:"currentColor"})),b_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 22C11.0667 22 10.2778 21.6778 9.63333 21.0334C8.98889 20.3889 8.66667 19.6 8.66667 18.6667C8.66667 17.7334 8.98889 16.9445 9.63333 16.3C10.2778 15.6556 11.0667 15.3334 12 15.3334C12.9333 15.3334 13.7222 15.6556 14.3667 16.3C15.0111 16.9445 15.3333 17.7334 15.3333 18.6667C15.3333 19.6 15.0111 20.3889 14.3667 21.0334C13.7222 21.6778 12.9333 22 12 22ZM6.66667 29.3334C5.93333 29.3334 5.30556 29.0722 4.78333 28.55C4.26111 28.0278 4 27.4 4 26.6667V8.00002C4 7.26669 4.26111 6.63891 4.78333 6.11669C5.30556 5.59446 5.93333 5.33335 6.66667 5.33335H8V2.66669H10.6667V5.33335H21.3333V2.66669H24V5.33335H25.3333C26.0667 5.33335 26.6944 5.59446 27.2167 6.11669C27.7389 6.63891 28 7.26669 28 8.00002V26.6667C28 27.4 27.7389 28.0278 27.2167 28.55C26.6944 29.0722 26.0667 29.3334 25.3333 29.3334H6.66667ZM6.66667 26.6667H25.3333V13.3334H6.66667V26.6667Z",fill:"currentColor"})),v_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V6.66667H6.66667V25.3333ZM8 22.6667H24L19 16L15 21.3333L12 17.3333L8 22.6667ZM6.66667 25.3333V6.66667V25.3333Z",fill:"currentColor"})),x_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3 19.75C3 20.4407 3.55928 21 4.25 21H7.5V23H4.25C2.45472 23 1 21.5453 1 19.75V16.5H3V19.75ZM23 19.75C23 21.5453 21.5453 23 19.75 23H16.5V21H19.75C20.4407 21 21 20.4407 21 19.75V16.5H23V19.75ZM18.8467 8.46973C19.061 8.25522 19.3838 8.19085 19.6641 8.30664C19.9444 8.42269 20.1279 8.6966 20.1279 9V14.002C20.1279 14.416 19.7919 14.7517 19.3779 14.752C18.9638 14.7519 18.6279 14.4161 18.6279 14.002V10.8076C18.3336 11.0722 17.881 11.0643 17.5977 10.7812C17.3047 10.4885 17.305 10.0137 17.5977 9.7207L18.8467 8.46973ZM15.1064 8.25781C15.3516 8.29292 15.5664 8.44755 15.6758 8.6748C15.8007 8.93465 15.766 9.24362 15.5859 9.46875L12.5605 13.25H15C15.4142 13.25 15.75 13.5858 15.75 14C15.75 14.4142 15.4142 14.75 15 14.75H11C10.7118 14.75 10.4492 14.5849 10.3242 14.3252C10.1993 14.0653 10.234 13.7564 10.4141 13.5312L13.4395 9.75H11C10.5858 9.75 10.25 9.41421 10.25 9C10.25 8.58579 10.5858 8.25 11 8.25H15L15.1064 8.25781ZM7 8.25977C7.27423 8.30412 7.50603 8.49803 7.59375 8.76855L9.21387 13.7686C9.34152 14.1626 9.1254 14.5861 8.73145 14.7139C8.33744 14.8415 7.91386 14.6254 7.78613 14.2314L7.62988 13.75H4.87012L4.71387 14.2314C4.58614 14.6254 4.16256 14.8415 3.76855 14.7139C3.3746 14.5861 3.15848 14.1626 3.28613 13.7686L3.58105 12.8555C3.59232 12.7977 3.61106 12.7426 3.63477 12.6904L4.90625 8.76855L4.95215 8.6582C5.07878 8.41056 5.3354 8.25 5.62012 8.25H6.87988L7 8.25977ZM5.35547 12.25H7.14453L6.33496 9.75H6.16504L5.35547 12.25ZM7.5 3H4.25C3.55928 3 3 3.55928 3 4.25V7.5H1V4.25C1 2.45472 2.45472 1 4.25 1H7.5V3ZM19.75 1C21.5453 1 23 2.45472 23 4.25V7.5H21V4.25C21 3.55928 20.4407 3 19.75 3H16.5V1H19.75Z",fill:"currentColor"})),C_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12.3333 29.3334L11.8 25.0667C11.5111 24.9556 11.2389 24.8222 10.9833 24.6667C10.7278 24.5111 10.4778 24.3445 10.2333 24.1667L6.26664 25.8334L2.59998 19.5L6.03331 16.9C6.01109 16.7445 5.99998 16.5945 5.99998 16.45V15.55C5.99998 15.4056 6.01109 15.2556 6.03331 15.1L2.59998 12.5L6.26664 6.16669L10.2333 7.83335C10.4778 7.65558 10.7333 7.48891 11 7.33335C11.2666 7.1778 11.5333 7.04446 11.8 6.93335L12.3333 2.66669H19.6666L20.2 6.93335C20.4889 7.04446 20.7611 7.1778 21.0166 7.33335C21.2722 7.48891 21.5222 7.65558 21.7666 7.83335L25.7333 6.16669L29.4 12.5L25.9666 15.1C25.9889 15.2556 26 15.4056 26 15.55V16.45C26 16.5945 25.9778 16.7445 25.9333 16.9L29.3666 19.5L25.7 25.8334L21.7666 24.1667C21.5222 24.3445 21.2666 24.5111 21 24.6667C20.7333 24.8222 20.4666 24.9556 20.2 25.0667L19.6666 29.3334H12.3333ZM14.6666 26.6667H17.3L17.7666 23.1334C18.4555 22.9556 19.0944 22.6945 19.6833 22.35C20.2722 22.0056 20.8111 21.5889 21.3 21.1L24.6 22.4667L25.9 20.2L23.0333 18.0334C23.1444 17.7222 23.2222 17.3945 23.2666 17.05C23.3111 16.7056 23.3333 16.3556 23.3333 16C23.3333 15.6445 23.3111 15.2945 23.2666 14.95C23.2222 14.6056 23.1444 14.2778 23.0333 13.9667L25.9 11.8L24.6 9.53335L21.3 10.9334C20.8111 10.4222 20.2722 9.99446 19.6833 9.65002C19.0944 9.30558 18.4555 9.04446 17.7666 8.86669L17.3333 5.33335H14.7L14.2333 8.86669C13.5444 9.04446 12.9055 9.30558 12.3166 9.65002C11.7278 9.99446 11.1889 10.4111 10.7 10.9L7.39998 9.53335L6.09998 11.8L8.96664 13.9334C8.85553 14.2667 8.77775 14.6 8.73331 14.9334C8.68886 15.2667 8.66664 15.6222 8.66664 16C8.66664 16.3556 8.68886 16.7 8.73331 17.0334C8.77775 17.3667 8.85553 17.7 8.96664 18.0334L6.09998 20.2L7.39998 22.4667L10.7 21.0667C11.1889 21.5778 11.7278 22.0056 12.3166 22.35C12.9055 22.6945 13.5444 22.9556 14.2333 23.1334L14.6666 26.6667ZM16.0666 20.6667C17.3555 20.6667 18.4555 20.2111 19.3666 19.3C20.2778 18.3889 20.7333 17.2889 20.7333 16C20.7333 14.7111 20.2778 13.6111 19.3666 12.7C18.4555 11.7889 17.3555 11.3334 16.0666 11.3334C14.7555 11.3334 13.65 11.7889 12.75 12.7C11.85 13.6111 11.4 14.7111 11.4 16C11.4 17.2889 11.85 18.3889 12.75 19.3C13.65 20.2111 14.7555 20.6667 16.0666 20.6667Z",fill:"currentColor"})),w_=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M6.66667 28C5.93333 28 5.3 27.7444 4.76667 27.2333C4.25556 26.7 4 26.0667 4 25.3333V6.66667C4 5.93333 4.25556 5.31111 4.76667 4.8C5.3 4.26667 5.93333 4 6.66667 4H25.3333C26.0667 4 26.6889 4.26667 27.2 4.8C27.7333 5.31111 28 5.93333 28 6.66667V25.3333C28 26.0667 27.7333 26.7 27.2 27.2333C26.6889 27.7444 26.0667 28 25.3333 28H6.66667ZM6.66667 25.3333H25.3333V21.3333H21.3333C20.6667 22.1778 19.8667 22.8333 18.9333 23.3C18.0222 23.7667 17.0444 24 16 24C14.9556 24 13.9667 23.7667 13.0333 23.3C12.1222 22.8333 11.3333 22.1778 10.6667 21.3333H6.66667V25.3333ZM16 21.3333C16.8444 21.3333 17.6111 21.0889 18.3 20.6C18.9889 20.1111 19.4667 19.4667 19.7333 18.6667H25.3333V6.66667H6.66667V18.6667H12.2667C12.5333 19.4667 13.0111 20.1111 13.7 20.6C14.3889 21.0889 15.1556 21.3333 16 21.3333ZM6.66667 25.3333H10.6667C11.3333 25.3333 12.1222 25.3333 13.0333 25.3333C13.9667 25.3333 14.9556 25.3333 16 25.3333C17.0444 25.3333 18.0222 25.3333 18.9333 25.3333C19.8667 25.3333 20.6667 25.3333 21.3333 25.3333H25.3333H6.66667Z",fill:"currentColor"})),S_=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:"currentColor"})),T_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M20.15 13H8V11H20.15L18.6 9.45L20 8L24 12L20 16L18.6 14.55L20.15 13ZM15 9V5H5V19H15V15H17V19C17 19.55 16.8042 20.0208 16.4125 20.4125C16.0208 20.8042 15.55 21 15 21H5C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H15C15.55 3 16.0208 3.19583 16.4125 3.5875C16.8042 3.97917 17 4.45 17 5V9H15Z",fill:"currentColor"})),P_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 15C12.8333 15 13.5417 14.7083 14.125 14.125C14.7083 13.5417 15 12.8333 15 12C15 11.1667 14.7083 10.4583 14.125 9.875C13.5417 9.29167 12.8333 9 12 9C11.1667 9 10.4583 9.29167 9.875 9.875C9.29167 10.4583 9 11.1667 9 12C9 12.8333 9.29167 13.5417 9.875 14.125C10.4583 14.7083 11.1667 15 12 15ZM12 17C10.6167 17 9.4375 16.5125 8.4625 15.5375C7.4875 14.5625 7 13.3833 7 12C7 10.6167 7.4875 9.4375 8.4625 8.4625C9.4375 7.4875 10.6167 7 12 7C13.3833 7 14.5625 7.4875 15.5375 8.4625C16.5125 9.4375 17 10.6167 17 12C17 13.3833 16.5125 14.5625 15.5375 15.5375C14.5625 16.5125 13.3833 17 12 17ZM5 13H1V11H5V13ZM23 13H19V11H23V13ZM11 5V1H13V5H11ZM11 23V19H13V23H11ZM6.4 7.75L3.875 5.325L5.3 3.85L7.7 6.35L6.4 7.75ZM18.7 20.15L16.275 17.625L17.6 16.25L20.125 18.675L18.7 20.15ZM16.25 6.4L18.675 3.875L20.15 5.3L17.65 7.7L16.25 6.4ZM3.85 18.7L6.375 16.275L7.75 17.6L5.325 20.125L3.85 18.7Z",fill:"currentColor"})),E_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 21C9.5 21 7.375 20.125 5.625 18.375C3.875 16.625 3 14.5 3 12C3 9.5 3.875 7.375 5.625 5.625C7.375 3.875 9.5 3 12 3C12.2333 3 12.4625 3.00833 12.6875 3.025C12.9125 3.04167 13.1333 3.06667 13.35 3.1C12.6667 3.58333 12.1208 4.2125 11.7125 4.9875C11.3042 5.7625 11.1 6.6 11.1 7.5C11.1 9 11.625 10.275 12.675 11.325C13.725 12.375 15 12.9 16.5 12.9C17.4167 12.9 18.2583 12.6958 19.025 12.2875C19.7917 11.8792 20.4167 11.3333 20.9 10.65C20.9333 10.8667 20.9583 11.0875 20.975 11.3125C20.9917 11.5375 21 11.7667 21 12C21 14.5 20.125 16.625 18.375 18.375C16.625 20.125 14.5 21 12 21ZM12 19C13.4667 19 14.7833 18.5958 15.95 17.7875C17.1167 16.9792 17.9667 15.925 18.5 14.625C18.1667 14.7083 17.8333 14.775 17.5 14.825C17.1667 14.875 16.8333 14.9 16.5 14.9C14.45 14.9 12.7042 14.1792 11.2625 12.7375C9.82083 11.2958 9.1 9.55 9.1 7.5C9.1 7.16667 9.125 6.83333 9.175 6.5C9.225 6.16667 9.29167 5.83333 9.375 5.5C8.075 6.03333 7.02083 6.88333 6.2125 8.05C5.40417 9.21667 5 10.5333 5 12C5 13.9333 5.68333 15.5833 7.05 16.95C8.41667 18.3167 10.0667 19 12 19Z",fill:"currentColor"})),M_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4 19V17H6V10C6 8.61667 6.41667 7.39167 7.25 6.325C8.08333 5.24167 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6417 2.73333 10.925 2.45C11.225 2.15 11.5833 2 12 2C12.4167 2 12.7667 2.15 13.05 2.45C13.35 2.73333 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.24167 16.75 6.325C17.5833 7.39167 18 8.61667 18 10V17H20V19H4ZM12 22C11.45 22 10.975 21.8083 10.575 21.425C10.1917 21.025 10 20.55 10 20H14C14 20.55 13.8 21.025 13.4 21.425C13.0167 21.8083 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z",fill:"currentColor"})),O_=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 12C10.9 12 9.95833 11.6083 9.175 10.825C8.39167 10.0417 8 9.1 8 8C8 6.9 8.39167 5.95833 9.175 5.175C9.95833 4.39167 10.9 4 12 4C13.1 4 14.0417 4.39167 14.825 5.175C15.6083 5.95833 16 6.9 16 8C16 9.1 15.6083 10.0417 14.825 10.825C14.0417 11.6083 13.1 12 12 12ZM4 20V17.2C4 16.6333 4.14583 16.1125 4.4375 15.6375C4.72917 15.1625 5.11667 14.8 5.6 14.55C6.63333 14.0333 7.68333 13.6458 8.75 13.3875C9.81667 13.1292 10.9 13 12 13C13.1 13 14.1833 13.1292 15.25 13.3875C16.3167 13.6458 17.3667 14.0333 18.4 14.55C18.8833 14.8 19.2708 15.1625 19.5625 15.6375C19.8542 16.1125 20 16.6333 20 17.2V20H4ZM6 18H18V17.2C18 17.0167 17.9542 16.85 17.8625 16.7C17.7708 16.55 17.65 16.4333 17.5 16.35C16.6 15.9 15.6917 15.5625 14.775 15.3375C13.8583 15.1125 12.9333 15 12 15C11.0667 15 10.1417 15.1125 9.225 15.3375C8.30833 15.5625 7.4 15.9 6.5 16.35C6.35 16.4333 6.22917 16.55 6.1375 16.7C6.04583 16.85 6 17.0167 6 17.2V18ZM12 10C12.55 10 13.0208 9.80417 13.4125 9.4125C13.8042 9.02083 14 8.55 14 8C14 7.45 13.8042 6.97917 13.4125 6.5875C13.0208 6.19583 12.55 6 12 6C11.45 6 10.9792 6.19583 10.5875 6.5875C10.1958 6.97917 10 7.45 10 8C10 8.55 10.1958 9.02083 10.5875 9.4125C10.9792 9.80417 11.45 10 12 10Z",fill:"currentColor"})),k_="_formInput_2r25j_1",D_="_labelWrapper_2r25j_5",I_="_inputLabel_2r25j_9",R_="_startAdornment_2r25j_163",A_="_endAdornment_2r25j_170",N_="_iconButton_2r25j_177",__="_clearButton_2r25j_197",j_="_errorButton_2r25j_216",Wt={formInput:k_,labelWrapper:D_,inputLabel:I_,startAdornment:R_,endAdornment:A_,iconButton:N_,clearButton:__,errorButton:j_},qb=({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:S})=>{var D;const C=!!S.error,w=C?(D=S.error)==null?void 0:D.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=d?b.jsx(G.InputAdornment,{position:"start",className:Wt.startAdornment,children:b.jsx("span",{className:Wt.iconButton,children:d})}):void 0;let _;return f?_=b.jsx(G.InputAdornment,{position:"end",className:Wt.endAdornment,children:b.jsx("span",{onClick:p,className:Wt.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(C?_=b.jsx(G.InputAdornment,{position:"end",className:Wt.endAdornment,children:b.jsx("span",{className:Wt.errorButton,children:b.jsx(Yb,{})})}):_=b.jsx(G.InputAdornment,{position:"end",className:Wt.endAdornment,children:b.jsx("span",{onClick:E,className:Wt.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(Ub,{})})})),b.jsxs("div",{className:`${Wt.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Wt.labelWrapper,children:b.jsxs("span",{className:Wt.inputLabel,children:[n,a?" *":""]})}),b.jsx(G.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:C,helperText:w,variant:"outlined",className:Wt.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Wt.inputRoot,...M&&{startAdornment:M},..._&&{endAdornment:_}}})]})}})};qb.displayName="FormInput";const L_="_viewChip_18qqe_1",V_="_active_18qqe_61",$_="_icon_18qqe_76",F_="_label_18qqe_81",hi={viewChip:L_,active:V_,icon:$_,label:F_},Gb=({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})]})};Gb.displayName="ViewChip";exports.Button=Ec;exports.CAMERA_ALGORITHM_FACIAL=_s;exports.CAMERA_ALGORITHM_LPR=js;exports.CameraCard=AT;exports.CancelIcon=Ub;exports.CarIcon=y_;exports.CountCard=qC;exports.DarkModeIcon=E_;exports.DisplayTypes=Ab;exports.ErrorIcon=Yb;exports.FacialIcon=As;exports.FacialNewIcon=g_;exports.FilterButton=qh;exports.FilterChip=Gh;exports.FilterModal=gm;exports.FormInput=qb;exports.FormMultiSelect=Wb;exports.FormSelect=zb;exports.GoogleMap=uy;exports.HomeIcon=h_;exports.InboxIcon=w_;exports.LPRIcon=Ns;exports.LightModeIcon=P_;exports.LogoutIcon=T_;exports.LprIcon=S_;exports.MapContent=pu;exports.MapMarkers=hy;exports.MapSpot=du;exports.ModuleMenu=vy;exports.NotFoundContent=gy;exports.NotificationsIcon=M_;exports.PersonIcon=O_;exports.PhotoIcon=v_;exports.PlateCloneIcon=x_;exports.ResponsiveGrid=_b;exports.SearchBar=my;exports.SearchIcon=p_;exports.SettingsIcon=C_;exports.SidebarMenu=by;exports.SplitLayout=Nb;exports.TodayIcon=b_;exports.VideoControlProvider=Dy;exports.VideoPlayer=bu;exports.VideoPlayerWebRTC=Rb;exports.VideoTimeline=Ib;exports.VideocamIcon=m_;exports.ViewChip=Gb;exports.VisioThemeProvider=rv;exports.ZoomControls=FT;exports.darkColors=mt;exports.darkTheme=Uh;exports.lightColors=dt;exports.lightTheme=Wh;exports.radiiTokens=mi;exports.spacingScale=tv;exports.spacingTokens=Hh;exports.typographyTokens=Mt;exports.useGoogleMapContext=fu;exports.useVideoControl=yu;exports.useVideoControlRequired=qE;exports.useVisioTheme=sv;
|
|
245
245
|
//# sourceMappingURL=index.cjs.js.map
|