@malloy-publisher/sdk 0.4.0 → 0.5.0
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/README.md +19 -0
- package/dist/{DocumentStorageProvider-CyOJ0hqf.es.js → DocumentStorage-B04sZ5Ie.es.js} +2307 -2334
- package/dist/{DocumentStorageProvider-DGPQEd_l.cjs.js → DocumentStorage-B_MMJ0Ot.cjs.js} +20 -20
- package/dist/{RenderedResult-BnPzJ9Jf.es.js → RenderedResult-BB7eokcf.es.js} +100 -80
- package/dist/RenderedResult-DVuGhatg.cjs.js +135 -0
- package/dist/ServerProvider-D-jjzfE5.cjs.js +1 -0
- package/dist/{ServerProvider-BWOEKg0O.es.js → ServerProvider-Do-GBvpn.es.js} +492 -481
- package/dist/builder/index.cjs.js +57 -52
- package/dist/builder/index.es.js +4421 -3738
- package/dist/client/api.d.ts +14 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Dashboard/TileCard.d.ts +7 -3
- package/dist/components/Dashboard/telemetry.d.ts +20 -8
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +16 -4
- package/dist/components/DashboardBuilder/DashboardEditor.d.ts +31 -8
- package/dist/components/DashboardBuilder/controls.d.ts +8 -6
- package/dist/components/DashboardBuilder/document.d.ts +19 -5
- package/dist/components/DashboardBuilder/malloyText.d.ts +0 -30
- package/dist/components/DashboardBuilder/malloyTree.d.ts +232 -0
- package/dist/components/DashboardBuilder/preview.d.ts +17 -0
- package/dist/components/DashboardBuilder/readDocument.d.ts +23 -28
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +12 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +69 -5
- package/dist/components/DocumentStorage/index.d.ts +1 -0
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +508 -506
- package/dist/theme/resolveTheme.d.ts +1 -1
- package/dist/theme/types.d.ts +12 -2
- package/package.json +1 -1
- package/src/components/Dashboard/TileCard.tsx +8 -4
- package/src/components/Dashboard/telemetry.ts +20 -8
- package/src/components/DashboardBuilder/BuilderToolbar.tsx +4 -5
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +21 -3
- package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +706 -0
- package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +356 -0
- package/src/components/DashboardBuilder/DashboardEditor.tsx +468 -103
- package/src/components/DashboardBuilder/FilterDialog.tsx +19 -6
- package/src/components/DashboardBuilder/TileFrame.tsx +11 -2
- package/src/components/DashboardBuilder/TileMenu.tsx +6 -0
- package/src/components/DashboardBuilder/__test__/inventory.ts +367 -0
- package/src/components/DashboardBuilder/controls.spec.ts +53 -3
- package/src/components/DashboardBuilder/controls.ts +9 -7
- package/src/components/DashboardBuilder/document.ts +17 -5
- package/src/components/DashboardBuilder/invariants.spec.ts +297 -0
- package/src/components/DashboardBuilder/malloyText.spec.ts +27 -66
- package/src/components/DashboardBuilder/malloyText.ts +4 -109
- package/src/components/DashboardBuilder/malloyTree.spec.ts +362 -0
- package/src/components/DashboardBuilder/malloyTree.ts +954 -0
- package/src/components/DashboardBuilder/preview.spec.ts +18 -0
- package/src/components/DashboardBuilder/preview.ts +24 -6
- package/src/components/DashboardBuilder/readDocument.spec.ts +312 -21
- package/src/components/DashboardBuilder/readDocument.ts +144 -165
- package/src/components/DashboardBuilder/scannerShapes.spec.ts +550 -0
- package/src/components/DashboardBuilder/spliceDocument.spec.ts +955 -21
- package/src/components/DashboardBuilder/spliceDocument.ts +509 -119
- package/src/components/DashboardBuilder/statementExtent.spec.ts +606 -0
- package/src/components/DocumentStorage/BrowserDocumentStorage.ts +7 -6
- package/src/components/DocumentStorage/DocumentStorage.ts +78 -5
- package/src/components/DocumentStorage/index.ts +1 -0
- package/src/components/Package/Package.tsx +12 -7
- package/src/components/RenderedResult/RenderedResult.tsx +21 -1
- package/src/components/given/GivensPanel.tsx +15 -3
- package/src/theme/buildTableCssVars.spec.ts +3 -0
- package/src/theme/buildTableCssVars.ts +6 -0
- package/src/theme/defaults.ts +16 -12
- package/src/theme/resolveTheme.spec.ts +14 -7
- package/src/theme/resolveTheme.ts +14 -8
- package/src/theme/types.ts +12 -2
- package/tsconfig.spec.json +5 -1
- package/dist/RenderedResult-Dp22kZsQ.cjs.js +0 -115
- package/dist/ServerProvider-Cc489A3f.cjs.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var xd=Object.create;var
|
|
1
|
+
"use strict";var xd=Object.create;var na=Object.defineProperty;var Sd=Object.getOwnPropertyDescriptor;var Cd=Object.getOwnPropertyNames;var wd=Object.getPrototypeOf,Pd=Object.prototype.hasOwnProperty;var kd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cd(t))!Pd.call(e,o)&&o!==n&&na(e,o,{get:()=>t[o],enumerable:!(r=Sd(t,o))||r.enumerable});return e};var ra=(e,t,n)=>(n=e!=null?xd(wd(e)):{},kd(t||!e||!e.__esModule?na(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),se=require("@mui/material"),ie=require("react"),Ge=require("./ServerProvider-D-jjzfE5.cjs.js"),Lt=require("@malloydata/malloy-filter"),ti=require("@tanstack/react-query"),Md=require("markdown-to-jsx"),Dd=require("@mui/icons-material"),Qe=require("@mui/system"),kr=require("react-dom"),Id=require("@emotion/react"),Td=require("@emotion/styled");function ql(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=ql(ie),Rd=ql(kr);function jo({error:e,context:t}){const n=e.data?.message||"Unknown Error";return f.jsxs(f.Fragment,{children:[t&&f.jsx(se.Typography,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),f.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}const oa=e=>e,Od=()=>{let e=oa;return{configure(t){e=t},generate(t){return e(t)},reset(){e=oa}}},Kl=Od();function tn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ue(e){if(typeof e!="string")throw new Error(tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sa(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $d(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var bs={exports:{}},vs,ia;function Ed(){if(ia)return vs;ia=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vs=e,vs}var xs,aa;function Ad(){if(aa)return xs;aa=1;var e=Ed();function t(){}function n(){}return n.resetWarningCache=t,xs=function(){function r(i,a,l,c,u,d){if(d!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},xs}var la;function Fd(){return la||(la=1,bs.exports=Ad()()),bs.exports}var Ld=Fd();const U=sn(Ld);function Ql(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ql(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ql(e))&&(r&&(r+=" "),r+=t);return r}function ve(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;l<s.length;l+=1){const c=s[l];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}var Ss={exports:{}},ze={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.js
|
|
4
4
|
*
|
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ua;function Nd(){if(ua)return ze;ua=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function p(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case o:case r:case l:case c:case h:return g;default:switch(g=g&&g.$$typeof,g){case i:case a:case d:case u:return g;case s:return g;default:return y}}case t:return y}}}return ze.ContextConsumer=s,ze.ContextProvider=i,ze.Element=e,ze.ForwardRef=a,ze.Fragment=n,ze.Lazy=d,ze.Memo=u,ze.Portal=t,ze.Profiler=o,ze.StrictMode=r,ze.Suspense=l,ze.SuspenseList=c,ze.isContextConsumer=function(g){return p(g)===s},ze.isContextProvider=function(g){return p(g)===i},ze.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ze.isForwardRef=function(g){return p(g)===a},ze.isFragment=function(g){return p(g)===n},ze.isLazy=function(g){return p(g)===d},ze.isMemo=function(g){return p(g)===u},ze.isPortal=function(g){return p(g)===t},ze.isProfiler=function(g){return p(g)===o},ze.isStrictMode=function(g){return p(g)===r},ze.isSuspense=function(g){return p(g)===l},ze.isSuspenseList=function(g){return p(g)===c},ze.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===l||g===c||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===i||g.$$typeof===s||g.$$typeof===a||g.$$typeof===b||g.getModuleId!==void 0)},ze.typeOf=p,ze}var da;function jd(){return da||(da=1,Ss.exports=Nd()),Ss.exports}var Zl=jd();function Gt(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 Jl(e){if(v.isValidElement(e)||Zl.isValidElementType(e)||!Gt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jl(e[n])}),t}function ft(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Gt(e)&&Gt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||Zl.isValidElementType(t[o])?r[o]=t[o]:Gt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gt(e[o])?r[o]=ft(e[o],t[o],n):n.clone?r[o]=Gt(t[o])?Jl(t[o]):t[o]:r[o]=t[o]}),r}function Rr(e,t){return t?ft(e,t,{clone:!1}):e}function pa(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function Bd(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Vd(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function zd(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Bo={xs:0,sm:600,md:900,lg:1200,xl:1536},fa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bo[e]}px)`},Wd={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Bo[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 r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||fa;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||fa;return Object.keys(t).reduce((i,a)=>{if(Bd(s.keys,a)){const l=Vd(r.containerQueries?r:Wd,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Bo).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function _d(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function ma(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Vo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ko(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vo(e,n)||r,t&&(o=t(o,r,e)),o}function Je(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=Vo(l,r)||{};return nn(i,a,d=>{let h=ko(c,o,d);return d===h&&typeof d=="string"&&(h=ko(c,o,`${t}${d==="default"?"":ue(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function Hd(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ud={m:"margin",p:"padding"},Yd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ha={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gd=Hd(e=>{if(e.length>2)if(ha[e])e=ha[e];else return[e];const[t,n]=e.split(""),r=Ud[t],o=Yd[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),ri=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ri,...oi];function Yr(e,t,n,r){const o=Vo(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:()=>{}}function si(e){return Yr(e,"spacing",8)}function Gr(e,t){return typeof t=="string"||t==null?t:e(t)}function qd(e,t){return n=>e.reduce((r,o)=>(r[o]=Gr(t,n),r),{})}function Kd(e,t,n,r){if(!t.includes(n))return null;const o=Gd(n),s=qd(o,r),i=e[n];return nn(e,i,s)}function ec(e,t){const n=si(e.theme);return Object.keys(e).map(r=>Kd(e,t,r,n)).reduce(Rr,{})}function Ge(e){return ec(e,ri)}Ge.propTypes={};Ge.filterProps=ri;function qe(e){return ec(e,oi)}qe.propTypes={};qe.filterProps=oi;function zo(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Rr(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ot(e){return typeof e!="number"?e:`${e}px solid`}function Nt(e,t){return Je({prop:e,themeKey:"borders",transform:t})}const Qd=Nt("border",Ot),Xd=Nt("borderTop",Ot),Zd=Nt("borderRight",Ot),Jd=Nt("borderBottom",Ot),ep=Nt("borderLeft",Ot),tp=Nt("borderColor"),np=Nt("borderTopColor"),rp=Nt("borderRightColor"),op=Nt("borderBottomColor"),sp=Nt("borderLeftColor"),ip=Nt("outline",Ot),ap=Nt("outlineColor"),Wo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gr(t,r)});return nn(e,e.borderRadius,n)}return null};Wo.propTypes={};Wo.filterProps=["borderRadius"];zo(Qd,Xd,Zd,Jd,ep,tp,np,rp,op,sp,Wo,ip,ap);const _o=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yr(e.theme,"spacing",8),n=r=>({gap:Gr(t,r)});return nn(e,e.gap,n)}return null};_o.propTypes={};_o.filterProps=["gap"];const Ho=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yr(e.theme,"spacing",8),n=r=>({columnGap:Gr(t,r)});return nn(e,e.columnGap,n)}return null};Ho.propTypes={};Ho.filterProps=["columnGap"];const Uo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yr(e.theme,"spacing",8),n=r=>({rowGap:Gr(t,r)});return nn(e,e.rowGap,n)}return null};Uo.propTypes={};Uo.filterProps=["rowGap"];const lp=Je({prop:"gridColumn"}),cp=Je({prop:"gridRow"}),up=Je({prop:"gridAutoFlow"}),dp=Je({prop:"gridAutoColumns"}),pp=Je({prop:"gridAutoRows"}),fp=Je({prop:"gridTemplateColumns"}),mp=Je({prop:"gridTemplateRows"}),hp=Je({prop:"gridTemplateAreas"}),gp=Je({prop:"gridArea"});zo(_o,Ho,Uo,lp,cp,up,dp,pp,fp,mp,hp,gp);function Xn(e,t){return t==="grey"?t:e}const yp=Je({prop:"color",themeKey:"palette",transform:Xn}),bp=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xn}),vp=Je({prop:"backgroundColor",themeKey:"palette",transform:Xn});zo(yp,bp,vp);function kt(e){return e<=1&&e!==0?`${e*100}%`:e}const xp=Je({prop:"width",transform:kt}),ii=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Bo[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:kt(n)}};return nn(e,e.maxWidth,t)}return null};ii.filterProps=["maxWidth"];const Sp=Je({prop:"minWidth",transform:kt}),Cp=Je({prop:"height",transform:kt}),wp=Je({prop:"maxHeight",transform:kt}),Pp=Je({prop:"minHeight",transform:kt});Je({prop:"size",cssProperty:"width",transform:kt});Je({prop:"size",cssProperty:"height",transform:kt});const kp=Je({prop:"boxSizing"});zo(xp,ii,Sp,Cp,wp,Pp,kp);const qr={border:{themeKey:"borders",transform:Ot},borderTop:{themeKey:"borders",transform:Ot},borderRight:{themeKey:"borders",transform:Ot},borderBottom:{themeKey:"borders",transform:Ot},borderLeft:{themeKey:"borders",transform:Ot},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ot},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wo},color:{themeKey:"palette",transform:Xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xn},backgroundColor:{themeKey:"palette",transform:Xn},p:{style:qe},pt:{style:qe},pr:{style:qe},pb:{style:qe},pl:{style:qe},px:{style:qe},py:{style:qe},padding:{style:qe},paddingTop:{style:qe},paddingRight:{style:qe},paddingBottom:{style:qe},paddingLeft:{style:qe},paddingX:{style:qe},paddingY:{style:qe},paddingInline:{style:qe},paddingInlineStart:{style:qe},paddingInlineEnd:{style:qe},paddingBlock:{style:qe},paddingBlockStart:{style:qe},paddingBlockEnd:{style:qe},m:{style:Ge},mt:{style:Ge},mr:{style:Ge},mb:{style:Ge},ml:{style:Ge},mx:{style:Ge},my:{style:Ge},margin:{style:Ge},marginTop:{style:Ge},marginRight:{style:Ge},marginBottom:{style:Ge},marginLeft:{style:Ge},marginX:{style:Ge},marginY:{style:Ge},marginInline:{style:Ge},marginInlineStart:{style:Ge},marginInlineEnd:{style:Ge},marginBlock:{style:Ge},marginBlockStart:{style:Ge},marginBlockEnd:{style:Ge},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:_o},rowGap:{style:Uo},columnGap:{style:Ho},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kt},maxWidth:{style:ii},minWidth:{transform:kt},height:{transform:kt},maxHeight:{transform:kt},minHeight:{transform:kt},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 Mp(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Dp(e,t){return typeof e=="function"?e(t):e}function Ip(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Vo(o,c)||{};return d?d(i):nn(i,r,p=>{let g=ko(h,u,p);return p===g&&typeof p=="string"&&(g=ko(h,u,`${n}${p==="default"?"":ue(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??qr;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=_d(o.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(b=>{const p=Dp(c[b],o);if(p!=null)if(typeof p=="object")if(i[b])h=Rr(h,e(b,p,o,i));else{const g=nn({theme:o},p,y=>({[b]:y}));Mp(g,p)?h[b]=t({sx:p,theme:o,nested:!0}):h=Rr(h,g)}else h=Rr(h,e(b,p,o,i))}),!s&&o.modularCssLayers?{"@layer sx":pa(o,ma(d,h))}:pa(o,ma(d,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const nr=Ip();nr.filterProps=["sx"];const Tp=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??qr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Rp(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Tp(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return Gt(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function Op(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ai(e,t=0,n=1){return Op(e,t,n)}function $p(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function hn(e){if(e.type)return e;if(e.charAt(0)==="#")return hn($p(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(tn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(tn(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Ep=e=>{const t=hn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Mr=(e,t)=>{try{return Ep(e)}catch{return e}};function Yo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function tc(e){e=hn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Yo({type:a,values:l})}function As(e){e=hn(e);let t=e.type==="hsl"||e.type==="hsla"?hn(tc(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 Ap(e,t){const n=As(e),r=As(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Mo(e,t){return e=hn(e),t=ai(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yo(e)}function xn(e,t,n){try{return Mo(e,t)}catch{return e}}function Go(e,t){if(e=hn(e),t=ai(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 Yo(e)}function je(e,t,n){try{return Go(e,t)}catch{return e}}function qo(e,t){if(e=hn(e),t=ai(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 Yo(e)}function Be(e,t,n){try{return qo(e,t)}catch{return e}}function nc(e,t=.15){return As(e)>.5?Go(e,t):qo(e,t)}function so(e,t,n){try{return nc(e,t)}catch{return e}}const jr={black:"#000",white:"#fff"},Fp={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"},Wn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},_n={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},gr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Hn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Un={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function rc(){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:jr.white,default:jr.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 oc=rc();function sc(){return{text:{primary:jr.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:jr.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 Fs=sc();function ga(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qo(e.main,o):t==="dark"&&(e.dark=Go(e.main,s)))}function ya(e,t,n,r,o){const s=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Lp(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[700],light:Hn[400],dark:Hn[800]}}function Np(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[500],light:Wn[300],dark:Wn[700]}}function jp(e="light"){return e==="dark"?{main:_n[500],light:_n[300],dark:_n[700]}:{main:_n[700],light:_n[400],dark:_n[800]}}function Bp(e="light"){return e==="dark"?{main:Un[400],light:Un[300],dark:Un[700]}:{main:Un[700],light:Un[500],dark:Un[900]}}function Vp(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[800],light:Yn[500],dark:Yn[900]}}function zp(e="light"){return e==="dark"?{main:gr[400],light:gr[300],dark:gr[700]}:{main:"#ed6c02",light:gr[500],dark:gr[900]}}function Wp(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function li(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Lp(t),a=e.secondary||Np(t),l=e.error||jp(t),c=e.info||Bp(t),u=e.success||Vp(t),d=e.warning||zp(t);function h(y){return o?Wp(y):Ap(y,Fs.text.primary)>=n?Fs.text.primary:oc.text.primary}const b=({color:y,name:S,mainShade:P=500,lightShade:C=300,darkShade:x=700})=>{if(y={...y},!y.main&&y[P]&&(y.main=y[P]),!y.hasOwnProperty("main"))throw new Error(tn(11,S?` (${S})`:"",P));if(typeof y.main!="string")throw new Error(tn(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(ya(o,y,"light",C,r),ya(o,y,"dark",x,r)):(ga(y,"light",C,r),ga(y,"dark",x,r)),y.contrastText||(y.contrastText=h(y.main)),y};let p;return t==="light"?p=rc():t==="dark"&&(p=sc()),ft({common:{...jr},mode:t,primary:b({color:i,name:"primary"}),secondary:b({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:l,name:"error"}),warning:b({color:d,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:u,name:"success"}),grey:Fp,contrastThreshold:n,getContrastText:h,augmentColor:b,tonalOffset:r,...p},s)}function _p(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hp={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 Up(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yp=/[A-Z]|^ms/g,Gp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ic=function(t){return t.charCodeAt(1)===45},ba=function(t){return t!=null&&typeof t!="boolean"},Cs=Up(function(e){return ic(e)?e:e.replace(Yp,"-$&").toLowerCase()}),va=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Gp,function(r,o,s){return mn={name:o,styles:s,next:mn},o})}return Hp[t]!==1&&!ic(t)&&typeof n=="number"&&n!==0?n+"px":n};function Do(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return mn={name:o.name,styles:o.styles,next:mn},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)mn={name:i.name,styles:i.styles,next:mn},i=i.next;var a=s.styles+";";return a}return qp(e,t,n)}}var l=n;return l}function qp(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Do(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;ba(a)&&(r+=Cs(s)+":"+va(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ba(i[l])&&(r+=Cs(s)+":"+va(s,i[l])+";");else{var c=Do(e,t,i);switch(s){case"animation":case"animationName":{r+=Cs(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var xa=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function Kp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Do(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=Do(n,t,e[a]),r){var l=s;o+=l[a]}xa.lastIndex=0;for(var c="",u;(u=xa.exec(o))!==null;)c+="-"+u[1];var d=_p(o)+c;return{name:d,styles:o,next:mn}}function Qp(e,t){return Td(e,t)}function Xp(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Sa=[];function Rn(e){return Sa[0]=e,Kp(Sa)}const st=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Zp(e){return Object.keys(e).length===0}function ac(e=null){const t=v.useContext(Id.ThemeContext);return!t||Zp(t)?e:t}const Jp=v.createContext(),Wt=()=>v.useContext(Jp)??!1;function Br(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)r[s]=i||{};else if(!i)r[s]=a;else{r[s]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;r[s][c]=Br(i[c],a[c],n)}}}else s==="className"&&n&&t.className?r.className=me(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}const ef=v.createContext(void 0);function tf(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Br(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Br(o,r,t.components.mergeClassNameAndStyle):r}function nf({props:e,name:t}){const n=v.useContext(ef);return tf({props:e,name:t,theme:{components:n}})}let Ca=0;function rf(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(Ca+=1,n(`mui-${Ca}`))},[t]),r}const of={...v},wa=of.useId;function _t(e){if(wa!==void 0){const t=wa();return e??t}return rf(e)}const sf=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function af(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=sf(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,b){const p=i.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:b)-r/100}${n})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function d(h){const b=i.indexOf(h);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:d,unit:n,...o}}const lf={borderRadius:4};function cf(e=8,t=si({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function uf(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[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 ci(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=af(n),l=cf(o);let c=ft({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...lf,...s}},i);return c=zd(c),c.applyStyles=uf,c=t.reduce((u,d)=>ft(u,d),c),c.unstable_sxConfig={...qr,...i?.unstable_sxConfig},c.unstable_sx=function(d){return nr({sx:d,theme:this})},c}const df=ci();function pf(e=df){return ac(e)}const Pa=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},ff=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},mf=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ws(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return ff(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=mf(a,l);Object.assign(o,{[u]:d}),Pa(s,a,`var(${u})`,c),Pa(i,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function hf(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:h}=ws(c,t);let b=h;const p={},{[l]:g,...y}=i;if(Object.entries(y||{}).forEach(([x,I])=>{const{vars:M,css:$,varsWithDefaults:R}=ws(I,t);b=ft(b,R),p[x]={css:$,vars:M}}),g){const{css:x,vars:I,varsWithDefaults:M}=ws(g,t);b=ft(b,M),p[l]={css:x,vars:I}}function S(x,I){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),x){if(M==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":I}};if(M)return e.defaultColorScheme===x?`:root, ${M.replace("%s",String(x))}`:M.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...u};return Object.entries(p).forEach(([,{vars:I}])=>{x=ft(x,I)}),x},generateStyleSheets:()=>{const x=[],I=e.defaultColorScheme||"light";function M(E,F){Object.keys(F).length&&x.push(typeof E=="string"?{[E]:{...F}}:E)}M(n(void 0,{...d}),d);const{[I]:$,...R}=p;if($){const{css:E}=$,F=i[I]?.palette?.mode,T=!r&&F?{colorScheme:F,...E}:{...E};M(n(I,{...T}),T)}return Object.entries(R).forEach(([E,{css:F}])=>{const T=i[E]?.palette?.mode,m=!r&&T?{colorScheme:T,...F}:{...F};M(n(E,{...m}),m)}),s&&x.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)"}}),x}}}function gf(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function yf(e){return function(n){return e==="media"?`@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 bf={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 Se(e,t,n="Mui"){const r=bf[t];return r?`${n}-${r}`:`${Ql.generate(e)}-${t}`}function vf(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function xf(e){return Math.round(e*1e5)/1e5}const ka={textTransform:"uppercase"},Ma='"Roboto", "Helvetica", "Arial", sans-serif';function Sf(e,t){const{fontFamily:n=Ma,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,h=r/14,b=u||(y=>`${y/l*h}rem`),p=(y,S,P,C,x)=>({fontFamily:n,fontWeight:y,fontSize:b(S),lineHeight:P,...n===Ma?{letterSpacing:`${xf(C/S)}em`}:{},...x,...c}),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(s,48,1.167,0),h4:p(s,34,1.235,.25),h5:p(s,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(s,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(s,16,1.5,.15),body2:p(s,14,1.43,.15),button:p(i,14,1.75,.4,ka),caption:p(s,12,1.66,.4),overline:p(s,12,2.66,1,ka),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ft({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...g},d,{clone:!1})}const Cf=.2,wf=.14,Pf=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Pf})`].join(",")}const kf=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],Mf={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)"},Df={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Da(e){return`${Math.round(e)}ms`}function If(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tf(e){const t={...Mf,...e.easing},n={...Df,...e.duration};return{getAutoHeightDuration:If,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Da(i)} ${a} ${typeof l=="string"?l:Da(l)}`).join(",")},...e,easing:t,duration:n}}const Rf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Of(e){return Gt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function lc(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!Of(a)||i.startsWith("unstable_")?delete r[i]:Gt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
9
|
+
*/var ca;function Nd(){if(ca)return ze;ca=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function p(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case o:case r:case l:case c:case h:return g;default:switch(g=g&&g.$$typeof,g){case i:case a:case d:case u:return g;case s:return g;default:return y}}case t:return y}}}return ze.ContextConsumer=s,ze.ContextProvider=i,ze.Element=e,ze.ForwardRef=a,ze.Fragment=n,ze.Lazy=d,ze.Memo=u,ze.Portal=t,ze.Profiler=o,ze.StrictMode=r,ze.Suspense=l,ze.SuspenseList=c,ze.isContextConsumer=function(g){return p(g)===s},ze.isContextProvider=function(g){return p(g)===i},ze.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ze.isForwardRef=function(g){return p(g)===a},ze.isFragment=function(g){return p(g)===n},ze.isLazy=function(g){return p(g)===d},ze.isMemo=function(g){return p(g)===u},ze.isPortal=function(g){return p(g)===t},ze.isProfiler=function(g){return p(g)===o},ze.isStrictMode=function(g){return p(g)===r},ze.isSuspense=function(g){return p(g)===l},ze.isSuspenseList=function(g){return p(g)===c},ze.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===l||g===c||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===i||g.$$typeof===s||g.$$typeof===a||g.$$typeof===b||g.getModuleId!==void 0)},ze.typeOf=p,ze}var ua;function jd(){return ua||(ua=1,Ss.exports=Nd()),Ss.exports}var Xl=jd();function Gt(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 Zl(e){if(v.isValidElement(e)||Xl.isValidElementType(e)||!Gt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zl(e[n])}),t}function ft(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Gt(e)&&Gt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||Xl.isValidElementType(t[o])?r[o]=t[o]:Gt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gt(e[o])?r[o]=ft(e[o],t[o],n):n.clone?r[o]=Gt(t[o])?Zl(t[o]):t[o]:r[o]=t[o]}),r}function Rr(e,t){return t?ft(e,t,{clone:!1}):e}function da(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function Bd(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Vd(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function zd(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Bo={xs:0,sm:600,md:900,lg:1200,xl:1536},pa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bo[e]}px)`},Wd={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Bo[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 r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||pa;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||pa;return Object.keys(t).reduce((i,a)=>{if(Bd(s.keys,a)){const l=Vd(r.containerQueries?r:Wd,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Bo).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function _d(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function fa(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Vo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ko(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vo(e,n)||r,t&&(o=t(o,r,e)),o}function Je(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=Vo(l,r)||{};return nn(i,a,d=>{let h=ko(c,o,d);return d===h&&typeof d=="string"&&(h=ko(c,o,`${t}${d==="default"?"":ue(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function Hd(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ud={m:"margin",p:"padding"},Yd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ma={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gd=Hd(e=>{if(e.length>2)if(ma[e])e=ma[e];else return[e];const[t,n]=e.split(""),r=Ud[t],o=Yd[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),ni=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ri=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ni,...ri];function Yr(e,t,n,r){const o=Vo(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:()=>{}}function oi(e){return Yr(e,"spacing",8)}function Gr(e,t){return typeof t=="string"||t==null?t:e(t)}function qd(e,t){return n=>e.reduce((r,o)=>(r[o]=Gr(t,n),r),{})}function Kd(e,t,n,r){if(!t.includes(n))return null;const o=Gd(n),s=qd(o,r),i=e[n];return nn(e,i,s)}function Jl(e,t){const n=oi(e.theme);return Object.keys(e).map(r=>Kd(e,t,r,n)).reduce(Rr,{})}function qe(e){return Jl(e,ni)}qe.propTypes={};qe.filterProps=ni;function Ke(e){return Jl(e,ri)}Ke.propTypes={};Ke.filterProps=ri;function zo(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Rr(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ot(e){return typeof e!="number"?e:`${e}px solid`}function Nt(e,t){return Je({prop:e,themeKey:"borders",transform:t})}const Qd=Nt("border",Ot),Xd=Nt("borderTop",Ot),Zd=Nt("borderRight",Ot),Jd=Nt("borderBottom",Ot),ep=Nt("borderLeft",Ot),tp=Nt("borderColor"),np=Nt("borderTopColor"),rp=Nt("borderRightColor"),op=Nt("borderBottomColor"),sp=Nt("borderLeftColor"),ip=Nt("outline",Ot),ap=Nt("outlineColor"),Wo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gr(t,r)});return nn(e,e.borderRadius,n)}return null};Wo.propTypes={};Wo.filterProps=["borderRadius"];zo(Qd,Xd,Zd,Jd,ep,tp,np,rp,op,sp,Wo,ip,ap);const _o=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yr(e.theme,"spacing",8),n=r=>({gap:Gr(t,r)});return nn(e,e.gap,n)}return null};_o.propTypes={};_o.filterProps=["gap"];const Ho=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yr(e.theme,"spacing",8),n=r=>({columnGap:Gr(t,r)});return nn(e,e.columnGap,n)}return null};Ho.propTypes={};Ho.filterProps=["columnGap"];const Uo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yr(e.theme,"spacing",8),n=r=>({rowGap:Gr(t,r)});return nn(e,e.rowGap,n)}return null};Uo.propTypes={};Uo.filterProps=["rowGap"];const lp=Je({prop:"gridColumn"}),cp=Je({prop:"gridRow"}),up=Je({prop:"gridAutoFlow"}),dp=Je({prop:"gridAutoColumns"}),pp=Je({prop:"gridAutoRows"}),fp=Je({prop:"gridTemplateColumns"}),mp=Je({prop:"gridTemplateRows"}),hp=Je({prop:"gridTemplateAreas"}),gp=Je({prop:"gridArea"});zo(_o,Ho,Uo,lp,cp,up,dp,pp,fp,mp,hp,gp);function Xn(e,t){return t==="grey"?t:e}const yp=Je({prop:"color",themeKey:"palette",transform:Xn}),bp=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xn}),vp=Je({prop:"backgroundColor",themeKey:"palette",transform:Xn});zo(yp,bp,vp);function kt(e){return e<=1&&e!==0?`${e*100}%`:e}const xp=Je({prop:"width",transform:kt}),si=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Bo[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:kt(n)}};return nn(e,e.maxWidth,t)}return null};si.filterProps=["maxWidth"];const Sp=Je({prop:"minWidth",transform:kt}),Cp=Je({prop:"height",transform:kt}),wp=Je({prop:"maxHeight",transform:kt}),Pp=Je({prop:"minHeight",transform:kt});Je({prop:"size",cssProperty:"width",transform:kt});Je({prop:"size",cssProperty:"height",transform:kt});const kp=Je({prop:"boxSizing"});zo(xp,si,Sp,Cp,wp,Pp,kp);const qr={border:{themeKey:"borders",transform:Ot},borderTop:{themeKey:"borders",transform:Ot},borderRight:{themeKey:"borders",transform:Ot},borderBottom:{themeKey:"borders",transform:Ot},borderLeft:{themeKey:"borders",transform:Ot},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ot},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wo},color:{themeKey:"palette",transform:Xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xn},backgroundColor:{themeKey:"palette",transform:Xn},p:{style:Ke},pt:{style:Ke},pr:{style:Ke},pb:{style:Ke},pl:{style:Ke},px:{style:Ke},py:{style:Ke},padding:{style:Ke},paddingTop:{style:Ke},paddingRight:{style:Ke},paddingBottom:{style:Ke},paddingLeft:{style:Ke},paddingX:{style:Ke},paddingY:{style:Ke},paddingInline:{style:Ke},paddingInlineStart:{style:Ke},paddingInlineEnd:{style:Ke},paddingBlock:{style:Ke},paddingBlockStart:{style:Ke},paddingBlockEnd:{style:Ke},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},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:_o},rowGap:{style:Uo},columnGap:{style:Ho},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kt},maxWidth:{style:si},minWidth:{transform:kt},height:{transform:kt},maxHeight:{transform:kt},minHeight:{transform:kt},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 Mp(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Dp(e,t){return typeof e=="function"?e(t):e}function Ip(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Vo(o,c)||{};return d?d(i):nn(i,r,p=>{let g=ko(h,u,p);return p===g&&typeof p=="string"&&(g=ko(h,u,`${n}${p==="default"?"":ue(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??qr;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=_d(o.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(b=>{const p=Dp(c[b],o);if(p!=null)if(typeof p=="object")if(i[b])h=Rr(h,e(b,p,o,i));else{const g=nn({theme:o},p,y=>({[b]:y}));Mp(g,p)?h[b]=t({sx:p,theme:o,nested:!0}):h=Rr(h,g)}else h=Rr(h,e(b,p,o,i))}),!s&&o.modularCssLayers?{"@layer sx":da(o,fa(d,h))}:da(o,fa(d,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const nr=Ip();nr.filterProps=["sx"];const Tp=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??qr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Rp(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Tp(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return Gt(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function Op(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ii(e,t=0,n=1){return Op(e,t,n)}function $p(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function hn(e){if(e.type)return e;if(e.charAt(0)==="#")return hn($p(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(tn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(tn(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Ep=e=>{const t=hn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Mr=(e,t)=>{try{return Ep(e)}catch{return e}};function Yo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ec(e){e=hn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Yo({type:a,values:l})}function As(e){e=hn(e);let t=e.type==="hsl"||e.type==="hsla"?hn(ec(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 Ap(e,t){const n=As(e),r=As(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Mo(e,t){return e=hn(e),t=ii(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yo(e)}function xn(e,t,n){try{return Mo(e,t)}catch{return e}}function Go(e,t){if(e=hn(e),t=ii(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 Yo(e)}function je(e,t,n){try{return Go(e,t)}catch{return e}}function qo(e,t){if(e=hn(e),t=ii(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 Yo(e)}function Be(e,t,n){try{return qo(e,t)}catch{return e}}function tc(e,t=.15){return As(e)>.5?Go(e,t):qo(e,t)}function so(e,t,n){try{return tc(e,t)}catch{return e}}const jr={black:"#000",white:"#fff"},Fp={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"},Wn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},_n={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},gr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Hn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Un={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function nc(){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:jr.white,default:jr.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 rc=nc();function oc(){return{text:{primary:jr.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:jr.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 Fs=oc();function ha(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qo(e.main,o):t==="dark"&&(e.dark=Go(e.main,s)))}function ga(e,t,n,r,o){const s=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Lp(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[700],light:Hn[400],dark:Hn[800]}}function Np(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[500],light:Wn[300],dark:Wn[700]}}function jp(e="light"){return e==="dark"?{main:_n[500],light:_n[300],dark:_n[700]}:{main:_n[700],light:_n[400],dark:_n[800]}}function Bp(e="light"){return e==="dark"?{main:Un[400],light:Un[300],dark:Un[700]}:{main:Un[700],light:Un[500],dark:Un[900]}}function Vp(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[800],light:Yn[500],dark:Yn[900]}}function zp(e="light"){return e==="dark"?{main:gr[400],light:gr[300],dark:gr[700]}:{main:"#ed6c02",light:gr[500],dark:gr[900]}}function Wp(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ai(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Lp(t),a=e.secondary||Np(t),l=e.error||jp(t),c=e.info||Bp(t),u=e.success||Vp(t),d=e.warning||zp(t);function h(y){return o?Wp(y):Ap(y,Fs.text.primary)>=n?Fs.text.primary:rc.text.primary}const b=({color:y,name:S,mainShade:P=500,lightShade:C=300,darkShade:x=700})=>{if(y={...y},!y.main&&y[P]&&(y.main=y[P]),!y.hasOwnProperty("main"))throw new Error(tn(11,S?` (${S})`:"",P));if(typeof y.main!="string")throw new Error(tn(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(ga(o,y,"light",C,r),ga(o,y,"dark",x,r)):(ha(y,"light",C,r),ha(y,"dark",x,r)),y.contrastText||(y.contrastText=h(y.main)),y};let p;return t==="light"?p=nc():t==="dark"&&(p=oc()),ft({common:{...jr},mode:t,primary:b({color:i,name:"primary"}),secondary:b({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:l,name:"error"}),warning:b({color:d,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:u,name:"success"}),grey:Fp,contrastThreshold:n,getContrastText:h,augmentColor:b,tonalOffset:r,...p},s)}function _p(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hp={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 Up(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yp=/[A-Z]|^ms/g,Gp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sc=function(t){return t.charCodeAt(1)===45},ya=function(t){return t!=null&&typeof t!="boolean"},Cs=Up(function(e){return sc(e)?e:e.replace(Yp,"-$&").toLowerCase()}),ba=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Gp,function(r,o,s){return mn={name:o,styles:s,next:mn},o})}return Hp[t]!==1&&!sc(t)&&typeof n=="number"&&n!==0?n+"px":n};function Do(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return mn={name:o.name,styles:o.styles,next:mn},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)mn={name:i.name,styles:i.styles,next:mn},i=i.next;var a=s.styles+";";return a}return qp(e,t,n)}}var l=n;return l}function qp(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Do(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;ya(a)&&(r+=Cs(s)+":"+ba(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ya(i[l])&&(r+=Cs(s)+":"+ba(s,i[l])+";");else{var c=Do(e,t,i);switch(s){case"animation":case"animationName":{r+=Cs(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var va=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function Kp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Do(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=Do(n,t,e[a]),r){var l=s;o+=l[a]}va.lastIndex=0;for(var c="",u;(u=va.exec(o))!==null;)c+="-"+u[1];var d=_p(o)+c;return{name:d,styles:o,next:mn}}function Qp(e,t){return Td(e,t)}function Xp(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const xa=[];function Rn(e){return xa[0]=e,Kp(xa)}const st=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Zp(e){return Object.keys(e).length===0}function ic(e=null){const t=v.useContext(Id.ThemeContext);return!t||Zp(t)?e:t}const Jp=v.createContext(),Wt=()=>v.useContext(Jp)??!1;function Br(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)r[s]=i||{};else if(!i)r[s]=a;else{r[s]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;r[s][c]=Br(i[c],a[c],n)}}}else s==="className"&&n&&t.className?r.className=me(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}const ef=v.createContext(void 0);function tf(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Br(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Br(o,r,t.components.mergeClassNameAndStyle):r}function nf({props:e,name:t}){const n=v.useContext(ef);return tf({props:e,name:t,theme:{components:n}})}let Sa=0;function rf(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(Sa+=1,n(`mui-${Sa}`))},[t]),r}const of={...v},Ca=of.useId;function _t(e){if(Ca!==void 0){const t=Ca();return e??t}return rf(e)}const sf=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function af(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=sf(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,b){const p=i.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:b)-r/100}${n})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function d(h){const b=i.indexOf(h);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:d,unit:n,...o}}const lf={borderRadius:4};function cf(e=8,t=oi({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function uf(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[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 li(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=af(n),l=cf(o);let c=ft({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...lf,...s}},i);return c=zd(c),c.applyStyles=uf,c=t.reduce((u,d)=>ft(u,d),c),c.unstable_sxConfig={...qr,...i?.unstable_sxConfig},c.unstable_sx=function(d){return nr({sx:d,theme:this})},c}const df=li();function pf(e=df){return ic(e)}const wa=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},ff=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},mf=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ws(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return ff(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=mf(a,l);Object.assign(o,{[u]:d}),wa(s,a,`var(${u})`,c),wa(i,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function hf(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:h}=ws(c,t);let b=h;const p={},{[l]:g,...y}=i;if(Object.entries(y||{}).forEach(([x,I])=>{const{vars:M,css:$,varsWithDefaults:R}=ws(I,t);b=ft(b,R),p[x]={css:$,vars:M}}),g){const{css:x,vars:I,varsWithDefaults:M}=ws(g,t);b=ft(b,M),p[l]={css:x,vars:I}}function S(x,I){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),x){if(M==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":I}};if(M)return e.defaultColorScheme===x?`:root, ${M.replace("%s",String(x))}`:M.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...u};return Object.entries(p).forEach(([,{vars:I}])=>{x=ft(x,I)}),x},generateStyleSheets:()=>{const x=[],I=e.defaultColorScheme||"light";function M(E,F){Object.keys(F).length&&x.push(typeof E=="string"?{[E]:{...F}}:E)}M(n(void 0,{...d}),d);const{[I]:$,...R}=p;if($){const{css:E}=$,F=i[I]?.palette?.mode,T=!r&&F?{colorScheme:F,...E}:{...E};M(n(I,{...T}),T)}return Object.entries(R).forEach(([E,{css:F}])=>{const T=i[E]?.palette?.mode,m=!r&&T?{colorScheme:T,...F}:{...F};M(n(E,{...m}),m)}),s&&x.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)"}}),x}}}function gf(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function yf(e){return function(n){return e==="media"?`@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 bf={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 Se(e,t,n="Mui"){const r=bf[t];return r?`${n}-${r}`:`${Kl.generate(e)}-${t}`}function vf(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function xf(e){return Math.round(e*1e5)/1e5}const Pa={textTransform:"uppercase"},ka='"Roboto", "Helvetica", "Arial", sans-serif';function Sf(e,t){const{fontFamily:n=ka,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,h=r/14,b=u||(y=>`${y/l*h}rem`),p=(y,S,P,C,x)=>({fontFamily:n,fontWeight:y,fontSize:b(S),lineHeight:P,...n===ka?{letterSpacing:`${xf(C/S)}em`}:{},...x,...c}),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(s,48,1.167,0),h4:p(s,34,1.235,.25),h5:p(s,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(s,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(s,16,1.5,.15),body2:p(s,14,1.43,.15),button:p(i,14,1.75,.4,Pa),caption:p(s,12,1.66,.4),overline:p(s,12,2.66,1,Pa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ft({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...g},d,{clone:!1})}const Cf=.2,wf=.14,Pf=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Pf})`].join(",")}const kf=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],Mf={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)"},Df={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ma(e){return`${Math.round(e)}ms`}function If(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tf(e){const t={...Mf,...e.easing},n={...Df,...e.duration};return{getAutoHeightDuration:If,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Ma(i)} ${a} ${typeof l=="string"?l:Ma(l)}`).join(",")},...e,easing:t,duration:n}}const Rf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Of(e){return Gt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ac(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!Of(a)||i.startsWith("unstable_")?delete r[i]:Gt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
10
10
|
|
|
11
11
|
const theme = ${JSON.stringify(t,null,2)};
|
|
12
12
|
|
|
13
13
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
14
14
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
15
15
|
|
|
16
|
-
export default theme;`}function Ia(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const $f=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Ef(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Mo(t,$f(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ia(n)})`:qo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ia(n)})`:Go(t,n)}})}function Ls(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:i={},typography:a={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(tn(20));const d=li({...s,colorSpace:c}),h=ci(e);let b=ft(h,{mixins:vf(h.breakpoints,r),palette:d,shadows:kf.slice(),typography:Sf(d,a),transitions:Tf(i),zIndex:{...Rf}});return b=ft(b,u),b=t.reduce((p,g)=>ft(p,g),b),b.unstable_sxConfig={...qr,...u?.unstable_sxConfig},b.unstable_sx=function(g){return nr({sx:g,theme:this})},b.toRuntimeSource=lc,Ef(b),b}function Ns(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 Af=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ns(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function cc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uc(e){return e==="dark"?Af:[]}function Ff(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=li({...t,colorSpace:o});return{palette:i,opacity:{...cc(i.mode),...n},overlays:r||uc(i.mode),...s}}function Lf(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Nf=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],jf=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Nf(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function Bf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Q(e,t,n){!e[t]&&n&&(e[t]=n)}function Dr(e){return typeof e!="string"||!e.startsWith("hsl")?e:tc(e)}function Jt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mr(Dr(e[t])))}function Vf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ut=e=>{try{return e()}catch{}},zf=(e="mui")=>Qe.unstable_createGetCssVar(e);function Ps(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Ff({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=Ls({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...cc(s),...n?.opacity},overlays:n?.overlays||uc(s)},a}function Wf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Lf,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),b=zf(s),{[h]:p,light:g,dark:y,...S}=n,P={...S};let C=p;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(tn(21,h));let x;i&&(x="oklch");const I=Ps(x,P,C,u,h);g&&!P.light&&Ps(x,P,g,void 0,"light"),y&&!P.dark&&Ps(x,P,y,void 0,"dark");let M={defaultColorScheme:h,...I,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:P,font:{...gf(I.typography),...I.font},spacing:Vf(u.spacing)};Object.keys(M.colorSchemes).forEach(T=>{const m=M.colorSchemes[T].palette,O=k=>{const w=k.split("-"),A=w[1],L=w[2];return b(k,m[A][L])};m.mode==="light"&&(Q(m.common,"background","#fff"),Q(m.common,"onBackground","#000")),m.mode==="dark"&&(Q(m.common,"background","#000"),Q(m.common,"onBackground","#fff"));function D(k,w,A){if(x){let L;return k===xn&&(L=`transparent ${((1-A)*100).toFixed(0)}%`),k===je&&(L=`#000 ${(A*100).toFixed(0)}%`),k===Be&&(L=`#fff ${(A*100).toFixed(0)}%`),`color-mix(in ${x}, ${w}, ${L})`}return k(w,A)}if(Bf(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){Q(m.Alert,"errorColor",D(je,m.error.light,.6)),Q(m.Alert,"infoColor",D(je,m.info.light,.6)),Q(m.Alert,"successColor",D(je,m.success.light,.6)),Q(m.Alert,"warningColor",D(je,m.warning.light,.6)),Q(m.Alert,"errorFilledBg",O("palette-error-main")),Q(m.Alert,"infoFilledBg",O("palette-info-main")),Q(m.Alert,"successFilledBg",O("palette-success-main")),Q(m.Alert,"warningFilledBg",O("palette-warning-main")),Q(m.Alert,"errorFilledColor",Ut(()=>m.getContrastText(m.error.main))),Q(m.Alert,"infoFilledColor",Ut(()=>m.getContrastText(m.info.main))),Q(m.Alert,"successFilledColor",Ut(()=>m.getContrastText(m.success.main))),Q(m.Alert,"warningFilledColor",Ut(()=>m.getContrastText(m.warning.main))),Q(m.Alert,"errorStandardBg",D(Be,m.error.light,.9)),Q(m.Alert,"infoStandardBg",D(Be,m.info.light,.9)),Q(m.Alert,"successStandardBg",D(Be,m.success.light,.9)),Q(m.Alert,"warningStandardBg",D(Be,m.warning.light,.9)),Q(m.Alert,"errorIconColor",O("palette-error-main")),Q(m.Alert,"infoIconColor",O("palette-info-main")),Q(m.Alert,"successIconColor",O("palette-success-main")),Q(m.Alert,"warningIconColor",O("palette-warning-main")),Q(m.AppBar,"defaultBg",O("palette-grey-100")),Q(m.Avatar,"defaultBg",O("palette-grey-400")),Q(m.Button,"inheritContainedBg",O("palette-grey-300")),Q(m.Button,"inheritContainedHoverBg",O("palette-grey-A100")),Q(m.Chip,"defaultBorder",O("palette-grey-400")),Q(m.Chip,"defaultAvatarColor",O("palette-grey-700")),Q(m.Chip,"defaultIconColor",O("palette-grey-700")),Q(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(m.LinearProgress,"primaryBg",D(Be,m.primary.main,.62)),Q(m.LinearProgress,"secondaryBg",D(Be,m.secondary.main,.62)),Q(m.LinearProgress,"errorBg",D(Be,m.error.main,.62)),Q(m.LinearProgress,"infoBg",D(Be,m.info.main,.62)),Q(m.LinearProgress,"successBg",D(Be,m.success.main,.62)),Q(m.LinearProgress,"warningBg",D(Be,m.warning.main,.62)),Q(m.Skeleton,"bg",x?D(xn,m.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),Q(m.Slider,"primaryTrack",D(Be,m.primary.main,.62)),Q(m.Slider,"secondaryTrack",D(Be,m.secondary.main,.62)),Q(m.Slider,"errorTrack",D(Be,m.error.main,.62)),Q(m.Slider,"infoTrack",D(Be,m.info.main,.62)),Q(m.Slider,"successTrack",D(Be,m.success.main,.62)),Q(m.Slider,"warningTrack",D(Be,m.warning.main,.62));const k=x?D(je,m.background.default,.6825):so(m.background.default,.8);Q(m.SnackbarContent,"bg",k),Q(m.SnackbarContent,"color",Ut(()=>x?Fs.text.primary:m.getContrastText(k))),Q(m.SpeedDialAction,"fabHoverBg",so(m.background.paper,.15)),Q(m.StepConnector,"border",O("palette-grey-400")),Q(m.StepContent,"border",O("palette-grey-400")),Q(m.Switch,"defaultColor",O("palette-common-white")),Q(m.Switch,"defaultDisabledColor",O("palette-grey-100")),Q(m.Switch,"primaryDisabledColor",D(Be,m.primary.main,.62)),Q(m.Switch,"secondaryDisabledColor",D(Be,m.secondary.main,.62)),Q(m.Switch,"errorDisabledColor",D(Be,m.error.main,.62)),Q(m.Switch,"infoDisabledColor",D(Be,m.info.main,.62)),Q(m.Switch,"successDisabledColor",D(Be,m.success.main,.62)),Q(m.Switch,"warningDisabledColor",D(Be,m.warning.main,.62)),Q(m.TableCell,"border",D(Be,D(xn,m.divider,1),.88)),Q(m.Tooltip,"bg",D(xn,m.grey[700],.92))}if(m.mode==="dark"){Q(m.Alert,"errorColor",D(Be,m.error.light,.6)),Q(m.Alert,"infoColor",D(Be,m.info.light,.6)),Q(m.Alert,"successColor",D(Be,m.success.light,.6)),Q(m.Alert,"warningColor",D(Be,m.warning.light,.6)),Q(m.Alert,"errorFilledBg",O("palette-error-dark")),Q(m.Alert,"infoFilledBg",O("palette-info-dark")),Q(m.Alert,"successFilledBg",O("palette-success-dark")),Q(m.Alert,"warningFilledBg",O("palette-warning-dark")),Q(m.Alert,"errorFilledColor",Ut(()=>m.getContrastText(m.error.dark))),Q(m.Alert,"infoFilledColor",Ut(()=>m.getContrastText(m.info.dark))),Q(m.Alert,"successFilledColor",Ut(()=>m.getContrastText(m.success.dark))),Q(m.Alert,"warningFilledColor",Ut(()=>m.getContrastText(m.warning.dark))),Q(m.Alert,"errorStandardBg",D(je,m.error.light,.9)),Q(m.Alert,"infoStandardBg",D(je,m.info.light,.9)),Q(m.Alert,"successStandardBg",D(je,m.success.light,.9)),Q(m.Alert,"warningStandardBg",D(je,m.warning.light,.9)),Q(m.Alert,"errorIconColor",O("palette-error-main")),Q(m.Alert,"infoIconColor",O("palette-info-main")),Q(m.Alert,"successIconColor",O("palette-success-main")),Q(m.Alert,"warningIconColor",O("palette-warning-main")),Q(m.AppBar,"defaultBg",O("palette-grey-900")),Q(m.AppBar,"darkBg",O("palette-background-paper")),Q(m.AppBar,"darkColor",O("palette-text-primary")),Q(m.Avatar,"defaultBg",O("palette-grey-600")),Q(m.Button,"inheritContainedBg",O("palette-grey-800")),Q(m.Button,"inheritContainedHoverBg",O("palette-grey-700")),Q(m.Chip,"defaultBorder",O("palette-grey-700")),Q(m.Chip,"defaultAvatarColor",O("palette-grey-300")),Q(m.Chip,"defaultIconColor",O("palette-grey-300")),Q(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(m.LinearProgress,"primaryBg",D(je,m.primary.main,.5)),Q(m.LinearProgress,"secondaryBg",D(je,m.secondary.main,.5)),Q(m.LinearProgress,"errorBg",D(je,m.error.main,.5)),Q(m.LinearProgress,"infoBg",D(je,m.info.main,.5)),Q(m.LinearProgress,"successBg",D(je,m.success.main,.5)),Q(m.LinearProgress,"warningBg",D(je,m.warning.main,.5)),Q(m.Skeleton,"bg",x?D(xn,m.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),Q(m.Slider,"primaryTrack",D(je,m.primary.main,.5)),Q(m.Slider,"secondaryTrack",D(je,m.secondary.main,.5)),Q(m.Slider,"errorTrack",D(je,m.error.main,.5)),Q(m.Slider,"infoTrack",D(je,m.info.main,.5)),Q(m.Slider,"successTrack",D(je,m.success.main,.5)),Q(m.Slider,"warningTrack",D(je,m.warning.main,.5));const k=x?D(Be,m.background.default,.985):so(m.background.default,.98);Q(m.SnackbarContent,"bg",k),Q(m.SnackbarContent,"color",Ut(()=>x?oc.text.primary:m.getContrastText(k))),Q(m.SpeedDialAction,"fabHoverBg",so(m.background.paper,.15)),Q(m.StepConnector,"border",O("palette-grey-600")),Q(m.StepContent,"border",O("palette-grey-600")),Q(m.Switch,"defaultColor",O("palette-grey-300")),Q(m.Switch,"defaultDisabledColor",O("palette-grey-600")),Q(m.Switch,"primaryDisabledColor",D(je,m.primary.main,.55)),Q(m.Switch,"secondaryDisabledColor",D(je,m.secondary.main,.55)),Q(m.Switch,"errorDisabledColor",D(je,m.error.main,.55)),Q(m.Switch,"infoDisabledColor",D(je,m.info.main,.55)),Q(m.Switch,"successDisabledColor",D(je,m.success.main,.55)),Q(m.Switch,"warningDisabledColor",D(je,m.warning.main,.55)),Q(m.TableCell,"border",D(je,D(xn,m.divider,1),.68)),Q(m.Tooltip,"bg",D(xn,m.grey[700],.92))}Jt(m.background,"default"),Jt(m.background,"paper"),Jt(m.common,"background"),Jt(m.common,"onBackground"),Jt(m,"divider"),Object.keys(m).forEach(k=>{const w=m[k];k!=="tonalOffset"&&w&&typeof w=="object"&&(w.main&&Q(m[k],"mainChannel",Mr(Dr(w.main))),w.light&&Q(m[k],"lightChannel",Mr(Dr(w.light))),w.dark&&Q(m[k],"darkChannel",Mr(Dr(w.dark))),w.contrastText&&Q(m[k],"contrastTextChannel",Mr(Dr(w.contrastText))),k==="text"&&(Jt(m[k],"primary"),Jt(m[k],"secondary")),k==="action"&&(w.active&&Jt(m[k],"active"),w.selected&&Jt(m[k],"selected")))})}),M=t.reduce((T,m)=>ft(T,m),M);const $={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:jf(M),enableContrastVars:i},{vars:R,generateThemeVars:E,generateStyleSheets:F}=hf(M,$);return M.vars=R,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([T,m])=>{M[T]=m}),M.generateThemeVars=E,M.generateStyleSheets=F,M.generateSpacing=function(){return Qe.createSpacing(u.spacing,si(this))},M.getColorSchemeSelector=yf(l),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=a,M.unstable_sxConfig={...qr,...u?.unstable_sxConfig},M.unstable_sx=function(m){return nr({sx:m,theme:this})},M.toRuntimeSource=lc,M}function Ta(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:li({...n===!0?{}:n.palette,mode:t})})}function dc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...i}=e,a=s||"light",l=o?.[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ls(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=Ls({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Ta(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Ta(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Wf({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Ko=dc(),ur="$$material";function Fn(){const e=Qe.useTheme(Ko);return e[ur]||e}function _f(e){return f.jsx(Qe.GlobalStyles,{...e,defaultTheme:Ko,themeId:ur})}function Hf(e){const{variants:t,...n}=e,r={variants:t,style:Rn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Rn(o.style))}),r}const Uf=ci();function ks(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function In(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Yf(e){return e?(t,n)=>n[e]:null}function Gf(e,t,n){e.theme=Qf(e.theme)?n:e.theme[t]||e.theme}function mo(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>mo(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?In(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?In(Rn(i),n):i}return pc(e,r.variants,[o],n)}return r?.isProcessed?n?In(Rn(r.style),n):r.style:n?In(Rn(r),n):r}function pc(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const i=t[s];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?In(Rn(i.style(o)),r):i.style(o))):n.push(r?In(Rn(i.style),r):i.style)}return n}function qf(e={}){const{themeId:t,defaultTheme:n=Uf,rootShouldForwardProp:r=ks,slotShouldForwardProp:o=ks}=e;function s(a){Gf(a,t,n)}return(a,l={})=>{Xp(a,M=>M.filter($=>$!==nr));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:b=Yf(Zf(u)),...p}=l,g=c&&c.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=h||!1;let P=ks;u==="Root"||u==="root"?P=r:u?P=o:Xf(a)&&(P=void 0);const C=Qp(a,{shouldForwardProp:P,label:Kf(),...p}),x=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(R){return mo(R,M,R.theme.modularCssLayers?g:void 0)};if(Gt(M)){const $=Hf(M);return function(E){return $.variants?mo(E,$,E.theme.modularCssLayers?g:void 0):E.theme.modularCssLayers?In($.style,g):$.style}}return M},I=(...M)=>{const $=[],R=M.map(x),E=[];if($.push(s),c&&b&&E.push(function(O){const k=O.theme.components?.[c]?.styleOverrides;if(!k)return null;const w={};for(const A in k)w[A]=mo(O,k[A],O.theme.modularCssLayers?"theme":void 0);return b(O,w)}),c&&!y&&E.push(function(O){const k=O.theme?.components?.[c]?.variants;return k?pc(O,k,[],O.theme.modularCssLayers?"theme":void 0):null}),S||E.push(nr),Array.isArray(R[0])){const m=R.shift(),O=new Array($.length).fill(""),D=new Array(E.length).fill("");let k;k=[...O,...m,...D],k.raw=[...O,...m.raw,...D],$.unshift(k)}const F=[...$,...R,...E],T=C(...F);return a.muiName&&(T.muiName=a.muiName),T};return C.withConfig&&(I.withConfig=C.withConfig),I}}function Kf(e,t){return void 0}function Qf(e){for(const t in e)return!1;return!0}function Xf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jt=e=>fc(e)&&e!=="classes",_=qf({themeId:ur,defaultTheme:Ko,rootShouldForwardProp:jt});function Jf(e){return function(n){return f.jsx(_f,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function em(){return Rp}const Re=Qe.unstable_memoTheme;function Oe(e){return nf(e)}function be(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Se(e,o,n)}),r}function tm(e){return Se("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return ve(o,tm,r)},rm=_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(Re(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Io=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...b}=r,p=v.isValidElement(o)&&o.type==="svg",g={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},y={};u||(y.viewBox=h);const S=nm(g);return f.jsxs(rm,{as:a,className:me(S.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...y,...b,...p&&o.props,ownerState:g,children:[p?o.props.children:o,d?f.jsx("title",{children:d}):null]})});Io.muiName="SvgIcon";function ct(e,t){function n(r,o){return f.jsx(Io,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Io.muiName,v.memo(v.forwardRef(n))}function mc(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ho(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function dt(e){return e&&e.ownerDocument||document}function rn(e){return dt(e).defaultView||window}function js(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Mt(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=v.useRef(t!==void 0),[i,a]=v.useState(n),l=s?t:i,c=v.useCallback(u=>{s||a(u)},[]);return[l,c]}function fe(e){const t=v.useRef(e);return st(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Fe(...e){const t=v.useRef(void 0),n=v.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(r);return typeof a=="function"?a:()=>{i(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function om(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function hc(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{om(c,a[c])&&typeof i[c]=="function"&&(l[c]=(...u)=>{i[c](...u),a[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...a}):e,c=me(i?.className,a?.className,l?.className),u=n(l,a);return{...a,...l,...u,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),s=me(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const gc=ct(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function sm({label:e,onClick:t,disabled:n}){return f.jsx(se.Button,{variant:"contained",color:"primary",startIcon:f.jsx(gc,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function im({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(se.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?f.jsx(se.Tooltip,{title:o,children:a}):a}const Qo=ct(f.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"}));function am({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,children:a}){const l=ie.useId();return f.jsxs(se.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":l,children:[f.jsxs(se.DialogTitle,{id:l,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&f.jsx(se.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(Qo,{fontSize:"small"})})]}),f.jsxs(se.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(se.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(se.Stack,{sx:{gap:2,pt:r?0:1},children:a})]}),i&&f.jsx(se.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function lm({left:e,children:t}){const{theme:n}=Ke.usePublisherTheme();return f.jsxs(se.Stack,{direction:"row",sx:{position:"sticky",top:0,zIndex:5,alignItems:"center",justifyContent:"space-between",gap:1,minHeight:48,py:.5,mb:3,bgcolor:n.background,borderBottom:n.border},children:[f.jsx(se.Stack,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0,overflow:"hidden"},children:e}),f.jsx(se.Stack,{direction:"row",sx:{alignItems:"center",gap:.5,flexShrink:0,"& .MuiButton-root":{whiteSpace:"nowrap"}},children:t})]})}var go={exports:{}},cm=go.exports,Ra;function um(){return Ra||(Ra=1,(function(e,t){(function(n,r){e.exports=r()})(cm,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",b="year",p="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+)?$/,S=/\[([^\]]+)]|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,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],w=D%100;return"["+D+(k[(w-20)%10]||k[w]||k[0])+"]"}},C=function(D,k,w){var A=String(D);return!A||A.length>=k?D:""+Array(k+1-A.length).join(w)+D},x={s:C,z:function(D){var k=-D.utcOffset(),w=Math.abs(k),A=Math.floor(w/60),L=w%60;return(k<=0?"+":"-")+C(A,2,"0")+":"+C(L,2,"0")},m:function D(k,w){if(k.date()<w.date())return-D(w,k);var A=12*(w.year()-k.year())+(w.month()-k.month()),L=k.clone().add(A,d),N=w-L<0,Y=k.clone().add(A+(N?-1:1),d);return+(-(A+(w-L)/(N?L-Y:Y-L))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:b,w:u,d:c,D:p,h:l,m:a,s:i,ms:s,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},I="en",M={};M[I]=P;var $="$isDayjsObject",R=function(D){return D instanceof m||!(!D||!D[$])},E=function D(k,w,A){var L;if(!k)return I;if(typeof k=="string"){var N=k.toLowerCase();M[N]&&(L=N),w&&(M[N]=w,L=N);var Y=k.split("-");if(!L&&Y.length>1)return D(Y[0])}else{var W=k.name;M[W]=k,L=W}return!A&&L&&(I=L),L||!A&&I},F=function(D,k){if(R(D))return D.clone();var w=typeof k=="object"?k:{};return w.date=D,w.args=arguments,new m(w)},T=x;T.l=E,T.i=R,T.w=function(D,k){return F(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var m=(function(){function D(w){this.$L=E(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[$]=!0}var k=D.prototype;return k.parse=function(w){this.$d=(function(A){var L=A.date,N=A.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var Y=L.match(y);if(Y){var W=Y[2]-1||0,J=(Y[7]||"0").substring(0,3);return N?new Date(Date.UTC(Y[1],W,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)):new Date(Y[1],W,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)}}return new Date(L)})(w),this.init()},k.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},k.$utils=function(){return T},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(w,A){var L=F(w);return this.startOf(A)<=L&&L<=this.endOf(A)},k.isAfter=function(w,A){return F(w)<this.startOf(A)},k.isBefore=function(w,A){return this.endOf(A)<F(w)},k.$g=function(w,A,L){return T.u(w)?this[A]:this.set(L,w)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(w,A){var L=this,N=!!T.u(A)||A,Y=T.p(w),W=function(z,G){var oe=T.w(L.$u?Date.UTC(L.$y,G,z):new Date(L.$y,G,z),L);return N?oe:oe.endOf(c)},J=function(z,G){return T.w(L.toDate()[z].apply(L.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(G)),L)},ce=this.$W,ae=this.$M,V=this.$D,q="set"+(this.$u?"UTC":"");switch(Y){case b:return N?W(1,0):W(31,11);case d:return N?W(1,ae):W(0,ae+1);case u:var ne=this.$locale().weekStart||0,K=(ce<ne?ce+7:ce)-ne;return W(N?V-K:V+(6-K),ae);case c:case p:return J(q+"Hours",0);case l:return J(q+"Minutes",1);case a:return J(q+"Seconds",2);case i:return J(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(w){return this.startOf(w,!1)},k.$set=function(w,A){var L,N=T.p(w),Y="set"+(this.$u?"UTC":""),W=(L={},L[c]=Y+"Date",L[p]=Y+"Date",L[d]=Y+"Month",L[b]=Y+"FullYear",L[l]=Y+"Hours",L[a]=Y+"Minutes",L[i]=Y+"Seconds",L[s]=Y+"Milliseconds",L)[N],J=N===c?this.$D+(A-this.$W):A;if(N===d||N===b){var ce=this.clone().set(p,1);ce.$d[W](J),ce.init(),this.$d=ce.set(p,Math.min(this.$D,ce.daysInMonth())).$d}else W&&this.$d[W](J);return this.init(),this},k.set=function(w,A){return this.clone().$set(w,A)},k.get=function(w){return this[T.p(w)]()},k.add=function(w,A){var L,N=this;w=Number(w);var Y=T.p(A),W=function(ae){var V=F(N);return T.w(V.date(V.date()+Math.round(ae*w)),N)};if(Y===d)return this.set(d,this.$M+w);if(Y===b)return this.set(b,this.$y+w);if(Y===c)return W(1);if(Y===u)return W(7);var J=(L={},L[a]=r,L[l]=o,L[i]=n,L)[Y]||1,ce=this.$d.getTime()+w*J;return T.w(ce,this)},k.subtract=function(w,A){return this.add(-1*w,A)},k.format=function(w){var A=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var N=w||"YYYY-MM-DDTHH:mm:ssZ",Y=T.z(this),W=this.$H,J=this.$m,ce=this.$M,ae=L.weekdays,V=L.months,q=L.meridiem,ne=function(G,oe,re,B){return G&&(G[oe]||G(A,N))||re[oe].slice(0,B)},K=function(G){return T.s(W%12||12,G,"0")},z=q||function(G,oe,re){var B=G<12?"AM":"PM";return re?B.toLowerCase():B};return N.replace(S,(function(G,oe){return oe||(function(re){switch(re){case"YY":return String(A.$y).slice(-2);case"YYYY":return T.s(A.$y,4,"0");case"M":return ce+1;case"MM":return T.s(ce+1,2,"0");case"MMM":return ne(L.monthsShort,ce,V,3);case"MMMM":return ne(V,ce);case"D":return A.$D;case"DD":return T.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return ne(L.weekdaysMin,A.$W,ae,2);case"ddd":return ne(L.weekdaysShort,A.$W,ae,3);case"dddd":return ae[A.$W];case"H":return String(W);case"HH":return T.s(W,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return z(W,J,!0);case"A":return z(W,J,!1);case"m":return String(J);case"mm":return T.s(J,2,"0");case"s":return String(A.$s);case"ss":return T.s(A.$s,2,"0");case"SSS":return T.s(A.$ms,3,"0");case"Z":return Y}return null})(G)||Y.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(w,A,L){var N,Y=this,W=T.p(A),J=F(w),ce=(J.utcOffset()-this.utcOffset())*r,ae=this-J,V=function(){return T.m(Y,J)};switch(W){case b:N=V()/12;break;case d:N=V();break;case h:N=V()/3;break;case u:N=(ae-ce)/6048e5;break;case c:N=(ae-ce)/864e5;break;case l:N=ae/o;break;case a:N=ae/r;break;case i:N=ae/n;break;default:N=ae}return L?N:T.a(N)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(w,A){if(!w)return this.$L;var L=this.clone(),N=E(w,A,!0);return N&&(L.$L=N),L},k.clone=function(){return T.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D})(),O=m.prototype;return F.prototype=O,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",d],["$y",b],["$D",p]].forEach((function(D){O[D[1]]=function(k){return this.$g(k,D[0],D[1])}})),F.extend=function(D,k){return D.$i||(D(k,m,F),D.$i=!0),F},F.locale=E,F.isDayjs=R,F.unix=function(D){return F(1e3*D)},F.en=M[I],F.Ls=M,F.p={},F}))})(go)),go.exports}var dm=um();const Ve=sn(dm);var yo={exports:{}},pm=yo.exports,Oa;function fm(){return Oa||(Oa=1,(function(e,t){(function(n,r){e.exports=r()})(pm,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(s,i,a){var l=i.prototype;a.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},l.utc=function(g){var y=a(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var u=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else u.call(this)};var d=l.utcOffset;l.utcOffset=function(g,y){var S=this.$utils().u;if(S(g))return this.$u?0:S(this.$offset)?d.call(this):this.$offset;if(typeof g=="string"&&(g=(function(I){I===void 0&&(I="");var M=I.match(r);if(!M)return null;var $=(""+M[0]).match(o)||["-",0,0],R=$[0],E=60*+$[1]+ +$[2];return E===0?0:R==="+"?E:-E})(g),g===null))return this;var P=Math.abs(g)<=16?60*g:g;if(P===0)return this.utc(y);var C=this.clone();if(y)return C.$offset=P,C.$u=!1,C;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(C=this.local().add(P+x,n)).$offset=P,C.$x.$localOffset=x,C};var h=l.format;l.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,y)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var b=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var p=l.diff;l.diff=function(g,y,S){if(g&&this.$u===g.$u)return p.call(this,g,y,S);var P=this.local(),C=a(g).local();return p.call(P,C,y,S)}}}))})(yo)),yo.exports}var mm=fm();const ui=sn(mm);Ve.extend(ui);function Dn(e){return(e??"").startsWith("filter<")}function Or(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function di(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":Lt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function hm(e){if(e.trim()==="")return[];const{parsed:t}=Lt.StringFilterExpression.parse(e);return yc(t)?t.values:[e]}function gm(e){return e===void 0||e.trim()===""?!0:yc(Lt.StringFilterExpression.parse(e).parsed)}function yc(e){return e!==null&&Lt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function ym(e){return Lt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function bm(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.NumberFilterExpression.parse(t);if(n===null||n.operator!==">="||n.not===!0||n.values?.length!==1)return;const r=Number(n.values[0]);return Number.isFinite(r)?r:void 0}function vm(e,t){return Lt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function xm(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.NumberFilterExpression.parse(t);if(n===null||n.operator!=="range"||n.not===!0||n.startOperator!==">="||n.endOperator!=="<=")return;const r=Number(n.startValue),o=Number(n.endValue);return Number.isFinite(r)&&Number.isFinite(o)&&r<=o?[r,o]:void 0}const To=[{key:"today",label:"Today",clause:{operator:"in",in:{moment:"today"}}},{key:"7d",label:"Last 7 days",clause:{operator:"in_last",units:"day",n:"7"}},{key:"30d",label:"Last 30 days",clause:{operator:"in_last",units:"day",n:"30"}},{key:"90d",label:"Last 90 days",clause:{operator:"in_last",units:"day",n:"90"}},{key:"12m",label:"Last 12 months",clause:{operator:"in_last",units:"month",n:"12"}}];function Sm(e){const t=To.find(n=>n.key===e);return t?Lt.TemporalFilterExpression.unparse(t.clause):void 0}function Cm(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of To){const o=r.clause;if(o.operator===n.operator&&(o.operator==="in"&&n.operator==="in"&&n.not!==!0&&n.in.moment===o.in.moment||o.operator==="in_last"&&n.operator==="in_last"&&n.not!==!0&&n.units===o.units&&Number(n.n)===Number(o.n)))return r.key}}const wm=/^\d{4}-\d{2}-\d{2}$/;function Pm(e,t){const n=Ve.utc(t,"YYYY-MM-DD").add(1,"day");return Lt.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function km(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=$a(n.fromMoment),o=$a(n.toMoment);if(r===void 0||o===void 0)return;const s=Ve.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!s.isValid()||s.isBefore(Ve.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:s.format("YYYY-MM-DD")}}function $a(e){return e.moment==="literal"&&wm.test(e.literal)?e.literal:void 0}const bo="self";function pi(e){if(!e)return[];if(e.wasDimension&&!e.wasDimension())return[];const t=e.tag?.tag("drill");return t?(t.textArray("to")??[t.text("to")].filter(Ea)).filter(Ea):[]}function fi(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function bc(e){return e.tag?.tag("drill")?.text("given")??e.name}function Kr(e){if(typeof e=="string"){const t=di([e]);return t===""?void 0:t}if(typeof e=="boolean")return String(e);if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(e instanceof Date){const t=e.toISOString();return t.slice(0,t.indexOf("T"))}}function vc(e){return e instanceof Date?Kr(e)??"":String(e)}function xc(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=pi(t);if(n.length===0)return;const r=Kr(e.value);if(r!==void 0)return{to:n,given:bc(t),value:r,rawValue:e.value,label:vc(e.value)}}function Ea(e){return typeof e=="string"&&e!==""}function Sc(e,t){if(t!==void 0&&!Dn(t)){if(t==="number"){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string"||e.trim()==="")return;const n=Number(e);return Number.isFinite(n)?n:void 0}if(t==="date"||t==="timestamp"||t==="timestamptz")return e instanceof Date?e:void 0;if(t==="boolean")return typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0;if(typeof e=="string")return e.trim()===""?void 0:e;if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(typeof e=="boolean")return String(e)}return Or(t)==="string"&&typeof e=="number"?Number.isFinite(e)?di([String(e)]):void 0:Or(t)==="number"?typeof e=="number"?Number.isFinite(e)?String(e):void 0:typeof e!="string"||e.trim()===""?void 0:Number.isFinite(Number(e))?e.trim():void 0:Kr(e)}function Cc({declaredTypes:e,setGiven:t,documentName:n}){const r=ie.useMemo(()=>{const a=new Map;for(const l of e.keys())a.has(l.toLowerCase())||a.set(l.toLowerCase(),l);return a},[e]),o=ie.useCallback(a=>e.has(a)?a:r.get(a.toLowerCase()),[e,r]),s=ie.useCallback(a=>o(a)!==void 0,[o]),i=ie.useCallback((a,l)=>{const c=o(a);if(c===void 0){console.warn(`# drill { to=self } tried to set '${a}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const u=e.get(c),d=Sc(l,u);if(d===void 0){console.warn(`Drill declined: ${JSON.stringify(l)} cannot be a value for given "${c}"`+(u?` of type ${u}`:""));return}t(c,d)},[e,n,o,t]);return{resolveGiven:o,canSelf:s,onSelf:i}}function Mm(e,t){if(e!=null){if(e instanceof Date)return kc(e,t);if(!Array.isArray(e))return String(e)}}function Dm(e,t){return new Date(Date.UTC(e.year(),e.month(),e.date(),t?.getUTCHours()??0,t?.getUTCMinutes()??0,t?.getUTCSeconds()??0,t?.getUTCMilliseconds()??0))}const Im=/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s]+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?)?\s*(Z|[+-]\d{2}:?\d{2}|[+-]\d{2}|UTC|GMT)?$/i;function wc(e){const t=e.trim();return t===""?e:t.replace(/^(\d{4}-\d{1,2}-\d{1,2}[T\s]+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d{1,9})?)\s+(\d{2}:?\d{2}|\d{2})$/,"$1+$2")}function Tm(e,t=!1){const n=wc(e);if(n==="")return;const r=Im.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,d]=r,h={year:Number(o),month:Number(s),day:Number(i),hour:Number(a??0),minute:Number(l??0),second:Number(c??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},b=Date.UTC(h.year,h.month-1,h.day,h.hour,h.minute,h.second,h.milli),p=new Date(b);if(!(p.getUTCFullYear()===h.year&&p.getUTCMonth()===h.month-1&&p.getUTCDate()===h.day&&p.getUTCHours()===h.hour&&p.getUTCMinutes()===h.minute&&p.getUTCSeconds()===h.second)||d!==void 0&&a===void 0)return;const y=Rm(d);if(y===void 0)return;const S=new Date(b-y*6e4);if(!(t&&d!==void 0&&S.getUTCDate()!==h.day))return S}function Rm(e){if(e===void 0)return 0;const t=e.toUpperCase();if(t==="Z"||t==="UTC"||t==="GMT")return 0;const n=/^([+-])(\d{2}):?(\d{2})?$/.exec(t);if(!n)return;const r=Number(n[3]??0);if(r>59)return;const o=Number(n[2])*60+r,s=n[1]!=="-";if(!(o>(s?840:720)))return s?o:-o}function Om(e){return!$m.has(e??"")}const $m=new Set(["boolean","number","date","timestamp","timestamptz"]);function Pc(e,t){if(t===""&&!Om(e))return null;if(Dn(e))return t;switch(e){case"number":{const n=t.trim()===""?NaN:Number(t);return Number.isFinite(n)?n:t}case"boolean":return t==="true"?!0:t==="false"?!1:t;case"date":case"timestamp":case"timestamptz":{const n=wc(t);return Tm(n,e==="date")??n}default:return t}}function Em(e,t){const n={};for(const[r,o]of e){const s=Mm(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function kc(e,t){const n=e.toISOString();switch(t){case"timestamptz":return n;case"timestamp":return n.slice(0,-1);default:return n.slice(0,10)}}function Xo(e,t,n){const r=n?new Set(n):void 0,o={};for(const[s,i]of e)r&&!r.has(s)||i!=null&&(Array.isArray(i)||(o[s]=i instanceof Date?kc(i,t.get(s)):i));return o}function Aa(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,Pc(t.get(r),o));return n}function Fa(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function La(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function Am(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function Na(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function Mc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=ie.useMemo(()=>Aa(t??{},e),[e,JSON.stringify(t)]),a=ie.useRef(null),l=ie.useRef(null),c=ie.useRef({documentKey:o,params:n}),u=T=>T!==null&&Am(n??{},T,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!Na(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const d=c.current.params,h=JSON.stringify(t),b=JSON.stringify(d),p=ie.useMemo(()=>Aa({...t??{},...d??{}},e),[e,h,b]),g=ie.useMemo(()=>JSON.stringify([o??null,La(t),La(d)]),[o,h,b]),[y,S]=ie.useState(null),P=y?.key===g?y:null;ie.useEffect(()=>{y!==null&&y.key!==g&&S(null)},[y,g]);const C=ie.useMemo(()=>Fa(P?.draft??p,e),[P,p,e]),x=ie.useMemo(()=>Fa(P?.applied??p,e),[P,p,e]),I=ie.useCallback(T=>T?.key===g?T:{key:g,draft:p,applied:p},[g,p]),M=ie.useMemo(()=>Em(x,e),[x,e]);a.current===null&&(a.current=M),ie.useEffect(()=>{r&&(Na(a.current??{},M)||(l.current=a.current,a.current=M,r(M)))},[M,r]);const $=ie.useCallback((T,m)=>{S(O=>{const D=I(O),k=new Map(D.draft);return m===null?k.delete(T):k.set(T,m),{key:D.key,draft:k,applied:s?k:D.applied}})},[s,I]),R=ie.useCallback(()=>{S(T=>({key:I(T).key,draft:i,applied:i}))},[I,i]),E=ie.useCallback(()=>{S(T=>{const m=I(T);return{key:m.key,draft:m.draft,applied:m.draft}})},[I]),F=ie.useMemo(()=>{if(s)return!1;if(C.size!==x.size)return!0;for(const[T,m]of C){const O=x.get(T);if(m instanceof Date&&O instanceof Date){if(m.getTime()!==O.getTime())return!0}else if(Array.isArray(m)&&Array.isArray(O)){if(String(m)!==String(O))return!0}else if(m!==O)return!0}return!1},[s,C,x]);return{draft:C,applied:x,setGiven:$,reset:R,apply:E,pending:F}}const Fm=1e3;function Dc(e){const t=e.split(".");return t[t.length-1]}function Lm(e,t){return`run: ${e} -> {
|
|
16
|
+
export default theme;`}function Da(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const $f=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Ef(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Mo(t,$f(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Da(n)})`:qo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Da(n)})`:Go(t,n)}})}function Ls(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:i={},typography:a={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(tn(20));const d=ai({...s,colorSpace:c}),h=li(e);let b=ft(h,{mixins:vf(h.breakpoints,r),palette:d,shadows:kf.slice(),typography:Sf(d,a),transitions:Tf(i),zIndex:{...Rf}});return b=ft(b,u),b=t.reduce((p,g)=>ft(p,g),b),b.unstable_sxConfig={...qr,...u?.unstable_sxConfig},b.unstable_sx=function(g){return nr({sx:g,theme:this})},b.toRuntimeSource=ac,Ef(b),b}function Ns(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 Af=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ns(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function lc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function cc(e){return e==="dark"?Af:[]}function Ff(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=ai({...t,colorSpace:o});return{palette:i,opacity:{...lc(i.mode),...n},overlays:r||cc(i.mode),...s}}function Lf(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Nf=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],jf=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Nf(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function Bf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Q(e,t,n){!e[t]&&n&&(e[t]=n)}function Dr(e){return typeof e!="string"||!e.startsWith("hsl")?e:ec(e)}function Jt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mr(Dr(e[t])))}function Vf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ut=e=>{try{return e()}catch{}},zf=(e="mui")=>Qe.unstable_createGetCssVar(e);function Ps(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Ff({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=Ls({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...lc(s),...n?.opacity},overlays:n?.overlays||cc(s)},a}function Wf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Lf,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),b=zf(s),{[h]:p,light:g,dark:y,...S}=n,P={...S};let C=p;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(tn(21,h));let x;i&&(x="oklch");const I=Ps(x,P,C,u,h);g&&!P.light&&Ps(x,P,g,void 0,"light"),y&&!P.dark&&Ps(x,P,y,void 0,"dark");let M={defaultColorScheme:h,...I,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:P,font:{...gf(I.typography),...I.font},spacing:Vf(u.spacing)};Object.keys(M.colorSchemes).forEach(T=>{const m=M.colorSchemes[T].palette,O=k=>{const w=k.split("-"),A=w[1],L=w[2];return b(k,m[A][L])};m.mode==="light"&&(Q(m.common,"background","#fff"),Q(m.common,"onBackground","#000")),m.mode==="dark"&&(Q(m.common,"background","#000"),Q(m.common,"onBackground","#fff"));function D(k,w,A){if(x){let L;return k===xn&&(L=`transparent ${((1-A)*100).toFixed(0)}%`),k===je&&(L=`#000 ${(A*100).toFixed(0)}%`),k===Be&&(L=`#fff ${(A*100).toFixed(0)}%`),`color-mix(in ${x}, ${w}, ${L})`}return k(w,A)}if(Bf(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){Q(m.Alert,"errorColor",D(je,m.error.light,.6)),Q(m.Alert,"infoColor",D(je,m.info.light,.6)),Q(m.Alert,"successColor",D(je,m.success.light,.6)),Q(m.Alert,"warningColor",D(je,m.warning.light,.6)),Q(m.Alert,"errorFilledBg",O("palette-error-main")),Q(m.Alert,"infoFilledBg",O("palette-info-main")),Q(m.Alert,"successFilledBg",O("palette-success-main")),Q(m.Alert,"warningFilledBg",O("palette-warning-main")),Q(m.Alert,"errorFilledColor",Ut(()=>m.getContrastText(m.error.main))),Q(m.Alert,"infoFilledColor",Ut(()=>m.getContrastText(m.info.main))),Q(m.Alert,"successFilledColor",Ut(()=>m.getContrastText(m.success.main))),Q(m.Alert,"warningFilledColor",Ut(()=>m.getContrastText(m.warning.main))),Q(m.Alert,"errorStandardBg",D(Be,m.error.light,.9)),Q(m.Alert,"infoStandardBg",D(Be,m.info.light,.9)),Q(m.Alert,"successStandardBg",D(Be,m.success.light,.9)),Q(m.Alert,"warningStandardBg",D(Be,m.warning.light,.9)),Q(m.Alert,"errorIconColor",O("palette-error-main")),Q(m.Alert,"infoIconColor",O("palette-info-main")),Q(m.Alert,"successIconColor",O("palette-success-main")),Q(m.Alert,"warningIconColor",O("palette-warning-main")),Q(m.AppBar,"defaultBg",O("palette-grey-100")),Q(m.Avatar,"defaultBg",O("palette-grey-400")),Q(m.Button,"inheritContainedBg",O("palette-grey-300")),Q(m.Button,"inheritContainedHoverBg",O("palette-grey-A100")),Q(m.Chip,"defaultBorder",O("palette-grey-400")),Q(m.Chip,"defaultAvatarColor",O("palette-grey-700")),Q(m.Chip,"defaultIconColor",O("palette-grey-700")),Q(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(m.LinearProgress,"primaryBg",D(Be,m.primary.main,.62)),Q(m.LinearProgress,"secondaryBg",D(Be,m.secondary.main,.62)),Q(m.LinearProgress,"errorBg",D(Be,m.error.main,.62)),Q(m.LinearProgress,"infoBg",D(Be,m.info.main,.62)),Q(m.LinearProgress,"successBg",D(Be,m.success.main,.62)),Q(m.LinearProgress,"warningBg",D(Be,m.warning.main,.62)),Q(m.Skeleton,"bg",x?D(xn,m.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),Q(m.Slider,"primaryTrack",D(Be,m.primary.main,.62)),Q(m.Slider,"secondaryTrack",D(Be,m.secondary.main,.62)),Q(m.Slider,"errorTrack",D(Be,m.error.main,.62)),Q(m.Slider,"infoTrack",D(Be,m.info.main,.62)),Q(m.Slider,"successTrack",D(Be,m.success.main,.62)),Q(m.Slider,"warningTrack",D(Be,m.warning.main,.62));const k=x?D(je,m.background.default,.6825):so(m.background.default,.8);Q(m.SnackbarContent,"bg",k),Q(m.SnackbarContent,"color",Ut(()=>x?Fs.text.primary:m.getContrastText(k))),Q(m.SpeedDialAction,"fabHoverBg",so(m.background.paper,.15)),Q(m.StepConnector,"border",O("palette-grey-400")),Q(m.StepContent,"border",O("palette-grey-400")),Q(m.Switch,"defaultColor",O("palette-common-white")),Q(m.Switch,"defaultDisabledColor",O("palette-grey-100")),Q(m.Switch,"primaryDisabledColor",D(Be,m.primary.main,.62)),Q(m.Switch,"secondaryDisabledColor",D(Be,m.secondary.main,.62)),Q(m.Switch,"errorDisabledColor",D(Be,m.error.main,.62)),Q(m.Switch,"infoDisabledColor",D(Be,m.info.main,.62)),Q(m.Switch,"successDisabledColor",D(Be,m.success.main,.62)),Q(m.Switch,"warningDisabledColor",D(Be,m.warning.main,.62)),Q(m.TableCell,"border",D(Be,D(xn,m.divider,1),.88)),Q(m.Tooltip,"bg",D(xn,m.grey[700],.92))}if(m.mode==="dark"){Q(m.Alert,"errorColor",D(Be,m.error.light,.6)),Q(m.Alert,"infoColor",D(Be,m.info.light,.6)),Q(m.Alert,"successColor",D(Be,m.success.light,.6)),Q(m.Alert,"warningColor",D(Be,m.warning.light,.6)),Q(m.Alert,"errorFilledBg",O("palette-error-dark")),Q(m.Alert,"infoFilledBg",O("palette-info-dark")),Q(m.Alert,"successFilledBg",O("palette-success-dark")),Q(m.Alert,"warningFilledBg",O("palette-warning-dark")),Q(m.Alert,"errorFilledColor",Ut(()=>m.getContrastText(m.error.dark))),Q(m.Alert,"infoFilledColor",Ut(()=>m.getContrastText(m.info.dark))),Q(m.Alert,"successFilledColor",Ut(()=>m.getContrastText(m.success.dark))),Q(m.Alert,"warningFilledColor",Ut(()=>m.getContrastText(m.warning.dark))),Q(m.Alert,"errorStandardBg",D(je,m.error.light,.9)),Q(m.Alert,"infoStandardBg",D(je,m.info.light,.9)),Q(m.Alert,"successStandardBg",D(je,m.success.light,.9)),Q(m.Alert,"warningStandardBg",D(je,m.warning.light,.9)),Q(m.Alert,"errorIconColor",O("palette-error-main")),Q(m.Alert,"infoIconColor",O("palette-info-main")),Q(m.Alert,"successIconColor",O("palette-success-main")),Q(m.Alert,"warningIconColor",O("palette-warning-main")),Q(m.AppBar,"defaultBg",O("palette-grey-900")),Q(m.AppBar,"darkBg",O("palette-background-paper")),Q(m.AppBar,"darkColor",O("palette-text-primary")),Q(m.Avatar,"defaultBg",O("palette-grey-600")),Q(m.Button,"inheritContainedBg",O("palette-grey-800")),Q(m.Button,"inheritContainedHoverBg",O("palette-grey-700")),Q(m.Chip,"defaultBorder",O("palette-grey-700")),Q(m.Chip,"defaultAvatarColor",O("palette-grey-300")),Q(m.Chip,"defaultIconColor",O("palette-grey-300")),Q(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(m.LinearProgress,"primaryBg",D(je,m.primary.main,.5)),Q(m.LinearProgress,"secondaryBg",D(je,m.secondary.main,.5)),Q(m.LinearProgress,"errorBg",D(je,m.error.main,.5)),Q(m.LinearProgress,"infoBg",D(je,m.info.main,.5)),Q(m.LinearProgress,"successBg",D(je,m.success.main,.5)),Q(m.LinearProgress,"warningBg",D(je,m.warning.main,.5)),Q(m.Skeleton,"bg",x?D(xn,m.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),Q(m.Slider,"primaryTrack",D(je,m.primary.main,.5)),Q(m.Slider,"secondaryTrack",D(je,m.secondary.main,.5)),Q(m.Slider,"errorTrack",D(je,m.error.main,.5)),Q(m.Slider,"infoTrack",D(je,m.info.main,.5)),Q(m.Slider,"successTrack",D(je,m.success.main,.5)),Q(m.Slider,"warningTrack",D(je,m.warning.main,.5));const k=x?D(Be,m.background.default,.985):so(m.background.default,.98);Q(m.SnackbarContent,"bg",k),Q(m.SnackbarContent,"color",Ut(()=>x?rc.text.primary:m.getContrastText(k))),Q(m.SpeedDialAction,"fabHoverBg",so(m.background.paper,.15)),Q(m.StepConnector,"border",O("palette-grey-600")),Q(m.StepContent,"border",O("palette-grey-600")),Q(m.Switch,"defaultColor",O("palette-grey-300")),Q(m.Switch,"defaultDisabledColor",O("palette-grey-600")),Q(m.Switch,"primaryDisabledColor",D(je,m.primary.main,.55)),Q(m.Switch,"secondaryDisabledColor",D(je,m.secondary.main,.55)),Q(m.Switch,"errorDisabledColor",D(je,m.error.main,.55)),Q(m.Switch,"infoDisabledColor",D(je,m.info.main,.55)),Q(m.Switch,"successDisabledColor",D(je,m.success.main,.55)),Q(m.Switch,"warningDisabledColor",D(je,m.warning.main,.55)),Q(m.TableCell,"border",D(je,D(xn,m.divider,1),.68)),Q(m.Tooltip,"bg",D(xn,m.grey[700],.92))}Jt(m.background,"default"),Jt(m.background,"paper"),Jt(m.common,"background"),Jt(m.common,"onBackground"),Jt(m,"divider"),Object.keys(m).forEach(k=>{const w=m[k];k!=="tonalOffset"&&w&&typeof w=="object"&&(w.main&&Q(m[k],"mainChannel",Mr(Dr(w.main))),w.light&&Q(m[k],"lightChannel",Mr(Dr(w.light))),w.dark&&Q(m[k],"darkChannel",Mr(Dr(w.dark))),w.contrastText&&Q(m[k],"contrastTextChannel",Mr(Dr(w.contrastText))),k==="text"&&(Jt(m[k],"primary"),Jt(m[k],"secondary")),k==="action"&&(w.active&&Jt(m[k],"active"),w.selected&&Jt(m[k],"selected")))})}),M=t.reduce((T,m)=>ft(T,m),M);const $={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:jf(M),enableContrastVars:i},{vars:R,generateThemeVars:E,generateStyleSheets:F}=hf(M,$);return M.vars=R,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([T,m])=>{M[T]=m}),M.generateThemeVars=E,M.generateStyleSheets=F,M.generateSpacing=function(){return Qe.createSpacing(u.spacing,oi(this))},M.getColorSchemeSelector=yf(l),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=a,M.unstable_sxConfig={...qr,...u?.unstable_sxConfig},M.unstable_sx=function(m){return nr({sx:m,theme:this})},M.toRuntimeSource=ac,M}function Ia(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ai({...n===!0?{}:n.palette,mode:t})})}function uc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...i}=e,a=s||"light",l=o?.[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ls(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=Ls({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Ia(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Ia(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Wf({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Ko=uc(),ur="$$material";function Fn(){const e=Qe.useTheme(Ko);return e[ur]||e}function _f(e){return f.jsx(Qe.GlobalStyles,{...e,defaultTheme:Ko,themeId:ur})}function Hf(e){const{variants:t,...n}=e,r={variants:t,style:Rn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Rn(o.style))}),r}const Uf=li();function ks(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function In(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Yf(e){return e?(t,n)=>n[e]:null}function Gf(e,t,n){e.theme=Qf(e.theme)?n:e.theme[t]||e.theme}function mo(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>mo(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?In(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?In(Rn(i),n):i}return dc(e,r.variants,[o],n)}return r?.isProcessed?n?In(Rn(r.style),n):r.style:n?In(Rn(r),n):r}function dc(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const i=t[s];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?In(Rn(i.style(o)),r):i.style(o))):n.push(r?In(Rn(i.style),r):i.style)}return n}function qf(e={}){const{themeId:t,defaultTheme:n=Uf,rootShouldForwardProp:r=ks,slotShouldForwardProp:o=ks}=e;function s(a){Gf(a,t,n)}return(a,l={})=>{Xp(a,M=>M.filter($=>$!==nr));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:b=Yf(Zf(u)),...p}=l,g=c&&c.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=h||!1;let P=ks;u==="Root"||u==="root"?P=r:u?P=o:Xf(a)&&(P=void 0);const C=Qp(a,{shouldForwardProp:P,label:Kf(),...p}),x=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(R){return mo(R,M,R.theme.modularCssLayers?g:void 0)};if(Gt(M)){const $=Hf(M);return function(E){return $.variants?mo(E,$,E.theme.modularCssLayers?g:void 0):E.theme.modularCssLayers?In($.style,g):$.style}}return M},I=(...M)=>{const $=[],R=M.map(x),E=[];if($.push(s),c&&b&&E.push(function(O){const k=O.theme.components?.[c]?.styleOverrides;if(!k)return null;const w={};for(const A in k)w[A]=mo(O,k[A],O.theme.modularCssLayers?"theme":void 0);return b(O,w)}),c&&!y&&E.push(function(O){const k=O.theme?.components?.[c]?.variants;return k?dc(O,k,[],O.theme.modularCssLayers?"theme":void 0):null}),S||E.push(nr),Array.isArray(R[0])){const m=R.shift(),O=new Array($.length).fill(""),D=new Array(E.length).fill("");let k;k=[...O,...m,...D],k.raw=[...O,...m.raw,...D],$.unshift(k)}const F=[...$,...R,...E],T=C(...F);return a.muiName&&(T.muiName=a.muiName),T};return C.withConfig&&(I.withConfig=C.withConfig),I}}function Kf(e,t){return void 0}function Qf(e){for(const t in e)return!1;return!0}function Xf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function pc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jt=e=>pc(e)&&e!=="classes",_=qf({themeId:ur,defaultTheme:Ko,rootShouldForwardProp:jt});function Jf(e){return function(n){return f.jsx(_f,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function em(){return Rp}const Re=Qe.unstable_memoTheme;function Oe(e){return nf(e)}function be(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Se(e,o,n)}),r}function tm(e){return Se("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return ve(o,tm,r)},rm=_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(Re(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Io=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...b}=r,p=v.isValidElement(o)&&o.type==="svg",g={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},y={};u||(y.viewBox=h);const S=nm(g);return f.jsxs(rm,{as:a,className:me(S.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...y,...b,...p&&o.props,ownerState:g,children:[p?o.props.children:o,d?f.jsx("title",{children:d}):null]})});Io.muiName="SvgIcon";function ct(e,t){function n(r,o){return f.jsx(Io,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Io.muiName,v.memo(v.forwardRef(n))}function fc(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ho(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function dt(e){return e&&e.ownerDocument||document}function rn(e){return dt(e).defaultView||window}function js(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Mt(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=v.useRef(t!==void 0),[i,a]=v.useState(n),l=s?t:i,c=v.useCallback(u=>{s||a(u)},[]);return[l,c]}function fe(e){const t=v.useRef(e);return st(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Fe(...e){const t=v.useRef(void 0),n=v.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(r);return typeof a=="function"?a:()=>{i(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function om(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function mc(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{om(c,a[c])&&typeof i[c]=="function"&&(l[c]=(...u)=>{i[c](...u),a[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...a}):e,c=me(i?.className,a?.className,l?.className),u=n(l,a);return{...a,...l,...u,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),s=me(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const hc=ct(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function sm({label:e,onClick:t,disabled:n}){return f.jsx(se.Button,{variant:"contained",color:"primary",startIcon:f.jsx(hc,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function im({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(se.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?f.jsx(se.Tooltip,{title:o,children:a}):a}const Qo=ct(f.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"}));function am({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,children:a}){const l=ie.useId();return f.jsxs(se.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":l,children:[f.jsxs(se.DialogTitle,{id:l,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&f.jsx(se.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(Qo,{fontSize:"small"})})]}),f.jsxs(se.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(se.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(se.Stack,{sx:{gap:2,pt:r?0:1},children:a})]}),i&&f.jsx(se.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function lm({left:e,children:t}){const{theme:n}=Ge.usePublisherTheme();return f.jsxs(se.Stack,{direction:"row",sx:{position:"sticky",top:0,zIndex:5,alignItems:"center",justifyContent:"space-between",gap:1,minHeight:48,py:.5,mb:3,bgcolor:n.background,borderBottom:n.border},children:[f.jsx(se.Stack,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0,overflow:"hidden"},children:e}),f.jsx(se.Stack,{direction:"row",sx:{alignItems:"center",gap:.5,flexShrink:0,"& .MuiButton-root":{whiteSpace:"nowrap"}},children:t})]})}var go={exports:{}},cm=go.exports,Ta;function um(){return Ta||(Ta=1,(function(e,t){(function(n,r){e.exports=r()})(cm,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",b="year",p="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+)?$/,S=/\[([^\]]+)]|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,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],w=D%100;return"["+D+(k[(w-20)%10]||k[w]||k[0])+"]"}},C=function(D,k,w){var A=String(D);return!A||A.length>=k?D:""+Array(k+1-A.length).join(w)+D},x={s:C,z:function(D){var k=-D.utcOffset(),w=Math.abs(k),A=Math.floor(w/60),L=w%60;return(k<=0?"+":"-")+C(A,2,"0")+":"+C(L,2,"0")},m:function D(k,w){if(k.date()<w.date())return-D(w,k);var A=12*(w.year()-k.year())+(w.month()-k.month()),L=k.clone().add(A,d),N=w-L<0,Y=k.clone().add(A+(N?-1:1),d);return+(-(A+(w-L)/(N?L-Y:Y-L))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:b,w:u,d:c,D:p,h:l,m:a,s:i,ms:s,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},I="en",M={};M[I]=P;var $="$isDayjsObject",R=function(D){return D instanceof m||!(!D||!D[$])},E=function D(k,w,A){var L;if(!k)return I;if(typeof k=="string"){var N=k.toLowerCase();M[N]&&(L=N),w&&(M[N]=w,L=N);var Y=k.split("-");if(!L&&Y.length>1)return D(Y[0])}else{var W=k.name;M[W]=k,L=W}return!A&&L&&(I=L),L||!A&&I},F=function(D,k){if(R(D))return D.clone();var w=typeof k=="object"?k:{};return w.date=D,w.args=arguments,new m(w)},T=x;T.l=E,T.i=R,T.w=function(D,k){return F(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var m=(function(){function D(w){this.$L=E(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[$]=!0}var k=D.prototype;return k.parse=function(w){this.$d=(function(A){var L=A.date,N=A.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var Y=L.match(y);if(Y){var W=Y[2]-1||0,J=(Y[7]||"0").substring(0,3);return N?new Date(Date.UTC(Y[1],W,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)):new Date(Y[1],W,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)}}return new Date(L)})(w),this.init()},k.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},k.$utils=function(){return T},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(w,A){var L=F(w);return this.startOf(A)<=L&&L<=this.endOf(A)},k.isAfter=function(w,A){return F(w)<this.startOf(A)},k.isBefore=function(w,A){return this.endOf(A)<F(w)},k.$g=function(w,A,L){return T.u(w)?this[A]:this.set(L,w)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(w,A){var L=this,N=!!T.u(A)||A,Y=T.p(w),W=function(z,G){var oe=T.w(L.$u?Date.UTC(L.$y,G,z):new Date(L.$y,G,z),L);return N?oe:oe.endOf(c)},J=function(z,G){return T.w(L.toDate()[z].apply(L.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(G)),L)},ce=this.$W,ae=this.$M,V=this.$D,q="set"+(this.$u?"UTC":"");switch(Y){case b:return N?W(1,0):W(31,11);case d:return N?W(1,ae):W(0,ae+1);case u:var ne=this.$locale().weekStart||0,K=(ce<ne?ce+7:ce)-ne;return W(N?V-K:V+(6-K),ae);case c:case p:return J(q+"Hours",0);case l:return J(q+"Minutes",1);case a:return J(q+"Seconds",2);case i:return J(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(w){return this.startOf(w,!1)},k.$set=function(w,A){var L,N=T.p(w),Y="set"+(this.$u?"UTC":""),W=(L={},L[c]=Y+"Date",L[p]=Y+"Date",L[d]=Y+"Month",L[b]=Y+"FullYear",L[l]=Y+"Hours",L[a]=Y+"Minutes",L[i]=Y+"Seconds",L[s]=Y+"Milliseconds",L)[N],J=N===c?this.$D+(A-this.$W):A;if(N===d||N===b){var ce=this.clone().set(p,1);ce.$d[W](J),ce.init(),this.$d=ce.set(p,Math.min(this.$D,ce.daysInMonth())).$d}else W&&this.$d[W](J);return this.init(),this},k.set=function(w,A){return this.clone().$set(w,A)},k.get=function(w){return this[T.p(w)]()},k.add=function(w,A){var L,N=this;w=Number(w);var Y=T.p(A),W=function(ae){var V=F(N);return T.w(V.date(V.date()+Math.round(ae*w)),N)};if(Y===d)return this.set(d,this.$M+w);if(Y===b)return this.set(b,this.$y+w);if(Y===c)return W(1);if(Y===u)return W(7);var J=(L={},L[a]=r,L[l]=o,L[i]=n,L)[Y]||1,ce=this.$d.getTime()+w*J;return T.w(ce,this)},k.subtract=function(w,A){return this.add(-1*w,A)},k.format=function(w){var A=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var N=w||"YYYY-MM-DDTHH:mm:ssZ",Y=T.z(this),W=this.$H,J=this.$m,ce=this.$M,ae=L.weekdays,V=L.months,q=L.meridiem,ne=function(G,oe,re,B){return G&&(G[oe]||G(A,N))||re[oe].slice(0,B)},K=function(G){return T.s(W%12||12,G,"0")},z=q||function(G,oe,re){var B=G<12?"AM":"PM";return re?B.toLowerCase():B};return N.replace(S,(function(G,oe){return oe||(function(re){switch(re){case"YY":return String(A.$y).slice(-2);case"YYYY":return T.s(A.$y,4,"0");case"M":return ce+1;case"MM":return T.s(ce+1,2,"0");case"MMM":return ne(L.monthsShort,ce,V,3);case"MMMM":return ne(V,ce);case"D":return A.$D;case"DD":return T.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return ne(L.weekdaysMin,A.$W,ae,2);case"ddd":return ne(L.weekdaysShort,A.$W,ae,3);case"dddd":return ae[A.$W];case"H":return String(W);case"HH":return T.s(W,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return z(W,J,!0);case"A":return z(W,J,!1);case"m":return String(J);case"mm":return T.s(J,2,"0");case"s":return String(A.$s);case"ss":return T.s(A.$s,2,"0");case"SSS":return T.s(A.$ms,3,"0");case"Z":return Y}return null})(G)||Y.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(w,A,L){var N,Y=this,W=T.p(A),J=F(w),ce=(J.utcOffset()-this.utcOffset())*r,ae=this-J,V=function(){return T.m(Y,J)};switch(W){case b:N=V()/12;break;case d:N=V();break;case h:N=V()/3;break;case u:N=(ae-ce)/6048e5;break;case c:N=(ae-ce)/864e5;break;case l:N=ae/o;break;case a:N=ae/r;break;case i:N=ae/n;break;default:N=ae}return L?N:T.a(N)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(w,A){if(!w)return this.$L;var L=this.clone(),N=E(w,A,!0);return N&&(L.$L=N),L},k.clone=function(){return T.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D})(),O=m.prototype;return F.prototype=O,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",d],["$y",b],["$D",p]].forEach((function(D){O[D[1]]=function(k){return this.$g(k,D[0],D[1])}})),F.extend=function(D,k){return D.$i||(D(k,m,F),D.$i=!0),F},F.locale=E,F.isDayjs=R,F.unix=function(D){return F(1e3*D)},F.en=M[I],F.Ls=M,F.p={},F}))})(go)),go.exports}var dm=um();const Ve=sn(dm);var yo={exports:{}},pm=yo.exports,Ra;function fm(){return Ra||(Ra=1,(function(e,t){(function(n,r){e.exports=r()})(pm,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(s,i,a){var l=i.prototype;a.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},l.utc=function(g){var y=a(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var u=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else u.call(this)};var d=l.utcOffset;l.utcOffset=function(g,y){var S=this.$utils().u;if(S(g))return this.$u?0:S(this.$offset)?d.call(this):this.$offset;if(typeof g=="string"&&(g=(function(I){I===void 0&&(I="");var M=I.match(r);if(!M)return null;var $=(""+M[0]).match(o)||["-",0,0],R=$[0],E=60*+$[1]+ +$[2];return E===0?0:R==="+"?E:-E})(g),g===null))return this;var P=Math.abs(g)<=16?60*g:g;if(P===0)return this.utc(y);var C=this.clone();if(y)return C.$offset=P,C.$u=!1,C;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(C=this.local().add(P+x,n)).$offset=P,C.$x.$localOffset=x,C};var h=l.format;l.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,y)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var b=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var p=l.diff;l.diff=function(g,y,S){if(g&&this.$u===g.$u)return p.call(this,g,y,S);var P=this.local(),C=a(g).local();return p.call(P,C,y,S)}}}))})(yo)),yo.exports}var mm=fm();const ci=sn(mm);Ve.extend(ci);function Dn(e){return(e??"").startsWith("filter<")}function Or(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function ui(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":Lt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function hm(e){if(e.trim()==="")return[];const{parsed:t}=Lt.StringFilterExpression.parse(e);return gc(t)?t.values:[e]}function gm(e){return e===void 0||e.trim()===""?!0:gc(Lt.StringFilterExpression.parse(e).parsed)}function gc(e){return e!==null&&Lt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function ym(e){return Lt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function bm(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.NumberFilterExpression.parse(t);if(n===null||n.operator!==">="||n.not===!0||n.values?.length!==1)return;const r=Number(n.values[0]);return Number.isFinite(r)?r:void 0}function vm(e,t){return Lt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function xm(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.NumberFilterExpression.parse(t);if(n===null||n.operator!=="range"||n.not===!0||n.startOperator!==">="||n.endOperator!=="<=")return;const r=Number(n.startValue),o=Number(n.endValue);return Number.isFinite(r)&&Number.isFinite(o)&&r<=o?[r,o]:void 0}const To=[{key:"today",label:"Today",clause:{operator:"in",in:{moment:"today"}}},{key:"7d",label:"Last 7 days",clause:{operator:"in_last",units:"day",n:"7"}},{key:"30d",label:"Last 30 days",clause:{operator:"in_last",units:"day",n:"30"}},{key:"90d",label:"Last 90 days",clause:{operator:"in_last",units:"day",n:"90"}},{key:"12m",label:"Last 12 months",clause:{operator:"in_last",units:"month",n:"12"}}];function Sm(e){const t=To.find(n=>n.key===e);return t?Lt.TemporalFilterExpression.unparse(t.clause):void 0}function Cm(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of To){const o=r.clause;if(o.operator===n.operator&&(o.operator==="in"&&n.operator==="in"&&n.not!==!0&&n.in.moment===o.in.moment||o.operator==="in_last"&&n.operator==="in_last"&&n.not!==!0&&n.units===o.units&&Number(n.n)===Number(o.n)))return r.key}}const wm=/^\d{4}-\d{2}-\d{2}$/;function Pm(e,t){const n=Ve.utc(t,"YYYY-MM-DD").add(1,"day");return Lt.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function km(e){const t=e.trim();if(t==="")return;const{parsed:n}=Lt.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=Oa(n.fromMoment),o=Oa(n.toMoment);if(r===void 0||o===void 0)return;const s=Ve.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!s.isValid()||s.isBefore(Ve.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:s.format("YYYY-MM-DD")}}function Oa(e){return e.moment==="literal"&&wm.test(e.literal)?e.literal:void 0}const bo="self";function di(e){if(!e)return[];if(e.wasDimension&&!e.wasDimension())return[];const t=e.tag?.tag("drill");return t?(t.textArray("to")??[t.text("to")].filter($a)).filter($a):[]}function pi(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function yc(e){return e.tag?.tag("drill")?.text("given")??e.name}function Kr(e){if(typeof e=="string"){const t=ui([e]);return t===""?void 0:t}if(typeof e=="boolean")return String(e);if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(e instanceof Date){const t=e.toISOString();return t.slice(0,t.indexOf("T"))}}function bc(e){return e instanceof Date?Kr(e)??"":String(e)}function vc(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=di(t);if(n.length===0)return;const r=Kr(e.value);if(r!==void 0)return{to:n,given:yc(t),value:r,rawValue:e.value,label:bc(e.value)}}function $a(e){return typeof e=="string"&&e!==""}function xc(e,t){if(t!==void 0&&!Dn(t)){if(t==="number"){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string"||e.trim()==="")return;const n=Number(e);return Number.isFinite(n)?n:void 0}if(t==="date"||t==="timestamp"||t==="timestamptz")return e instanceof Date?e:void 0;if(t==="boolean")return typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0;if(typeof e=="string")return e.trim()===""?void 0:e;if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(typeof e=="boolean")return String(e)}return Or(t)==="string"&&typeof e=="number"?Number.isFinite(e)?ui([String(e)]):void 0:Or(t)==="number"?typeof e=="number"?Number.isFinite(e)?String(e):void 0:typeof e!="string"||e.trim()===""?void 0:Number.isFinite(Number(e))?e.trim():void 0:Kr(e)}function Sc({declaredTypes:e,setGiven:t,documentName:n}){const r=ie.useMemo(()=>{const a=new Map;for(const l of e.keys())a.has(l.toLowerCase())||a.set(l.toLowerCase(),l);return a},[e]),o=ie.useCallback(a=>e.has(a)?a:r.get(a.toLowerCase()),[e,r]),s=ie.useCallback(a=>o(a)!==void 0,[o]),i=ie.useCallback((a,l)=>{const c=o(a);if(c===void 0){console.warn(`# drill { to=self } tried to set '${a}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const u=e.get(c),d=xc(l,u);if(d===void 0){console.warn(`Drill declined: ${JSON.stringify(l)} cannot be a value for given "${c}"`+(u?` of type ${u}`:""));return}t(c,d)},[e,n,o,t]);return{resolveGiven:o,canSelf:s,onSelf:i}}function Mm(e,t){if(e!=null){if(e instanceof Date)return Pc(e,t);if(!Array.isArray(e))return String(e)}}function Dm(e,t){return new Date(Date.UTC(e.year(),e.month(),e.date(),t?.getUTCHours()??0,t?.getUTCMinutes()??0,t?.getUTCSeconds()??0,t?.getUTCMilliseconds()??0))}const Im=/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s]+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?)?\s*(Z|[+-]\d{2}:?\d{2}|[+-]\d{2}|UTC|GMT)?$/i;function Cc(e){const t=e.trim();return t===""?e:t.replace(/^(\d{4}-\d{1,2}-\d{1,2}[T\s]+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d{1,9})?)\s+(\d{2}:?\d{2}|\d{2})$/,"$1+$2")}function Tm(e,t=!1){const n=Cc(e);if(n==="")return;const r=Im.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,d]=r,h={year:Number(o),month:Number(s),day:Number(i),hour:Number(a??0),minute:Number(l??0),second:Number(c??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},b=Date.UTC(h.year,h.month-1,h.day,h.hour,h.minute,h.second,h.milli),p=new Date(b);if(!(p.getUTCFullYear()===h.year&&p.getUTCMonth()===h.month-1&&p.getUTCDate()===h.day&&p.getUTCHours()===h.hour&&p.getUTCMinutes()===h.minute&&p.getUTCSeconds()===h.second)||d!==void 0&&a===void 0)return;const y=Rm(d);if(y===void 0)return;const S=new Date(b-y*6e4);if(!(t&&d!==void 0&&S.getUTCDate()!==h.day))return S}function Rm(e){if(e===void 0)return 0;const t=e.toUpperCase();if(t==="Z"||t==="UTC"||t==="GMT")return 0;const n=/^([+-])(\d{2}):?(\d{2})?$/.exec(t);if(!n)return;const r=Number(n[3]??0);if(r>59)return;const o=Number(n[2])*60+r,s=n[1]!=="-";if(!(o>(s?840:720)))return s?o:-o}function Om(e){return!$m.has(e??"")}const $m=new Set(["boolean","number","date","timestamp","timestamptz"]);function wc(e,t){if(t===""&&!Om(e))return null;if(Dn(e))return t;switch(e){case"number":{const n=t.trim()===""?NaN:Number(t);return Number.isFinite(n)?n:t}case"boolean":return t==="true"?!0:t==="false"?!1:t;case"date":case"timestamp":case"timestamptz":{const n=Cc(t);return Tm(n,e==="date")??n}default:return t}}function Em(e,t){const n={};for(const[r,o]of e){const s=Mm(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function Pc(e,t){const n=e.toISOString();switch(t){case"timestamptz":return n;case"timestamp":return n.slice(0,-1);default:return n.slice(0,10)}}function Xo(e,t,n){const r=n?new Set(n):void 0,o={};for(const[s,i]of e)r&&!r.has(s)||i!=null&&(Array.isArray(i)||(o[s]=i instanceof Date?Pc(i,t.get(s)):i));return o}function Ea(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,wc(t.get(r),o));return n}function Aa(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function Fa(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function Am(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function La(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function kc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=ie.useMemo(()=>Ea(t??{},e),[e,JSON.stringify(t)]),a=ie.useRef(null),l=ie.useRef(null),c=ie.useRef({documentKey:o,params:n}),u=T=>T!==null&&Am(n??{},T,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!La(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const d=c.current.params,h=JSON.stringify(t),b=JSON.stringify(d),p=ie.useMemo(()=>Ea({...t??{},...d??{}},e),[e,h,b]),g=ie.useMemo(()=>JSON.stringify([o??null,Fa(t),Fa(d)]),[o,h,b]),[y,S]=ie.useState(null),P=y?.key===g?y:null;ie.useEffect(()=>{y!==null&&y.key!==g&&S(null)},[y,g]);const C=ie.useMemo(()=>Aa(P?.draft??p,e),[P,p,e]),x=ie.useMemo(()=>Aa(P?.applied??p,e),[P,p,e]),I=ie.useCallback(T=>T?.key===g?T:{key:g,draft:p,applied:p},[g,p]),M=ie.useMemo(()=>Em(x,e),[x,e]);a.current===null&&(a.current=M),ie.useEffect(()=>{r&&(La(a.current??{},M)||(l.current=a.current,a.current=M,r(M)))},[M,r]);const $=ie.useCallback((T,m)=>{S(O=>{const D=I(O),k=new Map(D.draft);return m===null?k.delete(T):k.set(T,m),{key:D.key,draft:k,applied:s?k:D.applied}})},[s,I]),R=ie.useCallback(()=>{S(T=>({key:I(T).key,draft:i,applied:i}))},[I,i]),E=ie.useCallback(()=>{S(T=>{const m=I(T);return{key:m.key,draft:m.draft,applied:m.draft}})},[I]),F=ie.useMemo(()=>{if(s)return!1;if(C.size!==x.size)return!0;for(const[T,m]of C){const O=x.get(T);if(m instanceof Date&&O instanceof Date){if(m.getTime()!==O.getTime())return!0}else if(Array.isArray(m)&&Array.isArray(O)){if(String(m)!==String(O))return!0}else if(m!==O)return!0}return!1},[s,C,x]);return{draft:C,applied:x,setGiven:$,reset:R,apply:E,pending:F}}const Fm=1e3;function Mc(e){const t=e.split(".");return t[t.length-1]}function Lm(e,t){return`run: ${e} -> {
|
|
17
17
|
group_by: ${t}
|
|
18
|
-
order_by: ${
|
|
18
|
+
order_by: ${Mc(t)} asc
|
|
19
19
|
limit: ${Fm}
|
|
20
|
-
}`}function Nm(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=Xo(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function Ic(e,t,n,r,o,s){const{apiClients:i}=Ke.useServer(),a=ie.useMemo(()=>r.filter(d=>d.name!==void 0&&(d.control==="select"||d.control==="multiselect")&&(d.suggest?.query!==void 0||d.suggest?.source!==void 0&&d.suggest?.dimension!==void 0)),[r]),l=ni.useQueries({queries:a.map(d=>{const h=Nm(d,s);return{queryKey:["givenSuggest",e,t,o,n,d.name,d.suggest?.query,d.suggest?.source,d.suggest?.dimension,h===void 0?null:JSON.stringify(h)],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async()=>{const b=d.suggest??{},p=await i.models.executeQueryModel(e,t,n,b.query!==void 0?{queryName:b.query,compactJson:!0,versionId:o,givens:h}:{query:Lm(b.source,b.dimension),compactJson:!0,versionId:o,givens:h});return jm(p.data.result,b.dimension===void 0?void 0:Dc(b.dimension))}}})}),c=ie.useMemo(()=>{const d=new Map;return a.forEach((h,b)=>{const p=l[b]?.data;h.name&&p&&d.set(h.name,p)}),d},[a,JSON.stringify(l.map(d=>d.data))]),u=ie.useMemo(()=>{const d=new Set;return a.forEach((h,b)=>{h.name&&l[b]?.isError&&d.add(h.name)}),d},[a,l.map(d=>d.isError).join("|")]);return{options:c,isLoading:l.some(d=>d.isLoading),failed:u}}function jm(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const s of n){if(s===null||typeof s!="object")continue;const i=s,a=Object.keys(i),l=t!==void 0&&Object.prototype.hasOwnProperty.call(i,t)?t:a[0],c=l===void 0?void 0:i[l];if(c==null)continue;const u=String(c);o.has(u)||(o.add(u),r.push(u))}return r}function Tc({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:d}){const h=ie.useMemo(()=>new Map(e.filter(x=>x.name!==void 0).map(x=>[x.name,x.type])),[e]),b=ie.useCallback(x=>{t&&o?.(x,Array.from(h.keys()))},[t,o,h]),p=Mc({declaredTypes:h,startingValues:n,params:r,onParamsChange:t?b:void 0,documentKey:s,autorun:i}),{options:g,isLoading:y,failed:S}=Ic(a,l,c,e,u,{values:p.applied,declaredTypes:h}),{canSelf:P,onSelf:C}=Cc({declaredTypes:h,setGiven:p.setGiven,documentName:d});return{...p,declaredTypes:h,options:g,optionsLoading:y,optionsFailed:S,canSelf:P,onSelf:C,panel:{givens:e,values:p.draft,onChange:p.setGiven,onReset:p.reset,options:g,optionsLoading:y,optionsFailed:S,apply:i?void 0:{onApply:p.apply,pending:p.pending}}}}function Zo(e){const{server:t}=Ke.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return ni.useQuery(n,Ke.globalQueryClient)}function Rc(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return ni.useMutation(t,Ke.globalQueryClient)}const Qr=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const s=r[o];s==="environments"?n.environmentName=decodeURI(r[o+1])||void 0:s==="packages"?n.packageName=decodeURI(r[o+1])||void 0:s==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:s==="models"&&(n.modelPath=decodeURI(r.slice(o+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.environmentName)throw new Error(`Failed to parse resource URI: ${e}`);return n},Oc=e=>{if(!e.environmentName)throw new Error(`Failed to encode resource URI, missing environment name: ${e}`);let t=`publisher://environments/${e.environmentName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};function $c({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[s,i]=ie.useState(null),a=ie.useCallback((p,g)=>p.filter(y=>y===bo?t!==void 0&&(r?.(g)??!0):e!==void 0),[e,t,r]),l=ie.useCallback((p,g,y)=>{if(g===bo){t?.(p.given,p.rawValue);return}e?.({dashboard:g,givens:{[p.given]:p.value}},y)},[e,t]),c=ie.useCallback(p=>{if(!(!o||p.isHeader||!p.field)&&(p.field.wasDimension?.()??!1)&&Kr(p.value)!==void 0)return{field:p.field.name,rawValue:p.value,label:vc(p.value),...p.context===void 0?{}:{context:p.context}}},[o]),u=ie.useCallback(p=>{const g=xc(p),y=c(p),S=g?a(g.to,g.given):[];if(S.length===0){y&&o?.(y);return}if(S.length===1&&g){l(g,S[0],p.event);return}i({...g?{intent:g}:{},destinations:S,event:p.event,top:p.event?.clientY??0,left:p.event?.clientX??0,label:g?.label??y?.label??""})},[l,a,o,c]),d=ie.useCallback(p=>a(pi(p),bc(p)).length>0||o!==void 0&&(p.wasDimension?.()??!1),[a,o]),h=ie.useMemo(()=>({onClick:u,canDrill:d}),[u,d]),b=ie.useCallback(()=>i(null),[]);return{drill:h,drillMenu:f.jsxs(se.Menu,{open:s!==null,onClose:b,anchorReference:"anchorPosition",anchorPosition:{top:s?.top??0,left:s?.left??0},children:[f.jsx(se.ListSubheader,{sx:{lineHeight:"32px"},children:s?`${s.label} →`:""}),Array.from(new Set(s?.destinations??[])).map(p=>f.jsx(se.MenuItem,{onClick:()=>{b(),s?.intent&&l(s.intent,p,s.event)},children:p===bo?n:fi(p)},p))]})}}const Ro=ct(f.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"}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}var vo={exports:{}},Bm=vo.exports,ja;function Vm(){return ja||(ja=1,(function(e,t){(function(n,r){e.exports=r()})(Bm,(function(){var n="week",r="year";return function(o,s,i){var a=s.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(h,n,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(vo)),vo.exports}var zm=Vm();const Wm=sn(zm);var xo={exports:{}},_m=xo.exports,Ba;function Hm(){return Ba||(Ba=1,(function(e,t){(function(n,r){e.exports=r()})(_m,(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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(S){this[y]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var P=S.match(/([+-]|\d\d)/g),C=60*P[1]+(+P[2]||0);return C===0?0:P[0]==="+"?-C:C})(y)}],h=function(y){var S=l[y];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(y,S){var P,C=l.meridiem;if(C){for(var x=1;x<=24;x+=1)if(y.indexOf(C(x,0,S))>-1){P=x>12;break}}else P=y===(S?"pm":"PM");return P},p={A:[a,function(y){this.afternoon=b(y,!1)}],a:[a,function(y){this.afternoon=b(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(y){var S=l.ordinal,P=y.match(/\d+/);if(this.day=P[0],S)for(var C=1;C<=31;C+=1)S(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(y){var S=h("months"),P=(h("monthsShort")||S.map((function(C){return C.slice(0,3)}))).indexOf(y)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[a,function(y){var S=h("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(y){var S,P;S=y,P=l&&l.formats;for(var C=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,T,m){var O=m&&m.toUpperCase();return T||P[m]||n[m]||P[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,k,w){return k||w.slice(1)}))}))).match(r),x=C.length,I=0;I<x;I+=1){var M=C[I],$=p[M],R=$&&$[0],E=$&&$[1];C[I]=E?{regex:R,parser:E}:M.replace(/^\[|\]$/g,"")}return function(F){for(var T={},m=0,O=0;m<x;m+=1){var D=C[m];if(typeof D=="string")O+=D.length;else{var k=D.regex,w=D.parser,A=F.slice(O),L=k.exec(A)[0];w.call(T,L),F=F.replace(L,"")}}return(function(N){var Y=N.afternoon;if(Y!==void 0){var W=N.hours;Y?W<12&&(N.hours+=12):W===12&&(N.hours=0),delete N.afternoon}})(T),T}}return function(y,S,P){P.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var C=S.prototype,x=C.parse;C.parse=function(I){var M=I.date,$=I.utc,R=I.args;this.$u=$;var E=R[1];if(typeof E=="string"){var F=R[2]===!0,T=R[3]===!0,m=F||T,O=R[2];T&&(O=R[2]),l=this.$locale(),!F&&O&&(l=P.Ls[O]),this.$d=(function(A,L,N,Y){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*A);var W=g(L)(A),J=W.year,ce=W.month,ae=W.day,V=W.hours,q=W.minutes,ne=W.seconds,K=W.milliseconds,z=W.zone,G=W.week,oe=new Date,re=ae||(J||ce?1:oe.getDate()),B=J||oe.getFullYear(),ee=0;J&&!ce||(ee=ce>0?ce-1:oe.getMonth());var le,te=V||0,pe=q||0,H=ne||0,ye=K||0;return z?new Date(Date.UTC(B,ee,re,te,pe,H,ye+60*z.offset*1e3)):N?new Date(Date.UTC(B,ee,re,te,pe,H,ye)):(le=new Date(B,ee,re,te,pe,H,ye),G&&(le=Y(le).week(G).toDate()),le)}catch{return new Date("")}})(M,E,$,P),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),m&&M!=this.format(E)&&(this.$d=new Date("")),l={}}else if(E instanceof Array)for(var D=E.length,k=1;k<=D;k+=1){R[1]=E[k-1];var w=P.apply(this,R);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}k===D&&(this.$d=new Date(""))}else x.call(this,I)}}}))})(xo)),xo.exports}var Um=Hm();const Ym=sn(Um);var So={exports:{}},Gm=So.exports,Va;function qm(){return Va||(Va=1,(function(e,t){(function(n,r){e.exports=r()})(Gm,(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(r,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=(function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,p,g){var y=g&&g.toUpperCase();return p||h[g]||n[g]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,P,C){return P||C.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(So)),So.exports}var Km=qm();const Qm=sn(Km);var Co={exports:{}},Xm=Co.exports,za;function Zm(){return za||(za=1,(function(e,t){(function(n,r){e.exports=r()})(Xm,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),d=(l=l||"()")[0]==="(",h=l[1]===")";return(d?this.isAfter(c,a):!this.isBefore(c,a))&&(h?this.isBefore(u,a):!this.isAfter(u,a))||(d?this.isBefore(c,a):!this.isAfter(c,a))&&(h?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(Co)),Co.exports}var Jm=Zm();const eh=sn(Jm);var wo={exports:{}},th=wo.exports,Wa;function nh(){return Wa||(Wa=1,(function(e,t){(function(n,r){e.exports=r()})(th,(function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(i||"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(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return s.bind(this)(u)}}}))})(wo)),wo.exports}var rh=nh();const oh=sn(rh);Ve.extend(Qm);Ve.extend(Wm);Ve.extend(eh);Ve.extend(oh);const sh={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"},ih={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",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ms=["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(`
|
|
21
|
-
`),
|
|
22
|
-
`),ah=(e,t)=>t?(...n)=>e(...n).locale(t):e;class Oo{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=sh,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Ve.utc<"u",this.hasTimezonePlugin=()=>typeof Ve.tz<"u",this.isSame=(r,o,s)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.format(s)===i.format(s)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Ve.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Ve.tz.guess();return o!=="UTC"?Ve.tz(r,o):Ve(r)}return Ve(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Ms);return Ve.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Ms);if(!this.hasTimezonePlugin())throw new Error(
|
|
23
|
-
`)),(
|
|
24
|
-
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Mh=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},es=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),s=e.endOfWeek(r);let i=o;for(;e.isBefore(i,s);)n.push(i),i=e.addDays(i,1);return n.map(a=>e.formatByString(a,t))},
|
|
25
|
-
`));return S},[l,d,c,u,o]),g=v.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),y=v.useMemo(()=>({utils:p,defaultDates:g,localeText:b}),[g,p,b]);return f.jsx(Vs.Provider,{value:y,children:a})},_h=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),
|
|
20
|
+
}`}function Nm(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=Xo(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function Dc(e,t,n,r,o,s){const{apiClients:i}=Ge.useServer(),a=ie.useMemo(()=>r.filter(d=>d.name!==void 0&&(d.control==="select"||d.control==="multiselect")&&(d.suggest?.query!==void 0||d.suggest?.source!==void 0&&d.suggest?.dimension!==void 0)),[r]),l=ti.useQueries({queries:a.map(d=>{const h=Nm(d,s);return{queryKey:["givenSuggest",e,t,o,n,d.name,d.suggest?.query,d.suggest?.source,d.suggest?.dimension,h===void 0?null:JSON.stringify(h)],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async()=>{const b=d.suggest??{},p=await i.models.executeQueryModel(e,t,n,b.query!==void 0?{queryName:b.query,compactJson:!0,versionId:o,givens:h}:{query:Lm(b.source,b.dimension),compactJson:!0,versionId:o,givens:h});return jm(p.data.result,b.dimension===void 0?void 0:Mc(b.dimension))}}})}),c=ie.useMemo(()=>{const d=new Map;return a.forEach((h,b)=>{const p=l[b]?.data;h.name&&p&&d.set(h.name,p)}),d},[a,JSON.stringify(l.map(d=>d.data))]),u=ie.useMemo(()=>{const d=new Set;return a.forEach((h,b)=>{h.name&&l[b]?.isError&&d.add(h.name)}),d},[a,l.map(d=>d.isError).join("|")]);return{options:c,isLoading:l.some(d=>d.isLoading),failed:u}}function jm(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const s of n){if(s===null||typeof s!="object")continue;const i=s,a=Object.keys(i),l=t!==void 0&&Object.prototype.hasOwnProperty.call(i,t)?t:a[0],c=l===void 0?void 0:i[l];if(c==null)continue;const u=String(c);o.has(u)||(o.add(u),r.push(u))}return r}function Ic({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:d}){const h=ie.useMemo(()=>new Map(e.filter(x=>x.name!==void 0).map(x=>[x.name,x.type])),[e]),b=ie.useCallback(x=>{t&&o?.(x,Array.from(h.keys()))},[t,o,h]),p=kc({declaredTypes:h,startingValues:n,params:r,onParamsChange:t?b:void 0,documentKey:s,autorun:i}),{options:g,isLoading:y,failed:S}=Dc(a,l,c,e,u,{values:p.applied,declaredTypes:h}),{canSelf:P,onSelf:C}=Sc({declaredTypes:h,setGiven:p.setGiven,documentName:d});return{...p,declaredTypes:h,options:g,optionsLoading:y,optionsFailed:S,canSelf:P,onSelf:C,panel:{givens:e,values:p.draft,onChange:p.setGiven,onReset:p.reset,options:g,optionsLoading:y,optionsFailed:S,apply:i?void 0:{onApply:p.apply,pending:p.pending}}}}function Zo(e){const{server:t}=Ge.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return ti.useQuery(n,Ge.globalQueryClient)}function Tc(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return ti.useMutation(t,Ge.globalQueryClient)}const Qr=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const s=r[o];s==="environments"?n.environmentName=decodeURI(r[o+1])||void 0:s==="packages"?n.packageName=decodeURI(r[o+1])||void 0:s==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:s==="models"&&(n.modelPath=decodeURI(r.slice(o+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.environmentName)throw new Error(`Failed to parse resource URI: ${e}`);return n},Rc=e=>{if(!e.environmentName)throw new Error(`Failed to encode resource URI, missing environment name: ${e}`);let t=`publisher://environments/${e.environmentName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};function Oc({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[s,i]=ie.useState(null),a=ie.useCallback((p,g)=>p.filter(y=>y===bo?t!==void 0&&(r?.(g)??!0):e!==void 0),[e,t,r]),l=ie.useCallback((p,g,y)=>{if(g===bo){t?.(p.given,p.rawValue);return}e?.({dashboard:g,givens:{[p.given]:p.value}},y)},[e,t]),c=ie.useCallback(p=>{if(!(!o||p.isHeader||!p.field)&&(p.field.wasDimension?.()??!1)&&Kr(p.value)!==void 0)return{field:p.field.name,rawValue:p.value,label:bc(p.value),...p.context===void 0?{}:{context:p.context}}},[o]),u=ie.useCallback(p=>{const g=vc(p),y=c(p),S=g?a(g.to,g.given):[];if(S.length===0){y&&o?.(y);return}if(S.length===1&&g){l(g,S[0],p.event);return}i({...g?{intent:g}:{},destinations:S,event:p.event,top:p.event?.clientY??0,left:p.event?.clientX??0,label:g?.label??y?.label??""})},[l,a,o,c]),d=ie.useCallback(p=>a(di(p),yc(p)).length>0||o!==void 0&&(p.wasDimension?.()??!1),[a,o]),h=ie.useMemo(()=>({onClick:u,canDrill:d}),[u,d]),b=ie.useCallback(()=>i(null),[]);return{drill:h,drillMenu:f.jsxs(se.Menu,{open:s!==null,onClose:b,anchorReference:"anchorPosition",anchorPosition:{top:s?.top??0,left:s?.left??0},children:[f.jsx(se.ListSubheader,{sx:{lineHeight:"32px"},children:s?`${s.label} →`:""}),Array.from(new Set(s?.destinations??[])).map(p=>f.jsx(se.MenuItem,{onClick:()=>{b(),s?.intent&&l(s.intent,p,s.event)},children:p===bo?n:pi(p)},p))]})}}const Ro=ct(f.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"}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}var vo={exports:{}},Bm=vo.exports,Na;function Vm(){return Na||(Na=1,(function(e,t){(function(n,r){e.exports=r()})(Bm,(function(){var n="week",r="year";return function(o,s,i){var a=s.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(h,n,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(vo)),vo.exports}var zm=Vm();const Wm=sn(zm);var xo={exports:{}},_m=xo.exports,ja;function Hm(){return ja||(ja=1,(function(e,t){(function(n,r){e.exports=r()})(_m,(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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(S){this[y]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var P=S.match(/([+-]|\d\d)/g),C=60*P[1]+(+P[2]||0);return C===0?0:P[0]==="+"?-C:C})(y)}],h=function(y){var S=l[y];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(y,S){var P,C=l.meridiem;if(C){for(var x=1;x<=24;x+=1)if(y.indexOf(C(x,0,S))>-1){P=x>12;break}}else P=y===(S?"pm":"PM");return P},p={A:[a,function(y){this.afternoon=b(y,!1)}],a:[a,function(y){this.afternoon=b(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(y){var S=l.ordinal,P=y.match(/\d+/);if(this.day=P[0],S)for(var C=1;C<=31;C+=1)S(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(y){var S=h("months"),P=(h("monthsShort")||S.map((function(C){return C.slice(0,3)}))).indexOf(y)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[a,function(y){var S=h("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(y){var S,P;S=y,P=l&&l.formats;for(var C=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,T,m){var O=m&&m.toUpperCase();return T||P[m]||n[m]||P[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,k,w){return k||w.slice(1)}))}))).match(r),x=C.length,I=0;I<x;I+=1){var M=C[I],$=p[M],R=$&&$[0],E=$&&$[1];C[I]=E?{regex:R,parser:E}:M.replace(/^\[|\]$/g,"")}return function(F){for(var T={},m=0,O=0;m<x;m+=1){var D=C[m];if(typeof D=="string")O+=D.length;else{var k=D.regex,w=D.parser,A=F.slice(O),L=k.exec(A)[0];w.call(T,L),F=F.replace(L,"")}}return(function(N){var Y=N.afternoon;if(Y!==void 0){var W=N.hours;Y?W<12&&(N.hours+=12):W===12&&(N.hours=0),delete N.afternoon}})(T),T}}return function(y,S,P){P.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var C=S.prototype,x=C.parse;C.parse=function(I){var M=I.date,$=I.utc,R=I.args;this.$u=$;var E=R[1];if(typeof E=="string"){var F=R[2]===!0,T=R[3]===!0,m=F||T,O=R[2];T&&(O=R[2]),l=this.$locale(),!F&&O&&(l=P.Ls[O]),this.$d=(function(A,L,N,Y){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*A);var W=g(L)(A),J=W.year,ce=W.month,ae=W.day,V=W.hours,q=W.minutes,ne=W.seconds,K=W.milliseconds,z=W.zone,G=W.week,oe=new Date,re=ae||(J||ce?1:oe.getDate()),B=J||oe.getFullYear(),ee=0;J&&!ce||(ee=ce>0?ce-1:oe.getMonth());var le,te=V||0,pe=q||0,H=ne||0,ye=K||0;return z?new Date(Date.UTC(B,ee,re,te,pe,H,ye+60*z.offset*1e3)):N?new Date(Date.UTC(B,ee,re,te,pe,H,ye)):(le=new Date(B,ee,re,te,pe,H,ye),G&&(le=Y(le).week(G).toDate()),le)}catch{return new Date("")}})(M,E,$,P),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),m&&M!=this.format(E)&&(this.$d=new Date("")),l={}}else if(E instanceof Array)for(var D=E.length,k=1;k<=D;k+=1){R[1]=E[k-1];var w=P.apply(this,R);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}k===D&&(this.$d=new Date(""))}else x.call(this,I)}}}))})(xo)),xo.exports}var Um=Hm();const Ym=sn(Um);var So={exports:{}},Gm=So.exports,Ba;function qm(){return Ba||(Ba=1,(function(e,t){(function(n,r){e.exports=r()})(Gm,(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(r,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=(function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,p,g){var y=g&&g.toUpperCase();return p||h[g]||n[g]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,P,C){return P||C.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(So)),So.exports}var Km=qm();const Qm=sn(Km);var Co={exports:{}},Xm=Co.exports,Va;function Zm(){return Va||(Va=1,(function(e,t){(function(n,r){e.exports=r()})(Xm,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),d=(l=l||"()")[0]==="(",h=l[1]===")";return(d?this.isAfter(c,a):!this.isBefore(c,a))&&(h?this.isBefore(u,a):!this.isAfter(u,a))||(d?this.isBefore(c,a):!this.isAfter(c,a))&&(h?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(Co)),Co.exports}var Jm=Zm();const eh=sn(Jm);var wo={exports:{}},th=wo.exports,za;function nh(){return za||(za=1,(function(e,t){(function(n,r){e.exports=r()})(th,(function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(i||"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(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return s.bind(this)(u)}}}))})(wo)),wo.exports}var rh=nh();const oh=sn(rh);Ve.extend(Qm);Ve.extend(Wm);Ve.extend(eh);Ve.extend(oh);const sh={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"},ih={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",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ms=["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(`
|
|
21
|
+
`),Wa=["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(`
|
|
22
|
+
`),ah=(e,t)=>t?(...n)=>e(...n).locale(t):e;class Oo{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=sh,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Ve.utc<"u",this.hasTimezonePlugin=()=>typeof Ve.tz<"u",this.isSame=(r,o,s)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.format(s)===i.format(s)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Ve.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Ve.tz.guess();return o!=="UTC"?Ve.tz(r,o):Ve(r)}return Ve(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Ms);return Ve.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Ms);if(!this.hasTimezonePlugin())throw new Error(Wa);const s=r!==void 0&&!r.endsWith("Z");return Ve(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=Ve.Ls,o=this.locale||"en";let s=r[o];return s===void 0&&(s=r.en),s.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const s=r.tz(this.cleanTimezone(o),!0);if(s.$offset===(r.$offset??0))return r;r.$offset=s.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let s;return o==="UTC"?s=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(r):s=this.createTZDate(r,o),this.locale===void 0?s:s.locale(this.locale)},this.getInvalidDate=()=>Ve(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const o=r.$x?.$timezone;if(o)return o}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(Ms);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Wa)}return Ve.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),s=i=>i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(i,a,l)=>{const c=l&&l.toUpperCase();return a||o[l]||s(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,s])=>r>=o&&r<=s,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),s=this.endOfWeek(this.endOfMonth(r));let i=0,a=o;const l=[];for(;a<s;){const c=Math.floor(i/7);l[c]=l[c]||[],l[c].push(a),a=this.addDays(a,1),i+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const s=this.startOfYear(r),i=this.endOfYear(o),a=[];let l=s;for(;this.isBefore(l,i);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=ah(Ve,t),this.locale=t,this.formats=j({},ih,n),Ve.extend(Ym)}getDayOfWeek(t){return t.day()+1}}function ke(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $c(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Br(t.components[n].defaultProps,r)}function lh({props:e,name:t,defaultTheme:n,themeId:r}){let o=pf(n);return o=o[r]||o,$c({theme:o,name:t,props:e})}function ch(e,t,n,r,o){const[s,i]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return st(()=>{if(!n)return;const a=n(e),l=()=>{i(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),s}const uh={...v},Ec=uh.useSyncExternalStore;function dh(e,t,n,r,o){const s=v.useCallback(()=>t,[t]),i=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[a,l]=v.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[s,n,e]);return Ec(l,a,i)}function Ac(e={}){const{themeId:t}=e;return function(r,o={}){let s=ic();s&&t&&(s=s[t]||s);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=$c({name:"MuiUseMediaQuery",props:o,theme:s});let d=typeof r=="function"?r(s):r;return d=d.replace(/^@media( ?)/m,""),d.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(`
|
|
23
|
+
`)),(Ec!==void 0?dh:ch)(d,a,l,c,u)}}Ac();const Fc=Ac({themeId:ur});function He({props:e,name:t}){return lh({props:e,name:t,defaultTheme:Ko,themeId:ur})}const Lc=U.oneOfType([U.func,U.object]),_a={};function Nc(e,t){const n=v.useRef(_a);return n.current===_a&&(n.current=e(t)),n}const ph=[];function fh(e){v.useEffect(e,ph)}class fi{static create(){return new fi}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function mi(){const e=Nc(fi.create).current;return fh(e.disposeEffect),e}function Ha(e){try{return e.matches(":focus-visible")}catch{}return!1}function jc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const mh=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current},hh={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function rr(e){return typeof e=="string"}function Bc(e,t,n){return e===void 0||rr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function hi(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Ua(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Vc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=me(n?.className,s,o?.className,r?.className),p={...n?.style,...o?.style,...r?.style},g={...n,...o,...r};return b.length>0&&(g.className=b),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const i=hi({...o,...r}),a=Ua(r),l=Ua(o),c=t(i),u=me(c?.className,n?.className,s,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...a};return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}function Jo(e,t,n){return typeof e=="function"?e(t,n):e}function Ae(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:Jo(n,r),{props:a,internalRef:l}=Vc({...s,externalSlotProps:i}),c=Fe(l,i?.ref,e.additionalProps?.ref);return Bc(t,{...a,ref:c},r)}function dr(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}const yr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),gh=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},$o=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},$r=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=$o(i,i.date(void 0,a),e);n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(u){if(!s(u))return u;u=i.addDays(u,-1)}}return null},yh=(e,t)=>t==null||!e.isValid(t)?null:t,Et=(e,t,n)=>t==null||!e.isValid(t)?n:t,bh=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),gi=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},zc=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),vh=["year","month","day"],Ya=e=>vh.includes(e),yi=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return yr(n,["year"])?o.year:yr(n,["month"])?o.month:yr(n,["day"])?o.dayOfMonth:yr(n,["month","year"])?`${o.month} ${o.year}`:yr(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},xh=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Sh=["hours","minutes","seconds"],Ch=e=>Sh.includes(e),Ga=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),wh=(e,t)=>(n,r)=>e?t.isAfter(n,r):Ga(n,t)>Ga(r,t),Yt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Ph=e=>Math.max(...e.map(t=>Yt[t.type]??1)),br=(e,t,n)=>{if(t===Yt.year)return e.startOfYear(n);if(t===Yt.month)return e.startOfMonth(n);if(t===Yt.day)return e.startOfDay(n);let r=n;return t<Yt.minutes&&(r=e.setMinutes(r,0)),t<Yt.seconds&&(r=e.setSeconds(r,0)),t<Yt.milliseconds&&(r=e.setMilliseconds(r,0)),r},kh=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():br(t,n,zc(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=br(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=br(t,n,e.maxDate));const i=wh(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=br(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:$o(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=br(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:$o(t,s,e.maxTime))),s},Wc=(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(`
|
|
24
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Mh=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},es=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),s=e.endOfWeek(r);let i=o;for(;e.isBefore(i,s);)n.push(i),i=e.addDays(i,1);return n.map(a=>e.formatByString(a,t))},_c=(e,t,n,r)=>{switch(n){case"month":return gi(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return es(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},qa="s",Dh=["0","1","2","3","4","5","6","7","8","9"],Ih=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),qa)==="0"?Dh:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),qa))},$n=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const s=t.indexOf(r);s>-1&&(n.push(s.toString()),r="")}return n.join("")},bi=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Ka=(e,t)=>{const n=$n(e,t);return n!==" "&&!Number.isNaN(Number(n))},Hc=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Uc=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,t);return e.formatByString(i,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=Hc(s,o.maxLength)),bi(s,r)},Th=(e,t,n,r,o,s,i,a)=>{const l=Mh(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,h=()=>{const p=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),g=P=>Uc(e,P,p,s,n),y=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let S;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?S=p.minimum:S=p.maximum}else S=parseInt($n(n.value,s),10)+l*y;return S%y!==0&&((l<0||c)&&(S+=y-(y+S)%y),(l>0||u)&&(S-=S%y)),S>p.maximum?g(p.minimum+(S-p.maximum-1)%(p.maximum-p.minimum+1)):S<p.minimum?g(p.maximum-(p.minimum-S-1)%(p.maximum-p.minimum+1)):g(S)},b=()=>{const p=_c(e,t,n.type,n.format);if(p.length===0)return n.value;if(d)return l>0||c?p[0]:p[p.length-1];const S=((p.indexOf(n.value)+l)%p.length+p.length)%p.length;return p[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():b()},vi=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number($n(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},Qa=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Rh=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Yc=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Oh=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],s=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),s.push(vi(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},$h=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Eh=(e,t,n)=>{const o=e.map(s=>{const i=vi(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`${o}`:o},Ah=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=gi(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Rh(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):i,longestMonth:a}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=es(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(s);return $n(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number($n(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Fh=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=es(e,t.format),s=e.formatByString(n,t.format),i=o.indexOf(s),l=o.indexOf(t.value)-i;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,s=e.getHours(r);return o&&s>=12?e.addHours(r,-12):!o&&s<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},Xa={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Za=(e,t,n,r,o)=>[...n].sort((s,i)=>Xa[s.type]-Xa[i.type]).reduce((s,i)=>!o||i.modified?Fh(e,i,t,s):s,r),Lh=()=>navigator.userAgent.toLowerCase().includes("android"),Nh=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,a=e.length-1;for(;a>=0;){i=e.findIndex((l,c)=>c>=s&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),i===-1&&(i=e.length-1);for(let l=i;l>=s;l-=1)o[l]=a,r[a]=l,a-=1;s=i+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Bs=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},jh=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Bh=(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}},Vh=["value","referenceDate"],Kt={emptyValue:null,getTodayValue:zc,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ke(e,Vh);return t!=null&&r.utils.isValid(t)?t:n??kh(r)},cleanValue:yh,areValuesEqual:bh,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},zh={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:$h,getV6InputValueFromSections:Eh,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Wh=["localeText"],Vs=v.createContext(null),Vr=function(t){const{localeText:n}=t,r=ke(t,Wh),{utils:o,localeText:s}=v.useContext(Vs)??{utils:void 0,localeText:void 0},i=He({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:h}=i,b=v.useMemo(()=>j({},h,s,n),[h,s,n]),p=v.useMemo(()=>{if(!l)return o||null;const S=new l({locale:d,formats:c,instance:u});if(!S.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
25
|
+
`));return S},[l,d,c,u,o]),g=v.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),y=v.useMemo(()=>({utils:p,defaultDates:g,localeText:b}),[g,p,b]);return f.jsx(Vs.Provider,{value:y,children:a})},_h=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),Gc=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return s=>{const i=s!==null&&t.isValid(s)?t.format(s,n):null;return(o??r)(s,t,i)}},qc={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Hh=qc;_h(qc);const Ln=()=>{const e=v.useContext(Vs);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(`
|
|
26
26
|
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
27
|
-
`));const t=v.useMemo(()=>j({},Hh,e.localeText),[e.localeText]);return v.useMemo(()=>j({},e,{localeText:t}),[e,t])},Ue=()=>Ln().utils,Xr=()=>Ln().defaultDates,ts=e=>{const t=Ue(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Uh(e){return typeof e.main=="string"}function Yh(e,t=[]){if(!Uh(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&&Yh(t,e)}function Gh(e){return Se("MuiTypography",e)}const qh=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Kh={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Qh=em(),Xh=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(a,Gh,i)},Zh=_("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${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Re(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ue(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),el={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gn=v.forwardRef(function(t,n){const{color:r,...o}=Oe({props:t,name:"MuiTypography"}),s=!Kh[r],i=Qh({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:h=!1,variant:b="body1",variantMapping:p=el,...g}=i,y={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:h,variant:b,variantMapping:p},S=c||(h?"p":p[b]||el[b])||"span",P=Xh(y);return f.jsx(Zh,{as:S,ref:n,className:me(P.root,l),...g,ownerState:y,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})});function Jh(e){return Se("MuiPickersToolbar",e)}be("MuiPickersToolbar",["root","content"]);const eg=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],tg=e=>{const{classes:t}=e;return ve({root:["root"],content:["content"]},Jh,t)},ng=_("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),rg=_("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),og=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ke(r,eg),u=r,d=tg(u);return a?null:f.jsxs(ng,j({ref:n,className:me(d.root,s),ownerState:u},c,{children:[f.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),f.jsx(rg,{className:d.content,ownerState:u,children:o})]}))}),an=()=>Ln().localeText;function sg(e){return Se("MuiDatePickerToolbar",e)}be("MuiDatePickerToolbar",["root","title"]);const ig=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],ag=e=>{const{classes:t}=e;return ve({root:["root"],title:["title"]},sg,t)},lg=_(og,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cg=_(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),ug=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ke(r,ig),d=Ue(),h=an(),b=ag(r),p=v.useMemo(()=>{if(!o)return a;const y=bi(d,{format:i,views:l},!0);return d.formatByString(o,y)},[o,i,a,d,l]),g=r;return f.jsx(lg,j({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:s,className:me(b.root,c)},u,{children:f.jsx(cg,{variant:"h4",align:s?"left":"center",ownerState:g,className:b.title,children:p})}))});function Qc(e,t){const n=Ue(),r=Xr(),o=He({props:e,name:t}),s=v.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:j({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return j({},o,{localeText:s},gh({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Et(n,o.minDate,r.minDate),maxDate:Et(n,o.maxDate,r.maxDate),slots:j({toolbar:ug},o.slots)})}const Zr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=Et(r.utils,e.minDate,r.defaultDates.minDate),d=Et(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Zr.valueManager=Kt;const Xc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],dg=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],pg=["minDateTime","maxDateTime"],fg=[...Xc,...dg,...pg],Zc=e=>fg.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Jc(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=Ln(),a=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{s&&!n.valueManager.isSameError(l,a.current)&&s(l,r),a.current=l},[n,s,l,r]);const u=fe(d=>n({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const ns=v.createContext(void 0);function Bt(){return v.useContext(ns)}function mg(e){return Se("MuiInputAdornment",e)}const tl=be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var nl;const hg=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gg=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,i,r&&"hiddenLabel",s&&`size${ue(s)}`]};return ve(a,mg,t)},yg=_("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:hg})(Re(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${tl.positionStart}&:not(.${tl.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),eu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,h=Bt()||{};let b=u;u&&h.variant,h&&!b&&(b=h.variant);const p={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b},g=gg(p);return f.jsx(ns.Provider,{value:null,children:f.jsx(yg,{as:i,ownerState:p,className:me(g.root,s),ref:n,...d,children:typeof o=="string"&&!l?f.jsx(gn,{color:"textSecondary",children:o}):f.jsxs(v.Fragment,{children:[c==="start"?nl||(nl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});class Eo{static create(){return new Eo}static use(){const t=jc(Eo.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=vg(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function bg(){return Eo.use()}function vg(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function zs(e,t){return zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zs(e,t)}function Si(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zs(e,t)}function xg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Sg(e,t){e.classList?e.classList.add(t):xg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function rl(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cg(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=rl(e.className,t):e.setAttribute("class",rl(e.className&&e.className.baseVal||"",t))}const ol={disabled:!1},Ao=ie.createContext(null);var tu=function(t){return t.scrollTop},Ir="unmounted",kn="exited",Mn="entering",Kn="entered",Ws="exiting",Ht=(function(e){Si(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=kn,s.appearStatus=Mn):l=Kn:r.unmountOnExit||r.mountOnEnter?l=Ir:l=kn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===Ir?{status:kn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Mn&&i!==Kn&&(s=Mn):(i===Mn||i===Kn)&&(s=Ws)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Mn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:kr.findDOMNode(this);i&&tu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kn&&this.setState({status:Ir})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[kr.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!o&&!i||ol.disabled){this.safeSetState({status:Kn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Mn},function(){s.props.onEntering(c,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Kn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:kr.findDOMNode(this);if(!s||ol.disabled){this.safeSetState({status:kn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ws},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:kn},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:kr.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ir)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=ke(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(Ao.Provider,{value:null},typeof i=="function"?i(o,a):ie.cloneElement(ie.Children.only(i),a))},t})(ie.Component);Ht.contextType=Ao;Ht.propTypes={};function Gn(){}Ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gn,onEntering:Gn,onEntered:Gn,onExit:Gn,onExiting:Gn,onExited:Gn};Ht.UNMOUNTED=Ir;Ht.EXITED=kn;Ht.ENTERING=Mn;Ht.ENTERED=Kn;Ht.EXITING=Ws;var wg=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Sg(t,r)})},Ds=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Cg(t,r)})},Ci=(function(e){Si(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";r.addClass(u,h,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";r.removeClasses(u,h),r.addClass(u,h,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],h=c?d+"-active":l[a+"Active"],b=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:b}},r}var n=t.prototype;return n.addClass=function(o,s,i){var a=this.getClassNames(s)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&i==="done"&&c&&(a+=" "+c),i==="active"&&o&&tu(o),a&&(this.appliedClasses[s][i]=a,wg(o,a))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],a=i.base,l=i.active,c=i.done;this.appliedClasses[s]={},a&&Ds(o,a),l&&Ds(o,l),c&&Ds(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ke(o,["classNames"]);return ie.createElement(Ht,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ie.Component);Ci.defaultProps={classNames:""};Ci.propTypes={};function Pg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wi(e,t){var n=function(s){return t&&ie.isValidElement(s)?t(s):s},r=Object.create(null);return e&&ie.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function kg(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}function Tn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Mg(e,t){return wi(e.children,function(n){return ie.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Tn(n,"appear",e),enter:Tn(n,"enter",e),exit:Tn(n,"exit",e)})})}function Dg(e,t,n){var r=wi(e.children),o=kg(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(ie.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=ie.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=ie.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Tn(i,"exit",e),enter:Tn(i,"enter",e)}):!l&&a&&!u?o[s]=ie.cloneElement(i,{in:!1}):l&&a&&ie.isValidElement(c)&&(o[s]=ie.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Tn(i,"exit",e),enter:Tn(i,"enter",e)}))}}),o}var Ig=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Tg={component:"div",childFactory:function(t){return t}},Jr=(function(e){Si(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Pg(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?Mg(o,a):Dg(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=wi(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ke(o,["component","childFactory"]),l=this.state.contextValue,c=Ig(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?ie.createElement(Ao.Provider,{value:l},c):ie.createElement(Ao.Provider,{value:l},ie.createElement(s,a,c))},t})(ie.Component);Jr.propTypes={};Jr.defaultProps=Tg;function Rg(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),h=me(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},p=me(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),v.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),f.jsx("span",{className:h,style:b,children:f.jsx("span",{className:p})})}const Rt=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_s=550,Og=80,$g=Qe.keyframes`
|
|
27
|
+
`));const t=v.useMemo(()=>j({},Hh,e.localeText),[e.localeText]);return v.useMemo(()=>j({},e,{localeText:t}),[e,t])},Ue=()=>Ln().utils,Xr=()=>Ln().defaultDates,ts=e=>{const t=Ue(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Uh(e){return typeof e.main=="string"}function Yh(e,t=[]){if(!Uh(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&&Yh(t,e)}function Gh(e){return Se("MuiTypography",e)}const qh=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Kh={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Qh=em(),Xh=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(a,Gh,i)},Zh=_("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${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Re(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ue(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ja={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gn=v.forwardRef(function(t,n){const{color:r,...o}=Oe({props:t,name:"MuiTypography"}),s=!Kh[r],i=Qh({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:h=!1,variant:b="body1",variantMapping:p=Ja,...g}=i,y={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:h,variant:b,variantMapping:p},S=c||(h?"p":p[b]||Ja[b])||"span",P=Xh(y);return f.jsx(Zh,{as:S,ref:n,className:me(P.root,l),...g,ownerState:y,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})});function Jh(e){return Se("MuiPickersToolbar",e)}be("MuiPickersToolbar",["root","content"]);const eg=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],tg=e=>{const{classes:t}=e;return ve({root:["root"],content:["content"]},Jh,t)},ng=_("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),rg=_("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),og=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ke(r,eg),u=r,d=tg(u);return a?null:f.jsxs(ng,j({ref:n,className:me(d.root,s),ownerState:u},c,{children:[f.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),f.jsx(rg,{className:d.content,ownerState:u,children:o})]}))}),an=()=>Ln().localeText;function sg(e){return Se("MuiDatePickerToolbar",e)}be("MuiDatePickerToolbar",["root","title"]);const ig=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],ag=e=>{const{classes:t}=e;return ve({root:["root"],title:["title"]},sg,t)},lg=_(og,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cg=_(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),ug=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ke(r,ig),d=Ue(),h=an(),b=ag(r),p=v.useMemo(()=>{if(!o)return a;const y=yi(d,{format:i,views:l},!0);return d.formatByString(o,y)},[o,i,a,d,l]),g=r;return f.jsx(lg,j({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:s,className:me(b.root,c)},u,{children:f.jsx(cg,{variant:"h4",align:s?"left":"center",ownerState:g,className:b.title,children:p})}))});function Kc(e,t){const n=Ue(),r=Xr(),o=He({props:e,name:t}),s=v.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:j({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return j({},o,{localeText:s},gh({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Et(n,o.minDate,r.minDate),maxDate:Et(n,o.maxDate,r.maxDate),slots:j({toolbar:ug},o.slots)})}const Zr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=Et(r.utils,e.minDate,r.defaultDates.minDate),d=Et(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Zr.valueManager=Kt;const Qc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],dg=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],pg=["minDateTime","maxDateTime"],fg=[...Qc,...dg,...pg],Xc=e=>fg.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Zc(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=Ln(),a=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{s&&!n.valueManager.isSameError(l,a.current)&&s(l,r),a.current=l},[n,s,l,r]);const u=fe(d=>n({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const ns=v.createContext(void 0);function Bt(){return v.useContext(ns)}function mg(e){return Se("MuiInputAdornment",e)}const el=be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var tl;const hg=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gg=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,i,r&&"hiddenLabel",s&&`size${ue(s)}`]};return ve(a,mg,t)},yg=_("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:hg})(Re(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${el.positionStart}&:not(.${el.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Jc=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,h=Bt()||{};let b=u;u&&h.variant,h&&!b&&(b=h.variant);const p={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b},g=gg(p);return f.jsx(ns.Provider,{value:null,children:f.jsx(yg,{as:i,ownerState:p,className:me(g.root,s),ref:n,...d,children:typeof o=="string"&&!l?f.jsx(gn,{color:"textSecondary",children:o}):f.jsxs(v.Fragment,{children:[c==="start"?tl||(tl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});class Eo{static create(){return new Eo}static use(){const t=Nc(Eo.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=vg(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function bg(){return Eo.use()}function vg(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function zs(e,t){return zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zs(e,t)}function xi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zs(e,t)}function xg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Sg(e,t){e.classList?e.classList.add(t):xg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function nl(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cg(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=nl(e.className,t):e.setAttribute("class",nl(e.className&&e.className.baseVal||"",t))}const rl={disabled:!1},Ao=ie.createContext(null);var eu=function(t){return t.scrollTop},Ir="unmounted",kn="exited",Mn="entering",Kn="entered",Ws="exiting",Ht=(function(e){xi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=kn,s.appearStatus=Mn):l=Kn:r.unmountOnExit||r.mountOnEnter?l=Ir:l=kn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===Ir?{status:kn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Mn&&i!==Kn&&(s=Mn):(i===Mn||i===Kn)&&(s=Ws)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Mn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:kr.findDOMNode(this);i&&eu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kn&&this.setState({status:Ir})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[kr.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!o&&!i||rl.disabled){this.safeSetState({status:Kn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Mn},function(){s.props.onEntering(c,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Kn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:kr.findDOMNode(this);if(!s||rl.disabled){this.safeSetState({status:kn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ws},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:kn},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:kr.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ir)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=ke(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(Ao.Provider,{value:null},typeof i=="function"?i(o,a):ie.cloneElement(ie.Children.only(i),a))},t})(ie.Component);Ht.contextType=Ao;Ht.propTypes={};function Gn(){}Ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gn,onEntering:Gn,onEntered:Gn,onExit:Gn,onExiting:Gn,onExited:Gn};Ht.UNMOUNTED=Ir;Ht.EXITED=kn;Ht.ENTERING=Mn;Ht.ENTERED=Kn;Ht.EXITING=Ws;var wg=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Sg(t,r)})},Ds=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Cg(t,r)})},Si=(function(e){xi(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";r.addClass(u,h,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";r.removeClasses(u,h),r.addClass(u,h,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],h=c?d+"-active":l[a+"Active"],b=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:b}},r}var n=t.prototype;return n.addClass=function(o,s,i){var a=this.getClassNames(s)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&i==="done"&&c&&(a+=" "+c),i==="active"&&o&&eu(o),a&&(this.appliedClasses[s][i]=a,wg(o,a))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],a=i.base,l=i.active,c=i.done;this.appliedClasses[s]={},a&&Ds(o,a),l&&Ds(o,l),c&&Ds(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ke(o,["classNames"]);return ie.createElement(Ht,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ie.Component);Si.defaultProps={classNames:""};Si.propTypes={};function Pg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ci(e,t){var n=function(s){return t&&ie.isValidElement(s)?t(s):s},r=Object.create(null);return e&&ie.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function kg(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}function Tn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Mg(e,t){return Ci(e.children,function(n){return ie.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Tn(n,"appear",e),enter:Tn(n,"enter",e),exit:Tn(n,"exit",e)})})}function Dg(e,t,n){var r=Ci(e.children),o=kg(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(ie.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=ie.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=ie.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Tn(i,"exit",e),enter:Tn(i,"enter",e)}):!l&&a&&!u?o[s]=ie.cloneElement(i,{in:!1}):l&&a&&ie.isValidElement(c)&&(o[s]=ie.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Tn(i,"exit",e),enter:Tn(i,"enter",e)}))}}),o}var Ig=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Tg={component:"div",childFactory:function(t){return t}},Jr=(function(e){xi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Pg(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?Mg(o,a):Dg(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=Ci(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ke(o,["component","childFactory"]),l=this.state.contextValue,c=Ig(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?ie.createElement(Ao.Provider,{value:l},c):ie.createElement(Ao.Provider,{value:l},ie.createElement(s,a,c))},t})(ie.Component);Jr.propTypes={};Jr.defaultProps=Tg;function Rg(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),h=me(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},p=me(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),v.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),f.jsx("span",{className:h,style:b,children:f.jsx("span",{className:p})})}const Rt=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_s=550,Og=80,$g=Qe.keyframes`
|
|
28
28
|
0% {
|
|
29
29
|
transform: scale(0);
|
|
30
30
|
opacity: 0.1;
|
|
@@ -97,7 +97,7 @@ export default theme;`}function Ia(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
97
97
|
animation-iteration-count: infinite;
|
|
98
98
|
animation-delay: 200ms;
|
|
99
99
|
}
|
|
100
|
-
`,Ng=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=v.useRef(!1),b=
|
|
100
|
+
`,Ng=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=v.useRef(!1),b=mi(),p=v.useRef(null),g=v.useRef(null),y=v.useCallback(x=>{const{pulsate:I,rippleX:M,rippleY:$,rippleSize:R,cb:E}=x;c(F=>[...F,f.jsx(Lg,{classes:{ripple:me(s.ripple,Rt.ripple),rippleVisible:me(s.rippleVisible,Rt.rippleVisible),ripplePulsate:me(s.ripplePulsate,Rt.ripplePulsate),child:me(s.child,Rt.child),childLeaving:me(s.childLeaving,Rt.childLeaving),childPulsate:me(s.childPulsate,Rt.childPulsate)},timeout:_s,pulsate:I,rippleX:M,rippleY:$,rippleSize:R},u.current)]),u.current+=1,d.current=E},[s]),S=v.useCallback((x={},I={},M=()=>{})=>{const{pulsate:$=!1,center:R=o||I.pulsate,fakeElement:E=!1}=I;if(x?.type==="mousedown"&&h.current){h.current=!1;return}x?.type==="touchstart"&&(h.current=!0);const F=E?null:g.current,T=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let m,O,D;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)m=Math.round(T.width/2),O=Math.round(T.height/2);else{const{clientX:k,clientY:w}=x.touches&&x.touches.length>0?x.touches[0]:x;m=Math.round(k-T.left),O=Math.round(w-T.top)}if(R)D=Math.sqrt((2*T.width**2+T.height**2)/3),D%2===0&&(D+=1);else{const k=Math.max(Math.abs((F?F.clientWidth:0)-m),m)*2+2,w=Math.max(Math.abs((F?F.clientHeight:0)-O),O)*2+2;D=Math.sqrt(k**2+w**2)}x?.touches?p.current===null&&(p.current=()=>{y({pulsate:$,rippleX:m,rippleY:O,rippleSize:D,cb:M})},b.start(Og,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:$,rippleX:m,rippleY:O,rippleSize:D,cb:M})},[o,y,b]),P=v.useCallback(()=>{S({},{pulsate:!0})},[S]),C=v.useCallback((x,I)=>{if(b.clear(),x?.type==="touchend"&&p.current){p.current(),p.current=null,b.start(0,()=>{C(x,I)});return}p.current=null,c(M=>M.length>0?M.slice(1):M),d.current=I},[b]);return v.useImperativeHandle(n,()=>({pulsate:P,start:S,stop:C}),[P,S,C]),f.jsx(Fg,{className:me(Rt.root,s.root,i),ref:g,...a,children:f.jsx(Jr,{component:null,exit:!0,children:l})})});function jg(e){return Se("MuiButtonBase",e)}const Bg=be("MuiButtonBase",["root","disabled","focusVisible"]),Vg=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ve({root:["root",t&&"disabled",n&&"focusVisible"]},jg,o);return n&&r&&(i.root+=` ${r}`),i},zg=_("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"},[`&.${Bg.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),or=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:h=!1,focusVisibleClassName:b,LinkComponent:p="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:P,onFocus:C,onFocusVisible:x,onKeyDown:I,onKeyUp:M,onMouseDown:$,onMouseLeave:R,onMouseUp:E,onTouchEnd:F,onTouchMove:T,onTouchStart:m,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:k,type:w,...A}=r,L=v.useRef(null),N=bg(),Y=Fe(N.ref,k),[W,J]=v.useState(!1);c&&W&&J(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),L.current.focus()}}),[]);const ce=N.shouldMount&&!u&&!c;v.useEffect(()=>{W&&h&&!u&&N.pulsate()},[u,h,W,N]);const ae=en(N,"start",$,d),V=en(N,"stop",S,d),q=en(N,"stop",P,d),ne=en(N,"stop",E,d),K=en(N,"stop",he=>{W&&he.preventDefault(),R&&R(he)},d),z=en(N,"start",m,d),G=en(N,"stop",F,d),oe=en(N,"stop",T,d),re=en(N,"stop",he=>{Ha(he.target)||J(!1),g&&g(he)},!1),B=fe(he=>{L.current||(L.current=he.currentTarget),Ha(he.target)&&(J(!0),x&&x(he)),C&&C(he)}),ee=()=>{const he=L.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},le=fe(he=>{h&&!he.repeat&&W&&he.key===" "&&N.stop(he,()=>{N.start(he)}),he.target===he.currentTarget&&ee()&&he.key===" "&&he.preventDefault(),I&&I(he),he.target===he.currentTarget&&ee()&&he.key==="Enter"&&!c&&(he.preventDefault(),y&&y(he))}),te=fe(he=>{h&&he.key===" "&&W&&!he.defaultPrevented&&N.stop(he,()=>{N.pulsate(he)}),M&&M(he),y&&he.target===he.currentTarget&&ee()&&he.key===" "&&!he.defaultPrevented&&y(he)});let pe=l;pe==="button"&&(A.href||A.to)&&(pe=p);const H={};pe==="button"?(H.type=w===void 0?"button":w,H.disabled=c):(!A.href&&!A.to&&(H.role="button"),c&&(H["aria-disabled"]=c));const ye=Fe(n,L),de={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:h,tabIndex:O,focusVisible:W},Me=Vg(de);return f.jsxs(zg,{as:pe,className:me(Me.root,a),ownerState:de,onBlur:re,onClick:y,onContextMenu:V,onFocus:B,onKeyDown:le,onKeyUp:te,onMouseDown:ae,onMouseLeave:K,onMouseUp:ne,onDragLeave:q,onTouchEnd:G,onTouchMove:oe,onTouchStart:z,ref:ye,tabIndex:c?-1:O,type:w,...H,...A,children:[i,ce?f.jsx(Ng,{ref:Y,center:s,...D}):null]})});function en(e,t,n,r=!1){return fe(o=>(n&&n(o),r||e[t](o),!0))}function Wg(e){return Se("MuiCircularProgress",e)}be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pn=44,Hs=Qe.keyframes`
|
|
101
101
|
0% {
|
|
102
102
|
transform: rotate(0deg);
|
|
103
103
|
}
|
|
@@ -124,11 +124,11 @@ export default theme;`}function Ia(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
124
124
|
animation: ${Hs} 1.4s linear infinite;
|
|
125
125
|
`:null,Hg=typeof Us!="string"?Qe.css`
|
|
126
126
|
animation: ${Us} 1.4s ease-in-out infinite;
|
|
127
|
-
`:null,Ug=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ue(r)}`],svg:["svg"],circle:["circle",`circle${ue(n)}`,o&&"circleDisableShrink"]};return ve(s,Wg,t)},Yg=_("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ue(n.color)}`]]}})(Re(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_g||{animation:`${Hs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Gg=_("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qg=_("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ue(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Re(({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:Hg||{animation:`${Us} 1.4s ease-in-out infinite`}}]}))),Pi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...h}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d},p=Ug(b),g={},y={},S={};if(d==="determinate"){const P=2*Math.PI*((pn-c)/2);g.strokeDasharray=P.toFixed(3),S["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*P).toFixed(3)}px`,y.transform="rotate(-90deg)"}return f.jsx(Yg,{className:me(p.root,o),style:{width:a,height:a,...y,...l},ownerState:b,ref:n,role:"progressbar",...S,...h,children:f.jsx(Gg,{className:p.svg,ownerState:b,viewBox:`${pn/2} ${pn/2} ${pn} ${pn}`,children:f.jsx(qg,{className:p.circle,style:g,ownerState:b,cx:pn,cy:pn,r:(pn-c)/2,fill:"none",strokeWidth:c})})})});function Kg(e){return Se("MuiIconButton",e)}const sl=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Qg=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ve(a,Kg,t)},Xg=_(or,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(Re(({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}}]})),Re(({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)}}],[`&.${sl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${sl.loading}`]:{color:"transparent"}}))),Zg=_("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"}}]})),Nn=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:h=null,loadingIndicator:b,...p}=r,g=_t(d),y=b??f.jsx(Pi,{"aria-labelledby":g,color:"inherit",size:16}),S={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:u},P=Qg(S);return f.jsxs(Xg,{id:h?g:d,className:me(P.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...p,ownerState:S,children:[typeof h=="boolean"&&f.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:f.jsx(Zg,{className:P.loadingIndicator,ownerState:S,children:h&&y})}),s]})}),nu=e=>e.scrollTop;function Fo(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ys(e){return`scale(${e}, ${e**2})`}const Jg={entering:{opacity:1,transform:Ys(1)},entered:{opacity:1,transform:"none"}},Is=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:h,onExiting:b,style:p,timeout:g="auto",TransitionComponent:y=Ht,...S}=t,P=hi(),C=v.useRef(),x=Fn(),I=v.useRef(null),M=Fe(I,dr(s),n),$=k=>w=>{if(k){const A=I.current;w===void 0?k(A):k(A,w)}},R=$(u),E=$((k,w)=>{nu(k);const{duration:A,delay:L,easing:N}=Fo({style:p,timeout:g,easing:i},{mode:"enter"});let Y;g==="auto"?(Y=x.transitions.getAutoHeightDuration(k.clientHeight),C.current=Y):Y=A,k.style.transition=[x.transitions.create("opacity",{duration:Y,delay:L}),x.transitions.create("transform",{duration:Is?Y:Y*.666,delay:L,easing:N})].join(","),l&&l(k,w)}),F=$(c),T=$(b),m=$(k=>{const{duration:w,delay:A,easing:L}=Fo({style:p,timeout:g,easing:i},{mode:"exit"});let N;g==="auto"?(N=x.transitions.getAutoHeightDuration(k.clientHeight),C.current=N):N=w,k.style.transition=[x.transitions.create("opacity",{duration:N,delay:A}),x.transitions.create("transform",{duration:Is?N:N*.666,delay:Is?A:A||N*.333,easing:L})].join(","),k.style.opacity=0,k.style.transform=Ys(.75),d&&d(k)}),O=$(h),D=k=>{g==="auto"&&P.start(C.current||0,k),r&&r(I.current,k)};return f.jsx(y,{appear:o,in:a,nodeRef:I,onEnter:E,onEntered:F,onEntering:R,onExit:m,onExited:O,onExiting:T,addEndListener:D,timeout:g==="auto"?null:g,...S,children:(k,{ownerState:w,...A})=>v.cloneElement(s,{style:{opacity:0,transform:Ys(.75),visibility:k==="exited"&&!a?"hidden":void 0,...Jg[k],...p,...s.props.style},ref:M,...A})})});zr&&(zr.muiSupportAuto=!0);const ey={entering:{opacity:1},entered:{opacity:1}},En=v.forwardRef(function(t,n){const r=Fn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:b,onExited:p,onExiting:g,style:y,timeout:S=o,TransitionComponent:P=Ht,...C}=t,x=v.useRef(null),I=Fe(x,dr(a),n),M=D=>k=>{if(D){const w=x.current;k===void 0?D(w):D(w,k)}},$=M(h),R=M((D,k)=>{nu(D);const w=Fo({style:y,timeout:S,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",w),D.style.transition=r.transitions.create("opacity",w),u&&u(D,k)}),E=M(d),F=M(g),T=M(D=>{const k=Fo({style:y,timeout:S,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",k),D.style.transition=r.transitions.create("opacity",k),b&&b(D)}),m=M(p),O=D=>{s&&s(x.current,D)};return f.jsx(P,{appear:i,in:c,nodeRef:x,onEnter:R,onEntered:E,onEntering:$,onExit:T,onExited:m,onExiting:F,addEndListener:O,timeout:S,...C,children:(D,{ownerState:k,...w})=>v.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...ey[D],...y,...a.props.style},ref:I,...w})})});function ty(e){return Se("MuiPaper",e)}be("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 ny=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(s,ty,o)},ry=_("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}`]]}})(Re(({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)"}}]}))),jn=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPaper"}),o=Fn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:i,elevation:a,square:l,variant:c},h=ny(d);return f.jsx(ry,{as:i,ownerState:d,className:me(h.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Mo("#fff",Ns(a))}, ${Mo("#fff",Ns(a))})`}},...u.style}})});var bt="top",At="bottom",Ft="right",vt="left",ki="auto",eo=[bt,At,Ft,vt],sr="start",Wr="end",oy="clippingParents",ru="viewport",vr="popper",sy="reference",il=eo.reduce(function(e,t){return e.concat([t+"-"+sr,t+"-"+Wr])},[]),ou=[].concat(eo,[ki]).reduce(function(e,t){return e.concat([t,t+"-"+sr,t+"-"+Wr])},[]),iy="beforeRead",ay="read",ly="afterRead",cy="beforeMain",uy="main",dy="afterMain",py="beforeWrite",fy="write",my="afterWrite",hy=[iy,ay,ly,cy,uy,dy,py,fy,my];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function Dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function An(e){var t=Dt(e).Element;return e instanceof t||e instanceof Element}function $t(e){var t=Dt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mi(e){if(typeof ShadowRoot>"u")return!1;var t=Dt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gy(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!$t(s)||!Qt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function yy(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(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!$t(o)||!Qt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const by={name:"applyStyles",enabled:!0,phase:"write",fn:gy,effect:yy,requires:["computeStyles"]};function qt(e){return e.split("-")[0]}var On=Math.max,Lo=Math.min,ir=Math.round;function Gs(){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 su(){return!/^((?!chrome|android).)*safari/i.test(Gs())}function ar(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&$t(e)&&(o=e.offsetWidth>0&&ir(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ir(r.height)/e.offsetHeight||1);var i=An(e)?Dt(e):window,a=i.visualViewport,l=!su()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/o,h=r.height/s;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Di(e){var t=ar(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function iu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function on(e){return Dt(e).getComputedStyle(e)}function vy(e){return["table","td","th"].indexOf(Qt(e))>=0}function yn(e){return((An(e)?e.ownerDocument:e.document)||window.document).documentElement}function rs(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Mi(e)?e.host:null)||yn(e)}function al(e){return!$t(e)||on(e).position==="fixed"?null:e.offsetParent}function xy(e){var t=/firefox/i.test(Gs()),n=/Trident/i.test(Gs());if(n&&$t(e)){var r=on(e);if(r.position==="fixed")return null}var o=rs(e);for(Mi(o)&&(o=o.host);$t(o)&&["html","body"].indexOf(Qt(o))<0;){var s=on(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function to(e){for(var t=Dt(e),n=al(e);n&&vy(n)&&on(n).position==="static";)n=al(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&on(n).position==="static")?t:n||xy(e)||t}function Ii(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Er(e,t,n){return On(e,Lo(t,n))}function Sy(e,t,n){var r=Er(e,t,n);return r>n?n:r}function au(){return{top:0,right:0,bottom:0,left:0}}function lu(e){return Object.assign({},au(),e)}function cu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Cy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lu(typeof t!="number"?t:cu(t,eo))};function wy(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=qt(n.placement),l=Ii(a),c=[vt,Ft].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var d=Cy(o.padding,n),h=Di(s),b=l==="y"?bt:vt,p=l==="y"?At:Ft,g=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],S=to(s),P=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,C=g/2-y/2,x=d[b],I=P-h[u]-d[p],M=P/2-h[u]/2+C,$=Er(x,M,I),R=l;n.modifiersData[r]=(t={},t[R]=$,t.centerOffset=$-M,t)}}function Py(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||iu(t.elements.popper,o)&&(t.elements.arrow=o))}const ky={name:"arrow",enabled:!0,phase:"main",fn:wy,effect:Py,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lr(e){return e.split("-")[1]}var My={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dy(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ir(n*o)/o||0,y:ir(r*o)/o||0}}function ll(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=i.x,b=h===void 0?0:h,p=i.y,g=p===void 0?0:p,y=typeof u=="function"?u({x:b,y:g}):{x:b,y:g};b=y.x,g=y.y;var S=i.hasOwnProperty("x"),P=i.hasOwnProperty("y"),C=vt,x=bt,I=window;if(c){var M=to(n),$="clientHeight",R="clientWidth";if(M===Dt(n)&&(M=yn(n),on(M).position!=="static"&&a==="absolute"&&($="scrollHeight",R="scrollWidth")),M=M,o===bt||(o===vt||o===Ft)&&s===Wr){x=At;var E=d&&M===I&&I.visualViewport?I.visualViewport.height:M[$];g-=E-r.height,g*=l?1:-1}if(o===vt||(o===bt||o===At)&&s===Wr){C=Ft;var F=d&&M===I&&I.visualViewport?I.visualViewport.width:M[R];b-=F-r.width,b*=l?1:-1}}var T=Object.assign({position:a},c&&My),m=u===!0?Dy({x:b,y:g},Dt(n)):{x:b,y:g};if(b=m.x,g=m.y,l){var O;return Object.assign({},T,(O={},O[x]=P?"0":"",O[C]=S?"0":"",O.transform=(I.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",O))}return Object.assign({},T,(t={},t[x]=P?g+"px":"",t[C]=S?b+"px":"",t.transform="",t))}function Iy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:qt(t.placement),variation:lr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ll(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ll(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ty={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Iy,data:{}};var io={passive:!0};function Ry(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=Dt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,io)}),a&&l.addEventListener("resize",n.update,io),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,io)}),a&&l.removeEventListener("resize",n.update,io)}}const Oy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ry,data:{}};var $y={left:"right",right:"left",bottom:"top",top:"bottom"};function Po(e){return e.replace(/left|right|bottom|top/g,function(t){return $y[t]})}var Ey={start:"end",end:"start"};function cl(e){return e.replace(/start|end/g,function(t){return Ey[t]})}function Ti(e){var t=Dt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ri(e){return ar(yn(e)).left+Ti(e).scrollLeft}function Ay(e,t){var n=Dt(e),r=yn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=su();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Ri(e),y:l}}function Fy(e){var t,n=yn(e),r=Ti(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=On(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=On(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ri(e),l=-r.scrollTop;return on(o||n).direction==="rtl"&&(a+=On(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Oi(e){var t=on(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uu(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:$t(e)&&Oi(e)?e:uu(rs(e))}function Ar(e,t){var n;t===void 0&&(t=[]);var r=uu(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Dt(r),i=o?[s].concat(s.visualViewport||[],Oi(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(Ar(rs(i)))}function qs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ly(e,t){var n=ar(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 ul(e,t,n){return t===ru?qs(Ay(e,n)):An(t)?Ly(t,n):qs(Fy(yn(e)))}function Ny(e){var t=Ar(rs(e)),n=["absolute","fixed"].indexOf(on(e).position)>=0,r=n&&$t(e)?to(e):e;return An(r)?t.filter(function(o){return An(o)&&iu(o,r)&&Qt(o)!=="body"}):[]}function jy(e,t,n,r){var o=t==="clippingParents"?Ny(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=ul(e,c,r);return l.top=On(u.top,l.top),l.right=Lo(u.right,l.right),l.bottom=Lo(u.bottom,l.bottom),l.left=On(u.left,l.left),l},ul(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function du(e){var t=e.reference,n=e.element,r=e.placement,o=r?qt(r):null,s=r?lr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case bt:l={x:i,y:t.y-n.height};break;case At:l={x:i,y:t.y+t.height};break;case Ft:l={x:t.x+t.width,y:a};break;case vt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?Ii(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case sr:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Wr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function _r(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?oy:a,c=n.rootBoundary,u=c===void 0?ru:c,d=n.elementContext,h=d===void 0?vr:d,b=n.altBoundary,p=b===void 0?!1:b,g=n.padding,y=g===void 0?0:g,S=lu(typeof y!="number"?y:cu(y,eo)),P=h===vr?sy:vr,C=e.rects.popper,x=e.elements[p?P:h],I=jy(An(x)?x:x.contextElement||yn(e.elements.popper),l,u,i),M=ar(e.elements.reference),$=du({reference:M,element:C,placement:o}),R=qs(Object.assign({},C,$)),E=h===vr?R:M,F={top:I.top-E.top+S.top,bottom:E.bottom-I.bottom+S.bottom,left:I.left-E.left+S.left,right:E.right-I.right+S.right},T=e.modifiersData.offset;if(h===vr&&T){var m=T[o];Object.keys(F).forEach(function(O){var D=[Ft,At].indexOf(O)>=0?1:-1,k=[bt,At].indexOf(O)>=0?"y":"x";F[O]+=m[k]*D})}return F}function By(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ou:l,u=lr(r),d=u?a?il:il.filter(function(p){return lr(p)===u}):eo,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d);var b=h.reduce(function(p,g){return p[g]=_r(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[qt(g)],p},{});return Object.keys(b).sort(function(p,g){return b[p]-b[g]})}function Vy(e){if(qt(e)===ki)return[];var t=Po(e);return[cl(e),t,cl(t)]}function zy(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,p=b===void 0?!0:b,g=n.allowedAutoPlacements,y=t.options.placement,S=qt(y),P=S===y,C=l||(P||!p?[Po(y)]:Vy(y)),x=[y].concat(C).reduce(function(ae,V){return ae.concat(qt(V)===ki?By(t,{placement:V,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):V)},[]),I=t.rects.reference,M=t.rects.popper,$=new Map,R=!0,E=x[0],F=0;F<x.length;F++){var T=x[F],m=qt(T),O=lr(T)===sr,D=[bt,At].indexOf(m)>=0,k=D?"width":"height",w=_r(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),A=D?O?Ft:vt:O?At:bt;I[k]>M[k]&&(A=Po(A));var L=Po(A),N=[];if(s&&N.push(w[m]<=0),a&&N.push(w[A]<=0,w[L]<=0),N.every(function(ae){return ae})){E=T,R=!1;break}$.set(T,N)}if(R)for(var Y=p?3:1,W=function(V){var q=x.find(function(ne){var K=$.get(ne);if(K)return K.slice(0,V).every(function(z){return z})});if(q)return E=q,"break"},J=Y;J>0;J--){var ce=W(J);if(ce==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const Wy={name:"flip",enabled:!0,phase:"main",fn:zy,requiresIfExists:["offset"],data:{_skip:!1}};function dl(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 pl(e){return[bt,Ft,At,vt].some(function(t){return e[t]>=0})}function _y(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=_r(t,{elementContext:"reference"}),a=_r(t,{altBoundary:!0}),l=dl(i,r),c=dl(a,o,s),u=pl(l),d=pl(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Hy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_y};function Uy(e,t,n){var r=qt(e),o=[vt,bt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[vt,Ft].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Yy(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=ou.reduce(function(u,d){return u[d]=Uy(d,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Gy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yy};function qy(e){var t=e.state,n=e.name;t.modifiersData[n]=du({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ky={name:"popperOffsets",enabled:!0,phase:"read",fn:qy,data:{}};function Qy(e){return e==="x"?"y":"x"}function Xy(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,b=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,y=_r(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=qt(t.placement),P=lr(t.placement),C=!P,x=Ii(S),I=Qy(x),M=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,E=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,m={x:0,y:0};if(M){if(s){var O,D=x==="y"?bt:vt,k=x==="y"?At:Ft,w=x==="y"?"height":"width",A=M[x],L=A+y[D],N=A-y[k],Y=b?-R[w]/2:0,W=P===sr?$[w]:R[w],J=P===sr?-R[w]:-$[w],ce=t.elements.arrow,ae=b&&ce?Di(ce):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:au(),q=V[D],ne=V[k],K=Er(0,$[w],ae[w]),z=C?$[w]/2-Y-K-q-F.mainAxis:W-K-q-F.mainAxis,G=C?-$[w]/2+Y+K+ne+F.mainAxis:J+K+ne+F.mainAxis,oe=t.elements.arrow&&to(t.elements.arrow),re=oe?x==="y"?oe.clientTop||0:oe.clientLeft||0:0,B=(O=T?.[x])!=null?O:0,ee=A+z-B-re,le=A+G-B,te=Er(b?Lo(L,ee):L,A,b?On(N,le):N);M[x]=te,m[x]=te-A}if(a){var pe,H=x==="x"?bt:vt,ye=x==="x"?At:Ft,de=M[I],Me=I==="y"?"height":"width",he=de+y[H],et=de-y[ye],Le=[bt,vt].indexOf(S)!==-1,Xe=(pe=T?.[I])!=null?pe:0,nt=Le?he:de-$[Me]-R[Me]-Xe+F.altAxis,mt=Le?de+$[Me]+R[Me]-Xe-F.altAxis:et,rt=b&&Le?Sy(nt,de,mt):Er(b?nt:he,de,b?mt:et);M[I]=rt,m[I]=rt-de}t.modifiersData[r]=m}}const Zy={name:"preventOverflow",enabled:!0,phase:"main",fn:Xy,requiresIfExists:["offset"]};function Jy(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eb(e){return e===Dt(e)||!$t(e)?Ti(e):Jy(e)}function tb(e){var t=e.getBoundingClientRect(),n=ir(t.width)/e.offsetWidth||1,r=ir(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nb(e,t,n){n===void 0&&(n=!1);var r=$t(t),o=$t(t)&&tb(t),s=yn(t),i=ar(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qt(t)!=="body"||Oi(s))&&(a=eb(t)),$t(t)?(l=ar(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ri(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function rb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function ob(e){var t=rb(e);return hy.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function sb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ib(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var fl={placement:"bottom",modifiers:[],strategy:"absolute"};function ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ab(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?fl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},fl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,b={state:u,setOptions:function(S){var P=typeof S=="function"?S(u.options):S;g(),u.options=Object.assign({},s,u.options,P),u.scrollParents={reference:An(a)?Ar(a):a.contextElement?Ar(a.contextElement):[],popper:Ar(l)};var C=ob(ib([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(x){return x.enabled}),p(),b.update()},forceUpdate:function(){if(!h){var S=u.elements,P=S.reference,C=S.popper;if(ml(P,C)){u.rects={reference:nb(P,to(C),u.options.strategy==="fixed"),popper:Di(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(F){return u.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var I=u.orderedModifiers[x],M=I.fn,$=I.options,R=$===void 0?{}:$,E=I.name;typeof M=="function"&&(u=M({state:u,options:R,name:E,instance:b})||u)}}}},update:sb(function(){return new Promise(function(y){b.forceUpdate(),y(u)})}),destroy:function(){g(),h=!0}};if(!ml(a,l))return b;b.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function p(){u.orderedModifiers.forEach(function(y){var S=y.name,P=y.options,C=P===void 0?{}:P,x=y.effect;if(typeof x=="function"){var I=x({state:u,name:S,instance:b,options:C}),M=function(){};d.push(I||M)}})}function g(){d.forEach(function(y){return y()}),d=[]}return b}}var lb=[Oy,Ky,Ty,by,Gy,Wy,Zy,ky,Hy],cb=ab({defaultModifiers:lb});function ub(e){return typeof e=="function"?e():e}const pu=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=v.useState(null),l=Fe(v.isValidElement(r)?dr(r):null,n);if(st(()=>{s||a(ub(o)||document.body)},[o,s]),st(()=>{if(i&&!s)return js(n,i),()=>{js(n,null)}},[n,i,s]),s){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return i&&Rd.createPortal(r,i)});function db(e){return Se("MuiPopper",e)}be("MuiPopper",["root"]);function pb(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 Ks(e){return typeof e=="function"?e():e}function fb(e){return e.nodeType!==void 0}const mb=e=>{const{classes:t}=e;return ve({root:["root"]},db,t)},hb={},gb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:h={},slots:b={},TransitionProps:p,ownerState:g,...y}=t,S=v.useRef(null),P=Fe(S,n),C=v.useRef(null),x=Fe(C,d),I=v.useRef(x);st(()=>{I.current=x},[x]),v.useImperativeHandle(d,()=>C.current,[]);const M=pb(c,s),[$,R]=v.useState(M),[E,F]=v.useState(Ks(r));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{r&&F(Ks(r))},[r]),st(()=>{if(!E||!l)return;const k=L=>{R(L.placement)};let w=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{k(L)}}];a!=null&&(w=w.concat(a)),u&&u.modifiers!=null&&(w=w.concat(u.modifiers));const A=cb(E,S.current,{placement:M,...u,modifiers:w});return I.current(A),()=>{A.destroy(),I.current(null)}},[E,i,a,l,u,M]);const T={placement:$};p!==null&&(T.TransitionProps=p);const m=mb(t),O=b.root??"div",D=Ae({elementType:O,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:m.root});return f.jsx(O,{...D,children:typeof o=="function"?o(T):o})}),yb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:h=hb,popperRef:b,style:p,transition:g=!1,slotProps:y={},slots:S={},...P}=t,[C,x]=v.useState(!0),I=()=>{x(!1)},M=()=>{x(!0)};if(!l&&!u&&(!g||C))return null;let $;if(s)$=s;else if(r){const F=Ks(r);$=F&&fb(F)?dt(F).body:dt(null).body}const R=!u&&l&&(!g||C)?"none":void 0,E=g?{in:u,onEnter:I,onExited:M}:void 0;return f.jsx(pu,{disablePortal:a,container:$,children:f.jsx(gb,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:g?!C:u,placement:d,popperOptions:h,popperRef:b,slotProps:y,slots:S,...P,style:{position:"fixed",top:0,left:0,display:R,...p},TransitionProps:E,children:o})})}),bb=_(yb,{name:"MuiPopper",slot:"Root"})({}),$i=v.forwardRef(function(t,n){const r=Wt(),o=Oe({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:b,placement:p,popperOptions:g,popperRef:y,transition:S,slots:P,slotProps:C,...x}=o,I=P?.root??a?.Root,M={anchorEl:s,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:b,placement:p,popperOptions:g,popperRef:y,transition:S,...x};return f.jsx(bb,{as:i,direction:r?"rtl":"ltr",slots:{root:I},slotProps:C??l,...M,ref:n})}),vb=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xb(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 Sb(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Cb(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Sb(e))}function wb(e){const t=[],n=[];return Array.from(e.querySelectorAll(vb)).forEach((r,o)=>{const s=xb(r);s===-1||!Cb(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Pb(){return!0}function fu(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=wb,isEnabled:i=Pb,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),h=v.useRef(null),b=v.useRef(!1),p=v.useRef(null),g=Fe(dr(t),p),y=v.useRef(null);v.useEffect(()=>{!a||!p.current||(b.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!p.current)return;const C=dt(p.current);return p.current.contains(C.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),b.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),v.useEffect(()=>{if(!a||!p.current)return;const C=dt(p.current),x=$=>{y.current=$,!(r||!i()||$.key!=="Tab")&&C.activeElement===p.current&&$.shiftKey&&(l.current=!0,u.current&&u.current.focus())},I=()=>{const $=p.current;if($===null)return;if(!C.hasFocus()||!i()||l.current){l.current=!1;return}if($.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let R=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(R=s(p.current)),R.length>0){const E=!!(y.current?.shiftKey&&y.current?.key==="Tab"),F=R[0],T=R[R.length-1];typeof F!="string"&&typeof T!="string"&&(E?T.focus():F.focus())}else $.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",x,!0);const M=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(M),C.removeEventListener("focusin",I),C.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const S=C=>{d.current===null&&(d.current=C.relatedTarget),b.current=!0,h.current=C.target;const x=t.props.onFocus;x&&x(C)},P=C=>{d.current===null&&(d.current=C.relatedTarget),b.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:g,onFocus:S}),f.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:u,"data-testid":"sentinelEnd"})]})}function kb(e){return Se("MuiPickersPopper",e)}be("MuiPickersPopper",["root","paper"]);function Mb(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Db=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},gt=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?gt(t.shadowRoot):t:null},Ib="@media (pointer: fine)",Tb="@media (prefers-reduced-motion: reduce)",Zn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),hl=Zn&&Zn[1]?parseInt(Zn[1],10):null,gl=Zn&&Zn[2]?parseInt(Zn[2],10):null,Rb=hl&&hl<10||gl&&gl<13||!1,mu=()=>Lc(Tb,{defaultMatches:!1})||Rb,Ob=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],$b=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},kb,t)},Eb=_($i,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Ab=_(jn,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function Fb(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Lb(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),s=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const i=fe(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=dt(o.current);if(!o.current||"clientX"in l&&Fb(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=dt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),v.useEffect(()=>{if(e){const l=dt(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const Nb=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ke(e,Ob),d=j({},o,{placement:r}),h=Ae({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return f.jsx(n,j({},u,h,{onClick:b=>{l(b),h.onClick?.(b)},onTouchStart:b=>{c(b),h.onTouchStart?.(b)},ownerState:d,children:s}))});function jb(e){const t=He({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:d,slotProps:h,reduceAnimations:b}=t;v.useEffect(()=>{function k(w){l&&w.key==="Escape"&&a()}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[a,l]);const p=v.useRef(null);v.useEffect(()=>{c==="tooltip"||s&&!s()||(l?p.current=gt(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[l,c,s]);const[g,y,S]=Lb(l,i??a),P=v.useRef(null),C=Fe(P,o),x=Fe(C,g),I=t,M=$b(I),$=mu(),R=b??$,E=k=>{k.key==="Escape"&&(k.stopPropagation(),a())},F=d?.desktopTransition??R?En:zr,T=d?.desktopTrapFocus??fu,m=d?.desktopPaper??Ab,O=d?.popper??Eb,D=Ae({elementType:O,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:E},className:M.root,ownerState:t});return f.jsx(O,j({},D,{children:({TransitionProps:k,placement:w})=>f.jsx(T,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},h?.desktopTrapFocus,{children:f.jsx(F,j({},k,h?.desktopTransition,{children:f.jsx(Nb,{PaperComponent:m,ownerState:I,popperPlacement:w,ref:x,onPaperClick:y,onPaperTouchStart:S,paperClasses:M.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}const Bb=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,s]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=v.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},Ei=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Ue(),a=v.useRef(n),l=t??a.current??s.emptyValue,c=v.useMemo(()=>s.getTimezone(i,l),[i,s,l]),u=fe(p=>c==null?p:s.setTimezone(i,c,p));let d;e?d=e:c?d=c:r?d=i.getTimezone(r):d="default";const h=v.useMemo(()=>s.setTimezone(i,d,l),[s,i,d,l]),b=fe((p,...g)=>{const y=u(p);o?.(y,...g)});return{value:h,handleValueChange:b,timezone:d}},Ai=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Mt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=fe((u,...d)=>{l(u),s?.(u,...d)});return Ei({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},Vb=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},zb=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Wb=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},_b=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:h}=v.useRef(l),{current:b}=v.useRef(a!==void 0),[p,g]=v.useState(u),y=Ue(),S=Ln(),{isOpen:P,setIsOpen:C}=Bb(e),{timezone:x,value:I,handleValueChange:M}=Ei({timezone:u,value:a,defaultValue:h,referenceDate:d,onChange:i,valueManager:t}),[$,R]=v.useState(()=>{let z;return I!==void 0?z=I:h!==void 0?z=h:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),E=t.getTimezone(y,$.draft);p!==u&&(g(u),u&&E&&u!==E&&R(z=>j({},z,{draft:t.setTimezone(y,u,z.draft)})));const{getValidationErrorForNewValue:F}=Jc({props:e,validator:o,timezone:x,value:$.draft,onError:e.onError}),T=fe(z=>{const G={action:z,dateState:$,hasChanged:te=>!t.areValuesEqual(y,z.value,te),isControlled:b,closeOnSelect:c},oe=Vb(G),re=zb(G),B=Wb(G);R(te=>j({},te,{draft:z.value,lastPublishedValue:oe?z.value:te.lastPublishedValue,lastCommittedValue:re?z.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ee=null;const le=()=>(ee||(ee={validationError:z.name==="setValueFromField"?z.context.validationError:F(z.value)},z.name==="setValueFromShortcut"&&(ee.shortcut=z.shortcut)),ee);oe&&M(z.value,le()),re&&s&&s(z.value,le()),B&&C(!1)});if($.lastControlledValue!==a){const z=t.areValuesEqual(y,$.draft,I);R(G=>j({},G,{lastControlledValue:a},z?{}:{lastCommittedValue:I,lastPublishedValue:I,draft:I,hasBeenModifiedSinceMount:!0}))}const m=fe(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),O=fe(()=>{T({value:$.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=fe(()=>{T({value:$.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),k=fe(()=>{T({value:$.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),w=fe(()=>{T({value:t.getTodayValue(y,x,n),name:"setValueFromAction",pickerAction:"today"})}),A=fe(z=>{z.preventDefault(),C(!0)}),L=fe(z=>{z?.preventDefault(),C(!1)}),N=fe((z,G="partial")=>T({name:"setValueFromView",value:z,selectionState:G})),Y=fe((z,G,oe)=>T({name:"setValueFromShortcut",value:z,changeImportance:G,shortcut:oe})),W=fe((z,G)=>T({name:"setValueFromField",value:z,context:G})),J={onClear:m,onAccept:O,onDismiss:D,onCancel:k,onSetToday:w,onOpen:A,onClose:L},ce={value:$.draft,onChange:W},ae=v.useMemo(()=>t.cleanValue(y,$.draft),[y,t,$.draft]),V={value:ae,onChange:N,onClose:L,open:P},ne=j({},J,{value:ae,onChange:N,onSelectShortcut:Y,isValid:z=>{const G=o({adapter:S,value:z,timezone:x,props:e});return!t.hasError(G)}}),K=v.useMemo(()=>({onOpen:A,onClose:L,open:P}),[P,L,A]);return{open:P,fieldProps:ce,viewProps:V,layoutProps:ne,actions:J,contextValue:K}};function hu({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=v.useRef(n),c=v.useRef(o),u=v.useRef(o.includes(n)?n:o[0]),[d,h]=Mt({name:"useViews",state:"view",controlled:r,default:u.current}),b=v.useRef(s?d:null),[p,g]=Mt({name:"useViews",state:"focusedView",controlled:i,default:b.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some($=>!o.includes($)))&&(h(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,h,d,o]);const y=o.indexOf(d),S=o[y-1]??null,P=o[y+1]??null,C=fe(($,R)=>{g(R?$:E=>$===E?null:E),a?.($,R)}),x=fe($=>{C($,!0),$!==d&&(h($),t&&t($))}),I=fe(()=>{P&&x(P)}),M=fe(($,R,E)=>{const F=R==="finish",T=E?o.indexOf(E)<o.length-1:!!P;if(e($,F&&T?"partial":R,E),E&&E!==d){const O=o[o.indexOf(E)+1];O&&x(O)}else F&&I()});return{view:d,setView:x,focusedView:p,setFocusedView:C,nextView:P,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:M}}const Hb=["className","sx"],Ub=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:i,open:a,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:h,viewRenderers:b,timezone:p}=e,g=ke(e,Hb),{view:y,setView:S,defaultView:P,focusedView:C,setFocusedView:x,setValueAndGoToNextView:I}=hu({view:c,views:u,openTo:d,onChange:i,onViewChange:h,autoFocus:r}),{hasUIView:M,viewModeLookup:$}=v.useMemo(()=>u.reduce((D,k)=>{let w;return b[k]!=null?w="UI":w="field",D.viewModeLookup[k]=w,w==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,u]),R=v.useMemo(()=>u.reduce((D,k)=>b[k]!=null&&Ch(k)?D+1:D,0),[b,u]),E=$[y],F=fe(()=>E==="UI"),[T,m]=v.useState(E==="UI"?y:null);return T!==y&&$[y]==="UI"&&m(y),st(()=>{E==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(y),s?.current?.focusField(y)}))},[y]),st(()=>{if(!a)return;let D=y;E==="field"&&T!=null&&(D=T),D!==P&&$[D]==="UI"&&$[P]==="UI"&&(D=P),D!==y&&S(D),x(D,!0)},[a]),{hasUIView:M,shouldRestoreFocus:F,layoutProps:{views:u,view:T,onViewChange:S},renderCurrentView:()=>{if(T==null)return null;const D=b[T];if(D==null)return null;const k=j({},g,n,t,{views:u,timezone:p,onChange:I,view:T,onViewChange:S,focusedView:C,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(b,T,k):D(k)}}};function yl(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Yb=(e,t)=>{const[n,r]=v.useState(yl);return st(()=>{const s=()=>{r(yl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Mb(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Gb=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Yb(n.views,o),i=Wt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function qb(e){const{props:t,pickerValueResponse:n}=e;return v.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const gu=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=_b({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Ub({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=Gb({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=qb({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:h}};function yu(e){return Se("MuiPickersLayout",e)}const Sn=be("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Kb(e){return Se("MuiButton",e)}const Cn=be("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"]),Qb=v.createContext({}),Xb=v.createContext(void 0),Zb=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:i,loadingPosition:a,classes:l}=e,c={root:["root",i&&"loading",s,`${s}${ue(t)}`,`size${ue(o)}`,`${s}Size${ue(o)}`,`color${ue(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ue(a)}`],startIcon:["icon","startIcon",`iconSize${ue(o)}`],endIcon:["icon","endIcon",`iconSize${ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ve(c,Kb,l);return{...l,...u}},bu=[{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}}}],Jb=_(or,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Re(({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"},[`&.${Cn.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]},[`&.${Cn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Cn.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)",[`&.${Cn.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(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cn.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}),[`&.${Cn.loading}`]:{color:"transparent"}}}]}})),ev=_("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ue(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}},...bu]})),tv=_("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ue(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}},...bu]})),nv=_("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}}]})),bl=_("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Tr=v.forwardRef(function(t,n){const r=v.useContext(Qb),o=v.useContext(Xb),s=Br(r,t),i=Oe({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:p,focusVisibleClassName:g,fullWidth:y=!1,id:S,loading:P=null,loadingIndicator:C,loadingPosition:x="center",size:I="medium",startIcon:M,type:$,variant:R="text",...E}=i,F=_t(S),T=C??f.jsx(Pi,{"aria-labelledby":F,color:"inherit",size:16}),m={...i,color:l,component:c,disabled:d,disableElevation:h,disableFocusRipple:b,fullWidth:y,loading:P,loadingIndicator:T,loadingPosition:x,size:I,type:$,variant:R},O=Zb(m),D=(M||P&&x==="start")&&f.jsx(ev,{className:O.startIcon,ownerState:m,children:M||f.jsx(bl,{className:O.loadingIconPlaceholder,ownerState:m})}),k=(p||P&&x==="end")&&f.jsx(tv,{className:O.endIcon,ownerState:m,children:p||f.jsx(bl,{className:O.loadingIconPlaceholder,ownerState:m})}),w=o||"",A=typeof P=="boolean"?f.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:P&&f.jsx(nv,{className:O.loadingIndicator,ownerState:m,children:T})}):null;return f.jsxs(Jb,{ownerState:m,className:me(r.className,O.root,u,w),component:c,disabled:d||P,focusRipple:!b,focusVisibleClassName:me(O.focusVisible,g),ref:n,type:$,id:P?F:S,...E,classes:O,children:[D,x!=="end"&&A,a,x==="end"&&A,k]})});function rv(e){return Se("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const ov=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},rv,t)},sv=_("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}}}]}),iv=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=ov(a);return f.jsx(sv,{className:me(l.root,o),ownerState:a,ref:n,...i})}),av=["onAccept","onClear","onCancel","onSetToday","actions"];function lv(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ke(e,av),a=an();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return f.jsx(Tr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(Tr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(Tr,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(Tr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx(iv,j({},i,{children:l}))}const Jn=v.createContext({});function cv(e){return Se("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const uv=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cv,t)},dv=_("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}}]}),vu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=v.useMemo(()=>({dense:a}),[a]),h={...r,component:i,dense:a,disablePadding:l},b=uv(h);return f.jsx(Jn.Provider,{value:d,children:f.jsxs(dv,{as:i,className:me(b.root,s),ref:n,ownerState:h,...u,children:[c,o]})})});function pv(e){return Se("MuiListItem",e)}be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const fv=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function mv(e){return Se("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const hv=e=>{const{disableGutters:t,classes:n}=e;return ve({root:["root",t&&"disableGutters"]},mv,n)},gv=_("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}}]}),xu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=v.useContext(Jn),a={...r,disableGutters:i.disableGutters},l=hv(a);return f.jsx(gv,{className:me(l.root,o),ownerState:a,ref:n,...s})});xu.muiName="ListItemSecondaryAction";const yv=(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]},bv=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return ve({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},pv,n)},vv=_("div",{name:"MuiListItem",slot:"Root",overridesResolver:yv})(Re(({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:{[`& > .${fv.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}}]}))),xv=_("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Sv=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...h}={},dense:b=!1,disableGutters:p=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:S,slotProps:P={},slots:C={},...x}=r,I=v.useContext(Jn),M=v.useMemo(()=>({dense:b||I.dense||!1,alignItems:o,disableGutters:p}),[o,I.dense,b,p]),$=v.useRef(null),R=v.Children.toArray(s),E=R.length&&ho(R[R.length-1],["ListItemSecondaryAction"]),F={...r,alignItems:o,dense:M.dense,disableGutters:p,disablePadding:g,divider:y,hasSecondaryAction:E},T=bv(F),m=Fe($,n),O=C.root||l.Root||vv,D=P.root||c.root||{},k={className:me(T.root,D.className,i),...x};let w=a||"li";return E?(w=!k.component&&!a?"div":w,u==="li"&&(w==="li"?w="div":k.component==="li"&&(k.component="div")),f.jsx(Jn.Provider,{value:M,children:f.jsxs(xv,{as:u,className:me(T.container,d),ref:m,ownerState:F,...h,children:[f.jsx(O,{...D,...!rr(O)&&{as:w,ownerState:{...F,...D.ownerState}},...k,children:R}),R.pop()]})})):f.jsx(Jn.Provider,{value:M,children:f.jsxs(O,{...D,as:w,ref:m,...!rr(O)&&{ownerState:{...F,...D.ownerState}},...k,children:[R,S&&f.jsx(xu,{children:S})]})})}),Cv=ct(f.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"}));function wv(e){return Se("MuiChip",e)}const Te=be("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function We(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...h}=s,b=u[e]||r,p=Jo(d[e],o),{props:{component:g,...y},internalRef:S}=zc({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:p}),P=Fe(S,p?.ref,t.ref),C=e==="root"?g||c:g,x=Vc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...y,...C&&!a&&{as:C},...C&&a&&{component:C},ref:P},o);return[b,x]}const Pv=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,a&&"clickable",a&&`clickableColor${ue(o)}`,i&&"deletable",i&&`deletableColor${ue(o)}`,`${l}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(l)}Color${ue(o)}`]};return ve(c,wv,t)},kv=_("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${Te.avatar}`]:t.avatar},{[`& .${Te.avatar}`]:t[`avatar${ue(a)}`]},{[`& .${Te.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${Te.icon}`]:t.icon},{[`& .${Te.icon}`]:t[`icon${ue(a)}`]},{[`& .${Te.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${Te.deleteIcon}`]:t.deleteIcon},{[`& .${Te.deleteIcon}`]:t[`deleteIcon${ue(a)}`]},{[`& .${Te.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${Te.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(r)}`]},t.root,t[`size${ue(a)}`],t[`color${ue(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ue(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ue(r)}`],t[l],t[`${l}${ue(r)}`]]}})(Re(({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",[`&.${Te.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Te.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Te.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Te.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Te.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Te.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Te.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,[`& .${Te.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Te.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,[`& .${Te.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:{[`& .${Te.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Te.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Te.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:{[`&.${Te.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}`)},[`&.${Te.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, &.${Te.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]}`,[`&.${Te.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Te.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Te.avatar}`]:{marginLeft:4},[`& .${Te.avatarSmall}`]:{marginLeft:2},[`& .${Te.icon}`]:{marginLeft:4},[`& .${Te.iconSmall}`]:{marginLeft:2},[`& .${Te.deleteIcon}`]:{marginRight:5},[`& .${Te.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)}`,[`&.${Te.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Te.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Te.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Mv=_("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function vl(e){return e.key==="Backspace"||e.key==="Delete"}const Su=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:h,onClick:b,onDelete:p,onKeyDown:g,onKeyUp:y,size:S="medium",variant:P="filled",tabIndex:C,skipFocusWhenDisabled:x=!1,slots:I={},slotProps:M={},...$}=r,R=v.useRef(null),E=Fe(R,n),F=q=>{q.stopPropagation(),p&&p(q)},T=q=>{q.currentTarget===q.target&&vl(q)&&q.preventDefault(),g&&g(q)},m=q=>{q.currentTarget===q.target&&p&&vl(q)&&p(q),y&&y(q)},O=i!==!1&&b?!0:i,D=O||p?or:l||"div",k={...r,component:D,disabled:u,size:S,color:a,iconColor:v.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:O,variant:P},w=Pv(k),A=D===or?{component:l||"div",focusVisibleClassName:w.focusVisible,...p&&{disableRipple:!0}}:{};let L=null;p&&(L=c&&v.isValidElement(c)?v.cloneElement(c,{className:me(c.props.className,w.deleteIcon),onClick:F}):f.jsx(Cv,{className:w.deleteIcon,onClick:F}));let N=null;o&&v.isValidElement(o)&&(N=v.cloneElement(o,{className:me(w.avatar,o.props.className)}));let Y=null;d&&v.isValidElement(d)&&(Y=v.cloneElement(d,{className:me(w.icon,d.props.className)}));const W={slots:I,slotProps:M},[J,ce]=We("root",{elementType:kv,externalForwardedProps:{...W,...$},ownerState:k,shouldForwardComponentProp:!0,ref:E,className:me(w.root,s),additionalProps:{disabled:O&&u?!0:void 0,tabIndex:x&&u?-1:C,...A},getSlotProps:q=>({...q,onClick:ne=>{q.onClick?.(ne),b?.(ne)},onKeyDown:ne=>{q.onKeyDown?.(ne),T(ne)},onKeyUp:ne=>{q.onKeyUp?.(ne),m(ne)}})}),[ae,V]=We("label",{elementType:Mv,externalForwardedProps:W,ownerState:k,className:w.label});return f.jsxs(J,{as:D,...ce,children:[N||Y,f.jsx(ae,{...V,children:h}),L]})}),Hr=36,os=2,ss=320,Dv=280,Fi=336,Iv=["items","changeImportance","isLandscape","onChange","isValid"],Tv=["getValue"];function Rv(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ke(e,Iv);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ke(a,Tv);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(vu,j({dense:!0,sx:[{maxHeight:Fi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(Sv,{children:f.jsx(Su,j({},a))},a.id??a.label))}))}function Ov(e){return e.view!==null}const $v=e=>{const{classes:t,isLandscape:n}=e;return ve({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},yu,t)},Ev=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:h,isLandscape:b,disabled:p,readOnly:g,children:y,slots:S,slotProps:P}=e,C=$v(e),x=S?.actionBar??lv,I=Ae({elementType:x,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:C.actionBar,ownerState:j({},e,{wrapperVariant:t})}),M=f.jsx(x,j({},I)),$=S?.toolbar,R=Ae({elementType:$,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:p,readOnly:g},className:C.toolbar,ownerState:j({},e,{wrapperVariant:t})}),E=Ov(R)&&$?f.jsx($,j({},R)):null,F=y,T=S?.tabs,m=i&&T?f.jsx(T,j({view:i,onViewChange:l,className:C.tabs},P?.tabs)):null,O=S?.shortcuts??Rv,D=Ae({elementType:O,externalSlotProps:P?.shortcuts,additionalProps:{isValid:h,isLandscape:b,onChange:d},className:C.shortcuts,ownerState:{isValid:h,isLandscape:b,onChange:d,wrapperVariant:t}}),k=i&&O?f.jsx(O,j({},D)):null;return{toolbar:E,content:F,tabs:m,actionBar:M,shortcuts:k}},Av=e=>{const{isLandscape:t,classes:n}=e;return ve({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},yu,n)},Fv=_("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Sn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Sn.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Sn.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Sn.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Sn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Sn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Sn.shortcuts}`]:{gridColumn:3}}}]}),Lv=_("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Cu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=Ev(r),{sx:c,className:u,isLandscape:d,wrapperVariant:h}=r,b=Av(r);return f.jsxs(Fv,{ref:n,sx:c,className:me(b.root,u),ownerState:r,children:[d?l:o,d?o:l,f.jsx(Lv,{className:b.contentWrapper,children:h==="desktop"?f.jsxs(v.Fragment,{children:[s,i]}):f.jsxs(v.Fragment,{children:[i,s]})}),a]})}),Nv=v.createContext(null);function wu(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(Nv.Provider,{value:t,children:f.jsx(Vr,{localeText:n,children:r})})}const jv=["props","getOpenDialogAriaText"],Bv=["ownerState"],Vv=["ownerState"],zv=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ke(e,jv);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,name:p,label:g,inputRef:y,readOnly:S,disabled:P,autoFocus:C,localeText:x,reduceAnimations:I}=t,M=v.useRef(null),$=v.useRef(null),R=_t(),E=s?.toolbar?.hidden??!1,{open:F,actions:T,hasUIView:m,layoutProps:O,renderCurrentView:D,shouldRestoreFocus:k,fieldProps:w,contextValue:A,ownerState:L}=gu(j({},r,{props:t,fieldRef:$,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=o.inputAdornment??eu,Y=Ae({elementType:N,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=ke(Y,Bv),J=o.openPickerButton??Nn,ce=Ae({elementType:J,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:P||S,onClick:F?T.onClose:T.onOpen,"aria-label":n(w.value),edge:W.position},ownerState:t}),ae=ke(ce,Vv),V=o.openPickerIcon,q=Ae({elementType:V,externalSlotProps:s?.openPickerIcon,ownerState:L}),ne=o.field,K=Ae({elementType:ne,externalSlotProps:s?.field,additionalProps:j({},w,E&&{id:R},{readOnly:S,disabled:P,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,label:g,name:p,autoFocus:C&&!t.open,focused:F?!0:void 0},y?{inputRef:y}:{}),ownerState:t});m&&(K.InputProps=j({},K.InputProps,{ref:M},!t.disableOpenPicker&&{[`${W.position}Adornment`]:f.jsx(N,j({},W,{children:f.jsx(J,j({},ae,{children:f.jsx(V,j({},q))}))}))}));const z=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},K.slots),G=o.layout??Cu;let oe=R;E&&(g?oe=`${R}-label`:oe=void 0);const re=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":oe},s?.popper)}),B=Fe($,K.unstableFieldRef);return{renderPicker:()=>f.jsxs(wu,{contextValue:A,localeText:x,children:[f.jsx(ne,j({},K,{slots:z,slotProps:re,unstableFieldRef:B})),f.jsx(jb,j({role:"dialog",placement:"bottom-start",anchorEl:M.current},T,{open:F,slots:o,slotProps:re,shouldRestoreFocus:k,reduceAnimations:I,children:f.jsx(G,j({},O,re?.layout,{slots:o,slotProps:re,children:D()}))}))]})}},Wv=ct(f.jsx("path",{d:"M7 10l5 5 5-5z"})),_v=ct(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Hv=ct(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Uv=ct(f.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"}));ct(f.jsxs(v.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));ct(f.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"}));ct(f.jsxs(v.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Yv=ct(f.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"}));function ao(e){return parseInt(e,10)||0}const Gv={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qv(e){for(const t in e)return!1;return!0}function xl(e){return qv(e)||e.outerHeightStyle===0&&!e.overflowing}const Kv=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=v.useRef(a!=null),u=v.useRef(null),d=Fe(n,u),h=v.useRef(null),b=v.useRef(null),p=v.useCallback(()=>{const C=u.current,x=b.current;if(!C||!x)return;const M=rn(C).getComputedStyle(C);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=M.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
128
|
-
`&&(x.value+=" ");const $=M.boxSizing,R=ao(M.paddingBottom)+ao(M.paddingTop),E=ao(M.borderBottomWidth)+ao(M.borderTopWidth),F=x.scrollHeight;x.value="x";const T=x.scrollHeight;let m=F;s&&(m=Math.max(Number(s)*T,m)),o&&(m=Math.min(Number(o)*T,m)),m=Math.max(m,T);const O=m+($==="border-box"?R+E:0),D=Math.abs(m-F)<=1;return{outerHeightStyle:O,overflowing:D}},[o,s,t.placeholder]),g=fe(()=>{const C=u.current,x=p();if(!C||!x||
|
|
129
|
-
`),$=x.selectionStart===I;M&&$&&x.setSelectionRange(I,I),r&&r(C)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",{value:a,onChange:P,ref:d,rows:s,style:i,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...Gv.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function Bn({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function Sl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function No(e,t=!1){return e&&(Sl(e.value)&&e.value!==""||t&&Sl(e.defaultValue)&&e.defaultValue!=="")}function Qv(e){return e.startAdornment}function Xv(e){return Se("MuiInputBase",e)}const wt=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Cl;const is=(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${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},as=(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]},Zv=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:b,type:p}=e,g={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",h&&h!=="medium"&&`size${ue(h)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return ve(g,Xv,t)},ls=_("div",{name:"MuiInputBase",slot:"Root",overridesResolver:is})(Re(({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",[`&.${wt.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%"}}]}))),cs=_("input",{name:"MuiInputBase",slot:"Input",overridesResolver:as})(Re(({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})},r={opacity:"0 !important"},o=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] + .${wt.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${wt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.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:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),wl=Jf({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Li=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:b,endAdornment:p,error:g,fullWidth:y=!1,id:S,inputComponent:P="input",inputProps:C={},inputRef:x,margin:I,maxRows:M,minRows:$,multiline:R=!1,name:E,onBlur:F,onChange:T,onClick:m,onFocus:O,onKeyDown:D,onKeyUp:k,placeholder:w,readOnly:A,renderSuffix:L,rows:N,size:Y,slotProps:W={},slots:J={},startAdornment:ce,type:ae="text",value:V,...q}=r,ne=C.value!=null?C.value:V,{current:K}=v.useRef(ne!=null),z=v.useRef(),G=v.useCallback(Ce=>{},[]),oe=Fe(z,x,C.ref,G),[re,B]=v.useState(!1),ee=Bt(),le=Bn({props:r,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});le.focused=ee?ee.focused:re,v.useEffect(()=>{!ee&&h&&re&&(B(!1),F&&F())},[ee,h,re,F]);const te=ee&&ee.onFilled,pe=ee&&ee.onEmpty,H=v.useCallback(Ce=>{No(Ce)?te&&te():pe&&pe()},[te,pe]);st(()=>{K&&H({value:ne})},[ne,H,K]);const ye=Ce=>{O&&O(Ce),C.onFocus&&C.onFocus(Ce),ee&&ee.onFocus?ee.onFocus(Ce):B(!0)},de=Ce=>{F&&F(Ce),C.onBlur&&C.onBlur(Ce),ee&&ee.onBlur?ee.onBlur(Ce):B(!1)},Me=(Ce,...tt)=>{if(!K){const St=Ce.target||z.current;if(St==null)throw new Error(tn(1));H({value:St.value})}C.onChange&&C.onChange(Ce,...tt),T&&T(Ce,...tt)};v.useEffect(()=>{H(z.current)},[]);const he=Ce=>{z.current&&Ce.currentTarget===Ce.target&&z.current.focus(),m&&m(Ce)};let et=P,Le=C;R&&et==="input"&&(N?Le={type:void 0,minRows:N,maxRows:N,...Le}:Le={type:void 0,maxRows:M,minRows:$,...Le},et=Kv);const Xe=Ce=>{H(Ce.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};v.useEffect(()=>{ee&&ee.setAdornedStart(!!ce)},[ee,ce]);const nt={...r,color:le.color||"primary",disabled:le.disabled,endAdornment:p,error:le.error,focused:le.focused,formControl:ee,fullWidth:y,hiddenLabel:le.hiddenLabel,multiline:R,size:le.size,startAdornment:ce,type:ae},mt=Zv(nt),rt=J.root||c.Root||ls,xt=W.root||u.root||{},_e=J.input||c.Input||cs;return Le={...Le,...W.input??u.input},f.jsxs(v.Fragment,{children:[!b&&typeof wl=="function"&&(Cl||(Cl=f.jsx(wl,{}))),f.jsxs(rt,{...xt,ref:n,onClick:he,...q,...!rr(rt)&&{ownerState:{...nt,...xt.ownerState}},className:me(mt.root,xt.className,a,A&&"MuiInputBase-readOnly"),children:[ce,f.jsx(ns.Provider,{value:null,children:f.jsx(_e,{"aria-invalid":le.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:d,disabled:le.disabled,id:S,onAnimationStart:Xe,name:E,placeholder:w,readOnly:A,required:le.required,rows:N,value:ne,onKeyDown:D,onKeyUp:k,type:ae,...Le,...!rr(_e)&&{as:et,ownerState:{...nt,...Le.ownerState}},ref:oe,className:me(mt.input,Le.className,A&&"MuiInputBase-readOnly"),onBlur:de,onChange:Me,onFocus:ye})}),p,L?L({...le,startAdornment:ce}):null]})]})});function Jv(e){return Se("MuiInput",e)}const fn={...wt,...be("MuiInput",["root","underline","input"])},ex=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},Jv,t);return{...t,...o}},tx=_(ls,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...is(e,t),!n.disableUnderline&&t.underline]}})(Re(({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:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${fn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fn.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(.${fn.disabled}, .${fn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),nx=_(cs,{name:"MuiInput",slot:"Input",overridesResolver:as})({}),Ni=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:h="text",...b}=r,p=ex(r),y={root:{ownerState:{disableUnderline:o}}},S=u??i?ft(u??i,y):y,P=d.root??s.Root??tx,C=d.input??s.Input??nx;return f.jsx(Li,{slots:{root:P,input:C},slotProps:S,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...b,classes:p})});Ni.muiName="Input";function rx(e){return Se("MuiFilledInput",e)}const Pt={...wt,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ox=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ue(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=ve(l,rx,t);return{...t,...c}},sx=_(ls,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...is(e,t),!n.disableUnderline&&t.underline]}})(Re(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Pt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Pt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:i})=>!i.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"},[`&.${Pt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pt.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(.${Pt.disabled}, .${Pt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yt()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ix=_(cs,{name:"MuiFilledInput",slot:"Input",overridesResolver:as})(Re(({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}}]}))),ji=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:h={},type:b="text",...p}=r,g={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},y=ox(r),S={root:{ownerState:g},input:{ownerState:g}},P=d??i?ft(S,d??i):S,C=h.root??s.Root??sx,x=h.input??s.Input??ix;return f.jsx(Li,{slots:{root:C,input:x},slotProps:P,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...p,classes:y})});ji.muiName="Input";var Pl;const ax=_("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:jt})({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%"}),lx=_("legend",{name:"MuiNotchedOutlined",shouldForwardProp:jt})(Re(({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 cx(e){const{children:t,classes:n,className:r,label:o,notched:s,...i}=e,a=o!=null&&o!=="",l={...e,notched:s,withLabel:a};return f.jsx(ax,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(lx,{ownerState:l,children:a?f.jsx("span",{children:o}):Pl||(Pl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function ux(e){return Se("MuiOutlinedInput",e)}const Tt={...wt,...be("MuiOutlinedInput",["root","notchedOutline","input"])},dx=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ux,t);return{...t,...r}},px=_(ls,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:is})(Re(({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 .${Tt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Tt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Tt.focused} .${Tt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yt()).map(([n])=>({props:{color:n},style:{[`&.${Tt.focused} .${Tt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Tt.error} .${Tt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Tt.disabled} .${Tt.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:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),fx=_(cx,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Re(({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}})),mx=_(cs,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:as})(Re(({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}}]}))),Bi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:h="text",...b}=r,p=dx(r),g=Bt(),y=Bn({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:s,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},P=u.root??o.Root??px,C=u.input??o.Input??mx,[x,I]=We("notchedOutline",{elementType:fx,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:a!=null&&a!==""&&y.required?f.jsxs(v.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Li,{slots:{root:P,input:C},slotProps:d,renderSuffix:M=>f.jsx(x,{...I,notched:typeof c<"u"?c:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:h,...b,classes:{...p,notchedOutline:null}})});Bi.muiName="Input";function hx(e){return Se("MuiFormLabel",e)}const Fr=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),gx=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ue(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return ve(l,hx,t)},yx=_("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Re(({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:{[`&.${Fr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Fr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Fr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),bx=_("span",{name:"MuiFormLabel",slot:"Asterisk"})(Re(({theme:e})=>({[`&.${Fr.error}`]:{color:(e.vars||e).palette.error.main}}))),vx=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:d,required:h,...b}=r,p=Bt(),g=Bn({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},S=gx(y);return f.jsxs(yx,{as:a,ownerState:y,className:me(S.root,s),ref:n,...b,children:[o,g.required&&f.jsxs(bx,{ownerState:y,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function xx(e){return Se("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Sx=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ue(r)}`,i],asterisk:[a&&"asterisk"]},c=ve(l,xx,t);return{...t,...c}},Cx=_(vx,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fr.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]]}})(Re(({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:r})=>t==="filled"&&n.shrink&&r==="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)"}}]}))),Vi=v.forwardRef(function(t,n){const r=Oe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=Bt();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const h=Bn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},p=Sx(b);return f.jsx(Cx,{"data-shrink":d,ref:n,className:me(p.root,l),...c,ownerState:b,classes:p})});function wx(e){return Se("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Px=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return ve(o,wx,t)},kx=_("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ue(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%"}}]}),zi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:h=!1,margin:b="none",required:p=!1,size:g="medium",variant:y="outlined",...S}=r,P={...r,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:h,margin:b,required:p,size:g,variant:y},C=Px(P),[x,I]=v.useState(()=>{let k=!1;return o&&v.Children.forEach(o,w=>{if(!ho(w,["Input","Select"]))return;const A=ho(w,["Select"])?w.props.input:w;A&&Qv(A.props)&&(k=!0)}),k}),[M,$]=v.useState(()=>{let k=!1;return o&&v.Children.forEach(o,w=>{ho(w,["Input","Select"])&&(No(w.props,!0)||No(w.props.inputProps,!0))&&(k=!0)}),k}),[R,E]=v.useState(!1);l&&R&&E(!1);const F=u!==void 0&&!l?u:R;let T;v.useRef(!1);const m=v.useCallback(()=>{$(!0)},[]),O=v.useCallback(()=>{$(!1)},[]),D=v.useMemo(()=>({adornedStart:x,setAdornedStart:I,color:i,disabled:l,error:c,filled:M,focused:F,fullWidth:d,hiddenLabel:h,size:g,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:O,onFilled:m,registerEffect:T,required:p,variant:y}),[x,i,l,c,M,F,d,h,T,O,m,p,g,y]);return f.jsx(ns.Provider,{value:D,children:f.jsx(kx,{as:a,ownerState:P,className:me(C.root,s),ref:n,...S,children:o})})});function Mx(e){return Se("MuiFormHelperText",e)}const kl=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ml;const Dx=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${ue(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return ve(c,Mx,t)},Ix=_("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${kl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kl.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}}]}))),Pu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:h,variant:b,...p}=r,g=Bt(),y=Bn({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:i,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 S.ownerState;const P=Dx(S);return f.jsx(Ix,{as:i,className:me(P.root,s),ref:n,...p,ownerState:S,children:o===" "?Ml||(Ml=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function Ts(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Dl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ku(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 xr(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!ku(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const Tx=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...h}=t,b=v.useRef(null),p=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{o&&b.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:x})=>{const I=!b.current.style.width;if(C.clientHeight<b.current.clientHeight&&I){const M=`${Bc(rn(C))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=M,b.current.style.width=`calc(100% + ${M})`}return b.current}}),[]);const g=C=>{const x=b.current,I=C.key;if(C.ctrlKey||C.metaKey||C.altKey){u&&u(C);return}const $=dt(x).activeElement;if(I==="ArrowDown")C.preventDefault(),xr(x,$,c,l,Ts);else if(I==="ArrowUp")C.preventDefault(),xr(x,$,c,l,Dl);else if(I==="Home")C.preventDefault(),xr(x,null,c,l,Ts);else if(I==="End")C.preventDefault(),xr(x,null,c,l,Dl);else if(I.length===1){const R=p.current,E=I.toLowerCase(),F=performance.now();R.keys.length>0&&(F-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=F,R.keys.push(E);const T=$&&!R.repeating&&ku($,R);R.previousKeyMatched&&(T||xr(x,$,!1,l,Ts,R))?C.preventDefault():R.previousKeyMatched=!1}u&&u(C)},y=Fe(b,n);let S=-1;v.Children.forEach(i,(C,x)=>{if(!v.isValidElement(C)){S===x&&(S+=1,S>=i.length&&(S=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||S===-1)&&(S=x),S===x&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(S+=1,S>=i.length&&(S=-1))});const P=v.Children.map(i,(C,x)=>{if(x===S){const I={};return s&&(I.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(I.tabIndex=0),v.cloneElement(C,I)}return C});return f.jsx(vu,{role:"menu",ref:y,className:a,onKeyDown:g,tabIndex:o?0:-1,...h,children:P})});function Rx(e){const t=dt(e);return t.body===e?rn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Lr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Il(e){return parseInt(rn(e).getComputedStyle(e).paddingRight,10)||0}function Ox(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Tl(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!Ox(i);a&&l&&Lr(i,o)})}function Rs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function $x(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Rx(r)){const i=Bc(rn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Il(r)+i}px`;const a=dt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Il(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=dt(r).body;else{const i=r.parentElement,a=rn(r);s=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function Ex(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ax{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Lr(t.modalRef,!1);const o=Ex(n);Tl(n,t.mount,t.modalRef,o,!0);const s=Rs(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Rs(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=$x(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Rs(this.containers,i=>i.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Lr(t.modalRef,n),Tl(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Lr(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Fx(e){return Se("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const Lx=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},Fx,t)},Nx=_("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"}}]}),Mu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:h={},TransitionComponent:b,transitionDuration:p,...g}=r,y={...r,component:i,invisible:a},S=Lx(y),P={transition:b,root:c.Root,...h},C={...u,...d},x={component:i,slots:P,slotProps:C},[I,M]=We("root",{elementType:Nx,externalForwardedProps:x,className:me(S.root,s),ownerState:y}),[$,R]=We("transition",{elementType:En,externalForwardedProps:x,ownerState:y});return f.jsx($,{in:l,timeout:p,...g,...R,children:f.jsx(I,{"aria-hidden":!0,...M,classes:S,ref:n,children:o})})});function jx(e){return typeof e=="function"?e():e}function Bx(e){return e?e.props.hasOwnProperty("in"):!1}const Rl=()=>{},lo=new Ax;function Vx(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:u}=e,d=v.useRef({}),h=v.useRef(null),b=v.useRef(null),p=Fe(b,u),[g,y]=v.useState(!c),S=Bx(a);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const C=()=>dt(h.current),x=()=>(d.current.modalRef=b.current,d.current.mount=h.current,d.current),I=()=>{lo.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},M=fe(()=>{const k=jx(t)||C().body;lo.add(x(),k),b.current&&I()}),$=()=>lo.isTopModal(x()),R=fe(k=>{h.current=k,k&&(c&&$()?I():b.current&&Lr(b.current,P))}),E=v.useCallback(()=>{lo.remove(x(),P)},[P]);v.useEffect(()=>()=>{E()},[E]),v.useEffect(()=>{c?M():(!S||!o)&&E()},[c,E,S,o,M]);const F=k=>w=>{k.onKeyDown?.(w),!(w.key!=="Escape"||w.which===229||!$())&&(n||(w.stopPropagation(),l&&l(w,"escapeKeyDown")))},T=k=>w=>{k.onClick?.(w),w.target===w.currentTarget&&l&&l(w,"backdropClick")};return{getRootProps:(k={})=>{const w=gi(e);delete w.onTransitionEnter,delete w.onTransitionExited;const A={...w,...k};return{role:"presentation",...A,onKeyDown:F(A),ref:p}},getBackdropProps:(k={})=>{const w=k;return{"aria-hidden":!0,...w,onClick:T(w),open:c}},getTransitionProps:()=>{const k=()=>{y(!1),s&&s()},w=()=>{y(!0),i&&i(),o&&E()};return{onEnter:ia(k,a?.props.onEnter??Rl),onExited:ia(w,a?.props.onExited??Rl)}},rootRef:p,portalRef:R,isTopModal:$,exited:g,hasTransition:S}}function zx(e){return Se("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Wx=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zx,r)},_x=_("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Re(({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"}}]}))),Hx=_(Mu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Du=v.forwardRef(function(t,n){const r=Oe({name:"MuiModal",props:t}),{BackdropComponent:o=Hx,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:h={},componentsProps:b={},disableAutoFocus:p=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:P=!1,disableScrollLock:C=!1,hideBackdrop:x=!1,keepMounted:I=!1,onClose:M,onTransitionEnter:$,onTransitionExited:R,open:E,slotProps:F={},slots:T={},theme:m,...O}=r,D={...r,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:P,disableScrollLock:C,hideBackdrop:x,keepMounted:I},{getRootProps:k,getBackdropProps:w,getTransitionProps:A,portalRef:L,isTopModal:N,exited:Y,hasTransition:W}=Vx({...D,rootRef:n}),J={...D,exited:Y},ce=Wx(J),ae={};if(c.props.tabIndex===void 0&&(ae.tabIndex="-1"),W){const{onEnter:G,onExited:oe}=A();ae.onEnter=G,ae.onExited=oe}const V={slots:{root:h.Root,backdrop:h.Backdrop,...T},slotProps:{...b,...F}},[q,ne]=We("root",{ref:n,elementType:_x,externalForwardedProps:{...V,...O,component:d},getSlotProps:k,ownerState:J,className:me(a,ce?.root,!J.open&&J.exited&&ce?.hidden)}),[K,z]=We("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:G=>w({...G,onClick:oe=>{G?.onClick&&G.onClick(oe)}}),className:me(s?.className,ce?.backdrop),ownerState:J});return!I&&!E&&(!W||Y)?null:f.jsx(pu,{ref:L,container:u,disablePortal:S,children:f.jsxs(q,{...ne,children:[!x&&o?f.jsx(K,{...z}):null,f.jsx(fu,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:P,isEnabled:N,open:E,children:v.cloneElement(c,ae)})]})})});function Ux(e){return Se("MuiPopover",e)}be("MuiPopover",["root","paper"]);function Ol(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function $l(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function El(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const Yx=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},Ux,t)},Gx=_(Du,{name:"MuiPopover",slot:"Root"})({}),Iu=_(jn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qx=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:h=8,marginThreshold:b=16,open:p,PaperProps:g={},slots:y={},slotProps:S={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:x="auto",TransitionProps:I={},disableScrollLock:M=!1,...$}=r,R=v.useRef(),E={...r,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:b,transformOrigin:P,TransitionComponent:C,transitionDuration:x,TransitionProps:I},F=Yx(E),T=v.useCallback(()=>{if(l==="anchorPosition")return a;const G=co(s),re=(G&&G.nodeType===1?G:dt(R.current).body).getBoundingClientRect();return{top:re.top+Ol(re,i.vertical),left:re.left+$l(re,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),m=v.useCallback(G=>({vertical:Ol(G,P.vertical),horizontal:$l(G,P.horizontal)}),[P.horizontal,P.vertical]),O=v.useCallback(G=>{const oe={width:G.offsetWidth,height:G.offsetHeight},re=m(oe);if(l==="none")return{top:null,left:null,transformOrigin:El(re)};const B=T();let ee=B.top-re.vertical,le=B.left-re.horizontal;const te=ee+oe.height,pe=le+oe.width,H=rn(co(s)),ye=H.innerHeight-b,de=H.innerWidth-b;if(b!==null&&ee<b){const Me=ee-b;ee-=Me,re.vertical+=Me}else if(b!==null&&te>ye){const Me=te-ye;ee-=Me,re.vertical+=Me}if(b!==null&&le<b){const Me=le-b;le-=Me,re.horizontal+=Me}else if(pe>de){const Me=pe-de;le-=Me,re.horizontal+=Me}return{top:`${Math.round(ee)}px`,left:`${Math.round(le)}px`,transformOrigin:El(re)}},[s,l,T,m,b]),[D,k]=v.useState(p),w=v.useCallback(()=>{const G=R.current;if(!G)return;const oe=O(G);oe.top!==null&&G.style.setProperty("top",oe.top),oe.left!==null&&(G.style.left=oe.left),G.style.transformOrigin=oe.transformOrigin,k(!0)},[O]);v.useEffect(()=>(M&&window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)),[s,M,w]);const A=()=>{w()},L=()=>{k(!1)};v.useEffect(()=>{p&&w()}),v.useImperativeHandle(o,()=>p?{updatePosition:()=>{w()}}:null,[p,w]),v.useEffect(()=>{if(!p)return;const G=mc(()=>{w()}),oe=rn(co(s));return oe.addEventListener("resize",G),()=>{G.clear(),oe.removeEventListener("resize",G)}},[s,p,w]);let N=x;const Y={slots:{transition:C,...y},slotProps:{transition:I,paper:g,...S}},[W,J]=We("transition",{elementType:zr,externalForwardedProps:Y,ownerState:E,getSlotProps:G=>({...G,onEntering:(oe,re)=>{G.onEntering?.(oe,re),A()},onExited:oe=>{G.onExited?.(oe),L()}}),additionalProps:{appear:!0,in:p}});x==="auto"&&!W.muiSupportAuto&&(N=void 0);const ce=d||(s?dt(co(s)).body:void 0),[ae,{slots:V,slotProps:q,...ne}]=We("root",{ref:n,elementType:Gx,externalForwardedProps:{...Y,...$},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:hc(typeof S.backdrop=="function"?S.backdrop(E):S.backdrop,{invisible:!0})},container:ce,open:p},ownerState:E,className:me(F.root,u)}),[K,z]=We("paper",{ref:R,className:F.paper,elementType:Iu,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:E});return f.jsx(ae,{...ne,...!rr(ae)&&{slots:V,slotProps:q,disableScrollLock:M},children:f.jsx(W,{...J,timeout:N,children:f.jsx(K,{...z,children:c})})})});function Kx(e){return Se("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const Qx={vertical:"top",horizontal:"right"},Xx={vertical:"top",horizontal:"left"},Zx=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},Kx,t)},Jx=_(qx,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),e0=_(Iu,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),t0=_(Tx,{name:"MuiMenu",slot:"List"})({outline:0}),n0=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:p,...g}={},variant:y="selectedMenu",slots:S={},slotProps:P={},...C}=r,x=Wt(),I={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:b,TransitionProps:g,variant:y},M=Zx(I),$=o&&!a&&u,R=v.useRef(null),E=(N,Y)=>{R.current&&R.current.adjustStyleForScrollbar(N,{direction:x?"rtl":"ltr"}),p&&p(N,Y)},F=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let T=-1;v.Children.map(s,(N,Y)=>{v.isValidElement(N)&&(N.props.disabled||(y==="selectedMenu"&&N.props.selected||T===-1)&&(T=Y))});const m={slots:S,slotProps:{list:l,transition:g,paper:d,...P}},O=Ae({elementType:S.root,externalSlotProps:P.root,ownerState:I,className:[M.root,i]}),[D,k]=We("paper",{className:M.paper,elementType:e0,externalForwardedProps:m,shouldForwardComponentProp:!0,ownerState:I}),[w,A]=We("list",{className:me(M.list,l.className),elementType:t0,shouldForwardComponentProp:!0,externalForwardedProps:m,getSlotProps:N=>({...N,onKeyDown:Y=>{F(Y),N.onKeyDown?.(Y)}}),ownerState:I}),L=typeof m.slotProps.transition=="function"?m.slotProps.transition(I):m.slotProps.transition;return f.jsx(Jx,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Qx:Xx,slots:{root:S.root,paper:D,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:O,paper:k,backdrop:typeof P.backdrop=="function"?P.backdrop(I):P.backdrop,transition:{...L,onEntering:(...N)=>{E(...N),L?.onEntering?.(...N)}}},open:u,ref:n,transitionDuration:b,ownerState:I,...C,classes:h,children:f.jsx(w,{actions:R,autoFocus:o&&(T===-1||a),autoFocusItem:$,variant:y,...A,children:s})})});function r0(e){return Se("MuiNativeSelect",e)}const Wi=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),o0=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ue(n)}`,s&&"iconOpen",r&&"disabled"]};return ve(a,r0,t)},Tu=_("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Wi.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}}}]})),s0=_(Tu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:jt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Wi.multiple}`]:t.multiple}]}})({}),Ru=_("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Wi.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}}]})),i0=_(Ru,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})({}),a0=v.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:s},d=o0(u);return f.jsxs(v.Fragment,{children:[f.jsx(s0,{ownerState:u,className:me(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx(i0,{as:i,ownerState:u,className:d.icon})]})});function Ou(e){return Se("MuiSelect",e)}const Sr=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Al;const l0=_(Tu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sr.select}`]:t.select},{[`&.${Sr.select}`]:t[n.variant]},{[`&.${Sr.error}`]:t.error},{[`&.${Sr.multiple}`]:t.multiple}]}})({[`&.${Sr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),c0=_(Ru,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})({}),u0=_("input",{shouldForwardProp:e=>fc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function d0(e){return e==null||typeof e=="string"&&!e.trim()}const p0=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ue(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(a,Ou,t)},f0=v.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:h,error:b=!1,IconComponent:p,inputRef:g,labelId:y,MenuProps:S={},multiple:P,name:C,onBlur:x,onChange:I,onClose:M,onFocus:$,onOpen:R,open:E,readOnly:F,renderValue:T,required:m,SelectDisplayProps:O={},tabIndex:D,type:k,value:w,variant:A="standard",...L}=t,[N,Y]=Mt({controlled:w,default:u,name:"Select"}),[W,J]=Mt({controlled:E,default:c,name:"Select"}),ce=v.useRef(null),ae=v.useRef(null),[V,q]=v.useState(null),{current:ne}=v.useRef(E!=null),[K,z]=v.useState(),G=Fe(n,g),oe=v.useCallback(xe=>{ae.current=xe,xe&&q(xe)},[]),re=V?.parentNode;v.useImperativeHandle(G,()=>({focus:()=>{ae.current.focus()},node:ce.current,value:N}),[N]),v.useEffect(()=>{c&&W&&V&&!ne&&(z(i?null:re.clientWidth),ae.current.focus())},[V,i]),v.useEffect(()=>{s&&ae.current.focus()},[s]),v.useEffect(()=>{if(!y)return;const xe=dt(ae.current).getElementById(y);if(xe){const Ie=()=>{getSelection().isCollapsed&&ae.current.focus()};return xe.addEventListener("click",Ie),()=>{xe.removeEventListener("click",Ie)}}},[y]);const B=(xe,Ie)=>{xe?R&&R(Ie):M&&M(Ie),ne||(z(i?null:re.clientWidth),J(xe))},ee=xe=>{xe.button===0&&(xe.preventDefault(),ae.current.focus(),B(!0,xe))},le=xe=>{B(!1,xe)},te=v.Children.toArray(a),pe=xe=>{const Ie=te.find($e=>$e.props.value===xe.target.value);Ie!==void 0&&(Y(Ie.props.value),I&&I(xe,Ie))},H=xe=>Ie=>{let $e;if(Ie.currentTarget.hasAttribute("tabindex")){if(P){$e=Array.isArray(N)?N.slice():[];const Ct=N.indexOf(xe.props.value);Ct===-1?$e.push(xe.props.value):$e.splice(Ct,1)}else $e=xe.props.value;if(xe.props.onClick&&xe.props.onClick(Ie),N!==$e&&(Y($e),I)){const Ct=Ie.nativeEvent||Ie,Ne=new Ct.constructor(Ct.type,Ct);Object.defineProperty(Ne,"target",{writable:!0,value:{value:$e,name:C}}),I(Ne,xe)}P||B(!1,Ie)}},ye=xe=>{F||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),B(!0,xe))},de=V!==null&&W,Me=xe=>{!de&&x&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:N,name:C}}),x(xe))};delete L["aria-invalid"];let he,et;const Le=[];let Xe=!1;(No({value:N})||h)&&(T?he=T(N):Xe=!0);const nt=te.map(xe=>{if(!v.isValidElement(xe))return null;let Ie;if(P){if(!Array.isArray(N))throw new Error(tn(2));Ie=N.some($e=>Fl($e,xe.props.value)),Ie&&Xe&&Le.push(xe.props.children)}else Ie=Fl(N,xe.props.value),Ie&&Xe&&(et=xe.props.children);return v.cloneElement(xe,{"aria-selected":Ie?"true":"false",onClick:H(xe),onKeyUp:$e=>{$e.key===" "&&$e.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp($e)},role:"option",selected:Ie,value:void 0,"data-value":xe.props.value})});Xe&&(P?Le.length===0?he=null:he=Le.reduce((xe,Ie,$e)=>(xe.push(Ie),$e<Le.length-1&&xe.push(", "),xe),[]):he=et);let mt=K;!i&&ne&&V&&(mt=re.clientWidth);let rt;typeof D<"u"?rt=D:rt=d?null:0;const xt=O.id||(C?`mui-component-select-${C}`:void 0),_e={...t,variant:A,value:N,open:de,error:b},Ce=p0(_e),tt={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(_e):S.slotProps?.paper},St={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(_e):S.slotProps?.list},ut=_t();return f.jsxs(v.Fragment,{children:[f.jsx(l0,{as:"div",ref:oe,tabIndex:rt,role:"combobox","aria-controls":de?ut:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,xt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":m?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:ye,onMouseDown:d||F?null:ee,onBlur:Me,onFocus:$,...O,ownerState:_e,className:me(O.className,Ce.select,l),id:xt,children:d0(he)?Al||(Al=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):he}),f.jsx(u0,{"aria-invalid":b,value:Array.isArray(N)?N.join(","):N,name:C,ref:ce,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:d,className:Ce.nativeInput,autoFocus:s,required:m,...L,ownerState:_e}),f.jsx(c0,{as:p,className:Ce.icon,ownerState:_e}),f.jsx(n0,{id:`menu-${C||""}`,anchorEl:re,open:de,onClose:le,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:ut,...St},paper:{...tt,style:{minWidth:mt,...tt!=null?tt.style:null}}},children:nt})]})}),$u=ct(f.jsx("path",{d:"M7 10l5 5 5-5z"})),m0=e=>{const{classes:t}=e,r=ve({root:["root"]},Ou,t);return{...t,...r}},_i={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>jt(e)&&e!=="variant"},h0=_(Ni,_i)(""),g0=_(Bi,_i)(""),y0=_(ji,_i)(""),Hi=v.forwardRef(function(t,n){const r=Oe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=$u,id:d,input:h,inputProps:b,label:p,labelId:g,MenuProps:y,multiple:S=!1,native:P=!1,onClose:C,onOpen:x,open:I,renderValue:M,SelectDisplayProps:$,variant:R="outlined",...E}=r,F=P?a0:f0,T=Bt(),m=Bn({props:r,muiFormControl:T,states:["variant","error"]}),O=m.variant||R,D={...r,variant:O,classes:i},k=m0(D),{root:w,...A}=k,L=h||{standard:f.jsx(h0,{ownerState:D}),outlined:f.jsx(g0,{label:p,ownerState:D}),filled:f.jsx(y0,{ownerState:D})}[O],N=Fe(n,dr(L));return f.jsx(v.Fragment,{children:v.cloneElement(L,{inputComponent:F,inputProps:{children:s,error:m.error,IconComponent:u,variant:O,type:void 0,multiple:S,...P?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:y,onClose:C,onOpen:x,open:I,renderValue:M,SelectDisplayProps:{id:d,...$}},...b,classes:b?ft(A,b.classes):A,...h?h.props.inputProps:{}},...(S&&P||c)&&O==="outlined"?{notched:!0}:{},ref:N,className:me(L.props.className,a,k.root),...!h&&{variant:O},...E})})});Hi.muiName="Select";function b0(e){return Se("MuiTextField",e)}be("MuiTextField",["root"]);const v0={standard:Ni,filled:ji,outlined:Bi},x0=e=>{const{classes:t}=e;return ve({root:["root"]},b0,t)},S0=_(zi,{name:"MuiTextField",slot:"Root"})({}),Ui=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:p,id:g,InputLabelProps:y,inputProps:S,InputProps:P,inputRef:C,label:x,maxRows:I,minRows:M,multiline:$=!1,name:R,onBlur:E,onChange:F,onFocus:T,placeholder:m,required:O=!1,rows:D,select:k=!1,SelectProps:w,slots:A={},slotProps:L={},type:N,value:Y,variant:W="outlined",...J}=r,ce={...r,autoFocus:s,color:l,disabled:u,error:d,fullWidth:b,multiline:$,required:O,select:k,variant:W},ae=x0(ce),V=_t(g),q=p&&V?`${V}-helper-text`:void 0,ne=x&&V?`${V}-label`:void 0,K=v0[W],z={slots:A,slotProps:{input:P,inputLabel:y,htmlInput:S,formHelperText:h,select:w,...L}},G={},oe=z.slotProps.inputLabel;W==="outlined"&&(oe&&typeof oe.shrink<"u"&&(G.notched=oe.shrink),G.label=x),k&&((!w||!w.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[re,B]=We("root",{elementType:S0,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...J},ownerState:ce,className:me(ae.root,a),ref:n,additionalProps:{disabled:u,error:d,fullWidth:b,required:O,color:l,variant:W}}),[ee,le]=We("input",{elementType:K,externalForwardedProps:z,additionalProps:G,ownerState:ce}),[te,pe]=We("inputLabel",{elementType:Vi,externalForwardedProps:z,ownerState:ce}),[H,ye]=We("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:ce}),[de,Me]=We("formHelperText",{elementType:Pu,externalForwardedProps:z,ownerState:ce}),[he,et]=We("select",{elementType:Hi,externalForwardedProps:z,ownerState:ce}),Le=f.jsx(ee,{"aria-describedby":q,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:$,name:R,rows:D,maxRows:I,minRows:M,type:N,value:Y,id:V,inputRef:C,onBlur:E,onChange:F,onFocus:T,placeholder:m,inputProps:ye,slots:{input:A.htmlInput?H:void 0},...le});return f.jsxs(re,{...B,children:[x!=null&&x!==""&&f.jsx(te,{htmlFor:V,id:ne,...pe,children:x}),k?f.jsx(he,{"aria-describedby":q,id:V,labelId:ne,value:Y,input:Le,...et,children:i}):Le,p&&f.jsx(de,{id:q,...Me,children:p})]})}),C0=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),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 picker component.");return o},w0=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},P0=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},k0=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:s,token:i,startSeparator:a})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=_c(e,i),c=Gc(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let h=d?e.formatByString(t,i):"",b=null;if(u)if(c)b=h===""?e.formatByString(s,i).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);b=l.maxLength,d&&(h=vi(Uc($n(h,o),b),o))}return j({},l,{format:i,maxLength:b,value:h,placeholder:P0(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},M0=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((b,p)=>p.length-b.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=b=>r.find(p=>p.start<=b&&p.end>=b);let h=0;for(;h<n.length;){const b=d(h),p=b!=null,g=l.exec(n.slice(h))?.[1];if(!p&&g!=null&&c.test(g)){let y=g;for(;y.length>0;){const S=u.exec(y)[1];y=y.slice(S.length),s.push(k0(j({},e,{now:o,token:S,startSeparator:i}))),i=""}h+=g.length}else{const y=n[h];p&&b?.start===h||b?.end===h||(s.length===0?i+=y:s[s.length-1].endSeparator+=y),h+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},D0=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let i=s;return e&&i!==null&&i.includes(" ")&&(i=`${i}`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),Ll=e=>{let t=C0(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=w0(j({},e,{expandedFormat:t})),r=M0(j({},e,{expandedFormat:t,escapedParts:n}));return D0(j({},e,{sections:r}))},I0=e=>{const t=Ue(),n=an(),r=Ln(),o=Wt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:h,onChange:b,format:p,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:S,shouldRespectLeadingZeros:P=!1,timezone:C,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:I,value:M,handleValueChange:$}=Ei({timezone:C,value:u,defaultValue:d,referenceDate:h,onChange:b,valueManager:s}),R=v.useMemo(()=>Ih(t),[t]),E=v.useMemo(()=>Ah(t,R,I),[t,R,I]),F=v.useCallback((V,q=null)=>i.getSectionsFromValue(t,V,q,ne=>Ll({utils:t,localeText:n,localizedDigits:R,format:p,date:ne,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,p,n,R,o,P,t,g,x]),[T,m]=v.useState(()=>{const V=F(M),q={sections:V,value:M,referenceValue:s.emptyValue,tempValueStrAndroid:null},ne=Ph(V),K=s.getInitialReferenceValue({referenceDate:h,value:M,utils:t,props:c,granularity:ne,timezone:I});return j({},q,{referenceValue:K})}),[O,D]=Mt({controlled:y,default:null,name:"useField",state:"selectedSections"}),k=V=>{D(V),S?.(V)},w=v.useMemo(()=>Bs(O,T.sections),[O,T.sections]),A=w==="all"?0:w,L=({value:V,referenceValue:q,sections:ne})=>{if(m(z=>j({},z,{sections:ne,value:V,referenceValue:q,tempValueStrAndroid:null})),s.areValuesEqual(t,T.value,V))return;const K={validationError:l({adapter:r,value:V,timezone:I,props:c})};$(V,K)},N=(V,q)=>{const ne=[...T.sections];return ne[V]=j({},ne[V],{value:q,modified:!0}),ne},Y=()=>{L({value:s.emptyValue,referenceValue:T.referenceValue,sections:F(s.emptyValue)})},W=()=>{if(A==null)return;const V=T.sections[A],q=i.getActiveDateManager(t,T,V),K=q.getSections(T.sections).filter(re=>re.value!=="").length===(V.value===""?0:1),z=N(A,""),G=K?null:t.getInvalidDate(),oe=q.getNewValuesFromNewActiveDate(G);L(j({},oe,{sections:z}))},J=V=>{const q=(z,G)=>{const oe=t.parse(z,p);if(oe==null||!t.isValid(oe))return null;const re=Ll({utils:t,localeText:n,localizedDigits:R,format:p,date:oe,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:x,isRtl:o});return Ja(t,oe,re,G,!1)},ne=i.parseValueStr(V,T.referenceValue,q),K=i.updateReferenceValue(t,ne,T.referenceValue);L({value:ne,referenceValue:K,sections:F(ne,T.sections)})},ce=({activeSection:V,newSectionValue:q,shouldGoToNextSection:ne})=>{ne&&A<T.sections.length-1&&k(A+1);const K=i.getActiveDateManager(t,T,V),z=N(A,q),G=K.getSections(z),oe=Oh(t,G,R);let re,B;if(oe!=null&&t.isValid(oe)){const ee=Ja(t,oe,G,K.referenceDate,!0);re=K.getNewValuesFromNewActiveDate(ee),B=!0}else re=K.getNewValuesFromNewActiveDate(oe),B=(oe!=null&&!t.isValid(oe))!=(K.date!=null&&!t.isValid(K.date));return B?L(j({},re,{sections:z})):m(ee=>j({},ee,re,{sections:z,tempValueStrAndroid:null}))},ae=V=>m(q=>j({},q,{tempValueStrAndroid:V}));return v.useEffect(()=>{const V=F(T.value);m(q=>j({},q,{sections:V}))},[p,t.locale,o]),v.useEffect(()=>{let V;s.areValuesEqual(t,T.value,M)?V=s.getTimezone(t,T.value)!==s.getTimezone(t,M):V=!0,V&&m(q=>j({},q,{value:M,referenceValue:i.updateReferenceValue(t,M,q.referenceValue),sections:F(M)}))},[M]),{state:T,activeSectionIndex:A,parsedSelectedSections:w,setSelectedSections:k,clearValue:Y,clearActiveSection:W,updateSectionValue:ce,updateValueFromValueStr:J,setTempAndroidValueStr:ae,getSectionsFromValue:F,sectionsValueBoundaries:E,localizedDigits:R,timezone:I}},T0=5e3,qn=e=>e.saveQuery!=null,R0=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Ue(),[a,l]=v.useState(null),c=fe(()=>l(null));v.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),v.useEffect(()=>{if(a!=null){const p=setTimeout(()=>c(),T0);return()=>{clearTimeout(p)}}return()=>{}},[a,c]);const u=({keyPressed:p,sectionIndex:g},y,S)=>{const P=p.toLowerCase(),C=e[g];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===g){const I=`${a.value}${P}`,M=y(I,C);if(!qn(M))return l({sectionIndex:g,value:I,sectionType:C.type}),M}const x=y(P,C);return qn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:g,value:P,sectionType:C.type}),qn(x)?null:x)},d=p=>{const g=(P,C,x)=>{const I=C.filter(M=>M.toLowerCase().startsWith(x));return I.length===0?{saveQuery:!1}:{sectionValue:I[0],shouldGoToNextSection:I.length===1}},y=(P,C,x,I)=>{const M=$=>Hc(i,s,C.type,$);if(C.contentType==="letter")return g(C.format,M(C.format),P);if(x&&I!=null&&_c(i,x).contentType==="letter"){const $=M(x),R=g(x,$,P);return qn(R)?{saveQuery:!1}:j({},R,{sectionValue:I(R.sectionValue,$)})}return{saveQuery:!1}};return u(p,(P,C)=>{switch(C.type){case"month":{const x=I=>Xa(i,I,i.formats.month,C.format);return y(P,C,i.formats.month,x)}case"weekDay":{const x=(I,M)=>M.indexOf(I).toString();return y(P,C,i.formats.weekday,x)}case"meridiem":return y(P,C);default:return{saveQuery:!1}}})},h=p=>{const g=(S,P)=>{const C=$n(S,r),x=Number(C),I=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(x>I.maximum)return{saveQuery:!1};if(x<I.minimum)return{saveQuery:!0};const M=x*10>I.maximum||C.length===I.maximum.toString().length;return{sectionValue:Yc(i,x,I,r,P),shouldGoToNextSection:M}};return u(p,(S,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(S,P);if(P.type==="month"){Gc(i,"digit","month","MM");const C=g(S,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qn(C))return C;const x=Xa(i,C.sectionValue,"MM",P.format);return j({},C,{sectionValue:x})}if(P.type==="weekDay"){const C=g(S,P);if(qn(C))return C;const x=es(i,P.format)[Number(C.sectionValue)-1];return j({},C,{sectionValue:x})}return{saveQuery:!1}},S=>Qa(S,r))};return{applyCharacterEditing:fe(p=>{const g=e[p.sectionIndex],S=Qa(p.keyPressed,r)?h(j({},p,{keyPressed:vi(p.keyPressed,r)})):d(p);if(S==null){o(null);return}t({activeSection:g,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:c}},O0=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:h,resetCharacterQuery:b,setSelectedSections:p,parsedSelectedSections:g,state:y,clearActiveSection:S,clearValue:P,updateSectionValue:C,updateValueFromValueStr:x,sectionOrder:I,areAllSectionsEmpty:M,sectionsValueBoundaries:$}=e,R=v.useRef(null),E=Fe(r,R),F=an(),T=Ue(),m=_t(),[O,D]=v.useState(!1),k=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const B=document.getSelection();if(!B)return;if(g==null){B.rangeCount>0&&R.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),O&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(gt(document)))return;const ee=new window.Range;let le;g==="all"?le=R.current.getRoot():y.sections[g].type==="empty"?le=R.current.getSectionContainer(g):le=R.current.getSectionContent(g),ee.selectNodeContents(le),le.focus(),B.removeAllRanges(),B.addRange(ee)},getActiveSectionIndexFromDOM:()=>{const B=gt(document);return!B||!R.current||!R.current.getRoot().contains(B)?null:R.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!R.current||k.getActiveSectionIndexFromDOM()!=null)return;const ee=Bs(B,y.sections);D(!0),R.current.getSectionContent(ee).focus()},setSelectedSections:B=>{if(!R.current)return;const ee=Bs(B,y.sections);D((ee==="all"?0:ee)!==null),p(B)},isFieldFocused:()=>{const B=gt(document);return!!R.current&&R.current.getRoot().contains(B)}}),[g,p,y.sections,O]),w=fe(B=>{if(!R.current)return;const ee=y.sections[B];R.current.getSectionContent(B).innerHTML=ee.value||ee.placeholder,k.syncSelectionToDOM()}),A=fe((B,...ee)=>{B.isDefaultPrevented()||!R.current||(D(!0),s?.(B,...ee),g==="all"?setTimeout(()=>{const le=document.getSelection().getRangeAt(0).startOffset;if(le===0){p(I.startIndex);return}let te=0,pe=0;for(;pe<le&&te<y.sections.length;){const H=y.sections[te];te+=1,pe+=`${H.startSeparator}${H.value||H.placeholder}${H.endSeparator}`.length}p(te-1)}):O?R.current.getRoot().contains(B.target)||p(I.startIndex):(D(!0),p(I.startIndex)))}),L=fe(B=>{if(a?.(B),!R.current||g!=="all")return;const le=B.target.textContent??"";R.current.getRoot().innerHTML=y.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),k.syncSelectionToDOM(),le.length===0||le.charCodeAt(0)===10?(b(),P(),p("all")):le.length>1?x(le):(g==="all"&&p(0),h({keyPressed:le,sectionIndex:0}))}),N=fe(B=>{if(l?.(B),n||g!=="all"){B.preventDefault();return}const ee=B.clipboardData.getData("text");B.preventDefault(),b(),x(ee)}),Y=fe((...B)=>{if(i?.(...B),O||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(gt(document))!=null||p(I.startIndex)}),W=fe((...B)=>{o?.(...B),setTimeout(()=>{if(!R.current)return;const ee=gt(document);!R.current.getRoot().contains(ee)&&(D(!1),p(null))})}),J=fe(B=>ee=>{ee.isDefaultPrevented()||p(B)}),ce=fe(B=>{B.preventDefault()}),ae=fe(B=>()=>{p(B)}),V=fe(B=>{if(B.preventDefault(),n||t||typeof g!="number")return;const ee=y.sections[g],le=B.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(le),pe=/^[0-9]+$/.test(le),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(le);ee.contentType==="letter"&&te||ee.contentType==="digit"&&pe||ee.contentType==="digit-with-letter"&&H?(b(),C({activeSection:ee,newSectionValue:le,shouldGoToNextSection:!0})):!te&&!pe&&(b(),x(le))}),q=fe(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),ne=fe(B=>{if(!R.current)return;const ee=B.target,le=ee.textContent??"",te=R.current.getSectionIndexFromDOMElement(ee),pe=y.sections[te];if(n||!R.current){w(te);return}if(le.length===0){if(pe.value===""){w(te);return}const H=B.nativeEvent.inputType;if(H==="insertParagraph"||H==="insertLineBreak"){w(te);return}b(),S();return}h({keyPressed:le,sectionIndex:te}),w(te)});st(()=>{if(!(!O||!R.current)){if(g==="all")R.current.getRoot().focus();else if(typeof g=="number"){const B=R.current.getSectionContent(g);B&&B.focus()}}},[g,O]);const K=v.useMemo(()=>y.sections.reduce((B,ee)=>(B[ee.type]=$[ee.type]({currentDate:null,contentType:ee.contentType,format:ee.format}),B),{}),[$,y.sections]),z=g==="all",G=v.useMemo(()=>y.sections.map((B,ee)=>{const le=!z&&!t&&!n;return{container:{"data-sectionindex":ee,onClick:J(ee)},content:{tabIndex:z||ee>0?-1:0,contentEditable:!z&&!t&&!n,role:"spinbutton",id:`${m}-${B.type}`,"aria-labelledby":`${m}-${B.type}`,"aria-readonly":n,"aria-valuenow":Bh(B,T),"aria-valuemin":K[B.type].minimum,"aria-valuemax":K[B.type].maximum,"aria-valuetext":B.value?jh(B,T):F.empty,"aria-label":F[B.type],"aria-disabled":t,spellCheck:le?!1:void 0,autoCapitalize:le?"off":void 0,autoCorrect:le?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:le?"next":void 0,children:B.value||B.placeholder,onInput:ne,onPaste:V,onFocus:ae(ee),onDragOver:q,onMouseUp:ce,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[y.sections,ae,V,q,ne,J,ce,t,n,z,F,T,K,m]),oe=fe(B=>{x(B.target.value)}),re=v.useMemo(()=>M?"":d.getV7HiddenInputValueFromSections(y.sections),[M,y.sections,d]);return v.useEffect(()=>{if(R.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 remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker 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(`
|
|
130
|
-
`));u&&R.current&&R.current.getSectionContent(I.startIndex).focus()},[]),{interactions:k,returnedValue:{autoFocus:u,readOnly:n,focused:c??O,sectionListRef:E,onBlur:W,onClick:A,onFocus:Y,onInput:L,onPaste:N,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:g===0?-1:0,contentEditable:z,value:re,onChange:oe,areAllSectionsEmpty:M}}},Qn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),$0=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let i=0;i<e.length;i+=1){const a=e[i],l=xi(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Qn(c).length,d=c.length,h=Qn(l),b=o+(h===""?0:l.indexOf(h[0]))+a.startSeparator.length,p=b+h.length;s.push(j({},a,{start:r,end:r+u,startInInput:b,endInInput:p})),r+=u,o+=d}return s},E0=e=>{const t=Wt(),n=v.useRef(void 0),r=v.useRef(void 0),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:h,activeSectionIndex:b,state:p,fieldValueManager:g,valueManager:y,applyCharacterEditing:S,resetCharacterQuery:P,updateSectionValue:C,updateValueFromValueStr:x,clearActiveSection:I,clearValue:M,setTempAndroidValueStr:$,setSelectedSections:R,getSectionsFromValue:E,areAllSectionsEmpty:F,localizedDigits:T}=e,m=v.useRef(null),O=Fe(l,m),D=v.useMemo(()=>$0(p.sections,T,t),[p.sections,T,t]),k=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!m.current)return;if(h==null){m.current.scrollLeft&&(m.current.scrollLeft=0);return}if(m.current!==gt(document))return;const ne=m.current.scrollTop;if(h==="all")m.current.select();else{const K=D[h],z=K.type==="empty"?K.startInInput-K.startSeparator.length:K.startInInput,G=K.type==="empty"?K.endInInput+K.endSeparator.length:K.endInInput;(z!==m.current.selectionStart||G!==m.current.selectionEnd)&&m.current===gt(document)&&m.current.setSelectionRange(z,G),clearTimeout(r.current),r.current=setTimeout(()=>{m.current&&m.current===gt(document)&&m.current.selectionStart===m.current.selectionEnd&&(m.current.selectionStart!==z||m.current.selectionEnd!==G)&&k.syncSelectionToDOM()})}m.current.scrollTop=ne},getActiveSectionIndexFromDOM:()=>{const ne=m.current.selectionStart??0,K=m.current.selectionEnd??0;if(ne===0&&K===0)return null;const z=ne<=D[0].startInInput?1:D.findIndex(G=>G.startInInput-G.startSeparator.length>ne);return z===-1?D.length-1:z-1},focusField:(ne=0)=>{gt(document)!==m.current&&(m.current?.focus(),R(ne))},setSelectedSections:ne=>R(ne),isFieldFocused:()=>m.current===gt(document)}),[m,h,D,R]),w=()=>{const ne=m.current.selectionStart??0;let K;ne<=D[0].startInInput||ne>=D[D.length-1].endInInput?K=1:K=D.findIndex(G=>G.startInInput-G.startSeparator.length>ne);const z=K===-1?D.length-1:K-1;R(z)},A=fe((...ne)=>{o?.(...ne);const K=m.current;clearTimeout(n.current),n.current=setTimeout(()=>{!K||K!==m.current||b==null&&(K.value.length&&Number(K.selectionEnd)-Number(K.selectionStart)===K.value.length?R("all"):w())})}),L=fe((ne,...K)=>{ne.isDefaultPrevented()||(s?.(ne,...K),w())}),N=fe(ne=>{if(i?.(ne),ne.preventDefault(),u||d)return;const K=ne.clipboardData.getData("text");if(typeof h=="number"){const z=p.sections[h],G=/^[a-zA-Z]+$/.test(K),oe=/^[0-9]+$/.test(K),re=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(K);if(z.contentType==="letter"&&G||z.contentType==="digit"&&oe||z.contentType==="digit-with-letter"&&re){P(),C({activeSection:z,newSectionValue:K,shouldGoToNextSection:!0});return}if(G||oe)return}P(),x(K)}),Y=fe((...ne)=>{a?.(...ne),R(null)}),W=fe(ne=>{if(u)return;const K=ne.target.value;if(K===""){P(),M();return}const z=ne.nativeEvent.data,G=z&&z.length>1,oe=G?z:K,re=Qn(oe);if(h==="all"&&R(b),b==null||G){x(G?z:re);return}let B;if(h==="all"&&re.length===1)B=re;else{const ee=Qn(g.getV6InputValueFromSections(D,T,t));let le=-1,te=-1;for(let de=0;de<ee.length;de+=1)le===-1&&ee[de]!==re[de]&&(le=de),te===-1&&ee[ee.length-de-1]!==re[re.length-de-1]&&(te=de);const pe=D[b];if(le<pe.start||ee.length-te-1>pe.end)return;const ye=re.length-ee.length+pe.end-Qn(pe.endSeparator||"").length;B=re.slice(pe.start+Qn(pe.startSeparator||"").length,ye)}if(B.length===0){Lh()&&$(oe),P(),I();return}S({keyPressed:B,sectionIndex:b})}),J=v.useMemo(()=>c!==void 0?c:g.getV6InputValueFromSections(E(y.emptyValue),T,t),[c,g,E,y.emptyValue,T,t]),ce=v.useMemo(()=>p.tempValueStrAndroid??g.getV6InputValueFromSections(p.sections,T,t),[p.sections,g,p.tempValueStrAndroid,T,t]);v.useEffect(()=>(m.current&&m.current===gt(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ae=v.useMemo(()=>b==null||p.sections[b].contentType==="letter"?"text":"numeric",[b,p.sections]),q=!(m.current&&m.current===gt(document))&&F;return{interactions:k,returnedValue:{readOnly:u,onBlur:Y,onClick:L,onFocus:A,onPaste:N,inputRef:O,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:ae,autoComplete:"off",value:q?"":ce,onChange:W}}},A0=e=>{const t=Ue(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:h,valueManager:b,validator:p}=e,g=Wt(),y=I0(e),{state:S,activeSectionIndex:P,parsedSelectedSections:C,setSelectedSections:x,clearValue:I,clearActiveSection:M,updateSectionValue:$,setTempAndroidValueStr:R,sectionsValueBoundaries:E,localizedDigits:F,timezone:T}=y,m=R0({sections:S.sections,updateSectionValue:$,sectionsValueBoundaries:E,localizedDigits:F,setTempAndroidValueStr:R,timezone:T}),{resetCharacterQuery:O}=m,D=b.areValuesEqual(t,S.value,b.emptyValue),k=s?O0:E0,w=v.useMemo(()=>Nh(S.sections,g&&!s),[S.sections,g,s]),{returnedValue:A,interactions:L}=k(j({},e,y,m,{areAllSectionsEmpty:D,sectionOrder:w})),N=fe(V=>{if(l?.(V),!i)switch(!0){case((V.ctrlKey||V.metaKey)&&String.fromCharCode(V.keyCode)==="A"&&!V.shiftKey&&!V.altKey):{V.preventDefault(),x("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),C==null)x(w.startIndex);else if(C==="all")x(w.endIndex);else{const q=w.neighbors[C].rightIndex;q!==null&&x(q)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),C==null)x(w.endIndex);else if(C==="all")x(w.startIndex);else{const q=w.neighbors[C].leftIndex;q!==null&&x(q)}break}case V.key==="Delete":{if(V.preventDefault(),a)break;C==null||C==="all"?I():M(),O();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),a||P==null)break;C==="all"&&x(P);const q=S.sections[P],ne=h.getActiveDateManager(t,S,q),K=Th(t,T,q,V.key,E,F,ne.date,{minutesStep:o});$({activeSection:q,newSectionValue:K,shouldGoToNextSection:!1});break}}});st(()=>{L.syncSelectionToDOM()});const{hasValidationError:Y}=Jc({props:n,validator:p,timezone:T,value:S.value,onError:n.onError}),W=v.useMemo(()=>c!==void 0?c:Y,[Y,c]);v.useEffect(()=>{!W&&P==null&&O()},[S.referenceValue,P,W]),v.useEffect(()=>{S.tempValueStrAndroid!=null&&P!=null&&(O(),M())},[S.sections]),v.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const J=fe((V,...q)=>{V.preventDefault(),d?.(V,...q),I(),L.isFieldFocused()?x(w.startIndex):L.focusField(0)}),ce={onKeyDown:N,onClear:J,error:W,clearable:!!(u&&!D&&!a&&!i)},ae={disabled:i,readOnly:a};return j({},e.forwardedProps,ce,ae,A)},F0=["clearable","onClear","InputProps","sx","slots","slotProps"],L0=["ownerState"],N0=e=>{const t=an(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ke(e,F0),c=i?.clearButton??Nn,u=Ae({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ke(u,L0),h=i?.clearIcon??Yv,b=Ae({elementType:h,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:f.jsxs(v.Fragment,{children:[n&&f.jsx(eu,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,j({},d,{onClick:r,children:f.jsx(h,j({fontSize:"small"},b))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},j0=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],B0=(e,t)=>v.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return j0.forEach(o),Xc.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),V0=e=>{const t=Ue(),n=Xr();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Et(t,e.minDate,n.minDate),maxDate:Et(t,e.maxDate,n.maxDate)})},z0=e=>{const t=V0(e),{forwardedProps:n,internalProps:r}=B0(t,"date");return A0({forwardedProps:n,internalProps:r,valueManager:Kt,fieldValueManager:zh,validator:Zr,valueType:"date"})};function W0(e){return Se("MuiPickersTextField",e)}be("MuiPickersTextField",["root","focused","disabled","error","required"]);function _0(e){return Se("MuiPickersInputBase",e)}const er=be("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function H0(e){return Se("MuiPickersSectionList",e)}const Cr=be("MuiPickersSectionList",["root","section","sectionContent"]),U0=["slots","slotProps","elements","sectionListRef"],Eu=_("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Au=_("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Fu=_("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Lu=_("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Y0=e=>{const{classes:t}=e;return ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},H0,t)};function G0(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Au,i=Ae({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Lu,l=Ae({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Fu,u=Ae({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Ae({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(s,j({},i,{children:[f.jsx(c,j({},u)),f.jsx(a,j({},l)),f.jsx(c,j({},d))]}))}const q0=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ke(r,U0),c=Y0(r),u=v.useRef(null),d=Fe(n,u),h=g=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return u.current};v.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(g){return h("getSectionContainer").querySelector(`.${Cr.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return h("getSectionContent").querySelector(`.${Cr.section}[data-sectionindex="${g}"] .${Cr.sectionContent}`)},getSectionIndexFromDOMElement(g){const y=h("getSectionIndexFromDOMElement");if(g==null||!y.contains(g))return null;let S=null;return g.classList.contains(Cr.section)?S=g:g.classList.contains(Cr.sectionContent)&&(S=g.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const b=o?.root??Eu,p=Ae({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(b,j({},p,{children:p.contentEditable?i.map(({content:g,before:y,after:S})=>`${y.children}${g.children}${S.children}`).join(""):f.jsx(v.Fragment,{children:i.map((g,y)=>f.jsx(G0,{slots:o,slotProps:s,element:g,classes:c},y))})}))}),K0=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],Q0=e=>Math.round(e*1e5)/1e5,us=_("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>j({},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:`${Q0(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Yi=_(Eu,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.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:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),X0=_(Au,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Z0=_(Lu,{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"})),J0=_(Fu,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),eS=_("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},hh)),tS=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${ue(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ve(d,_0,o)},Gi=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:h,slotProps:b,contentEditable:p,tabIndex:g,onInput:y,onPaste:S,onKeyDown:P,name:C,readOnly:x,inputProps:I,inputRef:M,sectionListRef:$}=r,R=ke(r,K0),E=v.useRef(null),F=Fe(n,E),T=Fe(I?.ref,M),m=Wt(),O=Bt();if(!O)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=Y=>{if(O.disabled){Y.stopPropagation();return}O.onFocus?.(Y)};v.useEffect(()=>{O&&O.setAdornedStart(!!u)},[O,u]),v.useEffect(()=>{O&&(s?O.onEmpty():O.onFilled())},[O,s]);const k=j({},r,O,{isRtl:m}),w=tS(k),A=h?.root||us,L=Ae({elementType:A,externalSlotProps:b?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":O.error,ref:F},className:w.root,ownerState:k}),N=h?.input||Yi;return f.jsxs(A,j({},L,{children:[u,f.jsx(q0,{sectionListRef:$,elements:o,contentEditable:p,tabIndex:g,className:w.sectionsContainer,onFocus:D,onBlur:O.onBlur,onInput:y,onPaste:S,onKeyDown:P,slots:{root:N,section:X0,sectionContent:Z0,sectionSeparator:J0},slotProps:{root:{ownerState:k},sectionContent:{className:er.sectionContent},sectionSeparator:({position:Y})=>({className:Y==="before"?er.sectionBefore:er.sectionAfter})}}),c,d?d(j({},O)):null,f.jsx(eS,j({name:C,className:w.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:O.required,disabled:O.disabled},I,{ref:T}))]}))});function nS(e){return Se("MuiPickersOutlinedInput",e)}const zt=j({},er,be("MuiPickersOutlinedInput",["root","notchedOutline","input"])),rS=["children","className","label","notched","shrink"],oS=_("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.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}}),Nl=_("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),sS=_("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function iS(e){const{className:t,label:n}=e,r=ke(e,rS),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(oS,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(sS,{ownerState:s,children:o?f.jsx(Nl,{children:n}):f.jsx(Nl,{className:"notranslate",children:""})})}))}const aS=["label","autoFocus","ownerState","notched"],lS=_(us,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.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 .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${zt.focused} .${zt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${zt.disabled}`]:{[`& .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${zt.error} .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${zt.focused}:not(.${zt.error}) .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),cS=_(Yi,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),uS=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nS,t);return j({},t,r)},Nu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ke(r,aS),l=Bt(),c=j({},r,s,l,{color:l?.color||"primary"}),u=uS(c);return f.jsx(Gi,j({slots:{root:lS,input:cS},renderSuffix:d=>f.jsx(iS,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&l?.required?f.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Nu.muiName="Input";function dS(e){return Se("MuiPickersFilledInput",e)}const wn=j({},er,be("MuiPickersFilledInput",["root","underline","input"])),pS=["label","autoFocus","disableUnderline","ownerState"],fS=_(us,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qe.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)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${wn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${wn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.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"},[`&.${wn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wn.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(.${wn.disabled}, .${wn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),mS=_(Yi,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),hS=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},dS,t);return j({},t,o)},ju=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ke(r,pS),l=Bt(),c=j({},r,i,l,{color:l?.color||"primary"}),u=hS(c);return f.jsx(Gi,j({slots:{root:fS,input:mS},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});ju.muiName="Input";function gS(e){return Se("MuiPickersFilledInput",e)}const wr=j({},er,be("MuiPickersInput",["root","input"])),yS=["label","autoFocus","disableUnderline","ownerState"],bS=_(us,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({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(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wr.disabled}, .${wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),vS=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},gS,t);return j({},t,o)},Bu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ke(r,yS),l=Bt(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=vS(c);return f.jsx(Gi,j({slots:{root:bS}},a,{label:o,classes:u,ref:n}))});Bu.muiName="Input";const xS=["onFocus","onBlur","className","color","disabled","error","variant","required","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"],SS={standard:Bu,filled:ju,outlined:Nu},CS=_(zi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),wS=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ve({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},W0,r)},PS=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:h,inputProps:b,inputRef:p,sectionListRef:g,elements:y,areAllSectionsEmpty:S,onClick:P,onKeyDown:C,onKeyUp:x,onPaste:I,onInput:M,endAdornment:$,startAdornment:R,tabIndex:E,contentEditable:F,focused:T,value:m,onChange:O,fullWidth:D,id:k,name:w,helperText:A,FormHelperTextProps:L,label:N,InputLabelProps:Y}=r,W=ke(r,xS),J=v.useRef(null),ce=Fe(n,J),ae=_t(k),V=A&&ae?`${ae}-helper-text`:void 0,q=N&&ae?`${ae}-label`:void 0,ne=j({},r,{color:a,disabled:l,error:c,focused:T,required:d,variant:u}),K=wS(ne),z=SS[u];return f.jsxs(CS,j({className:me(K.root,i),ref:ce,focused:T,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:d,ownerState:ne},W,{children:[f.jsx(Vi,j({htmlFor:ae,id:q},Y,{children:N})),f.jsx(z,j({elements:y,areAllSectionsEmpty:S,onClick:P,onKeyDown:C,onKeyUp:x,onInput:M,onPaste:I,endAdornment:$,startAdornment:R,tabIndex:E,contentEditable:F,value:m,onChange:O,id:ae,fullWidth:D,inputProps:b,inputRef:p,sectionListRef:g,label:N,name:w,role:"group","aria-labelledby":q,"aria-describedby":V,"aria-live":V?"polite":void 0},h)),A&&f.jsx(Pu,j({id:V},L,{children:A}))]}))}),kS=["enableAccessibleFieldDOMStructure"],MS=["InputProps","readOnly"],DS=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],IS=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ke(e,kS);if(t){const{InputProps:d,readOnly:h}=n,b=ke(n,MS);return j({},b,{InputProps:j({},d??{},{readOnly:h})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ke(n,DS);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},TS=["slots","slotProps","InputProps","inputProps"],Vu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ke(r,TS),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?PS:Ui),d=Ae({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=j({},a,d.inputProps),d.InputProps=j({},i,d.InputProps);const h=z0(d),b=IS(h),p=N0(j({},b,{slots:o,slotProps:s}));return f.jsx(u,j({},p))}),zu=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=Ln();return v.useCallback(c=>Zr({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},RS=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},OS=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,h=Ue(),b=v.useRef(RS(!!c,s,h)).current,p=v.useMemo(()=>Kt.getInitialReferenceValue({value:t,utils:h,timezone:d,props:e,referenceDate:n,granularity:Yt.day}),[n,d]),[g,y]=v.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:p,currentMonth:h.startOfMonth(p),slideDirection:"left"});v.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:h.getTimezone(p)})},[p,h]);const S=v.useCallback(M=>{y(j({type:"changeMonth"},M)),l&&l(M.newMonth)},[l]),P=v.useCallback(M=>{const $=M;h.isSameMonth($,g.currentMonth)||S({newMonth:h.startOfMonth($),direction:h.isAfterDay($,g.currentMonth)?"left":"right"})},[g.currentMonth,S,h]),C=zu({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:d}),x=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),I=fe((M,$)=>{C(M)||y({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:$})});return{referenceDate:p,calendarState:g,changeMonth:P,changeFocusedDay:I,isDateDisabled:C,onMonthSwitchingAnimationEnd:x,handleChangeMonth:S}},$S=e=>Se("MuiPickersFadeTransitionGroup",e);be("MuiPickersFadeTransitionGroup",["root"]);const ES=e=>{const{classes:t}=e;return ve({root:["root"]},$S,t)},AS=_(Jr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Wu(e){const t=He({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ES(t),a=Fn();return o?n:f.jsx(AS,{className:me(i.root,r),children:f.jsx(En,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function FS(e){return Se("MuiPickersDay",e)}const Pn=be("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),LS=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],NS=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return ve({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},FS,l)},_u=({theme:e})=>j({},e.typography.caption,{width:Hr,height:Hr,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})`:Qe.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Pn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Pn.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}},[`&.${Pn.disabled}:not(.${Pn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pn.disabled}&.${Pn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${os}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Pn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Hu=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},jS=_(or,{name:"MuiPickersDay",slot:"Root",overridesResolver:Hu})(_u),BS=_("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Hu})(({theme:e})=>j({},_u({theme:e}),{opacity:0,pointerEvents:"none"})),Pr=()=>{},VS=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:h,onFocus:b=Pr,onBlur:p=Pr,onKeyDown:g=Pr,onMouseDown:y=Pr,onMouseEnter:S=Pr,outsideCurrentMonth:P,selected:C=!1,showDaysOutsideCurrentMonth:x=!1,children:I,today:M=!1}=r,$=ke(r,LS),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:x,today:M}),E=NS(R),F=Ue(),T=v.useRef(null),m=Fe(T,n);st(()=>{o&&!a&&!u&&!P&&T.current.focus()},[o,a,u,P]);const O=k=>{y(k),P&&k.preventDefault()},D=k=>{a||h(i),P&&k.currentTarget.focus(),d&&d(k)};return P&&!x?f.jsx(BS,{className:me(E.root,E.hiddenDaySpacingFiller,s),ownerState:R,role:$.role}):f.jsx(jS,j({className:me(E.root,s),ref:m,centerRipple:!0,disabled:a,tabIndex:C?0:-1,onKeyDown:k=>g(k,i),onFocus:k=>b(k,i),onBlur:k=>p(k,i),onMouseEnter:k=>S(k,i),onClick:D,onMouseDown:O},$,{ownerState:R,children:I||F.format(i,"dayOfMonth")}))}),zS=v.memo(VS),WS=e=>Se("MuiPickersSlideTransition",e),It=be("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),_S=["children","className","reduceAnimations","slideDirection","transKey","classes"],HS=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ve(r,WS,t)},US=_(Jr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${It["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${It["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${It.slideEnterActive}`]:t.slideEnterActive},{[`.${It.slideExit}`]:t.slideExit},{[`.${It["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${It["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},[`& .${It["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${It["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${It.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${It.slideExit}`]:{transform:"translate(0%)"},[`& .${It["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${It["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function YS(e){const t=He({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ke(t,_S),a=HS(t),l=Fn();if(o)return f.jsx("div",{className:me(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return f.jsx(US,{className:me(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(Ci,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const GS=e=>Se("MuiDayCalendar",e);be("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const qS=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],KS=["ownerState"],QS=e=>{const{classes:t}=e;return ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},GS,t)},Uu=(Hr+os*2)*6,XS=_("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZS=_("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),JS=_(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),eC=_(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),tC=_(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Hr,height:Hr,padding:0,margin:`0 ${os}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),nC=_("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Uu}),rC=_(YS,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Uu}),oC=_("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),sC=_("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${os}px 0`,display:"flex",justifyContent:"center"});function iC(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ke(e,qS);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:h,slots:b,slotProps:p,timezone:g}=t,y=Ue(),S=ts(g),P=r!==null&&y.isSameDay(n,r),C=o.some(m=>y.isSameDay(m,n)),x=y.isSameDay(n,S),I=b?.day??zS,M=Ae({elementType:I,externalSlotProps:p?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:d,"data-timestamp":y.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:C})}),$=ke(M,KS),R=v.useMemo(()=>c||s(n),[c,s,n]),E=v.useMemo(()=>y.getMonth(n)!==i,[y,n,i]),F=v.useMemo(()=>{const m=y.startOfMonth(y.setMonth(n,i));return h?y.isSameDay(n,y.startOfWeek(m)):y.isSameDay(n,m)},[i,n,h,y]),T=v.useMemo(()=>{const m=y.endOfMonth(y.setMonth(n,i));return h?y.isSameDay(n,y.endOfWeek(m)):y.isSameDay(n,m)},[i,n,h,y]);return f.jsx(I,j({},$,{day:n,disabled:R,autoFocus:a&&P,today:x,outsideCurrentMonth:E,isFirstVisibleCell:F,isLastVisibleCell:T,selected:C,tabIndex:P?0:-1,"aria-selected":C,"aria-current":x?"date":void 0}))}function aC(e){const t=He({props:e,name:"MuiDayCalendar"}),n=Ue(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:h,renderLoading:b=()=>f.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:g,disablePast:y,disableFuture:S,minDate:P,maxDate:C,shouldDisableDate:x,shouldDisableMonth:I,shouldDisableYear:M,dayOfWeekFormatter:$=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:E,gridLabelId:F,displayWeekNumber:T,fixedWeekNumber:m,autoFocus:O,timezone:D}=t,k=ts(D),w=QS(t),A=Wt(),L=zu({shouldDisableDate:x,shouldDisableMonth:I,shouldDisableYear:M,minDate:P,maxDate:C,disablePast:y,disableFuture:S,timezone:D}),N=an(),[Y,W]=Mt({name:"DayCalendar",state:"hasFocus",controlled:R,default:O??!1}),[J,ce]=v.useState(()=>a||k),ae=fe(te=>{d||c(te)}),V=te=>{L(te)||(r(te),ce(te),E?.(!0),W(!0))},q=fe((te,pe)=>{switch(te.key){case"ArrowUp":V(n.addDays(pe,-7)),te.preventDefault();break;case"ArrowDown":V(n.addDays(pe,7)),te.preventDefault();break;case"ArrowLeft":{const H=n.addDays(pe,A?1:-1),ye=n.addMonths(pe,A?1:-1),de=$r({utils:n,date:H,minDate:A?H:n.startOfMonth(ye),maxDate:A?n.endOfMonth(ye):H,isDateDisabled:L,timezone:D});V(de||H),te.preventDefault();break}case"ArrowRight":{const H=n.addDays(pe,A?-1:1),ye=n.addMonths(pe,A?-1:1),de=$r({utils:n,date:H,minDate:A?n.startOfMonth(ye):H,maxDate:A?H:n.endOfMonth(ye),isDateDisabled:L,timezone:D});V(de||H),te.preventDefault();break}case"Home":V(n.startOfWeek(pe)),te.preventDefault();break;case"End":V(n.endOfWeek(pe)),te.preventDefault();break;case"PageUp":V(n.addMonths(pe,1)),te.preventDefault();break;case"PageDown":V(n.addMonths(pe,-1)),te.preventDefault();break}}),ne=fe((te,pe)=>V(pe)),K=fe((te,pe)=>{Y&&n.isSameDay(J,pe)&&E?.(!1)}),z=n.getMonth(s),G=n.getYear(s),oe=v.useMemo(()=>i.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,i]),re=`${G}-${z}`,B=v.useMemo(()=>v.createRef(),[re]),ee=v.useMemo(()=>{const te=n.startOfMonth(s),pe=n.endOfMonth(s);return L(J)||n.isAfterDay(J,pe)||n.isBeforeDay(J,te)?$r({utils:n,date:J,minDate:te,maxDate:pe,disablePast:y,disableFuture:S,isDateDisabled:L,timezone:D}):J},[s,S,y,J,L,n,D]),le=v.useMemo(()=>{const te=n.getWeekArray(s);let pe=n.addMonths(s,1);for(;m&&te.length<m;){const H=n.getWeekArray(pe),ye=n.isSameDay(te[te.length-1][0],H[0][0]);H.slice(ye?1:0).forEach(de=>{te.length<m&&te.push(de)}),pe=n.addMonths(pe,1)}return te},[s,m,n]);return f.jsxs(XS,{role:"grid","aria-labelledby":F,className:w.root,children:[f.jsxs(ZS,{role:"row",className:w.header,children:[T&&f.jsx(eC,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:w.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),xh(n,k).map((te,pe)=>f.jsx(JS,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:w.weekDayLabel,children:$(te)},pe.toString()))]}),l?f.jsx(nC,{className:w.loadingContainer,children:b()}):f.jsx(rC,j({transKey:re,onExited:u,reduceAnimations:h,slideDirection:p,className:me(o,w.slideTransition)},g,{nodeRef:B,children:f.jsx(oC,{ref:B,role:"rowgroup",className:w.monthContainer,children:le.map((te,pe)=>f.jsxs(sC,{role:"row",className:w.weekContainer,"aria-rowindex":pe+1,children:[T&&f.jsx(tC,{className:w.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:N.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((H,ye)=>f.jsx(iC,{parentProps:t,day:H,selectedDays:oe,focusableDay:ee,onKeyDown:q,onFocus:ne,onBlur:K,onDaySelect:ae,isDateDisabled:L,currentMonthNumber:z,isViewFocused:Y,"aria-colindex":ye+1},H.toString()))]},`week-${te[0]}`))})}))]})}function lC(e){return Se("MuiPickersMonth",e)}const uo=be("MuiPickersMonth",["root","monthButton","disabled","selected"]),cC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],uC=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},lC,r)},dC=_("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),pC=_("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${uo.disabled}`]:t.disabled},{[`&.${uo.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),fC=v.memo(function(t){const n=He({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:b,"aria-current":p,"aria-label":g,slots:y,slotProps:S}=n,P=ke(n,cC),C=v.useRef(null),x=uC(n);st(()=>{r&&C.current?.focus()},[r]);const I=y?.monthButton??pC,M=Ae({elementType:I,externalSlotProps:S?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":g,onClick:$=>u($,l),onKeyDown:$=>d($,l),onFocus:$=>h($,l),onBlur:$=>b($,l)},ownerState:n,className:x.monthButton});return f.jsx(dC,j({className:me(x.root,o),ownerState:n},P,{children:f.jsx(I,j({},M))}))});function mC(e){return Se("MuiMonthCalendar",e)}be("MuiMonthCalendar",["root"]);const hC=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],gC=e=>{const{classes:t}=e;return ve({root:["root"]},mC,t)};function yC(e,t){const n=Ue(),r=Xr(),o=He({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:Et(n,o.minDate,r.minDate),maxDate:Et(n,o.maxDate,r.maxDate)})}const bC=_("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:ss,boxSizing:"border-box"}),vC=v.forwardRef(function(t,n){const r=yC(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:h,onChange:b,shouldDisableMonth:p,readOnly:g,autoFocus:y=!1,onMonthFocus:S,hasFocus:P,onFocusedViewChange:C,monthsPerRow:x=3,timezone:I,gridLabelId:M,slots:$,slotProps:R}=r,E=ke(r,hC),{value:F,handleValueChange:T,timezone:m}=Ai({name:"MonthCalendar",timezone:I,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Kt}),O=ts(m),D=Wt(),k=Ue(),w=v.useMemo(()=>Kt.getInitialReferenceValue({value:F,utils:k,props:r,timezone:m,referenceDate:a,granularity:Yt.month}),[]),A=r,L=gC(A),N=v.useMemo(()=>k.getMonth(O),[k,O]),Y=v.useMemo(()=>F!=null?k.getMonth(F):null,[F,k]),[W,J]=v.useState(()=>Y||k.getMonth(w)),[ce,ae]=Mt({name:"MonthCalendar",state:"hasFocus",controlled:P,default:y??!1}),V=fe(re=>{ae(re),C&&C(re)}),q=v.useCallback(re=>{const B=k.startOfMonth(u&&k.isAfter(O,h)?O:h),ee=k.startOfMonth(c&&k.isBefore(O,d)?O:d),le=k.startOfMonth(re);return k.isBefore(le,B)||k.isAfter(le,ee)?!0:p?p(le):!1},[c,u,d,h,O,p,k]),ne=fe((re,B)=>{if(g)return;const ee=k.setMonth(F??w,B);T(ee)}),K=fe(re=>{q(k.setMonth(F??w,re))||(J(re),V(!0),S&&S(re))});v.useEffect(()=>{J(re=>Y!==null&&re!==Y?Y:re)},[Y]);const z=fe((re,B)=>{switch(re.key){case"ArrowUp":K((12+B-3)%12),re.preventDefault();break;case"ArrowDown":K((12+B+3)%12),re.preventDefault();break;case"ArrowLeft":K((12+B+(D?1:-1))%12),re.preventDefault();break;case"ArrowRight":K((12+B+(D?-1:1))%12),re.preventDefault();break}}),G=fe((re,B)=>{K(B)}),oe=fe((re,B)=>{W===B&&V(!1)});return f.jsx(bC,j({ref:n,className:me(L.root,o),ownerState:A,role:"radiogroup","aria-labelledby":M},E,{children:yi(k,F??w).map(re=>{const B=k.getMonth(re),ee=k.format(re,"monthShort"),le=k.format(re,"month"),te=B===Y,pe=l||q(re);return f.jsx(fC,{selected:te,value:B,onClick:ne,onKeyDown:z,autoFocus:ce&&B===W,disabled:pe,tabIndex:B===W&&!pe?0:-1,onFocus:G,onBlur:oe,"aria-current":N===B?"date":void 0,"aria-label":le,monthsPerRow:x,slots:$,slotProps:R,children:ee},ee)})}))});function xC(e){return Se("MuiPickersYear",e)}const po=be("MuiPickersYear",["root","yearButton","selected","disabled"]),SC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],CC=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},xC,r)},wC=_("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),PC=_("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${po.disabled}`]:t.disabled},{[`&.${po.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${po.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${po.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),kC=v.memo(function(t){const n=He({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:b,"aria-current":p,slots:g,slotProps:y}=n,S=ke(n,SC),P=v.useRef(null),C=CC(n);st(()=>{r&&P.current?.focus()},[r]);const x=g?.yearButton??PC,I=Ae({elementType:x,externalSlotProps:y?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:P,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>h(M,l),onBlur:M=>b(M,l)},ownerState:n,className:C.yearButton});return f.jsx(wC,j({className:me(C.root,o),ownerState:n},S,{children:f.jsx(x,j({},I))}))});function MC(e){return Se("MuiYearCalendar",e)}be("MuiYearCalendar",["root"]);const DC=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],IC=e=>{const{classes:t}=e;return ve({root:["root"]},MC,t)};function TC(e,t){const n=Ue(),r=Xr(),o=He({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Et(n,o.minDate,r.minDate),maxDate:Et(n,o.maxDate,r.maxDate)})}const RC=_("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:ss,maxHeight:Dv,boxSizing:"border-box",position:"relative"}),OC=v.forwardRef(function(t,n){const r=TC(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:b,onChange:p,readOnly:g,shouldDisableYear:y,onYearFocus:S,hasFocus:P,onFocusedViewChange:C,yearsOrder:x="asc",yearsPerRow:I,timezone:M,gridLabelId:$,slots:R,slotProps:E}=r,F=ke(r,DC),{value:T,handleValueChange:m,timezone:O}=Ai({name:"YearCalendar",timezone:M,value:i,defaultValue:a,referenceDate:l,onChange:p,valueManager:Kt}),D=ts(O),k=Wt(),w=Ue(),A=v.useMemo(()=>Kt.getInitialReferenceValue({value:T,utils:w,props:r,timezone:O,referenceDate:l,granularity:Yt.year}),[]),L=r,N=IC(L),Y=v.useMemo(()=>w.getYear(D),[w,D]),W=v.useMemo(()=>T!=null?w.getYear(T):null,[T,w]),[J,ce]=v.useState(()=>W||w.getYear(A)),[ae,V]=Mt({name:"YearCalendar",state:"hasFocus",controlled:P,default:o??!1}),q=fe(H=>{V(H),C&&C(H)}),ne=v.useCallback(H=>{if(d&&w.isBeforeYear(H,D)||u&&w.isAfterYear(H,D)||b&&w.isBeforeYear(H,b)||h&&w.isAfterYear(H,h))return!0;if(!y)return!1;const ye=w.startOfYear(H);return y(ye)},[u,d,h,b,D,y,w]),K=fe((H,ye)=>{if(g)return;const de=w.setYear(T??A,ye);m(de)}),z=fe(H=>{ne(w.setYear(T??A,H))||(ce(H),q(!0),S?.(H))});v.useEffect(()=>{ce(H=>W!==null&&H!==W?W:H)},[W]);const G=x!=="desc"?I*1:I*-1,oe=k&&x==="asc"||!k&&x==="desc"?-1:1,re=fe((H,ye)=>{switch(H.key){case"ArrowUp":z(ye-G),H.preventDefault();break;case"ArrowDown":z(ye+G),H.preventDefault();break;case"ArrowLeft":z(ye-oe),H.preventDefault();break;case"ArrowRight":z(ye+oe),H.preventDefault();break}}),B=fe((H,ye)=>{z(ye)}),ee=fe((H,ye)=>{J===ye&&q(!1)}),le=v.useRef(null),te=Fe(n,le);v.useEffect(()=>{if(o||le.current===null)return;const H=le.current.querySelector('[tabindex="0"]');if(!H)return;const ye=H.offsetHeight,de=H.offsetTop,Me=le.current.clientHeight,he=le.current.scrollTop,et=de+ye;ye>Me||de<he||(le.current.scrollTop=et-Me/2-ye/2)},[o]);const pe=w.getYearRange([b,h]);return x==="desc"&&pe.reverse(),f.jsx(RC,j({ref:te,className:me(N.root,s),ownerState:L,role:"radiogroup","aria-labelledby":$},F,{children:pe.map(H=>{const ye=w.getYear(H),de=ye===W,Me=c||ne(H);return f.jsx(kC,{selected:de,value:ye,onClick:K,onKeyDown:re,autoFocus:ae&&ye===J,disabled:Me,tabIndex:ye===J&&!Me?0:-1,onFocus:B,onBlur:ee,"aria-current":Y===ye?"date":void 0,yearsPerRow:I,slots:R,slotProps:E,children:w.format(H,"year")},w.format(H,"year"))})}))}),$C=e=>Se("MuiPickersCalendarHeader",e),EC=be("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function AC(e){return Se("MuiPickersArrowSwitcher",e)}be("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const FC=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],LC=["ownerState"],NC=["ownerState"],jC=_("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),BC=_("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),jl=_(Nn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),VC=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},AC,t)},zC=v.forwardRef(function(t,n){const r=Wt(),o=He({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:h,isPreviousDisabled:b,isPreviousHidden:p,onGoToPrevious:g,previousLabel:y,labelId:S}=o,P=ke(o,FC),C=o,x=VC(C),I={isDisabled:c,isHidden:u,goTo:d,label:h},M={isDisabled:b,isHidden:p,goTo:g,label:y},$=a?.previousIconButton??jl,R=Ae({elementType:$,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:j({},C,{hidden:M.isHidden}),className:me(x.button,x.previousIconButton)}),E=a?.nextIconButton??jl,F=Ae({elementType:E,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:j({},C,{hidden:I.isHidden}),className:me(x.button,x.nextIconButton)}),T=a?.leftArrowIcon??_v,m=Ae({elementType:T,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.leftArrowIcon}),O=ke(m,LC),D=a?.rightArrowIcon??Hv,k=Ae({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.rightArrowIcon}),w=ke(k,NC);return f.jsxs(jC,j({ref:n,className:me(x.root,i),ownerState:C},P,{children:[f.jsx($,j({},R,{children:r?f.jsx(D,j({},w)):f.jsx(T,j({},O))})),s?f.jsx(gn,{variant:"subtitle1",component:"span",id:S,children:s}):f.jsx(BC,{className:x.spacer,ownerState:C}),f.jsx(E,j({},F,{children:r?f.jsx(T,j({},O)):f.jsx(D,j({},w))}))]}))});function WC(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Ue();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function _C(e,{disablePast:t,minDate:n,timezone:r}){const o=Ue();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const HC=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],UC=["ownerState"],YC=e=>{const{classes:t}=e;return ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$C,t)},GC=_("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),qC=_("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),KC=_("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),QC=_(Nn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${EC.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),XC=_(Wv,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ZC=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=He({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:b,onMonthChange:p,onViewChange:g,view:y,reduceAnimations:S,views:P,labelId:C,className:x,timezone:I,format:M=`${o.formats.month} ${o.formats.year}`}=s,$=ke(s,HC),R=s,E=YC(s),F=i?.switchViewButton??QC,T=Ae({elementType:F,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:R,className:E.switchViewButton}),m=i?.switchViewIcon??XC,O=Ae({elementType:m,externalSlotProps:a?.switchViewIcon,ownerState:R,className:E.switchViewIcon}),D=ke(O,UC),k=()=>p(o.addMonths(l,1),"left"),w=()=>p(o.addMonths(l,-1),"right"),A=WC(l,{disableFuture:u,maxDate:h,timezone:I}),L=_C(l,{disablePast:d,minDate:b,timezone:I}),N=()=>{if(!(P.length===1||!g||c))if(P.length===2)g(P.find(W=>W!==y)||P[0]);else{const W=P.indexOf(y)!==0?0:1;g(P[W])}};if(P.length===1&&P[0]==="year")return null;const Y=o.formatByString(l,M);return f.jsxs(GC,j({},$,{ownerState:R,className:me(E.root,x),ref:n,children:[f.jsxs(qC,{role:"presentation",onClick:N,ownerState:R,"aria-live":"polite",className:E.labelContainer,children:[f.jsx(Wu,{reduceAnimations:S,transKey:Y,children:f.jsx(KC,{id:C,ownerState:R,className:E.label,children:Y})}),P.length>1&&!c&&f.jsx(F,j({},T,{children:f.jsx(m,j({},D))}))]}),f.jsx(En,{in:y==="day",appear:!S,enter:!S,children:f.jsx(zC,{slots:i,slotProps:a,onGoToPrevious:w,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:k,isNextDisabled:A,nextLabel:r.nextMonth})})]}))}),JC=_("div")({overflow:"hidden",width:ss,maxHeight:Fi,display:"flex",flexDirection:"column",margin:"0 auto"}),ew=e=>Se("MuiDateCalendar",e);be("MuiDateCalendar",["root","viewTransitionContainer"]);const tw=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],nw=e=>{const{classes:t}=e;return ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ew,t)};function rw(e,t){const n=Ue(),r=Xr(),o=mu(),s=He({props:e,name:t});return j({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:Et(n,s.minDate,r.minDate),maxDate:Et(n,s.maxDate,r.maxDate)})}const ow=_(JC,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Fi}),sw=_(Wu,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),iw=v.forwardRef(function(t,n){const r=Ue(),o=_t(),s=rw(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:h,onChange:b,onYearChange:p,onMonthChange:g,reduceAnimations:y,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:C,view:x,views:I,openTo:M,className:$,disabled:R,readOnly:E,minDate:F,maxDate:T,disableHighlightToday:m,focusedView:O,onFocusedViewChange:D,showDaysOutsideCurrentMonth:k,fixedWeekNumber:w,dayOfWeekFormatter:A,slots:L,slotProps:N,loading:Y,renderLoading:W,displayWeekNumber:J,yearsOrder:ce,yearsPerRow:ae,monthsPerRow:V,timezone:q}=s,ne=ke(s,tw),{value:K,handleValueChange:z,timezone:G}=Ai({name:"DateCalendar",timezone:q,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Kt}),{view:oe,setView:re,focusedView:B,setFocusedView:ee,goToNextView:le,setValueAndGoToNextView:te}=hu({view:x,views:I,openTo:M,onChange:z,onViewChange:a,autoFocus:i,focusedView:O,onFocusedViewChange:D}),{referenceDate:pe,calendarState:H,changeFocusedDay:ye,changeMonth:de,handleChangeMonth:Me,isDateDisabled:he,onMonthSwitchingAnimationEnd:et}=OS({value:K,referenceDate:u,reduceAnimations:y,onMonthChange:g,minDate:F,maxDate:T,shouldDisableDate:S,disablePast:h,disableFuture:d,timezone:G}),Le=R&&K||F,Xe=R&&K||T,nt=`${o}-grid-label`,mt=B!==null,rt=L?.calendarHeader??ZC,xt=Ae({elementType:rt,externalSlotProps:N?.calendarHeader,additionalProps:{views:I,view:oe,currentMonth:H.currentMonth,onViewChange:re,onMonthChange:(Ne,pt)=>Me({newMonth:Ne,direction:pt}),minDate:Le,maxDate:Xe,disabled:R,disablePast:h,disableFuture:d,reduceAnimations:y,timezone:G,labelId:nt},ownerState:s}),_e=fe(Ne=>{const pt=r.startOfMonth(Ne),ht=r.endOfMonth(Ne),it=he(Ne)?$r({utils:r,date:Ne,minDate:r.isBefore(F,pt)?pt:F,maxDate:r.isAfter(T,ht)?ht:T,disablePast:h,disableFuture:d,isDateDisabled:he,timezone:G}):Ne;it?(te(it,"finish"),g?.(pt)):(le(),de(pt)),ye(it,!0)}),Ce=fe(Ne=>{const pt=r.startOfYear(Ne),ht=r.endOfYear(Ne),it=he(Ne)?$r({utils:r,date:Ne,minDate:r.isBefore(F,pt)?pt:F,maxDate:r.isAfter(T,ht)?ht:T,disablePast:h,disableFuture:d,isDateDisabled:he,timezone:G}):Ne;it?(te(it,"finish"),p?.(it)):(le(),de(pt)),ye(it,!0)}),tt=fe(Ne=>z(Ne&&$o(r,Ne,K??pe),"finish",oe));v.useEffect(()=>{K!=null&&r.isValid(K)&&de(K)},[K]);const St=s,ut=nw(St),xe={disablePast:h,disableFuture:d,maxDate:T,minDate:F},Ie={disableHighlightToday:m,readOnly:E,disabled:R,timezone:G,gridLabelId:nt,slots:L,slotProps:N},$e=v.useRef(oe);v.useEffect(()=>{$e.current!==oe&&(B===$e.current&&ee(oe,!0),$e.current=oe)},[B,ee,oe]);const Ct=v.useMemo(()=>[K],[K]);return f.jsxs(ow,j({ref:n,className:me(ut.root,$),ownerState:St},ne,{children:[f.jsx(rt,j({},xt,{slots:L,slotProps:N})),f.jsx(sw,{reduceAnimations:y,className:ut.viewTransitionContainer,transKey:oe,ownerState:St,children:f.jsxs("div",{children:[oe==="year"&&f.jsx(OC,j({},xe,Ie,{value:K,onChange:Ce,shouldDisableYear:C,hasFocus:mt,onFocusedViewChange:Ne=>ee("year",Ne),yearsOrder:ce,yearsPerRow:ae,referenceDate:pe})),oe==="month"&&f.jsx(vC,j({},xe,Ie,{hasFocus:mt,className:$,value:K,onChange:_e,shouldDisableMonth:P,onFocusedViewChange:Ne=>ee("month",Ne),monthsPerRow:V,referenceDate:pe})),oe==="day"&&f.jsx(aC,j({},H,xe,Ie,{onMonthSwitchingAnimationEnd:et,onFocusedDayChange:ye,reduceAnimations:y,selectedDays:Ct,onSelectedDaysChange:tt,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:C,hasFocus:mt,onFocusedViewChange:Ne=>ee("day",Ne),showDaysOutsideCurrentMonth:k,fixedWeekNumber:w,dayOfWeekFormatter:A,displayWeekNumber:J,loading:Y,renderLoading:W}))]})})]}))}),tr=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:b,maxDate:p,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:S,reduceAnimations:P,onMonthChange:C,monthsPerRow:x,onYearChange:I,yearsOrder:M,yearsPerRow:$,slots:R,slotProps:E,loading:F,renderLoading:T,disableHighlightToday:m,readOnly:O,disabled:D,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:w,sx:A,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:Y,timezone:W})=>f.jsx(iw,{view:e,onViewChange:t,views:n.filter(Ga),focusedView:r&&Ga(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:b,maxDate:p,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:S,reduceAnimations:P,onMonthChange:C,monthsPerRow:x,onYearChange:I,yearsOrder:M,yearsPerRow:$,slots:R,slotProps:E,loading:F,renderLoading:T,disableHighlightToday:m,readOnly:O,disabled:D,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:w,sx:A,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:Y,timezone:W}),Yu=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=Qc(t,"MuiDesktopDatePicker"),i=j({day:tr,month:tr,year:tr},s.viewRenderers),a=j({},s,{viewRenderers:i,format:bi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:Uv,field:Vu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Jo(s.slotProps?.field,c),Zc(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=zv({props:a,valueManager:Kt,valueType:"date",getOpenDialogAriaText:qc({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Zr});return l()});Yu.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:Nc,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};function aw(e){return Se("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);const lw=be("MuiDialogTitle",["root"]),cw=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},aw,t)},uw=_("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Re(({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:{[`.${lw.root} + &`]:{paddingTop:0}}}]}))),dw=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=cw(a);return f.jsx(uw,{className:me(l.root,o),ownerState:a,ref:n,...i})});function pw(e){return Se("MuiDialog",e)}const Nr=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fw=v.createContext({}),mw=_(Mu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),hw=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return ve(i,pw,t)},gw=_(Du,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),yw=_("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ue(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"}}}]}),bw=_(jn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ue(n.scroll)}`],t[`paperWidth${ue(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Re(({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)`,[`&.${Nr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{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}`,[`&.${Nr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{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,[`&.${Nr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vw=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialog"}),o=Fn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:h,disableEscapeKeyDown:b=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:S,onClose:P,open:C,PaperComponent:x=jn,PaperProps:I={},scroll:M="paper",slots:$={},slotProps:R={},TransitionComponent:E=En,transitionDuration:F=s,TransitionProps:T,...m}=r,O={...r,disableEscapeKeyDown:b,fullScreen:p,fullWidth:g,maxWidth:y,scroll:M},D=hw(O),k=v.useRef(),w=B=>{k.current=B.target===B.currentTarget},A=B=>{S&&S(B),k.current&&(k.current=null,P&&P(B,"backdropClick"))},L=_t(a),N=v.useMemo(()=>({titleId:L}),[L]),Y={transition:E,...$},W={transition:T,paper:I,backdrop:u,...R},J={slots:Y,slotProps:W},[ce,ae]=We("root",{elementType:gw,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:O,className:me(D.root,h),ref:n}),[V,q]=We("backdrop",{elementType:mw,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:O}),[ne,K]=We("paper",{elementType:bw,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:O,className:me(D.paper,I.className)}),[z,G]=We("container",{elementType:yw,externalForwardedProps:J,ownerState:O,className:D.container}),[oe,re]=We("transition",{elementType:En,externalForwardedProps:J,ownerState:O,additionalProps:{appear:!0,in:C,timeout:F,role:"presentation"}});return f.jsx(ce,{closeAfterTransition:!0,slots:{backdrop:V},slotProps:{backdrop:{transitionDuration:F,as:c,...q}},disableEscapeKeyDown:b,onClose:P,open:C,onClick:A,...ae,...m,children:f.jsx(oe,{...re,children:f.jsx(z,{onMouseDown:w,...G,children:f.jsx(ne,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,...K,children:f.jsx(fw.Provider,{value:N,children:d})})})})})}),xw=_(vw)({[`& .${Nr.container}`]:{outline:0},[`& .${Nr.paper}`]:{outline:0,minWidth:ss}}),Sw=_(dw)({"&:first-of-type":{padding:0}});function Cw(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??xw,a=o?.mobileTransition??En;return f.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:f.jsx(Sw,{children:t})}))}const ww=["props","getOpenDialogAriaText"],Pw=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ke(e,ww);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,name:p,label:g,inputRef:y,readOnly:S,disabled:P,localeText:C}=t,x=v.useRef(null),I=_t(),M=s?.toolbar?.hidden??!1,{open:$,actions:R,layoutProps:E,renderCurrentView:F,fieldProps:T,contextValue:m}=gu(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),O=o.field,D=Ae({elementType:O,externalSlotProps:s?.field,additionalProps:j({},T,M&&{id:I},!(P||S)&&{onClick:R.onOpen,onKeyDown:Db(R.onOpen)},{readOnly:S??!0,disabled:P,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,label:g,name:p},y?{inputRef:y}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(T.value)});const k=j({textField:o.textField},D.slots),w=o.layout??Cu;let A=I;M&&(g?A=`${I}-label`:A=void 0);const L=j({},s,{toolbar:j({},s?.toolbar,{titleId:I}),mobilePaper:j({"aria-labelledby":A},s?.mobilePaper)}),N=Fe(x,D.unstableFieldRef);return{renderPicker:()=>f.jsxs(wu,{contextValue:m,localeText:C,children:[f.jsx(O,j({},D,{slots:k,slotProps:L,unstableFieldRef:N})),f.jsx(Cw,j({},R,{open:$,slots:o,slotProps:L,children:f.jsx(w,j({},E,L?.layout,{slots:o,slotProps:L,children:F()}))}))]})}},Gu=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=Qc(t,"MuiMobileDatePicker"),i=j({day:tr,month:tr,year:tr},s.viewRenderers),a=j({},s,{viewRenderers:i,format:bi(o,s,!1),slots:j({field:Vu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Jo(s.slotProps?.field,c),Zc(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=Pw({props:a,valueManager:Kt,valueType:"date",getOpenDialogAriaText:qc({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Zr});return l()});Gu.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:Nc,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const kw=["desktopModeMediaQuery"],Ur=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=Ib}=r,s=ke(r,kw);return Lc(o,{defaultMatches:!0})?f.jsx(Yu,j({ref:n},s)):f.jsx(Gu,j({ref:n},s))});function Mw(e,t){if(!t)return;const n=t.trim();if(!n)return;const r=e??"string";if(r==="date"||r==="timestamp"||r==="timestamptz")return n.replace(/^@/,"");if(r.startsWith("filter<")){const o=n.replace(/^f/,""),s=o.match(/^'([^'\\]*)'$/)??o.match(/^"([^"\\]*)"$/);return s?s[1]:o}return r==="string"?Dw(n):n}function Dw(e){const t=e[0];return e.length>=2&&(t==="'"||t==='"')&&e[e.length-1]===t?e.slice(1,-1).replace(/\\(["'\\ntr])/g,(n,r)=>r==="n"?`
|
|
131
|
-
`:r==="t"?" ":r==="r"?"\r":r):e}Ve.extend(
|
|
132
|
-
`):void 0}function qu({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s}){const i=e.label??e.name??"",a=e.type??"string",l=Tw(e),c=Mw(a,e.default),u=c!==void 0?`Default: ${c===""?"(empty)":c}`:void 0,d=l||u?f.jsxs(f.Fragment,{children:[l,l&&u?f.jsx("br",{}):null,u]}):void 0,h=a==="string"||Or(a)==="string",b=!Dn(a)||typeof t!="string"||gm(t),p=w=>f.jsx(se.TextField,{label:i,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${w}. Clear it to pick one.`,d?f.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:f.jsx(Os,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),g=Dn(a),y=e.control==="multiselect"&&g,S=Dn(a),P=e.control==="select"||e.control==="multiselect",C=P?S?typeof t=="string"?hm(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(P&&h&&b&&!(!y&&C.length>1)){const w=A=>{const L=S?di(A):void 0;if(A.length===0||L===""){n(null);return}n(S?L:A[0])};return f.jsx(se.Autocomplete,{multiple:y,disableCloseOnSelect:y,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:s?"Options unavailable":"No matching values",value:y?C:C[0]??null,onChange:(A,L)=>w(L===null?[]:Array.isArray(L)?L:[L]),renderInput:A=>f.jsx(se.TextField,{...A,label:i,size:"small",placeholder:C.length!==0?void 0:t===""?"All":c??"All",error:s,helperText:s?f.jsxs(f.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",d?f.jsx("br",{}):null,d]}):d,slotProps:{input:{...A.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(se.CircularProgress,{size:16}),A.InputProps.endAdornment]})}}}),fullWidth:!0})}const x=Dn(a)&&Or(a)==="number",{rangeMin:I,rangeMax:M}=e,$=x&&typeof t=="string"?bm(t):void 0,R=x&&typeof t=="string"?xm(t):void 0;if((x||a==="number")&&I!==void 0&&M!==void 0&&(!x||t===void 0||t===null||t===""||$!==void 0||R!==void 0)){const w=R??($!==void 0?[$,M]:void 0),A=x?w?.[0]:typeof t=="number"?t:void 0;if(A===void 0&&t!==void 0&&t!==null&&t!=="")return p("number");const L=A??I,N=w??[I,M],Y=N[1]>=M?`≥ ${N[0]}`:`${N[0]} to ${N[1]}`,W=x&&t==="",J=A!==void 0||W;return f.jsxs(se.FormControl,{fullWidth:!0,children:[f.jsxs(se.Box,{sx:{height:Iw,px:`${Bl}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[f.jsxs(se.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(se.Typography,{variant:"body2",color:"text.secondary",noWrap:!0,children:i}),f.jsx(se.Typography,{variant:"body2",sx:{fontWeight:600},children:J?W?"Any":x?Y:String(L):x?"Any":c??"Unset"}),J&&f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:f.jsx(Ro,{fontSize:"small"})})]}),f.jsx(se.Slider,{size:"small",min:I,max:M,value:x?N:L,disableSwap:x,valueLabelDisplay:"auto","aria-label":x?void 0:i,getAriaLabel:x?ce=>ce===0?`${i} from`:`${i} to`:void 0,sx:{py:0,mt:.5},onChange:(ce,ae)=>{if(x){const[V,q]=Array.isArray(ae)?[ae[0],ae[1]]:[ae,ae];if(V<=I&&q>=M){n(null);return}n(q>=M?ym(V):vm(V,q));return}n(Array.isArray(ae)?ae[0]:ae)}})]}),d&&f.jsx(se.FormHelperText,{sx:{mx:`${Bl}px`},children:d})]})}const F=Dn(a)?Or(a):void 0,T=F==="date"||F==="timestamp"||F==="timestamptz",m=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),O=t==null||m;if(T&&!m){const w=Rw(t);if(w!==void 0)return f.jsx(Ow,{label:i,state:w,onChange:n,helperNode:d,defaultDisplay:c})}if(T&&O){const w=m?Ve.utc(t):null;return f.jsx(Vr,{dateAdapter:Oo,children:f.jsx(Ur,{label:i,value:w?.isValid()?w:null,onChange:A=>n(A?A.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}if(a==="boolean"){const w=typeof t=="boolean";if(!w&&t!==void 0&&t!==null)return p("true or false");const A=e.default?.trim()==="true",L=w?t:A;return f.jsxs(se.FormControl,{children:[f.jsxs(se.Stack,{direction:"row",alignItems:"center",children:[f.jsx(se.FormControlLabel,{control:f.jsx(se.Checkbox,{checked:L,onChange:N=>n(N.target.checked)}),label:i}),w&&f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:f.jsx(Ro,{fontSize:"small"})})]}),d&&f.jsx(se.FormHelperText,{children:d})]})}if(a==="number"){const w=typeof t=="number"?t:"",A=t!=null;return A&&t!==""&&typeof t!="number"?p("number"):f.jsx(se.TextField,{label:i,type:"number",value:w,onChange:L=>{const N=L.target.value;n(N===""?null:Number(N))},placeholder:c,helperText:d,slotProps:{input:{endAdornment:A&&f.jsx(Os,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(a==="date"||a==="timestamp"||a==="timestamptz"){const w=t instanceof Date?t:typeof t=="string"?(N=>N instanceof Date?N:null)(Pc(a,t)):null,A=w?Ve.utc(w):null;return t!=null&&t!==""&&w===null?p("date"):f.jsx(Vr,{dateAdapter:Oo,children:f.jsx(Ur,{label:i,value:A,onChange:N=>n(N?Dm(N,w??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}const D=typeof t=="string"?t:"",k=t!=null;return f.jsx(se.TextField,{label:i,value:D,onChange:w=>n(w.target.value),placeholder:k?void 0:c??(a.startsWith("filter<")?a:void 0),helperText:d,slotProps:{input:{endAdornment:k&&f.jsx(Os,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Os({onClear:e}){return f.jsx(se.InputAdornment,{position:"end",children:f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:f.jsx(Ro,{fontSize:"small"})})})}function Rw(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=Cm(e);if(t!==void 0)return{kind:"preset",key:t};const n=km(e);if(n!==void 0)return{kind:"days",...n}}const fo="__custom__",$s="__any__";function Ow({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const s=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[i,a]=ie.useState(t.kind==="days"),[l,c]=ie.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});ie.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",d=i?fo:t.kind==="preset"?t.key:t.kind==="any"?$s:"",h=p=>{c(p),p.from&&p.to&&!Ve.utc(p.to).isBefore(Ve.utc(p.from))&&n(Pm(p.from,p.to))},b=p=>{const g=p?Ve.utc(p):null;return g?.isValid()?g:null};return f.jsxs(se.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(se.TextField,{select:!0,label:e,value:d,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:p=>{if(p===fo)return"Custom range";if(p===$s)return"Any time";const g=To.find(y=>y.key===p);return g?g.label:o??"Any time"}},input:{endAdornment:u?f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:()=>{a(!1),c({}),n(null)},sx:{mr:2},children:f.jsx(Ro,{fontSize:"small"})}):void 0}},onChange:p=>{const g=p.target.value;if(g===fo){a(!0);return}a(!1);const y=Sm(g);y!==void 0&&n(y)},children:[t.kind==="any"&&f.jsx(se.MenuItem,{value:$s,children:"Any time"}),To.map(p=>f.jsx(se.MenuItem,{value:p.key,children:p.label},p.key)),f.jsx(se.MenuItem,{value:fo,children:"Custom range"})]}),i&&f.jsxs(Vr,{dateAdapter:Oo,children:[f.jsx(Ur,{label:"From",value:b(l.from),onChange:p=>h({...l,from:p?p.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),f.jsx(Ur,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:p=>h({...l,to:p?p.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function Ku({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:s,optionsLoading:i,optionsFailed:a,apply:l,title:c}){if(e.length===0)return null;const u=Array.from(t.values()).some(b=>b!==null),d=e.map(b=>f.jsx(se.Box,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:f.jsx(qu,{given:b,value:b.name?t.get(b.name):void 0,onChange:p=>b.name&&n(b.name,p),options:b.name?s?.get(b.name):void 0,optionsLoading:i,optionsFailed:b.name?a?.has(b.name):void 0})},b.name)),h=f.jsxs(se.Stack,{direction:"row",alignItems:"center",spacing:1,children:[l&&f.jsx(se.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:l.onApply,disabled:!l.pending,sx:{textTransform:"none"},children:"Apply"}),u&&f.jsx(se.Button,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?f.jsx(se.Paper,{elevation:0,sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"background.paper"},children:f.jsxs(se.Stack,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[d,f.jsx(se.Box,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:h})]})}):f.jsxs(se.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(se.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(se.Typography,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:c??"Parameters"}),h]}),f.jsx(se.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:d})]})}const $w=/^(https?|mailto|tel):/i,Ew=/^[a-z][a-z0-9+.-]*:/i;function Aw({href:e,title:t,children:n,context:r}){const o=!!e&&Ew.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const d=o&&!$w.test(e??"");return f.jsx("a",{href:d?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const i=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",a=new URL(e,`https://malloy.invalid/${i}`),l=a.pathname.slice(1)+a.search+a.hash,c=`/${r.environmentName}/${r.packageName}/${l}`,{onNavigate:u}=r;return f.jsx("a",{href:c,title:t,onClick:u?d=>{d.preventDefault(),u(c,d)}:void 0,children:n})}const Fw={document:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:600,color:"text.primary",mb:1,mt:2},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p, & ul, & ol":{color:"text.primary",lineHeight:1.7,mb:1,fontSize:"16px"},"& li":{mb:.5}},caption:{color:"text.secondary",typography:"body2","& > :first-of-type":{mt:0},"& > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontSize:"inherit",fontWeight:600,m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:"monospace",fontSize:"0.9em"}}};function Qu({children:e,variant:t="caption",links:n,sx:r}){return f.jsx(se.Box,{sx:[Fw[t],...Array.isArray(r)?r:[r]],children:f.jsx(Md,{options:{overrides:{a:{component:Aw,props:{context:n}}}},children:e})})}function cr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=f.jsxs(se.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(se.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(se.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(se.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}const Lw=new Set(["bar","line","chart","scatter_chart"]),Nw=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function jw(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":Lw.has(e)?"container":"content"}function Bw(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&Nw.has(e)}function Vw(e){return e==="dashboard"?3:2}function Xu(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function zw(e,t){const n=Xu(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const Zu=400,Ww=700,_w=600,Hw=800,Ju=400,Qs=2e3;function ed(e){return e===void 0?Qs:Math.min(e,Qs)}function td({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??Ju:t===void 0||t<=0?ed(n):n===void 0?t:Math.min(n,t)}const nd=2,rd=16;function Uw(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function od({tiles:e,columns:t,keyOf:n,renderTile:r}){return f.jsx(se.Box,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${rd}px`},children:e.map((o,s)=>f.jsx(se.Box,{sx:{display:"grid",minWidth:0,gridColumn:{md:Uw(o,t)}},children:r(o,s)},n(o,s)))})}const Yw=ct(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"}));function sd(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function qi(e,{enabled:t=!0}={}){const{apiClients:n}=Ke.useServer();return Zo({queryKey:sd(e),queryFn:()=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId}),enabled:t,...Ke.CHART_RESULT_QUERY_OPTIONS})}const id=ct(f.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));function ad({sx:e,...t}){const{theme:n}=Ke.usePublisherTheme();return f.jsx(se.IconButton,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const Gw=new Set(["warn","error"]);function qw(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Gw.has(r.severity??"")||(r.severity==="error"&&(n=!0),t.includes(r.message)||t.push(r.message));if(t.length)return{severity:n?"error":"warn",title:t.join(`
|
|
133
|
-
`)}}const Kw=ie.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-
|
|
134
|
-
`},Zw=/^#\(malloy\)[\s\S]*\bcalculation\b/;function Jw(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&Zw.test(t.value.trim())):!1}function eP(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(Jw))return!1;const n=e.data;return n?n.kind==="record_cell"?!0:n.kind==="array_cell"&&Array.isArray(n.array_value)&&n.array_value.length===1:!1}function tP(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=n.slice(1).replace(/"(?:[^"\\]|\\.)*"/g,'""');for(const o of r.split(/[\s{}=.,[\]]+/))if(Qw.has(o))return!0}return!1}function nP(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!eP(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return tP(r)?e:JSON.stringify({...t,annotations:[Xw,...n]})}const Qi=20,rP={radius:"8px",padding:`${Qi}px`};function oP(e,t=rP){return{"--malloy-render--font-family":e.font.family,"--malloy-render--table-font-size":`${e.font.size}px`,"--malloy-render--table-header-color":e.tableHeader,"--malloy-render--table-body-color":e.tableBody,"--malloy-render--table-border":e.border,"--malloy-render--table-pinned-border":e.pinnedBorder,"--malloy-render--tile-background":e.tile,"--publisher-dashboard-root":e.dashboardRoot,"--malloy-render--label-color":e.tileTitle,"--malloy-render--value-color":e.valueColor,"--publisher-drill-link":e.drillLink,"--publisher-dashboard-card-radius":t.radius,"--publisher-dashboard-card-padding":t.padding}}function cd({borderless:e=!1,sx:t,children:n}){const{theme:r}=Ke.usePublisherTheme();return f.jsx(se.Paper,{elevation:0,sx:[{border:e?"none":r.border,borderRadius:e?0:1,background:e?"none":r.tile,overflow:"hidden",minWidth:0,minHeight:120,p:e?"12px 0":`${Qi}px`},...Array.isArray(t)?t:[t]],children:n})}function ud({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=Ke.usePublisherTheme();return f.jsxs(se.Box,{sx:{pb:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(se.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(se.Typography,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&f.jsx(se.Typography,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function Xs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?fi(t):e}function Zs({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,label:i,subtitle:a,borderless:l,givens:c,declaredTypes:u,givenNames:d,height:h,maxResultSize:b,drill:p,onExplore:g}){const{theme:y}=Ke.usePublisherTheme(),S=qi({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?`run: ${s}`:void 0,givens:Xo(c,u,d)});return f.jsxs(cd,{borderless:l,sx:{"& .publisher-tile-explore":{opacity:0,transition:"opacity 120ms"},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(ud,{title:i??Xs(s),subtitle:a,tooltip:s,action:g&&f.jsx(se.Tooltip,{title:"Explore from here",children:f.jsx(se.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${i??Xs(s)}`,onClick:g,sx:{mt:-.5,mr:-.5,color:y.tileTitle},children:f.jsx(Yw,{fontSize:"small"})})})}),f.jsx(Ki,{state:S,context:s??o??r,maxHeight:h,maxResultSize:b,drill:p,transform:s!==void 0?nP:void 0})]})}function Vl({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function zl(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function sP(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=zl(u));const d=u?a.filter(h=>{let b=(s||c)(h);return n&&(b=b.toLowerCase()),t&&(b=zl(b)),o==="start"?b.startsWith(u):b.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const iP=sP(),Wl=5,aP=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),lP=[];function _l(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function cP(e){const{unstable_isActiveElementInListbox:t=aP,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?lP:null,disableClearable:d=!1,disableCloseOnSelect:h=!1,disabled:b,disabledItemsFocusable:p=!1,disableListWrap:g=!1,filterOptions:y=iP,filterSelectedOptions:S=!1,freeSolo:P=!1,getOptionDisabled:C,getOptionKey:x,getOptionLabel:I=Z=>Z.label??Z,groupBy:M,handleHomeEndKeys:$=!e.freeSolo,id:R,includeInputInList:E=!1,inputValue:F,isOptionEqualToValue:T=(Z,X)=>Z===X,multiple:m=!1,onChange:O,onClose:D,onHighlightChange:k,onInputChange:w,onOpen:A,open:L,openOnFocus:N=!1,options:Y,readOnly:W=!1,renderValue:J,selectOnFocus:ce=!e.freeSolo,value:ae}=e,V=_t(R);let q=I;q=Z=>{const X=I(Z);return typeof X!="string"?String(X):X};const ne=v.useRef(!1),K=v.useRef(!0),z=v.useRef(null),G=v.useRef(null),[oe,re]=v.useState(null),[B,ee]=v.useState(-1),le=o?0:-1,te=v.useRef(le),pe=v.useRef(_l(u??ae,m,q)).current,[H,ye]=Mt({controlled:ae,default:u,name:c}),[de,Me]=Mt({controlled:F,default:pe,name:c,state:"inputValue"}),[he,et]=v.useState(!1),Le=v.useCallback((Z,X,ge)=>{if(!(m?H.length<X.length:X!==null)&&!a)return;const Pe=_l(X,m,q,J);de!==Pe&&(Me(Pe),w&&w(Z,Pe,ge))},[q,de,m,w,Me,a,H,J]),[Xe,nt]=Mt({controlled:L,default:!1,name:c,state:"open"}),[mt,rt]=v.useState(!0),xt=!m&&H!=null&&de===q(H),_e=Xe&&!W,Ce=_e?y(Y.filter(Z=>!(S&&(m?H:[H]).some(X=>X!==null&&T(Z,X)))),{inputValue:xt&&mt?"":de,getOptionLabel:q}):[],tt=mh({filteredOptions:Ce,value:H,inputValue:de});v.useEffect(()=>{const Z=H!==tt.value;he&&!Z||P&&!Z||Le(null,H,"reset")},[H,Le,he,tt.value,P]);const St=Xe&&Ce.length>0&&!W,ut=fe(Z=>{if(Z===-1)z.current.focus();else{const X=J?"data-item-index":"data-tag-index";oe.querySelector(`[${X}="${Z}"]`).focus()}});v.useEffect(()=>{m&&B>H.length-1&&(ee(-1),ut(-1))},[H,m,B,ut]);function xe(Z,X){if(!G.current||Z<0||Z>=Ce.length)return-1;let ge=Z;for(;;){const we=G.current.querySelector(`[data-option-index="${ge}"]`),Pe=p?!1:!we||we.disabled||we.getAttribute("aria-disabled")==="true";if(we&&we.hasAttribute("tabindex")&&!Pe)return ge;if(X==="next"?ge=(ge+1)%Ce.length:ge=(ge-1+Ce.length)%Ce.length,ge===Z)return-1}}const Ie=fe(({event:Z,index:X,reason:ge})=>{if(te.current=X,X===-1?z.current.removeAttribute("aria-activedescendant"):z.current.setAttribute("aria-activedescendant",`${V}-option-${X}`),k&&["mouse","keyboard","touch"].includes(ge)&&k(Z,X===-1?null:Ce[X],ge),!G.current)return;const we=G.current.querySelector(`[role="option"].${n}-focused`);we&&(we.classList.remove(`${n}-focused`),we.classList.remove(`${n}-focusVisible`));let Pe=G.current;if(G.current.getAttribute("role")!=="listbox"&&(Pe=G.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(X===-1){Pe.scrollTop=0;return}const lt=G.current.querySelector(`[data-option-index="${X}"]`);if(lt&&(lt.classList.add(`${n}-focused`),ge==="keyboard"&<.classList.add(`${n}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ge!=="mouse"&&ge!=="touch")){const Ze=lt,Vt=Pe.clientHeight+Pe.scrollTop,oo=Ze.offsetTop+Ze.offsetHeight;oo>Vt?Pe.scrollTop=oo-Pe.clientHeight:Ze.offsetTop-Ze.offsetHeight*(M?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ze.offsetTop-Ze.offsetHeight*(M?1.3:0))}}),$e=fe(({event:Z,diff:X,direction:ge="next",reason:we})=>{if(!_e)return;const lt=xe((()=>{const Ze=Ce.length-1;if(X==="reset")return le;if(X==="start")return 0;if(X==="end")return Ze;const Vt=te.current+X;return Vt<0?Vt===-1&&E?-1:g&&te.current!==-1||Math.abs(X)>1?0:Ze:Vt>Ze?Vt===Ze+1&&E?-1:g||Math.abs(X)>1?Ze:0:Vt})(),ge);if(Ie({index:lt,reason:we,event:Z}),r&&X!=="reset")if(lt===-1)z.current.value=de;else{const Ze=q(Ce[lt]);z.current.value=Ze,Ze.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&z.current.setSelectionRange(de.length,Ze.length)}}),Ct=!Vl({array1:tt.filteredOptions,array2:Ce,parser:q}),Ne=()=>{const Z=(X,ge)=>{const we=X?q(X):"",Pe=ge?q(ge):"";return we===Pe};if(te.current!==-1&&!Vl({array1:tt.filteredOptions,array2:Ce,parser:q})&&tt.inputValue===de&&(m?H.length===tt.value.length&&tt.value.every((X,ge)=>q(H[ge])===q(X)):Z(tt.value,H))){const X=tt.filteredOptions[te.current];if(X)return Ce.findIndex(ge=>q(ge)===q(X))}return-1},pt=v.useCallback(()=>{if(!_e)return;const Z=Ne();if(Z!==-1){te.current=Z;return}const X=m?H[0]:H;if(Ce.length===0||X==null){$e({diff:"reset"});return}if(G.current){if(X!=null){const ge=Ce[te.current];if(m&&ge&&H.findIndex(Pe=>T(ge,Pe))!==-1)return;const we=Ce.findIndex(Pe=>T(Pe,X));we===-1?$e({diff:"reset"}):Ie({index:we});return}if(te.current>=Ce.length-1){Ie({index:Ce.length-1});return}Ie({index:te.current})}},[Ce.length,m?!1:H,S,$e,Ie,_e,de,m]),ht=fe(Z=>{js(G,Z),Z&&pt()});v.useEffect(()=>{Ct&&pt()},[pt,Ct]);const it=Z=>{Xe||(nt(!0),rt(!0),A&&A(Z))},bn=(Z,X)=>{Xe&&(nt(!1),D&&D(Z,X))},Xt=(Z,X,ge,we)=>{if(m){if(H.length===X.length&&H.every((Pe,lt)=>Pe===X[lt]))return}else if(H===X)return;O&&O(Z,X,ge,we),ye(X)},Zt=v.useRef(!1),ln=(Z,X,ge="selectOption",we="options")=>{let Pe=ge,lt=X;if(m){lt=Array.isArray(H)?H.slice():[];const Ze=lt.findIndex(Vt=>T(X,Vt));Ze===-1?lt.push(X):we!=="freeSolo"&&(lt.splice(Ze,1),Pe="removeOption")}Le(Z,lt,Pe),Xt(Z,lt,Pe,{option:X}),!h&&(!Z||!Z.ctrlKey&&!Z.metaKey)&&bn(Z,Pe),(i===!0||i==="touch"&&Zt.current||i==="mouse"&&!Zt.current)&&z.current.blur()};function ds(Z,X){if(Z===-1)return-1;let ge=Z;for(;;){if(X==="next"&&ge===H.length||X==="previous"&&ge===-1)return-1;const we=J?"data-item-index":"data-tag-index",Pe=oe.querySelector(`[${we}="${ge}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ge+=X==="next"?1:-1;else return ge}}const vn=(Z,X)=>{if(!m)return;de===""&&bn(Z,"toggleInput");let ge=B;B===-1?de===""&&X==="previous"&&(ge=H.length-1):(ge+=X==="next"?1:-1,ge<0&&(ge=0),ge===H.length&&(ge=-1)),ge=ds(ge,X),ee(ge),ut(ge)},no=Z=>{ne.current=!0,Me(""),w&&w(Z,"","clear"),Xt(Z,m?[]:null,"clear")},ps=Z=>X=>{if(Z.onKeyDown&&Z.onKeyDown(X),!X.defaultMuiPrevented&&(B!==-1&&!["ArrowLeft","ArrowRight"].includes(X.key)&&(ee(-1),ut(-1)),X.which!==229))switch(X.key){case"Home":_e&&$&&(X.preventDefault(),$e({diff:"start",direction:"next",reason:"keyboard",event:X}));break;case"End":_e&&$&&(X.preventDefault(),$e({diff:"end",direction:"previous",reason:"keyboard",event:X}));break;case"PageUp":X.preventDefault(),$e({diff:-Wl,direction:"previous",reason:"keyboard",event:X}),it(X);break;case"PageDown":X.preventDefault(),$e({diff:Wl,direction:"next",reason:"keyboard",event:X}),it(X);break;case"ArrowDown":X.preventDefault(),$e({diff:1,direction:"next",reason:"keyboard",event:X}),it(X);break;case"ArrowUp":X.preventDefault(),$e({diff:-1,direction:"previous",reason:"keyboard",event:X}),it(X);break;case"ArrowLeft":!m&&J?ut(0):vn(X,"previous");break;case"ArrowRight":!m&&J?ut(-1):vn(X,"next");break;case"Enter":if(te.current!==-1&&_e){const ge=Ce[te.current],we=C?C(ge):!1;if(X.preventDefault(),we)return;ln(X,ge,"selectOption"),r&&z.current.setSelectionRange(z.current.value.length,z.current.value.length)}else P&&de!==""&&xt===!1&&(m&&X.preventDefault(),ln(X,de,"createOption","freeSolo"));break;case"Escape":_e?(X.preventDefault(),X.stopPropagation(),bn(X,"escape")):l&&(de!==""||m&&H.length>0||J)&&(X.preventDefault(),X.stopPropagation(),no(X));break;case"Backspace":if(m&&!W&&de===""&&H.length>0){const ge=B===-1?H.length-1:B,we=H.slice();we.splice(ge,1),Xt(X,we,"removeOption",{option:H[ge]})}!m&&J&&!W&&(ye(null),ut(-1));break;case"Delete":if(m&&!W&&de===""&&H.length>0&&B!==-1){const ge=B,we=H.slice();we.splice(ge,1),Xt(X,we,"removeOption",{option:H[ge]})}!m&&J&&!W&&(ye(null),ut(-1));break}},Vn=Z=>{et(!0),N&&!ne.current&&it(Z)},zn=Z=>{if(t(G)){z.current.focus();return}et(!1),K.current=!0,ne.current=!1,s&&te.current!==-1&&_e?ln(Z,Ce[te.current],"blur"):s&&P&&de!==""?ln(Z,de,"blur","freeSolo"):a&&Le(Z,H,"blur"),bn(Z,"blur")},pr=Z=>{const X=Z.target.value;de!==X&&(Me(X),rt(!1),w&&w(Z,X,"input")),X===""?!d&&!m&&Xt(Z,null,"clear"):it(Z)},fs=Z=>{const X=Number(Z.currentTarget.getAttribute("data-option-index"));te.current!==X&&Ie({event:Z,index:X,reason:"mouse"})},ms=Z=>{Ie({event:Z,index:Number(Z.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Zt.current=!0},hs=Z=>{const X=Number(Z.currentTarget.getAttribute("data-option-index"));ln(Z,Ce[X],"selectOption"),Zt.current=!1},gs=Z=>X=>{const ge=H.slice();ge.splice(Z,1),Xt(X,ge,"removeOption",{option:H[Z]})},fr=Z=>{Xt(Z,null,"removeOption",{option:H})},ot=Z=>{Xe?bn(Z,"toggleInput"):it(Z)},at=Z=>{Z.currentTarget.contains(Z.target)&&Z.target.getAttribute("id")!==V&&Z.preventDefault()},cn=Z=>{Z.currentTarget.contains(Z.target)&&(z.current.focus(),ce&&K.current&&z.current.selectionEnd-z.current.selectionStart===0&&z.current.select(),K.current=!1)},ys=Z=>{!b&&(de===""||!Xe)&&ot(Z)};let mr=P&&de.length>0;mr=mr||(m?H.length>0:H!==null);let ro=Ce;return M&&(ro=Ce.reduce((Z,X,ge)=>{const we=M(X);return Z.length>0&&Z[Z.length-1].group===we?Z[Z.length-1].options.push(X):Z.push({key:ge,index:ge,group:we,options:[X]}),Z},[])),b&&he&&zn(),{getRootProps:(Z={})=>({...Z,onKeyDown:ps(Z),onMouseDown:at,onClick:cn}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:de,onBlur:zn,onFocus:Vn,onChange:pr,onMouseDown:ys,"aria-activedescendant":_e?"":null,"aria-autocomplete":r?"both":"list","aria-controls":St?`${V}-listbox`:void 0,"aria-expanded":St,autoComplete:"off",ref:z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:no}),getItemProps:({index:Z=0}={})=>({...m&&{key:Z},...J?{"data-item-index":Z}:{"data-tag-index":Z},tabIndex:-1,...!W&&{onDelete:m?gs(Z):fr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ot}),getTagProps:({index:Z})=>({key:Z,"data-tag-index":Z,tabIndex:-1,...!W&&{onDelete:gs(Z)}}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:ht,onMouseDown:Z=>{Z.preventDefault()}}),getOptionProps:({index:Z,option:X})=>{const ge=(m?H:[H]).some(Pe=>Pe!=null&&T(X,Pe)),we=C?C(X):!1;return{key:x?.(X)??q(X),tabIndex:-1,role:"option",id:`${V}-option-${Z}`,onMouseMove:fs,onClick:hs,onTouchStart:ms,"data-option-index":Z,"aria-disabled":we,"aria-selected":ge}},id:V,inputValue:de,value:H,dirty:mr,expanded:_e&&oe,popupOpen:_e,focused:he||B!==-1,anchorEl:oe,setAnchorEl:re,focusedItem:B,focusedTag:B,groupedOptions:ro}}function uP(e){return Se("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dP=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return ve(i,uP,t)},pP=_("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Re(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Js=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:s,component:i,disableGutters:a,disableSticky:l,inset:c},h=dP(d);return f.jsx(pP,{as:i,className:me(h.root,o),ref:n,ownerState:d,...u})});Js&&(Js.muiSkipListHighlight=!0);const fP=ct(f.jsx("path",{d:"M19 6.41L17.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"}));function mP(e){return Se("MuiAutocomplete",e)}const De=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Hl,Ul;const hP=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ve(d,mP,t)},gP=_("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:a}=n;return[{[`& .${De.tag}`]:t.tag},{[`& .${De.tag}`]:t[`tagSize${ue(a)}`]},{[`& .${De.inputRoot}`]:t.inputRoot},{[`& .${De.input}`]:t.input},{[`& .${De.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${De.focused} .${De.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${De.clearIndicator}`]:{visibility:"visible"}},[`& .${De.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${De.inputRoot}`]:{[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:30},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:56},[`& .${De.input}`]:{width:0,minWidth:30}},[`& .${fn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${fn.root}.${wt.sizeSmall}`]:{[`& .${fn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Tt.root}`]:{padding:9,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${De.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Tt.root}.${wt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${De.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Pt.root}`]:{paddingTop:19,paddingLeft:8,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${Pt.input}`]:{padding:"7px 4px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Pt.root}.${wt.sizeSmall}`]:{paddingBottom:1,[`& .${Pt.input}`]:{padding:"2.5px 4px"}},[`& .${wt.hiddenLabel}`]:{paddingTop:8},[`& .${Pt.root}.${wt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${De.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Pt.root}.${wt.hiddenLabel}.${wt.sizeSmall}`]:{[`& .${De.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${De.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${De.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${De.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${De.inputRoot}`]:{flexWrap:"wrap"}}}]}),yP=_("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),bP=_(Nn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),vP=_(Nn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),xP=_($i,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${De.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Re(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),SP=_(jn,{name:"MuiAutocomplete",slot:"Paper"})(Re(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),CP=_("div",{name:"MuiAutocomplete",slot:"Loading"})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),wP=_("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),PP=_("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Re(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${De.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${De.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${De.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),kP=_(Js,{name:"MuiAutocomplete",slot:"GroupLabel"})(Re(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),MP=_("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${De.option}`]:{paddingLeft:24}}),dd=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=Hl||(Hl=f.jsx(fP,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:h=!1,clearText:b="Clear",closeText:p="Close",componentsProps:g,defaultValue:y=r.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:P=!1,disabled:C=!1,disabledItemsFocusable:x=!1,disableListWrap:I=!1,disablePortal:M=!1,filterOptions:$,filterSelectedOptions:R=!1,forcePopupIcon:E="auto",freeSolo:F=!1,fullWidth:T=!1,getLimitTagsText:m=Ee=>`+${Ee}`,getOptionDisabled:O,getOptionKey:D,getOptionLabel:k,isOptionEqualToValue:w,groupBy:A,handleHomeEndKeys:L=!r.freeSolo,id:N,includeInputInList:Y=!1,inputValue:W,limitTags:J=-1,ListboxComponent:ce,ListboxProps:ae,loading:V=!1,loadingText:q="Loading…",multiple:ne=!1,noOptionsText:K="No options",onChange:z,onClose:G,onHighlightChange:oe,onInputChange:re,onOpen:B,open:ee,openOnFocus:le=!1,openText:te="Open",options:pe,PaperComponent:H,PopperComponent:ye,popupIcon:de=Ul||(Ul=f.jsx($u,{})),readOnly:Me=!1,renderGroup:he,renderInput:et,renderOption:Le,renderTags:Xe,renderValue:nt,selectOnFocus:mt=!r.freeSolo,size:rt="medium",slots:xt={},slotProps:_e={},value:Ce,...tt}=r,{getRootProps:St,getInputProps:ut,getInputLabelProps:xe,getPopupIndicatorProps:Ie,getClearProps:$e,getItemProps:Ct,getListboxProps:Ne,getOptionProps:pt,value:ht,dirty:it,expanded:bn,id:Xt,popupOpen:Zt,focused:ln,focusedItem:ds,anchorEl:vn,setAnchorEl:no,inputValue:ps,groupedOptions:Vn}=cP({...r,componentName:"Autocomplete"}),zn=!S&&!C&&it&&!Me,pr=(!F||E===!0)&&E!==!1,{onMouseDown:fs}=ut(),{ref:ms,...hs}=Ne(),fr=k||(Ee=>Ee.label??Ee),ot={...r,disablePortal:M,expanded:bn,focused:ln,fullWidth:T,getOptionLabel:fr,hasClearIcon:zn,hasPopupIcon:pr,inputFocused:ds===-1,popupOpen:Zt,size:rt},at=hP(ot),cn={slots:{paper:H,popper:ye,...xt},slotProps:{chip:l,listbox:ae,...g,..._e}},[ys,mr]=We("listbox",{elementType:PP,externalForwardedProps:cn,ownerState:ot,className:at.listbox,additionalProps:hs,ref:ms}),[ro,Z]=We("paper",{elementType:jn,externalForwardedProps:cn,ownerState:ot,className:at.paper}),[X,ge]=We("popper",{elementType:$i,externalForwardedProps:cn,ownerState:ot,className:at.popper,additionalProps:{disablePortal:M,style:{width:vn?vn.clientWidth:null},role:"presentation",anchorEl:vn,open:Zt}});let we;const Pe=Ee=>({className:at.tag,disabled:C,...Ct(Ee)});if(ne?ht.length>0&&(Xe?we=Xe(ht,Pe,ot):nt?we=nt(ht,Pe,ot):we=ht.map((Ee,un)=>{const{key:dn,...hr}=Pe({index:un});return f.jsx(Su,{label:fr(Ee),size:rt,...hr,...cn.slotProps.chip},dn)})):nt&&ht!=null&&(we=nt(ht,Pe,ot)),J>-1&&Array.isArray(we)){const Ee=we.length-J;!ln&&Ee>0&&(we=we.splice(0,J),we.push(f.jsx("span",{className:at.tag,children:m(Ee)},we.length)))}const Ze=he||(Ee=>f.jsxs("li",{children:[f.jsx(kP,{className:at.groupLabel,ownerState:ot,component:"div",children:Ee.group}),f.jsx(MP,{className:at.groupUl,ownerState:ot,children:Ee.children})]},Ee.key)),oo=Le||((Ee,un)=>{const{key:dn,...hr}=Ee;return f.jsx("li",{...hr,children:fr(un)},dn)}),ea=(Ee,un)=>{const dn=pt({option:Ee,index:un});return oo({...dn,className:at.option},Ee,{selected:dn["aria-selected"],index:un,inputValue:ps},ot)},ta=cn.slotProps.clearIndicator,na=cn.slotProps.popupIndicator;return f.jsxs(v.Fragment,{children:[f.jsx(gP,{ref:n,className:me(at.root,c),ownerState:ot,...St(tt),children:et({id:Xt,disabled:C,fullWidth:!0,size:rt==="small"?"small":void 0,InputLabelProps:xe(),InputProps:{ref:no,className:at.inputRoot,startAdornment:we,onMouseDown:Ee=>{Ee.target===Ee.currentTarget&&fs(Ee)},...(zn||pr)&&{endAdornment:f.jsxs(yP,{className:at.endAdornment,ownerState:ot,children:[zn?f.jsx(bP,{...$e(),"aria-label":b,title:b,ownerState:ot,...ta,className:me(at.clearIndicator,ta?.className),children:u}):null,pr?f.jsx(vP,{...Ie(),disabled:C,"aria-label":Zt?p:te,title:Zt?p:te,ownerState:ot,...na,className:me(at.popupIndicator,na?.className),children:de}):null]})}},inputProps:{className:at.input,disabled:C,readOnly:Me,...ut()}})}),vn?f.jsx(xP,{as:X,...ge,children:f.jsxs(SP,{as:ro,...Z,children:[V&&Vn.length===0?f.jsx(CP,{className:at.loading,ownerState:ot,children:q}):null,Vn.length===0&&!F&&!V?f.jsx(wP,{className:at.noOptions,ownerState:ot,role:"presentation",onMouseDown:Ee=>{Ee.preventDefault()},children:K}):null,Vn.length>0?f.jsx(ys,{as:ce,...mr,children:Vn.map((Ee,un)=>A?Ze({key:Ee.key,group:Ee.group,children:Ee.options.map((dn,hr)=>ea(dn,Ee.index+hr))}):ea(Ee,un))}):null]})}):null]})});function pd({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:s}){return ie.useEffect(()=>{o&&o(t)},[t,o]),f.jsx(Ke.StyledCardMedia,{children:f.jsxs(Qe.Stack,{spacing:2,component:"section",children:[f.jsx(IP,{sourceAndPath:e[t],existingQuery:n,onChange:i=>{r&&r(i)},resourceUri:s}),f.jsx(Qe.Box,{height:"5px"})]})})}function Es(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function DP({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:s}){const[i,a]=ie.useState(n||Es()),[l,c]=ie.useState(void 0);ie.useEffect(()=>{n&&a(n)},[n]);const[u,d]=ie.useState([]),{MalloyExplorerProvider:h,QueryPanel:b,ResizableCollapsiblePanel:p,ResultPanel:g,SourcePanel:y}=r;ie.useEffect(()=>{t&&t(i)},[t,i]);const{environmentName:S,packageName:P,versionId:C}=Qr(s),{apiClients:x}=Ke.useServer(),I=Rc({mutationFn:()=>{const E=typeof i?.malloyQuery=="string"?i.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:i?.malloyQuery}).toMalloy();return c({executionState:"running",query:i?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{I.reset(),c(void 0)},response:{result:{}}}),a({...i,query:E}),x.models.executeQueryModel(S,P,e.modelPath,{query:E,sourceName:void 0,queryName:void 0,versionId:C})},onSuccess:E=>{if(E){const F=JSON.parse(E.data.result);a({...i,malloyResult:F}),c(T=>T?{...T,executionState:"finished",response:{result:F}}:void 0)}},onError:E=>{c(void 0),console.error("Query execution error:",E)}}),[M,$]=ie.useState(e.sourceInfo.name);ie.useEffect(()=>{M!==e.sourceInfo.name&&($(e.sourceInfo.name),a(Es()),c(void 0))},[e,M]);const R=ie.useCallback(E=>{a({...i,malloyQuery:E,malloyResult:void 0})},[i]);return M!==e.sourceInfo.name?f.jsx("div",{children:"Loading..."}):f.jsx(Ke.StyledExplorerContent,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:f.jsx(h,{source:e.sourceInfo,query:i?.malloyQuery,topValues:[],onFocusedNestViewPathChange:d,focusedNestViewPath:u,onQueryChange:R,children:f.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[f.jsx(p,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:f.jsx(y,{onRefresh:()=>a(Es())})}),f.jsx(p,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:f.jsx(b,{runQuery:()=>{console.log(`running query with: ${i?.malloyQuery}`);try{I.mutate()}catch(E){console.error("Error running query:",E)}}})}),f.jsx(g,{source:e.sourceInfo,draftQuery:i?.malloyQuery,setDraftQuery:E=>a({...i,malloyQuery:E}),submittedQuery:l,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function IP(e){const[t,n]=ie.useState(null),[r,o]=ie.useState(null),[s,i]=ie.useState(!0);return ie.useEffect(()=>{let a=!0;return Promise.all([import("@malloydata/malloy-explorer"),import("@malloydata/malloy-query-builder")]).then(([l,c])=>{a&&(n(l),o(c),i(!1))}).catch(l=>{console.error("Failed to load Malloy components:",l),a&&i(!1)}),()=>{a=!1}},[]),s||!t||!r?f.jsx(Ke.StyledExplorerPage,{children:f.jsx(Ke.StyledExplorerContent,{children:f.jsx(Qe.Box,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):f.jsx(DP,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Xi(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:s}=Qr(e),{apiClients:i}=Ke.useServer();return Zo({queryKey:["package",r,o,n,s],queryFn:async()=>(await i.models.getModel(r,o,n,s)).data,enabled:t})}function fd({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:s}){const[i,a]=ie.useState(r);ie.useEffect(()=>{a(r)},[r]);const{data:l,isError:c,isLoading:u,error:d}=Xi(s,!e),{modelPath:h}=Qr(s),b=e||l;if(u&&!e)return f.jsx(cr,{text:"Fetching Model..."});if(c&&!e)return console.log("error",d),f.jsx(jo,{error:d,context:`ModelExplorer > ${h}`});if(!b)return f.jsx(cr,{text:"Loading..."});const p=(b?.sourceInfos||[]).map((y,S)=>{try{return JSON.parse(y)?.name||`Source ${S+1}`}catch{return`Source ${S+1}`}}),g=p[i]||"";return f.jsxs(Ke.StyledCard,{variant:"outlined",children:[f.jsx(Ke.StyledCardContent,{children:f.jsx(se.Stack,{sx:{flexDirection:"row"},children:f.jsx(dd,{size:"small",id:"size-small-standard",disablePortal:!0,options:p,value:g,onChange:(y,S)=>{if(!S)return;const P=p.indexOf(S);P>=0&&(a(P),o?.(P))},renderInput:y=>f.jsx(Ui,{...y}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),f.jsx(Ke.StyledCardMedia,{children:f.jsxs(se.Stack,{spacing:2,component:"section",children:[Array.isArray(b.sourceInfos)&&b.sourceInfos.length>0&&f.jsx(pd,{sourceAndPaths:b.sourceInfos.map(y=>({sourceInfo:JSON.parse(y),modelPath:h})),selectedSourceIndex:i,existingQuery:n,onQueryChange:t,resourceUri:s}),f.jsx(se.Box,{height:"5px"})]})})]})}function md({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:s=!0,existingQuery:i,initialSelectedSourceIndex:a,onChange:l,onSourceChange:c}){return f.jsxs(se.Dialog,{open:e,onClose:t,fullScreen:!0,children:[f.jsxs(se.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,f.jsx(se.IconButton,{onClick:t,sx:{color:"text.secondary"},children:f.jsx(Qo,{})})]}),f.jsx(se.DialogContent,{children:s?f.jsx(fd,{resourceUri:n,data:r,existingQuery:i,initialSelectedSourceIndex:a,onChange:l,onSourceChange:c}):f.jsx("div",{children:"No valid import statement found in cell"})})]})}function hd(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function gd(e,t){if(e==null||e==="")return;const n=o=>`'${hd(o)}'`;switch(t===void 0?TP(e):t.startsWith("filter<")?"filter":t){case"filter":return`f${n(String(e))}`;case"string":return n(String(e));case"number":{const o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?String(o):void 0}case"boolean":return e===!0||e==="true"?"true":"false";case"date":{const o=Yl(e);return o&&`@${o}`}case"timestamp":{const o=Yl(e);if(!o)return;const s=e instanceof Date?e.toISOString().slice(11,19):/[T ](\d{2}:\d{2}(?::\d{2})?)/.exec(String(e))?.[1]??"00:00:00";return`@${o} ${s}`}default:return}}function TP(e){if(typeof e=="string")return"string";if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.toISOString().slice(11,19)==="00:00:00"?"date":"timestamp"}function Yl(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const ei="[A-Za-z_][A-Za-z0-9_]*",Gl=e=>new RegExp(`^${ei}$`).test(e);function RP(e,t,n){const r=new Map,o=new RegExp(`^\\s*${n}:\\s*(${ei})\\s+is\\b\\s*(.*)$`);let s;for(let i=0;i<e.length;i++){const a=e[i],l=new RegExp(`^\\s*source:\\s*(${ei})\\s+is\\b`).exec(a);if(l){s=l[1];continue}if((/^\s*(query|run|import|given)\b/.test(a)||a.startsWith("##"))&&(s=void 0),s!==t)continue;const c=o.exec(a);c&&r.set(c[1],{line:i,rest:c[2].trim()})}return r}function OP(e,t,n){const r=new RegExp(`^\\s*${t}:\\s*${n}\\s+is\\b`);return e.findIndex(o=>r.test(o))}const $P=e=>e.findIndex(t=>t.trimStart().startsWith("##")&&t.includes("artifact"));function EP(e){const t=new Map,n=o=>/^([A-Z_][A-Z0-9_]*)\s*::/.exec(o)?.[1],r=(o,s,i)=>{const a=s.trim(),l=n(a);l&&t.set(l,{line:o,declaration:a,...i===void 0?{}:{blockHeader:i}})};for(let o=0;o<e.length;o++){const s=e[o].trim();if(s==="given:")for(let i=o+1;i<e.length;i++){const a=e[i].trim();if(a===""||/^(source|query|import|run|given|##)/.test(a))break;r(i,a,o)}else s.startsWith("given:")&&r(o,s.slice(6))}return t}function yd(e){const t=(e??"").split("->").map(s=>s.trim());if(t.length!==2)return;const n=t[1].indexOf("+"),r=n<0?t[1]:t[1].slice(0,n).trim(),o=n<0?void 0:t[1].slice(n).trim();return{source:t[0],view:r,...o===void 0?{}:{refinement:o}}}const ti=()=>typeof performance<"u"?performance.now():Date.now(),bd=200;function AP(e){const t=gd(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${bd} }`}function Zi(e){const t=yd(e);if(!(!t||t.refinement!==void 0||!Gl(t.source)||!Gl(t.view)))return{source:t.source,view:t.view}}const FP=e=>Zi(e)?.source;function LP({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onClose:i,onDone:a}){const{theme:l}=Ke.usePublisherTheme(),c=e?AP(e):void 0;return f.jsxs(se.Dialog,{open:e!==void 0,onClose:i,maxWidth:"lg",fullWidth:!0,children:[f.jsxs(se.DialogTitle,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[f.jsxs(se.Box,{children:[e?f.jsxs(f.Fragment,{children:["Rows where"," ",f.jsx(se.Box,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",f.jsx(se.Typography,{component:"div",variant:"caption",sx:{color:l.tileTitle,mt:.25},children:e?`The first ${bd} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),f.jsx(se.IconButton,{onClick:i,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:f.jsx(Qo,{fontSize:"small"})})]}),f.jsxs(se.DialogContent,{dividers:!0,sx:{p:0,minHeight:240},children:[c===void 0&&e&&f.jsx(se.Typography,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),c!==void 0&&f.jsx(NP,{query:c,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:s,...a?{onDone:a}:{}})]}),f.jsxs(se.DialogActions,{sx:{px:3,py:1.5},children:[c!==void 0&&f.jsx(se.Typography,{variant:"caption",sx:{mr:"auto",color:l.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c,children:c}),f.jsx(se.Button,{onClick:i,children:"Close"})]})]})}function NP({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onDone:i}){const a=qi({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:s}),{isSuccess:l,isError:c}=a,u=ie.useRef(void 0);return ie.useEffect(()=>{u.current=ti()},[e]),ie.useEffect(()=>{u.current===void 0||!l&&!c||(i?.(l,ti()-u.current),u.current=void 0)},[l,c,i]),f.jsx(se.Box,{sx:{p:1},children:f.jsx(Ki,{state:a,context:e})})}function jP({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,onClose:s}){const i=Oc({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:a}=Xi(i,e!==void 0),l=ie.useMemo(()=>{const u=FP(e);if(!a||u===void 0)return 0;const d=(a.sourceInfos??[]).findIndex(h=>{try{return JSON.parse(h)?.name===u}catch{return!1}});return d<0?0:d},[a,e]),c=ie.useMemo(()=>{if(e===void 0)return;const u=Zi(e),d=u?{definition:{kind:"arrow",source:{kind:"source_reference",name:u.source},view:{kind:"view_reference",name:u.view}}}:`run: ${e}`;return{query:`run: ${e}`,malloyQuery:d,malloyResult:void 0}},[e]);return e===void 0||!a?null:f.jsx(md,{open:!0,onClose:s,resourceUri:i,data:a,title:`Explore: ${e}`,existingQuery:c,initialSelectedSourceIndex:l})}function BP({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:s,maxResultSize:i,onEvent:a}){const l=Qr(e),{apiClients:c}=Ke.useServer(),u=l.environmentName??"",d=l.packageName??"",h=l.versionId,b=!!l.environmentName&&!!l.packageName,{data:p,isSuccess:g,isError:y,error:S}=Zo({queryKey:["dashboard",u,d,h,t],queryFn:()=>c.dashboards.getDashboard(u,d,t,h),enabled:b}),P=p?.data,C=ie.useMemo(()=>P?.givens??[],[P]),x=Tc({specs:C,loaded:g,startingValues:P?.startingGivens,params:n,onGivensChange:r,documentKey:`${u}/${d}/${h??""}/${t}`,autorun:P?.autorun!==!1,environmentName:u,packageName:d,modelPath:P?.path,versionId:h,documentName:t}),{applied:I,declaredTypes:M,canSelf:$,onSelf:R}=x,[E,F]=ie.useState(void 0),[T,m]=ie.useState(void 0),O=ie.useCallback(W=>{const J=Zi(W.context);J!==void 0&&F({...J,field:W.field,rawValue:W.rawValue,label:W.label})},[]),D=ie.useMemo(()=>Xo(I,M),[I,M]),{drill:k,drillMenu:w}=$c({onNavigate:o,onSelf:R,canSelf:$,selfLabel:"Filter this dashboard",onRows:O}),A=ie.useCallback(W=>({canDrill:k.canDrill,onClick:J=>k.onClick({...J,context:W})}),[k]);if(!b)return f.jsxs(se.Alert,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(y)return f.jsx(jo,{context:`${u} > ${d} > ${t}`,error:S});if(!g||!P)return f.jsx(cr,{text:"Loading dashboard…"});if(P.error)return f.jsxs(se.Stack,{spacing:2,children:[f.jsx(ql,{manifest:P}),f.jsx(se.Alert,{severity:"error",children:P.error})]});const L=P.path,N=P.tiles??[],Y=P.dashboardColumns??nd;return f.jsxs(se.Stack,{spacing:2,children:[f.jsx(ql,{manifest:P}),f.jsx(Ku,{...x.panel,layout:"bar"}),L===void 0?f.jsx(se.Alert,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):P.query!==void 0?f.jsx(Zs,{environmentName:u,packageName:d,versionId:h,modelPath:L,queryName:P.query,givens:I,declaredTypes:M,height:s,maxResultSize:i,drill:k}):N.length>0?f.jsx(od,{tiles:N,columns:Y,keyOf:(W,J)=>`${J}:${W.query}`,renderTile:W=>f.jsx(Zs,{environmentName:u,packageName:d,versionId:h,modelPath:L,tile:W.query,label:W.label,subtitle:W.subtitle,borderless:W.borderless,givens:I,declaredTypes:M,givenNames:W.givenNames,height:s??Zu,maxResultSize:i,drill:A(W.query),onExplore:()=>{m(W.query),a?.({type:"dashboard.explored",tile:W.query})}})}):f.jsx(se.Alert,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),w,L!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx(LP,{request:E,environmentName:u,packageName:d,...h===void 0?{}:{versionId:h},modelPath:L,givens:D,onClose:()=>F(void 0),onDone:(W,J)=>{E&&a?.({type:"dashboard.rows_shown",source:E.source,view:E.view,field:E.field,ok:W,durationMs:J})}}),f.jsx(jP,{tile:T,environmentName:u,packageName:d,...h===void 0?{}:{versionId:h},modelPath:L,onClose:()=>m(void 0)})]})]})}function ql({manifest:e}){return f.jsx(vd,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function vd({title:e,description:t}){return f.jsxs(se.Box,{children:[f.jsx(se.Typography,{variant:"h5",sx:{fontWeight:600},children:e}),t&&f.jsx(Qu,{variant:"caption",children:t})]})}const VP=ct(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Ji=ie.createContext(void 0);function zP({children:e,documentStorage:t}){const n=ie.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(Ji.Provider,{value:n,children:e})}function WP(){const e=ie.useContext(Ji);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function _P(){return ie.useContext(Ji)}exports.AdapterDayjs=Oo;exports.AddButton=sm;exports.AddIcon=gc;exports.ApiErrorDisplay=jo;exports.AppDialog=am;exports.Autocomplete=dd;exports.Button=Tr;exports.ButtonBase=or;exports.CheckIcon=VP;exports.CircularProgress=Pi;exports.ClassNameGenerator=Ql;exports.CloseIcon=Qo;exports.DASHBOARD_CARD_PADDING_PX=Qi;exports.DEFAULT_COLUMNS=nd;exports.DRILL_SELF=bo;exports.Dashboard=BP;exports.DashboardBar=lm;exports.DashboardGrid=od;exports.DashboardProse=vd;exports.DashboardTile=Zs;exports.DatePicker=Ur;exports.DocumentStorageProvider=zP;exports.FloatingIconButton=ad;exports.FormControl=zi;exports.GRID_GAP_PX=rd;exports.GivenInput=qu;exports.GivensPanel=Ku;exports.Grow=zr;exports.INITIAL_RENDER_HEIGHT=Qs;exports.IconButton=Nn;exports.InfoOutlinedIcon=id;exports.InputLabel=Vi;exports.ListContext=Jn;exports.Loading=cr;exports.LocalizationProvider=Vr;exports.MODEL_CELL_MAX_HEIGHT=_w;exports.ModelExplorer=fd;exports.ModelExplorerDialog=md;exports.NOTEBOOK_CELL_MAX_HEIGHT=Ww;exports.Paper=jn;exports.Prose=Qu;exports.RESULTS_DIALOG_MAX_HEIGHT=Hw;exports.ResultContainer=ld;exports.ResultPanel=Ki;exports.SecondaryButton=im;exports.Select=Hi;exports.SourcesExplorer=pd;exports.SvgIcon=Io;exports.THEME_ID=ur;exports.TILE_MAX_HEIGHT=Zu;exports.TextField=Ui;exports.TileCard=cd;exports.TileHeading=ud;exports.Typography=gn;exports.UNCAPPED_CONTAINER_HEIGHT=Ju;exports.artifactLine=$P;exports.buildTableCssVars=oP;exports.capitalize=ue;exports.clsx=me;exports.composeClasses=ve;exports.contentNode=Xu;exports.contentNodeDepth=Vw;exports.createSimplePaletteValueFilter=yt;exports.createSvgIcon=ct;exports.createTheme=dc;exports.dayjs=Ve;exports.declarationLine=OP;exports.declarationsUnder=RP;exports.drillDestinations=pi;exports.drillValueToFilter=Kr;exports.emphasize=nc;exports.encodeDrillValue=Sc;exports.encodeResourceUri=Oc;exports.escapeMalloyString=hd;exports.extractEventHandlers=gi;exports.formControlState=Bn;exports.generateUtilityClass=Se;exports.generateUtilityClasses=be;exports.getAugmentedNamespace=$d;exports.getDefaultExportFromCjs=sn;exports.getReactElementRef=dr;exports.givenDeclarations=EP;exports.givensToRequest=Xo;exports.humanizeSlug=fi;exports.initialResultHeight=ed;exports.malloyLiteral=gd;exports.measureContentHeight=zw;exports.memoTheme=Re;exports.mergeSlotProps=hc;exports.now=ti;exports.ownerDocument=dt;exports.parseResourceUri=Qr;exports.queryResultKey=sd;exports.remeasuresAfterReady=Bw;exports.resolveDrill=xc;exports.resolveResultHeight=td;exports.resultSizing=jw;exports.rootShouldForwardProp=jt;exports.styled=_;exports.tileSteps=yd;exports.tileTitle=Xs;exports.typographyClasses=qh;exports.useControlled=Mt;exports.useDefaultProps=Oe;exports.useDocumentControls=Tc;exports.useDocumentStorage=WP;exports.useDrill=$c;exports.useDrillSelf=Cc;exports.useEnhancedEffect=st;exports.useEventCallback=fe;exports.useForkRef=Fe;exports.useFormControl=Bt;exports.useGivensState=Mc;exports.useModelData=Xi;exports.useMutationWithApiError=Rc;exports.useOptionalDocumentStorage=_P;exports.useQueryResult=qi;exports.useQueryWithApiError=Zo;exports.useSlot=We;exports.useSuggestOptions=Ic;exports.useTheme=Fn;exports.useTimeout=hi;exports.utc=ui;
|
|
127
|
+
`:null,Ug=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ue(r)}`],svg:["svg"],circle:["circle",`circle${ue(n)}`,o&&"circleDisableShrink"]};return ve(s,Wg,t)},Yg=_("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ue(n.color)}`]]}})(Re(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_g||{animation:`${Hs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Gg=_("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qg=_("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ue(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Re(({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:Hg||{animation:`${Us} 1.4s ease-in-out infinite`}}]}))),wi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...h}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d},p=Ug(b),g={},y={},S={};if(d==="determinate"){const P=2*Math.PI*((pn-c)/2);g.strokeDasharray=P.toFixed(3),S["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*P).toFixed(3)}px`,y.transform="rotate(-90deg)"}return f.jsx(Yg,{className:me(p.root,o),style:{width:a,height:a,...y,...l},ownerState:b,ref:n,role:"progressbar",...S,...h,children:f.jsx(Gg,{className:p.svg,ownerState:b,viewBox:`${pn/2} ${pn/2} ${pn} ${pn}`,children:f.jsx(qg,{className:p.circle,style:g,ownerState:b,cx:pn,cy:pn,r:(pn-c)/2,fill:"none",strokeWidth:c})})})});function Kg(e){return Se("MuiIconButton",e)}const ol=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Qg=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ve(a,Kg,t)},Xg=_(or,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(Re(({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}}]})),Re(({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)}}],[`&.${ol.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${ol.loading}`]:{color:"transparent"}}))),Zg=_("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"}}]})),Nn=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:h=null,loadingIndicator:b,...p}=r,g=_t(d),y=b??f.jsx(wi,{"aria-labelledby":g,color:"inherit",size:16}),S={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:u},P=Qg(S);return f.jsxs(Xg,{id:h?g:d,className:me(P.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...p,ownerState:S,children:[typeof h=="boolean"&&f.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:f.jsx(Zg,{className:P.loadingIndicator,ownerState:S,children:h&&y})}),s]})}),tu=e=>e.scrollTop;function Fo(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ys(e){return`scale(${e}, ${e**2})`}const Jg={entering:{opacity:1,transform:Ys(1)},entered:{opacity:1,transform:"none"}},Is=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:h,onExiting:b,style:p,timeout:g="auto",TransitionComponent:y=Ht,...S}=t,P=mi(),C=v.useRef(),x=Fn(),I=v.useRef(null),M=Fe(I,dr(s),n),$=k=>w=>{if(k){const A=I.current;w===void 0?k(A):k(A,w)}},R=$(u),E=$((k,w)=>{tu(k);const{duration:A,delay:L,easing:N}=Fo({style:p,timeout:g,easing:i},{mode:"enter"});let Y;g==="auto"?(Y=x.transitions.getAutoHeightDuration(k.clientHeight),C.current=Y):Y=A,k.style.transition=[x.transitions.create("opacity",{duration:Y,delay:L}),x.transitions.create("transform",{duration:Is?Y:Y*.666,delay:L,easing:N})].join(","),l&&l(k,w)}),F=$(c),T=$(b),m=$(k=>{const{duration:w,delay:A,easing:L}=Fo({style:p,timeout:g,easing:i},{mode:"exit"});let N;g==="auto"?(N=x.transitions.getAutoHeightDuration(k.clientHeight),C.current=N):N=w,k.style.transition=[x.transitions.create("opacity",{duration:N,delay:A}),x.transitions.create("transform",{duration:Is?N:N*.666,delay:Is?A:A||N*.333,easing:L})].join(","),k.style.opacity=0,k.style.transform=Ys(.75),d&&d(k)}),O=$(h),D=k=>{g==="auto"&&P.start(C.current||0,k),r&&r(I.current,k)};return f.jsx(y,{appear:o,in:a,nodeRef:I,onEnter:E,onEntered:F,onEntering:R,onExit:m,onExited:O,onExiting:T,addEndListener:D,timeout:g==="auto"?null:g,...S,children:(k,{ownerState:w,...A})=>v.cloneElement(s,{style:{opacity:0,transform:Ys(.75),visibility:k==="exited"&&!a?"hidden":void 0,...Jg[k],...p,...s.props.style},ref:M,...A})})});zr&&(zr.muiSupportAuto=!0);const ey={entering:{opacity:1},entered:{opacity:1}},En=v.forwardRef(function(t,n){const r=Fn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:b,onExited:p,onExiting:g,style:y,timeout:S=o,TransitionComponent:P=Ht,...C}=t,x=v.useRef(null),I=Fe(x,dr(a),n),M=D=>k=>{if(D){const w=x.current;k===void 0?D(w):D(w,k)}},$=M(h),R=M((D,k)=>{tu(D);const w=Fo({style:y,timeout:S,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",w),D.style.transition=r.transitions.create("opacity",w),u&&u(D,k)}),E=M(d),F=M(g),T=M(D=>{const k=Fo({style:y,timeout:S,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",k),D.style.transition=r.transitions.create("opacity",k),b&&b(D)}),m=M(p),O=D=>{s&&s(x.current,D)};return f.jsx(P,{appear:i,in:c,nodeRef:x,onEnter:R,onEntered:E,onEntering:$,onExit:T,onExited:m,onExiting:F,addEndListener:O,timeout:S,...C,children:(D,{ownerState:k,...w})=>v.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...ey[D],...y,...a.props.style},ref:I,...w})})});function ty(e){return Se("MuiPaper",e)}be("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 ny=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(s,ty,o)},ry=_("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}`]]}})(Re(({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)"}}]}))),jn=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPaper"}),o=Fn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:i,elevation:a,square:l,variant:c},h=ny(d);return f.jsx(ry,{as:i,ownerState:d,className:me(h.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Mo("#fff",Ns(a))}, ${Mo("#fff",Ns(a))})`}},...u.style}})});var bt="top",At="bottom",Ft="right",vt="left",Pi="auto",eo=[bt,At,Ft,vt],sr="start",Wr="end",oy="clippingParents",nu="viewport",vr="popper",sy="reference",sl=eo.reduce(function(e,t){return e.concat([t+"-"+sr,t+"-"+Wr])},[]),ru=[].concat(eo,[Pi]).reduce(function(e,t){return e.concat([t,t+"-"+sr,t+"-"+Wr])},[]),iy="beforeRead",ay="read",ly="afterRead",cy="beforeMain",uy="main",dy="afterMain",py="beforeWrite",fy="write",my="afterWrite",hy=[iy,ay,ly,cy,uy,dy,py,fy,my];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function Dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function An(e){var t=Dt(e).Element;return e instanceof t||e instanceof Element}function $t(e){var t=Dt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ki(e){if(typeof ShadowRoot>"u")return!1;var t=Dt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gy(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!$t(s)||!Qt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function yy(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(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!$t(o)||!Qt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const by={name:"applyStyles",enabled:!0,phase:"write",fn:gy,effect:yy,requires:["computeStyles"]};function qt(e){return e.split("-")[0]}var On=Math.max,Lo=Math.min,ir=Math.round;function Gs(){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 ou(){return!/^((?!chrome|android).)*safari/i.test(Gs())}function ar(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&$t(e)&&(o=e.offsetWidth>0&&ir(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ir(r.height)/e.offsetHeight||1);var i=An(e)?Dt(e):window,a=i.visualViewport,l=!ou()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/o,h=r.height/s;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Mi(e){var t=ar(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function su(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ki(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function on(e){return Dt(e).getComputedStyle(e)}function vy(e){return["table","td","th"].indexOf(Qt(e))>=0}function yn(e){return((An(e)?e.ownerDocument:e.document)||window.document).documentElement}function rs(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(ki(e)?e.host:null)||yn(e)}function il(e){return!$t(e)||on(e).position==="fixed"?null:e.offsetParent}function xy(e){var t=/firefox/i.test(Gs()),n=/Trident/i.test(Gs());if(n&&$t(e)){var r=on(e);if(r.position==="fixed")return null}var o=rs(e);for(ki(o)&&(o=o.host);$t(o)&&["html","body"].indexOf(Qt(o))<0;){var s=on(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function to(e){for(var t=Dt(e),n=il(e);n&&vy(n)&&on(n).position==="static";)n=il(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&on(n).position==="static")?t:n||xy(e)||t}function Di(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Er(e,t,n){return On(e,Lo(t,n))}function Sy(e,t,n){var r=Er(e,t,n);return r>n?n:r}function iu(){return{top:0,right:0,bottom:0,left:0}}function au(e){return Object.assign({},iu(),e)}function lu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Cy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,au(typeof t!="number"?t:lu(t,eo))};function wy(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=qt(n.placement),l=Di(a),c=[vt,Ft].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var d=Cy(o.padding,n),h=Mi(s),b=l==="y"?bt:vt,p=l==="y"?At:Ft,g=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],S=to(s),P=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,C=g/2-y/2,x=d[b],I=P-h[u]-d[p],M=P/2-h[u]/2+C,$=Er(x,M,I),R=l;n.modifiersData[r]=(t={},t[R]=$,t.centerOffset=$-M,t)}}function Py(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||su(t.elements.popper,o)&&(t.elements.arrow=o))}const ky={name:"arrow",enabled:!0,phase:"main",fn:wy,effect:Py,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lr(e){return e.split("-")[1]}var My={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dy(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ir(n*o)/o||0,y:ir(r*o)/o||0}}function al(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=i.x,b=h===void 0?0:h,p=i.y,g=p===void 0?0:p,y=typeof u=="function"?u({x:b,y:g}):{x:b,y:g};b=y.x,g=y.y;var S=i.hasOwnProperty("x"),P=i.hasOwnProperty("y"),C=vt,x=bt,I=window;if(c){var M=to(n),$="clientHeight",R="clientWidth";if(M===Dt(n)&&(M=yn(n),on(M).position!=="static"&&a==="absolute"&&($="scrollHeight",R="scrollWidth")),M=M,o===bt||(o===vt||o===Ft)&&s===Wr){x=At;var E=d&&M===I&&I.visualViewport?I.visualViewport.height:M[$];g-=E-r.height,g*=l?1:-1}if(o===vt||(o===bt||o===At)&&s===Wr){C=Ft;var F=d&&M===I&&I.visualViewport?I.visualViewport.width:M[R];b-=F-r.width,b*=l?1:-1}}var T=Object.assign({position:a},c&&My),m=u===!0?Dy({x:b,y:g},Dt(n)):{x:b,y:g};if(b=m.x,g=m.y,l){var O;return Object.assign({},T,(O={},O[x]=P?"0":"",O[C]=S?"0":"",O.transform=(I.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",O))}return Object.assign({},T,(t={},t[x]=P?g+"px":"",t[C]=S?b+"px":"",t.transform="",t))}function Iy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:qt(t.placement),variation:lr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,al(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,al(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ty={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Iy,data:{}};var io={passive:!0};function Ry(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=Dt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,io)}),a&&l.addEventListener("resize",n.update,io),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,io)}),a&&l.removeEventListener("resize",n.update,io)}}const Oy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ry,data:{}};var $y={left:"right",right:"left",bottom:"top",top:"bottom"};function Po(e){return e.replace(/left|right|bottom|top/g,function(t){return $y[t]})}var Ey={start:"end",end:"start"};function ll(e){return e.replace(/start|end/g,function(t){return Ey[t]})}function Ii(e){var t=Dt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ti(e){return ar(yn(e)).left+Ii(e).scrollLeft}function Ay(e,t){var n=Dt(e),r=yn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=ou();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Ti(e),y:l}}function Fy(e){var t,n=yn(e),r=Ii(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=On(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=On(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ti(e),l=-r.scrollTop;return on(o||n).direction==="rtl"&&(a+=On(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Ri(e){var t=on(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cu(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:$t(e)&&Ri(e)?e:cu(rs(e))}function Ar(e,t){var n;t===void 0&&(t=[]);var r=cu(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Dt(r),i=o?[s].concat(s.visualViewport||[],Ri(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(Ar(rs(i)))}function qs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ly(e,t){var n=ar(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 cl(e,t,n){return t===nu?qs(Ay(e,n)):An(t)?Ly(t,n):qs(Fy(yn(e)))}function Ny(e){var t=Ar(rs(e)),n=["absolute","fixed"].indexOf(on(e).position)>=0,r=n&&$t(e)?to(e):e;return An(r)?t.filter(function(o){return An(o)&&su(o,r)&&Qt(o)!=="body"}):[]}function jy(e,t,n,r){var o=t==="clippingParents"?Ny(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=cl(e,c,r);return l.top=On(u.top,l.top),l.right=Lo(u.right,l.right),l.bottom=Lo(u.bottom,l.bottom),l.left=On(u.left,l.left),l},cl(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function uu(e){var t=e.reference,n=e.element,r=e.placement,o=r?qt(r):null,s=r?lr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case bt:l={x:i,y:t.y-n.height};break;case At:l={x:i,y:t.y+t.height};break;case Ft:l={x:t.x+t.width,y:a};break;case vt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?Di(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case sr:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Wr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function _r(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?oy:a,c=n.rootBoundary,u=c===void 0?nu:c,d=n.elementContext,h=d===void 0?vr:d,b=n.altBoundary,p=b===void 0?!1:b,g=n.padding,y=g===void 0?0:g,S=au(typeof y!="number"?y:lu(y,eo)),P=h===vr?sy:vr,C=e.rects.popper,x=e.elements[p?P:h],I=jy(An(x)?x:x.contextElement||yn(e.elements.popper),l,u,i),M=ar(e.elements.reference),$=uu({reference:M,element:C,placement:o}),R=qs(Object.assign({},C,$)),E=h===vr?R:M,F={top:I.top-E.top+S.top,bottom:E.bottom-I.bottom+S.bottom,left:I.left-E.left+S.left,right:E.right-I.right+S.right},T=e.modifiersData.offset;if(h===vr&&T){var m=T[o];Object.keys(F).forEach(function(O){var D=[Ft,At].indexOf(O)>=0?1:-1,k=[bt,At].indexOf(O)>=0?"y":"x";F[O]+=m[k]*D})}return F}function By(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ru:l,u=lr(r),d=u?a?sl:sl.filter(function(p){return lr(p)===u}):eo,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d);var b=h.reduce(function(p,g){return p[g]=_r(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[qt(g)],p},{});return Object.keys(b).sort(function(p,g){return b[p]-b[g]})}function Vy(e){if(qt(e)===Pi)return[];var t=Po(e);return[ll(e),t,ll(t)]}function zy(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,p=b===void 0?!0:b,g=n.allowedAutoPlacements,y=t.options.placement,S=qt(y),P=S===y,C=l||(P||!p?[Po(y)]:Vy(y)),x=[y].concat(C).reduce(function(ae,V){return ae.concat(qt(V)===Pi?By(t,{placement:V,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):V)},[]),I=t.rects.reference,M=t.rects.popper,$=new Map,R=!0,E=x[0],F=0;F<x.length;F++){var T=x[F],m=qt(T),O=lr(T)===sr,D=[bt,At].indexOf(m)>=0,k=D?"width":"height",w=_r(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),A=D?O?Ft:vt:O?At:bt;I[k]>M[k]&&(A=Po(A));var L=Po(A),N=[];if(s&&N.push(w[m]<=0),a&&N.push(w[A]<=0,w[L]<=0),N.every(function(ae){return ae})){E=T,R=!1;break}$.set(T,N)}if(R)for(var Y=p?3:1,W=function(V){var q=x.find(function(ne){var K=$.get(ne);if(K)return K.slice(0,V).every(function(z){return z})});if(q)return E=q,"break"},J=Y;J>0;J--){var ce=W(J);if(ce==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const Wy={name:"flip",enabled:!0,phase:"main",fn:zy,requiresIfExists:["offset"],data:{_skip:!1}};function ul(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 dl(e){return[bt,Ft,At,vt].some(function(t){return e[t]>=0})}function _y(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=_r(t,{elementContext:"reference"}),a=_r(t,{altBoundary:!0}),l=ul(i,r),c=ul(a,o,s),u=dl(l),d=dl(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Hy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_y};function Uy(e,t,n){var r=qt(e),o=[vt,bt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[vt,Ft].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Yy(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=ru.reduce(function(u,d){return u[d]=Uy(d,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Gy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yy};function qy(e){var t=e.state,n=e.name;t.modifiersData[n]=uu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ky={name:"popperOffsets",enabled:!0,phase:"read",fn:qy,data:{}};function Qy(e){return e==="x"?"y":"x"}function Xy(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,b=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,y=_r(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=qt(t.placement),P=lr(t.placement),C=!P,x=Di(S),I=Qy(x),M=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,E=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,m={x:0,y:0};if(M){if(s){var O,D=x==="y"?bt:vt,k=x==="y"?At:Ft,w=x==="y"?"height":"width",A=M[x],L=A+y[D],N=A-y[k],Y=b?-R[w]/2:0,W=P===sr?$[w]:R[w],J=P===sr?-R[w]:-$[w],ce=t.elements.arrow,ae=b&&ce?Mi(ce):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iu(),q=V[D],ne=V[k],K=Er(0,$[w],ae[w]),z=C?$[w]/2-Y-K-q-F.mainAxis:W-K-q-F.mainAxis,G=C?-$[w]/2+Y+K+ne+F.mainAxis:J+K+ne+F.mainAxis,oe=t.elements.arrow&&to(t.elements.arrow),re=oe?x==="y"?oe.clientTop||0:oe.clientLeft||0:0,B=(O=T?.[x])!=null?O:0,ee=A+z-B-re,le=A+G-B,te=Er(b?Lo(L,ee):L,A,b?On(N,le):N);M[x]=te,m[x]=te-A}if(a){var pe,H=x==="x"?bt:vt,ye=x==="x"?At:Ft,de=M[I],Me=I==="y"?"height":"width",he=de+y[H],et=de-y[ye],Le=[bt,vt].indexOf(S)!==-1,Xe=(pe=T?.[I])!=null?pe:0,nt=Le?he:de-$[Me]-R[Me]-Xe+F.altAxis,mt=Le?de+$[Me]+R[Me]-Xe-F.altAxis:et,rt=b&&Le?Sy(nt,de,mt):Er(b?nt:he,de,b?mt:et);M[I]=rt,m[I]=rt-de}t.modifiersData[r]=m}}const Zy={name:"preventOverflow",enabled:!0,phase:"main",fn:Xy,requiresIfExists:["offset"]};function Jy(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eb(e){return e===Dt(e)||!$t(e)?Ii(e):Jy(e)}function tb(e){var t=e.getBoundingClientRect(),n=ir(t.width)/e.offsetWidth||1,r=ir(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nb(e,t,n){n===void 0&&(n=!1);var r=$t(t),o=$t(t)&&tb(t),s=yn(t),i=ar(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qt(t)!=="body"||Ri(s))&&(a=eb(t)),$t(t)?(l=ar(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ti(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function rb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function ob(e){var t=rb(e);return hy.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function sb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ib(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var pl={placement:"bottom",modifiers:[],strategy:"absolute"};function fl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ab(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?pl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,b={state:u,setOptions:function(S){var P=typeof S=="function"?S(u.options):S;g(),u.options=Object.assign({},s,u.options,P),u.scrollParents={reference:An(a)?Ar(a):a.contextElement?Ar(a.contextElement):[],popper:Ar(l)};var C=ob(ib([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(x){return x.enabled}),p(),b.update()},forceUpdate:function(){if(!h){var S=u.elements,P=S.reference,C=S.popper;if(fl(P,C)){u.rects={reference:nb(P,to(C),u.options.strategy==="fixed"),popper:Mi(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(F){return u.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var I=u.orderedModifiers[x],M=I.fn,$=I.options,R=$===void 0?{}:$,E=I.name;typeof M=="function"&&(u=M({state:u,options:R,name:E,instance:b})||u)}}}},update:sb(function(){return new Promise(function(y){b.forceUpdate(),y(u)})}),destroy:function(){g(),h=!0}};if(!fl(a,l))return b;b.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function p(){u.orderedModifiers.forEach(function(y){var S=y.name,P=y.options,C=P===void 0?{}:P,x=y.effect;if(typeof x=="function"){var I=x({state:u,name:S,instance:b,options:C}),M=function(){};d.push(I||M)}})}function g(){d.forEach(function(y){return y()}),d=[]}return b}}var lb=[Oy,Ky,Ty,by,Gy,Wy,Zy,ky,Hy],cb=ab({defaultModifiers:lb});function ub(e){return typeof e=="function"?e():e}const du=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=v.useState(null),l=Fe(v.isValidElement(r)?dr(r):null,n);if(st(()=>{s||a(ub(o)||document.body)},[o,s]),st(()=>{if(i&&!s)return js(n,i),()=>{js(n,null)}},[n,i,s]),s){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return i&&Rd.createPortal(r,i)});function db(e){return Se("MuiPopper",e)}be("MuiPopper",["root"]);function pb(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 Ks(e){return typeof e=="function"?e():e}function fb(e){return e.nodeType!==void 0}const mb=e=>{const{classes:t}=e;return ve({root:["root"]},db,t)},hb={},gb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:h={},slots:b={},TransitionProps:p,ownerState:g,...y}=t,S=v.useRef(null),P=Fe(S,n),C=v.useRef(null),x=Fe(C,d),I=v.useRef(x);st(()=>{I.current=x},[x]),v.useImperativeHandle(d,()=>C.current,[]);const M=pb(c,s),[$,R]=v.useState(M),[E,F]=v.useState(Ks(r));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{r&&F(Ks(r))},[r]),st(()=>{if(!E||!l)return;const k=L=>{R(L.placement)};let w=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{k(L)}}];a!=null&&(w=w.concat(a)),u&&u.modifiers!=null&&(w=w.concat(u.modifiers));const A=cb(E,S.current,{placement:M,...u,modifiers:w});return I.current(A),()=>{A.destroy(),I.current(null)}},[E,i,a,l,u,M]);const T={placement:$};p!==null&&(T.TransitionProps=p);const m=mb(t),O=b.root??"div",D=Ae({elementType:O,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:m.root});return f.jsx(O,{...D,children:typeof o=="function"?o(T):o})}),yb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:h=hb,popperRef:b,style:p,transition:g=!1,slotProps:y={},slots:S={},...P}=t,[C,x]=v.useState(!0),I=()=>{x(!1)},M=()=>{x(!0)};if(!l&&!u&&(!g||C))return null;let $;if(s)$=s;else if(r){const F=Ks(r);$=F&&fb(F)?dt(F).body:dt(null).body}const R=!u&&l&&(!g||C)?"none":void 0,E=g?{in:u,onEnter:I,onExited:M}:void 0;return f.jsx(du,{disablePortal:a,container:$,children:f.jsx(gb,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:g?!C:u,placement:d,popperOptions:h,popperRef:b,slotProps:y,slots:S,...P,style:{position:"fixed",top:0,left:0,display:R,...p},TransitionProps:E,children:o})})}),bb=_(yb,{name:"MuiPopper",slot:"Root"})({}),Oi=v.forwardRef(function(t,n){const r=Wt(),o=Oe({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:b,placement:p,popperOptions:g,popperRef:y,transition:S,slots:P,slotProps:C,...x}=o,I=P?.root??a?.Root,M={anchorEl:s,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:b,placement:p,popperOptions:g,popperRef:y,transition:S,...x};return f.jsx(bb,{as:i,direction:r?"rtl":"ltr",slots:{root:I},slotProps:C??l,...M,ref:n})}),vb=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xb(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 Sb(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Cb(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Sb(e))}function wb(e){const t=[],n=[];return Array.from(e.querySelectorAll(vb)).forEach((r,o)=>{const s=xb(r);s===-1||!Cb(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Pb(){return!0}function pu(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=wb,isEnabled:i=Pb,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),h=v.useRef(null),b=v.useRef(!1),p=v.useRef(null),g=Fe(dr(t),p),y=v.useRef(null);v.useEffect(()=>{!a||!p.current||(b.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!p.current)return;const C=dt(p.current);return p.current.contains(C.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),b.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),v.useEffect(()=>{if(!a||!p.current)return;const C=dt(p.current),x=$=>{y.current=$,!(r||!i()||$.key!=="Tab")&&C.activeElement===p.current&&$.shiftKey&&(l.current=!0,u.current&&u.current.focus())},I=()=>{const $=p.current;if($===null)return;if(!C.hasFocus()||!i()||l.current){l.current=!1;return}if($.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let R=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(R=s(p.current)),R.length>0){const E=!!(y.current?.shiftKey&&y.current?.key==="Tab"),F=R[0],T=R[R.length-1];typeof F!="string"&&typeof T!="string"&&(E?T.focus():F.focus())}else $.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",x,!0);const M=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(M),C.removeEventListener("focusin",I),C.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const S=C=>{d.current===null&&(d.current=C.relatedTarget),b.current=!0,h.current=C.target;const x=t.props.onFocus;x&&x(C)},P=C=>{d.current===null&&(d.current=C.relatedTarget),b.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:g,onFocus:S}),f.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:u,"data-testid":"sentinelEnd"})]})}function kb(e){return Se("MuiPickersPopper",e)}be("MuiPickersPopper",["root","paper"]);function Mb(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Db=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},gt=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?gt(t.shadowRoot):t:null},Ib="@media (pointer: fine)",Tb="@media (prefers-reduced-motion: reduce)",Zn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ml=Zn&&Zn[1]?parseInt(Zn[1],10):null,hl=Zn&&Zn[2]?parseInt(Zn[2],10):null,Rb=ml&&ml<10||hl&&hl<13||!1,fu=()=>Fc(Tb,{defaultMatches:!1})||Rb,Ob=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],$b=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},kb,t)},Eb=_(Oi,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Ab=_(jn,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function Fb(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Lb(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),s=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const i=fe(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=dt(o.current);if(!o.current||"clientX"in l&&Fb(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=dt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),v.useEffect(()=>{if(e){const l=dt(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const Nb=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ke(e,Ob),d=j({},o,{placement:r}),h=Ae({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return f.jsx(n,j({},u,h,{onClick:b=>{l(b),h.onClick?.(b)},onTouchStart:b=>{c(b),h.onTouchStart?.(b)},ownerState:d,children:s}))});function jb(e){const t=He({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:d,slotProps:h,reduceAnimations:b}=t;v.useEffect(()=>{function k(w){l&&w.key==="Escape"&&a()}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[a,l]);const p=v.useRef(null);v.useEffect(()=>{c==="tooltip"||s&&!s()||(l?p.current=gt(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[l,c,s]);const[g,y,S]=Lb(l,i??a),P=v.useRef(null),C=Fe(P,o),x=Fe(C,g),I=t,M=$b(I),$=fu(),R=b??$,E=k=>{k.key==="Escape"&&(k.stopPropagation(),a())},F=d?.desktopTransition??R?En:zr,T=d?.desktopTrapFocus??pu,m=d?.desktopPaper??Ab,O=d?.popper??Eb,D=Ae({elementType:O,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:E},className:M.root,ownerState:t});return f.jsx(O,j({},D,{children:({TransitionProps:k,placement:w})=>f.jsx(T,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},h?.desktopTrapFocus,{children:f.jsx(F,j({},k,h?.desktopTransition,{children:f.jsx(Nb,{PaperComponent:m,ownerState:I,popperPlacement:w,ref:x,onPaperClick:y,onPaperTouchStart:S,paperClasses:M.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}const Bb=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,s]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=v.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},$i=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Ue(),a=v.useRef(n),l=t??a.current??s.emptyValue,c=v.useMemo(()=>s.getTimezone(i,l),[i,s,l]),u=fe(p=>c==null?p:s.setTimezone(i,c,p));let d;e?d=e:c?d=c:r?d=i.getTimezone(r):d="default";const h=v.useMemo(()=>s.setTimezone(i,d,l),[s,i,d,l]),b=fe((p,...g)=>{const y=u(p);o?.(y,...g)});return{value:h,handleValueChange:b,timezone:d}},Ei=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Mt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=fe((u,...d)=>{l(u),s?.(u,...d)});return $i({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},Vb=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},zb=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Wb=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},_b=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:h}=v.useRef(l),{current:b}=v.useRef(a!==void 0),[p,g]=v.useState(u),y=Ue(),S=Ln(),{isOpen:P,setIsOpen:C}=Bb(e),{timezone:x,value:I,handleValueChange:M}=$i({timezone:u,value:a,defaultValue:h,referenceDate:d,onChange:i,valueManager:t}),[$,R]=v.useState(()=>{let z;return I!==void 0?z=I:h!==void 0?z=h:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),E=t.getTimezone(y,$.draft);p!==u&&(g(u),u&&E&&u!==E&&R(z=>j({},z,{draft:t.setTimezone(y,u,z.draft)})));const{getValidationErrorForNewValue:F}=Zc({props:e,validator:o,timezone:x,value:$.draft,onError:e.onError}),T=fe(z=>{const G={action:z,dateState:$,hasChanged:te=>!t.areValuesEqual(y,z.value,te),isControlled:b,closeOnSelect:c},oe=Vb(G),re=zb(G),B=Wb(G);R(te=>j({},te,{draft:z.value,lastPublishedValue:oe?z.value:te.lastPublishedValue,lastCommittedValue:re?z.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ee=null;const le=()=>(ee||(ee={validationError:z.name==="setValueFromField"?z.context.validationError:F(z.value)},z.name==="setValueFromShortcut"&&(ee.shortcut=z.shortcut)),ee);oe&&M(z.value,le()),re&&s&&s(z.value,le()),B&&C(!1)});if($.lastControlledValue!==a){const z=t.areValuesEqual(y,$.draft,I);R(G=>j({},G,{lastControlledValue:a},z?{}:{lastCommittedValue:I,lastPublishedValue:I,draft:I,hasBeenModifiedSinceMount:!0}))}const m=fe(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),O=fe(()=>{T({value:$.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=fe(()=>{T({value:$.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),k=fe(()=>{T({value:$.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),w=fe(()=>{T({value:t.getTodayValue(y,x,n),name:"setValueFromAction",pickerAction:"today"})}),A=fe(z=>{z.preventDefault(),C(!0)}),L=fe(z=>{z?.preventDefault(),C(!1)}),N=fe((z,G="partial")=>T({name:"setValueFromView",value:z,selectionState:G})),Y=fe((z,G,oe)=>T({name:"setValueFromShortcut",value:z,changeImportance:G,shortcut:oe})),W=fe((z,G)=>T({name:"setValueFromField",value:z,context:G})),J={onClear:m,onAccept:O,onDismiss:D,onCancel:k,onSetToday:w,onOpen:A,onClose:L},ce={value:$.draft,onChange:W},ae=v.useMemo(()=>t.cleanValue(y,$.draft),[y,t,$.draft]),V={value:ae,onChange:N,onClose:L,open:P},ne=j({},J,{value:ae,onChange:N,onSelectShortcut:Y,isValid:z=>{const G=o({adapter:S,value:z,timezone:x,props:e});return!t.hasError(G)}}),K=v.useMemo(()=>({onOpen:A,onClose:L,open:P}),[P,L,A]);return{open:P,fieldProps:ce,viewProps:V,layoutProps:ne,actions:J,contextValue:K}};function mu({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=v.useRef(n),c=v.useRef(o),u=v.useRef(o.includes(n)?n:o[0]),[d,h]=Mt({name:"useViews",state:"view",controlled:r,default:u.current}),b=v.useRef(s?d:null),[p,g]=Mt({name:"useViews",state:"focusedView",controlled:i,default:b.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some($=>!o.includes($)))&&(h(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,h,d,o]);const y=o.indexOf(d),S=o[y-1]??null,P=o[y+1]??null,C=fe(($,R)=>{g(R?$:E=>$===E?null:E),a?.($,R)}),x=fe($=>{C($,!0),$!==d&&(h($),t&&t($))}),I=fe(()=>{P&&x(P)}),M=fe(($,R,E)=>{const F=R==="finish",T=E?o.indexOf(E)<o.length-1:!!P;if(e($,F&&T?"partial":R,E),E&&E!==d){const O=o[o.indexOf(E)+1];O&&x(O)}else F&&I()});return{view:d,setView:x,focusedView:p,setFocusedView:C,nextView:P,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:M}}const Hb=["className","sx"],Ub=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:i,open:a,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:h,viewRenderers:b,timezone:p}=e,g=ke(e,Hb),{view:y,setView:S,defaultView:P,focusedView:C,setFocusedView:x,setValueAndGoToNextView:I}=mu({view:c,views:u,openTo:d,onChange:i,onViewChange:h,autoFocus:r}),{hasUIView:M,viewModeLookup:$}=v.useMemo(()=>u.reduce((D,k)=>{let w;return b[k]!=null?w="UI":w="field",D.viewModeLookup[k]=w,w==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,u]),R=v.useMemo(()=>u.reduce((D,k)=>b[k]!=null&&Ch(k)?D+1:D,0),[b,u]),E=$[y],F=fe(()=>E==="UI"),[T,m]=v.useState(E==="UI"?y:null);return T!==y&&$[y]==="UI"&&m(y),st(()=>{E==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(y),s?.current?.focusField(y)}))},[y]),st(()=>{if(!a)return;let D=y;E==="field"&&T!=null&&(D=T),D!==P&&$[D]==="UI"&&$[P]==="UI"&&(D=P),D!==y&&S(D),x(D,!0)},[a]),{hasUIView:M,shouldRestoreFocus:F,layoutProps:{views:u,view:T,onViewChange:S},renderCurrentView:()=>{if(T==null)return null;const D=b[T];if(D==null)return null;const k=j({},g,n,t,{views:u,timezone:p,onChange:I,view:T,onViewChange:S,focusedView:C,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(b,T,k):D(k)}}};function gl(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Yb=(e,t)=>{const[n,r]=v.useState(gl);return st(()=>{const s=()=>{r(gl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Mb(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Gb=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Yb(n.views,o),i=Wt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function qb(e){const{props:t,pickerValueResponse:n}=e;return v.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const hu=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=_b({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Ub({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=Gb({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=qb({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:h}};function gu(e){return Se("MuiPickersLayout",e)}const Sn=be("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Kb(e){return Se("MuiButton",e)}const Cn=be("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"]),Qb=v.createContext({}),Xb=v.createContext(void 0),Zb=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:i,loadingPosition:a,classes:l}=e,c={root:["root",i&&"loading",s,`${s}${ue(t)}`,`size${ue(o)}`,`${s}Size${ue(o)}`,`color${ue(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ue(a)}`],startIcon:["icon","startIcon",`iconSize${ue(o)}`],endIcon:["icon","endIcon",`iconSize${ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ve(c,Kb,l);return{...l,...u}},yu=[{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}}}],Jb=_(or,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Re(({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"},[`&.${Cn.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]},[`&.${Cn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Cn.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)",[`&.${Cn.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(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cn.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}),[`&.${Cn.loading}`]:{color:"transparent"}}}]}})),ev=_("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ue(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}},...yu]})),tv=_("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ue(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}},...yu]})),nv=_("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}}]})),yl=_("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Tr=v.forwardRef(function(t,n){const r=v.useContext(Qb),o=v.useContext(Xb),s=Br(r,t),i=Oe({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:p,focusVisibleClassName:g,fullWidth:y=!1,id:S,loading:P=null,loadingIndicator:C,loadingPosition:x="center",size:I="medium",startIcon:M,type:$,variant:R="text",...E}=i,F=_t(S),T=C??f.jsx(wi,{"aria-labelledby":F,color:"inherit",size:16}),m={...i,color:l,component:c,disabled:d,disableElevation:h,disableFocusRipple:b,fullWidth:y,loading:P,loadingIndicator:T,loadingPosition:x,size:I,type:$,variant:R},O=Zb(m),D=(M||P&&x==="start")&&f.jsx(ev,{className:O.startIcon,ownerState:m,children:M||f.jsx(yl,{className:O.loadingIconPlaceholder,ownerState:m})}),k=(p||P&&x==="end")&&f.jsx(tv,{className:O.endIcon,ownerState:m,children:p||f.jsx(yl,{className:O.loadingIconPlaceholder,ownerState:m})}),w=o||"",A=typeof P=="boolean"?f.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:P&&f.jsx(nv,{className:O.loadingIndicator,ownerState:m,children:T})}):null;return f.jsxs(Jb,{ownerState:m,className:me(r.className,O.root,u,w),component:c,disabled:d||P,focusRipple:!b,focusVisibleClassName:me(O.focusVisible,g),ref:n,type:$,id:P?F:S,...E,classes:O,children:[D,x!=="end"&&A,a,x==="end"&&A,k]})});function rv(e){return Se("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const ov=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},rv,t)},sv=_("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}}}]}),iv=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=ov(a);return f.jsx(sv,{className:me(l.root,o),ownerState:a,ref:n,...i})}),av=["onAccept","onClear","onCancel","onSetToday","actions"];function lv(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ke(e,av),a=an();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return f.jsx(Tr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(Tr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(Tr,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(Tr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx(iv,j({},i,{children:l}))}const Jn=v.createContext({});function cv(e){return Se("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const uv=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cv,t)},dv=_("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}}]}),bu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=v.useMemo(()=>({dense:a}),[a]),h={...r,component:i,dense:a,disablePadding:l},b=uv(h);return f.jsx(Jn.Provider,{value:d,children:f.jsxs(dv,{as:i,className:me(b.root,s),ref:n,ownerState:h,...u,children:[c,o]})})});function pv(e){return Se("MuiListItem",e)}be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const fv=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function mv(e){return Se("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const hv=e=>{const{disableGutters:t,classes:n}=e;return ve({root:["root",t&&"disableGutters"]},mv,n)},gv=_("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}}]}),vu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=v.useContext(Jn),a={...r,disableGutters:i.disableGutters},l=hv(a);return f.jsx(gv,{className:me(l.root,o),ownerState:a,ref:n,...s})});vu.muiName="ListItemSecondaryAction";const yv=(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]},bv=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return ve({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},pv,n)},vv=_("div",{name:"MuiListItem",slot:"Root",overridesResolver:yv})(Re(({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:{[`& > .${fv.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}}]}))),xv=_("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Sv=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...h}={},dense:b=!1,disableGutters:p=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:S,slotProps:P={},slots:C={},...x}=r,I=v.useContext(Jn),M=v.useMemo(()=>({dense:b||I.dense||!1,alignItems:o,disableGutters:p}),[o,I.dense,b,p]),$=v.useRef(null),R=v.Children.toArray(s),E=R.length&&ho(R[R.length-1],["ListItemSecondaryAction"]),F={...r,alignItems:o,dense:M.dense,disableGutters:p,disablePadding:g,divider:y,hasSecondaryAction:E},T=bv(F),m=Fe($,n),O=C.root||l.Root||vv,D=P.root||c.root||{},k={className:me(T.root,D.className,i),...x};let w=a||"li";return E?(w=!k.component&&!a?"div":w,u==="li"&&(w==="li"?w="div":k.component==="li"&&(k.component="div")),f.jsx(Jn.Provider,{value:M,children:f.jsxs(xv,{as:u,className:me(T.container,d),ref:m,ownerState:F,...h,children:[f.jsx(O,{...D,...!rr(O)&&{as:w,ownerState:{...F,...D.ownerState}},...k,children:R}),R.pop()]})})):f.jsx(Jn.Provider,{value:M,children:f.jsxs(O,{...D,as:w,ref:m,...!rr(O)&&{ownerState:{...F,...D.ownerState}},...k,children:[R,S&&f.jsx(vu,{children:S})]})})}),Cv=ct(f.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"}));function wv(e){return Se("MuiChip",e)}const Te=be("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function We(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...h}=s,b=u[e]||r,p=Jo(d[e],o),{props:{component:g,...y},internalRef:S}=Vc({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:p}),P=Fe(S,p?.ref,t.ref),C=e==="root"?g||c:g,x=Bc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...y,...C&&!a&&{as:C},...C&&a&&{component:C},ref:P},o);return[b,x]}const Pv=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,a&&"clickable",a&&`clickableColor${ue(o)}`,i&&"deletable",i&&`deletableColor${ue(o)}`,`${l}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(l)}Color${ue(o)}`]};return ve(c,wv,t)},kv=_("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${Te.avatar}`]:t.avatar},{[`& .${Te.avatar}`]:t[`avatar${ue(a)}`]},{[`& .${Te.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${Te.icon}`]:t.icon},{[`& .${Te.icon}`]:t[`icon${ue(a)}`]},{[`& .${Te.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${Te.deleteIcon}`]:t.deleteIcon},{[`& .${Te.deleteIcon}`]:t[`deleteIcon${ue(a)}`]},{[`& .${Te.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${Te.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(r)}`]},t.root,t[`size${ue(a)}`],t[`color${ue(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ue(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ue(r)}`],t[l],t[`${l}${ue(r)}`]]}})(Re(({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",[`&.${Te.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Te.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Te.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Te.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Te.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Te.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Te.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,[`& .${Te.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Te.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,[`& .${Te.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:{[`& .${Te.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Te.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Te.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:{[`&.${Te.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}`)},[`&.${Te.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, &.${Te.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]}`,[`&.${Te.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Te.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Te.avatar}`]:{marginLeft:4},[`& .${Te.avatarSmall}`]:{marginLeft:2},[`& .${Te.icon}`]:{marginLeft:4},[`& .${Te.iconSmall}`]:{marginLeft:2},[`& .${Te.deleteIcon}`]:{marginRight:5},[`& .${Te.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)}`,[`&.${Te.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Te.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Te.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Mv=_("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function bl(e){return e.key==="Backspace"||e.key==="Delete"}const xu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:h,onClick:b,onDelete:p,onKeyDown:g,onKeyUp:y,size:S="medium",variant:P="filled",tabIndex:C,skipFocusWhenDisabled:x=!1,slots:I={},slotProps:M={},...$}=r,R=v.useRef(null),E=Fe(R,n),F=q=>{q.stopPropagation(),p&&p(q)},T=q=>{q.currentTarget===q.target&&bl(q)&&q.preventDefault(),g&&g(q)},m=q=>{q.currentTarget===q.target&&p&&bl(q)&&p(q),y&&y(q)},O=i!==!1&&b?!0:i,D=O||p?or:l||"div",k={...r,component:D,disabled:u,size:S,color:a,iconColor:v.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:O,variant:P},w=Pv(k),A=D===or?{component:l||"div",focusVisibleClassName:w.focusVisible,...p&&{disableRipple:!0}}:{};let L=null;p&&(L=c&&v.isValidElement(c)?v.cloneElement(c,{className:me(c.props.className,w.deleteIcon),onClick:F}):f.jsx(Cv,{className:w.deleteIcon,onClick:F}));let N=null;o&&v.isValidElement(o)&&(N=v.cloneElement(o,{className:me(w.avatar,o.props.className)}));let Y=null;d&&v.isValidElement(d)&&(Y=v.cloneElement(d,{className:me(w.icon,d.props.className)}));const W={slots:I,slotProps:M},[J,ce]=We("root",{elementType:kv,externalForwardedProps:{...W,...$},ownerState:k,shouldForwardComponentProp:!0,ref:E,className:me(w.root,s),additionalProps:{disabled:O&&u?!0:void 0,tabIndex:x&&u?-1:C,...A},getSlotProps:q=>({...q,onClick:ne=>{q.onClick?.(ne),b?.(ne)},onKeyDown:ne=>{q.onKeyDown?.(ne),T(ne)},onKeyUp:ne=>{q.onKeyUp?.(ne),m(ne)}})}),[ae,V]=We("label",{elementType:Mv,externalForwardedProps:W,ownerState:k,className:w.label});return f.jsxs(J,{as:D,...ce,children:[N||Y,f.jsx(ae,{...V,children:h}),L]})}),Hr=36,os=2,ss=320,Dv=280,Ai=336,Iv=["items","changeImportance","isLandscape","onChange","isValid"],Tv=["getValue"];function Rv(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ke(e,Iv);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ke(a,Tv);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(bu,j({dense:!0,sx:[{maxHeight:Ai,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(Sv,{children:f.jsx(xu,j({},a))},a.id??a.label))}))}function Ov(e){return e.view!==null}const $v=e=>{const{classes:t,isLandscape:n}=e;return ve({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},gu,t)},Ev=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:h,isLandscape:b,disabled:p,readOnly:g,children:y,slots:S,slotProps:P}=e,C=$v(e),x=S?.actionBar??lv,I=Ae({elementType:x,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:C.actionBar,ownerState:j({},e,{wrapperVariant:t})}),M=f.jsx(x,j({},I)),$=S?.toolbar,R=Ae({elementType:$,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:p,readOnly:g},className:C.toolbar,ownerState:j({},e,{wrapperVariant:t})}),E=Ov(R)&&$?f.jsx($,j({},R)):null,F=y,T=S?.tabs,m=i&&T?f.jsx(T,j({view:i,onViewChange:l,className:C.tabs},P?.tabs)):null,O=S?.shortcuts??Rv,D=Ae({elementType:O,externalSlotProps:P?.shortcuts,additionalProps:{isValid:h,isLandscape:b,onChange:d},className:C.shortcuts,ownerState:{isValid:h,isLandscape:b,onChange:d,wrapperVariant:t}}),k=i&&O?f.jsx(O,j({},D)):null;return{toolbar:E,content:F,tabs:m,actionBar:M,shortcuts:k}},Av=e=>{const{isLandscape:t,classes:n}=e;return ve({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},gu,n)},Fv=_("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Sn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Sn.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Sn.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Sn.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Sn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Sn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Sn.shortcuts}`]:{gridColumn:3}}}]}),Lv=_("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Su=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=Ev(r),{sx:c,className:u,isLandscape:d,wrapperVariant:h}=r,b=Av(r);return f.jsxs(Fv,{ref:n,sx:c,className:me(b.root,u),ownerState:r,children:[d?l:o,d?o:l,f.jsx(Lv,{className:b.contentWrapper,children:h==="desktop"?f.jsxs(v.Fragment,{children:[s,i]}):f.jsxs(v.Fragment,{children:[i,s]})}),a]})}),Nv=v.createContext(null);function Cu(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(Nv.Provider,{value:t,children:f.jsx(Vr,{localeText:n,children:r})})}const jv=["props","getOpenDialogAriaText"],Bv=["ownerState"],Vv=["ownerState"],zv=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ke(e,jv);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,name:p,label:g,inputRef:y,readOnly:S,disabled:P,autoFocus:C,localeText:x,reduceAnimations:I}=t,M=v.useRef(null),$=v.useRef(null),R=_t(),E=s?.toolbar?.hidden??!1,{open:F,actions:T,hasUIView:m,layoutProps:O,renderCurrentView:D,shouldRestoreFocus:k,fieldProps:w,contextValue:A,ownerState:L}=hu(j({},r,{props:t,fieldRef:$,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=o.inputAdornment??Jc,Y=Ae({elementType:N,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=ke(Y,Bv),J=o.openPickerButton??Nn,ce=Ae({elementType:J,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:P||S,onClick:F?T.onClose:T.onOpen,"aria-label":n(w.value),edge:W.position},ownerState:t}),ae=ke(ce,Vv),V=o.openPickerIcon,q=Ae({elementType:V,externalSlotProps:s?.openPickerIcon,ownerState:L}),ne=o.field,K=Ae({elementType:ne,externalSlotProps:s?.field,additionalProps:j({},w,E&&{id:R},{readOnly:S,disabled:P,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,label:g,name:p,autoFocus:C&&!t.open,focused:F?!0:void 0},y?{inputRef:y}:{}),ownerState:t});m&&(K.InputProps=j({},K.InputProps,{ref:M},!t.disableOpenPicker&&{[`${W.position}Adornment`]:f.jsx(N,j({},W,{children:f.jsx(J,j({},ae,{children:f.jsx(V,j({},q))}))}))}));const z=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},K.slots),G=o.layout??Su;let oe=R;E&&(g?oe=`${R}-label`:oe=void 0);const re=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":oe},s?.popper)}),B=Fe($,K.unstableFieldRef);return{renderPicker:()=>f.jsxs(Cu,{contextValue:A,localeText:x,children:[f.jsx(ne,j({},K,{slots:z,slotProps:re,unstableFieldRef:B})),f.jsx(jb,j({role:"dialog",placement:"bottom-start",anchorEl:M.current},T,{open:F,slots:o,slotProps:re,shouldRestoreFocus:k,reduceAnimations:I,children:f.jsx(G,j({},O,re?.layout,{slots:o,slotProps:re,children:D()}))}))]})}},Wv=ct(f.jsx("path",{d:"M7 10l5 5 5-5z"})),_v=ct(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Hv=ct(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Uv=ct(f.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"}));ct(f.jsxs(v.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));ct(f.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"}));ct(f.jsxs(v.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Yv=ct(f.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"}));function ao(e){return parseInt(e,10)||0}const Gv={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qv(e){for(const t in e)return!1;return!0}function vl(e){return qv(e)||e.outerHeightStyle===0&&!e.overflowing}const Kv=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=v.useRef(a!=null),u=v.useRef(null),d=Fe(n,u),h=v.useRef(null),b=v.useRef(null),p=v.useCallback(()=>{const C=u.current,x=b.current;if(!C||!x)return;const M=rn(C).getComputedStyle(C);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=M.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
128
|
+
`&&(x.value+=" ");const $=M.boxSizing,R=ao(M.paddingBottom)+ao(M.paddingTop),E=ao(M.borderBottomWidth)+ao(M.borderTopWidth),F=x.scrollHeight;x.value="x";const T=x.scrollHeight;let m=F;s&&(m=Math.max(Number(s)*T,m)),o&&(m=Math.min(Number(o)*T,m)),m=Math.max(m,T);const O=m+($==="border-box"?R+E:0),D=Math.abs(m-F)<=1;return{outerHeightStyle:O,overflowing:D}},[o,s,t.placeholder]),g=fe(()=>{const C=u.current,x=p();if(!C||!x||vl(x))return!1;const I=x.outerHeightStyle;return h.current!=null&&h.current!==I}),y=v.useCallback(()=>{const C=u.current,x=p();if(!C||!x||vl(x))return;const I=x.outerHeightStyle;h.current!==I&&(h.current=I,C.style.height=`${I}px`),C.style.overflow=x.overflowing?"hidden":""},[p]),S=v.useRef(-1);st(()=>{const C=fc(y),x=u?.current;if(!x)return;const I=rn(x);I.addEventListener("resize",C);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{g()&&(M.unobserve(x),cancelAnimationFrame(S.current),y(),S.current=requestAnimationFrame(()=>{M.observe(x)}))}),M.observe(x)),()=>{C.clear(),cancelAnimationFrame(S.current),I.removeEventListener("resize",C),M&&M.disconnect()}},[p,y,g]),st(()=>{y()});const P=C=>{c||y();const x=C.target,I=x.value.length,M=x.value.endsWith(`
|
|
129
|
+
`),$=x.selectionStart===I;M&&$&&x.setSelectionRange(I,I),r&&r(C)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",{value:a,onChange:P,ref:d,rows:s,style:i,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...Gv.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function Bn({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function xl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function No(e,t=!1){return e&&(xl(e.value)&&e.value!==""||t&&xl(e.defaultValue)&&e.defaultValue!=="")}function Qv(e){return e.startAdornment}function Xv(e){return Se("MuiInputBase",e)}const wt=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Sl;const is=(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${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},as=(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]},Zv=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:b,type:p}=e,g={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",h&&h!=="medium"&&`size${ue(h)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return ve(g,Xv,t)},ls=_("div",{name:"MuiInputBase",slot:"Root",overridesResolver:is})(Re(({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",[`&.${wt.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%"}}]}))),cs=_("input",{name:"MuiInputBase",slot:"Input",overridesResolver:as})(Re(({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})},r={opacity:"0 !important"},o=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] + .${wt.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${wt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.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:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Cl=Jf({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Fi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:b,endAdornment:p,error:g,fullWidth:y=!1,id:S,inputComponent:P="input",inputProps:C={},inputRef:x,margin:I,maxRows:M,minRows:$,multiline:R=!1,name:E,onBlur:F,onChange:T,onClick:m,onFocus:O,onKeyDown:D,onKeyUp:k,placeholder:w,readOnly:A,renderSuffix:L,rows:N,size:Y,slotProps:W={},slots:J={},startAdornment:ce,type:ae="text",value:V,...q}=r,ne=C.value!=null?C.value:V,{current:K}=v.useRef(ne!=null),z=v.useRef(),G=v.useCallback(Ce=>{},[]),oe=Fe(z,x,C.ref,G),[re,B]=v.useState(!1),ee=Bt(),le=Bn({props:r,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});le.focused=ee?ee.focused:re,v.useEffect(()=>{!ee&&h&&re&&(B(!1),F&&F())},[ee,h,re,F]);const te=ee&&ee.onFilled,pe=ee&&ee.onEmpty,H=v.useCallback(Ce=>{No(Ce)?te&&te():pe&&pe()},[te,pe]);st(()=>{K&&H({value:ne})},[ne,H,K]);const ye=Ce=>{O&&O(Ce),C.onFocus&&C.onFocus(Ce),ee&&ee.onFocus?ee.onFocus(Ce):B(!0)},de=Ce=>{F&&F(Ce),C.onBlur&&C.onBlur(Ce),ee&&ee.onBlur?ee.onBlur(Ce):B(!1)},Me=(Ce,...tt)=>{if(!K){const St=Ce.target||z.current;if(St==null)throw new Error(tn(1));H({value:St.value})}C.onChange&&C.onChange(Ce,...tt),T&&T(Ce,...tt)};v.useEffect(()=>{H(z.current)},[]);const he=Ce=>{z.current&&Ce.currentTarget===Ce.target&&z.current.focus(),m&&m(Ce)};let et=P,Le=C;R&&et==="input"&&(N?Le={type:void 0,minRows:N,maxRows:N,...Le}:Le={type:void 0,maxRows:M,minRows:$,...Le},et=Kv);const Xe=Ce=>{H(Ce.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};v.useEffect(()=>{ee&&ee.setAdornedStart(!!ce)},[ee,ce]);const nt={...r,color:le.color||"primary",disabled:le.disabled,endAdornment:p,error:le.error,focused:le.focused,formControl:ee,fullWidth:y,hiddenLabel:le.hiddenLabel,multiline:R,size:le.size,startAdornment:ce,type:ae},mt=Zv(nt),rt=J.root||c.Root||ls,xt=W.root||u.root||{},_e=J.input||c.Input||cs;return Le={...Le,...W.input??u.input},f.jsxs(v.Fragment,{children:[!b&&typeof Cl=="function"&&(Sl||(Sl=f.jsx(Cl,{}))),f.jsxs(rt,{...xt,ref:n,onClick:he,...q,...!rr(rt)&&{ownerState:{...nt,...xt.ownerState}},className:me(mt.root,xt.className,a,A&&"MuiInputBase-readOnly"),children:[ce,f.jsx(ns.Provider,{value:null,children:f.jsx(_e,{"aria-invalid":le.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:d,disabled:le.disabled,id:S,onAnimationStart:Xe,name:E,placeholder:w,readOnly:A,required:le.required,rows:N,value:ne,onKeyDown:D,onKeyUp:k,type:ae,...Le,...!rr(_e)&&{as:et,ownerState:{...nt,...Le.ownerState}},ref:oe,className:me(mt.input,Le.className,A&&"MuiInputBase-readOnly"),onBlur:de,onChange:Me,onFocus:ye})}),p,L?L({...le,startAdornment:ce}):null]})]})});function Jv(e){return Se("MuiInput",e)}const fn={...wt,...be("MuiInput",["root","underline","input"])},ex=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},Jv,t);return{...t,...o}},tx=_(ls,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...is(e,t),!n.disableUnderline&&t.underline]}})(Re(({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:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${fn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fn.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(.${fn.disabled}, .${fn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),nx=_(cs,{name:"MuiInput",slot:"Input",overridesResolver:as})({}),Li=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:h="text",...b}=r,p=ex(r),y={root:{ownerState:{disableUnderline:o}}},S=u??i?ft(u??i,y):y,P=d.root??s.Root??tx,C=d.input??s.Input??nx;return f.jsx(Fi,{slots:{root:P,input:C},slotProps:S,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...b,classes:p})});Li.muiName="Input";function rx(e){return Se("MuiFilledInput",e)}const Pt={...wt,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ox=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ue(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=ve(l,rx,t);return{...t,...c}},sx=_(ls,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...is(e,t),!n.disableUnderline&&t.underline]}})(Re(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Pt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Pt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:i})=>!i.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"},[`&.${Pt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pt.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(.${Pt.disabled}, .${Pt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yt()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ix=_(cs,{name:"MuiFilledInput",slot:"Input",overridesResolver:as})(Re(({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}}]}))),Ni=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:h={},type:b="text",...p}=r,g={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},y=ox(r),S={root:{ownerState:g},input:{ownerState:g}},P=d??i?ft(S,d??i):S,C=h.root??s.Root??sx,x=h.input??s.Input??ix;return f.jsx(Fi,{slots:{root:C,input:x},slotProps:P,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...p,classes:y})});Ni.muiName="Input";var wl;const ax=_("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:jt})({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%"}),lx=_("legend",{name:"MuiNotchedOutlined",shouldForwardProp:jt})(Re(({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 cx(e){const{children:t,classes:n,className:r,label:o,notched:s,...i}=e,a=o!=null&&o!=="",l={...e,notched:s,withLabel:a};return f.jsx(ax,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(lx,{ownerState:l,children:a?f.jsx("span",{children:o}):wl||(wl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function ux(e){return Se("MuiOutlinedInput",e)}const Tt={...wt,...be("MuiOutlinedInput",["root","notchedOutline","input"])},dx=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ux,t);return{...t,...r}},px=_(ls,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:is})(Re(({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 .${Tt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Tt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Tt.focused} .${Tt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yt()).map(([n])=>({props:{color:n},style:{[`&.${Tt.focused} .${Tt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Tt.error} .${Tt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Tt.disabled} .${Tt.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:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),fx=_(cx,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Re(({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}})),mx=_(cs,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:as})(Re(({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}}]}))),ji=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:h="text",...b}=r,p=dx(r),g=Bt(),y=Bn({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:s,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},P=u.root??o.Root??px,C=u.input??o.Input??mx,[x,I]=We("notchedOutline",{elementType:fx,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:a!=null&&a!==""&&y.required?f.jsxs(v.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Fi,{slots:{root:P,input:C},slotProps:d,renderSuffix:M=>f.jsx(x,{...I,notched:typeof c<"u"?c:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:h,...b,classes:{...p,notchedOutline:null}})});ji.muiName="Input";function hx(e){return Se("MuiFormLabel",e)}const Fr=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),gx=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ue(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return ve(l,hx,t)},yx=_("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Re(({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:{[`&.${Fr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Fr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Fr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),bx=_("span",{name:"MuiFormLabel",slot:"Asterisk"})(Re(({theme:e})=>({[`&.${Fr.error}`]:{color:(e.vars||e).palette.error.main}}))),vx=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:d,required:h,...b}=r,p=Bt(),g=Bn({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},S=gx(y);return f.jsxs(yx,{as:a,ownerState:y,className:me(S.root,s),ref:n,...b,children:[o,g.required&&f.jsxs(bx,{ownerState:y,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function xx(e){return Se("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Sx=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ue(r)}`,i],asterisk:[a&&"asterisk"]},c=ve(l,xx,t);return{...t,...c}},Cx=_(vx,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fr.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]]}})(Re(({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:r})=>t==="filled"&&n.shrink&&r==="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)"}}]}))),Bi=v.forwardRef(function(t,n){const r=Oe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=Bt();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const h=Bn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},p=Sx(b);return f.jsx(Cx,{"data-shrink":d,ref:n,className:me(p.root,l),...c,ownerState:b,classes:p})});function wx(e){return Se("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Px=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return ve(o,wx,t)},kx=_("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ue(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%"}}]}),Vi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:h=!1,margin:b="none",required:p=!1,size:g="medium",variant:y="outlined",...S}=r,P={...r,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:h,margin:b,required:p,size:g,variant:y},C=Px(P),[x,I]=v.useState(()=>{let k=!1;return o&&v.Children.forEach(o,w=>{if(!ho(w,["Input","Select"]))return;const A=ho(w,["Select"])?w.props.input:w;A&&Qv(A.props)&&(k=!0)}),k}),[M,$]=v.useState(()=>{let k=!1;return o&&v.Children.forEach(o,w=>{ho(w,["Input","Select"])&&(No(w.props,!0)||No(w.props.inputProps,!0))&&(k=!0)}),k}),[R,E]=v.useState(!1);l&&R&&E(!1);const F=u!==void 0&&!l?u:R;let T;v.useRef(!1);const m=v.useCallback(()=>{$(!0)},[]),O=v.useCallback(()=>{$(!1)},[]),D=v.useMemo(()=>({adornedStart:x,setAdornedStart:I,color:i,disabled:l,error:c,filled:M,focused:F,fullWidth:d,hiddenLabel:h,size:g,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:O,onFilled:m,registerEffect:T,required:p,variant:y}),[x,i,l,c,M,F,d,h,T,O,m,p,g,y]);return f.jsx(ns.Provider,{value:D,children:f.jsx(kx,{as:a,ownerState:P,className:me(C.root,s),ref:n,...S,children:o})})});function Mx(e){return Se("MuiFormHelperText",e)}const Pl=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kl;const Dx=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${ue(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return ve(c,Mx,t)},Ix=_("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Pl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pl.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}}]}))),wu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:h,variant:b,...p}=r,g=Bt(),y=Bn({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:i,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 S.ownerState;const P=Dx(S);return f.jsx(Ix,{as:i,className:me(P.root,s),ref:n,...p,ownerState:S,children:o===" "?kl||(kl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function Ts(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ml(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Pu(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 xr(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Pu(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const Tx=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...h}=t,b=v.useRef(null),p=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{o&&b.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:x})=>{const I=!b.current.style.width;if(C.clientHeight<b.current.clientHeight&&I){const M=`${jc(rn(C))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=M,b.current.style.width=`calc(100% + ${M})`}return b.current}}),[]);const g=C=>{const x=b.current,I=C.key;if(C.ctrlKey||C.metaKey||C.altKey){u&&u(C);return}const $=dt(x).activeElement;if(I==="ArrowDown")C.preventDefault(),xr(x,$,c,l,Ts);else if(I==="ArrowUp")C.preventDefault(),xr(x,$,c,l,Ml);else if(I==="Home")C.preventDefault(),xr(x,null,c,l,Ts);else if(I==="End")C.preventDefault(),xr(x,null,c,l,Ml);else if(I.length===1){const R=p.current,E=I.toLowerCase(),F=performance.now();R.keys.length>0&&(F-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=F,R.keys.push(E);const T=$&&!R.repeating&&Pu($,R);R.previousKeyMatched&&(T||xr(x,$,!1,l,Ts,R))?C.preventDefault():R.previousKeyMatched=!1}u&&u(C)},y=Fe(b,n);let S=-1;v.Children.forEach(i,(C,x)=>{if(!v.isValidElement(C)){S===x&&(S+=1,S>=i.length&&(S=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||S===-1)&&(S=x),S===x&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(S+=1,S>=i.length&&(S=-1))});const P=v.Children.map(i,(C,x)=>{if(x===S){const I={};return s&&(I.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(I.tabIndex=0),v.cloneElement(C,I)}return C});return f.jsx(bu,{role:"menu",ref:y,className:a,onKeyDown:g,tabIndex:o?0:-1,...h,children:P})});function Rx(e){const t=dt(e);return t.body===e?rn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Lr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dl(e){return parseInt(rn(e).getComputedStyle(e).paddingRight,10)||0}function Ox(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Il(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!Ox(i);a&&l&&Lr(i,o)})}function Rs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function $x(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Rx(r)){const i=jc(rn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dl(r)+i}px`;const a=dt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Dl(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=dt(r).body;else{const i=r.parentElement,a=rn(r);s=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function Ex(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ax{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Lr(t.modalRef,!1);const o=Ex(n);Il(n,t.mount,t.modalRef,o,!0);const s=Rs(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Rs(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=$x(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Rs(this.containers,i=>i.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Lr(t.modalRef,n),Il(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Lr(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Fx(e){return Se("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const Lx=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},Fx,t)},Nx=_("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"}}]}),ku=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:h={},TransitionComponent:b,transitionDuration:p,...g}=r,y={...r,component:i,invisible:a},S=Lx(y),P={transition:b,root:c.Root,...h},C={...u,...d},x={component:i,slots:P,slotProps:C},[I,M]=We("root",{elementType:Nx,externalForwardedProps:x,className:me(S.root,s),ownerState:y}),[$,R]=We("transition",{elementType:En,externalForwardedProps:x,ownerState:y});return f.jsx($,{in:l,timeout:p,...g,...R,children:f.jsx(I,{"aria-hidden":!0,...M,classes:S,ref:n,children:o})})});function jx(e){return typeof e=="function"?e():e}function Bx(e){return e?e.props.hasOwnProperty("in"):!1}const Tl=()=>{},lo=new Ax;function Vx(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:u}=e,d=v.useRef({}),h=v.useRef(null),b=v.useRef(null),p=Fe(b,u),[g,y]=v.useState(!c),S=Bx(a);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const C=()=>dt(h.current),x=()=>(d.current.modalRef=b.current,d.current.mount=h.current,d.current),I=()=>{lo.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},M=fe(()=>{const k=jx(t)||C().body;lo.add(x(),k),b.current&&I()}),$=()=>lo.isTopModal(x()),R=fe(k=>{h.current=k,k&&(c&&$()?I():b.current&&Lr(b.current,P))}),E=v.useCallback(()=>{lo.remove(x(),P)},[P]);v.useEffect(()=>()=>{E()},[E]),v.useEffect(()=>{c?M():(!S||!o)&&E()},[c,E,S,o,M]);const F=k=>w=>{k.onKeyDown?.(w),!(w.key!=="Escape"||w.which===229||!$())&&(n||(w.stopPropagation(),l&&l(w,"escapeKeyDown")))},T=k=>w=>{k.onClick?.(w),w.target===w.currentTarget&&l&&l(w,"backdropClick")};return{getRootProps:(k={})=>{const w=hi(e);delete w.onTransitionEnter,delete w.onTransitionExited;const A={...w,...k};return{role:"presentation",...A,onKeyDown:F(A),ref:p}},getBackdropProps:(k={})=>{const w=k;return{"aria-hidden":!0,...w,onClick:T(w),open:c}},getTransitionProps:()=>{const k=()=>{y(!1),s&&s()},w=()=>{y(!0),i&&i(),o&&E()};return{onEnter:sa(k,a?.props.onEnter??Tl),onExited:sa(w,a?.props.onExited??Tl)}},rootRef:p,portalRef:R,isTopModal:$,exited:g,hasTransition:S}}function zx(e){return Se("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Wx=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zx,r)},_x=_("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Re(({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"}}]}))),Hx=_(ku,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Mu=v.forwardRef(function(t,n){const r=Oe({name:"MuiModal",props:t}),{BackdropComponent:o=Hx,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:h={},componentsProps:b={},disableAutoFocus:p=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:P=!1,disableScrollLock:C=!1,hideBackdrop:x=!1,keepMounted:I=!1,onClose:M,onTransitionEnter:$,onTransitionExited:R,open:E,slotProps:F={},slots:T={},theme:m,...O}=r,D={...r,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:P,disableScrollLock:C,hideBackdrop:x,keepMounted:I},{getRootProps:k,getBackdropProps:w,getTransitionProps:A,portalRef:L,isTopModal:N,exited:Y,hasTransition:W}=Vx({...D,rootRef:n}),J={...D,exited:Y},ce=Wx(J),ae={};if(c.props.tabIndex===void 0&&(ae.tabIndex="-1"),W){const{onEnter:G,onExited:oe}=A();ae.onEnter=G,ae.onExited=oe}const V={slots:{root:h.Root,backdrop:h.Backdrop,...T},slotProps:{...b,...F}},[q,ne]=We("root",{ref:n,elementType:_x,externalForwardedProps:{...V,...O,component:d},getSlotProps:k,ownerState:J,className:me(a,ce?.root,!J.open&&J.exited&&ce?.hidden)}),[K,z]=We("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:G=>w({...G,onClick:oe=>{G?.onClick&&G.onClick(oe)}}),className:me(s?.className,ce?.backdrop),ownerState:J});return!I&&!E&&(!W||Y)?null:f.jsx(du,{ref:L,container:u,disablePortal:S,children:f.jsxs(q,{...ne,children:[!x&&o?f.jsx(K,{...z}):null,f.jsx(pu,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:P,isEnabled:N,open:E,children:v.cloneElement(c,ae)})]})})});function Ux(e){return Se("MuiPopover",e)}be("MuiPopover",["root","paper"]);function Rl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ol(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $l(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const Yx=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},Ux,t)},Gx=_(Mu,{name:"MuiPopover",slot:"Root"})({}),Du=_(jn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qx=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:h=8,marginThreshold:b=16,open:p,PaperProps:g={},slots:y={},slotProps:S={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:x="auto",TransitionProps:I={},disableScrollLock:M=!1,...$}=r,R=v.useRef(),E={...r,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:b,transformOrigin:P,TransitionComponent:C,transitionDuration:x,TransitionProps:I},F=Yx(E),T=v.useCallback(()=>{if(l==="anchorPosition")return a;const G=co(s),re=(G&&G.nodeType===1?G:dt(R.current).body).getBoundingClientRect();return{top:re.top+Rl(re,i.vertical),left:re.left+Ol(re,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),m=v.useCallback(G=>({vertical:Rl(G,P.vertical),horizontal:Ol(G,P.horizontal)}),[P.horizontal,P.vertical]),O=v.useCallback(G=>{const oe={width:G.offsetWidth,height:G.offsetHeight},re=m(oe);if(l==="none")return{top:null,left:null,transformOrigin:$l(re)};const B=T();let ee=B.top-re.vertical,le=B.left-re.horizontal;const te=ee+oe.height,pe=le+oe.width,H=rn(co(s)),ye=H.innerHeight-b,de=H.innerWidth-b;if(b!==null&&ee<b){const Me=ee-b;ee-=Me,re.vertical+=Me}else if(b!==null&&te>ye){const Me=te-ye;ee-=Me,re.vertical+=Me}if(b!==null&&le<b){const Me=le-b;le-=Me,re.horizontal+=Me}else if(pe>de){const Me=pe-de;le-=Me,re.horizontal+=Me}return{top:`${Math.round(ee)}px`,left:`${Math.round(le)}px`,transformOrigin:$l(re)}},[s,l,T,m,b]),[D,k]=v.useState(p),w=v.useCallback(()=>{const G=R.current;if(!G)return;const oe=O(G);oe.top!==null&&G.style.setProperty("top",oe.top),oe.left!==null&&(G.style.left=oe.left),G.style.transformOrigin=oe.transformOrigin,k(!0)},[O]);v.useEffect(()=>(M&&window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)),[s,M,w]);const A=()=>{w()},L=()=>{k(!1)};v.useEffect(()=>{p&&w()}),v.useImperativeHandle(o,()=>p?{updatePosition:()=>{w()}}:null,[p,w]),v.useEffect(()=>{if(!p)return;const G=fc(()=>{w()}),oe=rn(co(s));return oe.addEventListener("resize",G),()=>{G.clear(),oe.removeEventListener("resize",G)}},[s,p,w]);let N=x;const Y={slots:{transition:C,...y},slotProps:{transition:I,paper:g,...S}},[W,J]=We("transition",{elementType:zr,externalForwardedProps:Y,ownerState:E,getSlotProps:G=>({...G,onEntering:(oe,re)=>{G.onEntering?.(oe,re),A()},onExited:oe=>{G.onExited?.(oe),L()}}),additionalProps:{appear:!0,in:p}});x==="auto"&&!W.muiSupportAuto&&(N=void 0);const ce=d||(s?dt(co(s)).body:void 0),[ae,{slots:V,slotProps:q,...ne}]=We("root",{ref:n,elementType:Gx,externalForwardedProps:{...Y,...$},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:mc(typeof S.backdrop=="function"?S.backdrop(E):S.backdrop,{invisible:!0})},container:ce,open:p},ownerState:E,className:me(F.root,u)}),[K,z]=We("paper",{ref:R,className:F.paper,elementType:Du,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:E});return f.jsx(ae,{...ne,...!rr(ae)&&{slots:V,slotProps:q,disableScrollLock:M},children:f.jsx(W,{...J,timeout:N,children:f.jsx(K,{...z,children:c})})})});function Kx(e){return Se("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const Qx={vertical:"top",horizontal:"right"},Xx={vertical:"top",horizontal:"left"},Zx=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},Kx,t)},Jx=_(qx,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),e0=_(Du,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),t0=_(Tx,{name:"MuiMenu",slot:"List"})({outline:0}),n0=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:p,...g}={},variant:y="selectedMenu",slots:S={},slotProps:P={},...C}=r,x=Wt(),I={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:b,TransitionProps:g,variant:y},M=Zx(I),$=o&&!a&&u,R=v.useRef(null),E=(N,Y)=>{R.current&&R.current.adjustStyleForScrollbar(N,{direction:x?"rtl":"ltr"}),p&&p(N,Y)},F=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let T=-1;v.Children.map(s,(N,Y)=>{v.isValidElement(N)&&(N.props.disabled||(y==="selectedMenu"&&N.props.selected||T===-1)&&(T=Y))});const m={slots:S,slotProps:{list:l,transition:g,paper:d,...P}},O=Ae({elementType:S.root,externalSlotProps:P.root,ownerState:I,className:[M.root,i]}),[D,k]=We("paper",{className:M.paper,elementType:e0,externalForwardedProps:m,shouldForwardComponentProp:!0,ownerState:I}),[w,A]=We("list",{className:me(M.list,l.className),elementType:t0,shouldForwardComponentProp:!0,externalForwardedProps:m,getSlotProps:N=>({...N,onKeyDown:Y=>{F(Y),N.onKeyDown?.(Y)}}),ownerState:I}),L=typeof m.slotProps.transition=="function"?m.slotProps.transition(I):m.slotProps.transition;return f.jsx(Jx,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Qx:Xx,slots:{root:S.root,paper:D,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:O,paper:k,backdrop:typeof P.backdrop=="function"?P.backdrop(I):P.backdrop,transition:{...L,onEntering:(...N)=>{E(...N),L?.onEntering?.(...N)}}},open:u,ref:n,transitionDuration:b,ownerState:I,...C,classes:h,children:f.jsx(w,{actions:R,autoFocus:o&&(T===-1||a),autoFocusItem:$,variant:y,...A,children:s})})});function r0(e){return Se("MuiNativeSelect",e)}const zi=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),o0=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ue(n)}`,s&&"iconOpen",r&&"disabled"]};return ve(a,r0,t)},Iu=_("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${zi.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}}}]})),s0=_(Iu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:jt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${zi.multiple}`]:t.multiple}]}})({}),Tu=_("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${zi.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}}]})),i0=_(Tu,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})({}),a0=v.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:s},d=o0(u);return f.jsxs(v.Fragment,{children:[f.jsx(s0,{ownerState:u,className:me(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx(i0,{as:i,ownerState:u,className:d.icon})]})});function Ru(e){return Se("MuiSelect",e)}const Sr=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var El;const l0=_(Iu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sr.select}`]:t.select},{[`&.${Sr.select}`]:t[n.variant]},{[`&.${Sr.error}`]:t.error},{[`&.${Sr.multiple}`]:t.multiple}]}})({[`&.${Sr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),c0=_(Tu,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})({}),u0=_("input",{shouldForwardProp:e=>pc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Al(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function d0(e){return e==null||typeof e=="string"&&!e.trim()}const p0=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ue(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(a,Ru,t)},f0=v.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:h,error:b=!1,IconComponent:p,inputRef:g,labelId:y,MenuProps:S={},multiple:P,name:C,onBlur:x,onChange:I,onClose:M,onFocus:$,onOpen:R,open:E,readOnly:F,renderValue:T,required:m,SelectDisplayProps:O={},tabIndex:D,type:k,value:w,variant:A="standard",...L}=t,[N,Y]=Mt({controlled:w,default:u,name:"Select"}),[W,J]=Mt({controlled:E,default:c,name:"Select"}),ce=v.useRef(null),ae=v.useRef(null),[V,q]=v.useState(null),{current:ne}=v.useRef(E!=null),[K,z]=v.useState(),G=Fe(n,g),oe=v.useCallback(xe=>{ae.current=xe,xe&&q(xe)},[]),re=V?.parentNode;v.useImperativeHandle(G,()=>({focus:()=>{ae.current.focus()},node:ce.current,value:N}),[N]),v.useEffect(()=>{c&&W&&V&&!ne&&(z(i?null:re.clientWidth),ae.current.focus())},[V,i]),v.useEffect(()=>{s&&ae.current.focus()},[s]),v.useEffect(()=>{if(!y)return;const xe=dt(ae.current).getElementById(y);if(xe){const Ie=()=>{getSelection().isCollapsed&&ae.current.focus()};return xe.addEventListener("click",Ie),()=>{xe.removeEventListener("click",Ie)}}},[y]);const B=(xe,Ie)=>{xe?R&&R(Ie):M&&M(Ie),ne||(z(i?null:re.clientWidth),J(xe))},ee=xe=>{xe.button===0&&(xe.preventDefault(),ae.current.focus(),B(!0,xe))},le=xe=>{B(!1,xe)},te=v.Children.toArray(a),pe=xe=>{const Ie=te.find($e=>$e.props.value===xe.target.value);Ie!==void 0&&(Y(Ie.props.value),I&&I(xe,Ie))},H=xe=>Ie=>{let $e;if(Ie.currentTarget.hasAttribute("tabindex")){if(P){$e=Array.isArray(N)?N.slice():[];const Ct=N.indexOf(xe.props.value);Ct===-1?$e.push(xe.props.value):$e.splice(Ct,1)}else $e=xe.props.value;if(xe.props.onClick&&xe.props.onClick(Ie),N!==$e&&(Y($e),I)){const Ct=Ie.nativeEvent||Ie,Ne=new Ct.constructor(Ct.type,Ct);Object.defineProperty(Ne,"target",{writable:!0,value:{value:$e,name:C}}),I(Ne,xe)}P||B(!1,Ie)}},ye=xe=>{F||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),B(!0,xe))},de=V!==null&&W,Me=xe=>{!de&&x&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:N,name:C}}),x(xe))};delete L["aria-invalid"];let he,et;const Le=[];let Xe=!1;(No({value:N})||h)&&(T?he=T(N):Xe=!0);const nt=te.map(xe=>{if(!v.isValidElement(xe))return null;let Ie;if(P){if(!Array.isArray(N))throw new Error(tn(2));Ie=N.some($e=>Al($e,xe.props.value)),Ie&&Xe&&Le.push(xe.props.children)}else Ie=Al(N,xe.props.value),Ie&&Xe&&(et=xe.props.children);return v.cloneElement(xe,{"aria-selected":Ie?"true":"false",onClick:H(xe),onKeyUp:$e=>{$e.key===" "&&$e.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp($e)},role:"option",selected:Ie,value:void 0,"data-value":xe.props.value})});Xe&&(P?Le.length===0?he=null:he=Le.reduce((xe,Ie,$e)=>(xe.push(Ie),$e<Le.length-1&&xe.push(", "),xe),[]):he=et);let mt=K;!i&&ne&&V&&(mt=re.clientWidth);let rt;typeof D<"u"?rt=D:rt=d?null:0;const xt=O.id||(C?`mui-component-select-${C}`:void 0),_e={...t,variant:A,value:N,open:de,error:b},Ce=p0(_e),tt={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(_e):S.slotProps?.paper},St={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(_e):S.slotProps?.list},ut=_t();return f.jsxs(v.Fragment,{children:[f.jsx(l0,{as:"div",ref:oe,tabIndex:rt,role:"combobox","aria-controls":de?ut:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,xt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":m?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:ye,onMouseDown:d||F?null:ee,onBlur:Me,onFocus:$,...O,ownerState:_e,className:me(O.className,Ce.select,l),id:xt,children:d0(he)?El||(El=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):he}),f.jsx(u0,{"aria-invalid":b,value:Array.isArray(N)?N.join(","):N,name:C,ref:ce,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:d,className:Ce.nativeInput,autoFocus:s,required:m,...L,ownerState:_e}),f.jsx(c0,{as:p,className:Ce.icon,ownerState:_e}),f.jsx(n0,{id:`menu-${C||""}`,anchorEl:re,open:de,onClose:le,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:ut,...St},paper:{...tt,style:{minWidth:mt,...tt!=null?tt.style:null}}},children:nt})]})}),Ou=ct(f.jsx("path",{d:"M7 10l5 5 5-5z"})),m0=e=>{const{classes:t}=e,r=ve({root:["root"]},Ru,t);return{...t,...r}},Wi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>jt(e)&&e!=="variant"},h0=_(Li,Wi)(""),g0=_(ji,Wi)(""),y0=_(Ni,Wi)(""),_i=v.forwardRef(function(t,n){const r=Oe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Ou,id:d,input:h,inputProps:b,label:p,labelId:g,MenuProps:y,multiple:S=!1,native:P=!1,onClose:C,onOpen:x,open:I,renderValue:M,SelectDisplayProps:$,variant:R="outlined",...E}=r,F=P?a0:f0,T=Bt(),m=Bn({props:r,muiFormControl:T,states:["variant","error"]}),O=m.variant||R,D={...r,variant:O,classes:i},k=m0(D),{root:w,...A}=k,L=h||{standard:f.jsx(h0,{ownerState:D}),outlined:f.jsx(g0,{label:p,ownerState:D}),filled:f.jsx(y0,{ownerState:D})}[O],N=Fe(n,dr(L));return f.jsx(v.Fragment,{children:v.cloneElement(L,{inputComponent:F,inputProps:{children:s,error:m.error,IconComponent:u,variant:O,type:void 0,multiple:S,...P?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:y,onClose:C,onOpen:x,open:I,renderValue:M,SelectDisplayProps:{id:d,...$}},...b,classes:b?ft(A,b.classes):A,...h?h.props.inputProps:{}},...(S&&P||c)&&O==="outlined"?{notched:!0}:{},ref:N,className:me(L.props.className,a,k.root),...!h&&{variant:O},...E})})});_i.muiName="Select";function b0(e){return Se("MuiTextField",e)}be("MuiTextField",["root"]);const v0={standard:Li,filled:Ni,outlined:ji},x0=e=>{const{classes:t}=e;return ve({root:["root"]},b0,t)},S0=_(Vi,{name:"MuiTextField",slot:"Root"})({}),Hi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:p,id:g,InputLabelProps:y,inputProps:S,InputProps:P,inputRef:C,label:x,maxRows:I,minRows:M,multiline:$=!1,name:R,onBlur:E,onChange:F,onFocus:T,placeholder:m,required:O=!1,rows:D,select:k=!1,SelectProps:w,slots:A={},slotProps:L={},type:N,value:Y,variant:W="outlined",...J}=r,ce={...r,autoFocus:s,color:l,disabled:u,error:d,fullWidth:b,multiline:$,required:O,select:k,variant:W},ae=x0(ce),V=_t(g),q=p&&V?`${V}-helper-text`:void 0,ne=x&&V?`${V}-label`:void 0,K=v0[W],z={slots:A,slotProps:{input:P,inputLabel:y,htmlInput:S,formHelperText:h,select:w,...L}},G={},oe=z.slotProps.inputLabel;W==="outlined"&&(oe&&typeof oe.shrink<"u"&&(G.notched=oe.shrink),G.label=x),k&&((!w||!w.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[re,B]=We("root",{elementType:S0,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...J},ownerState:ce,className:me(ae.root,a),ref:n,additionalProps:{disabled:u,error:d,fullWidth:b,required:O,color:l,variant:W}}),[ee,le]=We("input",{elementType:K,externalForwardedProps:z,additionalProps:G,ownerState:ce}),[te,pe]=We("inputLabel",{elementType:Bi,externalForwardedProps:z,ownerState:ce}),[H,ye]=We("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:ce}),[de,Me]=We("formHelperText",{elementType:wu,externalForwardedProps:z,ownerState:ce}),[he,et]=We("select",{elementType:_i,externalForwardedProps:z,ownerState:ce}),Le=f.jsx(ee,{"aria-describedby":q,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:$,name:R,rows:D,maxRows:I,minRows:M,type:N,value:Y,id:V,inputRef:C,onBlur:E,onChange:F,onFocus:T,placeholder:m,inputProps:ye,slots:{input:A.htmlInput?H:void 0},...le});return f.jsxs(re,{...B,children:[x!=null&&x!==""&&f.jsx(te,{htmlFor:V,id:ne,...pe,children:x}),k?f.jsx(he,{"aria-describedby":q,id:V,labelId:ne,value:Y,input:Le,...et,children:i}):Le,p&&f.jsx(de,{id:q,...Me,children:p})]})}),C0=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),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 picker component.");return o},w0=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},P0=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},k0=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:s,token:i,startSeparator:a})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Wc(e,i),c=Yc(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let h=d?e.formatByString(t,i):"",b=null;if(u)if(c)b=h===""?e.formatByString(s,i).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);b=l.maxLength,d&&(h=bi(Hc($n(h,o),b),o))}return j({},l,{format:i,maxLength:b,value:h,placeholder:P0(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},M0=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((b,p)=>p.length-b.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=b=>r.find(p=>p.start<=b&&p.end>=b);let h=0;for(;h<n.length;){const b=d(h),p=b!=null,g=l.exec(n.slice(h))?.[1];if(!p&&g!=null&&c.test(g)){let y=g;for(;y.length>0;){const S=u.exec(y)[1];y=y.slice(S.length),s.push(k0(j({},e,{now:o,token:S,startSeparator:i}))),i=""}h+=g.length}else{const y=n[h];p&&b?.start===h||b?.end===h||(s.length===0?i+=y:s[s.length-1].endSeparator+=y),h+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},D0=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let i=s;return e&&i!==null&&i.includes(" ")&&(i=`${i}`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),Fl=e=>{let t=C0(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=w0(j({},e,{expandedFormat:t})),r=M0(j({},e,{expandedFormat:t,escapedParts:n}));return D0(j({},e,{sections:r}))},I0=e=>{const t=Ue(),n=an(),r=Ln(),o=Wt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:h,onChange:b,format:p,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:S,shouldRespectLeadingZeros:P=!1,timezone:C,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:I,value:M,handleValueChange:$}=$i({timezone:C,value:u,defaultValue:d,referenceDate:h,onChange:b,valueManager:s}),R=v.useMemo(()=>Ih(t),[t]),E=v.useMemo(()=>Ah(t,R,I),[t,R,I]),F=v.useCallback((V,q=null)=>i.getSectionsFromValue(t,V,q,ne=>Fl({utils:t,localeText:n,localizedDigits:R,format:p,date:ne,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,p,n,R,o,P,t,g,x]),[T,m]=v.useState(()=>{const V=F(M),q={sections:V,value:M,referenceValue:s.emptyValue,tempValueStrAndroid:null},ne=Ph(V),K=s.getInitialReferenceValue({referenceDate:h,value:M,utils:t,props:c,granularity:ne,timezone:I});return j({},q,{referenceValue:K})}),[O,D]=Mt({controlled:y,default:null,name:"useField",state:"selectedSections"}),k=V=>{D(V),S?.(V)},w=v.useMemo(()=>Bs(O,T.sections),[O,T.sections]),A=w==="all"?0:w,L=({value:V,referenceValue:q,sections:ne})=>{if(m(z=>j({},z,{sections:ne,value:V,referenceValue:q,tempValueStrAndroid:null})),s.areValuesEqual(t,T.value,V))return;const K={validationError:l({adapter:r,value:V,timezone:I,props:c})};$(V,K)},N=(V,q)=>{const ne=[...T.sections];return ne[V]=j({},ne[V],{value:q,modified:!0}),ne},Y=()=>{L({value:s.emptyValue,referenceValue:T.referenceValue,sections:F(s.emptyValue)})},W=()=>{if(A==null)return;const V=T.sections[A],q=i.getActiveDateManager(t,T,V),K=q.getSections(T.sections).filter(re=>re.value!=="").length===(V.value===""?0:1),z=N(A,""),G=K?null:t.getInvalidDate(),oe=q.getNewValuesFromNewActiveDate(G);L(j({},oe,{sections:z}))},J=V=>{const q=(z,G)=>{const oe=t.parse(z,p);if(oe==null||!t.isValid(oe))return null;const re=Fl({utils:t,localeText:n,localizedDigits:R,format:p,date:oe,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:x,isRtl:o});return Za(t,oe,re,G,!1)},ne=i.parseValueStr(V,T.referenceValue,q),K=i.updateReferenceValue(t,ne,T.referenceValue);L({value:ne,referenceValue:K,sections:F(ne,T.sections)})},ce=({activeSection:V,newSectionValue:q,shouldGoToNextSection:ne})=>{ne&&A<T.sections.length-1&&k(A+1);const K=i.getActiveDateManager(t,T,V),z=N(A,q),G=K.getSections(z),oe=Oh(t,G,R);let re,B;if(oe!=null&&t.isValid(oe)){const ee=Za(t,oe,G,K.referenceDate,!0);re=K.getNewValuesFromNewActiveDate(ee),B=!0}else re=K.getNewValuesFromNewActiveDate(oe),B=(oe!=null&&!t.isValid(oe))!=(K.date!=null&&!t.isValid(K.date));return B?L(j({},re,{sections:z})):m(ee=>j({},ee,re,{sections:z,tempValueStrAndroid:null}))},ae=V=>m(q=>j({},q,{tempValueStrAndroid:V}));return v.useEffect(()=>{const V=F(T.value);m(q=>j({},q,{sections:V}))},[p,t.locale,o]),v.useEffect(()=>{let V;s.areValuesEqual(t,T.value,M)?V=s.getTimezone(t,T.value)!==s.getTimezone(t,M):V=!0,V&&m(q=>j({},q,{value:M,referenceValue:i.updateReferenceValue(t,M,q.referenceValue),sections:F(M)}))},[M]),{state:T,activeSectionIndex:A,parsedSelectedSections:w,setSelectedSections:k,clearValue:Y,clearActiveSection:W,updateSectionValue:ce,updateValueFromValueStr:J,setTempAndroidValueStr:ae,getSectionsFromValue:F,sectionsValueBoundaries:E,localizedDigits:R,timezone:I}},T0=5e3,qn=e=>e.saveQuery!=null,R0=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Ue(),[a,l]=v.useState(null),c=fe(()=>l(null));v.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),v.useEffect(()=>{if(a!=null){const p=setTimeout(()=>c(),T0);return()=>{clearTimeout(p)}}return()=>{}},[a,c]);const u=({keyPressed:p,sectionIndex:g},y,S)=>{const P=p.toLowerCase(),C=e[g];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===g){const I=`${a.value}${P}`,M=y(I,C);if(!qn(M))return l({sectionIndex:g,value:I,sectionType:C.type}),M}const x=y(P,C);return qn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:g,value:P,sectionType:C.type}),qn(x)?null:x)},d=p=>{const g=(P,C,x)=>{const I=C.filter(M=>M.toLowerCase().startsWith(x));return I.length===0?{saveQuery:!1}:{sectionValue:I[0],shouldGoToNextSection:I.length===1}},y=(P,C,x,I)=>{const M=$=>_c(i,s,C.type,$);if(C.contentType==="letter")return g(C.format,M(C.format),P);if(x&&I!=null&&Wc(i,x).contentType==="letter"){const $=M(x),R=g(x,$,P);return qn(R)?{saveQuery:!1}:j({},R,{sectionValue:I(R.sectionValue,$)})}return{saveQuery:!1}};return u(p,(P,C)=>{switch(C.type){case"month":{const x=I=>Qa(i,I,i.formats.month,C.format);return y(P,C,i.formats.month,x)}case"weekDay":{const x=(I,M)=>M.indexOf(I).toString();return y(P,C,i.formats.weekday,x)}case"meridiem":return y(P,C);default:return{saveQuery:!1}}})},h=p=>{const g=(S,P)=>{const C=$n(S,r),x=Number(C),I=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(x>I.maximum)return{saveQuery:!1};if(x<I.minimum)return{saveQuery:!0};const M=x*10>I.maximum||C.length===I.maximum.toString().length;return{sectionValue:Uc(i,x,I,r,P),shouldGoToNextSection:M}};return u(p,(S,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(S,P);if(P.type==="month"){Yc(i,"digit","month","MM");const C=g(S,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qn(C))return C;const x=Qa(i,C.sectionValue,"MM",P.format);return j({},C,{sectionValue:x})}if(P.type==="weekDay"){const C=g(S,P);if(qn(C))return C;const x=es(i,P.format)[Number(C.sectionValue)-1];return j({},C,{sectionValue:x})}return{saveQuery:!1}},S=>Ka(S,r))};return{applyCharacterEditing:fe(p=>{const g=e[p.sectionIndex],S=Ka(p.keyPressed,r)?h(j({},p,{keyPressed:bi(p.keyPressed,r)})):d(p);if(S==null){o(null);return}t({activeSection:g,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:c}},O0=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:h,resetCharacterQuery:b,setSelectedSections:p,parsedSelectedSections:g,state:y,clearActiveSection:S,clearValue:P,updateSectionValue:C,updateValueFromValueStr:x,sectionOrder:I,areAllSectionsEmpty:M,sectionsValueBoundaries:$}=e,R=v.useRef(null),E=Fe(r,R),F=an(),T=Ue(),m=_t(),[O,D]=v.useState(!1),k=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const B=document.getSelection();if(!B)return;if(g==null){B.rangeCount>0&&R.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),O&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(gt(document)))return;const ee=new window.Range;let le;g==="all"?le=R.current.getRoot():y.sections[g].type==="empty"?le=R.current.getSectionContainer(g):le=R.current.getSectionContent(g),ee.selectNodeContents(le),le.focus(),B.removeAllRanges(),B.addRange(ee)},getActiveSectionIndexFromDOM:()=>{const B=gt(document);return!B||!R.current||!R.current.getRoot().contains(B)?null:R.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!R.current||k.getActiveSectionIndexFromDOM()!=null)return;const ee=Bs(B,y.sections);D(!0),R.current.getSectionContent(ee).focus()},setSelectedSections:B=>{if(!R.current)return;const ee=Bs(B,y.sections);D((ee==="all"?0:ee)!==null),p(B)},isFieldFocused:()=>{const B=gt(document);return!!R.current&&R.current.getRoot().contains(B)}}),[g,p,y.sections,O]),w=fe(B=>{if(!R.current)return;const ee=y.sections[B];R.current.getSectionContent(B).innerHTML=ee.value||ee.placeholder,k.syncSelectionToDOM()}),A=fe((B,...ee)=>{B.isDefaultPrevented()||!R.current||(D(!0),s?.(B,...ee),g==="all"?setTimeout(()=>{const le=document.getSelection().getRangeAt(0).startOffset;if(le===0){p(I.startIndex);return}let te=0,pe=0;for(;pe<le&&te<y.sections.length;){const H=y.sections[te];te+=1,pe+=`${H.startSeparator}${H.value||H.placeholder}${H.endSeparator}`.length}p(te-1)}):O?R.current.getRoot().contains(B.target)||p(I.startIndex):(D(!0),p(I.startIndex)))}),L=fe(B=>{if(a?.(B),!R.current||g!=="all")return;const le=B.target.textContent??"";R.current.getRoot().innerHTML=y.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),k.syncSelectionToDOM(),le.length===0||le.charCodeAt(0)===10?(b(),P(),p("all")):le.length>1?x(le):(g==="all"&&p(0),h({keyPressed:le,sectionIndex:0}))}),N=fe(B=>{if(l?.(B),n||g!=="all"){B.preventDefault();return}const ee=B.clipboardData.getData("text");B.preventDefault(),b(),x(ee)}),Y=fe((...B)=>{if(i?.(...B),O||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(gt(document))!=null||p(I.startIndex)}),W=fe((...B)=>{o?.(...B),setTimeout(()=>{if(!R.current)return;const ee=gt(document);!R.current.getRoot().contains(ee)&&(D(!1),p(null))})}),J=fe(B=>ee=>{ee.isDefaultPrevented()||p(B)}),ce=fe(B=>{B.preventDefault()}),ae=fe(B=>()=>{p(B)}),V=fe(B=>{if(B.preventDefault(),n||t||typeof g!="number")return;const ee=y.sections[g],le=B.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(le),pe=/^[0-9]+$/.test(le),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(le);ee.contentType==="letter"&&te||ee.contentType==="digit"&&pe||ee.contentType==="digit-with-letter"&&H?(b(),C({activeSection:ee,newSectionValue:le,shouldGoToNextSection:!0})):!te&&!pe&&(b(),x(le))}),q=fe(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),ne=fe(B=>{if(!R.current)return;const ee=B.target,le=ee.textContent??"",te=R.current.getSectionIndexFromDOMElement(ee),pe=y.sections[te];if(n||!R.current){w(te);return}if(le.length===0){if(pe.value===""){w(te);return}const H=B.nativeEvent.inputType;if(H==="insertParagraph"||H==="insertLineBreak"){w(te);return}b(),S();return}h({keyPressed:le,sectionIndex:te}),w(te)});st(()=>{if(!(!O||!R.current)){if(g==="all")R.current.getRoot().focus();else if(typeof g=="number"){const B=R.current.getSectionContent(g);B&&B.focus()}}},[g,O]);const K=v.useMemo(()=>y.sections.reduce((B,ee)=>(B[ee.type]=$[ee.type]({currentDate:null,contentType:ee.contentType,format:ee.format}),B),{}),[$,y.sections]),z=g==="all",G=v.useMemo(()=>y.sections.map((B,ee)=>{const le=!z&&!t&&!n;return{container:{"data-sectionindex":ee,onClick:J(ee)},content:{tabIndex:z||ee>0?-1:0,contentEditable:!z&&!t&&!n,role:"spinbutton",id:`${m}-${B.type}`,"aria-labelledby":`${m}-${B.type}`,"aria-readonly":n,"aria-valuenow":Bh(B,T),"aria-valuemin":K[B.type].minimum,"aria-valuemax":K[B.type].maximum,"aria-valuetext":B.value?jh(B,T):F.empty,"aria-label":F[B.type],"aria-disabled":t,spellCheck:le?!1:void 0,autoCapitalize:le?"off":void 0,autoCorrect:le?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:le?"next":void 0,children:B.value||B.placeholder,onInput:ne,onPaste:V,onFocus:ae(ee),onDragOver:q,onMouseUp:ce,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[y.sections,ae,V,q,ne,J,ce,t,n,z,F,T,K,m]),oe=fe(B=>{x(B.target.value)}),re=v.useMemo(()=>M?"":d.getV7HiddenInputValueFromSections(y.sections),[M,y.sections,d]);return v.useEffect(()=>{if(R.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 remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker 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(`
|
|
130
|
+
`));u&&R.current&&R.current.getSectionContent(I.startIndex).focus()},[]),{interactions:k,returnedValue:{autoFocus:u,readOnly:n,focused:c??O,sectionListRef:E,onBlur:W,onClick:A,onFocus:Y,onInput:L,onPaste:N,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:g===0?-1:0,contentEditable:z,value:re,onChange:oe,areAllSectionsEmpty:M}}},Qn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),$0=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let i=0;i<e.length;i+=1){const a=e[i],l=vi(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Qn(c).length,d=c.length,h=Qn(l),b=o+(h===""?0:l.indexOf(h[0]))+a.startSeparator.length,p=b+h.length;s.push(j({},a,{start:r,end:r+u,startInInput:b,endInInput:p})),r+=u,o+=d}return s},E0=e=>{const t=Wt(),n=v.useRef(void 0),r=v.useRef(void 0),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:h,activeSectionIndex:b,state:p,fieldValueManager:g,valueManager:y,applyCharacterEditing:S,resetCharacterQuery:P,updateSectionValue:C,updateValueFromValueStr:x,clearActiveSection:I,clearValue:M,setTempAndroidValueStr:$,setSelectedSections:R,getSectionsFromValue:E,areAllSectionsEmpty:F,localizedDigits:T}=e,m=v.useRef(null),O=Fe(l,m),D=v.useMemo(()=>$0(p.sections,T,t),[p.sections,T,t]),k=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!m.current)return;if(h==null){m.current.scrollLeft&&(m.current.scrollLeft=0);return}if(m.current!==gt(document))return;const ne=m.current.scrollTop;if(h==="all")m.current.select();else{const K=D[h],z=K.type==="empty"?K.startInInput-K.startSeparator.length:K.startInInput,G=K.type==="empty"?K.endInInput+K.endSeparator.length:K.endInInput;(z!==m.current.selectionStart||G!==m.current.selectionEnd)&&m.current===gt(document)&&m.current.setSelectionRange(z,G),clearTimeout(r.current),r.current=setTimeout(()=>{m.current&&m.current===gt(document)&&m.current.selectionStart===m.current.selectionEnd&&(m.current.selectionStart!==z||m.current.selectionEnd!==G)&&k.syncSelectionToDOM()})}m.current.scrollTop=ne},getActiveSectionIndexFromDOM:()=>{const ne=m.current.selectionStart??0,K=m.current.selectionEnd??0;if(ne===0&&K===0)return null;const z=ne<=D[0].startInInput?1:D.findIndex(G=>G.startInInput-G.startSeparator.length>ne);return z===-1?D.length-1:z-1},focusField:(ne=0)=>{gt(document)!==m.current&&(m.current?.focus(),R(ne))},setSelectedSections:ne=>R(ne),isFieldFocused:()=>m.current===gt(document)}),[m,h,D,R]),w=()=>{const ne=m.current.selectionStart??0;let K;ne<=D[0].startInInput||ne>=D[D.length-1].endInInput?K=1:K=D.findIndex(G=>G.startInInput-G.startSeparator.length>ne);const z=K===-1?D.length-1:K-1;R(z)},A=fe((...ne)=>{o?.(...ne);const K=m.current;clearTimeout(n.current),n.current=setTimeout(()=>{!K||K!==m.current||b==null&&(K.value.length&&Number(K.selectionEnd)-Number(K.selectionStart)===K.value.length?R("all"):w())})}),L=fe((ne,...K)=>{ne.isDefaultPrevented()||(s?.(ne,...K),w())}),N=fe(ne=>{if(i?.(ne),ne.preventDefault(),u||d)return;const K=ne.clipboardData.getData("text");if(typeof h=="number"){const z=p.sections[h],G=/^[a-zA-Z]+$/.test(K),oe=/^[0-9]+$/.test(K),re=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(K);if(z.contentType==="letter"&&G||z.contentType==="digit"&&oe||z.contentType==="digit-with-letter"&&re){P(),C({activeSection:z,newSectionValue:K,shouldGoToNextSection:!0});return}if(G||oe)return}P(),x(K)}),Y=fe((...ne)=>{a?.(...ne),R(null)}),W=fe(ne=>{if(u)return;const K=ne.target.value;if(K===""){P(),M();return}const z=ne.nativeEvent.data,G=z&&z.length>1,oe=G?z:K,re=Qn(oe);if(h==="all"&&R(b),b==null||G){x(G?z:re);return}let B;if(h==="all"&&re.length===1)B=re;else{const ee=Qn(g.getV6InputValueFromSections(D,T,t));let le=-1,te=-1;for(let de=0;de<ee.length;de+=1)le===-1&&ee[de]!==re[de]&&(le=de),te===-1&&ee[ee.length-de-1]!==re[re.length-de-1]&&(te=de);const pe=D[b];if(le<pe.start||ee.length-te-1>pe.end)return;const ye=re.length-ee.length+pe.end-Qn(pe.endSeparator||"").length;B=re.slice(pe.start+Qn(pe.startSeparator||"").length,ye)}if(B.length===0){Lh()&&$(oe),P(),I();return}S({keyPressed:B,sectionIndex:b})}),J=v.useMemo(()=>c!==void 0?c:g.getV6InputValueFromSections(E(y.emptyValue),T,t),[c,g,E,y.emptyValue,T,t]),ce=v.useMemo(()=>p.tempValueStrAndroid??g.getV6InputValueFromSections(p.sections,T,t),[p.sections,g,p.tempValueStrAndroid,T,t]);v.useEffect(()=>(m.current&&m.current===gt(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ae=v.useMemo(()=>b==null||p.sections[b].contentType==="letter"?"text":"numeric",[b,p.sections]),q=!(m.current&&m.current===gt(document))&&F;return{interactions:k,returnedValue:{readOnly:u,onBlur:Y,onClick:L,onFocus:A,onPaste:N,inputRef:O,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:ae,autoComplete:"off",value:q?"":ce,onChange:W}}},A0=e=>{const t=Ue(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:h,valueManager:b,validator:p}=e,g=Wt(),y=I0(e),{state:S,activeSectionIndex:P,parsedSelectedSections:C,setSelectedSections:x,clearValue:I,clearActiveSection:M,updateSectionValue:$,setTempAndroidValueStr:R,sectionsValueBoundaries:E,localizedDigits:F,timezone:T}=y,m=R0({sections:S.sections,updateSectionValue:$,sectionsValueBoundaries:E,localizedDigits:F,setTempAndroidValueStr:R,timezone:T}),{resetCharacterQuery:O}=m,D=b.areValuesEqual(t,S.value,b.emptyValue),k=s?O0:E0,w=v.useMemo(()=>Nh(S.sections,g&&!s),[S.sections,g,s]),{returnedValue:A,interactions:L}=k(j({},e,y,m,{areAllSectionsEmpty:D,sectionOrder:w})),N=fe(V=>{if(l?.(V),!i)switch(!0){case((V.ctrlKey||V.metaKey)&&String.fromCharCode(V.keyCode)==="A"&&!V.shiftKey&&!V.altKey):{V.preventDefault(),x("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),C==null)x(w.startIndex);else if(C==="all")x(w.endIndex);else{const q=w.neighbors[C].rightIndex;q!==null&&x(q)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),C==null)x(w.endIndex);else if(C==="all")x(w.startIndex);else{const q=w.neighbors[C].leftIndex;q!==null&&x(q)}break}case V.key==="Delete":{if(V.preventDefault(),a)break;C==null||C==="all"?I():M(),O();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),a||P==null)break;C==="all"&&x(P);const q=S.sections[P],ne=h.getActiveDateManager(t,S,q),K=Th(t,T,q,V.key,E,F,ne.date,{minutesStep:o});$({activeSection:q,newSectionValue:K,shouldGoToNextSection:!1});break}}});st(()=>{L.syncSelectionToDOM()});const{hasValidationError:Y}=Zc({props:n,validator:p,timezone:T,value:S.value,onError:n.onError}),W=v.useMemo(()=>c!==void 0?c:Y,[Y,c]);v.useEffect(()=>{!W&&P==null&&O()},[S.referenceValue,P,W]),v.useEffect(()=>{S.tempValueStrAndroid!=null&&P!=null&&(O(),M())},[S.sections]),v.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const J=fe((V,...q)=>{V.preventDefault(),d?.(V,...q),I(),L.isFieldFocused()?x(w.startIndex):L.focusField(0)}),ce={onKeyDown:N,onClear:J,error:W,clearable:!!(u&&!D&&!a&&!i)},ae={disabled:i,readOnly:a};return j({},e.forwardedProps,ce,ae,A)},F0=["clearable","onClear","InputProps","sx","slots","slotProps"],L0=["ownerState"],N0=e=>{const t=an(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ke(e,F0),c=i?.clearButton??Nn,u=Ae({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ke(u,L0),h=i?.clearIcon??Yv,b=Ae({elementType:h,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:f.jsxs(v.Fragment,{children:[n&&f.jsx(Jc,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,j({},d,{onClick:r,children:f.jsx(h,j({fontSize:"small"},b))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},j0=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],B0=(e,t)=>v.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return j0.forEach(o),Qc.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),V0=e=>{const t=Ue(),n=Xr();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Et(t,e.minDate,n.minDate),maxDate:Et(t,e.maxDate,n.maxDate)})},z0=e=>{const t=V0(e),{forwardedProps:n,internalProps:r}=B0(t,"date");return A0({forwardedProps:n,internalProps:r,valueManager:Kt,fieldValueManager:zh,validator:Zr,valueType:"date"})};function W0(e){return Se("MuiPickersTextField",e)}be("MuiPickersTextField",["root","focused","disabled","error","required"]);function _0(e){return Se("MuiPickersInputBase",e)}const er=be("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function H0(e){return Se("MuiPickersSectionList",e)}const Cr=be("MuiPickersSectionList",["root","section","sectionContent"]),U0=["slots","slotProps","elements","sectionListRef"],$u=_("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Eu=_("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Au=_("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Fu=_("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Y0=e=>{const{classes:t}=e;return ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},H0,t)};function G0(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Eu,i=Ae({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Fu,l=Ae({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Au,u=Ae({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Ae({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(s,j({},i,{children:[f.jsx(c,j({},u)),f.jsx(a,j({},l)),f.jsx(c,j({},d))]}))}const q0=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ke(r,U0),c=Y0(r),u=v.useRef(null),d=Fe(n,u),h=g=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return u.current};v.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(g){return h("getSectionContainer").querySelector(`.${Cr.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return h("getSectionContent").querySelector(`.${Cr.section}[data-sectionindex="${g}"] .${Cr.sectionContent}`)},getSectionIndexFromDOMElement(g){const y=h("getSectionIndexFromDOMElement");if(g==null||!y.contains(g))return null;let S=null;return g.classList.contains(Cr.section)?S=g:g.classList.contains(Cr.sectionContent)&&(S=g.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const b=o?.root??$u,p=Ae({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(b,j({},p,{children:p.contentEditable?i.map(({content:g,before:y,after:S})=>`${y.children}${g.children}${S.children}`).join(""):f.jsx(v.Fragment,{children:i.map((g,y)=>f.jsx(G0,{slots:o,slotProps:s,element:g,classes:c},y))})}))}),K0=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],Q0=e=>Math.round(e*1e5)/1e5,us=_("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>j({},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:`${Q0(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ui=_($u,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.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:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),X0=_(Eu,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Z0=_(Fu,{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"})),J0=_(Au,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),eS=_("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},hh)),tS=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${ue(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ve(d,_0,o)},Yi=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:h,slotProps:b,contentEditable:p,tabIndex:g,onInput:y,onPaste:S,onKeyDown:P,name:C,readOnly:x,inputProps:I,inputRef:M,sectionListRef:$}=r,R=ke(r,K0),E=v.useRef(null),F=Fe(n,E),T=Fe(I?.ref,M),m=Wt(),O=Bt();if(!O)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=Y=>{if(O.disabled){Y.stopPropagation();return}O.onFocus?.(Y)};v.useEffect(()=>{O&&O.setAdornedStart(!!u)},[O,u]),v.useEffect(()=>{O&&(s?O.onEmpty():O.onFilled())},[O,s]);const k=j({},r,O,{isRtl:m}),w=tS(k),A=h?.root||us,L=Ae({elementType:A,externalSlotProps:b?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":O.error,ref:F},className:w.root,ownerState:k}),N=h?.input||Ui;return f.jsxs(A,j({},L,{children:[u,f.jsx(q0,{sectionListRef:$,elements:o,contentEditable:p,tabIndex:g,className:w.sectionsContainer,onFocus:D,onBlur:O.onBlur,onInput:y,onPaste:S,onKeyDown:P,slots:{root:N,section:X0,sectionContent:Z0,sectionSeparator:J0},slotProps:{root:{ownerState:k},sectionContent:{className:er.sectionContent},sectionSeparator:({position:Y})=>({className:Y==="before"?er.sectionBefore:er.sectionAfter})}}),c,d?d(j({},O)):null,f.jsx(eS,j({name:C,className:w.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:O.required,disabled:O.disabled},I,{ref:T}))]}))});function nS(e){return Se("MuiPickersOutlinedInput",e)}const zt=j({},er,be("MuiPickersOutlinedInput",["root","notchedOutline","input"])),rS=["children","className","label","notched","shrink"],oS=_("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.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}}),Ll=_("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),sS=_("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function iS(e){const{className:t,label:n}=e,r=ke(e,rS),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(oS,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(sS,{ownerState:s,children:o?f.jsx(Ll,{children:n}):f.jsx(Ll,{className:"notranslate",children:""})})}))}const aS=["label","autoFocus","ownerState","notched"],lS=_(us,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.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 .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${zt.focused} .${zt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${zt.disabled}`]:{[`& .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${zt.error} .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${zt.focused}:not(.${zt.error}) .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),cS=_(Ui,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),uS=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nS,t);return j({},t,r)},Lu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ke(r,aS),l=Bt(),c=j({},r,s,l,{color:l?.color||"primary"}),u=uS(c);return f.jsx(Yi,j({slots:{root:lS,input:cS},renderSuffix:d=>f.jsx(iS,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&l?.required?f.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Lu.muiName="Input";function dS(e){return Se("MuiPickersFilledInput",e)}const wn=j({},er,be("MuiPickersFilledInput",["root","underline","input"])),pS=["label","autoFocus","disableUnderline","ownerState"],fS=_(us,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qe.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)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${wn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${wn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.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"},[`&.${wn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wn.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(.${wn.disabled}, .${wn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),mS=_(Ui,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),hS=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},dS,t);return j({},t,o)},Nu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ke(r,pS),l=Bt(),c=j({},r,i,l,{color:l?.color||"primary"}),u=hS(c);return f.jsx(Yi,j({slots:{root:fS,input:mS},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});Nu.muiName="Input";function gS(e){return Se("MuiPickersFilledInput",e)}const wr=j({},er,be("MuiPickersInput",["root","input"])),yS=["label","autoFocus","disableUnderline","ownerState"],bS=_(us,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({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(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wr.disabled}, .${wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),vS=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},gS,t);return j({},t,o)},ju=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ke(r,yS),l=Bt(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=vS(c);return f.jsx(Yi,j({slots:{root:bS}},a,{label:o,classes:u,ref:n}))});ju.muiName="Input";const xS=["onFocus","onBlur","className","color","disabled","error","variant","required","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"],SS={standard:ju,filled:Nu,outlined:Lu},CS=_(Vi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),wS=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ve({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},W0,r)},PS=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:h,inputProps:b,inputRef:p,sectionListRef:g,elements:y,areAllSectionsEmpty:S,onClick:P,onKeyDown:C,onKeyUp:x,onPaste:I,onInput:M,endAdornment:$,startAdornment:R,tabIndex:E,contentEditable:F,focused:T,value:m,onChange:O,fullWidth:D,id:k,name:w,helperText:A,FormHelperTextProps:L,label:N,InputLabelProps:Y}=r,W=ke(r,xS),J=v.useRef(null),ce=Fe(n,J),ae=_t(k),V=A&&ae?`${ae}-helper-text`:void 0,q=N&&ae?`${ae}-label`:void 0,ne=j({},r,{color:a,disabled:l,error:c,focused:T,required:d,variant:u}),K=wS(ne),z=SS[u];return f.jsxs(CS,j({className:me(K.root,i),ref:ce,focused:T,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:d,ownerState:ne},W,{children:[f.jsx(Bi,j({htmlFor:ae,id:q},Y,{children:N})),f.jsx(z,j({elements:y,areAllSectionsEmpty:S,onClick:P,onKeyDown:C,onKeyUp:x,onInput:M,onPaste:I,endAdornment:$,startAdornment:R,tabIndex:E,contentEditable:F,value:m,onChange:O,id:ae,fullWidth:D,inputProps:b,inputRef:p,sectionListRef:g,label:N,name:w,role:"group","aria-labelledby":q,"aria-describedby":V,"aria-live":V?"polite":void 0},h)),A&&f.jsx(wu,j({id:V},L,{children:A}))]}))}),kS=["enableAccessibleFieldDOMStructure"],MS=["InputProps","readOnly"],DS=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],IS=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ke(e,kS);if(t){const{InputProps:d,readOnly:h}=n,b=ke(n,MS);return j({},b,{InputProps:j({},d??{},{readOnly:h})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ke(n,DS);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},TS=["slots","slotProps","InputProps","inputProps"],Bu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ke(r,TS),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?PS:Hi),d=Ae({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=j({},a,d.inputProps),d.InputProps=j({},i,d.InputProps);const h=z0(d),b=IS(h),p=N0(j({},b,{slots:o,slotProps:s}));return f.jsx(u,j({},p))}),Vu=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=Ln();return v.useCallback(c=>Zr({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},RS=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},OS=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,h=Ue(),b=v.useRef(RS(!!c,s,h)).current,p=v.useMemo(()=>Kt.getInitialReferenceValue({value:t,utils:h,timezone:d,props:e,referenceDate:n,granularity:Yt.day}),[n,d]),[g,y]=v.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:p,currentMonth:h.startOfMonth(p),slideDirection:"left"});v.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:h.getTimezone(p)})},[p,h]);const S=v.useCallback(M=>{y(j({type:"changeMonth"},M)),l&&l(M.newMonth)},[l]),P=v.useCallback(M=>{const $=M;h.isSameMonth($,g.currentMonth)||S({newMonth:h.startOfMonth($),direction:h.isAfterDay($,g.currentMonth)?"left":"right"})},[g.currentMonth,S,h]),C=Vu({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:d}),x=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),I=fe((M,$)=>{C(M)||y({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:$})});return{referenceDate:p,calendarState:g,changeMonth:P,changeFocusedDay:I,isDateDisabled:C,onMonthSwitchingAnimationEnd:x,handleChangeMonth:S}},$S=e=>Se("MuiPickersFadeTransitionGroup",e);be("MuiPickersFadeTransitionGroup",["root"]);const ES=e=>{const{classes:t}=e;return ve({root:["root"]},$S,t)},AS=_(Jr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function zu(e){const t=He({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ES(t),a=Fn();return o?n:f.jsx(AS,{className:me(i.root,r),children:f.jsx(En,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function FS(e){return Se("MuiPickersDay",e)}const Pn=be("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),LS=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],NS=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return ve({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},FS,l)},Wu=({theme:e})=>j({},e.typography.caption,{width:Hr,height:Hr,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})`:Qe.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Pn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Pn.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}},[`&.${Pn.disabled}:not(.${Pn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pn.disabled}&.${Pn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${os}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Pn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),_u=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},jS=_(or,{name:"MuiPickersDay",slot:"Root",overridesResolver:_u})(Wu),BS=_("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:_u})(({theme:e})=>j({},Wu({theme:e}),{opacity:0,pointerEvents:"none"})),Pr=()=>{},VS=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:h,onFocus:b=Pr,onBlur:p=Pr,onKeyDown:g=Pr,onMouseDown:y=Pr,onMouseEnter:S=Pr,outsideCurrentMonth:P,selected:C=!1,showDaysOutsideCurrentMonth:x=!1,children:I,today:M=!1}=r,$=ke(r,LS),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:x,today:M}),E=NS(R),F=Ue(),T=v.useRef(null),m=Fe(T,n);st(()=>{o&&!a&&!u&&!P&&T.current.focus()},[o,a,u,P]);const O=k=>{y(k),P&&k.preventDefault()},D=k=>{a||h(i),P&&k.currentTarget.focus(),d&&d(k)};return P&&!x?f.jsx(BS,{className:me(E.root,E.hiddenDaySpacingFiller,s),ownerState:R,role:$.role}):f.jsx(jS,j({className:me(E.root,s),ref:m,centerRipple:!0,disabled:a,tabIndex:C?0:-1,onKeyDown:k=>g(k,i),onFocus:k=>b(k,i),onBlur:k=>p(k,i),onMouseEnter:k=>S(k,i),onClick:D,onMouseDown:O},$,{ownerState:R,children:I||F.format(i,"dayOfMonth")}))}),zS=v.memo(VS),WS=e=>Se("MuiPickersSlideTransition",e),It=be("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),_S=["children","className","reduceAnimations","slideDirection","transKey","classes"],HS=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ve(r,WS,t)},US=_(Jr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${It["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${It["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${It.slideEnterActive}`]:t.slideEnterActive},{[`.${It.slideExit}`]:t.slideExit},{[`.${It["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${It["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},[`& .${It["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${It["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${It.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${It.slideExit}`]:{transform:"translate(0%)"},[`& .${It["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${It["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function YS(e){const t=He({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ke(t,_S),a=HS(t),l=Fn();if(o)return f.jsx("div",{className:me(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return f.jsx(US,{className:me(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(Si,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const GS=e=>Se("MuiDayCalendar",e);be("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const qS=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],KS=["ownerState"],QS=e=>{const{classes:t}=e;return ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},GS,t)},Hu=(Hr+os*2)*6,XS=_("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZS=_("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),JS=_(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),eC=_(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),tC=_(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Hr,height:Hr,padding:0,margin:`0 ${os}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),nC=_("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Hu}),rC=_(YS,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Hu}),oC=_("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),sC=_("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${os}px 0`,display:"flex",justifyContent:"center"});function iC(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ke(e,qS);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:h,slots:b,slotProps:p,timezone:g}=t,y=Ue(),S=ts(g),P=r!==null&&y.isSameDay(n,r),C=o.some(m=>y.isSameDay(m,n)),x=y.isSameDay(n,S),I=b?.day??zS,M=Ae({elementType:I,externalSlotProps:p?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:d,"data-timestamp":y.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:C})}),$=ke(M,KS),R=v.useMemo(()=>c||s(n),[c,s,n]),E=v.useMemo(()=>y.getMonth(n)!==i,[y,n,i]),F=v.useMemo(()=>{const m=y.startOfMonth(y.setMonth(n,i));return h?y.isSameDay(n,y.startOfWeek(m)):y.isSameDay(n,m)},[i,n,h,y]),T=v.useMemo(()=>{const m=y.endOfMonth(y.setMonth(n,i));return h?y.isSameDay(n,y.endOfWeek(m)):y.isSameDay(n,m)},[i,n,h,y]);return f.jsx(I,j({},$,{day:n,disabled:R,autoFocus:a&&P,today:x,outsideCurrentMonth:E,isFirstVisibleCell:F,isLastVisibleCell:T,selected:C,tabIndex:P?0:-1,"aria-selected":C,"aria-current":x?"date":void 0}))}function aC(e){const t=He({props:e,name:"MuiDayCalendar"}),n=Ue(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:h,renderLoading:b=()=>f.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:g,disablePast:y,disableFuture:S,minDate:P,maxDate:C,shouldDisableDate:x,shouldDisableMonth:I,shouldDisableYear:M,dayOfWeekFormatter:$=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:E,gridLabelId:F,displayWeekNumber:T,fixedWeekNumber:m,autoFocus:O,timezone:D}=t,k=ts(D),w=QS(t),A=Wt(),L=Vu({shouldDisableDate:x,shouldDisableMonth:I,shouldDisableYear:M,minDate:P,maxDate:C,disablePast:y,disableFuture:S,timezone:D}),N=an(),[Y,W]=Mt({name:"DayCalendar",state:"hasFocus",controlled:R,default:O??!1}),[J,ce]=v.useState(()=>a||k),ae=fe(te=>{d||c(te)}),V=te=>{L(te)||(r(te),ce(te),E?.(!0),W(!0))},q=fe((te,pe)=>{switch(te.key){case"ArrowUp":V(n.addDays(pe,-7)),te.preventDefault();break;case"ArrowDown":V(n.addDays(pe,7)),te.preventDefault();break;case"ArrowLeft":{const H=n.addDays(pe,A?1:-1),ye=n.addMonths(pe,A?1:-1),de=$r({utils:n,date:H,minDate:A?H:n.startOfMonth(ye),maxDate:A?n.endOfMonth(ye):H,isDateDisabled:L,timezone:D});V(de||H),te.preventDefault();break}case"ArrowRight":{const H=n.addDays(pe,A?-1:1),ye=n.addMonths(pe,A?-1:1),de=$r({utils:n,date:H,minDate:A?n.startOfMonth(ye):H,maxDate:A?H:n.endOfMonth(ye),isDateDisabled:L,timezone:D});V(de||H),te.preventDefault();break}case"Home":V(n.startOfWeek(pe)),te.preventDefault();break;case"End":V(n.endOfWeek(pe)),te.preventDefault();break;case"PageUp":V(n.addMonths(pe,1)),te.preventDefault();break;case"PageDown":V(n.addMonths(pe,-1)),te.preventDefault();break}}),ne=fe((te,pe)=>V(pe)),K=fe((te,pe)=>{Y&&n.isSameDay(J,pe)&&E?.(!1)}),z=n.getMonth(s),G=n.getYear(s),oe=v.useMemo(()=>i.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,i]),re=`${G}-${z}`,B=v.useMemo(()=>v.createRef(),[re]),ee=v.useMemo(()=>{const te=n.startOfMonth(s),pe=n.endOfMonth(s);return L(J)||n.isAfterDay(J,pe)||n.isBeforeDay(J,te)?$r({utils:n,date:J,minDate:te,maxDate:pe,disablePast:y,disableFuture:S,isDateDisabled:L,timezone:D}):J},[s,S,y,J,L,n,D]),le=v.useMemo(()=>{const te=n.getWeekArray(s);let pe=n.addMonths(s,1);for(;m&&te.length<m;){const H=n.getWeekArray(pe),ye=n.isSameDay(te[te.length-1][0],H[0][0]);H.slice(ye?1:0).forEach(de=>{te.length<m&&te.push(de)}),pe=n.addMonths(pe,1)}return te},[s,m,n]);return f.jsxs(XS,{role:"grid","aria-labelledby":F,className:w.root,children:[f.jsxs(ZS,{role:"row",className:w.header,children:[T&&f.jsx(eC,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:w.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),xh(n,k).map((te,pe)=>f.jsx(JS,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:w.weekDayLabel,children:$(te)},pe.toString()))]}),l?f.jsx(nC,{className:w.loadingContainer,children:b()}):f.jsx(rC,j({transKey:re,onExited:u,reduceAnimations:h,slideDirection:p,className:me(o,w.slideTransition)},g,{nodeRef:B,children:f.jsx(oC,{ref:B,role:"rowgroup",className:w.monthContainer,children:le.map((te,pe)=>f.jsxs(sC,{role:"row",className:w.weekContainer,"aria-rowindex":pe+1,children:[T&&f.jsx(tC,{className:w.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:N.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((H,ye)=>f.jsx(iC,{parentProps:t,day:H,selectedDays:oe,focusableDay:ee,onKeyDown:q,onFocus:ne,onBlur:K,onDaySelect:ae,isDateDisabled:L,currentMonthNumber:z,isViewFocused:Y,"aria-colindex":ye+1},H.toString()))]},`week-${te[0]}`))})}))]})}function lC(e){return Se("MuiPickersMonth",e)}const uo=be("MuiPickersMonth",["root","monthButton","disabled","selected"]),cC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],uC=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},lC,r)},dC=_("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),pC=_("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${uo.disabled}`]:t.disabled},{[`&.${uo.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),fC=v.memo(function(t){const n=He({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:b,"aria-current":p,"aria-label":g,slots:y,slotProps:S}=n,P=ke(n,cC),C=v.useRef(null),x=uC(n);st(()=>{r&&C.current?.focus()},[r]);const I=y?.monthButton??pC,M=Ae({elementType:I,externalSlotProps:S?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":g,onClick:$=>u($,l),onKeyDown:$=>d($,l),onFocus:$=>h($,l),onBlur:$=>b($,l)},ownerState:n,className:x.monthButton});return f.jsx(dC,j({className:me(x.root,o),ownerState:n},P,{children:f.jsx(I,j({},M))}))});function mC(e){return Se("MuiMonthCalendar",e)}be("MuiMonthCalendar",["root"]);const hC=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],gC=e=>{const{classes:t}=e;return ve({root:["root"]},mC,t)};function yC(e,t){const n=Ue(),r=Xr(),o=He({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:Et(n,o.minDate,r.minDate),maxDate:Et(n,o.maxDate,r.maxDate)})}const bC=_("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:ss,boxSizing:"border-box"}),vC=v.forwardRef(function(t,n){const r=yC(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:h,onChange:b,shouldDisableMonth:p,readOnly:g,autoFocus:y=!1,onMonthFocus:S,hasFocus:P,onFocusedViewChange:C,monthsPerRow:x=3,timezone:I,gridLabelId:M,slots:$,slotProps:R}=r,E=ke(r,hC),{value:F,handleValueChange:T,timezone:m}=Ei({name:"MonthCalendar",timezone:I,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Kt}),O=ts(m),D=Wt(),k=Ue(),w=v.useMemo(()=>Kt.getInitialReferenceValue({value:F,utils:k,props:r,timezone:m,referenceDate:a,granularity:Yt.month}),[]),A=r,L=gC(A),N=v.useMemo(()=>k.getMonth(O),[k,O]),Y=v.useMemo(()=>F!=null?k.getMonth(F):null,[F,k]),[W,J]=v.useState(()=>Y||k.getMonth(w)),[ce,ae]=Mt({name:"MonthCalendar",state:"hasFocus",controlled:P,default:y??!1}),V=fe(re=>{ae(re),C&&C(re)}),q=v.useCallback(re=>{const B=k.startOfMonth(u&&k.isAfter(O,h)?O:h),ee=k.startOfMonth(c&&k.isBefore(O,d)?O:d),le=k.startOfMonth(re);return k.isBefore(le,B)||k.isAfter(le,ee)?!0:p?p(le):!1},[c,u,d,h,O,p,k]),ne=fe((re,B)=>{if(g)return;const ee=k.setMonth(F??w,B);T(ee)}),K=fe(re=>{q(k.setMonth(F??w,re))||(J(re),V(!0),S&&S(re))});v.useEffect(()=>{J(re=>Y!==null&&re!==Y?Y:re)},[Y]);const z=fe((re,B)=>{switch(re.key){case"ArrowUp":K((12+B-3)%12),re.preventDefault();break;case"ArrowDown":K((12+B+3)%12),re.preventDefault();break;case"ArrowLeft":K((12+B+(D?1:-1))%12),re.preventDefault();break;case"ArrowRight":K((12+B+(D?-1:1))%12),re.preventDefault();break}}),G=fe((re,B)=>{K(B)}),oe=fe((re,B)=>{W===B&&V(!1)});return f.jsx(bC,j({ref:n,className:me(L.root,o),ownerState:A,role:"radiogroup","aria-labelledby":M},E,{children:gi(k,F??w).map(re=>{const B=k.getMonth(re),ee=k.format(re,"monthShort"),le=k.format(re,"month"),te=B===Y,pe=l||q(re);return f.jsx(fC,{selected:te,value:B,onClick:ne,onKeyDown:z,autoFocus:ce&&B===W,disabled:pe,tabIndex:B===W&&!pe?0:-1,onFocus:G,onBlur:oe,"aria-current":N===B?"date":void 0,"aria-label":le,monthsPerRow:x,slots:$,slotProps:R,children:ee},ee)})}))});function xC(e){return Se("MuiPickersYear",e)}const po=be("MuiPickersYear",["root","yearButton","selected","disabled"]),SC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],CC=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},xC,r)},wC=_("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),PC=_("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${po.disabled}`]:t.disabled},{[`&.${po.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${po.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${po.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),kC=v.memo(function(t){const n=He({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:b,"aria-current":p,slots:g,slotProps:y}=n,S=ke(n,SC),P=v.useRef(null),C=CC(n);st(()=>{r&&P.current?.focus()},[r]);const x=g?.yearButton??PC,I=Ae({elementType:x,externalSlotProps:y?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:P,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>h(M,l),onBlur:M=>b(M,l)},ownerState:n,className:C.yearButton});return f.jsx(wC,j({className:me(C.root,o),ownerState:n},S,{children:f.jsx(x,j({},I))}))});function MC(e){return Se("MuiYearCalendar",e)}be("MuiYearCalendar",["root"]);const DC=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],IC=e=>{const{classes:t}=e;return ve({root:["root"]},MC,t)};function TC(e,t){const n=Ue(),r=Xr(),o=He({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Et(n,o.minDate,r.minDate),maxDate:Et(n,o.maxDate,r.maxDate)})}const RC=_("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:ss,maxHeight:Dv,boxSizing:"border-box",position:"relative"}),OC=v.forwardRef(function(t,n){const r=TC(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:b,onChange:p,readOnly:g,shouldDisableYear:y,onYearFocus:S,hasFocus:P,onFocusedViewChange:C,yearsOrder:x="asc",yearsPerRow:I,timezone:M,gridLabelId:$,slots:R,slotProps:E}=r,F=ke(r,DC),{value:T,handleValueChange:m,timezone:O}=Ei({name:"YearCalendar",timezone:M,value:i,defaultValue:a,referenceDate:l,onChange:p,valueManager:Kt}),D=ts(O),k=Wt(),w=Ue(),A=v.useMemo(()=>Kt.getInitialReferenceValue({value:T,utils:w,props:r,timezone:O,referenceDate:l,granularity:Yt.year}),[]),L=r,N=IC(L),Y=v.useMemo(()=>w.getYear(D),[w,D]),W=v.useMemo(()=>T!=null?w.getYear(T):null,[T,w]),[J,ce]=v.useState(()=>W||w.getYear(A)),[ae,V]=Mt({name:"YearCalendar",state:"hasFocus",controlled:P,default:o??!1}),q=fe(H=>{V(H),C&&C(H)}),ne=v.useCallback(H=>{if(d&&w.isBeforeYear(H,D)||u&&w.isAfterYear(H,D)||b&&w.isBeforeYear(H,b)||h&&w.isAfterYear(H,h))return!0;if(!y)return!1;const ye=w.startOfYear(H);return y(ye)},[u,d,h,b,D,y,w]),K=fe((H,ye)=>{if(g)return;const de=w.setYear(T??A,ye);m(de)}),z=fe(H=>{ne(w.setYear(T??A,H))||(ce(H),q(!0),S?.(H))});v.useEffect(()=>{ce(H=>W!==null&&H!==W?W:H)},[W]);const G=x!=="desc"?I*1:I*-1,oe=k&&x==="asc"||!k&&x==="desc"?-1:1,re=fe((H,ye)=>{switch(H.key){case"ArrowUp":z(ye-G),H.preventDefault();break;case"ArrowDown":z(ye+G),H.preventDefault();break;case"ArrowLeft":z(ye-oe),H.preventDefault();break;case"ArrowRight":z(ye+oe),H.preventDefault();break}}),B=fe((H,ye)=>{z(ye)}),ee=fe((H,ye)=>{J===ye&&q(!1)}),le=v.useRef(null),te=Fe(n,le);v.useEffect(()=>{if(o||le.current===null)return;const H=le.current.querySelector('[tabindex="0"]');if(!H)return;const ye=H.offsetHeight,de=H.offsetTop,Me=le.current.clientHeight,he=le.current.scrollTop,et=de+ye;ye>Me||de<he||(le.current.scrollTop=et-Me/2-ye/2)},[o]);const pe=w.getYearRange([b,h]);return x==="desc"&&pe.reverse(),f.jsx(RC,j({ref:te,className:me(N.root,s),ownerState:L,role:"radiogroup","aria-labelledby":$},F,{children:pe.map(H=>{const ye=w.getYear(H),de=ye===W,Me=c||ne(H);return f.jsx(kC,{selected:de,value:ye,onClick:K,onKeyDown:re,autoFocus:ae&&ye===J,disabled:Me,tabIndex:ye===J&&!Me?0:-1,onFocus:B,onBlur:ee,"aria-current":Y===ye?"date":void 0,yearsPerRow:I,slots:R,slotProps:E,children:w.format(H,"year")},w.format(H,"year"))})}))}),$C=e=>Se("MuiPickersCalendarHeader",e),EC=be("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function AC(e){return Se("MuiPickersArrowSwitcher",e)}be("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const FC=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],LC=["ownerState"],NC=["ownerState"],jC=_("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),BC=_("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Nl=_(Nn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),VC=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},AC,t)},zC=v.forwardRef(function(t,n){const r=Wt(),o=He({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:h,isPreviousDisabled:b,isPreviousHidden:p,onGoToPrevious:g,previousLabel:y,labelId:S}=o,P=ke(o,FC),C=o,x=VC(C),I={isDisabled:c,isHidden:u,goTo:d,label:h},M={isDisabled:b,isHidden:p,goTo:g,label:y},$=a?.previousIconButton??Nl,R=Ae({elementType:$,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:j({},C,{hidden:M.isHidden}),className:me(x.button,x.previousIconButton)}),E=a?.nextIconButton??Nl,F=Ae({elementType:E,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:j({},C,{hidden:I.isHidden}),className:me(x.button,x.nextIconButton)}),T=a?.leftArrowIcon??_v,m=Ae({elementType:T,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.leftArrowIcon}),O=ke(m,LC),D=a?.rightArrowIcon??Hv,k=Ae({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.rightArrowIcon}),w=ke(k,NC);return f.jsxs(jC,j({ref:n,className:me(x.root,i),ownerState:C},P,{children:[f.jsx($,j({},R,{children:r?f.jsx(D,j({},w)):f.jsx(T,j({},O))})),s?f.jsx(gn,{variant:"subtitle1",component:"span",id:S,children:s}):f.jsx(BC,{className:x.spacer,ownerState:C}),f.jsx(E,j({},F,{children:r?f.jsx(T,j({},O)):f.jsx(D,j({},w))}))]}))});function WC(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Ue();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function _C(e,{disablePast:t,minDate:n,timezone:r}){const o=Ue();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const HC=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],UC=["ownerState"],YC=e=>{const{classes:t}=e;return ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$C,t)},GC=_("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),qC=_("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),KC=_("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),QC=_(Nn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${EC.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),XC=_(Wv,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ZC=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=He({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:b,onMonthChange:p,onViewChange:g,view:y,reduceAnimations:S,views:P,labelId:C,className:x,timezone:I,format:M=`${o.formats.month} ${o.formats.year}`}=s,$=ke(s,HC),R=s,E=YC(s),F=i?.switchViewButton??QC,T=Ae({elementType:F,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:R,className:E.switchViewButton}),m=i?.switchViewIcon??XC,O=Ae({elementType:m,externalSlotProps:a?.switchViewIcon,ownerState:R,className:E.switchViewIcon}),D=ke(O,UC),k=()=>p(o.addMonths(l,1),"left"),w=()=>p(o.addMonths(l,-1),"right"),A=WC(l,{disableFuture:u,maxDate:h,timezone:I}),L=_C(l,{disablePast:d,minDate:b,timezone:I}),N=()=>{if(!(P.length===1||!g||c))if(P.length===2)g(P.find(W=>W!==y)||P[0]);else{const W=P.indexOf(y)!==0?0:1;g(P[W])}};if(P.length===1&&P[0]==="year")return null;const Y=o.formatByString(l,M);return f.jsxs(GC,j({},$,{ownerState:R,className:me(E.root,x),ref:n,children:[f.jsxs(qC,{role:"presentation",onClick:N,ownerState:R,"aria-live":"polite",className:E.labelContainer,children:[f.jsx(zu,{reduceAnimations:S,transKey:Y,children:f.jsx(KC,{id:C,ownerState:R,className:E.label,children:Y})}),P.length>1&&!c&&f.jsx(F,j({},T,{children:f.jsx(m,j({},D))}))]}),f.jsx(En,{in:y==="day",appear:!S,enter:!S,children:f.jsx(zC,{slots:i,slotProps:a,onGoToPrevious:w,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:k,isNextDisabled:A,nextLabel:r.nextMonth})})]}))}),JC=_("div")({overflow:"hidden",width:ss,maxHeight:Ai,display:"flex",flexDirection:"column",margin:"0 auto"}),ew=e=>Se("MuiDateCalendar",e);be("MuiDateCalendar",["root","viewTransitionContainer"]);const tw=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],nw=e=>{const{classes:t}=e;return ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ew,t)};function rw(e,t){const n=Ue(),r=Xr(),o=fu(),s=He({props:e,name:t});return j({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:Et(n,s.minDate,r.minDate),maxDate:Et(n,s.maxDate,r.maxDate)})}const ow=_(JC,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Ai}),sw=_(zu,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),iw=v.forwardRef(function(t,n){const r=Ue(),o=_t(),s=rw(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:h,onChange:b,onYearChange:p,onMonthChange:g,reduceAnimations:y,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:C,view:x,views:I,openTo:M,className:$,disabled:R,readOnly:E,minDate:F,maxDate:T,disableHighlightToday:m,focusedView:O,onFocusedViewChange:D,showDaysOutsideCurrentMonth:k,fixedWeekNumber:w,dayOfWeekFormatter:A,slots:L,slotProps:N,loading:Y,renderLoading:W,displayWeekNumber:J,yearsOrder:ce,yearsPerRow:ae,monthsPerRow:V,timezone:q}=s,ne=ke(s,tw),{value:K,handleValueChange:z,timezone:G}=Ei({name:"DateCalendar",timezone:q,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Kt}),{view:oe,setView:re,focusedView:B,setFocusedView:ee,goToNextView:le,setValueAndGoToNextView:te}=mu({view:x,views:I,openTo:M,onChange:z,onViewChange:a,autoFocus:i,focusedView:O,onFocusedViewChange:D}),{referenceDate:pe,calendarState:H,changeFocusedDay:ye,changeMonth:de,handleChangeMonth:Me,isDateDisabled:he,onMonthSwitchingAnimationEnd:et}=OS({value:K,referenceDate:u,reduceAnimations:y,onMonthChange:g,minDate:F,maxDate:T,shouldDisableDate:S,disablePast:h,disableFuture:d,timezone:G}),Le=R&&K||F,Xe=R&&K||T,nt=`${o}-grid-label`,mt=B!==null,rt=L?.calendarHeader??ZC,xt=Ae({elementType:rt,externalSlotProps:N?.calendarHeader,additionalProps:{views:I,view:oe,currentMonth:H.currentMonth,onViewChange:re,onMonthChange:(Ne,pt)=>Me({newMonth:Ne,direction:pt}),minDate:Le,maxDate:Xe,disabled:R,disablePast:h,disableFuture:d,reduceAnimations:y,timezone:G,labelId:nt},ownerState:s}),_e=fe(Ne=>{const pt=r.startOfMonth(Ne),ht=r.endOfMonth(Ne),it=he(Ne)?$r({utils:r,date:Ne,minDate:r.isBefore(F,pt)?pt:F,maxDate:r.isAfter(T,ht)?ht:T,disablePast:h,disableFuture:d,isDateDisabled:he,timezone:G}):Ne;it?(te(it,"finish"),g?.(pt)):(le(),de(pt)),ye(it,!0)}),Ce=fe(Ne=>{const pt=r.startOfYear(Ne),ht=r.endOfYear(Ne),it=he(Ne)?$r({utils:r,date:Ne,minDate:r.isBefore(F,pt)?pt:F,maxDate:r.isAfter(T,ht)?ht:T,disablePast:h,disableFuture:d,isDateDisabled:he,timezone:G}):Ne;it?(te(it,"finish"),p?.(it)):(le(),de(pt)),ye(it,!0)}),tt=fe(Ne=>z(Ne&&$o(r,Ne,K??pe),"finish",oe));v.useEffect(()=>{K!=null&&r.isValid(K)&&de(K)},[K]);const St=s,ut=nw(St),xe={disablePast:h,disableFuture:d,maxDate:T,minDate:F},Ie={disableHighlightToday:m,readOnly:E,disabled:R,timezone:G,gridLabelId:nt,slots:L,slotProps:N},$e=v.useRef(oe);v.useEffect(()=>{$e.current!==oe&&(B===$e.current&&ee(oe,!0),$e.current=oe)},[B,ee,oe]);const Ct=v.useMemo(()=>[K],[K]);return f.jsxs(ow,j({ref:n,className:me(ut.root,$),ownerState:St},ne,{children:[f.jsx(rt,j({},xt,{slots:L,slotProps:N})),f.jsx(sw,{reduceAnimations:y,className:ut.viewTransitionContainer,transKey:oe,ownerState:St,children:f.jsxs("div",{children:[oe==="year"&&f.jsx(OC,j({},xe,Ie,{value:K,onChange:Ce,shouldDisableYear:C,hasFocus:mt,onFocusedViewChange:Ne=>ee("year",Ne),yearsOrder:ce,yearsPerRow:ae,referenceDate:pe})),oe==="month"&&f.jsx(vC,j({},xe,Ie,{hasFocus:mt,className:$,value:K,onChange:_e,shouldDisableMonth:P,onFocusedViewChange:Ne=>ee("month",Ne),monthsPerRow:V,referenceDate:pe})),oe==="day"&&f.jsx(aC,j({},H,xe,Ie,{onMonthSwitchingAnimationEnd:et,onFocusedDayChange:ye,reduceAnimations:y,selectedDays:Ct,onSelectedDaysChange:tt,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:C,hasFocus:mt,onFocusedViewChange:Ne=>ee("day",Ne),showDaysOutsideCurrentMonth:k,fixedWeekNumber:w,dayOfWeekFormatter:A,displayWeekNumber:J,loading:Y,renderLoading:W}))]})})]}))}),tr=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:b,maxDate:p,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:S,reduceAnimations:P,onMonthChange:C,monthsPerRow:x,onYearChange:I,yearsOrder:M,yearsPerRow:$,slots:R,slotProps:E,loading:F,renderLoading:T,disableHighlightToday:m,readOnly:O,disabled:D,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:w,sx:A,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:Y,timezone:W})=>f.jsx(iw,{view:e,onViewChange:t,views:n.filter(Ya),focusedView:r&&Ya(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:b,maxDate:p,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:S,reduceAnimations:P,onMonthChange:C,monthsPerRow:x,onYearChange:I,yearsOrder:M,yearsPerRow:$,slots:R,slotProps:E,loading:F,renderLoading:T,disableHighlightToday:m,readOnly:O,disabled:D,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:w,sx:A,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:Y,timezone:W}),Uu=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=Kc(t,"MuiDesktopDatePicker"),i=j({day:tr,month:tr,year:tr},s.viewRenderers),a=j({},s,{viewRenderers:i,format:yi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:Uv,field:Bu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Jo(s.slotProps?.field,c),Xc(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=zv({props:a,valueManager:Kt,valueType:"date",getOpenDialogAriaText:Gc({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Zr});return l()});Uu.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:Lc,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};function aw(e){return Se("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);const lw=be("MuiDialogTitle",["root"]),cw=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},aw,t)},uw=_("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Re(({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:{[`.${lw.root} + &`]:{paddingTop:0}}}]}))),dw=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=cw(a);return f.jsx(uw,{className:me(l.root,o),ownerState:a,ref:n,...i})});function pw(e){return Se("MuiDialog",e)}const Nr=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fw=v.createContext({}),mw=_(ku,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),hw=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return ve(i,pw,t)},gw=_(Mu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),yw=_("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ue(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"}}}]}),bw=_(jn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ue(n.scroll)}`],t[`paperWidth${ue(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Re(({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)`,[`&.${Nr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{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}`,[`&.${Nr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{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,[`&.${Nr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vw=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialog"}),o=Fn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:h,disableEscapeKeyDown:b=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:S,onClose:P,open:C,PaperComponent:x=jn,PaperProps:I={},scroll:M="paper",slots:$={},slotProps:R={},TransitionComponent:E=En,transitionDuration:F=s,TransitionProps:T,...m}=r,O={...r,disableEscapeKeyDown:b,fullScreen:p,fullWidth:g,maxWidth:y,scroll:M},D=hw(O),k=v.useRef(),w=B=>{k.current=B.target===B.currentTarget},A=B=>{S&&S(B),k.current&&(k.current=null,P&&P(B,"backdropClick"))},L=_t(a),N=v.useMemo(()=>({titleId:L}),[L]),Y={transition:E,...$},W={transition:T,paper:I,backdrop:u,...R},J={slots:Y,slotProps:W},[ce,ae]=We("root",{elementType:gw,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:O,className:me(D.root,h),ref:n}),[V,q]=We("backdrop",{elementType:mw,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:O}),[ne,K]=We("paper",{elementType:bw,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:O,className:me(D.paper,I.className)}),[z,G]=We("container",{elementType:yw,externalForwardedProps:J,ownerState:O,className:D.container}),[oe,re]=We("transition",{elementType:En,externalForwardedProps:J,ownerState:O,additionalProps:{appear:!0,in:C,timeout:F,role:"presentation"}});return f.jsx(ce,{closeAfterTransition:!0,slots:{backdrop:V},slotProps:{backdrop:{transitionDuration:F,as:c,...q}},disableEscapeKeyDown:b,onClose:P,open:C,onClick:A,...ae,...m,children:f.jsx(oe,{...re,children:f.jsx(z,{onMouseDown:w,...G,children:f.jsx(ne,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,...K,children:f.jsx(fw.Provider,{value:N,children:d})})})})})}),xw=_(vw)({[`& .${Nr.container}`]:{outline:0},[`& .${Nr.paper}`]:{outline:0,minWidth:ss}}),Sw=_(dw)({"&:first-of-type":{padding:0}});function Cw(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??xw,a=o?.mobileTransition??En;return f.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:f.jsx(Sw,{children:t})}))}const ww=["props","getOpenDialogAriaText"],Pw=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ke(e,ww);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,name:p,label:g,inputRef:y,readOnly:S,disabled:P,localeText:C}=t,x=v.useRef(null),I=_t(),M=s?.toolbar?.hidden??!1,{open:$,actions:R,layoutProps:E,renderCurrentView:F,fieldProps:T,contextValue:m}=hu(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),O=o.field,D=Ae({elementType:O,externalSlotProps:s?.field,additionalProps:j({},T,M&&{id:I},!(P||S)&&{onClick:R.onOpen,onKeyDown:Db(R.onOpen)},{readOnly:S??!0,disabled:P,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,label:g,name:p},y?{inputRef:y}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(T.value)});const k=j({textField:o.textField},D.slots),w=o.layout??Su;let A=I;M&&(g?A=`${I}-label`:A=void 0);const L=j({},s,{toolbar:j({},s?.toolbar,{titleId:I}),mobilePaper:j({"aria-labelledby":A},s?.mobilePaper)}),N=Fe(x,D.unstableFieldRef);return{renderPicker:()=>f.jsxs(Cu,{contextValue:m,localeText:C,children:[f.jsx(O,j({},D,{slots:k,slotProps:L,unstableFieldRef:N})),f.jsx(Cw,j({},R,{open:$,slots:o,slotProps:L,children:f.jsx(w,j({},E,L?.layout,{slots:o,slotProps:L,children:F()}))}))]})}},Yu=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=Kc(t,"MuiMobileDatePicker"),i=j({day:tr,month:tr,year:tr},s.viewRenderers),a=j({},s,{viewRenderers:i,format:yi(o,s,!1),slots:j({field:Bu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Jo(s.slotProps?.field,c),Xc(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=Pw({props:a,valueManager:Kt,valueType:"date",getOpenDialogAriaText:Gc({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Zr});return l()});Yu.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:Lc,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const kw=["desktopModeMediaQuery"],Ur=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=Ib}=r,s=ke(r,kw);return Fc(o,{defaultMatches:!0})?f.jsx(Uu,j({ref:n},s)):f.jsx(Yu,j({ref:n},s))});function Mw(e,t){if(!t)return;const n=t.trim();if(!n)return;const r=e??"string";if(r==="date"||r==="timestamp"||r==="timestamptz")return n.replace(/^@/,"");if(r.startsWith("filter<")){const o=n.replace(/^f/,""),s=o.match(/^'([^'\\]*)'$/)??o.match(/^"([^"\\]*)"$/);return s?s[1]:o}return r==="string"?Dw(n):n}function Dw(e){const t=e[0];return e.length>=2&&(t==="'"||t==='"')&&e[e.length-1]===t?e.slice(1,-1).replace(/\\(["'\\ntr])/g,(n,r)=>r==="n"?`
|
|
131
|
+
`:r==="t"?" ":r==="r"?"\r":r):e}Ve.extend(ci);const jl=14,Iw=42;function Tw(e){const t=(e.annotations??[]).filter(r=>r.trim().startsWith("#("));if(t.length===0)return;const n=[];for(const r of t){const o=r.trim(),s=o.match(/description="([^"]*)"/);if(s){n.push(s[1]);continue}const i=o.replace(/^#\(/,"").replace(/\)\s*$/,"").trim();i&&n.push(i)}return n.length>0?n.join(`
|
|
132
|
+
`):void 0}function Gu({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s}){const i=e.label??e.name??"",a=e.type??"string",l=Tw(e),c=Mw(a,e.default),u=c!==void 0?`Default: ${c===""?"(empty)":c}`:void 0,d=l||u?f.jsxs(f.Fragment,{children:[l,l&&u?f.jsx("br",{}):null,u]}):void 0,h=a==="string"||Or(a)==="string",b=!Dn(a)||typeof t!="string"||gm(t),p=w=>f.jsx(se.TextField,{label:i,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${w}. Clear it to pick one.`,d?f.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:f.jsx(Os,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),g=Dn(a),y=e.control==="multiselect"&&g,S=Dn(a),P=e.control==="select"||e.control==="multiselect",C=P?S?typeof t=="string"?hm(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(P&&h&&b&&!(!y&&C.length>1)){const w=A=>{const L=S?ui(A):void 0;if(A.length===0||L===""){n(null);return}n(S?L:A[0])};return f.jsx(se.Autocomplete,{multiple:y,disableCloseOnSelect:y,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:s?"Options unavailable":"No matching values",value:y?C:C[0]??null,onChange:(A,L)=>w(L===null?[]:Array.isArray(L)?L:[L]),renderInput:A=>f.jsx(se.TextField,{...A,label:i,size:"small",placeholder:C.length!==0?void 0:t===""?"All":c??"All",error:s,helperText:s?f.jsxs(f.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",d?f.jsx("br",{}):null,d]}):d,slotProps:{input:{...A.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(se.CircularProgress,{size:16}),A.InputProps.endAdornment]})}}}),fullWidth:!0})}const x=Dn(a)&&Or(a)==="number",{rangeMin:I,rangeMax:M}=e,$=x&&typeof t=="string"?bm(t):void 0,R=x&&typeof t=="string"?xm(t):void 0;if((x||a==="number")&&I!==void 0&&M!==void 0&&(!x||t===void 0||t===null||t===""||$!==void 0||R!==void 0)){const w=R??($!==void 0?[$,M]:void 0),A=x?w?.[0]:typeof t=="number"?t:void 0;if(A===void 0&&t!==void 0&&t!==null&&t!=="")return p("number");const L=A??I,N=w??[I,M],Y=N[1]>=M?`≥ ${N[0]}`:`${N[0]} to ${N[1]}`,W=x&&t==="",J=A!==void 0||W;return f.jsxs(se.FormControl,{fullWidth:!0,children:[f.jsxs(se.Box,{sx:{height:Iw,px:`${jl}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[f.jsxs(se.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(se.Typography,{variant:"body2",color:"text.secondary",noWrap:!0,children:i}),f.jsx(se.Typography,{variant:"body2",sx:{fontWeight:600},children:J?W?"Any":x?Y:String(L):x?"Any":c??"Unset"}),J&&f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:f.jsx(Ro,{fontSize:"small"})})]}),f.jsx(se.Slider,{size:"small",min:I,max:M,value:x?N:L,disableSwap:x,valueLabelDisplay:"auto","aria-label":x?void 0:i,getAriaLabel:x?ce=>ce===0?`${i} from`:`${i} to`:void 0,sx:{py:0,mt:.5},onChange:(ce,ae)=>{if(x){const[V,q]=Array.isArray(ae)?[ae[0],ae[1]]:[ae,ae];if(V<=I&&q>=M){n(null);return}n(q>=M?ym(V):vm(V,q));return}n(Array.isArray(ae)?ae[0]:ae)}})]}),d&&f.jsx(se.FormHelperText,{sx:{mx:`${jl}px`},children:d})]})}const F=Dn(a)?Or(a):void 0,T=F==="date"||F==="timestamp"||F==="timestamptz",m=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),O=t==null||m;if(T&&!m){const w=Rw(t);if(w!==void 0)return f.jsx(Ow,{label:i,state:w,onChange:n,helperNode:d,defaultDisplay:c})}if(T&&O){const w=m?Ve.utc(t):null;return f.jsx(Vr,{dateAdapter:Oo,children:f.jsx(Ur,{label:i,value:w?.isValid()?w:null,onChange:A=>n(A?A.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}if(a==="boolean"){const w=typeof t=="boolean";if(!w&&t!==void 0&&t!==null)return p("true or false");const A=e.default?.trim()==="true",L=w?t:A;return f.jsxs(se.FormControl,{children:[f.jsxs(se.Stack,{direction:"row",alignItems:"center",children:[f.jsx(se.FormControlLabel,{control:f.jsx(se.Checkbox,{checked:L,onChange:N=>n(N.target.checked)}),label:i}),w&&f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:f.jsx(Ro,{fontSize:"small"})})]}),d&&f.jsx(se.FormHelperText,{children:d})]})}if(a==="number"){const w=typeof t=="number"?t:"",A=t!=null;return A&&t!==""&&typeof t!="number"?p("number"):f.jsx(se.TextField,{label:i,type:"number",value:w,onChange:L=>{const N=L.target.value;n(N===""?null:Number(N))},placeholder:c,helperText:d,slotProps:{input:{endAdornment:A&&f.jsx(Os,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(a==="date"||a==="timestamp"||a==="timestamptz"){const w=t instanceof Date?t:typeof t=="string"?(N=>N instanceof Date?N:null)(wc(a,t)):null,A=w?Ve.utc(w):null;return t!=null&&t!==""&&w===null?p("date"):f.jsx(Vr,{dateAdapter:Oo,children:f.jsx(Ur,{label:i,value:A,onChange:N=>n(N?Dm(N,w??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}const D=typeof t=="string"?t:"",k=t!=null;return f.jsx(se.TextField,{label:i,value:D,onChange:w=>n(w.target.value),placeholder:k?void 0:c??(a.startsWith("filter<")?a:void 0),helperText:d,slotProps:{input:{endAdornment:k&&f.jsx(Os,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Os({onClear:e}){return f.jsx(se.InputAdornment,{position:"end",children:f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:f.jsx(Ro,{fontSize:"small"})})})}function Rw(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=Cm(e);if(t!==void 0)return{kind:"preset",key:t};const n=km(e);if(n!==void 0)return{kind:"days",...n}}const fo="__custom__",$s="__any__";function Ow({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const s=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[i,a]=ie.useState(t.kind==="days"),[l,c]=ie.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});ie.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",d=i?fo:t.kind==="preset"?t.key:t.kind==="any"?$s:"",h=p=>{c(p),p.from&&p.to&&!Ve.utc(p.to).isBefore(Ve.utc(p.from))&&n(Pm(p.from,p.to))},b=p=>{const g=p?Ve.utc(p):null;return g?.isValid()?g:null};return f.jsxs(se.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(se.TextField,{select:!0,label:e,value:d,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:p=>{if(p===fo)return"Custom range";if(p===$s)return"Any time";const g=To.find(y=>y.key===p);return g?g.label:o??"Any time"}},input:{endAdornment:u?f.jsx(se.IconButton,{size:"small","aria-label":"clear value",onClick:()=>{a(!1),c({}),n(null)},sx:{mr:2},children:f.jsx(Ro,{fontSize:"small"})}):void 0}},onChange:p=>{const g=p.target.value;if(g===fo){a(!0);return}a(!1);const y=Sm(g);y!==void 0&&n(y)},children:[t.kind==="any"&&f.jsx(se.MenuItem,{value:$s,children:"Any time"}),To.map(p=>f.jsx(se.MenuItem,{value:p.key,children:p.label},p.key)),f.jsx(se.MenuItem,{value:fo,children:"Custom range"})]}),i&&f.jsxs(Vr,{dateAdapter:Oo,children:[f.jsx(Ur,{label:"From",value:b(l.from),onChange:p=>h({...l,from:p?p.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),f.jsx(Ur,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:p=>h({...l,to:p?p.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function qu({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:s,optionsLoading:i,optionsFailed:a,apply:l,title:c}){const{theme:u}=Ge.usePublisherTheme();if(e.length===0)return null;const d=Array.from(t.values()).some(p=>p!==null),h=e.map(p=>f.jsx(se.Box,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:f.jsx(Gu,{given:p,value:p.name?t.get(p.name):void 0,onChange:g=>p.name&&n(p.name,g),options:p.name?s?.get(p.name):void 0,optionsLoading:i,optionsFailed:p.name?a?.has(p.name):void 0})},p.name)),b=f.jsxs(se.Stack,{direction:"row",alignItems:"center",spacing:1,children:[l&&f.jsx(se.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:l.onApply,disabled:!l.pending,sx:{textTransform:"none"},children:"Apply"}),d&&f.jsx(se.Button,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?f.jsx(se.Paper,{elevation:0,sx:{p:2,border:u.cardBorder,borderRadius:1,backgroundColor:"transparent"},children:f.jsxs(se.Stack,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[h,f.jsx(se.Box,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:b})]})}):f.jsxs(se.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(se.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(se.Typography,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:c??"Parameters"}),b]}),f.jsx(se.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:h})]})}const $w=/^(https?|mailto|tel):/i,Ew=/^[a-z][a-z0-9+.-]*:/i;function Aw({href:e,title:t,children:n,context:r}){const o=!!e&&Ew.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const d=o&&!$w.test(e??"");return f.jsx("a",{href:d?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const i=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",a=new URL(e,`https://malloy.invalid/${i}`),l=a.pathname.slice(1)+a.search+a.hash,c=`/${r.environmentName}/${r.packageName}/${l}`,{onNavigate:u}=r;return f.jsx("a",{href:c,title:t,onClick:u?d=>{d.preventDefault(),u(c,d)}:void 0,children:n})}const Fw={document:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:600,color:"text.primary",mb:1,mt:2},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p, & ul, & ol":{color:"text.primary",lineHeight:1.7,mb:1,fontSize:"16px"},"& li":{mb:.5}},caption:{color:"text.secondary",typography:"body2","& > :first-of-type":{mt:0},"& > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontSize:"inherit",fontWeight:600,m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:"monospace",fontSize:"0.9em"}}};function Ku({children:e,variant:t="caption",links:n,sx:r}){return f.jsx(se.Box,{sx:[Fw[t],...Array.isArray(r)?r:[r]],children:f.jsx(Md,{options:{overrides:{a:{component:Aw,props:{context:n}}}},children:e})})}function cr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=f.jsxs(se.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(se.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(se.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(se.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}const Lw=new Set(["bar","line","chart","scatter_chart"]),Nw=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function jw(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":Lw.has(e)?"container":"content"}function Bw(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&Nw.has(e)}function Vw(e){return e==="dashboard"?3:2}function Qu(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function zw(e,t){const n=Qu(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const Xu=400,Ww=700,_w=600,Hw=800,Zu=400,Qs=2e3;function Ju(e){return e===void 0?Qs:Math.min(e,Qs)}function ed({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??Zu:t===void 0||t<=0?Ju(n):n===void 0?t:Math.min(n,t)}const td=2,nd=16;function Uw(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function rd({tiles:e,columns:t,keyOf:n,renderTile:r}){return f.jsx(se.Box,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${nd}px`},children:e.map((o,s)=>f.jsx(se.Box,{sx:{display:"grid",minWidth:0,gridColumn:{md:Uw(o,t)}},children:r(o,s)},n(o,s)))})}const Yw=ct(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"}));function od(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function Gi(e,{enabled:t=!0}={}){const{apiClients:n}=Ge.useServer();return Zo({queryKey:od(e),queryFn:()=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId}),enabled:t,...Ge.CHART_RESULT_QUERY_OPTIONS})}const sd=ct(f.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));function id({sx:e,...t}){const{theme:n}=Ge.usePublisherTheme();return f.jsx(se.IconButton,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const Gw=new Set(["warn","error"]);function qw(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Gw.has(r.severity??"")||(r.severity==="error"&&(n=!0),t.includes(r.message)||t.push(r.message));if(t.length)return{severity:n?"error":"warn",title:t.join(`
|
|
133
|
+
`)}}const Kw=ie.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-DVuGhatg.cjs.js")).then(e=>e.RenderedResult$1));function ad({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o}){const s=ie.useRef(null),[i,a]=ie.useState(void 0),[l,c]=ie.useState(void 0),[u,d]=ie.useState(!1),h=qw(r);if(!e)return null;if(n>0&&e.length>n&&!u)return f.jsxs(se.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[f.jsx(Dd.Warning,{sx:{fontSize:48,color:"#757575"}}),f.jsx(se.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),f.jsx(se.Button,{variant:"contained",color:"primary",onClick:()=>d(!0),children:"Proceed"})]});const p=f.jsx(cr,{text:"Loading...",centered:!0,size:32}),g=ed({sizing:i,contentHeight:l,maxHeight:t});return f.jsxs(se.Box,{ref:s,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden"},children:[e&&f.jsx(ie.Suspense,{fallback:p,children:f.jsx(Kw,{result:e,height:g,onSizeChange:c,onSizing:a,drill:o})}),h&&f.jsx(se.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:f.jsx(se.Tooltip,{title:h.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:f.jsx(id,{"aria-label":"Render tag warnings",children:f.jsx(sd,{fontSize:"small",color:h.severity==="error"?"error":"warning"})})})})]})}function qi({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:s,transform:i}){const{data:a,isSuccess:l,isError:c,error:u}=e,d=a?.data.result,h=ie.useMemo(()=>d!==void 0&&i?i(d):d,[d,i]);return c?f.jsx(se.Box,{sx:{p:2},children:f.jsx(jo,{context:t,error:u})}):l?f.jsx(ad,{result:h,maxHeight:r,maxResultSize:o,renderLogs:a.data.renderLogs,drill:s}):f.jsx(cr,{text:n})}const Qw=new Set(["bar_chart","line_chart","scatter_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),Xw={value:`# big_value
|
|
134
|
+
`},Zw=/^#\(malloy\)[\s\S]*\bcalculation\b/;function Jw(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&Zw.test(t.value.trim())):!1}function eP(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(Jw))return!1;const n=e.data;return n?n.kind==="record_cell"?!0:n.kind==="array_cell"&&Array.isArray(n.array_value)&&n.array_value.length===1:!1}function tP(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=n.slice(1).replace(/"(?:[^"\\]|\\.)*"/g,'""');for(const o of r.split(/[\s{}=.,[\]]+/))if(Qw.has(o))return!0}return!1}function nP(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!eP(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return tP(r)?e:JSON.stringify({...t,annotations:[Xw,...n]})}const Ki=20,rP={radius:"8px",padding:`${Ki}px`};function oP(e,t=rP){return{"--malloy-render--font-family":e.font.family,"--malloy-render--table-font-size":`${e.font.size}px`,"--malloy-render--table-header-color":e.tableHeader,"--malloy-render--table-body-color":e.tableBody,"--malloy-render--table-border":e.border,"--malloy-render--table-pinned-border":e.pinnedBorder,"--malloy-render--tile-background":e.tile,"--publisher-dashboard-root":e.dashboardRoot,"--malloy-render--label-color":e.tileTitle,"--malloy-render--value-color":e.valueColor,"--publisher-drill-link":e.drillLink,"--publisher-dashboard-card-radius":t.radius,"--publisher-dashboard-card-padding":t.padding,"--publisher-dashboard-card-border":e.cardBorder}}function ld({borderless:e=!1,sx:t,children:n}){const{theme:r}=Ge.usePublisherTheme();return f.jsx(se.Paper,{elevation:0,sx:[{border:e?"none":r.cardBorder,borderRadius:e?0:1,background:e?"none":r.tile,overflow:"hidden",minWidth:0,minHeight:120,p:e?"12px 0":`${Ki}px`},...Array.isArray(t)?t:[t]],children:n})}function cd({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=Ge.usePublisherTheme();return f.jsxs(se.Box,{sx:{pb:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(se.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(se.Typography,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&f.jsx(se.Typography,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function Xs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?pi(t):e}function Zs({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,label:i,subtitle:a,borderless:l,givens:c,declaredTypes:u,givenNames:d,height:h,maxResultSize:b,drill:p,onExplore:g}){const{theme:y}=Ge.usePublisherTheme(),S=Gi({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?`run: ${s}`:void 0,givens:Xo(c,u,d)});return f.jsxs(ld,{borderless:l,sx:{"& .publisher-tile-explore":{opacity:0,transition:"opacity 120ms"},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(cd,{title:i??Xs(s),subtitle:a,tooltip:s,action:g&&f.jsx(se.Tooltip,{title:"Explore from here",children:f.jsx(se.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${i??Xs(s)}`,onClick:g,sx:{mt:-.5,mr:-.5,color:y.tileTitle},children:f.jsx(Yw,{fontSize:"small"})})})}),f.jsx(qi,{state:S,context:s??o??r,maxHeight:h,maxResultSize:b,drill:p,transform:s!==void 0?nP:void 0})]})}function Bl({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function Vl(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function sP(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=Vl(u));const d=u?a.filter(h=>{let b=(s||c)(h);return n&&(b=b.toLowerCase()),t&&(b=Vl(b)),o==="start"?b.startsWith(u):b.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const iP=sP(),zl=5,aP=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),lP=[];function Wl(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function cP(e){const{unstable_isActiveElementInListbox:t=aP,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?lP:null,disableClearable:d=!1,disableCloseOnSelect:h=!1,disabled:b,disabledItemsFocusable:p=!1,disableListWrap:g=!1,filterOptions:y=iP,filterSelectedOptions:S=!1,freeSolo:P=!1,getOptionDisabled:C,getOptionKey:x,getOptionLabel:I=Z=>Z.label??Z,groupBy:M,handleHomeEndKeys:$=!e.freeSolo,id:R,includeInputInList:E=!1,inputValue:F,isOptionEqualToValue:T=(Z,X)=>Z===X,multiple:m=!1,onChange:O,onClose:D,onHighlightChange:k,onInputChange:w,onOpen:A,open:L,openOnFocus:N=!1,options:Y,readOnly:W=!1,renderValue:J,selectOnFocus:ce=!e.freeSolo,value:ae}=e,V=_t(R);let q=I;q=Z=>{const X=I(Z);return typeof X!="string"?String(X):X};const ne=v.useRef(!1),K=v.useRef(!0),z=v.useRef(null),G=v.useRef(null),[oe,re]=v.useState(null),[B,ee]=v.useState(-1),le=o?0:-1,te=v.useRef(le),pe=v.useRef(Wl(u??ae,m,q)).current,[H,ye]=Mt({controlled:ae,default:u,name:c}),[de,Me]=Mt({controlled:F,default:pe,name:c,state:"inputValue"}),[he,et]=v.useState(!1),Le=v.useCallback((Z,X,ge)=>{if(!(m?H.length<X.length:X!==null)&&!a)return;const Pe=Wl(X,m,q,J);de!==Pe&&(Me(Pe),w&&w(Z,Pe,ge))},[q,de,m,w,Me,a,H,J]),[Xe,nt]=Mt({controlled:L,default:!1,name:c,state:"open"}),[mt,rt]=v.useState(!0),xt=!m&&H!=null&&de===q(H),_e=Xe&&!W,Ce=_e?y(Y.filter(Z=>!(S&&(m?H:[H]).some(X=>X!==null&&T(Z,X)))),{inputValue:xt&&mt?"":de,getOptionLabel:q}):[],tt=mh({filteredOptions:Ce,value:H,inputValue:de});v.useEffect(()=>{const Z=H!==tt.value;he&&!Z||P&&!Z||Le(null,H,"reset")},[H,Le,he,tt.value,P]);const St=Xe&&Ce.length>0&&!W,ut=fe(Z=>{if(Z===-1)z.current.focus();else{const X=J?"data-item-index":"data-tag-index";oe.querySelector(`[${X}="${Z}"]`).focus()}});v.useEffect(()=>{m&&B>H.length-1&&(ee(-1),ut(-1))},[H,m,B,ut]);function xe(Z,X){if(!G.current||Z<0||Z>=Ce.length)return-1;let ge=Z;for(;;){const we=G.current.querySelector(`[data-option-index="${ge}"]`),Pe=p?!1:!we||we.disabled||we.getAttribute("aria-disabled")==="true";if(we&&we.hasAttribute("tabindex")&&!Pe)return ge;if(X==="next"?ge=(ge+1)%Ce.length:ge=(ge-1+Ce.length)%Ce.length,ge===Z)return-1}}const Ie=fe(({event:Z,index:X,reason:ge})=>{if(te.current=X,X===-1?z.current.removeAttribute("aria-activedescendant"):z.current.setAttribute("aria-activedescendant",`${V}-option-${X}`),k&&["mouse","keyboard","touch"].includes(ge)&&k(Z,X===-1?null:Ce[X],ge),!G.current)return;const we=G.current.querySelector(`[role="option"].${n}-focused`);we&&(we.classList.remove(`${n}-focused`),we.classList.remove(`${n}-focusVisible`));let Pe=G.current;if(G.current.getAttribute("role")!=="listbox"&&(Pe=G.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(X===-1){Pe.scrollTop=0;return}const lt=G.current.querySelector(`[data-option-index="${X}"]`);if(lt&&(lt.classList.add(`${n}-focused`),ge==="keyboard"&<.classList.add(`${n}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ge!=="mouse"&&ge!=="touch")){const Ze=lt,Vt=Pe.clientHeight+Pe.scrollTop,oo=Ze.offsetTop+Ze.offsetHeight;oo>Vt?Pe.scrollTop=oo-Pe.clientHeight:Ze.offsetTop-Ze.offsetHeight*(M?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ze.offsetTop-Ze.offsetHeight*(M?1.3:0))}}),$e=fe(({event:Z,diff:X,direction:ge="next",reason:we})=>{if(!_e)return;const lt=xe((()=>{const Ze=Ce.length-1;if(X==="reset")return le;if(X==="start")return 0;if(X==="end")return Ze;const Vt=te.current+X;return Vt<0?Vt===-1&&E?-1:g&&te.current!==-1||Math.abs(X)>1?0:Ze:Vt>Ze?Vt===Ze+1&&E?-1:g||Math.abs(X)>1?Ze:0:Vt})(),ge);if(Ie({index:lt,reason:we,event:Z}),r&&X!=="reset")if(lt===-1)z.current.value=de;else{const Ze=q(Ce[lt]);z.current.value=Ze,Ze.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&z.current.setSelectionRange(de.length,Ze.length)}}),Ct=!Bl({array1:tt.filteredOptions,array2:Ce,parser:q}),Ne=()=>{const Z=(X,ge)=>{const we=X?q(X):"",Pe=ge?q(ge):"";return we===Pe};if(te.current!==-1&&!Bl({array1:tt.filteredOptions,array2:Ce,parser:q})&&tt.inputValue===de&&(m?H.length===tt.value.length&&tt.value.every((X,ge)=>q(H[ge])===q(X)):Z(tt.value,H))){const X=tt.filteredOptions[te.current];if(X)return Ce.findIndex(ge=>q(ge)===q(X))}return-1},pt=v.useCallback(()=>{if(!_e)return;const Z=Ne();if(Z!==-1){te.current=Z;return}const X=m?H[0]:H;if(Ce.length===0||X==null){$e({diff:"reset"});return}if(G.current){if(X!=null){const ge=Ce[te.current];if(m&&ge&&H.findIndex(Pe=>T(ge,Pe))!==-1)return;const we=Ce.findIndex(Pe=>T(Pe,X));we===-1?$e({diff:"reset"}):Ie({index:we});return}if(te.current>=Ce.length-1){Ie({index:Ce.length-1});return}Ie({index:te.current})}},[Ce.length,m?!1:H,S,$e,Ie,_e,de,m]),ht=fe(Z=>{js(G,Z),Z&&pt()});v.useEffect(()=>{Ct&&pt()},[pt,Ct]);const it=Z=>{Xe||(nt(!0),rt(!0),A&&A(Z))},bn=(Z,X)=>{Xe&&(nt(!1),D&&D(Z,X))},Xt=(Z,X,ge,we)=>{if(m){if(H.length===X.length&&H.every((Pe,lt)=>Pe===X[lt]))return}else if(H===X)return;O&&O(Z,X,ge,we),ye(X)},Zt=v.useRef(!1),ln=(Z,X,ge="selectOption",we="options")=>{let Pe=ge,lt=X;if(m){lt=Array.isArray(H)?H.slice():[];const Ze=lt.findIndex(Vt=>T(X,Vt));Ze===-1?lt.push(X):we!=="freeSolo"&&(lt.splice(Ze,1),Pe="removeOption")}Le(Z,lt,Pe),Xt(Z,lt,Pe,{option:X}),!h&&(!Z||!Z.ctrlKey&&!Z.metaKey)&&bn(Z,Pe),(i===!0||i==="touch"&&Zt.current||i==="mouse"&&!Zt.current)&&z.current.blur()};function ds(Z,X){if(Z===-1)return-1;let ge=Z;for(;;){if(X==="next"&&ge===H.length||X==="previous"&&ge===-1)return-1;const we=J?"data-item-index":"data-tag-index",Pe=oe.querySelector(`[${we}="${ge}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ge+=X==="next"?1:-1;else return ge}}const vn=(Z,X)=>{if(!m)return;de===""&&bn(Z,"toggleInput");let ge=B;B===-1?de===""&&X==="previous"&&(ge=H.length-1):(ge+=X==="next"?1:-1,ge<0&&(ge=0),ge===H.length&&(ge=-1)),ge=ds(ge,X),ee(ge),ut(ge)},no=Z=>{ne.current=!0,Me(""),w&&w(Z,"","clear"),Xt(Z,m?[]:null,"clear")},ps=Z=>X=>{if(Z.onKeyDown&&Z.onKeyDown(X),!X.defaultMuiPrevented&&(B!==-1&&!["ArrowLeft","ArrowRight"].includes(X.key)&&(ee(-1),ut(-1)),X.which!==229))switch(X.key){case"Home":_e&&$&&(X.preventDefault(),$e({diff:"start",direction:"next",reason:"keyboard",event:X}));break;case"End":_e&&$&&(X.preventDefault(),$e({diff:"end",direction:"previous",reason:"keyboard",event:X}));break;case"PageUp":X.preventDefault(),$e({diff:-zl,direction:"previous",reason:"keyboard",event:X}),it(X);break;case"PageDown":X.preventDefault(),$e({diff:zl,direction:"next",reason:"keyboard",event:X}),it(X);break;case"ArrowDown":X.preventDefault(),$e({diff:1,direction:"next",reason:"keyboard",event:X}),it(X);break;case"ArrowUp":X.preventDefault(),$e({diff:-1,direction:"previous",reason:"keyboard",event:X}),it(X);break;case"ArrowLeft":!m&&J?ut(0):vn(X,"previous");break;case"ArrowRight":!m&&J?ut(-1):vn(X,"next");break;case"Enter":if(te.current!==-1&&_e){const ge=Ce[te.current],we=C?C(ge):!1;if(X.preventDefault(),we)return;ln(X,ge,"selectOption"),r&&z.current.setSelectionRange(z.current.value.length,z.current.value.length)}else P&&de!==""&&xt===!1&&(m&&X.preventDefault(),ln(X,de,"createOption","freeSolo"));break;case"Escape":_e?(X.preventDefault(),X.stopPropagation(),bn(X,"escape")):l&&(de!==""||m&&H.length>0||J)&&(X.preventDefault(),X.stopPropagation(),no(X));break;case"Backspace":if(m&&!W&&de===""&&H.length>0){const ge=B===-1?H.length-1:B,we=H.slice();we.splice(ge,1),Xt(X,we,"removeOption",{option:H[ge]})}!m&&J&&!W&&(ye(null),ut(-1));break;case"Delete":if(m&&!W&&de===""&&H.length>0&&B!==-1){const ge=B,we=H.slice();we.splice(ge,1),Xt(X,we,"removeOption",{option:H[ge]})}!m&&J&&!W&&(ye(null),ut(-1));break}},Vn=Z=>{et(!0),N&&!ne.current&&it(Z)},zn=Z=>{if(t(G)){z.current.focus();return}et(!1),K.current=!0,ne.current=!1,s&&te.current!==-1&&_e?ln(Z,Ce[te.current],"blur"):s&&P&&de!==""?ln(Z,de,"blur","freeSolo"):a&&Le(Z,H,"blur"),bn(Z,"blur")},pr=Z=>{const X=Z.target.value;de!==X&&(Me(X),rt(!1),w&&w(Z,X,"input")),X===""?!d&&!m&&Xt(Z,null,"clear"):it(Z)},fs=Z=>{const X=Number(Z.currentTarget.getAttribute("data-option-index"));te.current!==X&&Ie({event:Z,index:X,reason:"mouse"})},ms=Z=>{Ie({event:Z,index:Number(Z.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Zt.current=!0},hs=Z=>{const X=Number(Z.currentTarget.getAttribute("data-option-index"));ln(Z,Ce[X],"selectOption"),Zt.current=!1},gs=Z=>X=>{const ge=H.slice();ge.splice(Z,1),Xt(X,ge,"removeOption",{option:H[Z]})},fr=Z=>{Xt(Z,null,"removeOption",{option:H})},ot=Z=>{Xe?bn(Z,"toggleInput"):it(Z)},at=Z=>{Z.currentTarget.contains(Z.target)&&Z.target.getAttribute("id")!==V&&Z.preventDefault()},cn=Z=>{Z.currentTarget.contains(Z.target)&&(z.current.focus(),ce&&K.current&&z.current.selectionEnd-z.current.selectionStart===0&&z.current.select(),K.current=!1)},ys=Z=>{!b&&(de===""||!Xe)&&ot(Z)};let mr=P&&de.length>0;mr=mr||(m?H.length>0:H!==null);let ro=Ce;return M&&(ro=Ce.reduce((Z,X,ge)=>{const we=M(X);return Z.length>0&&Z[Z.length-1].group===we?Z[Z.length-1].options.push(X):Z.push({key:ge,index:ge,group:we,options:[X]}),Z},[])),b&&he&&zn(),{getRootProps:(Z={})=>({...Z,onKeyDown:ps(Z),onMouseDown:at,onClick:cn}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:de,onBlur:zn,onFocus:Vn,onChange:pr,onMouseDown:ys,"aria-activedescendant":_e?"":null,"aria-autocomplete":r?"both":"list","aria-controls":St?`${V}-listbox`:void 0,"aria-expanded":St,autoComplete:"off",ref:z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:no}),getItemProps:({index:Z=0}={})=>({...m&&{key:Z},...J?{"data-item-index":Z}:{"data-tag-index":Z},tabIndex:-1,...!W&&{onDelete:m?gs(Z):fr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ot}),getTagProps:({index:Z})=>({key:Z,"data-tag-index":Z,tabIndex:-1,...!W&&{onDelete:gs(Z)}}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:ht,onMouseDown:Z=>{Z.preventDefault()}}),getOptionProps:({index:Z,option:X})=>{const ge=(m?H:[H]).some(Pe=>Pe!=null&&T(X,Pe)),we=C?C(X):!1;return{key:x?.(X)??q(X),tabIndex:-1,role:"option",id:`${V}-option-${Z}`,onMouseMove:fs,onClick:hs,onTouchStart:ms,"data-option-index":Z,"aria-disabled":we,"aria-selected":ge}},id:V,inputValue:de,value:H,dirty:mr,expanded:_e&&oe,popupOpen:_e,focused:he||B!==-1,anchorEl:oe,setAnchorEl:re,focusedItem:B,focusedTag:B,groupedOptions:ro}}function uP(e){return Se("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dP=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return ve(i,uP,t)},pP=_("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Re(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Js=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:s,component:i,disableGutters:a,disableSticky:l,inset:c},h=dP(d);return f.jsx(pP,{as:i,className:me(h.root,o),ref:n,ownerState:d,...u})});Js&&(Js.muiSkipListHighlight=!0);const fP=ct(f.jsx("path",{d:"M19 6.41L17.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"}));function mP(e){return Se("MuiAutocomplete",e)}const De=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var _l,Hl;const hP=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ve(d,mP,t)},gP=_("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:a}=n;return[{[`& .${De.tag}`]:t.tag},{[`& .${De.tag}`]:t[`tagSize${ue(a)}`]},{[`& .${De.inputRoot}`]:t.inputRoot},{[`& .${De.input}`]:t.input},{[`& .${De.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${De.focused} .${De.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${De.clearIndicator}`]:{visibility:"visible"}},[`& .${De.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${De.inputRoot}`]:{[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:30},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:56},[`& .${De.input}`]:{width:0,minWidth:30}},[`& .${fn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${fn.root}.${wt.sizeSmall}`]:{[`& .${fn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Tt.root}`]:{padding:9,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${De.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Tt.root}.${wt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${De.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Pt.root}`]:{paddingTop:19,paddingLeft:8,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${Pt.input}`]:{padding:"7px 4px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Pt.root}.${wt.sizeSmall}`]:{paddingBottom:1,[`& .${Pt.input}`]:{padding:"2.5px 4px"}},[`& .${wt.hiddenLabel}`]:{paddingTop:8},[`& .${Pt.root}.${wt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${De.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Pt.root}.${wt.hiddenLabel}.${wt.sizeSmall}`]:{[`& .${De.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${De.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${De.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${De.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${De.inputRoot}`]:{flexWrap:"wrap"}}}]}),yP=_("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),bP=_(Nn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),vP=_(Nn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),xP=_(Oi,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${De.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Re(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),SP=_(jn,{name:"MuiAutocomplete",slot:"Paper"})(Re(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),CP=_("div",{name:"MuiAutocomplete",slot:"Loading"})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),wP=_("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),PP=_("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Re(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${De.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${De.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${De.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),kP=_(Js,{name:"MuiAutocomplete",slot:"GroupLabel"})(Re(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),MP=_("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${De.option}`]:{paddingLeft:24}}),ud=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=_l||(_l=f.jsx(fP,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:h=!1,clearText:b="Clear",closeText:p="Close",componentsProps:g,defaultValue:y=r.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:P=!1,disabled:C=!1,disabledItemsFocusable:x=!1,disableListWrap:I=!1,disablePortal:M=!1,filterOptions:$,filterSelectedOptions:R=!1,forcePopupIcon:E="auto",freeSolo:F=!1,fullWidth:T=!1,getLimitTagsText:m=Ee=>`+${Ee}`,getOptionDisabled:O,getOptionKey:D,getOptionLabel:k,isOptionEqualToValue:w,groupBy:A,handleHomeEndKeys:L=!r.freeSolo,id:N,includeInputInList:Y=!1,inputValue:W,limitTags:J=-1,ListboxComponent:ce,ListboxProps:ae,loading:V=!1,loadingText:q="Loading…",multiple:ne=!1,noOptionsText:K="No options",onChange:z,onClose:G,onHighlightChange:oe,onInputChange:re,onOpen:B,open:ee,openOnFocus:le=!1,openText:te="Open",options:pe,PaperComponent:H,PopperComponent:ye,popupIcon:de=Hl||(Hl=f.jsx(Ou,{})),readOnly:Me=!1,renderGroup:he,renderInput:et,renderOption:Le,renderTags:Xe,renderValue:nt,selectOnFocus:mt=!r.freeSolo,size:rt="medium",slots:xt={},slotProps:_e={},value:Ce,...tt}=r,{getRootProps:St,getInputProps:ut,getInputLabelProps:xe,getPopupIndicatorProps:Ie,getClearProps:$e,getItemProps:Ct,getListboxProps:Ne,getOptionProps:pt,value:ht,dirty:it,expanded:bn,id:Xt,popupOpen:Zt,focused:ln,focusedItem:ds,anchorEl:vn,setAnchorEl:no,inputValue:ps,groupedOptions:Vn}=cP({...r,componentName:"Autocomplete"}),zn=!S&&!C&&it&&!Me,pr=(!F||E===!0)&&E!==!1,{onMouseDown:fs}=ut(),{ref:ms,...hs}=Ne(),fr=k||(Ee=>Ee.label??Ee),ot={...r,disablePortal:M,expanded:bn,focused:ln,fullWidth:T,getOptionLabel:fr,hasClearIcon:zn,hasPopupIcon:pr,inputFocused:ds===-1,popupOpen:Zt,size:rt},at=hP(ot),cn={slots:{paper:H,popper:ye,...xt},slotProps:{chip:l,listbox:ae,...g,..._e}},[ys,mr]=We("listbox",{elementType:PP,externalForwardedProps:cn,ownerState:ot,className:at.listbox,additionalProps:hs,ref:ms}),[ro,Z]=We("paper",{elementType:jn,externalForwardedProps:cn,ownerState:ot,className:at.paper}),[X,ge]=We("popper",{elementType:Oi,externalForwardedProps:cn,ownerState:ot,className:at.popper,additionalProps:{disablePortal:M,style:{width:vn?vn.clientWidth:null},role:"presentation",anchorEl:vn,open:Zt}});let we;const Pe=Ee=>({className:at.tag,disabled:C,...Ct(Ee)});if(ne?ht.length>0&&(Xe?we=Xe(ht,Pe,ot):nt?we=nt(ht,Pe,ot):we=ht.map((Ee,un)=>{const{key:dn,...hr}=Pe({index:un});return f.jsx(xu,{label:fr(Ee),size:rt,...hr,...cn.slotProps.chip},dn)})):nt&&ht!=null&&(we=nt(ht,Pe,ot)),J>-1&&Array.isArray(we)){const Ee=we.length-J;!ln&&Ee>0&&(we=we.splice(0,J),we.push(f.jsx("span",{className:at.tag,children:m(Ee)},we.length)))}const Ze=he||(Ee=>f.jsxs("li",{children:[f.jsx(kP,{className:at.groupLabel,ownerState:ot,component:"div",children:Ee.group}),f.jsx(MP,{className:at.groupUl,ownerState:ot,children:Ee.children})]},Ee.key)),oo=Le||((Ee,un)=>{const{key:dn,...hr}=Ee;return f.jsx("li",{...hr,children:fr(un)},dn)}),Ji=(Ee,un)=>{const dn=pt({option:Ee,index:un});return oo({...dn,className:at.option},Ee,{selected:dn["aria-selected"],index:un,inputValue:ps},ot)},ea=cn.slotProps.clearIndicator,ta=cn.slotProps.popupIndicator;return f.jsxs(v.Fragment,{children:[f.jsx(gP,{ref:n,className:me(at.root,c),ownerState:ot,...St(tt),children:et({id:Xt,disabled:C,fullWidth:!0,size:rt==="small"?"small":void 0,InputLabelProps:xe(),InputProps:{ref:no,className:at.inputRoot,startAdornment:we,onMouseDown:Ee=>{Ee.target===Ee.currentTarget&&fs(Ee)},...(zn||pr)&&{endAdornment:f.jsxs(yP,{className:at.endAdornment,ownerState:ot,children:[zn?f.jsx(bP,{...$e(),"aria-label":b,title:b,ownerState:ot,...ea,className:me(at.clearIndicator,ea?.className),children:u}):null,pr?f.jsx(vP,{...Ie(),disabled:C,"aria-label":Zt?p:te,title:Zt?p:te,ownerState:ot,...ta,className:me(at.popupIndicator,ta?.className),children:de}):null]})}},inputProps:{className:at.input,disabled:C,readOnly:Me,...ut()}})}),vn?f.jsx(xP,{as:X,...ge,children:f.jsxs(SP,{as:ro,...Z,children:[V&&Vn.length===0?f.jsx(CP,{className:at.loading,ownerState:ot,children:q}):null,Vn.length===0&&!F&&!V?f.jsx(wP,{className:at.noOptions,ownerState:ot,role:"presentation",onMouseDown:Ee=>{Ee.preventDefault()},children:K}):null,Vn.length>0?f.jsx(ys,{as:ce,...mr,children:Vn.map((Ee,un)=>A?Ze({key:Ee.key,group:Ee.group,children:Ee.options.map((dn,hr)=>Ji(dn,Ee.index+hr))}):Ji(Ee,un))}):null]})}):null]})});function dd({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:s}){return ie.useEffect(()=>{o&&o(t)},[t,o]),f.jsx(Ge.StyledCardMedia,{children:f.jsxs(Qe.Stack,{spacing:2,component:"section",children:[f.jsx(IP,{sourceAndPath:e[t],existingQuery:n,onChange:i=>{r&&r(i)},resourceUri:s}),f.jsx(Qe.Box,{height:"5px"})]})})}function Es(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function DP({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:s}){const[i,a]=ie.useState(n||Es()),[l,c]=ie.useState(void 0);ie.useEffect(()=>{n&&a(n)},[n]);const[u,d]=ie.useState([]),{MalloyExplorerProvider:h,QueryPanel:b,ResizableCollapsiblePanel:p,ResultPanel:g,SourcePanel:y}=r;ie.useEffect(()=>{t&&t(i)},[t,i]);const{environmentName:S,packageName:P,versionId:C}=Qr(s),{apiClients:x}=Ge.useServer(),I=Tc({mutationFn:()=>{const E=typeof i?.malloyQuery=="string"?i.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:i?.malloyQuery}).toMalloy();return c({executionState:"running",query:i?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{I.reset(),c(void 0)},response:{result:{}}}),a({...i,query:E}),x.models.executeQueryModel(S,P,e.modelPath,{query:E,sourceName:void 0,queryName:void 0,versionId:C})},onSuccess:E=>{if(E){const F=JSON.parse(E.data.result);a({...i,malloyResult:F}),c(T=>T?{...T,executionState:"finished",response:{result:F}}:void 0)}},onError:E=>{c(void 0),console.error("Query execution error:",E)}}),[M,$]=ie.useState(e.sourceInfo.name);ie.useEffect(()=>{M!==e.sourceInfo.name&&($(e.sourceInfo.name),a(Es()),c(void 0))},[e,M]);const R=ie.useCallback(E=>{a({...i,malloyQuery:E,malloyResult:void 0})},[i]);return M!==e.sourceInfo.name?f.jsx("div",{children:"Loading..."}):f.jsx(Ge.StyledExplorerContent,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:f.jsx(h,{source:e.sourceInfo,query:i?.malloyQuery,topValues:[],onFocusedNestViewPathChange:d,focusedNestViewPath:u,onQueryChange:R,children:f.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[f.jsx(p,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:f.jsx(y,{onRefresh:()=>a(Es())})}),f.jsx(p,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:f.jsx(b,{runQuery:()=>{console.log(`running query with: ${i?.malloyQuery}`);try{I.mutate()}catch(E){console.error("Error running query:",E)}}})}),f.jsx(g,{source:e.sourceInfo,draftQuery:i?.malloyQuery,setDraftQuery:E=>a({...i,malloyQuery:E}),submittedQuery:l,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function IP(e){const[t,n]=ie.useState(null),[r,o]=ie.useState(null),[s,i]=ie.useState(!0);return ie.useEffect(()=>{let a=!0;return Promise.all([import("@malloydata/malloy-explorer"),import("@malloydata/malloy-query-builder")]).then(([l,c])=>{a&&(n(l),o(c),i(!1))}).catch(l=>{console.error("Failed to load Malloy components:",l),a&&i(!1)}),()=>{a=!1}},[]),s||!t||!r?f.jsx(Ge.StyledExplorerPage,{children:f.jsx(Ge.StyledExplorerContent,{children:f.jsx(Qe.Box,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):f.jsx(DP,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Qi(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:s}=Qr(e),{apiClients:i}=Ge.useServer();return Zo({queryKey:["package",r,o,n,s],queryFn:async()=>(await i.models.getModel(r,o,n,s)).data,enabled:t})}function pd({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:s}){const[i,a]=ie.useState(r);ie.useEffect(()=>{a(r)},[r]);const{data:l,isError:c,isLoading:u,error:d}=Qi(s,!e),{modelPath:h}=Qr(s),b=e||l;if(u&&!e)return f.jsx(cr,{text:"Fetching Model..."});if(c&&!e)return console.log("error",d),f.jsx(jo,{error:d,context:`ModelExplorer > ${h}`});if(!b)return f.jsx(cr,{text:"Loading..."});const p=(b?.sourceInfos||[]).map((y,S)=>{try{return JSON.parse(y)?.name||`Source ${S+1}`}catch{return`Source ${S+1}`}}),g=p[i]||"";return f.jsxs(Ge.StyledCard,{variant:"outlined",children:[f.jsx(Ge.StyledCardContent,{children:f.jsx(se.Stack,{sx:{flexDirection:"row"},children:f.jsx(ud,{size:"small",id:"size-small-standard",disablePortal:!0,options:p,value:g,onChange:(y,S)=>{if(!S)return;const P=p.indexOf(S);P>=0&&(a(P),o?.(P))},renderInput:y=>f.jsx(Hi,{...y}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),f.jsx(Ge.StyledCardMedia,{children:f.jsxs(se.Stack,{spacing:2,component:"section",children:[Array.isArray(b.sourceInfos)&&b.sourceInfos.length>0&&f.jsx(dd,{sourceAndPaths:b.sourceInfos.map(y=>({sourceInfo:JSON.parse(y),modelPath:h})),selectedSourceIndex:i,existingQuery:n,onQueryChange:t,resourceUri:s}),f.jsx(se.Box,{height:"5px"})]})})]})}function fd({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:s=!0,existingQuery:i,initialSelectedSourceIndex:a,onChange:l,onSourceChange:c}){return f.jsxs(se.Dialog,{open:e,onClose:t,fullScreen:!0,children:[f.jsxs(se.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,f.jsx(se.IconButton,{onClick:t,sx:{color:"text.secondary"},children:f.jsx(Qo,{})})]}),f.jsx(se.DialogContent,{children:s?f.jsx(pd,{resourceUri:n,data:r,existingQuery:i,initialSelectedSourceIndex:a,onChange:l,onSourceChange:c}):f.jsx("div",{children:"No valid import statement found in cell"})})]})}function md(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function hd(e,t){if(e==null||e==="")return;const n=o=>`'${md(o)}'`;switch(t===void 0?TP(e):t.startsWith("filter<")?"filter":t){case"filter":return`f${n(String(e))}`;case"string":return n(String(e));case"number":{const o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?String(o):void 0}case"boolean":return e===!0||e==="true"?"true":"false";case"date":{const o=Ul(e);return o&&`@${o}`}case"timestamp":{const o=Ul(e);if(!o)return;const s=e instanceof Date?e.toISOString().slice(11,19):/[T ](\d{2}:\d{2}(?::\d{2})?)/.exec(String(e))?.[1]??"00:00:00";return`@${o} ${s}`}default:return}}function TP(e){if(typeof e=="string")return"string";if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.toISOString().slice(11,19)==="00:00:00"?"date":"timestamp"}function Ul(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const RP="[A-Za-z_][A-Za-z0-9_]*",Yl=e=>new RegExp(`^${RP}$`).test(e),OP=e=>e.findIndex(t=>t.trimStart().startsWith("##")&&t.includes("artifact"));function gd(e){const t=(e??"").split("->").map(s=>s.trim());if(t.length!==2)return;const n=t[1].indexOf("+"),r=n<0?t[1]:t[1].slice(0,n).trim(),o=n<0?void 0:t[1].slice(n).trim();return{source:t[0],view:r,...o===void 0?{}:{refinement:o}}}const ei=()=>typeof performance<"u"?performance.now():Date.now(),yd=200;function $P(e){const t=hd(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${yd} }`}function Xi(e){const t=gd(e);if(!(!t||t.refinement!==void 0||!Yl(t.source)||!Yl(t.view)))return{source:t.source,view:t.view}}const EP=e=>Xi(e)?.source;function AP({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onClose:i,onDone:a}){const{theme:l}=Ge.usePublisherTheme(),c=e?$P(e):void 0;return f.jsxs(se.Dialog,{open:e!==void 0,onClose:i,maxWidth:"lg",fullWidth:!0,children:[f.jsxs(se.DialogTitle,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[f.jsxs(se.Box,{children:[e?f.jsxs(f.Fragment,{children:["Rows where"," ",f.jsx(se.Box,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",f.jsx(se.Typography,{component:"div",variant:"caption",sx:{color:l.tileTitle,mt:.25},children:e?`The first ${yd} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),f.jsx(se.IconButton,{onClick:i,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:f.jsx(Qo,{fontSize:"small"})})]}),f.jsxs(se.DialogContent,{dividers:!0,sx:{p:0,minHeight:240},children:[c===void 0&&e&&f.jsx(se.Typography,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),c!==void 0&&f.jsx(FP,{query:c,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:s,...a?{onDone:a}:{}})]}),f.jsxs(se.DialogActions,{sx:{px:3,py:1.5},children:[c!==void 0&&f.jsx(se.Typography,{variant:"caption",sx:{mr:"auto",color:l.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c,children:c}),f.jsx(se.Button,{onClick:i,children:"Close"})]})]})}function FP({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onDone:i}){const a=Gi({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:s}),{isSuccess:l,isError:c}=a,u=ie.useRef(void 0);return ie.useEffect(()=>{u.current=ei()},[e]),ie.useEffect(()=>{u.current===void 0||!l&&!c||(i?.(l,ei()-u.current),u.current=void 0)},[l,c,i]),f.jsx(se.Box,{sx:{p:1},children:f.jsx(qi,{state:a,context:e})})}function LP({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,onClose:s}){const i=Rc({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:a}=Qi(i,e!==void 0),l=ie.useMemo(()=>{const u=EP(e);if(!a||u===void 0)return 0;const d=(a.sourceInfos??[]).findIndex(h=>{try{return JSON.parse(h)?.name===u}catch{return!1}});return d<0?0:d},[a,e]),c=ie.useMemo(()=>{if(e===void 0)return;const u=Xi(e),d=u?{definition:{kind:"arrow",source:{kind:"source_reference",name:u.source},view:{kind:"view_reference",name:u.view}}}:`run: ${e}`;return{query:`run: ${e}`,malloyQuery:d,malloyResult:void 0}},[e]);return e===void 0||!a?null:f.jsx(fd,{open:!0,onClose:s,resourceUri:i,data:a,title:`Explore: ${e}`,existingQuery:c,initialSelectedSourceIndex:l})}function NP({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:s,maxResultSize:i,onEvent:a}){const l=Qr(e),{apiClients:c}=Ge.useServer(),u=l.environmentName??"",d=l.packageName??"",h=l.versionId,b=!!l.environmentName&&!!l.packageName,{data:p,isSuccess:g,isError:y,error:S}=Zo({queryKey:["dashboard",u,d,h,t],queryFn:()=>c.dashboards.getDashboard(u,d,t,h),enabled:b}),P=p?.data,C=ie.useMemo(()=>P?.givens??[],[P]),x=Ic({specs:C,loaded:g,startingValues:P?.startingGivens,params:n,onGivensChange:r,documentKey:`${u}/${d}/${h??""}/${t}`,autorun:P?.autorun!==!1,environmentName:u,packageName:d,modelPath:P?.path,versionId:h,documentName:t}),{applied:I,declaredTypes:M,canSelf:$,onSelf:R}=x,[E,F]=ie.useState(void 0),[T,m]=ie.useState(void 0),O=ie.useCallback(W=>{const J=Xi(W.context);J!==void 0&&F({...J,field:W.field,rawValue:W.rawValue,label:W.label})},[]),D=ie.useMemo(()=>Xo(I,M),[I,M]),{drill:k,drillMenu:w}=Oc({onNavigate:o,onSelf:R,canSelf:$,selfLabel:"Filter this dashboard",onRows:O}),A=ie.useCallback(W=>({canDrill:k.canDrill,onClick:J=>k.onClick({...J,context:W})}),[k]);if(!b)return f.jsxs(se.Alert,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(y)return f.jsx(jo,{context:`${u} > ${d} > ${t}`,error:S});if(!g||!P)return f.jsx(cr,{text:"Loading dashboard…"});if(P.error)return f.jsxs(se.Stack,{spacing:2,children:[f.jsx(Gl,{manifest:P}),f.jsx(se.Alert,{severity:"error",children:P.error})]});const L=P.path,N=P.tiles??[],Y=P.dashboardColumns??td;return f.jsxs(se.Stack,{spacing:2,children:[f.jsx(Gl,{manifest:P}),f.jsx(qu,{...x.panel,layout:"bar"}),L===void 0?f.jsx(se.Alert,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):P.query!==void 0?f.jsx(Zs,{environmentName:u,packageName:d,versionId:h,modelPath:L,queryName:P.query,givens:I,declaredTypes:M,height:s,maxResultSize:i,drill:k}):N.length>0?f.jsx(rd,{tiles:N,columns:Y,keyOf:(W,J)=>`${J}:${W.query}`,renderTile:W=>f.jsx(Zs,{environmentName:u,packageName:d,versionId:h,modelPath:L,tile:W.query,label:W.label,subtitle:W.subtitle,borderless:W.borderless,givens:I,declaredTypes:M,givenNames:W.givenNames,height:s??Xu,maxResultSize:i,drill:A(W.query),onExplore:()=>{m(W.query),a?.({type:"dashboard.explored",tile:W.query})}})}):f.jsx(se.Alert,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),w,L!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx(AP,{request:E,environmentName:u,packageName:d,...h===void 0?{}:{versionId:h},modelPath:L,givens:D,onClose:()=>F(void 0),onDone:(W,J)=>{E&&a?.({type:"dashboard.rows_shown",source:E.source,view:E.view,field:E.field,ok:W,durationMs:J})}}),f.jsx(LP,{tile:T,environmentName:u,packageName:d,...h===void 0?{}:{versionId:h},modelPath:L,onClose:()=>m(void 0)})]})]})}function Gl({manifest:e}){return f.jsx(bd,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function bd({title:e,description:t}){return f.jsxs(se.Box,{children:[f.jsx(se.Typography,{variant:"h5",sx:{fontWeight:600},children:e}),t&&f.jsx(Ku,{variant:"caption",children:t})]})}const jP=ct(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Zi=ie.createContext(void 0);function BP({children:e,documentStorage:t}){const n=ie.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(Zi.Provider,{value:n,children:e})}function VP(){const e=ie.useContext(Zi);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function zP(){return ie.useContext(Zi)}class vd extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const WP=e=>e instanceof vd||e instanceof Error&&e.name==="DocumentNotFoundError";exports.AdapterDayjs=Oo;exports.AddButton=sm;exports.AddIcon=hc;exports.ApiErrorDisplay=jo;exports.AppDialog=am;exports.Autocomplete=ud;exports.Button=Tr;exports.ButtonBase=or;exports.CheckIcon=jP;exports.CircularProgress=wi;exports.ClassNameGenerator=Kl;exports.CloseIcon=Qo;exports.DASHBOARD_CARD_PADDING_PX=Ki;exports.DEFAULT_COLUMNS=td;exports.DRILL_SELF=bo;exports.Dashboard=NP;exports.DashboardBar=lm;exports.DashboardGrid=rd;exports.DashboardProse=bd;exports.DashboardTile=Zs;exports.DatePicker=Ur;exports.DocumentNotFoundError=vd;exports.DocumentStorageProvider=BP;exports.FloatingIconButton=id;exports.FormControl=Vi;exports.GRID_GAP_PX=nd;exports.GivenInput=Gu;exports.GivensPanel=qu;exports.Grow=zr;exports.INITIAL_RENDER_HEIGHT=Qs;exports.IconButton=Nn;exports.InfoOutlinedIcon=sd;exports.InputLabel=Bi;exports.ListContext=Jn;exports.Loading=cr;exports.LocalizationProvider=Vr;exports.MODEL_CELL_MAX_HEIGHT=_w;exports.ModelExplorer=pd;exports.ModelExplorerDialog=fd;exports.NOTEBOOK_CELL_MAX_HEIGHT=Ww;exports.Paper=jn;exports.Prose=Ku;exports.RESULTS_DIALOG_MAX_HEIGHT=Hw;exports.ResultContainer=ad;exports.ResultPanel=qi;exports.SecondaryButton=im;exports.Select=_i;exports.SourcesExplorer=dd;exports.SvgIcon=Io;exports.THEME_ID=ur;exports.TILE_MAX_HEIGHT=Xu;exports.TextField=Hi;exports.TileCard=ld;exports.TileHeading=cd;exports.Typography=gn;exports.UNCAPPED_CONTAINER_HEIGHT=Zu;exports.artifactLine=OP;exports.buildTableCssVars=oP;exports.capitalize=ue;exports.clsx=me;exports.composeClasses=ve;exports.contentNode=Qu;exports.contentNodeDepth=Vw;exports.createSimplePaletteValueFilter=yt;exports.createSvgIcon=ct;exports.createTheme=uc;exports.dayjs=Ve;exports.drillDestinations=di;exports.drillValueToFilter=Kr;exports.emphasize=tc;exports.encodeDrillValue=xc;exports.encodeResourceUri=Rc;exports.escapeMalloyString=md;exports.extractEventHandlers=hi;exports.formControlState=Bn;exports.generateUtilityClass=Se;exports.generateUtilityClasses=be;exports.getAugmentedNamespace=$d;exports.getDefaultExportFromCjs=sn;exports.getReactElementRef=dr;exports.givensToRequest=Xo;exports.humanizeSlug=pi;exports.initialResultHeight=Ju;exports.isDocumentNotFound=WP;exports.malloyLiteral=hd;exports.measureContentHeight=zw;exports.memoTheme=Re;exports.mergeSlotProps=mc;exports.now=ei;exports.ownerDocument=dt;exports.parseResourceUri=Qr;exports.queryResultKey=od;exports.remeasuresAfterReady=Bw;exports.resolveDrill=vc;exports.resolveResultHeight=ed;exports.resultSizing=jw;exports.rootShouldForwardProp=jt;exports.styled=_;exports.tileSteps=gd;exports.tileTitle=Xs;exports.typographyClasses=qh;exports.useControlled=Mt;exports.useDefaultProps=Oe;exports.useDocumentControls=Ic;exports.useDocumentStorage=VP;exports.useDrill=Oc;exports.useDrillSelf=Sc;exports.useEnhancedEffect=st;exports.useEventCallback=fe;exports.useForkRef=Fe;exports.useFormControl=Bt;exports.useGivensState=kc;exports.useModelData=Qi;exports.useMutationWithApiError=Tc;exports.useOptionalDocumentStorage=zP;exports.useQueryResult=Gi;exports.useQueryWithApiError=Zo;exports.useSlot=We;exports.useSuggestOptions=Dc;exports.useTheme=Fn;exports.useTimeout=mi;exports.utc=ci;
|