@malloy-publisher/sdk 0.9.8 → 0.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{RenderedResult-BrvrMDAP.cjs.js → RenderedResult-BcgYjkZ0.cjs.js} +1 -1
  2. package/dist/{RenderedResult-DZj-FnOJ.es.js → RenderedResult-Dp1Qdajz.es.js} +2 -2
  3. package/dist/ServerProvider-B0dUY8be.cjs.js +1 -0
  4. package/dist/{ServerProvider-B_bPAsu2.es.js → ServerProvider-CQy4jVYK.es.js} +1394 -1051
  5. package/dist/builder/index.cjs.js +61 -61
  6. package/dist/builder/index.es.js +783 -794
  7. package/dist/client/api.d.ts +412 -1
  8. package/dist/client/index.cjs.js +1 -1
  9. package/dist/client/index.es.js +125 -114
  10. package/dist/components/Dashboard/DashboardView.d.ts +11 -0
  11. package/dist/components/Dashboard/useStuck.d.ts +14 -0
  12. package/dist/components/DocumentCreate/newNotebook.d.ts +9 -5
  13. package/dist/components/Package/ContentTypeIcon.d.ts +3 -3
  14. package/dist/components/ReportBuilder/FilterStrip.d.ts +3 -1
  15. package/dist/components/ReportBuilder/TileMenu.d.ts +7 -2
  16. package/dist/index.cjs.js +9 -9
  17. package/dist/index.es.js +2112 -2063
  18. package/dist/{useCompiledDocument-x0B2RAH3.es.js → useCompiledDocument-BMPDvdFx.es.js} +2348 -2310
  19. package/dist/{useCompiledDocument-oocN5cGE.cjs.js → useCompiledDocument-UY28ITET.cjs.js} +34 -34
  20. package/package.json +1 -1
  21. package/src/components/Dashboard/DashboardView.tsx +62 -13
  22. package/src/components/Dashboard/useStuck.ts +38 -0
  23. package/src/components/DocumentCreate/newNotebook.spec.ts +8 -6
  24. package/src/components/DocumentCreate/newNotebook.ts +26 -12
  25. package/src/components/Package/ContentTypeIcon.tsx +16 -3
  26. package/src/components/Package/Package.agents.spec.tsx +76 -0
  27. package/src/components/Package/Package.tsx +44 -1
  28. package/src/components/ReportBuilder/BuilderDialogs.tsx +5 -3
  29. package/src/components/ReportBuilder/BuilderGrid.tsx +13 -3
  30. package/src/components/ReportBuilder/FilterStrip.tsx +118 -118
  31. package/src/components/ReportBuilder/ReportBuilder.inline.spec.tsx +0 -1
  32. package/src/components/ReportBuilder/ReportBuilder.spec.tsx +5 -6
  33. package/src/components/ReportBuilder/ReportBuilder.tsx +1 -0
  34. package/src/components/ReportBuilder/TileMenu.tsx +8 -3
  35. package/src/components/ReportBuilder/newDashboard.spec.ts +2 -3
  36. package/dist/ServerProvider-DuEOzwPc.cjs.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";var Id=Object.create;var Ri=Object.defineProperty;var Ed=Object.getOwnPropertyDescriptor;var Od=Object.getOwnPropertyNames;var $d=Object.getPrototypeOf,Ad=Object.prototype.hasOwnProperty;var Fd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Od(t))!Ad.call(e,o)&&o!==n&&Ri(e,o,{get:()=>t[o],enumerable:!(r=Ed(t,o))||r.enumerable});return e};var Ar=(e,t,n)=>(n=e!=null?Id($d(e)):{},Fd(t||!e||!e.__esModule?Ri(n,"default",{value:e,enumerable:!0}):n,e));const g=require("react/jsx-runtime"),Q=require("@mui/material"),ne=require("react"),go=require("@tanstack/react-query"),ze=require("./ServerProvider-DuEOzwPc.cjs.js"),Ld=require("markdown-to-jsx"),Tn=require("./text-entry-BJwltZiy.cjs.js"),Nd=require("@emotion/react"),We=require("@mui/system"),tr=require("react-dom"),jd=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),Bd=require("@mui/icons-material"),Vd=require("@malloydata/malloy-tag");function gl(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=gl(ne),zd=gl(tr),Ii=e=>e,_d=()=>{let e=Ii;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ii}}},yl=_d();function Ot(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 le(e){if(typeof e!="string")throw new Error(Ot(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ei(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wd(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 Wo={exports:{}},Ho,Oi;function Hd(){if(Oi)return Ho;Oi=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ho=e,Ho}var Uo,$i;function Ud(){if($i)return Uo;$i=1;var e=Hd();function t(){}function n(){}return n.resetWarningCache=t,Uo=function(){function r(i,a,l,c,u,m){if(m!==e){var f=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 f.name="Invariant Violation",f}}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},Uo}var Ai;function Yd(){return Ai||(Ai=1,Wo.exports=Ud()()),Wo.exports}var Gd=Yd();const _=Lt(Gd);function bl(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=bl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function de(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bl(e))&&(r&&(r+=" "),r+=t);return r}function he(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 Yo={exports:{}},Re={};/**
1
+ "use strict";var Od=Object.create;var Ei=Object.defineProperty;var $d=Object.getOwnPropertyDescriptor;var Ad=Object.getOwnPropertyNames;var Fd=Object.getPrototypeOf,Ld=Object.prototype.hasOwnProperty;var Nd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ad(t))!Ld.call(e,o)&&o!==n&&Ei(e,o,{get:()=>t[o],enumerable:!(r=$d(t,o))||r.enumerable});return e};var Ar=(e,t,n)=>(n=e!=null?Od(Fd(e)):{},Nd(t||!e||!e.__esModule?Ei(n,"default",{value:e,enumerable:!0}):n,e));const g=require("react/jsx-runtime"),Q=require("@mui/material"),ee=require("react"),go=require("@tanstack/react-query"),Ve=require("./ServerProvider-B0dUY8be.cjs.js"),jd=require("markdown-to-jsx"),Tn=require("./text-entry-BJwltZiy.cjs.js"),Bd=require("@emotion/react"),We=require("@mui/system"),tr=require("react-dom"),Vd=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),zd=require("@mui/icons-material"),_d=require("@malloydata/malloy-tag");function vl(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=vl(ee),Wd=vl(tr),Oi=e=>e,Hd=()=>{let e=Oi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Oi}}},xl=Hd();function Ot(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 le(e){if(typeof e!="string")throw new Error(Ot(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $i(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ud(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 Wo={exports:{}},Ho,Ai;function Yd(){if(Ai)return Ho;Ai=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ho=e,Ho}var Uo,Fi;function Gd(){if(Fi)return Uo;Fi=1;var e=Yd();function t(){}function n(){}return n.resetWarningCache=t,Uo=function(){function r(i,a,l,c,u,m){if(m!==e){var f=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 f.name="Invariant Violation",f}}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},Uo}var Li;function Kd(){return Li||(Li=1,Wo.exports=Gd()()),Wo.exports}var qd=Kd();const _=Lt(qd);function Sl(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=Sl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function de(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Sl(e))&&(r&&(r+=" "),r+=t);return r}function he(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 Yo={exports:{}},Re={};/**
2
2
  * @license React
3
3
  * react-is.production.js
4
4
  *
@@ -6,29 +6,29 @@
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 Fi;function Kd(){if(Fi)return Re;Fi=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"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function d(p){if(typeof p=="object"&&p!==null){var h=p.$$typeof;switch(h){case e:switch(p=p.type,p){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case i:case a:case m:case u:return p;case s:return p;default:return h}}case t:return h}}}return Re.ContextConsumer=s,Re.ContextProvider=i,Re.Element=e,Re.ForwardRef=a,Re.Fragment=n,Re.Lazy=m,Re.Memo=u,Re.Portal=t,Re.Profiler=o,Re.StrictMode=r,Re.Suspense=l,Re.SuspenseList=c,Re.isContextConsumer=function(p){return d(p)===s},Re.isContextProvider=function(p){return d(p)===i},Re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Re.isForwardRef=function(p){return d(p)===a},Re.isFragment=function(p){return d(p)===n},Re.isLazy=function(p){return d(p)===m},Re.isMemo=function(p){return d(p)===u},Re.isPortal=function(p){return d(p)===t},Re.isProfiler=function(p){return d(p)===o},Re.isStrictMode=function(p){return d(p)===r},Re.isSuspense=function(p){return d(p)===l},Re.isSuspenseList=function(p){return d(p)===c},Re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===l||p===c||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===u||p.$$typeof===i||p.$$typeof===s||p.$$typeof===a||p.$$typeof===b||p.getModuleId!==void 0)},Re.typeOf=d,Re}var Li;function qd(){return Li||(Li=1,Yo.exports=Kd()),Yo.exports}var vl=qd();function kt(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 xl(e){if(v.isValidElement(e)||vl.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xl(e[n])}),t}function Ge(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kt(e)&&kt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||vl.isValidElementType(t[o])?r[o]=t[o]:kt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&kt(e[o])?r[o]=Ge(e[o],t[o],n):n.clone?r[o]=kt(t[o])?xl(t[o]):t[o]:r[o]=t[o]}),r}function ir(e,t){return t?Ge(e,t,{clone:!1}):e}function Ni(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 Xd(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Qd(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 yo={xs:0,sm:600,md:900,lg:1200,xl:1536},ji={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yo[e]}px)`},Jd={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:yo[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $t(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ji;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||ji;return Object.keys(t).reduce((i,a)=>{if(Xd(s.keys,a)){const l=Qd(r.containerQueries?r:Jd,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||yo).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 ep(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function Bi(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function bo(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 to(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=bo(e,n)||r,t&&(o=t(o,r,e)),o}function _e(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=bo(l,r)||{};return $t(i,a,m=>{let f=to(c,o,m);return m===f&&typeof m=="string"&&(f=to(c,o,`${t}${m==="default"?"":le(m)}`,m)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function tp(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const np={m:"margin",p:"padding"},rp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},op=tp(e=>{if(e.length>2)if(Vi[e])e=Vi[e];else return[e];const[t,n]=e.split(""),r=np[t],o=rp[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Ps=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ks=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ps,...ks];function Cr(e,t,n,r){const o=bo(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 Ms(e){return Cr(e,"spacing",8)}function Pr(e,t){return typeof t=="string"||t==null?t:e(t)}function sp(e,t){return n=>e.reduce((r,o)=>(r[o]=Pr(t,n),r),{})}function ip(e,t,n,r){if(!t.includes(n))return null;const o=op(n),s=sp(o,r),i=e[n];return $t(e,i,s)}function Sl(e,t){const n=Ms(e.theme);return Object.keys(e).map(r=>ip(e,t,r,n)).reduce(ir,{})}function je(e){return Sl(e,Ps)}je.propTypes={};je.filterProps=Ps;function Be(e){return Sl(e,ks)}Be.propTypes={};Be.filterProps=ks;function vo(...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]?ir(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function it(e){return typeof e!="number"?e:`${e}px solid`}function dt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const ap=dt("border",it),lp=dt("borderTop",it),cp=dt("borderRight",it),up=dt("borderBottom",it),dp=dt("borderLeft",it),pp=dt("borderColor"),fp=dt("borderTopColor"),mp=dt("borderRightColor"),hp=dt("borderBottomColor"),gp=dt("borderLeftColor"),yp=dt("outline",it),bp=dt("outlineColor"),xo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Cr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Pr(t,r)});return $t(e,e.borderRadius,n)}return null};xo.propTypes={};xo.filterProps=["borderRadius"];vo(ap,lp,cp,up,dp,pp,fp,mp,hp,gp,xo,yp,bp);const So=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Cr(e.theme,"spacing",8),n=r=>({gap:Pr(t,r)});return $t(e,e.gap,n)}return null};So.propTypes={};So.filterProps=["gap"];const wo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Cr(e.theme,"spacing",8),n=r=>({columnGap:Pr(t,r)});return $t(e,e.columnGap,n)}return null};wo.propTypes={};wo.filterProps=["columnGap"];const Co=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Cr(e.theme,"spacing",8),n=r=>({rowGap:Pr(t,r)});return $t(e,e.rowGap,n)}return null};Co.propTypes={};Co.filterProps=["rowGap"];const vp=_e({prop:"gridColumn"}),xp=_e({prop:"gridRow"}),Sp=_e({prop:"gridAutoFlow"}),wp=_e({prop:"gridAutoColumns"}),Cp=_e({prop:"gridAutoRows"}),Pp=_e({prop:"gridTemplateColumns"}),kp=_e({prop:"gridTemplateRows"}),Mp=_e({prop:"gridTemplateAreas"}),Tp=_e({prop:"gridArea"});vo(So,wo,Co,vp,xp,Sp,wp,Cp,Pp,kp,Mp,Tp);function Dn(e,t){return t==="grey"?t:e}const Dp=_e({prop:"color",themeKey:"palette",transform:Dn}),Rp=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dn}),Ip=_e({prop:"backgroundColor",themeKey:"palette",transform:Dn});vo(Dp,Rp,Ip);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const Ep=_e({prop:"width",transform:Je}),Ts=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||yo[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Je(n)}};return $t(e,e.maxWidth,t)}return null};Ts.filterProps=["maxWidth"];const Op=_e({prop:"minWidth",transform:Je}),$p=_e({prop:"height",transform:Je}),Ap=_e({prop:"maxHeight",transform:Je}),Fp=_e({prop:"minHeight",transform:Je});_e({prop:"size",cssProperty:"width",transform:Je});_e({prop:"size",cssProperty:"height",transform:Je});const Lp=_e({prop:"boxSizing"});vo(Ep,Ts,Op,$p,Ap,Fp,Lp);const kr={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xo},color:{themeKey:"palette",transform:Dn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dn},backgroundColor:{themeKey:"palette",transform:Dn},p:{style:Be},pt:{style:Be},pr:{style:Be},pb:{style:Be},pl:{style:Be},px:{style:Be},py:{style:Be},padding:{style:Be},paddingTop:{style:Be},paddingRight:{style:Be},paddingBottom:{style:Be},paddingLeft:{style:Be},paddingX:{style:Be},paddingY:{style:Be},paddingInline:{style:Be},paddingInlineStart:{style:Be},paddingInlineEnd:{style:Be},paddingBlock:{style:Be},paddingBlockStart:{style:Be},paddingBlockEnd:{style:Be},m:{style:je},mt:{style:je},mr:{style:je},mb:{style:je},ml:{style:je},mx:{style:je},my:{style:je},margin:{style:je},marginTop:{style:je},marginRight:{style:je},marginBottom:{style:je},marginLeft:{style:je},marginX:{style:je},marginY:{style:je},marginInline:{style:je},marginInlineStart:{style:je},marginInlineEnd:{style:je},marginBlock:{style:je},marginBlockStart:{style:je},marginBlockEnd:{style:je},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:So},rowGap:{style:Co},columnGap:{style:wo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Ts},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},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 Np(...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 jp(e,t){return typeof e=="function"?e(t):e}function Bp(){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:m}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=bo(o,c)||{};return m?m(i):$t(i,r,d=>{let p=to(f,u,d);return d===p&&typeof d=="string"&&(p=to(f,u,`${n}${d==="default"?"":le(d)}`,d)),l===!1?p:{[l]:p}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??kr;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=ep(o.breakpoints),m=Object.keys(u);let f=u;return Object.keys(c).forEach(b=>{const d=jp(c[b],o);if(d!=null)if(typeof d=="object")if(i[b])f=ir(f,e(b,d,o,i));else{const p=$t({theme:o},d,h=>({[b]:h}));Np(p,d)?f[b]=t({sx:d,theme:o,nested:!0}):f=ir(f,p)}else f=ir(f,e(b,d,o,i))}),!s&&o.modularCssLayers?{"@layer sx":Ni(o,Bi(m,f))}:Ni(o,Bi(m,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const $n=Bp();$n.filterProps=["sx"];const Vp=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??kr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function zp(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Vp(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return kt(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function _p(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ds(e,t=0,n=1){return _p(e,t,n)}function Wp(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 Yt(e){if(e.type)return e;if(e.charAt(0)==="#")return Yt(Wp(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ot(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(Ot(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Hp=e=>{const t=Yt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},nr=(e,t)=>{try{return Hp(e)}catch{return e}};function Po(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 wl(e){e=Yt(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])),Po({type:a,values:l})}function os(e){e=Yt(e);let t=e.type==="hsl"||e.type==="hsla"?Yt(wl(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 Up(e,t){const n=os(e),r=os(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function no(e,t){return e=Yt(e),t=Ds(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Po(e)}function qt(e,t,n){try{return no(e,t)}catch{return e}}function ko(e,t){if(e=Yt(e),t=Ds(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 Po(e)}function Me(e,t,n){try{return ko(e,t)}catch{return e}}function Mo(e,t){if(e=Yt(e),t=Ds(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 Po(e)}function Te(e,t,n){try{return Mo(e,t)}catch{return e}}function Cl(e,t=.15){return os(e)>.5?ko(e,t):Mo(e,t)}function Fr(e,t,n){try{return Cl(e,t)}catch{return e}}const fr={black:"#000",white:"#fff"},Yp={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"},gn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Hn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Pl(){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:fr.white,default:fr.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 kl=Pl();function Ml(){return{text:{primary:fr.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:fr.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 ss=Ml();function zi(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=Mo(e.main,o):t==="dark"&&(e.dark=ko(e.main,s)))}function _i(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 Gp(e="light"){return e==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[700],light:bn[400],dark:bn[800]}}function Kp(e="light"){return e==="dark"?{main:gn[200],light:gn[50],dark:gn[400]}:{main:gn[500],light:gn[300],dark:gn[700]}}function qp(e="light"){return e==="dark"?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}function Xp(e="light"){return e==="dark"?{main:vn[400],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[500],dark:vn[900]}}function Qp(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[800],light:xn[500],dark:xn[900]}}function Zp(e="light"){return e==="dark"?{main:Hn[400],light:Hn[300],dark:Hn[700]}:{main:"#ed6c02",light:Hn[500],dark:Hn[900]}}function Jp(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Rs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Gp(t),a=e.secondary||Kp(t),l=e.error||qp(t),c=e.info||Xp(t),u=e.success||Qp(t),m=e.warning||Zp(t);function f(h){return o?Jp(h):Up(h,ss.text.primary)>=n?ss.text.primary:kl.text.primary}const b=({color:h,name:S,mainShade:C=500,lightShade:w=300,darkShade:x=700})=>{if(h={...h},!h.main&&h[C]&&(h.main=h[C]),!h.hasOwnProperty("main"))throw new Error(Ot(11,S?` (${S})`:"",C));if(typeof h.main!="string")throw new Error(Ot(12,S?` (${S})`:"",JSON.stringify(h.main)));return o?(_i(o,h,"light",w,r),_i(o,h,"dark",x,r)):(zi(h,"light",w,r),zi(h,"dark",x,r)),h.contrastText||(h.contrastText=f(h.main)),h};let d;return t==="light"?d=Pl():t==="dark"&&(d=Ml()),Ge({common:{...fr},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:m,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:u,name:"success"}),grey:Yp,contrastThreshold:n,getContrastText:f,augmentColor:b,tonalOffset:r,...d},s)}function ef(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 tf={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 nf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rf=/[A-Z]|^ms/g,of=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tl=function(t){return t.charCodeAt(1)===45},Wi=function(t){return t!=null&&typeof t!="boolean"},Go=nf(function(e){return Tl(e)?e:e.replace(rf,"-$&").toLowerCase()}),Hi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(of,function(r,o,s){return Ut={name:o,styles:s,next:Ut},o})}return tf[t]!==1&&!Tl(t)&&typeof n=="number"&&n!==0?n+"px":n};function ro(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 Ut={name:o.name,styles:o.styles,next:Ut},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ut={name:i.name,styles:i.styles,next:Ut},i=i.next;var a=s.styles+";";return a}return sf(e,t,n)}}var l=n;return l}function sf(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ro(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;Wi(a)&&(r+=Go(s)+":"+Hi(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Wi(i[l])&&(r+=Go(s)+":"+Hi(s,i[l])+";");else{var c=ro(e,t,i);switch(s){case"animation":case"animationName":{r+=Go(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var Ui=/label:\s*([^\s;{]+)\s*(;|$)/g,Ut;function af(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="";Ut=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ro(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=ro(n,t,e[a]),r){var l=s;o+=l[a]}Ui.lastIndex=0;for(var c="",u;(u=Ui.exec(o))!==null;)c+="-"+u[1];var m=ef(o)+c;return{name:m,styles:o,next:Ut}}function lf(e,t){return jd(e,t)}function cf(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Yi=[];function sn(e){return Yi[0]=e,af(Yi)}const He=typeof window<"u"?v.useLayoutEffect:v.useEffect;function uf(e){return Object.keys(e).length===0}function Dl(e=null){const t=v.useContext(Nd.ThemeContext);return!t||uf(t)?e:t}const df=v.createContext(),vt=()=>v.useContext(df)??!1;function mr(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]=mr(i[c],a[c],n)}}}else s==="className"&&n&&t.className?r.className=de(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 pf=v.createContext(void 0);function ff(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?mr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?mr(o,r,t.components.mergeClassNameAndStyle):r}function mf({props:e,name:t}){const n=v.useContext(pf);return ff({props:e,name:t,theme:{components:n}})}let Gi=0;function hf(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(Gi+=1,n(`mui-${Gi}`))},[t]),r}const gf={...v},Ki=gf.useId;function xt(e){if(Ki!==void 0){const t=Ki();return e??t}return hf(e)}const yf=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 bf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=yf(t),i=Object.keys(s);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,b){const d=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(d!==-1&&typeof t[i[d]]=="number"?t[i[d]]:b)-r/100}${n})`}function u(f){return i.indexOf(f)+1<i.length?c(f,i[i.indexOf(f)+1]):a(f)}function m(f){const b=i.indexOf(f);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:m,unit:n,...o}}const vf={borderRadius:4};function xf(e=8,t=Ms({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 Sf(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 Is(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=bf(n),l=xf(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...vf,...s}},i);return c=Zd(c),c.applyStyles=Sf,c=t.reduce((u,m)=>Ge(u,m),c),c.unstable_sxConfig={...kr,...i?.unstable_sxConfig},c.unstable_sx=function(m){return $n({sx:m,theme:this})},c}const wf=Is();function Cf(e=wf){return Dl(e)}const qi=(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])})},Pf=(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)},kf=(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 Ko(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Pf(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,m=kf(a,l);Object.assign(o,{[u]:m}),qi(s,a,`var(${u})`,c),qi(i,a,`var(${u}, ${m})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Mf(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:m,varsWithDefaults:f}=Ko(c,t);let b=f;const d={},{[l]:p,...h}=i;if(Object.entries(h||{}).forEach(([x,T])=>{const{vars:k,css:O,varsWithDefaults:I}=Ko(T,t);b=Ge(b,I),d[x]={css:O,vars:k}}),p){const{css:x,vars:T,varsWithDefaults:k}=Ko(p,t);b=Ge(b,k),d[l]={css:x,vars:T}}function S(x,T){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":T}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...u};return Object.entries(d).forEach(([,{vars:T}])=>{x=Ge(x,T)}),x},generateStyleSheets:()=>{const x=[],T=e.defaultColorScheme||"light";function k(N,L){Object.keys(L).length&&x.push(typeof N=="string"?{[N]:{...L}}:N)}k(n(void 0,{...m}),m);const{[T]:O,...I}=d;if(O){const{css:N}=O,L=i[T]?.palette?.mode,R=!r&&L?{colorScheme:L,...N}:{...N};k(n(T,{...R}),R)}return Object.entries(I).forEach(([N,{css:L}])=>{const R=i[N]?.palette?.mode,y=!r&&R?{colorScheme:R,...L}:{...L};k(n(N,{...y}),y)}),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 Tf(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 Df(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 Rf={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 ge(e,t,n="Mui"){const r=Rf[t];return r?`${n}-${r}`:`${yl.generate(e)}-${t}`}function If(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ef(e){return Math.round(e*1e5)/1e5}const Xi={textTransform:"uppercase"},Qi='"Roboto", "Helvetica", "Arial", sans-serif';function Of(e,t){const{fontFamily:n=Qi,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...m}=typeof t=="function"?t(e):t,f=r/14,b=u||(h=>`${h/l*f}rem`),d=(h,S,C,w,x)=>({fontFamily:n,fontWeight:h,fontSize:b(S),lineHeight:C,...n===Qi?{letterSpacing:`${Ef(w/S)}em`}:{},...x,...c}),p={h1:d(o,96,1.167,-1.5),h2:d(o,60,1.2,-.5),h3:d(s,48,1.167,0),h4:d(s,34,1.235,.25),h5:d(s,24,1.334,0),h6:d(i,20,1.6,.15),subtitle1:d(s,16,1.75,.15),subtitle2:d(i,14,1.57,.1),body1:d(s,16,1.5,.15),body2:d(s,14,1.43,.15),button:d(i,14,1.75,.4,Xi),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,Xi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...p},m,{clone:!1})}const $f=.2,Af=.14,Ff=.12;function Fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$f})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Af})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ff})`].join(",")}const Lf=["none",Fe(0,2,1,-1,0,1,1,0,0,1,3,0),Fe(0,3,1,-2,0,2,2,0,0,1,5,0),Fe(0,3,3,-2,0,3,4,0,0,1,8,0),Fe(0,2,4,-1,0,4,5,0,0,1,10,0),Fe(0,3,5,-1,0,5,8,0,0,1,14,0),Fe(0,3,5,-1,0,6,10,0,0,1,18,0),Fe(0,4,5,-2,0,7,10,1,0,2,16,1),Fe(0,5,5,-3,0,8,10,1,0,3,14,2),Fe(0,5,6,-3,0,9,12,1,0,3,16,2),Fe(0,6,6,-3,0,10,14,1,0,4,18,3),Fe(0,6,7,-4,0,11,15,1,0,4,20,3),Fe(0,7,8,-4,0,12,17,2,0,5,22,4),Fe(0,7,8,-4,0,13,19,2,0,5,24,4),Fe(0,7,9,-4,0,14,21,2,0,5,26,4),Fe(0,8,9,-5,0,15,22,2,0,6,28,5),Fe(0,8,10,-5,0,16,24,2,0,6,30,5),Fe(0,8,11,-5,0,17,26,2,0,6,32,5),Fe(0,9,11,-5,0,18,28,2,0,7,34,6),Fe(0,9,12,-6,0,19,29,2,0,7,36,6),Fe(0,10,13,-6,0,20,31,3,0,8,38,7),Fe(0,10,13,-6,0,21,33,3,0,8,40,7),Fe(0,10,14,-6,0,22,35,3,0,8,42,7),Fe(0,11,14,-7,0,23,36,3,0,9,44,8),Fe(0,11,15,-7,0,24,38,3,0,9,46,8)],Nf={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)"},jf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zi(e){return`${Math.round(e)}ms`}function Bf(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Vf(e){const t={...Nf,...e.easing},n={...jf,...e.duration};return{getAutoHeightDuration:Bf,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:Zi(i)} ${a} ${typeof l=="string"?l:Zi(l)}`).join(",")},...e,easing:t,duration:n}}const zf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _f(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rl(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];!_f(a)||i.startsWith("unstable_")?delete r[i]:kt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
9
+ */var Ni;function Xd(){if(Ni)return Re;Ni=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"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function d(p){if(typeof p=="object"&&p!==null){var h=p.$$typeof;switch(h){case e:switch(p=p.type,p){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case i:case a:case m:case u:return p;case s:return p;default:return h}}case t:return h}}}return Re.ContextConsumer=s,Re.ContextProvider=i,Re.Element=e,Re.ForwardRef=a,Re.Fragment=n,Re.Lazy=m,Re.Memo=u,Re.Portal=t,Re.Profiler=o,Re.StrictMode=r,Re.Suspense=l,Re.SuspenseList=c,Re.isContextConsumer=function(p){return d(p)===s},Re.isContextProvider=function(p){return d(p)===i},Re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Re.isForwardRef=function(p){return d(p)===a},Re.isFragment=function(p){return d(p)===n},Re.isLazy=function(p){return d(p)===m},Re.isMemo=function(p){return d(p)===u},Re.isPortal=function(p){return d(p)===t},Re.isProfiler=function(p){return d(p)===o},Re.isStrictMode=function(p){return d(p)===r},Re.isSuspense=function(p){return d(p)===l},Re.isSuspenseList=function(p){return d(p)===c},Re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===l||p===c||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===u||p.$$typeof===i||p.$$typeof===s||p.$$typeof===a||p.$$typeof===b||p.getModuleId!==void 0)},Re.typeOf=d,Re}var ji;function Qd(){return ji||(ji=1,Yo.exports=Xd()),Yo.exports}var wl=Qd();function kt(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 Cl(e){if(v.isValidElement(e)||wl.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Cl(e[n])}),t}function Ge(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kt(e)&&kt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||wl.isValidElementType(t[o])?r[o]=t[o]:kt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&kt(e[o])?r[o]=Ge(e[o],t[o],n):n.clone?r[o]=kt(t[o])?Cl(t[o]):t[o]:r[o]=t[o]}),r}function ir(e,t){return t?Ge(e,t,{clone:!1}):e}function Bi(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 Zd(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Jd(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 ep(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 yo={xs:0,sm:600,md:900,lg:1200,xl:1536},Vi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yo[e]}px)`},tp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:yo[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $t(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Vi;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Vi;return Object.keys(t).reduce((i,a)=>{if(Zd(s.keys,a)){const l=Jd(r.containerQueries?r:tp,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||yo).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 np(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function zi(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function bo(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 to(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=bo(e,n)||r,t&&(o=t(o,r,e)),o}function _e(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=bo(l,r)||{};return $t(i,a,m=>{let f=to(c,o,m);return m===f&&typeof m=="string"&&(f=to(c,o,`${t}${m==="default"?"":le(m)}`,m)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function rp(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const op={m:"margin",p:"padding"},sp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_i={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ip=rp(e=>{if(e.length>2)if(_i[e])e=_i[e];else return[e];const[t,n]=e.split(""),r=op[t],o=sp[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Ps=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ks=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ps,...ks];function Cr(e,t,n,r){const o=bo(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 Ms(e){return Cr(e,"spacing",8)}function Pr(e,t){return typeof t=="string"||t==null?t:e(t)}function ap(e,t){return n=>e.reduce((r,o)=>(r[o]=Pr(t,n),r),{})}function lp(e,t,n,r){if(!t.includes(n))return null;const o=ip(n),s=ap(o,r),i=e[n];return $t(e,i,s)}function Pl(e,t){const n=Ms(e.theme);return Object.keys(e).map(r=>lp(e,t,r,n)).reduce(ir,{})}function je(e){return Pl(e,Ps)}je.propTypes={};je.filterProps=Ps;function Be(e){return Pl(e,ks)}Be.propTypes={};Be.filterProps=ks;function vo(...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]?ir(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function it(e){return typeof e!="number"?e:`${e}px solid`}function dt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const cp=dt("border",it),up=dt("borderTop",it),dp=dt("borderRight",it),pp=dt("borderBottom",it),fp=dt("borderLeft",it),mp=dt("borderColor"),hp=dt("borderTopColor"),gp=dt("borderRightColor"),yp=dt("borderBottomColor"),bp=dt("borderLeftColor"),vp=dt("outline",it),xp=dt("outlineColor"),xo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Cr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Pr(t,r)});return $t(e,e.borderRadius,n)}return null};xo.propTypes={};xo.filterProps=["borderRadius"];vo(cp,up,dp,pp,fp,mp,hp,gp,yp,bp,xo,vp,xp);const So=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Cr(e.theme,"spacing",8),n=r=>({gap:Pr(t,r)});return $t(e,e.gap,n)}return null};So.propTypes={};So.filterProps=["gap"];const wo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Cr(e.theme,"spacing",8),n=r=>({columnGap:Pr(t,r)});return $t(e,e.columnGap,n)}return null};wo.propTypes={};wo.filterProps=["columnGap"];const Co=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Cr(e.theme,"spacing",8),n=r=>({rowGap:Pr(t,r)});return $t(e,e.rowGap,n)}return null};Co.propTypes={};Co.filterProps=["rowGap"];const Sp=_e({prop:"gridColumn"}),wp=_e({prop:"gridRow"}),Cp=_e({prop:"gridAutoFlow"}),Pp=_e({prop:"gridAutoColumns"}),kp=_e({prop:"gridAutoRows"}),Mp=_e({prop:"gridTemplateColumns"}),Tp=_e({prop:"gridTemplateRows"}),Dp=_e({prop:"gridTemplateAreas"}),Rp=_e({prop:"gridArea"});vo(So,wo,Co,Sp,wp,Cp,Pp,kp,Mp,Tp,Dp,Rp);function Dn(e,t){return t==="grey"?t:e}const Ip=_e({prop:"color",themeKey:"palette",transform:Dn}),Ep=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dn}),Op=_e({prop:"backgroundColor",themeKey:"palette",transform:Dn});vo(Ip,Ep,Op);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const $p=_e({prop:"width",transform:Je}),Ts=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||yo[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Je(n)}};return $t(e,e.maxWidth,t)}return null};Ts.filterProps=["maxWidth"];const Ap=_e({prop:"minWidth",transform:Je}),Fp=_e({prop:"height",transform:Je}),Lp=_e({prop:"maxHeight",transform:Je}),Np=_e({prop:"minHeight",transform:Je});_e({prop:"size",cssProperty:"width",transform:Je});_e({prop:"size",cssProperty:"height",transform:Je});const jp=_e({prop:"boxSizing"});vo($p,Ts,Ap,Fp,Lp,Np,jp);const kr={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xo},color:{themeKey:"palette",transform:Dn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dn},backgroundColor:{themeKey:"palette",transform:Dn},p:{style:Be},pt:{style:Be},pr:{style:Be},pb:{style:Be},pl:{style:Be},px:{style:Be},py:{style:Be},padding:{style:Be},paddingTop:{style:Be},paddingRight:{style:Be},paddingBottom:{style:Be},paddingLeft:{style:Be},paddingX:{style:Be},paddingY:{style:Be},paddingInline:{style:Be},paddingInlineStart:{style:Be},paddingInlineEnd:{style:Be},paddingBlock:{style:Be},paddingBlockStart:{style:Be},paddingBlockEnd:{style:Be},m:{style:je},mt:{style:je},mr:{style:je},mb:{style:je},ml:{style:je},mx:{style:je},my:{style:je},margin:{style:je},marginTop:{style:je},marginRight:{style:je},marginBottom:{style:je},marginLeft:{style:je},marginX:{style:je},marginY:{style:je},marginInline:{style:je},marginInlineStart:{style:je},marginInlineEnd:{style:je},marginBlock:{style:je},marginBlockStart:{style:je},marginBlockEnd:{style:je},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:So},rowGap:{style:Co},columnGap:{style:wo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Ts},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},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 Bp(...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 Vp(e,t){return typeof e=="function"?e(t):e}function zp(){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:m}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=bo(o,c)||{};return m?m(i):$t(i,r,d=>{let p=to(f,u,d);return d===p&&typeof d=="string"&&(p=to(f,u,`${n}${d==="default"?"":le(d)}`,d)),l===!1?p:{[l]:p}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??kr;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=np(o.breakpoints),m=Object.keys(u);let f=u;return Object.keys(c).forEach(b=>{const d=Vp(c[b],o);if(d!=null)if(typeof d=="object")if(i[b])f=ir(f,e(b,d,o,i));else{const p=$t({theme:o},d,h=>({[b]:h}));Bp(p,d)?f[b]=t({sx:d,theme:o,nested:!0}):f=ir(f,p)}else f=ir(f,e(b,d,o,i))}),!s&&o.modularCssLayers?{"@layer sx":Bi(o,zi(m,f))}:Bi(o,zi(m,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const $n=zp();$n.filterProps=["sx"];const _p=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??kr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Wp(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=_p(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return kt(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function Hp(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ds(e,t=0,n=1){return Hp(e,t,n)}function Up(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 Yt(e){if(e.type)return e;if(e.charAt(0)==="#")return Yt(Up(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ot(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(Ot(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Yp=e=>{const t=Yt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},nr=(e,t)=>{try{return Yp(e)}catch{return e}};function Po(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 kl(e){e=Yt(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])),Po({type:a,values:l})}function os(e){e=Yt(e);let t=e.type==="hsl"||e.type==="hsla"?Yt(kl(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 Gp(e,t){const n=os(e),r=os(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function no(e,t){return e=Yt(e),t=Ds(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Po(e)}function qt(e,t,n){try{return no(e,t)}catch{return e}}function ko(e,t){if(e=Yt(e),t=Ds(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 Po(e)}function Me(e,t,n){try{return ko(e,t)}catch{return e}}function Mo(e,t){if(e=Yt(e),t=Ds(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 Po(e)}function Te(e,t,n){try{return Mo(e,t)}catch{return e}}function Ml(e,t=.15){return os(e)>.5?ko(e,t):Mo(e,t)}function Fr(e,t,n){try{return Ml(e,t)}catch{return e}}const fr={black:"#000",white:"#fff"},Kp={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"},gn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Hn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Tl(){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:fr.white,default:fr.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 Dl=Tl();function Rl(){return{text:{primary:fr.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:fr.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 ss=Rl();function Wi(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=Mo(e.main,o):t==="dark"&&(e.dark=ko(e.main,s)))}function Hi(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 qp(e="light"){return e==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[700],light:bn[400],dark:bn[800]}}function Xp(e="light"){return e==="dark"?{main:gn[200],light:gn[50],dark:gn[400]}:{main:gn[500],light:gn[300],dark:gn[700]}}function Qp(e="light"){return e==="dark"?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}function Zp(e="light"){return e==="dark"?{main:vn[400],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[500],dark:vn[900]}}function Jp(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[800],light:xn[500],dark:xn[900]}}function ef(e="light"){return e==="dark"?{main:Hn[400],light:Hn[300],dark:Hn[700]}:{main:"#ed6c02",light:Hn[500],dark:Hn[900]}}function tf(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Rs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||qp(t),a=e.secondary||Xp(t),l=e.error||Qp(t),c=e.info||Zp(t),u=e.success||Jp(t),m=e.warning||ef(t);function f(h){return o?tf(h):Gp(h,ss.text.primary)>=n?ss.text.primary:Dl.text.primary}const b=({color:h,name:S,mainShade:C=500,lightShade:w=300,darkShade:x=700})=>{if(h={...h},!h.main&&h[C]&&(h.main=h[C]),!h.hasOwnProperty("main"))throw new Error(Ot(11,S?` (${S})`:"",C));if(typeof h.main!="string")throw new Error(Ot(12,S?` (${S})`:"",JSON.stringify(h.main)));return o?(Hi(o,h,"light",w,r),Hi(o,h,"dark",x,r)):(Wi(h,"light",w,r),Wi(h,"dark",x,r)),h.contrastText||(h.contrastText=f(h.main)),h};let d;return t==="light"?d=Tl():t==="dark"&&(d=Rl()),Ge({common:{...fr},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:m,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:u,name:"success"}),grey:Kp,contrastThreshold:n,getContrastText:f,augmentColor:b,tonalOffset:r,...d},s)}function nf(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 rf={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 of(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var sf=/[A-Z]|^ms/g,af=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Il=function(t){return t.charCodeAt(1)===45},Ui=function(t){return t!=null&&typeof t!="boolean"},Go=of(function(e){return Il(e)?e:e.replace(sf,"-$&").toLowerCase()}),Yi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(af,function(r,o,s){return Ut={name:o,styles:s,next:Ut},o})}return rf[t]!==1&&!Il(t)&&typeof n=="number"&&n!==0?n+"px":n};function ro(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 Ut={name:o.name,styles:o.styles,next:Ut},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ut={name:i.name,styles:i.styles,next:Ut},i=i.next;var a=s.styles+";";return a}return lf(e,t,n)}}var l=n;return l}function lf(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ro(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;Ui(a)&&(r+=Go(s)+":"+Yi(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Ui(i[l])&&(r+=Go(s)+":"+Yi(s,i[l])+";");else{var c=ro(e,t,i);switch(s){case"animation":case"animationName":{r+=Go(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var Gi=/label:\s*([^\s;{]+)\s*(;|$)/g,Ut;function cf(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="";Ut=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ro(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=ro(n,t,e[a]),r){var l=s;o+=l[a]}Gi.lastIndex=0;for(var c="",u;(u=Gi.exec(o))!==null;)c+="-"+u[1];var m=nf(o)+c;return{name:m,styles:o,next:Ut}}function uf(e,t){return Vd(e,t)}function df(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ki=[];function sn(e){return Ki[0]=e,cf(Ki)}const He=typeof window<"u"?v.useLayoutEffect:v.useEffect;function pf(e){return Object.keys(e).length===0}function El(e=null){const t=v.useContext(Bd.ThemeContext);return!t||pf(t)?e:t}const ff=v.createContext(),vt=()=>v.useContext(ff)??!1;function mr(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]=mr(i[c],a[c],n)}}}else s==="className"&&n&&t.className?r.className=de(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 mf=v.createContext(void 0);function hf(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?mr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?mr(o,r,t.components.mergeClassNameAndStyle):r}function gf({props:e,name:t}){const n=v.useContext(mf);return hf({props:e,name:t,theme:{components:n}})}let qi=0;function yf(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(qi+=1,n(`mui-${qi}`))},[t]),r}const bf={...v},Xi=bf.useId;function xt(e){if(Xi!==void 0){const t=Xi();return e??t}return yf(e)}const vf=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 xf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=vf(t),i=Object.keys(s);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,b){const d=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(d!==-1&&typeof t[i[d]]=="number"?t[i[d]]:b)-r/100}${n})`}function u(f){return i.indexOf(f)+1<i.length?c(f,i[i.indexOf(f)+1]):a(f)}function m(f){const b=i.indexOf(f);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:m,unit:n,...o}}const Sf={borderRadius:4};function wf(e=8,t=Ms({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 Cf(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 Is(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=xf(n),l=wf(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Sf,...s}},i);return c=ep(c),c.applyStyles=Cf,c=t.reduce((u,m)=>Ge(u,m),c),c.unstable_sxConfig={...kr,...i?.unstable_sxConfig},c.unstable_sx=function(m){return $n({sx:m,theme:this})},c}const Pf=Is();function kf(e=Pf){return El(e)}const Qi=(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])})},Mf=(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)},Tf=(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 Ko(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Mf(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,m=Tf(a,l);Object.assign(o,{[u]:m}),Qi(s,a,`var(${u})`,c),Qi(i,a,`var(${u}, ${m})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Df(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:m,varsWithDefaults:f}=Ko(c,t);let b=f;const d={},{[l]:p,...h}=i;if(Object.entries(h||{}).forEach(([x,T])=>{const{vars:k,css:O,varsWithDefaults:I}=Ko(T,t);b=Ge(b,I),d[x]={css:O,vars:k}}),p){const{css:x,vars:T,varsWithDefaults:k}=Ko(p,t);b=Ge(b,k),d[l]={css:x,vars:T}}function S(x,T){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":T}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...u};return Object.entries(d).forEach(([,{vars:T}])=>{x=Ge(x,T)}),x},generateStyleSheets:()=>{const x=[],T=e.defaultColorScheme||"light";function k(N,L){Object.keys(L).length&&x.push(typeof N=="string"?{[N]:{...L}}:N)}k(n(void 0,{...m}),m);const{[T]:O,...I}=d;if(O){const{css:N}=O,L=i[T]?.palette?.mode,R=!r&&L?{colorScheme:L,...N}:{...N};k(n(T,{...R}),R)}return Object.entries(I).forEach(([N,{css:L}])=>{const R=i[N]?.palette?.mode,y=!r&&R?{colorScheme:R,...L}:{...L};k(n(N,{...y}),y)}),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 Rf(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 If(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 Ef={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 ge(e,t,n="Mui"){const r=Ef[t];return r?`${n}-${r}`:`${xl.generate(e)}-${t}`}function Of(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function $f(e){return Math.round(e*1e5)/1e5}const Zi={textTransform:"uppercase"},Ji='"Roboto", "Helvetica", "Arial", sans-serif';function Af(e,t){const{fontFamily:n=Ji,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...m}=typeof t=="function"?t(e):t,f=r/14,b=u||(h=>`${h/l*f}rem`),d=(h,S,C,w,x)=>({fontFamily:n,fontWeight:h,fontSize:b(S),lineHeight:C,...n===Ji?{letterSpacing:`${$f(w/S)}em`}:{},...x,...c}),p={h1:d(o,96,1.167,-1.5),h2:d(o,60,1.2,-.5),h3:d(s,48,1.167,0),h4:d(s,34,1.235,.25),h5:d(s,24,1.334,0),h6:d(i,20,1.6,.15),subtitle1:d(s,16,1.75,.15),subtitle2:d(i,14,1.57,.1),body1:d(s,16,1.5,.15),body2:d(s,14,1.43,.15),button:d(i,14,1.75,.4,Zi),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,Zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...p},m,{clone:!1})}const Ff=.2,Lf=.14,Nf=.12;function Fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ff})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Lf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Nf})`].join(",")}const jf=["none",Fe(0,2,1,-1,0,1,1,0,0,1,3,0),Fe(0,3,1,-2,0,2,2,0,0,1,5,0),Fe(0,3,3,-2,0,3,4,0,0,1,8,0),Fe(0,2,4,-1,0,4,5,0,0,1,10,0),Fe(0,3,5,-1,0,5,8,0,0,1,14,0),Fe(0,3,5,-1,0,6,10,0,0,1,18,0),Fe(0,4,5,-2,0,7,10,1,0,2,16,1),Fe(0,5,5,-3,0,8,10,1,0,3,14,2),Fe(0,5,6,-3,0,9,12,1,0,3,16,2),Fe(0,6,6,-3,0,10,14,1,0,4,18,3),Fe(0,6,7,-4,0,11,15,1,0,4,20,3),Fe(0,7,8,-4,0,12,17,2,0,5,22,4),Fe(0,7,8,-4,0,13,19,2,0,5,24,4),Fe(0,7,9,-4,0,14,21,2,0,5,26,4),Fe(0,8,9,-5,0,15,22,2,0,6,28,5),Fe(0,8,10,-5,0,16,24,2,0,6,30,5),Fe(0,8,11,-5,0,17,26,2,0,6,32,5),Fe(0,9,11,-5,0,18,28,2,0,7,34,6),Fe(0,9,12,-6,0,19,29,2,0,7,36,6),Fe(0,10,13,-6,0,20,31,3,0,8,38,7),Fe(0,10,13,-6,0,21,33,3,0,8,40,7),Fe(0,10,14,-6,0,22,35,3,0,8,42,7),Fe(0,11,14,-7,0,23,36,3,0,9,44,8),Fe(0,11,15,-7,0,24,38,3,0,9,46,8)],Bf={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)"},Vf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ea(e){return`${Math.round(e)}ms`}function zf(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function _f(e){const t={...Bf,...e.easing},n={...Vf,...e.duration};return{getAutoHeightDuration:zf,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:ea(i)} ${a} ${typeof l=="string"?l:ea(l)}`).join(",")},...e,easing:t,duration:n}}const Wf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hf(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ol(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];!Hf(a)||i.startsWith("unstable_")?delete r[i]:kt(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 Ji(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Wf=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 Hf(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})`:no(t,Wf(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ji(n)})`:Mo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ji(n)})`:ko(t,n)}})}function is(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(Ot(20));const m=Rs({...s,colorSpace:c}),f=Is(e);let b=Ge(f,{mixins:If(f.breakpoints,r),palette:m,shadows:Lf.slice(),typography:Of(m,a),transitions:Vf(i),zIndex:{...zf}});return b=Ge(b,u),b=t.reduce((d,p)=>Ge(d,p),b),b.unstable_sxConfig={...kr,...u?.unstable_sxConfig},b.unstable_sx=function(p){return $n({sx:p,theme:this})},b.toRuntimeSource=Rl,Hf(b),b}function as(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 Uf=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=as(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Il(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function El(e){return e==="dark"?Uf:[]}function Yf(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Rs({...t,colorSpace:o});return{palette:i,opacity:{...Il(i.mode),...n},overlays:r||El(i.mode),...s}}function Gf(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 Kf=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],qf=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 Kf(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 Xf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function H(e,t,n){!e[t]&&n&&(e[t]=n)}function rr(e){return typeof e!="string"||!e.startsWith("hsl")?e:wl(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=nr(rr(e[t])))}function Qf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ct=e=>{try{return e()}catch{}},Zf=(e="mui")=>We.unstable_createGetCssVar(e);function qo(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Yf({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=is({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Il(s),...n?.opacity},overlays:n?.overlays||El(s)},a}function Jf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Gf,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,m=Object.keys(n)[0],f=r||(n.light&&m!=="light"?"light":m),b=Zf(s),{[f]:d,light:p,dark:h,...S}=n,C={...S};let w=d;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(Ot(21,f));let x;i&&(x="oklch");const T=qo(x,C,w,u,f);p&&!C.light&&qo(x,C,p,void 0,"light"),h&&!C.dark&&qo(x,C,h,void 0,"dark");let k={defaultColorScheme:f,...T,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:C,font:{...Tf(T.typography),...T.font},spacing:Qf(u.spacing)};Object.keys(k.colorSchemes).forEach(R=>{const y=k.colorSchemes[R].palette,E=P=>{const M=P.split("-"),A=M[1],$=M[2];return b(P,y[A][$])};y.mode==="light"&&(H(y.common,"background","#fff"),H(y.common,"onBackground","#000")),y.mode==="dark"&&(H(y.common,"background","#000"),H(y.common,"onBackground","#fff"));function D(P,M,A){if(x){let $;return P===qt&&($=`transparent ${((1-A)*100).toFixed(0)}%`),P===Me&&($=`#000 ${(A*100).toFixed(0)}%`),P===Te&&($=`#fff ${(A*100).toFixed(0)}%`),`color-mix(in ${x}, ${M}, ${$})`}return P(M,A)}if(Xf(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){H(y.Alert,"errorColor",D(Me,y.error.light,.6)),H(y.Alert,"infoColor",D(Me,y.info.light,.6)),H(y.Alert,"successColor",D(Me,y.success.light,.6)),H(y.Alert,"warningColor",D(Me,y.warning.light,.6)),H(y.Alert,"errorFilledBg",E("palette-error-main")),H(y.Alert,"infoFilledBg",E("palette-info-main")),H(y.Alert,"successFilledBg",E("palette-success-main")),H(y.Alert,"warningFilledBg",E("palette-warning-main")),H(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.main))),H(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.main))),H(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.main))),H(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.main))),H(y.Alert,"errorStandardBg",D(Te,y.error.light,.9)),H(y.Alert,"infoStandardBg",D(Te,y.info.light,.9)),H(y.Alert,"successStandardBg",D(Te,y.success.light,.9)),H(y.Alert,"warningStandardBg",D(Te,y.warning.light,.9)),H(y.Alert,"errorIconColor",E("palette-error-main")),H(y.Alert,"infoIconColor",E("palette-info-main")),H(y.Alert,"successIconColor",E("palette-success-main")),H(y.Alert,"warningIconColor",E("palette-warning-main")),H(y.AppBar,"defaultBg",E("palette-grey-100")),H(y.Avatar,"defaultBg",E("palette-grey-400")),H(y.Button,"inheritContainedBg",E("palette-grey-300")),H(y.Button,"inheritContainedHoverBg",E("palette-grey-A100")),H(y.Chip,"defaultBorder",E("palette-grey-400")),H(y.Chip,"defaultAvatarColor",E("palette-grey-700")),H(y.Chip,"defaultIconColor",E("palette-grey-700")),H(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(y.LinearProgress,"primaryBg",D(Te,y.primary.main,.62)),H(y.LinearProgress,"secondaryBg",D(Te,y.secondary.main,.62)),H(y.LinearProgress,"errorBg",D(Te,y.error.main,.62)),H(y.LinearProgress,"infoBg",D(Te,y.info.main,.62)),H(y.LinearProgress,"successBg",D(Te,y.success.main,.62)),H(y.LinearProgress,"warningBg",D(Te,y.warning.main,.62)),H(y.Skeleton,"bg",x?D(qt,y.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),H(y.Slider,"primaryTrack",D(Te,y.primary.main,.62)),H(y.Slider,"secondaryTrack",D(Te,y.secondary.main,.62)),H(y.Slider,"errorTrack",D(Te,y.error.main,.62)),H(y.Slider,"infoTrack",D(Te,y.info.main,.62)),H(y.Slider,"successTrack",D(Te,y.success.main,.62)),H(y.Slider,"warningTrack",D(Te,y.warning.main,.62));const P=x?D(Me,y.background.default,.6825):Fr(y.background.default,.8);H(y.SnackbarContent,"bg",P),H(y.SnackbarContent,"color",Ct(()=>x?ss.text.primary:y.getContrastText(P))),H(y.SpeedDialAction,"fabHoverBg",Fr(y.background.paper,.15)),H(y.StepConnector,"border",E("palette-grey-400")),H(y.StepContent,"border",E("palette-grey-400")),H(y.Switch,"defaultColor",E("palette-common-white")),H(y.Switch,"defaultDisabledColor",E("palette-grey-100")),H(y.Switch,"primaryDisabledColor",D(Te,y.primary.main,.62)),H(y.Switch,"secondaryDisabledColor",D(Te,y.secondary.main,.62)),H(y.Switch,"errorDisabledColor",D(Te,y.error.main,.62)),H(y.Switch,"infoDisabledColor",D(Te,y.info.main,.62)),H(y.Switch,"successDisabledColor",D(Te,y.success.main,.62)),H(y.Switch,"warningDisabledColor",D(Te,y.warning.main,.62)),H(y.TableCell,"border",D(Te,D(qt,y.divider,1),.88)),H(y.Tooltip,"bg",D(qt,y.grey[700],.92))}if(y.mode==="dark"){H(y.Alert,"errorColor",D(Te,y.error.light,.6)),H(y.Alert,"infoColor",D(Te,y.info.light,.6)),H(y.Alert,"successColor",D(Te,y.success.light,.6)),H(y.Alert,"warningColor",D(Te,y.warning.light,.6)),H(y.Alert,"errorFilledBg",E("palette-error-dark")),H(y.Alert,"infoFilledBg",E("palette-info-dark")),H(y.Alert,"successFilledBg",E("palette-success-dark")),H(y.Alert,"warningFilledBg",E("palette-warning-dark")),H(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.dark))),H(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.dark))),H(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.dark))),H(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.dark))),H(y.Alert,"errorStandardBg",D(Me,y.error.light,.9)),H(y.Alert,"infoStandardBg",D(Me,y.info.light,.9)),H(y.Alert,"successStandardBg",D(Me,y.success.light,.9)),H(y.Alert,"warningStandardBg",D(Me,y.warning.light,.9)),H(y.Alert,"errorIconColor",E("palette-error-main")),H(y.Alert,"infoIconColor",E("palette-info-main")),H(y.Alert,"successIconColor",E("palette-success-main")),H(y.Alert,"warningIconColor",E("palette-warning-main")),H(y.AppBar,"defaultBg",E("palette-grey-900")),H(y.AppBar,"darkBg",E("palette-background-paper")),H(y.AppBar,"darkColor",E("palette-text-primary")),H(y.Avatar,"defaultBg",E("palette-grey-600")),H(y.Button,"inheritContainedBg",E("palette-grey-800")),H(y.Button,"inheritContainedHoverBg",E("palette-grey-700")),H(y.Chip,"defaultBorder",E("palette-grey-700")),H(y.Chip,"defaultAvatarColor",E("palette-grey-300")),H(y.Chip,"defaultIconColor",E("palette-grey-300")),H(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(y.LinearProgress,"primaryBg",D(Me,y.primary.main,.5)),H(y.LinearProgress,"secondaryBg",D(Me,y.secondary.main,.5)),H(y.LinearProgress,"errorBg",D(Me,y.error.main,.5)),H(y.LinearProgress,"infoBg",D(Me,y.info.main,.5)),H(y.LinearProgress,"successBg",D(Me,y.success.main,.5)),H(y.LinearProgress,"warningBg",D(Me,y.warning.main,.5)),H(y.Skeleton,"bg",x?D(qt,y.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),H(y.Slider,"primaryTrack",D(Me,y.primary.main,.5)),H(y.Slider,"secondaryTrack",D(Me,y.secondary.main,.5)),H(y.Slider,"errorTrack",D(Me,y.error.main,.5)),H(y.Slider,"infoTrack",D(Me,y.info.main,.5)),H(y.Slider,"successTrack",D(Me,y.success.main,.5)),H(y.Slider,"warningTrack",D(Me,y.warning.main,.5));const P=x?D(Te,y.background.default,.985):Fr(y.background.default,.98);H(y.SnackbarContent,"bg",P),H(y.SnackbarContent,"color",Ct(()=>x?kl.text.primary:y.getContrastText(P))),H(y.SpeedDialAction,"fabHoverBg",Fr(y.background.paper,.15)),H(y.StepConnector,"border",E("palette-grey-600")),H(y.StepContent,"border",E("palette-grey-600")),H(y.Switch,"defaultColor",E("palette-grey-300")),H(y.Switch,"defaultDisabledColor",E("palette-grey-600")),H(y.Switch,"primaryDisabledColor",D(Me,y.primary.main,.55)),H(y.Switch,"secondaryDisabledColor",D(Me,y.secondary.main,.55)),H(y.Switch,"errorDisabledColor",D(Me,y.error.main,.55)),H(y.Switch,"infoDisabledColor",D(Me,y.info.main,.55)),H(y.Switch,"successDisabledColor",D(Me,y.success.main,.55)),H(y.Switch,"warningDisabledColor",D(Me,y.warning.main,.55)),H(y.TableCell,"border",D(Me,D(qt,y.divider,1),.68)),H(y.Tooltip,"bg",D(qt,y.grey[700],.92))}It(y.background,"default"),It(y.background,"paper"),It(y.common,"background"),It(y.common,"onBackground"),It(y,"divider"),Object.keys(y).forEach(P=>{const M=y[P];P!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&H(y[P],"mainChannel",nr(rr(M.main))),M.light&&H(y[P],"lightChannel",nr(rr(M.light))),M.dark&&H(y[P],"darkChannel",nr(rr(M.dark))),M.contrastText&&H(y[P],"contrastTextChannel",nr(rr(M.contrastText))),P==="text"&&(It(y[P],"primary"),It(y[P],"secondary")),P==="action"&&(M.active&&It(y[P],"active"),M.selected&&It(y[P],"selected")))})}),k=t.reduce((R,y)=>Ge(R,y),k);const O={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:qf(k),enableContrastVars:i},{vars:I,generateThemeVars:N,generateStyleSheets:L}=Mf(k,O);return k.vars=I,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([R,y])=>{k[R]=y}),k.generateThemeVars=N,k.generateStyleSheets=L,k.generateSpacing=function(){return We.createSpacing(u.spacing,Ms(this))},k.getColorSchemeSelector=Df(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={...kr,...u?.unstable_sxConfig},k.unstable_sx=function(y){return $n({sx:y,theme:this})},k.toRuntimeSource=Rl,k}function ea(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Rs({...n===!0?{}:n.palette,mode:t})})}function Ol(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 is(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const m=is({...e,palette:u},...t);return m.defaultColorScheme=a,m.colorSchemes=c,m.palette.mode==="light"&&(m.colorSchemes.light={...c.light!==!0&&c.light,palette:m.palette},ea(m,"dark",c.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:m.palette},ea(m,"light",c.light)),m}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Jf({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const To=Ol(),Vn="$$material";function fn(){const e=We.useTheme(To);return e[Vn]||e}function em(e){return g.jsx(We.GlobalStyles,{...e,defaultTheme:To,themeId:Vn})}function tm(e){const{variants:t,...n}=e,r={variants:t,style:sn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=sn(o.style))}),r}const nm=Is();function Xo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function rm(e){return e?(t,n)=>n[e]:null}function om(e,t,n){e.theme=am(e.theme)?n:e.theme[t]||e.theme}function Hr(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Hr(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?rn(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?rn(sn(i),n):i}return $l(e,r.variants,[o],n)}return r?.isProcessed?n?rn(sn(r.style),n):r.style:n?rn(sn(r),n):r}function $l(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?rn(sn(i.style(o)),r):i.style(o))):n.push(r?rn(sn(i.style),r):i.style)}return n}function sm(e={}){const{themeId:t,defaultTheme:n=nm,rootShouldForwardProp:r=Xo,slotShouldForwardProp:o=Xo}=e;function s(a){om(a,t,n)}return(a,l={})=>{cf(a,k=>k.filter(O=>O!==$n));const{name:c,slot:u,skipVariantsResolver:m,skipSx:f,overridesResolver:b=rm(cm(u)),...d}=l,p=c&&c.startsWith("Mui")||u?"components":"custom",h=m!==void 0?m:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let C=Xo;u==="Root"||u==="root"?C=r:u?C=o:lm(a)&&(C=void 0);const w=lf(a,{shouldForwardProp:C,label:im(),...d}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(I){return Hr(I,k,I.theme.modularCssLayers?p:void 0)};if(kt(k)){const O=tm(k);return function(N){return O.variants?Hr(N,O,N.theme.modularCssLayers?p:void 0):N.theme.modularCssLayers?rn(O.style,p):O.style}}return k},T=(...k)=>{const O=[],I=k.map(x),N=[];if(O.push(s),c&&b&&N.push(function(E){const P=E.theme.components?.[c]?.styleOverrides;if(!P)return null;const M={};for(const A in P)M[A]=Hr(E,P[A],E.theme.modularCssLayers?"theme":void 0);return b(E,M)}),c&&!h&&N.push(function(E){const P=E.theme?.components?.[c]?.variants;return P?$l(E,P,[],E.theme.modularCssLayers?"theme":void 0):null}),S||N.push($n),Array.isArray(I[0])){const y=I.shift(),E=new Array(O.length).fill(""),D=new Array(N.length).fill("");let P;P=[...E,...y,...D],P.raw=[...E,...y.raw,...D],O.unshift(P)}const L=[...O,...I,...N],R=w(...L);return a.muiName&&(R.muiName=a.muiName),R};return w.withConfig&&(T.withConfig=w.withConfig),T}}function im(e,t){return void 0}function am(e){for(const t in e)return!1;return!0}function lm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Al(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>Al(e)&&e!=="classes",U=sm({themeId:Vn,defaultTheme:To,rootShouldForwardProp:pt});function um(e){return function(n){return g.jsx(em,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function dm(){return zp}const Ie=We.unstable_memoTheme;function we(e){return mf(e)}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function pm(e){return ge("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return he(o,pm,r)},mm=U("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Ie(({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}}]}))),oo=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:m,viewBox:f="0 0 24 24",...b}=r,d=v.isValidElement(o)&&o.type==="svg",p={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:d},h={};u||(h.viewBox=f);const S=fm(p);return g.jsxs(mm,{as:a,className:de(S.root,s),focusable:"false",color:c,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...h,...b,...d&&o.props,ownerState:p,children:[d?o.props.children:o,m?g.jsx("title",{children:m}):null]})});oo.muiName="SvgIcon";function Ue(e,t){function n(r,o){return g.jsx(oo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=oo.muiName,v.memo(v.forwardRef(n))}function Fl(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 Ur(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ye(e){return e&&e.ownerDocument||document}function At(e){return Ye(e).defaultView||window}function ls(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Tt(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 ue(e){const t=v.useRef(e);return He(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...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 hm(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ll(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{hm(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=de(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=de(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 Nl=Ue(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),jl=2,gm=24,ym=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,gm)),an=16,Bl=40,Vl=12,zl=Vl+8;function bm(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function vm(e,t,n){if(!(t>0)||e<=1)return 1;const r=(t-(e-1)*an)/e;return Math.min(e,Math.max(1,Math.ceil((n+an)/(r+an))))}function _l({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=an}){const i=ne.useRef(null),[a,l]=ne.useState(0);ne.useEffect(()=>{const u=i.current;if(o===void 0||!u||typeof ResizeObserver>"u")return;const m=new ResizeObserver(([f])=>l(f?.contentRect.width??0));return m.observe(u),()=>m.disconnect()},[o]);const c=o===void 0?1:vm(t,a,o);return g.jsx(Q.Box,{ref:i,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${an}px`,rowGap:`${s}px`},children:e.map((u,m)=>g.jsx(Q.Box,{sx:{display:"grid",minWidth:0,gridColumn:{md:bm(u.colspan===void 0&&c>1?{...u,colspan:c}:u,t)}},children:r(u,m)},n(u,m)))})}const Wl=(e,t)=>({...t,...e}),Hl={emit:()=>{},listening:!1};function so(e,t){return t?{listening:!0,emit:n=>{try{t(Wl(n,e))}catch{}}}:Hl}function xm(e,t){const n=ne.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return ne.useMemo(()=>so({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const Ul=ne.createContext(Hl),Do=()=>ne.useContext(Ul);function Yl(e){const t=e,n=typeof t?.status=="number"?t.status:typeof t?.response?.status=="number"?t.response.status:void 0;return n===void 0?t?.code==="ERR_NETWORK"?"network":"unknown":n===404?"not_found":n===401||n===403?"forbidden":n===501?"unsupported":n>=500?"server":n>=400?"invalid":"unknown"}const Es=Ue(g.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 Gl({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,children:a}){const l=ne.useId();return g.jsxs(Q.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":l,children:[g.jsxs(Q.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:"fontWeightMedium",letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&g.jsx(Q.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:g.jsx(Es,{fontSize:"small"})})]}),g.jsxs(Q.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&g.jsx(Q.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),g.jsx(Q.Stack,{sx:{gap:2,pt:r?0:1},children:a})]}),i&&g.jsx(Q.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function Sm({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return g.jsx(Gl,{open:e,onClose:n,title:"Leave with unsaved changes?",description:t&&o?"Your edits have not been saved. Save them, or leave without them.":"Leaving now discards your unsaved edits.",actions:g.jsxs(g.Fragment,{children:[g.jsx(Q.Button,{onClick:n,children:"Keep editing"}),g.jsx(Q.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&g.jsx(Q.Button,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}const wm=Ue(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),Kl="120ms",ql={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},Cm=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",Xl={"@media (hover: none)":{opacity:1}},Pm=e=>e.palette.mode==="dark"?e.palette.error.main:e.palette.error.dark,Os=20,km={radius:"8px",padding:`${Os}px`};function Mm(e,t=km){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}}const Ql={query:120,text:72};function $s({borderless:e=!1,chrome:t="card",kind:n="query",sx:r,cardRef:o,children:s}){const{theme:i}=ze.usePublisherTheme(),a=e||t==="none";return g.jsx(Q.Paper,{ref:o,elevation:0,"data-chrome":t,sx:[{border:a?"none":i.cardBorder,borderRadius:a?0:1,background:a?"none":i.tile,overflow:"hidden",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:Ql[n],p:t==="none"?0:e?"12px 0":`${Os}px`},...Array.isArray(r)?r:[r]],children:s})}function Zl({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=ze.usePublisherTheme();return g.jsxs(Q.Box,{sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[g.jsxs(Q.Box,{sx:{minWidth:0,flex:1},children:[g.jsx(Q.Typography,{variant:o?"caption":"subtitle2",sx:{fontWeight:o?400:500,display:o?"block":void 0,opacity:o?.8:void 0,color:s.tileTitle,fontFamily:s.font.family},title:n,children:e}),t!==void 0&&g.jsx(Q.Typography,{variant:"caption",sx:{display:"block",color:s.tileTitle,fontFamily:s.font.family,opacity:.8},children:t})]}),r]})}const Tm=/^(https?|mailto|tel):/i,Dm=/^[a-z][a-z0-9+.-]*:/i;function Rm({href:e,title:t,children:n,context:r}){const o=!!e&&Dm.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const m=o&&!Tm.test(e??"");return g.jsx("a",{href:m?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 g.jsx("a",{href:c,title:t,onClick:u?m=>{m.preventDefault(),u(c,m)}:void 0,children:n})}const Im={document:{"& > :first-child, & > div:only-child > :first-child":{mt:0},"& > :last-child, & > div:only-child > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"fontWeightMedium",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:"fontWeightMedium",m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:ze.MONO_FONT_FAMILY,fontSize:"0.9em"}}};function Em({alt:e}){return g.jsx(g.Fragment,{children:e})}function Jl({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=ze.usePublisherTheme();return g.jsx(Q.Box,{sx:[Im[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:g.jsx(Ld,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:Rm,props:{context:n}},img:{component:Em}}},children:e})})}const Om=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function As(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(Om,"iu").test(t))return`A ${e} cannot contain what reads as an access-control tag (authorize, row_authorize, source_authorize or access_filter).`}function Fs(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const $m=e=>Fs(e,"MalloyTranslator"),Am=e=>Fs(e,"parseAnnotation"),Fm=e=>Fs(e,"ASTQuery");async function Lm(){return $m(await import("@malloydata/malloy"))}async function Nm(){return Am(await import("@malloydata/malloy-tag"))}async function jm(){return Fm(await import("@malloydata/malloy-query-builder"))}const Bm=Ue(g.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"})),Vm=600,ta=()=>typeof IntersectionObserver>"u";function zm(e){for(let t=e.parentElement;t;t=t.parentElement){const{overflowY:n}=getComputedStyle(t);if((n==="auto"||n==="scroll")&&t.scrollHeight>t.clientHeight)return t}return null}function _m(e=Vm){const[t,n]=ne.useState(ta),r=ne.useRef(t),o=ne.useRef(null),s=ne.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||ta())return;const a=i.getBoundingClientRect(),l=zm(i),c=l?.getBoundingClientRect()??{top:0,bottom:window.innerHeight||document.documentElement.clientHeight};if(a.bottom>=c.top-e&&a.top<=c.bottom+e){r.current=!0,n(!0);return}const u=new IntersectionObserver(m=>{m.some(f=>f.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return ne.useEffect(()=>()=>o.current?.disconnect(),[]),ne.useEffect(()=>{if(t||typeof window>"u")return;const i=()=>{r.current=!0,o.current?.disconnect(),n(!0)};return window.addEventListener("beforeprint",i),()=>window.removeEventListener("beforeprint",i)},[t]),[s,t]}function ec({summary:e,detail:t}){return g.jsxs(Q.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&g.jsx(Q.Box,{sx:{mb:.5},children:e}),g.jsx(Q.Box,{component:"pre",sx:{m:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:ze.MONO_FONT_FAMILY,fontSize:"0.8125rem",color:"text.secondary"},children:t})]})}function tc({error:e,context:t}){const n=e.data?.message||"Unknown error";return g.jsx(ec,{summary:t,detail:n})}function Wm({label:e,onClick:t,disabled:n}){return g.jsx(Q.Button,{variant:"contained",color:"primary",startIcon:g.jsx(Nl,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Hm({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=g.jsx("span",{children:g.jsx(Q.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?g.jsx(Q.Tooltip,{title:o,children:a}):a}var Yr={exports:{}},Um=Yr.exports,na;function Ym(){return na||(na=1,(function(e,t){(function(n,r){e.exports=r()})(Um,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",m="month",f="quarter",b="year",d="date",p="Invalid Date",h=/^(\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,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var P=["th","st","nd","rd"],M=D%100;return"["+D+(P[(M-20)%10]||P[M]||P[0])+"]"}},w=function(D,P,M){var A=String(D);return!A||A.length>=P?D:""+Array(P+1-A.length).join(M)+D},x={s:w,z:function(D){var P=-D.utcOffset(),M=Math.abs(P),A=Math.floor(M/60),$=M%60;return(P<=0?"+":"-")+w(A,2,"0")+":"+w($,2,"0")},m:function D(P,M){if(P.date()<M.date())return-D(M,P);var A=12*(M.year()-P.year())+(M.month()-P.month()),$=P.clone().add(A,m),F=M-$<0,V=P.clone().add(A+(F?-1:1),m);return+(-(A+(M-$)/(F?$-V:V-$))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:m,y:b,w:u,d:c,D:d,h:l,m:a,s:i,ms:s,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},T="en",k={};k[T]=C;var O="$isDayjsObject",I=function(D){return D instanceof y||!(!D||!D[O])},N=function D(P,M,A){var $;if(!P)return T;if(typeof P=="string"){var F=P.toLowerCase();k[F]&&($=F),M&&(k[F]=M,$=F);var V=P.split("-");if(!$&&V.length>1)return D(V[0])}else{var q=P.name;k[q]=P,$=q}return!A&&$&&(T=$),$||!A&&T},L=function(D,P){if(I(D))return D.clone();var M=typeof P=="object"?P:{};return M.date=D,M.args=arguments,new y(M)},R=x;R.l=N,R.i=I,R.w=function(D,P){return L(D,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var y=(function(){function D(M){this.$L=N(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[O]=!0}var P=D.prototype;return P.parse=function(M){this.$d=(function(A){var $=A.date,F=A.utc;if($===null)return new Date(NaN);if(R.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var V=$.match(h);if(V){var q=V[2]-1||0,re=(V[7]||"0").substring(0,3);return F?new Date(Date.UTC(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date($)})(M),this.init()},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==p},P.isSame=function(M,A){var $=L(M);return this.startOf(A)<=$&&$<=this.endOf(A)},P.isAfter=function(M,A){return L(M)<this.startOf(A)},P.isBefore=function(M,A){return this.endOf(A)<L(M)},P.$g=function(M,A,$){return R.u(M)?this[A]:this.set($,M)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(M,A){var $=this,F=!!R.u(A)||A,V=R.p(M),q=function(W,G){var ee=R.w($.$u?Date.UTC($.$y,G,W):new Date($.$y,G,W),$);return F?ee:ee.endOf(c)},re=function(W,G){return R.w($.toDate()[W].apply($.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(G)),$)},ae=this.$W,ie=this.$M,z=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case b:return F?q(1,0):q(31,11);case m:return F?q(1,ie):q(0,ie+1);case u:var X=this.$locale().weekStart||0,Y=(ae<X?ae+7:ae)-X;return q(F?z-Y:z+(6-Y),ie);case c:case d:return re(Z+"Hours",0);case l:return re(Z+"Minutes",1);case a:return re(Z+"Seconds",2);case i:return re(Z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(M){return this.startOf(M,!1)},P.$set=function(M,A){var $,F=R.p(M),V="set"+(this.$u?"UTC":""),q=($={},$[c]=V+"Date",$[d]=V+"Date",$[m]=V+"Month",$[b]=V+"FullYear",$[l]=V+"Hours",$[a]=V+"Minutes",$[i]=V+"Seconds",$[s]=V+"Milliseconds",$)[F],re=F===c?this.$D+(A-this.$W):A;if(F===m||F===b){var ae=this.clone().set(d,1);ae.$d[q](re),ae.init(),this.$d=ae.set(d,Math.min(this.$D,ae.daysInMonth())).$d}else q&&this.$d[q](re);return this.init(),this},P.set=function(M,A){return this.clone().$set(M,A)},P.get=function(M){return this[R.p(M)]()},P.add=function(M,A){var $,F=this;M=Number(M);var V=R.p(A),q=function(ie){var z=L(F);return R.w(z.date(z.date()+Math.round(ie*M)),F)};if(V===m)return this.set(m,this.$M+M);if(V===b)return this.set(b,this.$y+M);if(V===c)return q(1);if(V===u)return q(7);var re=($={},$[a]=r,$[l]=o,$[i]=n,$)[V]||1,ae=this.$d.getTime()+M*re;return R.w(ae,this)},P.subtract=function(M,A){return this.add(-1*M,A)},P.format=function(M){var A=this,$=this.$locale();if(!this.isValid())return $.invalidDate||p;var F=M||"YYYY-MM-DDTHH:mm:ssZ",V=R.z(this),q=this.$H,re=this.$m,ae=this.$M,ie=$.weekdays,z=$.months,Z=$.meridiem,X=function(G,ee,J,B){return G&&(G[ee]||G(A,F))||J[ee].slice(0,B)},Y=function(G){return R.s(q%12||12,G,"0")},W=Z||function(G,ee,J){var B=G<12?"AM":"PM";return J?B.toLowerCase():B};return F.replace(S,(function(G,ee){return ee||(function(J){switch(J){case"YY":return String(A.$y).slice(-2);case"YYYY":return R.s(A.$y,4,"0");case"M":return ae+1;case"MM":return R.s(ae+1,2,"0");case"MMM":return X($.monthsShort,ae,z,3);case"MMMM":return X(z,ae);case"D":return A.$D;case"DD":return R.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return X($.weekdaysMin,A.$W,ie,2);case"ddd":return X($.weekdaysShort,A.$W,ie,3);case"dddd":return ie[A.$W];case"H":return String(q);case"HH":return R.s(q,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return W(q,re,!0);case"A":return W(q,re,!1);case"m":return String(re);case"mm":return R.s(re,2,"0");case"s":return String(A.$s);case"ss":return R.s(A.$s,2,"0");case"SSS":return R.s(A.$ms,3,"0");case"Z":return V}return null})(G)||V.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(M,A,$){var F,V=this,q=R.p(A),re=L(M),ae=(re.utcOffset()-this.utcOffset())*r,ie=this-re,z=function(){return R.m(V,re)};switch(q){case b:F=z()/12;break;case m:F=z();break;case f:F=z()/3;break;case u:F=(ie-ae)/6048e5;break;case c:F=(ie-ae)/864e5;break;case l:F=ie/o;break;case a:F=ie/r;break;case i:F=ie/n;break;default:F=ie}return $?F:R.a(F)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return k[this.$L]},P.locale=function(M,A){if(!M)return this.$L;var $=this.clone(),F=N(M,A,!0);return F&&($.$L=F),$},P.clone=function(){return R.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},D})(),E=y.prototype;return L.prototype=E,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",m],["$y",b],["$D",d]].forEach((function(D){E[D[1]]=function(P){return this.$g(P,D[0],D[1])}})),L.extend=function(D,P){return D.$i||(D(P,y,L),D.$i=!0),L},L.locale=N,L.isDayjs=I,L.unix=function(D){return L(1e3*D)},L.en=k[T],L.Ls=k,L.p={},L}))})(Yr)),Yr.exports}var Gm=Ym();const De=Lt(Gm);var Gr={exports:{}},Km=Gr.exports,ra;function qm(){return ra||(ra=1,(function(e,t){(function(n,r){e.exports=r()})(Km,(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(p){var h={date:p,utc:!0,args:arguments};return new i(h)},l.utc=function(p){var h=a(this.toDate(),{locale:this.$L,utc:!0});return p?h.add(this.utcOffset(),n):h},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),c.call(this,p)};var u=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else u.call(this)};var m=l.utcOffset;l.utcOffset=function(p,h){var S=this.$utils().u;if(S(p))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof p=="string"&&(p=(function(T){T===void 0&&(T="");var k=T.match(r);if(!k)return null;var O=(""+k[0]).match(o)||["-",0,0],I=O[0],N=60*+O[1]+ +O[2];return N===0?0:I==="+"?N:-N})(p),p===null))return this;var C=Math.abs(p)<=16?60*p:p;if(C===0)return this.utc(h);var w=this.clone();if(h)return w.$offset=C,w.$u=!1,w;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(C+x,n)).$offset=C,w.$x.$localOffset=x,w};var f=l.format;l.format=function(p){var h=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,h)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},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(p){return p==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var d=l.diff;l.diff=function(p,h,S){if(p&&this.$u===p.$u)return d.call(this,p,h,S);var C=this.local(),w=a(p).local();return d.call(C,w,h,S)}}}))})(Gr)),Gr.exports}var Xm=qm();const Ls=Lt(Xm);De.extend(Ls);function nn(e){return(e??"").startsWith("filter<")}function Qm(e){const{parsed:t}=tt.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function kn(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function Ns(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function Zm(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return nc(t)?t.values:[e]}function Jm(e){return e===void 0||e.trim()===""?!0:nc(tt.StringFilterExpression.parse(e).parsed)}function nc(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function eh(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function th(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.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 nh(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function rh(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.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 io=[{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 oh(e){const t=io.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function sh(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of io){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 ih=/^\d{4}-\d{2}-\d{2}$/;function ah(e,t){const n=De.utc(t,"YYYY-MM-DD").add(1,"day");return tt.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function lh(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.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=De.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!s.isValid()||s.isBefore(De.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:s.format("YYYY-MM-DD")}}function oa(e){return e.moment==="literal"&&ih.test(e.literal)?e.literal:void 0}const Kr="self";function js(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(sa)).filter(sa):[]}function Bs(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function rc(e){return e.tag?.tag("drill")?.text("given")??e.name}function Mr(e){if(typeof e=="string"){const t=Ns([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 oc(e){return e instanceof Date?Mr(e)??"":String(e)}function sc(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=js(t);if(n.length===0)return;const r=Mr(e.value);if(r!==void 0)return{to:n,given:rc(t),value:r,rawValue:e.value,label:oc(e.value)}}function sa(e){return typeof e=="string"&&e!==""}function ic(e,t){if(t!==void 0&&!nn(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 kn(t)==="string"&&typeof e=="number"?Number.isFinite(e)?Ns([String(e)]):void 0:kn(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:Mr(e)}function ac({declaredTypes:e,setGiven:t,documentName:n}){const r=Do(),o=ne.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=ne.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=ne.useCallback(l=>s(l)!==void 0,[s]),a=ne.useCallback((l,c)=>{const u=s(l);if(u===void 0){r.emit({type:"report.drill",to:"self",outcome:"unresolved"}),r.listening||console.warn(`# drill { to=self } tried to set '${l}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const m=e.get(u),f=ic(c,m);if(f===void 0){r.emit({type:"report.drill",to:"self",outcome:"malformed"}),r.listening||console.warn(`Drill declined: ${JSON.stringify(c)} cannot be a value for given "${u}"`+(m?` of type ${m}`:""));return}t(u,f),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function ch(e,t){if(e!=null){if(e instanceof Date)return Vs(e,t);if(!Array.isArray(e))return String(e)}}function uh(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 dh=/^(\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 lc(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 ph(e,t=!1){const n=lc(e);if(n==="")return;const r=dh.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,m]=r,f={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(f.year,f.month-1,f.day,f.hour,f.minute,f.second,f.milli),d=new Date(b);if(!(d.getUTCFullYear()===f.year&&d.getUTCMonth()===f.month-1&&d.getUTCDate()===f.day&&d.getUTCHours()===f.hour&&d.getUTCMinutes()===f.minute&&d.getUTCSeconds()===f.second)||m!==void 0&&a===void 0)return;const h=fh(m);if(h===void 0)return;const S=new Date(b-h*6e4);if(!(t&&m!==void 0&&S.getUTCDate()!==f.day))return S}function fh(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 mh(e){return!hh.has(e??"")}const hh=new Set(["boolean","number","date","timestamp","timestamptz"]);function cc(e,t){if(t===""&&!mh(e))return null;if(nn(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=lc(t);return ph(n,e==="date")??n}default:return t}}function uc(e,t){const n={};for(const[r,o]of e){const s=ch(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function Vs(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 Ro(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?Vs(i,t.get(s)):i));return o}function zs(e,t,n){if(!t)return e;const r=n?new Set(n):void 0,o={...e};for(const[s,i]of Object.entries(t))r&&!r.has(s)||s in o||i===null||i===void 0||(o[s]=Array.isArray(i)?[...i]:i instanceof Date?Vs(i,void 0):i);return o}function ia(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,cc(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 la(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function gh(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function ca(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function dc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=ne.useMemo(()=>ia(t??{},e),[e,JSON.stringify(t)]),a=ne.useRef(null),l=ne.useRef(null),c=ne.useRef({documentKey:o,params:n}),u=R=>R!==null&&gh(n??{},R,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!ca(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const m=c.current.params,f=JSON.stringify(t),b=JSON.stringify(m),d=ne.useMemo(()=>ia({...t??{},...m??{}},e),[e,f,b]),p=ne.useMemo(()=>JSON.stringify([o??null,la(t),la(m)]),[o,f,b]),[h,S]=ne.useState(null),C=h?.key===p?h:null;ne.useEffect(()=>{h!==null&&h.key!==p&&S(null)},[h,p]);const w=ne.useMemo(()=>aa(C?.draft??d,e),[C,d,e]),x=ne.useMemo(()=>aa(C?.applied??d,e),[C,d,e]),T=ne.useCallback(R=>R?.key===p?R:{key:p,draft:d,applied:d},[p,d]),k=ne.useMemo(()=>uc(x,e),[x,e]);a.current===null&&(a.current=k),ne.useEffect(()=>{r&&(ca(a.current??{},k)||(l.current=a.current,a.current=k,r(k)))},[k,r]);const O=ne.useCallback((R,y)=>{S(E=>{const D=T(E),P=new Map(D.draft);return y===null?P.delete(R):P.set(R,y),{key:D.key,draft:P,applied:s?P:D.applied}})},[s,T]),I=ne.useCallback(()=>{S(R=>({key:T(R).key,draft:i,applied:i}))},[T,i]),N=ne.useCallback(()=>{S(R=>{const y=T(R);return{key:y.key,draft:y.draft,applied:y.draft}})},[T]),L=ne.useMemo(()=>{if(s)return!1;if(w.size!==x.size)return!0;for(const[R,y]of w){const E=x.get(R);if(y instanceof Date&&E instanceof Date){if(y.getTime()!==E.getTime())return!0}else if(Array.isArray(y)&&Array.isArray(E)){if(String(y)!==String(E))return!0}else if(y!==E)return!0}return!1},[s,w,x]);return{draft:w,applied:x,setGiven:O,reset:I,apply:N,pending:L}}const pc="You don't have access to this data";function yh(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
16
+ export default theme;`}function ta(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Uf=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 Yf(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})`:no(t,Uf(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ta(n)})`:Mo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ta(n)})`:ko(t,n)}})}function is(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(Ot(20));const m=Rs({...s,colorSpace:c}),f=Is(e);let b=Ge(f,{mixins:Of(f.breakpoints,r),palette:m,shadows:jf.slice(),typography:Af(m,a),transitions:_f(i),zIndex:{...Wf}});return b=Ge(b,u),b=t.reduce((d,p)=>Ge(d,p),b),b.unstable_sxConfig={...kr,...u?.unstable_sxConfig},b.unstable_sx=function(p){return $n({sx:p,theme:this})},b.toRuntimeSource=Ol,Yf(b),b}function as(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 Gf=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=as(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function $l(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Al(e){return e==="dark"?Gf:[]}function Kf(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Rs({...t,colorSpace:o});return{palette:i,opacity:{...$l(i.mode),...n},overlays:r||Al(i.mode),...s}}function qf(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 Xf=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Qf=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 Xf(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 Zf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function H(e,t,n){!e[t]&&n&&(e[t]=n)}function rr(e){return typeof e!="string"||!e.startsWith("hsl")?e:kl(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=nr(rr(e[t])))}function Jf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ct=e=>{try{return e()}catch{}},em=(e="mui")=>We.unstable_createGetCssVar(e);function qo(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Kf({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=is({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...$l(s),...n?.opacity},overlays:n?.overlays||Al(s)},a}function tm(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=qf,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,m=Object.keys(n)[0],f=r||(n.light&&m!=="light"?"light":m),b=em(s),{[f]:d,light:p,dark:h,...S}=n,C={...S};let w=d;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(Ot(21,f));let x;i&&(x="oklch");const T=qo(x,C,w,u,f);p&&!C.light&&qo(x,C,p,void 0,"light"),h&&!C.dark&&qo(x,C,h,void 0,"dark");let k={defaultColorScheme:f,...T,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:C,font:{...Rf(T.typography),...T.font},spacing:Jf(u.spacing)};Object.keys(k.colorSchemes).forEach(R=>{const y=k.colorSchemes[R].palette,E=P=>{const M=P.split("-"),A=M[1],$=M[2];return b(P,y[A][$])};y.mode==="light"&&(H(y.common,"background","#fff"),H(y.common,"onBackground","#000")),y.mode==="dark"&&(H(y.common,"background","#000"),H(y.common,"onBackground","#fff"));function D(P,M,A){if(x){let $;return P===qt&&($=`transparent ${((1-A)*100).toFixed(0)}%`),P===Me&&($=`#000 ${(A*100).toFixed(0)}%`),P===Te&&($=`#fff ${(A*100).toFixed(0)}%`),`color-mix(in ${x}, ${M}, ${$})`}return P(M,A)}if(Zf(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){H(y.Alert,"errorColor",D(Me,y.error.light,.6)),H(y.Alert,"infoColor",D(Me,y.info.light,.6)),H(y.Alert,"successColor",D(Me,y.success.light,.6)),H(y.Alert,"warningColor",D(Me,y.warning.light,.6)),H(y.Alert,"errorFilledBg",E("palette-error-main")),H(y.Alert,"infoFilledBg",E("palette-info-main")),H(y.Alert,"successFilledBg",E("palette-success-main")),H(y.Alert,"warningFilledBg",E("palette-warning-main")),H(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.main))),H(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.main))),H(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.main))),H(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.main))),H(y.Alert,"errorStandardBg",D(Te,y.error.light,.9)),H(y.Alert,"infoStandardBg",D(Te,y.info.light,.9)),H(y.Alert,"successStandardBg",D(Te,y.success.light,.9)),H(y.Alert,"warningStandardBg",D(Te,y.warning.light,.9)),H(y.Alert,"errorIconColor",E("palette-error-main")),H(y.Alert,"infoIconColor",E("palette-info-main")),H(y.Alert,"successIconColor",E("palette-success-main")),H(y.Alert,"warningIconColor",E("palette-warning-main")),H(y.AppBar,"defaultBg",E("palette-grey-100")),H(y.Avatar,"defaultBg",E("palette-grey-400")),H(y.Button,"inheritContainedBg",E("palette-grey-300")),H(y.Button,"inheritContainedHoverBg",E("palette-grey-A100")),H(y.Chip,"defaultBorder",E("palette-grey-400")),H(y.Chip,"defaultAvatarColor",E("palette-grey-700")),H(y.Chip,"defaultIconColor",E("palette-grey-700")),H(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(y.LinearProgress,"primaryBg",D(Te,y.primary.main,.62)),H(y.LinearProgress,"secondaryBg",D(Te,y.secondary.main,.62)),H(y.LinearProgress,"errorBg",D(Te,y.error.main,.62)),H(y.LinearProgress,"infoBg",D(Te,y.info.main,.62)),H(y.LinearProgress,"successBg",D(Te,y.success.main,.62)),H(y.LinearProgress,"warningBg",D(Te,y.warning.main,.62)),H(y.Skeleton,"bg",x?D(qt,y.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),H(y.Slider,"primaryTrack",D(Te,y.primary.main,.62)),H(y.Slider,"secondaryTrack",D(Te,y.secondary.main,.62)),H(y.Slider,"errorTrack",D(Te,y.error.main,.62)),H(y.Slider,"infoTrack",D(Te,y.info.main,.62)),H(y.Slider,"successTrack",D(Te,y.success.main,.62)),H(y.Slider,"warningTrack",D(Te,y.warning.main,.62));const P=x?D(Me,y.background.default,.6825):Fr(y.background.default,.8);H(y.SnackbarContent,"bg",P),H(y.SnackbarContent,"color",Ct(()=>x?ss.text.primary:y.getContrastText(P))),H(y.SpeedDialAction,"fabHoverBg",Fr(y.background.paper,.15)),H(y.StepConnector,"border",E("palette-grey-400")),H(y.StepContent,"border",E("palette-grey-400")),H(y.Switch,"defaultColor",E("palette-common-white")),H(y.Switch,"defaultDisabledColor",E("palette-grey-100")),H(y.Switch,"primaryDisabledColor",D(Te,y.primary.main,.62)),H(y.Switch,"secondaryDisabledColor",D(Te,y.secondary.main,.62)),H(y.Switch,"errorDisabledColor",D(Te,y.error.main,.62)),H(y.Switch,"infoDisabledColor",D(Te,y.info.main,.62)),H(y.Switch,"successDisabledColor",D(Te,y.success.main,.62)),H(y.Switch,"warningDisabledColor",D(Te,y.warning.main,.62)),H(y.TableCell,"border",D(Te,D(qt,y.divider,1),.88)),H(y.Tooltip,"bg",D(qt,y.grey[700],.92))}if(y.mode==="dark"){H(y.Alert,"errorColor",D(Te,y.error.light,.6)),H(y.Alert,"infoColor",D(Te,y.info.light,.6)),H(y.Alert,"successColor",D(Te,y.success.light,.6)),H(y.Alert,"warningColor",D(Te,y.warning.light,.6)),H(y.Alert,"errorFilledBg",E("palette-error-dark")),H(y.Alert,"infoFilledBg",E("palette-info-dark")),H(y.Alert,"successFilledBg",E("palette-success-dark")),H(y.Alert,"warningFilledBg",E("palette-warning-dark")),H(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.dark))),H(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.dark))),H(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.dark))),H(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.dark))),H(y.Alert,"errorStandardBg",D(Me,y.error.light,.9)),H(y.Alert,"infoStandardBg",D(Me,y.info.light,.9)),H(y.Alert,"successStandardBg",D(Me,y.success.light,.9)),H(y.Alert,"warningStandardBg",D(Me,y.warning.light,.9)),H(y.Alert,"errorIconColor",E("palette-error-main")),H(y.Alert,"infoIconColor",E("palette-info-main")),H(y.Alert,"successIconColor",E("palette-success-main")),H(y.Alert,"warningIconColor",E("palette-warning-main")),H(y.AppBar,"defaultBg",E("palette-grey-900")),H(y.AppBar,"darkBg",E("palette-background-paper")),H(y.AppBar,"darkColor",E("palette-text-primary")),H(y.Avatar,"defaultBg",E("palette-grey-600")),H(y.Button,"inheritContainedBg",E("palette-grey-800")),H(y.Button,"inheritContainedHoverBg",E("palette-grey-700")),H(y.Chip,"defaultBorder",E("palette-grey-700")),H(y.Chip,"defaultAvatarColor",E("palette-grey-300")),H(y.Chip,"defaultIconColor",E("palette-grey-300")),H(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(y.LinearProgress,"primaryBg",D(Me,y.primary.main,.5)),H(y.LinearProgress,"secondaryBg",D(Me,y.secondary.main,.5)),H(y.LinearProgress,"errorBg",D(Me,y.error.main,.5)),H(y.LinearProgress,"infoBg",D(Me,y.info.main,.5)),H(y.LinearProgress,"successBg",D(Me,y.success.main,.5)),H(y.LinearProgress,"warningBg",D(Me,y.warning.main,.5)),H(y.Skeleton,"bg",x?D(qt,y.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),H(y.Slider,"primaryTrack",D(Me,y.primary.main,.5)),H(y.Slider,"secondaryTrack",D(Me,y.secondary.main,.5)),H(y.Slider,"errorTrack",D(Me,y.error.main,.5)),H(y.Slider,"infoTrack",D(Me,y.info.main,.5)),H(y.Slider,"successTrack",D(Me,y.success.main,.5)),H(y.Slider,"warningTrack",D(Me,y.warning.main,.5));const P=x?D(Te,y.background.default,.985):Fr(y.background.default,.98);H(y.SnackbarContent,"bg",P),H(y.SnackbarContent,"color",Ct(()=>x?Dl.text.primary:y.getContrastText(P))),H(y.SpeedDialAction,"fabHoverBg",Fr(y.background.paper,.15)),H(y.StepConnector,"border",E("palette-grey-600")),H(y.StepContent,"border",E("palette-grey-600")),H(y.Switch,"defaultColor",E("palette-grey-300")),H(y.Switch,"defaultDisabledColor",E("palette-grey-600")),H(y.Switch,"primaryDisabledColor",D(Me,y.primary.main,.55)),H(y.Switch,"secondaryDisabledColor",D(Me,y.secondary.main,.55)),H(y.Switch,"errorDisabledColor",D(Me,y.error.main,.55)),H(y.Switch,"infoDisabledColor",D(Me,y.info.main,.55)),H(y.Switch,"successDisabledColor",D(Me,y.success.main,.55)),H(y.Switch,"warningDisabledColor",D(Me,y.warning.main,.55)),H(y.TableCell,"border",D(Me,D(qt,y.divider,1),.68)),H(y.Tooltip,"bg",D(qt,y.grey[700],.92))}It(y.background,"default"),It(y.background,"paper"),It(y.common,"background"),It(y.common,"onBackground"),It(y,"divider"),Object.keys(y).forEach(P=>{const M=y[P];P!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&H(y[P],"mainChannel",nr(rr(M.main))),M.light&&H(y[P],"lightChannel",nr(rr(M.light))),M.dark&&H(y[P],"darkChannel",nr(rr(M.dark))),M.contrastText&&H(y[P],"contrastTextChannel",nr(rr(M.contrastText))),P==="text"&&(It(y[P],"primary"),It(y[P],"secondary")),P==="action"&&(M.active&&It(y[P],"active"),M.selected&&It(y[P],"selected")))})}),k=t.reduce((R,y)=>Ge(R,y),k);const O={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Qf(k),enableContrastVars:i},{vars:I,generateThemeVars:N,generateStyleSheets:L}=Df(k,O);return k.vars=I,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([R,y])=>{k[R]=y}),k.generateThemeVars=N,k.generateStyleSheets=L,k.generateSpacing=function(){return We.createSpacing(u.spacing,Ms(this))},k.getColorSchemeSelector=If(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={...kr,...u?.unstable_sxConfig},k.unstable_sx=function(y){return $n({sx:y,theme:this})},k.toRuntimeSource=Ol,k}function na(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Rs({...n===!0?{}:n.palette,mode:t})})}function Fl(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 is(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const m=is({...e,palette:u},...t);return m.defaultColorScheme=a,m.colorSchemes=c,m.palette.mode==="light"&&(m.colorSchemes.light={...c.light!==!0&&c.light,palette:m.palette},na(m,"dark",c.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:m.palette},na(m,"light",c.light)),m}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),tm({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const To=Fl(),Vn="$$material";function fn(){const e=We.useTheme(To);return e[Vn]||e}function nm(e){return g.jsx(We.GlobalStyles,{...e,defaultTheme:To,themeId:Vn})}function rm(e){const{variants:t,...n}=e,r={variants:t,style:sn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=sn(o.style))}),r}const om=Is();function Xo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function sm(e){return e?(t,n)=>n[e]:null}function im(e,t,n){e.theme=cm(e.theme)?n:e.theme[t]||e.theme}function Hr(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Hr(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?rn(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?rn(sn(i),n):i}return Ll(e,r.variants,[o],n)}return r?.isProcessed?n?rn(sn(r.style),n):r.style:n?rn(sn(r),n):r}function Ll(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?rn(sn(i.style(o)),r):i.style(o))):n.push(r?rn(sn(i.style),r):i.style)}return n}function am(e={}){const{themeId:t,defaultTheme:n=om,rootShouldForwardProp:r=Xo,slotShouldForwardProp:o=Xo}=e;function s(a){im(a,t,n)}return(a,l={})=>{df(a,k=>k.filter(O=>O!==$n));const{name:c,slot:u,skipVariantsResolver:m,skipSx:f,overridesResolver:b=sm(dm(u)),...d}=l,p=c&&c.startsWith("Mui")||u?"components":"custom",h=m!==void 0?m:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let C=Xo;u==="Root"||u==="root"?C=r:u?C=o:um(a)&&(C=void 0);const w=uf(a,{shouldForwardProp:C,label:lm(),...d}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(I){return Hr(I,k,I.theme.modularCssLayers?p:void 0)};if(kt(k)){const O=rm(k);return function(N){return O.variants?Hr(N,O,N.theme.modularCssLayers?p:void 0):N.theme.modularCssLayers?rn(O.style,p):O.style}}return k},T=(...k)=>{const O=[],I=k.map(x),N=[];if(O.push(s),c&&b&&N.push(function(E){const P=E.theme.components?.[c]?.styleOverrides;if(!P)return null;const M={};for(const A in P)M[A]=Hr(E,P[A],E.theme.modularCssLayers?"theme":void 0);return b(E,M)}),c&&!h&&N.push(function(E){const P=E.theme?.components?.[c]?.variants;return P?Ll(E,P,[],E.theme.modularCssLayers?"theme":void 0):null}),S||N.push($n),Array.isArray(I[0])){const y=I.shift(),E=new Array(O.length).fill(""),D=new Array(N.length).fill("");let P;P=[...E,...y,...D],P.raw=[...E,...y.raw,...D],O.unshift(P)}const L=[...O,...I,...N],R=w(...L);return a.muiName&&(R.muiName=a.muiName),R};return w.withConfig&&(T.withConfig=w.withConfig),T}}function lm(e,t){return void 0}function cm(e){for(const t in e)return!1;return!0}function um(e){return typeof e=="string"&&e.charCodeAt(0)>96}function dm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Nl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>Nl(e)&&e!=="classes",U=am({themeId:Vn,defaultTheme:To,rootShouldForwardProp:pt});function pm(e){return function(n){return g.jsx(nm,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function fm(){return Wp}const Ie=We.unstable_memoTheme;function we(e){return gf(e)}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function mm(e){return ge("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return he(o,mm,r)},gm=U("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Ie(({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}}]}))),oo=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:m,viewBox:f="0 0 24 24",...b}=r,d=v.isValidElement(o)&&o.type==="svg",p={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:d},h={};u||(h.viewBox=f);const S=hm(p);return g.jsxs(gm,{as:a,className:de(S.root,s),focusable:"false",color:c,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...h,...b,...d&&o.props,ownerState:p,children:[d?o.props.children:o,m?g.jsx("title",{children:m}):null]})});oo.muiName="SvgIcon";function Ue(e,t){function n(r,o){return g.jsx(oo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=oo.muiName,v.memo(v.forwardRef(n))}function jl(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 Ur(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ye(e){return e&&e.ownerDocument||document}function At(e){return Ye(e).defaultView||window}function ls(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Tt(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 ue(e){const t=v.useRef(e);return He(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...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 ym(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Bl(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{ym(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=de(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=de(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 Vl=Ue(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),zl=2,bm=24,vm=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,bm)),an=16,_l=40,Wl=12,Hl=Wl+8;function xm(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function Sm(e,t,n){if(!(t>0)||e<=1)return 1;const r=(t-(e-1)*an)/e;return Math.min(e,Math.max(1,Math.ceil((n+an)/(r+an))))}function Ul({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=an}){const i=ee.useRef(null),[a,l]=ee.useState(0);ee.useEffect(()=>{const u=i.current;if(o===void 0||!u||typeof ResizeObserver>"u")return;const m=new ResizeObserver(([f])=>l(f?.contentRect.width??0));return m.observe(u),()=>m.disconnect()},[o]);const c=o===void 0?1:Sm(t,a,o);return g.jsx(Q.Box,{ref:i,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${an}px`,rowGap:`${s}px`},children:e.map((u,m)=>g.jsx(Q.Box,{sx:{display:"grid",minWidth:0,gridColumn:{md:xm(u.colspan===void 0&&c>1?{...u,colspan:c}:u,t)}},children:r(u,m)},n(u,m)))})}const Yl=(e,t)=>({...t,...e}),Gl={emit:()=>{},listening:!1};function so(e,t){return t?{listening:!0,emit:n=>{try{t(Yl(n,e))}catch{}}}:Gl}function wm(e,t){const n=ee.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return ee.useMemo(()=>so({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const Kl=ee.createContext(Gl),Do=()=>ee.useContext(Kl);function ql(e){const t=e,n=typeof t?.status=="number"?t.status:typeof t?.response?.status=="number"?t.response.status:void 0;return n===void 0?t?.code==="ERR_NETWORK"?"network":"unknown":n===404?"not_found":n===401||n===403?"forbidden":n===501?"unsupported":n>=500?"server":n>=400?"invalid":"unknown"}const Es=Ue(g.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 Xl({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,children:a}){const l=ee.useId();return g.jsxs(Q.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":l,children:[g.jsxs(Q.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:"fontWeightMedium",letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&g.jsx(Q.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:g.jsx(Es,{fontSize:"small"})})]}),g.jsxs(Q.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&g.jsx(Q.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),g.jsx(Q.Stack,{sx:{gap:2,pt:r?0:1},children:a})]}),i&&g.jsx(Q.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function Cm({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return g.jsx(Xl,{open:e,onClose:n,title:"Leave with unsaved changes?",description:t&&o?"Your edits have not been saved. Save them, or leave without them.":"Leaving now discards your unsaved edits.",actions:g.jsxs(g.Fragment,{children:[g.jsx(Q.Button,{onClick:n,children:"Keep editing"}),g.jsx(Q.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&g.jsx(Q.Button,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}const Pm=Ue(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),Os="120ms",$s={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},km=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",Ql={"@media (hover: none)":{opacity:1}},Mm=e=>e.palette.mode==="dark"?e.palette.error.main:e.palette.error.dark,As=20,Tm={radius:"8px",padding:`${As}px`};function Dm(e,t=Tm){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}}const Zl={query:120,text:72};function Fs({borderless:e=!1,chrome:t="card",kind:n="query",sx:r,cardRef:o,children:s}){const{theme:i}=Ve.usePublisherTheme(),a=e||t==="none";return g.jsx(Q.Paper,{ref:o,elevation:0,"data-chrome":t,sx:[{border:a?"none":i.cardBorder,borderRadius:a?0:1,background:a?"none":i.tile,overflow:"hidden",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:Zl[n],p:t==="none"?0:e?"12px 0":`${As}px`},...Array.isArray(r)?r:[r]],children:s})}function Jl({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=Ve.usePublisherTheme();return g.jsxs(Q.Box,{sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[g.jsxs(Q.Box,{sx:{minWidth:0,flex:1},children:[g.jsx(Q.Typography,{variant:o?"caption":"subtitle2",sx:{fontWeight:o?400:500,display:o?"block":void 0,opacity:o?.8:void 0,color:s.tileTitle,fontFamily:s.font.family},title:n,children:e}),t!==void 0&&g.jsx(Q.Typography,{variant:"caption",sx:{display:"block",color:s.tileTitle,fontFamily:s.font.family,opacity:.8},children:t})]}),r]})}const Rm=/^(https?|mailto|tel):/i,Im=/^[a-z][a-z0-9+.-]*:/i;function Em({href:e,title:t,children:n,context:r}){const o=!!e&&Im.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const m=o&&!Rm.test(e??"");return g.jsx("a",{href:m?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 g.jsx("a",{href:c,title:t,onClick:u?m=>{m.preventDefault(),u(c,m)}:void 0,children:n})}const Om={document:{"& > :first-child, & > div:only-child > :first-child":{mt:0},"& > :last-child, & > div:only-child > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"fontWeightMedium",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:"fontWeightMedium",m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:Ve.MONO_FONT_FAMILY,fontSize:"0.9em"}}};function $m({alt:e}){return g.jsx(g.Fragment,{children:e})}function ec({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Ve.usePublisherTheme();return g.jsx(Q.Box,{sx:[Om[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:g.jsx(jd,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:Em,props:{context:n}},img:{component:$m}}},children:e})})}const Am=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function Ls(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(Am,"iu").test(t))return`A ${e} cannot contain what reads as an access-control tag (authorize, row_authorize, source_authorize or access_filter).`}function Ns(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const Fm=e=>Ns(e,"MalloyTranslator"),Lm=e=>Ns(e,"parseAnnotation"),Nm=e=>Ns(e,"ASTQuery");async function jm(){return Fm(await import("@malloydata/malloy"))}async function Bm(){return Lm(await import("@malloydata/malloy-tag"))}async function Vm(){return Nm(await import("@malloydata/malloy-query-builder"))}const zm=Ue(g.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"})),_m=600,ra=()=>typeof IntersectionObserver>"u";function Wm(e){for(let t=e.parentElement;t;t=t.parentElement){const{overflowY:n}=getComputedStyle(t);if((n==="auto"||n==="scroll")&&t.scrollHeight>t.clientHeight)return t}return null}function Hm(e=_m){const[t,n]=ee.useState(ra),r=ee.useRef(t),o=ee.useRef(null),s=ee.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||ra())return;const a=i.getBoundingClientRect(),l=Wm(i),c=l?.getBoundingClientRect()??{top:0,bottom:window.innerHeight||document.documentElement.clientHeight};if(a.bottom>=c.top-e&&a.top<=c.bottom+e){r.current=!0,n(!0);return}const u=new IntersectionObserver(m=>{m.some(f=>f.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return ee.useEffect(()=>()=>o.current?.disconnect(),[]),ee.useEffect(()=>{if(t||typeof window>"u")return;const i=()=>{r.current=!0,o.current?.disconnect(),n(!0)};return window.addEventListener("beforeprint",i),()=>window.removeEventListener("beforeprint",i)},[t]),[s,t]}function tc({summary:e,detail:t}){return g.jsxs(Q.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&g.jsx(Q.Box,{sx:{mb:.5},children:e}),g.jsx(Q.Box,{component:"pre",sx:{m:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:Ve.MONO_FONT_FAMILY,fontSize:"0.8125rem",color:"text.secondary"},children:t})]})}function nc({error:e,context:t}){const n=e.data?.message||"Unknown error";return g.jsx(tc,{summary:t,detail:n})}function Um({label:e,onClick:t,disabled:n}){return g.jsx(Q.Button,{variant:"contained",color:"primary",startIcon:g.jsx(Vl,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Ym({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=g.jsx("span",{children:g.jsx(Q.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?g.jsx(Q.Tooltip,{title:o,children:a}):a}var Yr={exports:{}},Gm=Yr.exports,oa;function Km(){return oa||(oa=1,(function(e,t){(function(n,r){e.exports=r()})(Gm,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",m="month",f="quarter",b="year",d="date",p="Invalid Date",h=/^(\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,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var P=["th","st","nd","rd"],M=D%100;return"["+D+(P[(M-20)%10]||P[M]||P[0])+"]"}},w=function(D,P,M){var A=String(D);return!A||A.length>=P?D:""+Array(P+1-A.length).join(M)+D},x={s:w,z:function(D){var P=-D.utcOffset(),M=Math.abs(P),A=Math.floor(M/60),$=M%60;return(P<=0?"+":"-")+w(A,2,"0")+":"+w($,2,"0")},m:function D(P,M){if(P.date()<M.date())return-D(M,P);var A=12*(M.year()-P.year())+(M.month()-P.month()),$=P.clone().add(A,m),F=M-$<0,V=P.clone().add(A+(F?-1:1),m);return+(-(A+(M-$)/(F?$-V:V-$))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:m,y:b,w:u,d:c,D:d,h:l,m:a,s:i,ms:s,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},T="en",k={};k[T]=C;var O="$isDayjsObject",I=function(D){return D instanceof y||!(!D||!D[O])},N=function D(P,M,A){var $;if(!P)return T;if(typeof P=="string"){var F=P.toLowerCase();k[F]&&($=F),M&&(k[F]=M,$=F);var V=P.split("-");if(!$&&V.length>1)return D(V[0])}else{var q=P.name;k[q]=P,$=q}return!A&&$&&(T=$),$||!A&&T},L=function(D,P){if(I(D))return D.clone();var M=typeof P=="object"?P:{};return M.date=D,M.args=arguments,new y(M)},R=x;R.l=N,R.i=I,R.w=function(D,P){return L(D,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var y=(function(){function D(M){this.$L=N(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[O]=!0}var P=D.prototype;return P.parse=function(M){this.$d=(function(A){var $=A.date,F=A.utc;if($===null)return new Date(NaN);if(R.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var V=$.match(h);if(V){var q=V[2]-1||0,re=(V[7]||"0").substring(0,3);return F?new Date(Date.UTC(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],q,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date($)})(M),this.init()},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==p},P.isSame=function(M,A){var $=L(M);return this.startOf(A)<=$&&$<=this.endOf(A)},P.isAfter=function(M,A){return L(M)<this.startOf(A)},P.isBefore=function(M,A){return this.endOf(A)<L(M)},P.$g=function(M,A,$){return R.u(M)?this[A]:this.set($,M)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(M,A){var $=this,F=!!R.u(A)||A,V=R.p(M),q=function(W,G){var te=R.w($.$u?Date.UTC($.$y,G,W):new Date($.$y,G,W),$);return F?te:te.endOf(c)},re=function(W,G){return R.w($.toDate()[W].apply($.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(G)),$)},ae=this.$W,ie=this.$M,z=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case b:return F?q(1,0):q(31,11);case m:return F?q(1,ie):q(0,ie+1);case u:var X=this.$locale().weekStart||0,Y=(ae<X?ae+7:ae)-X;return q(F?z-Y:z+(6-Y),ie);case c:case d:return re(Z+"Hours",0);case l:return re(Z+"Minutes",1);case a:return re(Z+"Seconds",2);case i:return re(Z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(M){return this.startOf(M,!1)},P.$set=function(M,A){var $,F=R.p(M),V="set"+(this.$u?"UTC":""),q=($={},$[c]=V+"Date",$[d]=V+"Date",$[m]=V+"Month",$[b]=V+"FullYear",$[l]=V+"Hours",$[a]=V+"Minutes",$[i]=V+"Seconds",$[s]=V+"Milliseconds",$)[F],re=F===c?this.$D+(A-this.$W):A;if(F===m||F===b){var ae=this.clone().set(d,1);ae.$d[q](re),ae.init(),this.$d=ae.set(d,Math.min(this.$D,ae.daysInMonth())).$d}else q&&this.$d[q](re);return this.init(),this},P.set=function(M,A){return this.clone().$set(M,A)},P.get=function(M){return this[R.p(M)]()},P.add=function(M,A){var $,F=this;M=Number(M);var V=R.p(A),q=function(ie){var z=L(F);return R.w(z.date(z.date()+Math.round(ie*M)),F)};if(V===m)return this.set(m,this.$M+M);if(V===b)return this.set(b,this.$y+M);if(V===c)return q(1);if(V===u)return q(7);var re=($={},$[a]=r,$[l]=o,$[i]=n,$)[V]||1,ae=this.$d.getTime()+M*re;return R.w(ae,this)},P.subtract=function(M,A){return this.add(-1*M,A)},P.format=function(M){var A=this,$=this.$locale();if(!this.isValid())return $.invalidDate||p;var F=M||"YYYY-MM-DDTHH:mm:ssZ",V=R.z(this),q=this.$H,re=this.$m,ae=this.$M,ie=$.weekdays,z=$.months,Z=$.meridiem,X=function(G,te,J,B){return G&&(G[te]||G(A,F))||J[te].slice(0,B)},Y=function(G){return R.s(q%12||12,G,"0")},W=Z||function(G,te,J){var B=G<12?"AM":"PM";return J?B.toLowerCase():B};return F.replace(S,(function(G,te){return te||(function(J){switch(J){case"YY":return String(A.$y).slice(-2);case"YYYY":return R.s(A.$y,4,"0");case"M":return ae+1;case"MM":return R.s(ae+1,2,"0");case"MMM":return X($.monthsShort,ae,z,3);case"MMMM":return X(z,ae);case"D":return A.$D;case"DD":return R.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return X($.weekdaysMin,A.$W,ie,2);case"ddd":return X($.weekdaysShort,A.$W,ie,3);case"dddd":return ie[A.$W];case"H":return String(q);case"HH":return R.s(q,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return W(q,re,!0);case"A":return W(q,re,!1);case"m":return String(re);case"mm":return R.s(re,2,"0");case"s":return String(A.$s);case"ss":return R.s(A.$s,2,"0");case"SSS":return R.s(A.$ms,3,"0");case"Z":return V}return null})(G)||V.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(M,A,$){var F,V=this,q=R.p(A),re=L(M),ae=(re.utcOffset()-this.utcOffset())*r,ie=this-re,z=function(){return R.m(V,re)};switch(q){case b:F=z()/12;break;case m:F=z();break;case f:F=z()/3;break;case u:F=(ie-ae)/6048e5;break;case c:F=(ie-ae)/864e5;break;case l:F=ie/o;break;case a:F=ie/r;break;case i:F=ie/n;break;default:F=ie}return $?F:R.a(F)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return k[this.$L]},P.locale=function(M,A){if(!M)return this.$L;var $=this.clone(),F=N(M,A,!0);return F&&($.$L=F),$},P.clone=function(){return R.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},D})(),E=y.prototype;return L.prototype=E,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",m],["$y",b],["$D",d]].forEach((function(D){E[D[1]]=function(P){return this.$g(P,D[0],D[1])}})),L.extend=function(D,P){return D.$i||(D(P,y,L),D.$i=!0),L},L.locale=N,L.isDayjs=I,L.unix=function(D){return L(1e3*D)},L.en=k[T],L.Ls=k,L.p={},L}))})(Yr)),Yr.exports}var qm=Km();const De=Lt(qm);var Gr={exports:{}},Xm=Gr.exports,sa;function Qm(){return sa||(sa=1,(function(e,t){(function(n,r){e.exports=r()})(Xm,(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(p){var h={date:p,utc:!0,args:arguments};return new i(h)},l.utc=function(p){var h=a(this.toDate(),{locale:this.$L,utc:!0});return p?h.add(this.utcOffset(),n):h},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),c.call(this,p)};var u=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else u.call(this)};var m=l.utcOffset;l.utcOffset=function(p,h){var S=this.$utils().u;if(S(p))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof p=="string"&&(p=(function(T){T===void 0&&(T="");var k=T.match(r);if(!k)return null;var O=(""+k[0]).match(o)||["-",0,0],I=O[0],N=60*+O[1]+ +O[2];return N===0?0:I==="+"?N:-N})(p),p===null))return this;var C=Math.abs(p)<=16?60*p:p;if(C===0)return this.utc(h);var w=this.clone();if(h)return w.$offset=C,w.$u=!1,w;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(C+x,n)).$offset=C,w.$x.$localOffset=x,w};var f=l.format;l.format=function(p){var h=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,h)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},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(p){return p==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var d=l.diff;l.diff=function(p,h,S){if(p&&this.$u===p.$u)return d.call(this,p,h,S);var C=this.local(),w=a(p).local();return d.call(C,w,h,S)}}}))})(Gr)),Gr.exports}var Zm=Qm();const js=Lt(Zm);De.extend(js);function nn(e){return(e??"").startsWith("filter<")}function Jm(e){const{parsed:t}=tt.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function kn(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function Bs(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function eh(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return rc(t)?t.values:[e]}function th(e){return e===void 0||e.trim()===""?!0:rc(tt.StringFilterExpression.parse(e).parsed)}function rc(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function nh(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function rh(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.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 oh(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function sh(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.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 io=[{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 ih(e){const t=io.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function ah(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of io){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 lh=/^\d{4}-\d{2}-\d{2}$/;function ch(e,t){const n=De.utc(t,"YYYY-MM-DD").add(1,"day");return tt.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function uh(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=ia(n.fromMoment),o=ia(n.toMoment);if(r===void 0||o===void 0)return;const s=De.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!s.isValid()||s.isBefore(De.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:s.format("YYYY-MM-DD")}}function ia(e){return e.moment==="literal"&&lh.test(e.literal)?e.literal:void 0}const Kr="self";function Vs(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(aa)).filter(aa):[]}function zs(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function oc(e){return e.tag?.tag("drill")?.text("given")??e.name}function Mr(e){if(typeof e=="string"){const t=Bs([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 sc(e){return e instanceof Date?Mr(e)??"":String(e)}function ic(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=Vs(t);if(n.length===0)return;const r=Mr(e.value);if(r!==void 0)return{to:n,given:oc(t),value:r,rawValue:e.value,label:sc(e.value)}}function aa(e){return typeof e=="string"&&e!==""}function ac(e,t){if(t!==void 0&&!nn(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 kn(t)==="string"&&typeof e=="number"?Number.isFinite(e)?Bs([String(e)]):void 0:kn(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:Mr(e)}function lc({declaredTypes:e,setGiven:t,documentName:n}){const r=Do(),o=ee.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=ee.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=ee.useCallback(l=>s(l)!==void 0,[s]),a=ee.useCallback((l,c)=>{const u=s(l);if(u===void 0){r.emit({type:"report.drill",to:"self",outcome:"unresolved"}),r.listening||console.warn(`# drill { to=self } tried to set '${l}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const m=e.get(u),f=ac(c,m);if(f===void 0){r.emit({type:"report.drill",to:"self",outcome:"malformed"}),r.listening||console.warn(`Drill declined: ${JSON.stringify(c)} cannot be a value for given "${u}"`+(m?` of type ${m}`:""));return}t(u,f),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function dh(e,t){if(e!=null){if(e instanceof Date)return _s(e,t);if(!Array.isArray(e))return String(e)}}function ph(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 fh=/^(\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 mh(e,t=!1){const n=cc(e);if(n==="")return;const r=fh.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,m]=r,f={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(f.year,f.month-1,f.day,f.hour,f.minute,f.second,f.milli),d=new Date(b);if(!(d.getUTCFullYear()===f.year&&d.getUTCMonth()===f.month-1&&d.getUTCDate()===f.day&&d.getUTCHours()===f.hour&&d.getUTCMinutes()===f.minute&&d.getUTCSeconds()===f.second)||m!==void 0&&a===void 0)return;const h=hh(m);if(h===void 0)return;const S=new Date(b-h*6e4);if(!(t&&m!==void 0&&S.getUTCDate()!==f.day))return S}function hh(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 gh(e){return!yh.has(e??"")}const yh=new Set(["boolean","number","date","timestamp","timestamptz"]);function uc(e,t){if(t===""&&!gh(e))return null;if(nn(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 mh(n,e==="date")??n}default:return t}}function dc(e,t){const n={};for(const[r,o]of e){const s=dh(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function _s(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 Ro(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?_s(i,t.get(s)):i));return o}function Ws(e,t,n){if(!t)return e;const r=n?new Set(n):void 0,o={...e};for(const[s,i]of Object.entries(t))r&&!r.has(s)||s in o||i===null||i===void 0||(o[s]=Array.isArray(i)?[...i]:i instanceof Date?_s(i,void 0):i);return o}function la(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,uc(t.get(r),o));return n}function ca(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 ua(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function bh(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function da(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function pc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=ee.useMemo(()=>la(t??{},e),[e,JSON.stringify(t)]),a=ee.useRef(null),l=ee.useRef(null),c=ee.useRef({documentKey:o,params:n}),u=R=>R!==null&&bh(n??{},R,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!da(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const m=c.current.params,f=JSON.stringify(t),b=JSON.stringify(m),d=ee.useMemo(()=>la({...t??{},...m??{}},e),[e,f,b]),p=ee.useMemo(()=>JSON.stringify([o??null,ua(t),ua(m)]),[o,f,b]),[h,S]=ee.useState(null),C=h?.key===p?h:null;ee.useEffect(()=>{h!==null&&h.key!==p&&S(null)},[h,p]);const w=ee.useMemo(()=>ca(C?.draft??d,e),[C,d,e]),x=ee.useMemo(()=>ca(C?.applied??d,e),[C,d,e]),T=ee.useCallback(R=>R?.key===p?R:{key:p,draft:d,applied:d},[p,d]),k=ee.useMemo(()=>dc(x,e),[x,e]);a.current===null&&(a.current=k),ee.useEffect(()=>{r&&(da(a.current??{},k)||(l.current=a.current,a.current=k,r(k)))},[k,r]);const O=ee.useCallback((R,y)=>{S(E=>{const D=T(E),P=new Map(D.draft);return y===null?P.delete(R):P.set(R,y),{key:D.key,draft:P,applied:s?P:D.applied}})},[s,T]),I=ee.useCallback(()=>{S(R=>({key:T(R).key,draft:i,applied:i}))},[T,i]),N=ee.useCallback(()=>{S(R=>{const y=T(R);return{key:y.key,draft:y.draft,applied:y.draft}})},[T]),L=ee.useMemo(()=>{if(s)return!1;if(w.size!==x.size)return!0;for(const[R,y]of w){const E=x.get(R);if(y instanceof Date&&E instanceof Date){if(y.getTime()!==E.getTime())return!0}else if(Array.isArray(y)&&Array.isArray(E)){if(String(y)!==String(E))return!0}else if(y!==E)return!0}return!1},[s,w,x]);return{draft:w,applied:x,setGiven:O,reset:I,apply:N,pending:L}}const fc="You don't have access to this data";function vh(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
17
17
 
18
- `)}function _s(e,t){return e===""?t:`${e}
18
+ `)}function Hs(e,t){return e===""?t:`${e}
19
19
 
20
- ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=e.split(".");return t[t.length-1]}function xh(e,t){return`run: ${e} -> {
20
+ ${t}`}function xh(e){return e?.status===403}const Sh=1e3;function mc(e){const t=e.split(".");return t[t.length-1]}function wh(e,t){return`run: ${e} -> {
21
21
  group_by: ${t}
22
- order_by: ${fc(t)} asc
23
- limit: ${vh}
24
- }`}function Sh(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=zs(Ro(t.values,t.declaredTypes,n),wh(t),n);return Object.keys(r).length>0?r:void 0}function wh(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function mc(e,t,n,r,o,s,i){const{apiClients:a}=ze.useServer(),l=ne.useMemo(()=>r.filter(f=>f.name!==void 0&&(f.control==="select"||f.control==="multiselect")&&(f.suggest?.query!==void 0||f.suggest?.source!==void 0&&f.suggest?.dimension!==void 0)),[r]),c=go.useQueries({queries:l.map(f=>{const b=Sh(f,s);return{queryKey:["givenSuggest",e,t,o,n,f.name,f.suggest?.query,f.suggest?.source,f.suggest?.dimension,b===void 0?null:JSON.stringify(b),...i===void 0?[]:[i]],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async({signal:d})=>{const p=f.suggest??{},h=await a.models.executeQueryModel(e,t,n,p.query!==void 0&&i===void 0?{queryName:p.query,compactJson:!0,versionId:o,givens:b}:{query:_s(i??"",p.query!==void 0?`run: ${p.query}`:xh(p.source,p.dimension)),compactJson:!0,versionId:o,givens:b},void 0,{signal:d});return Ch(h.data.result,p.dimension===void 0?void 0:fc(p.dimension))}}})}),u=ne.useMemo(()=>{const f=new Map;return l.forEach((b,d)=>{const p=c[d]?.data;b.name&&p&&f.set(b.name,p)}),f},[l,JSON.stringify(c.map(f=>f.data))]),m=ne.useMemo(()=>{const f=new Set;return l.forEach((b,d)=>{b.name&&c[d]?.isError&&f.add(b.name)}),f},[l,c.map(f=>f.isError).join("|")]);return{options:u,isLoading:c.some(f=>f.isLoading),failed:m}}function Ch(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 hc({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:m,preamble:f,hostGivens:b}){const d=ne.useMemo(()=>new Map(e.filter(k=>k.name!==void 0).map(k=>[k.name,k.type])),[e]),p=ne.useCallback(k=>{t&&o?.(k,Array.from(d.keys()))},[t,o,d]),h=dc({declaredTypes:d,startingValues:n,params:r,onParamsChange:t?p:void 0,documentKey:s,autorun:i}),{options:S,isLoading:C,failed:w}=mc(a,l,c,e,u,{values:h.applied,declaredTypes:d,...b?{host:b}:{}},f),{canSelf:x,onSelf:T}=ac({declaredTypes:d,setGiven:h.setGiven,documentName:m});return{...h,declaredTypes:d,options:S,optionsLoading:C,optionsFailed:w,canSelf:x,onSelf:T,panel:{givens:e,values:h.draft,onChange:h.setGiven,onReset:h.reset,options:S,optionsLoading:C,optionsFailed:w,apply:i?void 0:{onApply:h.apply,pending:h.pending}}}}function gc({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[s,i]=ne.useState(null),a=ne.useCallback((d,p)=>d.filter(h=>h===Kr?t!==void 0&&(r?.(p)??!0):e!==void 0),[e,t,r]),l=ne.useCallback((d,p,h)=>{if(p===Kr){t?.(d.given,d.rawValue);return}e?.({path:p,dashboard:p,givens:{[d.given]:d.value}},h)},[e,t]),c=ne.useCallback(d=>{if(!(!o||d.isHeader||!d.field)&&(d.field.wasDimension?.()??!1)&&Mr(d.value)!==void 0)return{field:d.field.name,rawValue:d.value,label:oc(d.value),...d.context===void 0?{}:{context:d.context}}},[o]),u=ne.useCallback(d=>{const p=sc(d),h=c(d),S=p?a(p.to,p.given):[];if(S.length===0){h&&o?.(h);return}if(S.length===1&&p){l(p,S[0],d.event);return}i({...p?{intent:p}:{},destinations:S,event:d.event,top:d.event?.clientY??0,left:d.event?.clientX??0,label:p?.label??h?.label??""})},[l,a,o,c]),m=ne.useCallback(d=>a(js(d),rc(d)).length>0||o!==void 0&&(d.wasDimension?.()??!1),[a,o]),f=ne.useMemo(()=>({onClick:u,canDrill:m}),[u,m]),b=ne.useCallback(()=>i(null),[]);return{drill:f,drillMenu:g.jsxs(Q.Menu,{open:s!==null,onClose:b,anchorReference:"anchorPosition",anchorPosition:{top:s?.top??0,left:s?.left??0},children:[g.jsx(Q.ListSubheader,{sx:{lineHeight:"32px"},children:s?`${s.label} →`:""}),Array.from(new Set(s?.destinations??[])).map(d=>g.jsx(Q.MenuItem,{onClick:()=>{b(),s?.intent&&l(s.intent,d,s.event)},children:d===Kr?n:Bs(d)},d))]})}}const Ph=Ue(g.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 qr={exports:{}},kh=qr.exports,ua;function Mh(){return ua||(ua=1,(function(e,t){(function(n,r){e.exports=r()})(kh,(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),m=i(this).endOf(n);if(u.isBefore(m))return 1}var f=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(f,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)}}}))})(qr)),qr.exports}var Th=Mh();const Dh=Lt(Th);var Xr={exports:{}},Rh=Xr.exports,da;function Ih(){return da||(da=1,(function(e,t){(function(n,r){e.exports=r()})(Rh,(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(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(S){this[h]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),w=60*C[1]+(+C[2]||0);return w===0?0:C[0]==="+"?-w:w})(h)}],f=function(h){var S=l[h];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(h,S){var C,w=l.meridiem;if(w){for(var x=1;x<=24;x+=1)if(h.indexOf(w(x,0,S))>-1){C=x>12;break}}else C=h===(S?"pm":"PM");return C},d={A:[a,function(h){this.afternoon=b(h,!1)}],a:[a,function(h){this.afternoon=b(h,!0)}],Q:[o,function(h){this.month=3*(h-1)+1}],S:[o,function(h){this.milliseconds=100*+h}],SS:[s,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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(h){var S=l.ordinal,C=h.match(/\d+/);if(this.day=C[0],S)for(var w=1;w<=31;w+=1)S(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(h){var S=f("months"),C=(f("monthsShort")||S.map((function(w){return w.slice(0,3)}))).indexOf(h)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[a,function(h){var S=f("months").indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(h){this.year=c(h)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function p(h){var S,C;S=h,C=l&&l.formats;for(var w=(h=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,R,y){var E=y&&y.toUpperCase();return R||C[y]||n[y]||C[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,P,M){return P||M.slice(1)}))}))).match(r),x=w.length,T=0;T<x;T+=1){var k=w[T],O=d[k],I=O&&O[0],N=O&&O[1];w[T]=N?{regex:I,parser:N}:k.replace(/^\[|\]$/g,"")}return function(L){for(var R={},y=0,E=0;y<x;y+=1){var D=w[y];if(typeof D=="string")E+=D.length;else{var P=D.regex,M=D.parser,A=L.slice(E),$=P.exec(A)[0];M.call(R,$),L=L.replace($,"")}}return(function(F){var V=F.afternoon;if(V!==void 0){var q=F.hours;V?q<12&&(F.hours+=12):q===12&&(F.hours=0),delete F.afternoon}})(R),R}}return function(h,S,C){C.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var w=S.prototype,x=w.parse;w.parse=function(T){var k=T.date,O=T.utc,I=T.args;this.$u=O;var N=I[1];if(typeof N=="string"){var L=I[2]===!0,R=I[3]===!0,y=L||R,E=I[2];R&&(E=I[2]),l=this.$locale(),!L&&E&&(l=C.Ls[E]),this.$d=(function(A,$,F,V){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*A);var q=p($)(A),re=q.year,ae=q.month,ie=q.day,z=q.hours,Z=q.minutes,X=q.seconds,Y=q.milliseconds,W=q.zone,G=q.week,ee=new Date,J=ie||(re||ae?1:ee.getDate()),B=re||ee.getFullYear(),K=0;re&&!ae||(K=ae>0?ae-1:ee.getMonth());var oe,te=z||0,ce=Z||0,se=X||0,fe=Y||0;return W?new Date(Date.UTC(B,K,J,te,ce,se,fe+60*W.offset*1e3)):F?new Date(Date.UTC(B,K,J,te,ce,se,fe)):(oe=new Date(B,K,J,te,ce,se,fe),G&&(oe=V(oe).week(G).toDate()),oe)}catch{return new Date("")}})(k,N,O,C),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),y&&k!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var D=N.length,P=1;P<=D;P+=1){I[1]=N[P-1];var M=C.apply(this,I);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}P===D&&(this.$d=new Date(""))}else x.call(this,T)}}}))})(Xr)),Xr.exports}var Eh=Ih();const Oh=Lt(Eh);var Qr={exports:{}},$h=Qr.exports,pa;function Ah(){return pa||(pa=1,(function(e,t){(function(n,r){e.exports=r()})($h,(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(m,f){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,d,p){var h=p&&p.toUpperCase();return d||f[p]||n[p]||f[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,w){return C||w.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(Qr)),Qr.exports}var Fh=Ah();const Lh=Lt(Fh);var Zr={exports:{}},Nh=Zr.exports,fa;function jh(){return fa||(fa=1,(function(e,t){(function(n,r){e.exports=r()})(Nh,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),m=(l=l||"()")[0]==="(",f=l[1]===")";return(m?this.isAfter(c,a):!this.isBefore(c,a))&&(f?this.isBefore(u,a):!this.isAfter(u,a))||(m?this.isBefore(c,a):!this.isAfter(c,a))&&(f?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(Zr)),Zr.exports}var Bh=jh();const Vh=Lt(Bh);var Jr={exports:{}},zh=Jr.exports,ma;function _h(){return ma||(ma=1,(function(e,t){(function(n,r){e.exports=r()})(zh,(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(m){switch(m){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(),m==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),m==="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 m}}));return s.bind(this)(u)}}}))})(Jr)),Jr.exports}var Wh=_h();const Hh=Lt(Wh);De.extend(Lh);De.extend(Dh);De.extend(Vh);De.extend(Hh);const Uh={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"},Yh={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"},Qo=["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(`
25
- `),ha=["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(`
26
- `),Gh=(e,t)=>t?(...n)=>e(...n).locale(t):e;class ao{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=Uh,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof De.utc<"u",this.hasTimezonePlugin=()=>typeof De.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 De.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=De.tz.guess();return o!=="UTC"?De.tz(r,o):De(r)}return De(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Qo);return De.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Qo);if(!this.hasTimezonePlugin())throw new Error(ha);const s=r!==void 0&&!r.endsWith("Z");return De(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=De.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=()=>De(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(Qo);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(ha)}return De.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=Gh(De,t),this.locale=t,this.formats=j({},Yh,n),De.extend(Oh)}getDayOfWeek(t){return t.day()+1}}function ve(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 yc(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:mr(t.components[n].defaultProps,r)}function Kh({props:e,name:t,defaultTheme:n,themeId:r}){let o=Cf(n);return o=o[r]||o,yc({theme:o,name:t,props:e})}function qh(e,t,n,r,o){const[s,i]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return He(()=>{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 Xh={...v},bc=Xh.useSyncExternalStore;function Qh(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,m=>(u.addEventListener("change",m),()=>{u.removeEventListener("change",m)})]},[s,n,e]);return bc(l,a,i)}function vc(e={}){const{themeId:t}=e;return function(r,o={}){let s=Dl();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}=yc({name:"MuiUseMediaQuery",props:o,theme:s});let m=typeof r=="function"?r(s):r;return m=m.replace(/^@media( ?)/m,""),m.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(`
27
- `)),(bc!==void 0?Qh:qh)(m,a,l,c,u)}}vc();const xc=vc({themeId:Vn});function $e({props:e,name:t}){return Kh({props:e,name:t,defaultTheme:To,themeId:Vn})}const Sc=_.oneOfType([_.func,_.object]),ga={};function wc(e,t){const n=v.useRef(ga);return n.current===ga&&(n.current=e(t)),n}const Zh=[];function Jh(e){v.useEffect(e,Zh)}class Ws{static create(){return new Ws}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 Hs(){const e=wc(Ws.create).current;return Jh(e.disposeEffect),e}function ya(e){try{return e.matches(":focus-visible")}catch{}return!1}function Cc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const eg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function An(e){return typeof e=="string"}function Pc(e,t,n){return e===void 0||An(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Us(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 ba(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 kc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=de(n?.className,s,o?.className,r?.className),d={...n?.style,...o?.style,...r?.style},p={...n,...o,...r};return b.length>0&&(p.className=b),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:void 0}}const i=Us({...o,...r}),a=ba(r),l=ba(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),m={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:c.ref}}function Io(e,t,n){return typeof e=="function"?e(t,n):e}function Ce(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:Io(n,r),{props:a,internalRef:l}=kc({...s,externalSlotProps:i}),c=Pe(l,i?.ref,e.additionalProps?.ref);return Pc(t,{...a,ref:c},r)}function zn(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Un=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),tg=({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}},lo=(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},ar=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=lo(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},ng=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,rg=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ys=(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},Mc=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),og=["year","month","day"],va=e=>og.includes(e),Gs=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Un(n,["year"])?o.year:Un(n,["month"])?o.month:Un(n,["day"])?o.dayOfMonth:Un(n,["month","year"])?`${o.month} ${o.year}`:Un(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},sg=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},ig=["hours","minutes","seconds"],ag=e=>ig.includes(e),xa=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),lg=(e,t)=>(n,r)=>e?t.isAfter(n,r):xa(n,t)>xa(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},cg=e=>Math.max(...e.map(t=>Pt[t.type]??1)),Yn=(e,t,n)=>{if(t===Pt.year)return e.startOfYear(n);if(t===Pt.month)return e.startOfMonth(n);if(t===Pt.day)return e.startOfDay(n);let r=n;return t<Pt.minutes&&(r=e.setMinutes(r,0)),t<Pt.seconds&&(r=e.setSeconds(r,0)),t<Pt.milliseconds&&(r=e.setMilliseconds(r,0)),r},ug=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Yn(t,n,Mc(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Yn(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Yn(t,n,e.maxDate));const i=lg(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Yn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:lo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Yn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:lo(t,s,e.maxTime))),s},Tc=(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(`
28
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},dg=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Eo=(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))},Dc=(e,t,n,r)=>{switch(n){case"month":return Ys(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Eo(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[]}},Sa="s",pg=["0","1","2","3","4","5","6","7","8","9"],fg=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Sa)==="0"?pg:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Sa))},cn=(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("")},Ks=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),wa=(e,t)=>{const n=cn(e,t);return n!==" "&&!Number.isNaN(Number(n))},Rc=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Ic=(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=Rc(s,o.maxLength)),Ks(s,r)},mg=(e,t,n,r,o,s,i,a)=>{const l=dg(r),c=r==="Home",u=r==="End",m=n.value===""||c||u,f=()=>{const d=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),p=C=>Ic(e,C,d,s,n),h=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let S;if(m){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?S=d.minimum:S=d.maximum}else S=parseInt(cn(n.value,s),10)+l*h;return S%h!==0&&((l<0||c)&&(S+=h-(h+S)%h),(l>0||u)&&(S-=S%h)),S>d.maximum?p(d.minimum+(S-d.maximum-1)%(d.maximum-d.minimum+1)):S<d.minimum?p(d.maximum-(d.minimum-S-1)%(d.maximum-d.minimum+1)):p(S)},b=()=>{const d=Dc(e,t,n.type,n.format);if(d.length===0)return n.value;if(m)return l>0||c?d[0]:d[d.length-1];const S=((d.indexOf(n.value)+l)%d.length+d.length)%d.length;return d[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():b()},qs=(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(cn(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},Ca=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),hg=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Ec=(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")}},gg=(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(qs(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},yg=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),bg=(e,t,n)=>{const o=e.map(s=>{const i=qs(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},vg=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=Ys(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:hg(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=Eo(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 cn(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(cn(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})}},xg=(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=Eo(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}},Pa={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},ka=(e,t,n,r,o)=>[...n].sort((s,i)=>Pa[s.type]-Pa[i.type]).reduce((s,i)=>!o||i.modified?xg(e,i,t,s):s,r),Sg=()=>navigator.userAgent.toLowerCase().includes("android"),wg=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,m=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:m}}),{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],m=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:m,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},cs=(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},Cg=(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}},Pg=(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}},kg=["value","referenceDate"],Dt={emptyValue:null,getTodayValue:Mc,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,kg);return t!=null&&r.utils.isValid(t)?t:n??ug(r)},cleanValue:ng,areValuesEqual:rg,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)},Mg={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:yg,getV6InputValueFromSections:bg,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)},Tg=["localeText"],us=v.createContext(null),hr=function(t){const{localeText:n}=t,r=ve(t,Tg),{utils:o,localeText:s}=v.useContext(us)??{utils:void 0,localeText:void 0},i=$e({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:m,localeText:f}=i,b=v.useMemo(()=>j({},f,s,n),[f,s,n]),d=v.useMemo(()=>{if(!l)return o||null;const S=new l({locale:m,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(`
29
- `));return S},[l,m,c,u,o]),p=v.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),h=v.useMemo(()=>({utils:d,defaultDates:p,localeText:b}),[p,d,b]);return g.jsx(us.Provider,{value:h,children:a})},Dg=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),Oc=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)}},$c={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"},Rg=$c;Dg($c);const mn=()=>{const e=v.useContext(us);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(`
22
+ order_by: ${mc(t)} asc
23
+ limit: ${Sh}
24
+ }`}function Ch(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=Ws(Ro(t.values,t.declaredTypes,n),Ph(t),n);return Object.keys(r).length>0?r:void 0}function Ph(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function hc(e,t,n,r,o,s,i){const{apiClients:a}=Ve.useServer(),l=ee.useMemo(()=>r.filter(f=>f.name!==void 0&&(f.control==="select"||f.control==="multiselect")&&(f.suggest?.query!==void 0||f.suggest?.source!==void 0&&f.suggest?.dimension!==void 0)),[r]),c=go.useQueries({queries:l.map(f=>{const b=Ch(f,s);return{queryKey:["givenSuggest",e,t,o,n,f.name,f.suggest?.query,f.suggest?.source,f.suggest?.dimension,b===void 0?null:JSON.stringify(b),...i===void 0?[]:[i]],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async({signal:d})=>{const p=f.suggest??{},h=await a.models.executeQueryModel(e,t,n,p.query!==void 0&&i===void 0?{queryName:p.query,compactJson:!0,versionId:o,givens:b}:{query:Hs(i??"",p.query!==void 0?`run: ${p.query}`:wh(p.source,p.dimension)),compactJson:!0,versionId:o,givens:b},void 0,{signal:d});return kh(h.data.result,p.dimension===void 0?void 0:mc(p.dimension))}}})}),u=ee.useMemo(()=>{const f=new Map;return l.forEach((b,d)=>{const p=c[d]?.data;b.name&&p&&f.set(b.name,p)}),f},[l,JSON.stringify(c.map(f=>f.data))]),m=ee.useMemo(()=>{const f=new Set;return l.forEach((b,d)=>{b.name&&c[d]?.isError&&f.add(b.name)}),f},[l,c.map(f=>f.isError).join("|")]);return{options:u,isLoading:c.some(f=>f.isLoading),failed:m}}function kh(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 gc({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:m,preamble:f,hostGivens:b}){const d=ee.useMemo(()=>new Map(e.filter(k=>k.name!==void 0).map(k=>[k.name,k.type])),[e]),p=ee.useCallback(k=>{t&&o?.(k,Array.from(d.keys()))},[t,o,d]),h=pc({declaredTypes:d,startingValues:n,params:r,onParamsChange:t?p:void 0,documentKey:s,autorun:i}),{options:S,isLoading:C,failed:w}=hc(a,l,c,e,u,{values:h.applied,declaredTypes:d,...b?{host:b}:{}},f),{canSelf:x,onSelf:T}=lc({declaredTypes:d,setGiven:h.setGiven,documentName:m});return{...h,declaredTypes:d,options:S,optionsLoading:C,optionsFailed:w,canSelf:x,onSelf:T,panel:{givens:e,values:h.draft,onChange:h.setGiven,onReset:h.reset,options:S,optionsLoading:C,optionsFailed:w,apply:i?void 0:{onApply:h.apply,pending:h.pending}}}}function yc({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[s,i]=ee.useState(null),a=ee.useCallback((d,p)=>d.filter(h=>h===Kr?t!==void 0&&(r?.(p)??!0):e!==void 0),[e,t,r]),l=ee.useCallback((d,p,h)=>{if(p===Kr){t?.(d.given,d.rawValue);return}e?.({path:p,dashboard:p,givens:{[d.given]:d.value}},h)},[e,t]),c=ee.useCallback(d=>{if(!(!o||d.isHeader||!d.field)&&(d.field.wasDimension?.()??!1)&&Mr(d.value)!==void 0)return{field:d.field.name,rawValue:d.value,label:sc(d.value),...d.context===void 0?{}:{context:d.context}}},[o]),u=ee.useCallback(d=>{const p=ic(d),h=c(d),S=p?a(p.to,p.given):[];if(S.length===0){h&&o?.(h);return}if(S.length===1&&p){l(p,S[0],d.event);return}i({...p?{intent:p}:{},destinations:S,event:d.event,top:d.event?.clientY??0,left:d.event?.clientX??0,label:p?.label??h?.label??""})},[l,a,o,c]),m=ee.useCallback(d=>a(Vs(d),oc(d)).length>0||o!==void 0&&(d.wasDimension?.()??!1),[a,o]),f=ee.useMemo(()=>({onClick:u,canDrill:m}),[u,m]),b=ee.useCallback(()=>i(null),[]);return{drill:f,drillMenu:g.jsxs(Q.Menu,{open:s!==null,onClose:b,anchorReference:"anchorPosition",anchorPosition:{top:s?.top??0,left:s?.left??0},children:[g.jsx(Q.ListSubheader,{sx:{lineHeight:"32px"},children:s?`${s.label} →`:""}),Array.from(new Set(s?.destinations??[])).map(d=>g.jsx(Q.MenuItem,{onClick:()=>{b(),s?.intent&&l(s.intent,d,s.event)},children:d===Kr?n:zs(d)},d))]})}}const Mh=Ue(g.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 qr={exports:{}},Th=qr.exports,pa;function Dh(){return pa||(pa=1,(function(e,t){(function(n,r){e.exports=r()})(Th,(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),m=i(this).endOf(n);if(u.isBefore(m))return 1}var f=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(f,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)}}}))})(qr)),qr.exports}var Rh=Dh();const Ih=Lt(Rh);var Xr={exports:{}},Eh=Xr.exports,fa;function Oh(){return fa||(fa=1,(function(e,t){(function(n,r){e.exports=r()})(Eh,(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(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(S){this[h]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),w=60*C[1]+(+C[2]||0);return w===0?0:C[0]==="+"?-w:w})(h)}],f=function(h){var S=l[h];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(h,S){var C,w=l.meridiem;if(w){for(var x=1;x<=24;x+=1)if(h.indexOf(w(x,0,S))>-1){C=x>12;break}}else C=h===(S?"pm":"PM");return C},d={A:[a,function(h){this.afternoon=b(h,!1)}],a:[a,function(h){this.afternoon=b(h,!0)}],Q:[o,function(h){this.month=3*(h-1)+1}],S:[o,function(h){this.milliseconds=100*+h}],SS:[s,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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(h){var S=l.ordinal,C=h.match(/\d+/);if(this.day=C[0],S)for(var w=1;w<=31;w+=1)S(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(h){var S=f("months"),C=(f("monthsShort")||S.map((function(w){return w.slice(0,3)}))).indexOf(h)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[a,function(h){var S=f("months").indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(h){this.year=c(h)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function p(h){var S,C;S=h,C=l&&l.formats;for(var w=(h=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,R,y){var E=y&&y.toUpperCase();return R||C[y]||n[y]||C[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,P,M){return P||M.slice(1)}))}))).match(r),x=w.length,T=0;T<x;T+=1){var k=w[T],O=d[k],I=O&&O[0],N=O&&O[1];w[T]=N?{regex:I,parser:N}:k.replace(/^\[|\]$/g,"")}return function(L){for(var R={},y=0,E=0;y<x;y+=1){var D=w[y];if(typeof D=="string")E+=D.length;else{var P=D.regex,M=D.parser,A=L.slice(E),$=P.exec(A)[0];M.call(R,$),L=L.replace($,"")}}return(function(F){var V=F.afternoon;if(V!==void 0){var q=F.hours;V?q<12&&(F.hours+=12):q===12&&(F.hours=0),delete F.afternoon}})(R),R}}return function(h,S,C){C.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var w=S.prototype,x=w.parse;w.parse=function(T){var k=T.date,O=T.utc,I=T.args;this.$u=O;var N=I[1];if(typeof N=="string"){var L=I[2]===!0,R=I[3]===!0,y=L||R,E=I[2];R&&(E=I[2]),l=this.$locale(),!L&&E&&(l=C.Ls[E]),this.$d=(function(A,$,F,V){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*A);var q=p($)(A),re=q.year,ae=q.month,ie=q.day,z=q.hours,Z=q.minutes,X=q.seconds,Y=q.milliseconds,W=q.zone,G=q.week,te=new Date,J=ie||(re||ae?1:te.getDate()),B=re||te.getFullYear(),K=0;re&&!ae||(K=ae>0?ae-1:te.getMonth());var oe,ne=z||0,ce=Z||0,se=X||0,fe=Y||0;return W?new Date(Date.UTC(B,K,J,ne,ce,se,fe+60*W.offset*1e3)):F?new Date(Date.UTC(B,K,J,ne,ce,se,fe)):(oe=new Date(B,K,J,ne,ce,se,fe),G&&(oe=V(oe).week(G).toDate()),oe)}catch{return new Date("")}})(k,N,O,C),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),y&&k!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var D=N.length,P=1;P<=D;P+=1){I[1]=N[P-1];var M=C.apply(this,I);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}P===D&&(this.$d=new Date(""))}else x.call(this,T)}}}))})(Xr)),Xr.exports}var $h=Oh();const Ah=Lt($h);var Qr={exports:{}},Fh=Qr.exports,ma;function Lh(){return ma||(ma=1,(function(e,t){(function(n,r){e.exports=r()})(Fh,(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(m,f){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,d,p){var h=p&&p.toUpperCase();return d||f[p]||n[p]||f[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,w){return C||w.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(Qr)),Qr.exports}var Nh=Lh();const jh=Lt(Nh);var Zr={exports:{}},Bh=Zr.exports,ha;function Vh(){return ha||(ha=1,(function(e,t){(function(n,r){e.exports=r()})(Bh,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),m=(l=l||"()")[0]==="(",f=l[1]===")";return(m?this.isAfter(c,a):!this.isBefore(c,a))&&(f?this.isBefore(u,a):!this.isAfter(u,a))||(m?this.isBefore(c,a):!this.isAfter(c,a))&&(f?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(Zr)),Zr.exports}var zh=Vh();const _h=Lt(zh);var Jr={exports:{}},Wh=Jr.exports,ga;function Hh(){return ga||(ga=1,(function(e,t){(function(n,r){e.exports=r()})(Wh,(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(m){switch(m){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(),m==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),m==="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 m}}));return s.bind(this)(u)}}}))})(Jr)),Jr.exports}var Uh=Hh();const Yh=Lt(Uh);De.extend(jh);De.extend(Ih);De.extend(_h);De.extend(Yh);const Gh={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"},Kh={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"},Qo=["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(`
25
+ `),ya=["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(`
26
+ `),qh=(e,t)=>t?(...n)=>e(...n).locale(t):e;class ao{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=Gh,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof De.utc<"u",this.hasTimezonePlugin=()=>typeof De.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 De.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=De.tz.guess();return o!=="UTC"?De.tz(r,o):De(r)}return De(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Qo);return De.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Qo);if(!this.hasTimezonePlugin())throw new Error(ya);const s=r!==void 0&&!r.endsWith("Z");return De(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=De.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=()=>De(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(Qo);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(ya)}return De.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=qh(De,t),this.locale=t,this.formats=j({},Kh,n),De.extend(Ah)}getDayOfWeek(t){return t.day()+1}}function ve(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 bc(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:mr(t.components[n].defaultProps,r)}function Xh({props:e,name:t,defaultTheme:n,themeId:r}){let o=kf(n);return o=o[r]||o,bc({theme:o,name:t,props:e})}function Qh(e,t,n,r,o){const[s,i]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return He(()=>{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 Zh={...v},vc=Zh.useSyncExternalStore;function Jh(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,m=>(u.addEventListener("change",m),()=>{u.removeEventListener("change",m)})]},[s,n,e]);return vc(l,a,i)}function xc(e={}){const{themeId:t}=e;return function(r,o={}){let s=El();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}=bc({name:"MuiUseMediaQuery",props:o,theme:s});let m=typeof r=="function"?r(s):r;return m=m.replace(/^@media( ?)/m,""),m.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(`
27
+ `)),(vc!==void 0?Jh:Qh)(m,a,l,c,u)}}xc();const Sc=xc({themeId:Vn});function $e({props:e,name:t}){return Xh({props:e,name:t,defaultTheme:To,themeId:Vn})}const wc=_.oneOfType([_.func,_.object]),ba={};function Cc(e,t){const n=v.useRef(ba);return n.current===ba&&(n.current=e(t)),n}const eg=[];function tg(e){v.useEffect(e,eg)}class Us{static create(){return new Us}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 Ys(){const e=Cc(Us.create).current;return tg(e.disposeEffect),e}function va(e){try{return e.matches(":focus-visible")}catch{}return!1}function Pc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const ng={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function An(e){return typeof e=="string"}function kc(e,t,n){return e===void 0||An(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Gs(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 xa(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 Mc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=de(n?.className,s,o?.className,r?.className),d={...n?.style,...o?.style,...r?.style},p={...n,...o,...r};return b.length>0&&(p.className=b),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:void 0}}const i=Gs({...o,...r}),a=xa(r),l=xa(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),m={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:c.ref}}function Io(e,t,n){return typeof e=="function"?e(t,n):e}function Ce(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:Io(n,r),{props:a,internalRef:l}=Mc({...s,externalSlotProps:i}),c=Pe(l,i?.ref,e.additionalProps?.ref);return kc(t,{...a,ref:c},r)}function zn(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Un=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),rg=({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}},lo=(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},ar=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=lo(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},og=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,sg=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ks=(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},Tc=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),ig=["year","month","day"],Sa=e=>ig.includes(e),qs=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Un(n,["year"])?o.year:Un(n,["month"])?o.month:Un(n,["day"])?o.dayOfMonth:Un(n,["month","year"])?`${o.month} ${o.year}`:Un(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},ag=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},lg=["hours","minutes","seconds"],cg=e=>lg.includes(e),wa=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ug=(e,t)=>(n,r)=>e?t.isAfter(n,r):wa(n,t)>wa(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},dg=e=>Math.max(...e.map(t=>Pt[t.type]??1)),Yn=(e,t,n)=>{if(t===Pt.year)return e.startOfYear(n);if(t===Pt.month)return e.startOfMonth(n);if(t===Pt.day)return e.startOfDay(n);let r=n;return t<Pt.minutes&&(r=e.setMinutes(r,0)),t<Pt.seconds&&(r=e.setSeconds(r,0)),t<Pt.milliseconds&&(r=e.setMilliseconds(r,0)),r},pg=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Yn(t,n,Tc(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Yn(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Yn(t,n,e.maxDate));const i=ug(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Yn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:lo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Yn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:lo(t,s,e.maxTime))),s},Dc=(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(`
28
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},fg=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Eo=(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))},Rc=(e,t,n,r)=>{switch(n){case"month":return Ks(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Eo(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[]}},Ca="s",mg=["0","1","2","3","4","5","6","7","8","9"],hg=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Ca)==="0"?mg:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Ca))},cn=(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("")},Xs=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Pa=(e,t)=>{const n=cn(e,t);return n!==" "&&!Number.isNaN(Number(n))},Ic=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Ec=(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=Ic(s,o.maxLength)),Xs(s,r)},gg=(e,t,n,r,o,s,i,a)=>{const l=fg(r),c=r==="Home",u=r==="End",m=n.value===""||c||u,f=()=>{const d=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),p=C=>Ec(e,C,d,s,n),h=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let S;if(m){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?S=d.minimum:S=d.maximum}else S=parseInt(cn(n.value,s),10)+l*h;return S%h!==0&&((l<0||c)&&(S+=h-(h+S)%h),(l>0||u)&&(S-=S%h)),S>d.maximum?p(d.minimum+(S-d.maximum-1)%(d.maximum-d.minimum+1)):S<d.minimum?p(d.maximum-(d.minimum-S-1)%(d.maximum-d.minimum+1)):p(S)},b=()=>{const d=Rc(e,t,n.type,n.format);if(d.length===0)return n.value;if(m)return l>0||c?d[0]:d[d.length-1];const S=((d.indexOf(n.value)+l)%d.length+d.length)%d.length;return d[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():b()},Qs=(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(cn(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},ka=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),yg=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Oc=(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")}},bg=(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(Qs(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},vg=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),xg=(e,t,n)=>{const o=e.map(s=>{const i=Qs(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},Sg=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=Ks(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:yg(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=Eo(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 cn(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(cn(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})}},wg=(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=Eo(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}},Ma={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Ta=(e,t,n,r,o)=>[...n].sort((s,i)=>Ma[s.type]-Ma[i.type]).reduce((s,i)=>!o||i.modified?wg(e,i,t,s):s,r),Cg=()=>navigator.userAgent.toLowerCase().includes("android"),Pg=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,m=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:m}}),{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],m=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:m,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},cs=(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},kg=(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}},Mg=(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}},Tg=["value","referenceDate"],Dt={emptyValue:null,getTodayValue:Tc,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,Tg);return t!=null&&r.utils.isValid(t)?t:n??pg(r)},cleanValue:og,areValuesEqual:sg,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)},Dg={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:vg,getV6InputValueFromSections:xg,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)},Rg=["localeText"],us=v.createContext(null),hr=function(t){const{localeText:n}=t,r=ve(t,Rg),{utils:o,localeText:s}=v.useContext(us)??{utils:void 0,localeText:void 0},i=$e({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:m,localeText:f}=i,b=v.useMemo(()=>j({},f,s,n),[f,s,n]),d=v.useMemo(()=>{if(!l)return o||null;const S=new l({locale:m,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(`
29
+ `));return S},[l,m,c,u,o]),p=v.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),h=v.useMemo(()=>({utils:d,defaultDates:p,localeText:b}),[p,d,b]);return g.jsx(us.Provider,{value:h,children:a})},Ig=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),$c=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)}},Ac={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"},Eg=Ac;Ig(Ac);const mn=()=>{const e=v.useContext(us);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(`
30
30
  `));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(`
31
- `));const t=v.useMemo(()=>j({},Rg,e.localeText),[e.localeText]);return v.useMemo(()=>j({},e,{localeText:t}),[e,t])},Ae=()=>mn().utils,Tr=()=>mn().defaultDates,Oo=e=>{const t=Ae(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Ig(e){return typeof e.main=="string"}function Eg(e,t=[]){if(!Ig(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Xe(e=[]){return([,t])=>t&&Eg(t,e)}function Og(e){return ge("MuiTypography",e)}const $g=me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Ag={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Fg=dm(),Lg=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return he(a,Og,i)},Ng=U("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ie(({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(Xe()).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${le(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}}]}))),Ma={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gt=v.forwardRef(function(t,n){const{color:r,...o}=we({props:t,name:"MuiTypography"}),s=!Ag[r],i=Fg({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:m=!1,paragraph:f=!1,variant:b="body1",variantMapping:d=Ma,...p}=i,h={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:m,paragraph:f,variant:b,variantMapping:d},S=c||(f?"p":d[b]||Ma[b])||"span",C=Lg(h);return g.jsx(Ng,{as:S,ref:n,className:de(C.root,l),...p,ownerState:h,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...p.style}})});function jg(e){return ge("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const Bg=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Vg=e=>{const{classes:t}=e;return he({root:["root"],content:["content"]},jg,t)},zg=U("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"}}]})),_g=U("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"}}]}),Wg=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ve(r,Bg),u=r,m=Vg(u);return a?null:g.jsxs(zg,j({ref:n,className:de(m.root,s),ownerState:u},c,{children:[g.jsx(Gt,{color:"text.secondary",variant:"overline",id:l,children:i}),g.jsx(_g,{className:m.content,ownerState:u,children:o})]}))}),Nt=()=>mn().localeText;function Hg(e){return ge("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const Ug=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Yg=e=>{const{classes:t}=e;return he({root:["root"],title:["title"]},Hg,t)},Gg=U(Wg,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kg=U(Gt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),qg=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ve(r,Ug),m=Ae(),f=Nt(),b=Yg(r),d=v.useMemo(()=>{if(!o)return a;const h=Gs(m,{format:i,views:l},!0);return m.formatByString(o,h)},[o,i,a,m,l]),p=r;return g.jsx(Gg,j({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:s,className:de(b.root,c)},u,{children:g.jsx(Kg,{variant:"h4",align:s?"left":"center",ownerState:p,className:b.title,children:d})}))});function Ac(e,t){const n=Ae(),r=Tr(),o=$e({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},tg({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate),slots:j({toolbar:qg},o.slots)})}const Dr=({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=lt(r.utils,e.minDate,r.defaultDates.minDate),m=lt(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!!(m&&r.utils.isAfterDay(t,m)):return"maxDate";default:return null}};Dr.valueManager=Dt;const Fc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Xg=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Qg=["minDateTime","maxDateTime"],Zg=[...Fc,...Xg,...Qg],Lc=e=>Zg.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Nc(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=mn(),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=ue(m=>n({adapter:i,value:m,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const $o=v.createContext(void 0);function ft(){return v.useContext($o)}function Jg(e){return ge("MuiInputAdornment",e)}const Ta=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Da;const ey=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},ty=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${le(o)}`,i,r&&"hiddenLabel",s&&`size${le(s)}`]};return he(a,Jg,t)},ny=U("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ey})(Ie(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ta.positionStart}&:not(.${Ta.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=we({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...m}=r,f=ft()||{};let b=u;u&&f.variant,f&&!b&&(b=f.variant);const d={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:b},p=ty(d);return g.jsx($o.Provider,{value:null,children:g.jsx(ny,{as:i,ownerState:d,className:de(p.root,s),ref:n,...m,children:typeof o=="string"&&!l?g.jsx(Gt,{color:"textSecondary",children:o}):g.jsxs(v.Fragment,{children:[c==="start"?Da||(Da=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});class co{static create(){return new co}static use(){const t=wc(co.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=oy(),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 ry(){return co.use()}function oy(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ds(e,t){return ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ds(e,t)}function Xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function sy(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function iy(e,t){e.classList?e.classList.add(t):sy(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ra(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ay(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ra(e.className,t):e.setAttribute("class",Ra(e.className&&e.className.baseVal||"",t))}const Ia={disabled:!1},uo=ne.createContext(null);var Bc=function(t){return t.scrollTop},or="unmounted",en="exited",tn="entering",Cn="entered",ps="exiting",St=(function(e){Xs(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=en,s.appearStatus=tn):l=Cn:r.unmountOnExit||r.mountOnEnter?l=or:l=en,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===or?{status:en}: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!==tn&&i!==Cn&&(s=tn):(i===tn||i===Cn)&&(s=ps)}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===tn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:tr.findDOMNode(this);i&&Bc(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===en&&this.setState({status:or})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[tr.findDOMNode(this),a],c=l[0],u=l[1],m=this.getTimeouts(),f=a?m.appear:m.enter;if(!o&&!i||Ia.disabled){this.safeSetState({status:Cn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:tn},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:Cn},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:tr.findDOMNode(this);if(!s||Ia.disabled){this.safeSetState({status:en},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ps},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:en},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:tr.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===or)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=ve(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(uo.Provider,{value:null},typeof i=="function"?i(o,a):ne.cloneElement(ne.Children.only(i),a))},t})(ne.Component);St.contextType=uo;St.propTypes={};function Sn(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sn,onEntering:Sn,onEntered:Sn,onExit:Sn,onExiting:Sn,onExited:Sn};St.UNMOUNTED=or;St.EXITED=en;St.ENTERING=tn;St.ENTERED=Cn;St.EXITING=ps;var ly=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return iy(t,r)})},Zo=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return ay(t,r)})},Qs=(function(e){Xs(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],m=c[1];r.removeClasses(u,"exit"),r.addClass(u,m?"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],m=c[1],f=m?"appear":"enter";r.addClass(u,f,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],m=c[1],f=m?"appear":"enter";r.removeClasses(u,f),r.addClass(u,f,"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+"-":"",m=c?""+u+a:l[a],f=c?m+"-active":l[a+"Active"],b=c?m+"-done":l[a+"Done"];return{baseClassName:m,activeClassName:f,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&&Bc(o),a&&(this.appliedClasses[s][i]=a,ly(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&&Zo(o,a),l&&Zo(o,l),c&&Zo(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return ne.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ne.Component);Qs.defaultProps={classNames:""};Qs.propTypes={};function cy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zs(e,t){var n=function(s){return t&&ne.isValidElement(s)?t(s):s},r=Object.create(null);return e&&ne.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function uy(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 on(e,t,n){return n[t]!=null?n[t]:e.props[t]}function dy(e,t){return Zs(e.children,function(n){return ne.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:on(n,"appear",e),enter:on(n,"enter",e),exit:on(n,"exit",e)})})}function py(e,t,n){var r=Zs(e.children),o=uy(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(ne.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=ne.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=ne.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:on(i,"exit",e),enter:on(i,"enter",e)}):!l&&a&&!u?o[s]=ne.cloneElement(i,{in:!1}):l&&a&&ne.isValidElement(c)&&(o[s]=ne.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:on(i,"exit",e),enter:on(i,"enter",e)}))}}),o}var fy=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},my={component:"div",childFactory:function(t){return t}},Rr=(function(e){Xs(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(cy(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?dy(o,a):py(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=Zs(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=ve(o,["component","childFactory"]),l=this.state.contextValue,c=fy(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?ne.createElement(uo.Provider,{value:l},c):ne.createElement(uo.Provider,{value:l},ne.createElement(s,a,c))},t})(ne.Component);Rr.propTypes={};Rr.defaultProps=my;function hy(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,m]=v.useState(!1),f=de(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},d=de(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&m(!0),v.useEffect(()=>{if(!a&&l!=null){const p=setTimeout(l,c);return()=>{clearTimeout(p)}}},[l,a,c]),g.jsx("span",{className:f,style:b,children:g.jsx("span",{className:d})})}const st=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fs=550,gy=80,yy=We.keyframes`
31
+ `));const t=v.useMemo(()=>j({},Eg,e.localeText),[e.localeText]);return v.useMemo(()=>j({},e,{localeText:t}),[e,t])},Ae=()=>mn().utils,Tr=()=>mn().defaultDates,Oo=e=>{const t=Ae(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Og(e){return typeof e.main=="string"}function $g(e,t=[]){if(!Og(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Xe(e=[]){return([,t])=>t&&$g(t,e)}function Ag(e){return ge("MuiTypography",e)}const Fg=me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Lg={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ng=fm(),jg=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return he(a,Ag,i)},Bg=U("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ie(({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(Xe()).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${le(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}}]}))),Da={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gt=v.forwardRef(function(t,n){const{color:r,...o}=we({props:t,name:"MuiTypography"}),s=!Lg[r],i=Ng({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:m=!1,paragraph:f=!1,variant:b="body1",variantMapping:d=Da,...p}=i,h={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:m,paragraph:f,variant:b,variantMapping:d},S=c||(f?"p":d[b]||Da[b])||"span",C=jg(h);return g.jsx(Bg,{as:S,ref:n,className:de(C.root,l),...p,ownerState:h,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...p.style}})});function Vg(e){return ge("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const zg=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],_g=e=>{const{classes:t}=e;return he({root:["root"],content:["content"]},Vg,t)},Wg=U("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"}}]})),Hg=U("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"}}]}),Ug=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ve(r,zg),u=r,m=_g(u);return a?null:g.jsxs(Wg,j({ref:n,className:de(m.root,s),ownerState:u},c,{children:[g.jsx(Gt,{color:"text.secondary",variant:"overline",id:l,children:i}),g.jsx(Hg,{className:m.content,ownerState:u,children:o})]}))}),Nt=()=>mn().localeText;function Yg(e){return ge("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const Gg=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Kg=e=>{const{classes:t}=e;return he({root:["root"],title:["title"]},Yg,t)},qg=U(Ug,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xg=U(Gt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Qg=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ve(r,Gg),m=Ae(),f=Nt(),b=Kg(r),d=v.useMemo(()=>{if(!o)return a;const h=qs(m,{format:i,views:l},!0);return m.formatByString(o,h)},[o,i,a,m,l]),p=r;return g.jsx(qg,j({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:s,className:de(b.root,c)},u,{children:g.jsx(Xg,{variant:"h4",align:s?"left":"center",ownerState:p,className:b.title,children:d})}))});function Fc(e,t){const n=Ae(),r=Tr(),o=$e({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},rg({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate),slots:j({toolbar:Qg},o.slots)})}const Dr=({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=lt(r.utils,e.minDate,r.defaultDates.minDate),m=lt(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!!(m&&r.utils.isAfterDay(t,m)):return"maxDate";default:return null}};Dr.valueManager=Dt;const Lc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Zg=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Jg=["minDateTime","maxDateTime"],ey=[...Lc,...Zg,...Jg],Nc=e=>ey.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=mn(),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=ue(m=>n({adapter:i,value:m,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const $o=v.createContext(void 0);function ft(){return v.useContext($o)}function ty(e){return ge("MuiInputAdornment",e)}const Ra=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ia;const ny=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},ry=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${le(o)}`,i,r&&"hiddenLabel",s&&`size${le(s)}`]};return he(a,ty,t)},oy=U("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ny})(Ie(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ra.positionStart}&:not(.${Ra.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Bc=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...m}=r,f=ft()||{};let b=u;u&&f.variant,f&&!b&&(b=f.variant);const d={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:b},p=ry(d);return g.jsx($o.Provider,{value:null,children:g.jsx(oy,{as:i,ownerState:d,className:de(p.root,s),ref:n,...m,children:typeof o=="string"&&!l?g.jsx(Gt,{color:"textSecondary",children:o}):g.jsxs(v.Fragment,{children:[c==="start"?Ia||(Ia=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});class co{static create(){return new co}static use(){const t=Cc(co.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=iy(),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 sy(){return co.use()}function iy(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ds(e,t){return ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ds(e,t)}function Zs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function ay(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ly(e,t){e.classList?e.classList.add(t):ay(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ea(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function cy(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ea(e.className,t):e.setAttribute("class",Ea(e.className&&e.className.baseVal||"",t))}const Oa={disabled:!1},uo=ee.createContext(null);var Vc=function(t){return t.scrollTop},or="unmounted",en="exited",tn="entering",Cn="entered",ps="exiting",St=(function(e){Zs(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=en,s.appearStatus=tn):l=Cn:r.unmountOnExit||r.mountOnEnter?l=or:l=en,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===or?{status:en}: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!==tn&&i!==Cn&&(s=tn):(i===tn||i===Cn)&&(s=ps)}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===tn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:tr.findDOMNode(this);i&&Vc(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===en&&this.setState({status:or})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[tr.findDOMNode(this),a],c=l[0],u=l[1],m=this.getTimeouts(),f=a?m.appear:m.enter;if(!o&&!i||Oa.disabled){this.safeSetState({status:Cn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:tn},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:Cn},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:tr.findDOMNode(this);if(!s||Oa.disabled){this.safeSetState({status:en},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ps},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:en},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:tr.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===or)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=ve(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ee.createElement(uo.Provider,{value:null},typeof i=="function"?i(o,a):ee.cloneElement(ee.Children.only(i),a))},t})(ee.Component);St.contextType=uo;St.propTypes={};function Sn(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sn,onEntering:Sn,onEntered:Sn,onExit:Sn,onExiting:Sn,onExited:Sn};St.UNMOUNTED=or;St.EXITED=en;St.ENTERING=tn;St.ENTERED=Cn;St.EXITING=ps;var uy=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return ly(t,r)})},Zo=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return cy(t,r)})},Js=(function(e){Zs(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],m=c[1];r.removeClasses(u,"exit"),r.addClass(u,m?"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],m=c[1],f=m?"appear":"enter";r.addClass(u,f,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],m=c[1],f=m?"appear":"enter";r.removeClasses(u,f),r.addClass(u,f,"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+"-":"",m=c?""+u+a:l[a],f=c?m+"-active":l[a+"Active"],b=c?m+"-done":l[a+"Done"];return{baseClassName:m,activeClassName:f,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&&Vc(o),a&&(this.appliedClasses[s][i]=a,uy(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&&Zo(o,a),l&&Zo(o,l),c&&Zo(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return ee.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ee.Component);Js.defaultProps={classNames:""};Js.propTypes={};function dy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e,t){var n=function(s){return t&&ee.isValidElement(s)?t(s):s},r=Object.create(null);return e&&ee.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function py(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 on(e,t,n){return n[t]!=null?n[t]:e.props[t]}function fy(e,t){return ei(e.children,function(n){return ee.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:on(n,"appear",e),enter:on(n,"enter",e),exit:on(n,"exit",e)})})}function my(e,t,n){var r=ei(e.children),o=py(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(ee.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=ee.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=ee.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:on(i,"exit",e),enter:on(i,"enter",e)}):!l&&a&&!u?o[s]=ee.cloneElement(i,{in:!1}):l&&a&&ee.isValidElement(c)&&(o[s]=ee.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:on(i,"exit",e),enter:on(i,"enter",e)}))}}),o}var hy=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gy={component:"div",childFactory:function(t){return t}},Rr=(function(e){Zs(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(dy(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?fy(o,a):my(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=ei(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=ve(o,["component","childFactory"]),l=this.state.contextValue,c=hy(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?ee.createElement(uo.Provider,{value:l},c):ee.createElement(uo.Provider,{value:l},ee.createElement(s,a,c))},t})(ee.Component);Rr.propTypes={};Rr.defaultProps=gy;function yy(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,m]=v.useState(!1),f=de(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},d=de(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&m(!0),v.useEffect(()=>{if(!a&&l!=null){const p=setTimeout(l,c);return()=>{clearTimeout(p)}}},[l,a,c]),g.jsx("span",{className:f,style:b,children:g.jsx("span",{className:d})})}const st=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fs=550,by=80,vy=We.keyframes`
32
32
  0% {
33
33
  transform: scale(0);
34
34
  opacity: 0.1;
@@ -38,7 +38,7 @@ ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=
38
38
  transform: scale(1);
39
39
  opacity: 0.3;
40
40
  }
41
- `,by=We.keyframes`
41
+ `,xy=We.keyframes`
42
42
  0% {
43
43
  opacity: 1;
44
44
  }
@@ -46,7 +46,7 @@ ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=
46
46
  100% {
47
47
  opacity: 0;
48
48
  }
49
- `,vy=We.keyframes`
49
+ `,Sy=We.keyframes`
50
50
  0% {
51
51
  transform: scale(1);
52
52
  }
@@ -58,14 +58,14 @@ ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=
58
58
  100% {
59
59
  transform: scale(1);
60
60
  }
61
- `,xy=U("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sy=U(hy,{name:"MuiTouchRipple",slot:"Ripple"})`
61
+ `,wy=U("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cy=U(yy,{name:"MuiTouchRipple",slot:"Ripple"})`
62
62
  opacity: 0;
63
63
  position: absolute;
64
64
 
65
65
  &.${st.rippleVisible} {
66
66
  opacity: 0.3;
67
67
  transform: scale(1);
68
- animation-name: ${yy};
68
+ animation-name: ${vy};
69
69
  animation-duration: ${fs}ms;
70
70
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
71
71
  }
@@ -85,7 +85,7 @@ ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=
85
85
 
86
86
  & .${st.childLeaving} {
87
87
  opacity: 0;
88
- animation-name: ${by};
88
+ animation-name: ${xy};
89
89
  animation-duration: ${fs}ms;
90
90
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
91
91
  }
@@ -95,13 +95,13 @@ ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=
95
95
  /* @noflip */
96
96
  left: 0px;
97
97
  top: 0;
98
- animation-name: ${vy};
98
+ animation-name: ${Sy};
99
99
  animation-duration: 2500ms;
100
100
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
101
101
  animation-iteration-count: infinite;
102
102
  animation-delay: 200ms;
103
103
  }
104
- `,wy=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=v.useState([]),u=v.useRef(0),m=v.useRef(null);v.useEffect(()=>{m.current&&(m.current(),m.current=null)},[l]);const f=v.useRef(!1),b=Hs(),d=v.useRef(null),p=v.useRef(null),h=v.useCallback(x=>{const{pulsate:T,rippleX:k,rippleY:O,rippleSize:I,cb:N}=x;c(L=>[...L,g.jsx(Sy,{classes:{ripple:de(s.ripple,st.ripple),rippleVisible:de(s.rippleVisible,st.rippleVisible),ripplePulsate:de(s.ripplePulsate,st.ripplePulsate),child:de(s.child,st.child),childLeaving:de(s.childLeaving,st.childLeaving),childPulsate:de(s.childPulsate,st.childPulsate)},timeout:fs,pulsate:T,rippleX:k,rippleY:O,rippleSize:I},u.current)]),u.current+=1,m.current=N},[s]),S=v.useCallback((x={},T={},k=()=>{})=>{const{pulsate:O=!1,center:I=o||T.pulsate,fakeElement:N=!1}=T;if(x?.type==="mousedown"&&f.current){f.current=!1;return}x?.type==="touchstart"&&(f.current=!0);const L=N?null:p.current,R=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,E,D;if(I||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)y=Math.round(R.width/2),E=Math.round(R.height/2);else{const{clientX:P,clientY:M}=x.touches&&x.touches.length>0?x.touches[0]:x;y=Math.round(P-R.left),E=Math.round(M-R.top)}if(I)D=Math.sqrt((2*R.width**2+R.height**2)/3),D%2===0&&(D+=1);else{const P=Math.max(Math.abs((L?L.clientWidth:0)-y),y)*2+2,M=Math.max(Math.abs((L?L.clientHeight:0)-E),E)*2+2;D=Math.sqrt(P**2+M**2)}x?.touches?d.current===null&&(d.current=()=>{h({pulsate:O,rippleX:y,rippleY:E,rippleSize:D,cb:k})},b.start(gy,()=>{d.current&&(d.current(),d.current=null)})):h({pulsate:O,rippleX:y,rippleY:E,rippleSize:D,cb:k})},[o,h,b]),C=v.useCallback(()=>{S({},{pulsate:!0})},[S]),w=v.useCallback((x,T)=>{if(b.clear(),x?.type==="touchend"&&d.current){d.current(),d.current=null,b.start(0,()=>{w(x,T)});return}d.current=null,c(k=>k.length>0?k.slice(1):k),m.current=T},[b]);return v.useImperativeHandle(n,()=>({pulsate:C,start:S,stop:w}),[C,S,w]),g.jsx(xy,{className:de(st.root,s.root,i),ref:p,...a,children:g.jsx(Rr,{component:null,exit:!0,children:l})})});function Cy(e){return ge("MuiButtonBase",e)}const Py=me("MuiButtonBase",["root","disabled","focusVisible"]),ky=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=he({root:["root",t&&"disabled",n&&"focusVisible"]},Cy,o);return n&&r&&(i.root+=` ${r}`),i},My=U("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"},[`&.${Py.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fn=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:m=!1,focusRipple:f=!1,focusVisibleClassName:b,LinkComponent:d="a",onBlur:p,onClick:h,onContextMenu:S,onDragLeave:C,onFocus:w,onFocusVisible:x,onKeyDown:T,onKeyUp:k,onMouseDown:O,onMouseLeave:I,onMouseUp:N,onTouchEnd:L,onTouchMove:R,onTouchStart:y,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:P,type:M,...A}=r,$=v.useRef(null),F=ry(),V=Pe(F.ref,P),[q,re]=v.useState(!1);c&&q&&re(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),$.current.focus()}}),[]);const ae=F.shouldMount&&!u&&!c;v.useEffect(()=>{q&&f&&!u&&F.pulsate()},[u,f,q,F]);const ie=Et(F,"start",O,m),z=Et(F,"stop",S,m),Z=Et(F,"stop",C,m),X=Et(F,"stop",N,m),Y=Et(F,"stop",pe=>{q&&pe.preventDefault(),I&&I(pe)},m),W=Et(F,"start",y,m),G=Et(F,"stop",L,m),ee=Et(F,"stop",R,m),J=Et(F,"stop",pe=>{ya(pe.target)||re(!1),p&&p(pe)},!1),B=ue(pe=>{$.current||($.current=pe.currentTarget),ya(pe.target)&&(re(!0),x&&x(pe)),w&&w(pe)}),K=()=>{const pe=$.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},oe=ue(pe=>{f&&!pe.repeat&&q&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&K()&&pe.key===" "&&pe.preventDefault(),T&&T(pe),pe.target===pe.currentTarget&&K()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),h&&h(pe))}),te=ue(pe=>{f&&pe.key===" "&&q&&!pe.defaultPrevented&&F.stop(pe,()=>{F.pulsate(pe)}),k&&k(pe),h&&pe.target===pe.currentTarget&&K()&&pe.key===" "&&!pe.defaultPrevented&&h(pe)});let ce=l;ce==="button"&&(A.href||A.to)&&(ce=d);const se={};ce==="button"?(se.type=M===void 0?"button":M,se.disabled=c):(!A.href&&!A.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const fe=Pe(n,$),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:m,focusRipple:f,tabIndex:E,focusVisible:q},Se=ky(be);return g.jsxs(My,{as:ce,className:de(Se.root,a),ownerState:be,onBlur:J,onClick:h,onContextMenu:z,onFocus:B,onKeyDown:oe,onKeyUp:te,onMouseDown:ie,onMouseLeave:Y,onMouseUp:X,onDragLeave:Z,onTouchEnd:G,onTouchMove:ee,onTouchStart:W,ref:fe,tabIndex:c?-1:E,type:M,...se,...A,children:[i,ae?g.jsx(wy,{ref:V,center:s,...D}):null]})});function Et(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function Ty(e){return ge("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wt=44,ms=We.keyframes`
104
+ `,Py=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=v.useState([]),u=v.useRef(0),m=v.useRef(null);v.useEffect(()=>{m.current&&(m.current(),m.current=null)},[l]);const f=v.useRef(!1),b=Ys(),d=v.useRef(null),p=v.useRef(null),h=v.useCallback(x=>{const{pulsate:T,rippleX:k,rippleY:O,rippleSize:I,cb:N}=x;c(L=>[...L,g.jsx(Cy,{classes:{ripple:de(s.ripple,st.ripple),rippleVisible:de(s.rippleVisible,st.rippleVisible),ripplePulsate:de(s.ripplePulsate,st.ripplePulsate),child:de(s.child,st.child),childLeaving:de(s.childLeaving,st.childLeaving),childPulsate:de(s.childPulsate,st.childPulsate)},timeout:fs,pulsate:T,rippleX:k,rippleY:O,rippleSize:I},u.current)]),u.current+=1,m.current=N},[s]),S=v.useCallback((x={},T={},k=()=>{})=>{const{pulsate:O=!1,center:I=o||T.pulsate,fakeElement:N=!1}=T;if(x?.type==="mousedown"&&f.current){f.current=!1;return}x?.type==="touchstart"&&(f.current=!0);const L=N?null:p.current,R=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,E,D;if(I||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)y=Math.round(R.width/2),E=Math.round(R.height/2);else{const{clientX:P,clientY:M}=x.touches&&x.touches.length>0?x.touches[0]:x;y=Math.round(P-R.left),E=Math.round(M-R.top)}if(I)D=Math.sqrt((2*R.width**2+R.height**2)/3),D%2===0&&(D+=1);else{const P=Math.max(Math.abs((L?L.clientWidth:0)-y),y)*2+2,M=Math.max(Math.abs((L?L.clientHeight:0)-E),E)*2+2;D=Math.sqrt(P**2+M**2)}x?.touches?d.current===null&&(d.current=()=>{h({pulsate:O,rippleX:y,rippleY:E,rippleSize:D,cb:k})},b.start(by,()=>{d.current&&(d.current(),d.current=null)})):h({pulsate:O,rippleX:y,rippleY:E,rippleSize:D,cb:k})},[o,h,b]),C=v.useCallback(()=>{S({},{pulsate:!0})},[S]),w=v.useCallback((x,T)=>{if(b.clear(),x?.type==="touchend"&&d.current){d.current(),d.current=null,b.start(0,()=>{w(x,T)});return}d.current=null,c(k=>k.length>0?k.slice(1):k),m.current=T},[b]);return v.useImperativeHandle(n,()=>({pulsate:C,start:S,stop:w}),[C,S,w]),g.jsx(wy,{className:de(st.root,s.root,i),ref:p,...a,children:g.jsx(Rr,{component:null,exit:!0,children:l})})});function ky(e){return ge("MuiButtonBase",e)}const My=me("MuiButtonBase",["root","disabled","focusVisible"]),Ty=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=he({root:["root",t&&"disabled",n&&"focusVisible"]},ky,o);return n&&r&&(i.root+=` ${r}`),i},Dy=U("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"},[`&.${My.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fn=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:m=!1,focusRipple:f=!1,focusVisibleClassName:b,LinkComponent:d="a",onBlur:p,onClick:h,onContextMenu:S,onDragLeave:C,onFocus:w,onFocusVisible:x,onKeyDown:T,onKeyUp:k,onMouseDown:O,onMouseLeave:I,onMouseUp:N,onTouchEnd:L,onTouchMove:R,onTouchStart:y,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:P,type:M,...A}=r,$=v.useRef(null),F=sy(),V=Pe(F.ref,P),[q,re]=v.useState(!1);c&&q&&re(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),$.current.focus()}}),[]);const ae=F.shouldMount&&!u&&!c;v.useEffect(()=>{q&&f&&!u&&F.pulsate()},[u,f,q,F]);const ie=Et(F,"start",O,m),z=Et(F,"stop",S,m),Z=Et(F,"stop",C,m),X=Et(F,"stop",N,m),Y=Et(F,"stop",pe=>{q&&pe.preventDefault(),I&&I(pe)},m),W=Et(F,"start",y,m),G=Et(F,"stop",L,m),te=Et(F,"stop",R,m),J=Et(F,"stop",pe=>{va(pe.target)||re(!1),p&&p(pe)},!1),B=ue(pe=>{$.current||($.current=pe.currentTarget),va(pe.target)&&(re(!0),x&&x(pe)),w&&w(pe)}),K=()=>{const pe=$.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},oe=ue(pe=>{f&&!pe.repeat&&q&&pe.key===" "&&F.stop(pe,()=>{F.start(pe)}),pe.target===pe.currentTarget&&K()&&pe.key===" "&&pe.preventDefault(),T&&T(pe),pe.target===pe.currentTarget&&K()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),h&&h(pe))}),ne=ue(pe=>{f&&pe.key===" "&&q&&!pe.defaultPrevented&&F.stop(pe,()=>{F.pulsate(pe)}),k&&k(pe),h&&pe.target===pe.currentTarget&&K()&&pe.key===" "&&!pe.defaultPrevented&&h(pe)});let ce=l;ce==="button"&&(A.href||A.to)&&(ce=d);const se={};ce==="button"?(se.type=M===void 0?"button":M,se.disabled=c):(!A.href&&!A.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const fe=Pe(n,$),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:m,focusRipple:f,tabIndex:E,focusVisible:q},Se=Ty(be);return g.jsxs(Dy,{as:ce,className:de(Se.root,a),ownerState:be,onBlur:J,onClick:h,onContextMenu:z,onFocus:B,onKeyDown:oe,onKeyUp:ne,onMouseDown:ie,onMouseLeave:Y,onMouseUp:X,onDragLeave:Z,onTouchEnd:G,onTouchMove:te,onTouchStart:W,ref:fe,tabIndex:c?-1:E,type:M,...se,...A,children:[i,ae?g.jsx(Py,{ref:V,center:s,...D}):null]})});function Et(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function Ry(e){return ge("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wt=44,ms=We.keyframes`
105
105
  0% {
106
106
  transform: rotate(0deg);
107
107
  }
@@ -124,18 +124,18 @@ ${t}`}function bh(e){return e?.status===403}const vh=1e3;function fc(e){const t=
124
124
  stroke-dasharray: 1px, 200px;
125
125
  stroke-dashoffset: -126px;
126
126
  }
127
- `,Dy=typeof ms!="string"?We.css`
127
+ `,Iy=typeof ms!="string"?We.css`
128
128
  animation: ${ms} 1.4s linear infinite;
129
- `:null,Ry=typeof hs!="string"?We.css`
129
+ `:null,Ey=typeof hs!="string"?We.css`
130
130
  animation: ${hs} 1.4s ease-in-out infinite;
131
- `:null,Iy=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${le(r)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,o&&"circleDisableShrink"]};return he(s,Ty,t)},Ey=U("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Ie(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Dy||{animation:`${ms} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Oy=U("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),$y=U("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ie(({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:Ry||{animation:`${hs} 1.4s ease-in-out infinite`}}]}))),Js=v.forwardRef(function(t,n){const r=we({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:m="indeterminate",...f}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:m},d=Iy(b),p={},h={},S={};if(m==="determinate"){const C=2*Math.PI*((Wt-c)/2);p.strokeDasharray=C.toFixed(3),S["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,h.transform="rotate(-90deg)"}return g.jsx(Ey,{className:de(d.root,o),style:{width:a,height:a,...h,...l},ownerState:b,ref:n,role:"progressbar",...S,...f,children:g.jsx(Oy,{className:d.svg,ownerState:b,viewBox:`${Wt/2} ${Wt/2} ${Wt} ${Wt}`,children:g.jsx($y,{className:d.circle,style:p,ownerState:b,cx:Wt,cy:Wt,r:(Wt-c)/2,fill:"none",strokeWidth:c})})})});function Ay(e){return ge("MuiIconButton",e)}const Ea=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Fy=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${le(r)}`,o&&`edge${le(o)}`,`size${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return he(a,Ay,t)},Ly=U(Fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Ie(({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}}]})),Ie(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Xe()).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)}}],[`&.${Ea.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ea.loading}`]:{color:"transparent"}}))),Ny=U("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"}}]})),Ir=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:m,loading:f=null,loadingIndicator:b,...d}=r,p=xt(m),h=b??g.jsx(Js,{"aria-labelledby":p,color:"inherit",size:16}),S={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:h,size:u},C=Fy(S);return g.jsxs(Ly,{id:f?p:m,className:de(C.root,i),centerRipple:!0,focusRipple:!c,disabled:l||f,ref:n,...d,ownerState:S,children:[typeof f=="boolean"&&g.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:g.jsx(Ny,{className:C.loadingIndicator,ownerState:S,children:f&&h})}),s]})}),Vc=e=>e.scrollTop;function po(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 gs(e){return`scale(${e}, ${e**2})`}const jy={entering:{opacity:1,transform:gs(1)},entered:{opacity:1,transform:"none"}},Jo=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:m,onExited:f,onExiting:b,style:d,timeout:p="auto",TransitionComponent:h=St,...S}=t,C=Hs(),w=v.useRef(),x=fn(),T=v.useRef(null),k=Pe(T,zn(s),n),O=P=>M=>{if(P){const A=T.current;M===void 0?P(A):P(A,M)}},I=O(u),N=O((P,M)=>{Vc(P);const{duration:A,delay:$,easing:F}=po({style:d,timeout:p,easing:i},{mode:"enter"});let V;p==="auto"?(V=x.transitions.getAutoHeightDuration(P.clientHeight),w.current=V):V=A,P.style.transition=[x.transitions.create("opacity",{duration:V,delay:$}),x.transitions.create("transform",{duration:Jo?V:V*.666,delay:$,easing:F})].join(","),l&&l(P,M)}),L=O(c),R=O(b),y=O(P=>{const{duration:M,delay:A,easing:$}=po({style:d,timeout:p,easing:i},{mode:"exit"});let F;p==="auto"?(F=x.transitions.getAutoHeightDuration(P.clientHeight),w.current=F):F=M,P.style.transition=[x.transitions.create("opacity",{duration:F,delay:A}),x.transitions.create("transform",{duration:Jo?F:F*.666,delay:Jo?A:A||F*.333,easing:$})].join(","),P.style.opacity=0,P.style.transform=gs(.75),m&&m(P)}),E=O(f),D=P=>{p==="auto"&&C.start(w.current||0,P),r&&r(T.current,P)};return g.jsx(h,{appear:o,in:a,nodeRef:T,onEnter:N,onEntered:L,onEntering:I,onExit:y,onExited:E,onExiting:R,addEndListener:D,timeout:p==="auto"?null:p,...S,children:(P,{ownerState:M,...A})=>v.cloneElement(s,{style:{opacity:0,transform:gs(.75),visibility:P==="exited"&&!a?"hidden":void 0,...jy[P],...d,...s.props.style},ref:k,...A})})});gr&&(gr.muiSupportAuto=!0);const By={entering:{opacity:1},entered:{opacity:1}},un=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:m,onEntering:f,onExit:b,onExited:d,onExiting:p,style:h,timeout:S=o,TransitionComponent:C=St,...w}=t,x=v.useRef(null),T=Pe(x,zn(a),n),k=D=>P=>{if(D){const M=x.current;P===void 0?D(M):D(M,P)}},O=k(f),I=k((D,P)=>{Vc(D);const M=po({style:h,timeout:S,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),u&&u(D,P)}),N=k(m),L=k(p),R=k(D=>{const P=po({style:h,timeout:S,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",P),D.style.transition=r.transitions.create("opacity",P),b&&b(D)}),y=k(d),E=D=>{s&&s(x.current,D)};return g.jsx(C,{appear:i,in:c,nodeRef:x,onEnter:I,onEntered:N,onEntering:O,onExit:R,onExited:y,onExiting:L,addEndListener:E,timeout:S,...w,children:(D,{ownerState:P,...M})=>v.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...By[D],...h,...a.props.style},ref:T,...M})})});function Vy(e){return ge("MuiPaper",e)}me("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 zy=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return he(s,Vy,o)},_y=U("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}`]]}})(Ie(({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)"}}]}))),Er=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiPaper"}),o=fn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,m={...r,component:i,elevation:a,square:l,variant:c},f=zy(m);return g.jsx(_y,{as:i,ownerState:m,className:de(f.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(${no("#fff",as(a))}, ${no("#fff",as(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",ei="auto",Or=[Qe,ct,ut,Ze],Ln="start",yr="end",Wy="clippingParents",zc="viewport",Gn="popper",Hy="reference",Oa=Or.reduce(function(e,t){return e.concat([t+"-"+Ln,t+"-"+yr])},[]),_c=[].concat(Or,[ei]).reduce(function(e,t){return e.concat([t,t+"-"+Ln,t+"-"+yr])},[]),Uy="beforeRead",Yy="read",Gy="afterRead",Ky="beforeMain",qy="main",Xy="afterMain",Qy="beforeWrite",Zy="write",Jy="afterWrite",eb=[Uy,Yy,Gy,Ky,qy,Xy,Qy,Zy,Jy];function Rt(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dn(e){var t=et(e).Element;return e instanceof t||e instanceof Element}function at(e){var t=et(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ti(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tb(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];!at(s)||!Rt(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 nb(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},{});!at(o)||!Rt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const rb={name:"applyStyles",enabled:!0,phase:"write",fn:tb,effect:nb,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var ln=Math.max,fo=Math.min,Nn=Math.round;function ys(){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 Wc(){return!/^((?!chrome|android).)*safari/i.test(ys())}function jn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&at(e)&&(o=e.offsetWidth>0&&Nn(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Nn(r.height)/e.offsetHeight||1);var i=dn(e)?et(e):window,a=i.visualViewport,l=!Wc()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,m=r.width/o,f=r.height/s;return{width:m,height:f,top:u,right:c+m,bottom:u+f,left:c,x:c,y:u}}function ni(e){var t=jn(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 Hc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ti(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ft(e){return et(e).getComputedStyle(e)}function ob(e){return["table","td","th"].indexOf(Rt(e))>=0}function Kt(e){return((dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ao(e){return Rt(e)==="html"?e:e.assignedSlot||e.parentNode||(ti(e)?e.host:null)||Kt(e)}function $a(e){return!at(e)||Ft(e).position==="fixed"?null:e.offsetParent}function sb(e){var t=/firefox/i.test(ys()),n=/Trident/i.test(ys());if(n&&at(e)){var r=Ft(e);if(r.position==="fixed")return null}var o=Ao(e);for(ti(o)&&(o=o.host);at(o)&&["html","body"].indexOf(Rt(o))<0;){var s=Ft(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 $r(e){for(var t=et(e),n=$a(e);n&&ob(n)&&Ft(n).position==="static";)n=$a(n);return n&&(Rt(n)==="html"||Rt(n)==="body"&&Ft(n).position==="static")?t:n||sb(e)||t}function ri(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lr(e,t,n){return ln(e,fo(t,n))}function ib(e,t,n){var r=lr(e,t,n);return r>n?n:r}function Uc(){return{top:0,right:0,bottom:0,left:0}}function Yc(e){return Object.assign({},Uc(),e)}function Gc(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ab=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Yc(typeof t!="number"?t:Gc(t,Or))};function lb(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Mt(n.placement),l=ri(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var m=ab(o.padding,n),f=ni(s),b=l==="y"?Qe:Ze,d=l==="y"?ct:ut,p=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],h=i[l]-n.rects.reference[l],S=$r(s),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=p/2-h/2,x=m[b],T=C-f[u]-m[d],k=C/2-f[u]/2+w,O=lr(x,k,T),I=l;n.modifiersData[r]=(t={},t[I]=O,t.centerOffset=O-k,t)}}function cb(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)||Hc(t.elements.popper,o)&&(t.elements.arrow=o))}const ub={name:"arrow",enabled:!0,phase:"main",fn:lb,effect:cb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bn(e){return e.split("-")[1]}var db={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Nn(n*o)/o||0,y:Nn(r*o)/o||0}}function Aa(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,m=e.isFixed,f=i.x,b=f===void 0?0:f,d=i.y,p=d===void 0?0:d,h=typeof u=="function"?u({x:b,y:p}):{x:b,y:p};b=h.x,p=h.y;var S=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),w=Ze,x=Qe,T=window;if(c){var k=$r(n),O="clientHeight",I="clientWidth";if(k===et(n)&&(k=Kt(n),Ft(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",I="scrollWidth")),k=k,o===Qe||(o===Ze||o===ut)&&s===yr){x=ct;var N=m&&k===T&&T.visualViewport?T.visualViewport.height:k[O];p-=N-r.height,p*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===yr){w=ut;var L=m&&k===T&&T.visualViewport?T.visualViewport.width:k[I];b-=L-r.width,b*=l?1:-1}}var R=Object.assign({position:a},c&&db),y=u===!0?pb({x:b,y:p},et(n)):{x:b,y:p};if(b=y.x,p=y.y,l){var E;return Object.assign({},R,(E={},E[x]=C?"0":"",E[w]=S?"0":"",E.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",E))}return Object.assign({},R,(t={},t[x]=C?p+"px":"",t[w]=S?b+"px":"",t.transform="",t))}function fb(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:Mt(t.placement),variation:Bn(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,Aa(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,Aa(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 mb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fb,data:{}};var Lr={passive:!0};function hb(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=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Lr)}),a&&l.addEventListener("resize",n.update,Lr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Lr)}),a&&l.removeEventListener("resize",n.update,Lr)}}const gb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hb,data:{}};var yb={left:"right",right:"left",bottom:"top",top:"bottom"};function eo(e){return e.replace(/left|right|bottom|top/g,function(t){return yb[t]})}var bb={start:"end",end:"start"};function Fa(e){return e.replace(/start|end/g,function(t){return bb[t]})}function oi(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function si(e){return jn(Kt(e)).left+oi(e).scrollLeft}function vb(e,t){var n=et(e),r=Kt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Wc();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+si(e),y:l}}function xb(e){var t,n=Kt(e),r=oi(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ln(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ln(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+si(e),l=-r.scrollTop;return Ft(o||n).direction==="rtl"&&(a+=ln(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function ii(e){var t=Ft(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Kc(e){return["html","body","#document"].indexOf(Rt(e))>=0?e.ownerDocument.body:at(e)&&ii(e)?e:Kc(Ao(e))}function cr(e,t){var n;t===void 0&&(t=[]);var r=Kc(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],ii(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(cr(Ao(i)))}function bs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sb(e,t){var n=jn(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 La(e,t,n){return t===zc?bs(vb(e,n)):dn(t)?Sb(t,n):bs(xb(Kt(e)))}function wb(e){var t=cr(Ao(e)),n=["absolute","fixed"].indexOf(Ft(e).position)>=0,r=n&&at(e)?$r(e):e;return dn(r)?t.filter(function(o){return dn(o)&&Hc(o,r)&&Rt(o)!=="body"}):[]}function Cb(e,t,n,r){var o=t==="clippingParents"?wb(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=La(e,c,r);return l.top=ln(u.top,l.top),l.right=fo(u.right,l.right),l.bottom=fo(u.bottom,l.bottom),l.left=ln(u.left,l.left),l},La(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 qc(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mt(r):null,s=r?Bn(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qe:l={x:i,y:t.y-n.height};break;case ct:l={x:i,y:t.y+t.height};break;case ut:l={x:t.x+t.width,y:a};break;case Ze:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?ri(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Ln:l[c]=l[c]-(t[u]/2-n[u]/2);break;case yr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function br(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?Wy:a,c=n.rootBoundary,u=c===void 0?zc:c,m=n.elementContext,f=m===void 0?Gn:m,b=n.altBoundary,d=b===void 0?!1:b,p=n.padding,h=p===void 0?0:p,S=Yc(typeof h!="number"?h:Gc(h,Or)),C=f===Gn?Hy:Gn,w=e.rects.popper,x=e.elements[d?C:f],T=Cb(dn(x)?x:x.contextElement||Kt(e.elements.popper),l,u,i),k=jn(e.elements.reference),O=qc({reference:k,element:w,placement:o}),I=bs(Object.assign({},w,O)),N=f===Gn?I:k,L={top:T.top-N.top+S.top,bottom:N.bottom-T.bottom+S.bottom,left:T.left-N.left+S.left,right:N.right-T.right+S.right},R=e.modifiersData.offset;if(f===Gn&&R){var y=R[o];Object.keys(L).forEach(function(E){var D=[ut,ct].indexOf(E)>=0?1:-1,P=[Qe,ct].indexOf(E)>=0?"y":"x";L[E]+=y[P]*D})}return L}function Pb(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?_c:l,u=Bn(r),m=u?a?Oa:Oa.filter(function(d){return Bn(d)===u}):Or,f=m.filter(function(d){return c.indexOf(d)>=0});f.length===0&&(f=m);var b=f.reduce(function(d,p){return d[p]=br(e,{placement:p,boundary:o,rootBoundary:s,padding:i})[Mt(p)],d},{});return Object.keys(b).sort(function(d,p){return b[d]-b[p]})}function kb(e){if(Mt(e)===ei)return[];var t=eo(e);return[Fa(e),t,Fa(t)]}function Mb(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,m=n.rootBoundary,f=n.altBoundary,b=n.flipVariations,d=b===void 0?!0:b,p=n.allowedAutoPlacements,h=t.options.placement,S=Mt(h),C=S===h,w=l||(C||!d?[eo(h)]:kb(h)),x=[h].concat(w).reduce(function(ie,z){return ie.concat(Mt(z)===ei?Pb(t,{placement:z,boundary:u,rootBoundary:m,padding:c,flipVariations:d,allowedAutoPlacements:p}):z)},[]),T=t.rects.reference,k=t.rects.popper,O=new Map,I=!0,N=x[0],L=0;L<x.length;L++){var R=x[L],y=Mt(R),E=Bn(R)===Ln,D=[Qe,ct].indexOf(y)>=0,P=D?"width":"height",M=br(t,{placement:R,boundary:u,rootBoundary:m,altBoundary:f,padding:c}),A=D?E?ut:Ze:E?ct:Qe;T[P]>k[P]&&(A=eo(A));var $=eo(A),F=[];if(s&&F.push(M[y]<=0),a&&F.push(M[A]<=0,M[$]<=0),F.every(function(ie){return ie})){N=R,I=!1;break}O.set(R,F)}if(I)for(var V=d?3:1,q=function(z){var Z=x.find(function(X){var Y=O.get(X);if(Y)return Y.slice(0,z).every(function(W){return W})});if(Z)return N=Z,"break"},re=V;re>0;re--){var ae=q(re);if(ae==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Tb={name:"flip",enabled:!0,phase:"main",fn:Mb,requiresIfExists:["offset"],data:{_skip:!1}};function Na(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 ja(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function Db(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=br(t,{elementContext:"reference"}),a=br(t,{altBoundary:!0}),l=Na(i,r),c=Na(a,o,s),u=ja(l),m=ja(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}const Rb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Db};function Ib(e,t,n){var r=Mt(e),o=[Ze,Qe].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,[Ze,ut].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Eb(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=_c.reduce(function(u,m){return u[m]=Ib(m,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 Ob={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Eb};function $b(e){var t=e.state,n=e.name;t.modifiersData[n]=qc({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ab={name:"popperOffsets",enabled:!0,phase:"read",fn:$b,data:{}};function Fb(e){return e==="x"?"y":"x"}function Lb(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,m=n.padding,f=n.tether,b=f===void 0?!0:f,d=n.tetherOffset,p=d===void 0?0:d,h=br(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:u}),S=Mt(t.placement),C=Bn(t.placement),w=!C,x=ri(S),T=Fb(x),k=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,L=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,y={x:0,y:0};if(k){if(s){var E,D=x==="y"?Qe:Ze,P=x==="y"?ct:ut,M=x==="y"?"height":"width",A=k[x],$=A+h[D],F=A-h[P],V=b?-I[M]/2:0,q=C===Ln?O[M]:I[M],re=C===Ln?-I[M]:-O[M],ae=t.elements.arrow,ie=b&&ae?ni(ae):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Uc(),Z=z[D],X=z[P],Y=lr(0,O[M],ie[M]),W=w?O[M]/2-V-Y-Z-L.mainAxis:q-Y-Z-L.mainAxis,G=w?-O[M]/2+V+Y+X+L.mainAxis:re+Y+X+L.mainAxis,ee=t.elements.arrow&&$r(t.elements.arrow),J=ee?x==="y"?ee.clientTop||0:ee.clientLeft||0:0,B=(E=R?.[x])!=null?E:0,K=A+W-B-J,oe=A+G-B,te=lr(b?fo($,K):$,A,b?ln(F,oe):F);k[x]=te,y[x]=te-A}if(a){var ce,se=x==="x"?Qe:Ze,fe=x==="x"?ct:ut,be=k[T],Se=T==="y"?"height":"width",pe=be+h[se],Ke=be-h[fe],Ne=[Qe,Ze].indexOf(S)!==-1,mt=(ce=R?.[T])!=null?ce:0,ht=Ne?pe:be-O[Se]-I[Se]-mt+L.altAxis,nt=Ne?be+O[Se]+I[Se]-mt-L.altAxis:Ke,rt=b&&Ne?ib(ht,be,nt):lr(b?ht:pe,be,b?nt:Ke);k[T]=rt,y[T]=rt-be}t.modifiersData[r]=y}}const Nb={name:"preventOverflow",enabled:!0,phase:"main",fn:Lb,requiresIfExists:["offset"]};function jb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bb(e){return e===et(e)||!at(e)?oi(e):jb(e)}function Vb(e){var t=e.getBoundingClientRect(),n=Nn(t.width)/e.offsetWidth||1,r=Nn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zb(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&Vb(t),s=Kt(t),i=jn(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Rt(t)!=="body"||ii(s))&&(a=Bb(t)),at(t)?(l=jn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=si(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function _b(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 Wb(e){var t=_b(e);return eb.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Hb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ub(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 Ba={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){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 Yb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Ba:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ba,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],f=!1,b={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;p(),u.options=Object.assign({},s,u.options,C),u.scrollParents={reference:dn(a)?cr(a):a.contextElement?cr(a.contextElement):[],popper:cr(l)};var w=Wb(Ub([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(x){return x.enabled}),d(),b.update()},forceUpdate:function(){if(!f){var S=u.elements,C=S.reference,w=S.popper;if(Va(C,w)){u.rects={reference:zb(C,$r(w),u.options.strategy==="fixed"),popper:ni(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var T=u.orderedModifiers[x],k=T.fn,O=T.options,I=O===void 0?{}:O,N=T.name;typeof k=="function"&&(u=k({state:u,options:I,name:N,instance:b})||u)}}}},update:Hb(function(){return new Promise(function(h){b.forceUpdate(),h(u)})}),destroy:function(){p(),f=!0}};if(!Va(a,l))return b;b.setOptions(c).then(function(h){!f&&c.onFirstUpdate&&c.onFirstUpdate(h)});function d(){u.orderedModifiers.forEach(function(h){var S=h.name,C=h.options,w=C===void 0?{}:C,x=h.effect;if(typeof x=="function"){var T=x({state:u,name:S,instance:b,options:w}),k=function(){};m.push(T||k)}})}function p(){m.forEach(function(h){return h()}),m=[]}return b}}var Gb=[gb,Ab,mb,rb,Ob,Tb,Nb,ub,Rb],Kb=Yb({defaultModifiers:Gb});function qb(e){return typeof e=="function"?e():e}const Xc=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=v.useState(null),l=Pe(v.isValidElement(r)?zn(r):null,n);if(He(()=>{s||a(qb(o)||document.body)},[o,s]),He(()=>{if(i&&!s)return ls(n,i),()=>{ls(n,null)}},[n,i,s]),s){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return i&&zd.createPortal(r,i)});function Xb(e){return ge("MuiPopper",e)}me("MuiPopper",["root"]);function Qb(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 vs(e){return typeof e=="function"?e():e}function Zb(e){return e.nodeType!==void 0}const Jb=e=>{const{classes:t}=e;return he({root:["root"]},Xb,t)},ev={},tv=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:m,slotProps:f={},slots:b={},TransitionProps:d,ownerState:p,...h}=t,S=v.useRef(null),C=Pe(S,n),w=v.useRef(null),x=Pe(w,m),T=v.useRef(x);He(()=>{T.current=x},[x]),v.useImperativeHandle(m,()=>w.current,[]);const k=Qb(c,s),[O,I]=v.useState(k),[N,L]=v.useState(vs(r));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{r&&L(vs(r))},[r]),He(()=>{if(!N||!l)return;const P=$=>{I($.placement)};let M=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{P($)}}];a!=null&&(M=M.concat(a)),u&&u.modifiers!=null&&(M=M.concat(u.modifiers));const A=Kb(N,S.current,{placement:k,...u,modifiers:M});return T.current(A),()=>{A.destroy(),T.current(null)}},[N,i,a,l,u,k]);const R={placement:O};d!==null&&(R.TransitionProps=d);const y=Jb(t),E=b.root??"div",D=Ce({elementType:E,externalSlotProps:f.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:y.root});return g.jsx(E,{...D,children:typeof o=="function"?o(R):o})}),nv=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:m="bottom",popperOptions:f=ev,popperRef:b,style:d,transition:p=!1,slotProps:h={},slots:S={},...C}=t,[w,x]=v.useState(!0),T=()=>{x(!1)},k=()=>{x(!0)};if(!l&&!u&&(!p||w))return null;let O;if(s)O=s;else if(r){const L=vs(r);O=L&&Zb(L)?Ye(L).body:Ye(null).body}const I=!u&&l&&(!p||w)?"none":void 0,N=p?{in:u,onEnter:T,onExited:k}:void 0;return g.jsx(Xc,{disablePortal:a,container:O,children:g.jsx(tv,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:p?!w:u,placement:m,popperOptions:f,popperRef:b,slotProps:h,slots:S,...C,style:{position:"fixed",top:0,left:0,display:I,...d},TransitionProps:N,children:o})})}),rv=U(nv,{name:"MuiPopper",slot:"Root"})({}),Qc=v.forwardRef(function(t,n){const r=vt(),o=we({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:m,modifiers:f,open:b,placement:d,popperOptions:p,popperRef:h,transition:S,slots:C,slotProps:w,...x}=o,T=C?.root??a?.Root,k={anchorEl:s,container:c,disablePortal:u,keepMounted:m,modifiers:f,open:b,placement:d,popperOptions:p,popperRef:h,transition:S,...x};return g.jsx(rv,{as:i,direction:r?"rtl":"ltr",slots:{root:T},slotProps:w??l,...k,ref:n})}),ov=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sv(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 iv(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 av(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||iv(e))}function lv(e){const t=[],n=[];return Array.from(e.querySelectorAll(ov)).forEach((r,o)=>{const s=sv(r);s===-1||!av(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 cv(){return!0}function Zc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=lv,isEnabled:i=cv,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),m=v.useRef(null),f=v.useRef(null),b=v.useRef(!1),d=v.useRef(null),p=Pe(zn(t),d),h=v.useRef(null);v.useEffect(()=>{!a||!d.current||(b.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!d.current)return;const w=Ye(d.current);return d.current.contains(w.activeElement)||(d.current.hasAttribute("tabIndex")||d.current.setAttribute("tabIndex","-1"),b.current&&d.current.focus()),()=>{o||(m.current&&m.current.focus&&(l.current=!0,m.current.focus()),m.current=null)}},[a]),v.useEffect(()=>{if(!a||!d.current)return;const w=Ye(d.current),x=O=>{h.current=O,!(r||!i()||O.key!=="Tab")&&w.activeElement===d.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const O=d.current;if(O===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(O.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!b.current)return;let I=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(I=s(d.current)),I.length>0){const N=!!(h.current?.shiftKey&&h.current?.key==="Tab"),L=I[0],R=I[I.length-1];typeof L!="string"&&typeof R!="string"&&(N?R.focus():L.focus())}else O.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",x,!0);const k=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",T),w.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const S=w=>{m.current===null&&(m.current=w.relatedTarget),b.current=!0,f.current=w.target;const x=t.props.onFocus;x&&x(w)},C=w=>{m.current===null&&(m.current=w.relatedTarget),b.current=!0};return g.jsxs(v.Fragment,{children:[g.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:S}),g.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}function uv(e){return ge("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);function dv(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const pv=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},qe=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?qe(t.shadowRoot):t:null},fv="@media (pointer: fine)",mv="@media (prefers-reduced-motion: reduce)",Rn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),za=Rn&&Rn[1]?parseInt(Rn[1],10):null,_a=Rn&&Rn[2]?parseInt(Rn[2],10):null,hv=za&&za<10||_a&&_a<13||!1,Jc=()=>xc(mv,{defaultMatches:!1})||hv,gv=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],yv=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"]},uv,t)},bv=U(Qc,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),vv=U(Er,{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 xv(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Sv(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=ue(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=Ye(o.current);if(!o.current||"clientX"in l&&xv(l,u))return;if(n.current){n.current=!1;return}let m;l.composedPath?m=l.composedPath().indexOf(o.current)>-1:m=!u.documentElement.contains(l.target)||o.current.contains(l.target),!m&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=Ye(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=Ye(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const wv=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ve(e,gv),m=j({},o,{placement:r}),f=Ce({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:m});return g.jsx(n,j({},u,f,{onClick:b=>{l(b),f.onClick?.(b)},onTouchStart:b=>{c(b),f.onTouchStart?.(b)},ownerState:m,children:s}))});function Cv(e){const t=$e({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:m,slotProps:f,reduceAnimations:b}=t;v.useEffect(()=>{function P(M){l&&M.key==="Escape"&&a()}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[a,l]);const d=v.useRef(null);v.useEffect(()=>{c==="tooltip"||s&&!s()||(l?d.current=qe(document):d.current&&d.current instanceof HTMLElement&&setTimeout(()=>{d.current instanceof HTMLElement&&d.current.focus()}))},[l,c,s]);const[p,h,S]=Sv(l,i??a),C=v.useRef(null),w=Pe(C,o),x=Pe(w,p),T=t,k=yv(T),O=Jc(),I=b??O,N=P=>{P.key==="Escape"&&(P.stopPropagation(),a())},L=m?.desktopTransition??I?un:gr,R=m?.desktopTrapFocus??Zc,y=m?.desktopPaper??vv,E=m?.popper??bv,D=Ce({elementType:E,externalSlotProps:f?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:N},className:k.root,ownerState:t});return g.jsx(E,j({},D,{children:({TransitionProps:P,placement:M})=>g.jsx(R,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f?.desktopTrapFocus,{children:g.jsx(L,j({},P,f?.desktopTransition,{children:g.jsx(wv,{PaperComponent:y,ownerState:T,popperPlacement:M,ref:x,onPaperClick:h,onPaperTouchStart:S,paperClasses:k.paper,paperSlotProps:f?.desktopPaper,children:r})}))}))}))}const Pv=({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}},ai=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Ae(),a=v.useRef(n),l=t??a.current??s.emptyValue,c=v.useMemo(()=>s.getTimezone(i,l),[i,s,l]),u=ue(d=>c==null?d:s.setTimezone(i,c,d));let m;e?m=e:c?m=c:r?m=i.getTimezone(r):m="default";const f=v.useMemo(()=>s.setTimezone(i,m,l),[s,i,m,l]),b=ue((d,...p)=>{const h=u(d);o?.(h,...p)});return{value:f,handleValueChange:b,timezone:m}},li=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Tt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=ue((u,...m)=>{l(u),s?.(u,...m)});return ai({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},kv=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},Mv=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},Tv=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},Dv=({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:m}=e,{current:f}=v.useRef(l),{current:b}=v.useRef(a!==void 0),[d,p]=v.useState(u),h=Ae(),S=mn(),{isOpen:C,setIsOpen:w}=Pv(e),{timezone:x,value:T,handleValueChange:k}=ai({timezone:u,value:a,defaultValue:f,referenceDate:m,onChange:i,valueManager:t}),[O,I]=v.useState(()=>{let W;return T!==void 0?W=T:f!==void 0?W=f:W=t.emptyValue,{draft:W,lastPublishedValue:W,lastCommittedValue:W,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),N=t.getTimezone(h,O.draft);d!==u&&(p(u),u&&N&&u!==N&&I(W=>j({},W,{draft:t.setTimezone(h,u,W.draft)})));const{getValidationErrorForNewValue:L}=Nc({props:e,validator:o,timezone:x,value:O.draft,onError:e.onError}),R=ue(W=>{const G={action:W,dateState:O,hasChanged:te=>!t.areValuesEqual(h,W.value,te),isControlled:b,closeOnSelect:c},ee=kv(G),J=Mv(G),B=Tv(G);I(te=>j({},te,{draft:W.value,lastPublishedValue:ee?W.value:te.lastPublishedValue,lastCommittedValue:J?W.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const oe=()=>(K||(K={validationError:W.name==="setValueFromField"?W.context.validationError:L(W.value)},W.name==="setValueFromShortcut"&&(K.shortcut=W.shortcut)),K);ee&&k(W.value,oe()),J&&s&&s(W.value,oe()),B&&w(!1)});if(O.lastControlledValue!==a){const W=t.areValuesEqual(h,O.draft,T);I(G=>j({},G,{lastControlledValue:a},W?{}:{lastCommittedValue:T,lastPublishedValue:T,draft:T,hasBeenModifiedSinceMount:!0}))}const y=ue(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),E=ue(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=ue(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),P=ue(()=>{R({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),M=ue(()=>{R({value:t.getTodayValue(h,x,n),name:"setValueFromAction",pickerAction:"today"})}),A=ue(W=>{W.preventDefault(),w(!0)}),$=ue(W=>{W?.preventDefault(),w(!1)}),F=ue((W,G="partial")=>R({name:"setValueFromView",value:W,selectionState:G})),V=ue((W,G,ee)=>R({name:"setValueFromShortcut",value:W,changeImportance:G,shortcut:ee})),q=ue((W,G)=>R({name:"setValueFromField",value:W,context:G})),re={onClear:y,onAccept:E,onDismiss:D,onCancel:P,onSetToday:M,onOpen:A,onClose:$},ae={value:O.draft,onChange:q},ie=v.useMemo(()=>t.cleanValue(h,O.draft),[h,t,O.draft]),z={value:ie,onChange:F,onClose:$,open:C},X=j({},re,{value:ie,onChange:F,onSelectShortcut:V,isValid:W=>{const G=o({adapter:S,value:W,timezone:x,props:e});return!t.hasError(G)}}),Y=v.useMemo(()=>({onOpen:A,onClose:$,open:C}),[C,$,A]);return{open:C,fieldProps:ae,viewProps:z,layoutProps:X,actions:re,contextValue:Y}};function eu({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]),[m,f]=Tt({name:"useViews",state:"view",controlled:r,default:u.current}),b=v.useRef(s?m:null),[d,p]=Tt({name:"useViews",state:"focusedView",controlled:i,default:b.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(O=>!o.includes(O)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,m,o]);const h=o.indexOf(m),S=o[h-1]??null,C=o[h+1]??null,w=ue((O,I)=>{p(I?O:N=>O===N?null:N),a?.(O,I)}),x=ue(O=>{w(O,!0),O!==m&&(f(O),t&&t(O))}),T=ue(()=>{C&&x(C)}),k=ue((O,I,N)=>{const L=I==="finish",R=N?o.indexOf(N)<o.length-1:!!C;if(e(O,L&&R?"partial":I,N),N&&N!==m){const E=o[o.indexOf(N)+1];E&&x(E)}else L&&T()});return{view:m,setView:x,focusedView:d,setFocusedView:w,nextView:C,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:T,setValueAndGoToNextView:k}}const Rv=["className","sx"],Iv=({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:m,onViewChange:f,viewRenderers:b,timezone:d}=e,p=ve(e,Rv),{view:h,setView:S,defaultView:C,focusedView:w,setFocusedView:x,setValueAndGoToNextView:T}=eu({view:c,views:u,openTo:m,onChange:i,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:O}=v.useMemo(()=>u.reduce((D,P)=>{let M;return b[P]!=null?M="UI":M="field",D.viewModeLookup[P]=M,M==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,u]),I=v.useMemo(()=>u.reduce((D,P)=>b[P]!=null&&ag(P)?D+1:D,0),[b,u]),N=O[h],L=ue(()=>N==="UI"),[R,y]=v.useState(N==="UI"?h:null);return R!==h&&O[h]==="UI"&&y(h),He(()=>{N==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(h),s?.current?.focusField(h)}))},[h]),He(()=>{if(!a)return;let D=h;N==="field"&&R!=null&&(D=R),D!==C&&O[D]==="UI"&&O[C]==="UI"&&(D=C),D!==h&&S(D),x(D,!0)},[a]),{hasUIView:k,shouldRestoreFocus:L,layoutProps:{views:u,view:R,onViewChange:S},renderCurrentView:()=>{if(R==null)return null;const D=b[R];if(D==null)return null;const P=j({},p,n,t,{views:u,timezone:d,onChange:T,view:R,onViewChange:S,focusedView:w,onFocusedViewChange:x,showViewSwitcher:I>1,timeViewsCount:I});return o?o(b,R,P):D(P)}}};function Wa(){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 Ev=(e,t)=>{const[n,r]=v.useState(Wa);return He(()=>{const s=()=>{r(Wa())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),dv(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Ov=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Ev(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function $v(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 tu=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=Dv({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Iv({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),m=Ov({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=$v({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:m.layoutProps,contextValue:c.contextValue,ownerState:f}};function nu(e){return ge("MuiPickersLayout",e)}const Xt=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Av(e){return ge("MuiButton",e)}const Qt=me("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"]),Fv=v.createContext({}),Lv=v.createContext(void 0),Nv=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}${le(t)}`,`size${le(o)}`,`${s}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${le(a)}`],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=he(c,Av,l);return{...l,...u}},ru=[{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}}}],jv=U(Fn,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ie(({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"},[`&.${Qt.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]},[`&.${Qt.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Qt.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)",[`&.${Qt.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(Xe()).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"},[`&.${Qt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qt.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}),[`&.${Qt.loading}`]:{color:"transparent"}}}]}})),Bv=U("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(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}},...ru]})),Vv=U("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(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}},...ru]})),zv=U("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}}]})),Ha=U("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),sr=v.forwardRef(function(t,n){const r=v.useContext(Fv),o=v.useContext(Lv),s=mr(r,t),i=we({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:m=!1,disableElevation:f=!1,disableFocusRipple:b=!1,endIcon:d,focusVisibleClassName:p,fullWidth:h=!1,id:S,loading:C=null,loadingIndicator:w,loadingPosition:x="center",size:T="medium",startIcon:k,type:O,variant:I="text",...N}=i,L=xt(S),R=w??g.jsx(Js,{"aria-labelledby":L,color:"inherit",size:16}),y={...i,color:l,component:c,disabled:m,disableElevation:f,disableFocusRipple:b,fullWidth:h,loading:C,loadingIndicator:R,loadingPosition:x,size:T,type:O,variant:I},E=Nv(y),D=(k||C&&x==="start")&&g.jsx(Bv,{className:E.startIcon,ownerState:y,children:k||g.jsx(Ha,{className:E.loadingIconPlaceholder,ownerState:y})}),P=(d||C&&x==="end")&&g.jsx(Vv,{className:E.endIcon,ownerState:y,children:d||g.jsx(Ha,{className:E.loadingIconPlaceholder,ownerState:y})}),M=o||"",A=typeof C=="boolean"?g.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:C&&g.jsx(zv,{className:E.loadingIndicator,ownerState:y,children:R})}):null;return g.jsxs(jv,{ownerState:y,className:de(r.className,E.root,u,M),component:c,disabled:m||C,focusRipple:!b,focusVisibleClassName:de(E.focusVisible,p),ref:n,type:O,id:C?L:S,...N,classes:E,children:[D,x!=="end"&&A,a,x==="end"&&A,P]})});function _v(e){return ge("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const Wv=e=>{const{classes:t,disableSpacing:n}=e;return he({root:["root",!n&&"spacing"]},_v,t)},Hv=U("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}}}]}),Uv=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=Wv(a);return g.jsx(Hv,{className:de(l.root,o),ownerState:a,ref:n,...i})}),Yv=["onAccept","onClear","onCancel","onSetToday","actions"];function Gv(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,Yv),a=Nt();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return g.jsx(sr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return g.jsx(sr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return g.jsx(sr,{onClick:t,children:a.okButtonLabel},c);case"today":return g.jsx(sr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return g.jsx(Uv,j({},i,{children:l}))}const In=v.createContext({});function Kv(e){return ge("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const qv=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return he({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Kv,t)},Xv=U("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}}]}),ou=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,m=v.useMemo(()=>({dense:a}),[a]),f={...r,component:i,dense:a,disablePadding:l},b=qv(f);return g.jsx(In.Provider,{value:m,children:g.jsxs(Xv,{as:i,className:de(b.root,s),ref:n,ownerState:f,...u,children:[c,o]})})});function Qv(e){return ge("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Zv=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Jv(e){return ge("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const ex=e=>{const{disableGutters:t,classes:n}=e;return he({root:["root",t&&"disableGutters"]},Jv,n)},tx=U("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}}]}),su=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=v.useContext(In),a={...r,disableGutters:i.disableGutters},l=ex(a);return g.jsx(tx,{className:de(l.root,o),ownerState:a,ref:n,...s})});su.muiName="ListItemSecondaryAction";const nx=(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]},rx=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return he({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},Qv,n)},ox=U("div",{name:"MuiListItem",slot:"Root",overridesResolver:nx})(Ie(({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:{[`& > .${Zv.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}}]}))),sx=U("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),ix=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:m,...f}={},dense:b=!1,disableGutters:d=!1,disablePadding:p=!1,divider:h=!1,secondaryAction:S,slotProps:C={},slots:w={},...x}=r,T=v.useContext(In),k=v.useMemo(()=>({dense:b||T.dense||!1,alignItems:o,disableGutters:d}),[o,T.dense,b,d]),O=v.useRef(null),I=v.Children.toArray(s),N=I.length&&Ur(I[I.length-1],["ListItemSecondaryAction"]),L={...r,alignItems:o,dense:k.dense,disableGutters:d,disablePadding:p,divider:h,hasSecondaryAction:N},R=rx(L),y=Pe(O,n),E=w.root||l.Root||ox,D=C.root||c.root||{},P={className:de(R.root,D.className,i),...x};let M=a||"li";return N?(M=!P.component&&!a?"div":M,u==="li"&&(M==="li"?M="div":P.component==="li"&&(P.component="div")),g.jsx(In.Provider,{value:k,children:g.jsxs(sx,{as:u,className:de(R.container,m),ref:y,ownerState:L,...f,children:[g.jsx(E,{...D,...!An(E)&&{as:M,ownerState:{...L,...D.ownerState}},...P,children:I}),I.pop()]})})):g.jsx(In.Provider,{value:k,children:g.jsxs(E,{...D,as:M,ref:y,...!An(E)&&{ownerState:{...L,...D.ownerState}},...P,children:[I,S&&g.jsx(su,{children:S})]})})}),ax=Ue(g.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 lx(e){return ge("MuiChip",e)}const xe=me("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 Le(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:m={[e]:void 0},...f}=s,b=u[e]||r,d=Io(m[e],o),{props:{component:p,...h},internalRef:S}=kc({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:d}),C=Pe(S,d?.ref,t.ref),w=e==="root"?p||c:p,x=Pc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...h,...w&&!a&&{as:w},...w&&a&&{component:w},ref:C},o);return[b,x]}const cx=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${le(r)}`,`color${le(o)}`,a&&"clickable",a&&`clickableColor${le(o)}`,i&&"deletable",i&&`deletableColor${le(o)}`,`${l}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(l)}Color${le(o)}`]};return he(c,lx,t)},ux=U("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[{[`& .${xe.avatar}`]:t.avatar},{[`& .${xe.avatar}`]:t[`avatar${le(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${le(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${le(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(r)}`]},t.root,t[`size${le(a)}`],t[`color${le(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${le(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${le(r)}`],t[l],t[`${l}${le(r)}`]]}})(Ie(({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",[`&.${xe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${xe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${xe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${xe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${xe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${xe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${xe.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,[`& .${xe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${xe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Xe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${xe.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:{[`& .${xe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${xe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${xe.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(Xe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${xe.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}`)},[`&.${xe.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(Xe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${xe.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]}`,[`&.${xe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${xe.avatar}`]:{marginLeft:4},[`& .${xe.avatarSmall}`]:{marginLeft:2},[`& .${xe.icon}`]:{marginLeft:4},[`& .${xe.iconSmall}`]:{marginLeft:2},[`& .${xe.deleteIcon}`]:{marginRight:5},[`& .${xe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Xe()).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)}`,[`&.${xe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${xe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${xe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),dx=U("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(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 Ua(e){return e.key==="Backspace"||e.key==="Delete"}const iu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:m,label:f,onClick:b,onDelete:d,onKeyDown:p,onKeyUp:h,size:S="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:x=!1,slots:T={},slotProps:k={},...O}=r,I=v.useRef(null),N=Pe(I,n),L=Z=>{Z.stopPropagation(),d&&d(Z)},R=Z=>{Z.currentTarget===Z.target&&Ua(Z)&&Z.preventDefault(),p&&p(Z)},y=Z=>{Z.currentTarget===Z.target&&d&&Ua(Z)&&d(Z),h&&h(Z)},E=i!==!1&&b?!0:i,D=E||d?Fn:l||"div",P={...r,component:D,disabled:u,size:S,color:a,iconColor:v.isValidElement(m)&&m.props.color||a,onDelete:!!d,clickable:E,variant:C},M=cx(P),A=D===Fn?{component:l||"div",focusVisibleClassName:M.focusVisible,...d&&{disableRipple:!0}}:{};let $=null;d&&($=c&&v.isValidElement(c)?v.cloneElement(c,{className:de(c.props.className,M.deleteIcon),onClick:L}):g.jsx(ax,{className:M.deleteIcon,onClick:L}));let F=null;o&&v.isValidElement(o)&&(F=v.cloneElement(o,{className:de(M.avatar,o.props.className)}));let V=null;m&&v.isValidElement(m)&&(V=v.cloneElement(m,{className:de(M.icon,m.props.className)}));const q={slots:T,slotProps:k},[re,ae]=Le("root",{elementType:ux,externalForwardedProps:{...q,...O},ownerState:P,shouldForwardComponentProp:!0,ref:N,className:de(M.root,s),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:x&&u?-1:w,...A},getSlotProps:Z=>({...Z,onClick:X=>{Z.onClick?.(X),b?.(X)},onKeyDown:X=>{Z.onKeyDown?.(X),R(X)},onKeyUp:X=>{Z.onKeyUp?.(X),y(X)}})}),[ie,z]=Le("label",{elementType:dx,externalForwardedProps:q,ownerState:P,className:M.label});return g.jsxs(re,{as:D,...ae,children:[F||V,g.jsx(ie,{...z,children:f}),$]})}),vr=36,Fo=2,Lo=320,px=280,ci=336,fx=["items","changeImportance","isLandscape","onChange","isValid"],mx=["getValue"];function hx(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,fx);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,mx);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return g.jsx(ou,j({dense:!0,sx:[{maxHeight:ci,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>g.jsx(ix,{children:g.jsx(iu,j({},a))},a.id??a.label))}))}function gx(e){return e.view!==null}const yx=e=>{const{classes:t,isLandscape:n}=e;return he({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},nu,t)},bx=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:m,isValid:f,isLandscape:b,disabled:d,readOnly:p,children:h,slots:S,slotProps:C}=e,w=yx(e),x=S?.actionBar??Gv,T=Ce({elementType:x,externalSlotProps:C?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:w.actionBar,ownerState:j({},e,{wrapperVariant:t})}),k=g.jsx(x,j({},T)),O=S?.toolbar,I=Ce({elementType:O,externalSlotProps:C?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:d,readOnly:p},className:w.toolbar,ownerState:j({},e,{wrapperVariant:t})}),N=gx(I)&&O?g.jsx(O,j({},I)):null,L=h,R=S?.tabs,y=i&&R?g.jsx(R,j({view:i,onViewChange:l,className:w.tabs},C?.tabs)):null,E=S?.shortcuts??hx,D=Ce({elementType:E,externalSlotProps:C?.shortcuts,additionalProps:{isValid:f,isLandscape:b,onChange:m},className:w.shortcuts,ownerState:{isValid:f,isLandscape:b,onChange:m,wrapperVariant:t}}),P=i&&E?g.jsx(E,j({},D)):null;return{toolbar:N,content:L,tabs:y,actionBar:k,shortcuts:P}},vx=e=>{const{isLandscape:t,classes:n}=e;return he({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},nu,n)},xx=U("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Xt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Xt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Xt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Xt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Xt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Xt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Xt.shortcuts}`]:{gridColumn:3}}}]}),Sx=U("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),au=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=bx(r),{sx:c,className:u,isLandscape:m,wrapperVariant:f}=r,b=vx(r);return g.jsxs(xx,{ref:n,sx:c,className:de(b.root,u),ownerState:r,children:[m?l:o,m?o:l,g.jsx(Sx,{className:b.contentWrapper,children:f==="desktop"?g.jsxs(v.Fragment,{children:[s,i]}):g.jsxs(v.Fragment,{children:[i,s]})}),a]})}),wx=v.createContext(null);function lu(e){const{contextValue:t,localeText:n,children:r}=e;return g.jsx(wx.Provider,{value:t,children:g.jsx(hr,{localeText:n,children:r})})}const Cx=["props","getOpenDialogAriaText"],Px=["ownerState"],kx=["ownerState"],Mx=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,Cx);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,name:d,label:p,inputRef:h,readOnly:S,disabled:C,autoFocus:w,localeText:x,reduceAnimations:T}=t,k=v.useRef(null),O=v.useRef(null),I=xt(),N=s?.toolbar?.hidden??!1,{open:L,actions:R,hasUIView:y,layoutProps:E,renderCurrentView:D,shouldRestoreFocus:P,fieldProps:M,contextValue:A,ownerState:$}=tu(j({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),F=o.inputAdornment??jc,V=Ce({elementType:F,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),q=ve(V,Px),re=o.openPickerButton??Ir,ae=Ce({elementType:re,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:C||S,onClick:L?R.onClose:R.onOpen,"aria-label":n(M.value),edge:q.position},ownerState:t}),ie=ve(ae,kx),z=o.openPickerIcon,Z=Ce({elementType:z,externalSlotProps:s?.openPickerIcon,ownerState:$}),X=o.field,Y=Ce({elementType:X,externalSlotProps:s?.field,additionalProps:j({},M,N&&{id:I},{readOnly:S,disabled:C,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,label:p,name:d,autoFocus:w&&!t.open,focused:L?!0:void 0},h?{inputRef:h}:{}),ownerState:t});y&&(Y.InputProps=j({},Y.InputProps,{ref:k},!t.disableOpenPicker&&{[`${q.position}Adornment`]:g.jsx(F,j({},q,{children:g.jsx(re,j({},ie,{children:g.jsx(z,j({},Z))}))}))}));const W=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},Y.slots),G=o.layout??au;let ee=I;N&&(p?ee=`${I}-label`:ee=void 0);const J=j({},s,{toolbar:j({},s?.toolbar,{titleId:I}),popper:j({"aria-labelledby":ee},s?.popper)}),B=Pe(O,Y.unstableFieldRef);return{renderPicker:()=>g.jsxs(lu,{contextValue:A,localeText:x,children:[g.jsx(X,j({},Y,{slots:W,slotProps:J,unstableFieldRef:B})),g.jsx(Cv,j({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:L,slots:o,slotProps:J,shouldRestoreFocus:P,reduceAnimations:T,children:g.jsx(G,j({},E,J?.layout,{slots:o,slotProps:J,children:D()}))}))]})}},Tx=Ue(g.jsx("path",{d:"M7 10l5 5 5-5z"})),Dx=Ue(g.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Rx=Ue(g.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Ix=Ue(g.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"}));Ue(g.jsxs(v.Fragment,{children:[g.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"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));Ue(g.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"}));Ue(g.jsxs(v.Fragment,{children:[g.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"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Ex=Ue(g.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 Nr(e){return parseInt(e,10)||0}const Ox={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $x(e){for(const t in e)return!1;return!0}function Ya(e){return $x(e)||e.outerHeightStyle===0&&!e.overflowing}const Ax=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),m=Pe(n,u),f=v.useRef(null),b=v.useRef(null),d=v.useCallback(()=>{const w=u.current,x=b.current;if(!w||!x)return;const k=At(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=k.width,x.value=w.value||t.placeholder||"x",x.value.slice(-1)===`
132
- `&&(x.value+=" ");const O=k.boxSizing,I=Nr(k.paddingBottom)+Nr(k.paddingTop),N=Nr(k.borderBottomWidth)+Nr(k.borderTopWidth),L=x.scrollHeight;x.value="x";const R=x.scrollHeight;let y=L;s&&(y=Math.max(Number(s)*R,y)),o&&(y=Math.min(Number(o)*R,y)),y=Math.max(y,R);const E=y+(O==="border-box"?I+N:0),D=Math.abs(y-L)<=1;return{outerHeightStyle:E,overflowing:D}},[o,s,t.placeholder]),p=ue(()=>{const w=u.current,x=d();if(!w||!x||Ya(x))return!1;const T=x.outerHeightStyle;return f.current!=null&&f.current!==T}),h=v.useCallback(()=>{const w=u.current,x=d();if(!w||!x||Ya(x))return;const T=x.outerHeightStyle;f.current!==T&&(f.current=T,w.style.height=`${T}px`),w.style.overflow=x.overflowing?"hidden":""},[d]),S=v.useRef(-1);He(()=>{const w=Fl(h),x=u?.current;if(!x)return;const T=At(x);T.addEventListener("resize",w);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{p()&&(k.unobserve(x),cancelAnimationFrame(S.current),h(),S.current=requestAnimationFrame(()=>{k.observe(x)}))}),k.observe(x)),()=>{w.clear(),cancelAnimationFrame(S.current),T.removeEventListener("resize",w),k&&k.disconnect()}},[d,h,p]),He(()=>{h()});const C=w=>{c||h();const x=w.target,T=x.value.length,k=x.value.endsWith(`
133
- `),O=x.selectionStart===T;k&&O&&x.setSelectionRange(T,T),r&&r(w)};return g.jsxs(v.Fragment,{children:[g.jsx("textarea",{value:a,onChange:C,ref:m,rows:s,style:i,...l}),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...Ox.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function hn({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 Ga(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mo(e,t=!1){return e&&(Ga(e.value)&&e.value!==""||t&&Ga(e.defaultValue)&&e.defaultValue!=="")}function Fx(e){return e.startAdornment}function Lx(e){return ge("MuiInputBase",e)}const pn=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ka;const No=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},jo=(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]},Nx=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:m,size:f,startAdornment:b,type:d}=e,p={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",f&&f!=="medium"&&`size${le(f)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",d==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return he(p,Lx,t)},Bo=U("div",{name:"MuiInputBase",slot:"Root",overridesResolver:No})(Ie(({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",[`&.${pn.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%"}}]}))),Vo=U("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jo})(Ie(({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] + .${pn.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},[`&.${pn.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"}}]}})),qa=um({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ui=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:m,disabled:f,disableInjectingGlobalStyles:b,endAdornment:d,error:p,fullWidth:h=!1,id:S,inputComponent:C="input",inputProps:w={},inputRef:x,margin:T,maxRows:k,minRows:O,multiline:I=!1,name:N,onBlur:L,onChange:R,onClick:y,onFocus:E,onKeyDown:D,onKeyUp:P,placeholder:M,readOnly:A,renderSuffix:$,rows:F,size:V,slotProps:q={},slots:re={},startAdornment:ae,type:ie="text",value:z,...Z}=r,X=w.value!=null?w.value:z,{current:Y}=v.useRef(X!=null),W=v.useRef(),G=v.useCallback(Ee=>{},[]),ee=Pe(W,x,w.ref,G),[J,B]=v.useState(!1),K=ft(),oe=hn({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=K?K.focused:J,v.useEffect(()=>{!K&&f&&J&&(B(!1),L&&L())},[K,f,J,L]);const te=K&&K.onFilled,ce=K&&K.onEmpty,se=v.useCallback(Ee=>{mo(Ee)?te&&te():ce&&ce()},[te,ce]);He(()=>{Y&&se({value:X})},[X,se,Y]);const fe=Ee=>{E&&E(Ee),w.onFocus&&w.onFocus(Ee),K&&K.onFocus?K.onFocus(Ee):B(!0)},be=Ee=>{L&&L(Ee),w.onBlur&&w.onBlur(Ee),K&&K.onBlur?K.onBlur(Ee):B(!1)},Se=(Ee,...Bt)=>{if(!Y){const Vt=Ee.target||W.current;if(Vt==null)throw new Error(Ot(1));se({value:Vt.value})}w.onChange&&w.onChange(Ee,...Bt),R&&R(Ee,...Bt)};v.useEffect(()=>{se(W.current)},[]);const pe=Ee=>{W.current&&Ee.currentTarget===Ee.target&&W.current.focus(),y&&y(Ee)};let Ke=C,Ne=w;I&&Ke==="input"&&(F?Ne={type:void 0,minRows:F,maxRows:F,...Ne}:Ne={type:void 0,maxRows:k,minRows:O,...Ne},Ke=Ax);const mt=Ee=>{se(Ee.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};v.useEffect(()=>{K&&K.setAdornedStart(!!ae)},[K,ae]);const ht={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:d,error:oe.error,focused:oe.focused,formControl:K,fullWidth:h,hiddenLabel:oe.hiddenLabel,multiline:I,size:oe.size,startAdornment:ae,type:ie},nt=Nx(ht),rt=re.root||c.Root||Bo,jt=q.root||u.root||{},gt=re.input||c.Input||Vo;return Ne={...Ne,...q.input??u.input},g.jsxs(v.Fragment,{children:[!b&&typeof qa=="function"&&(Ka||(Ka=g.jsx(qa,{}))),g.jsxs(rt,{...jt,ref:n,onClick:pe,...Z,...!An(rt)&&{ownerState:{...ht,...jt.ownerState}},className:de(nt.root,jt.className,a,A&&"MuiInputBase-readOnly"),children:[ae,g.jsx($o.Provider,{value:null,children:g.jsx(gt,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:m,disabled:oe.disabled,id:S,onAnimationStart:mt,name:N,placeholder:M,readOnly:A,required:oe.required,rows:F,value:X,onKeyDown:D,onKeyUp:P,type:ie,...Ne,...!An(gt)&&{as:Ke,ownerState:{...ht,...Ne.ownerState}},ref:ee,className:de(nt.input,Ne.className,A&&"MuiInputBase-readOnly"),onBlur:be,onChange:Se,onFocus:fe})}),d,$?$({...oe,startAdornment:ae}):null]})]})});function jx(e){return ge("MuiInput",e)}const Pn={...pn,...me("MuiInput",["root","underline","input"])},Bx=e=>{const{classes:t,disableUnderline:n}=e,o=he({root:["root",!n&&"underline"],input:["input"]},jx,t);return{...t,...o}},Vx=U(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...No(e,t),!n.disableUnderline&&t.underline]}})(Ie(({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"},[`&.${Pn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pn.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(.${Pn.disabled}, .${Pn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Pn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),zx=U(Vo,{name:"MuiInput",slot:"Input",overridesResolver:jo})({}),di=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:m={},type:f="text",...b}=r,d=Bx(r),h={root:{ownerState:{disableUnderline:o}}},S=u??i?Ge(u??i,h):h,C=m.root??s.Root??Vx,w=m.input??s.Input??zx;return g.jsx(ui,{slots:{root:C,input:w},slotProps:S,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:d})});di.muiName="Input";function _x(e){return ge("MuiFilledInput",e)}const Ht={...pn,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Wx=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${le(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=he(l,_x,t);return{...t,...c}},Hx=U(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...No(e,t),!n.disableUnderline&&t.underline]}})(Ie(({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}},[`&.${Ht.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ht.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"},[`&.${Ht.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ht.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(.${Ht.disabled}, .${Ht.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ht.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).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}}]}})),Ux=U(Vo,{name:"MuiFilledInput",slot:"Input",overridesResolver:jo})(Ie(({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}}]}))),pi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:m,slots:f={},type:b="text",...d}=r,p={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},h=Wx(r),S={root:{ownerState:p},input:{ownerState:p}},C=m??i?Ge(S,m??i):S,w=f.root??s.Root??Hx,x=f.input??s.Input??Ux;return g.jsx(ui,{slots:{root:w,input:x},slotProps:C,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...d,classes:h})});pi.muiName="Input";var Xa;const Yx=U("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pt})({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%"}),Gx=U("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pt})(Ie(({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 Kx(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 g.jsx(Yx,{"aria-hidden":!0,className:r,ownerState:l,...i,children:g.jsx(Gx,{ownerState:l,children:a?g.jsx("span",{children:o}):Xa||(Xa=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function qx(e){return ge("MuiOutlinedInput",e)}const bt={...pn,...me("MuiOutlinedInput",["root","notchedOutline","input"])},Xx=e=>{const{classes:t}=e,r=he({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qx,t);return{...t,...r}},Qx=U(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:No})(Ie(({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 .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bt.focused} .${bt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Xe()).map(([n])=>({props:{color:n},style:{[`&.${bt.focused} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bt.error} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bt.disabled} .${bt.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"}}]}})),Zx=U(Kx,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ie(({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}})),Jx=U(Vo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jo})(Ie(({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}}]}))),fi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:m={},type:f="text",...b}=r,d=Xx(r),p=ft(),h=hn({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:p,fullWidth:s,hiddenLabel:h.hiddenLabel,multiline:l,size:h.size,type:f},C=u.root??o.Root??Qx,w=u.input??o.Input??Jx,[x,T]=Le("notchedOutline",{elementType:Zx,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:u,slotProps:m},additionalProps:{label:a!=null&&a!==""&&h.required?g.jsxs(v.Fragment,{children:[a," ","*"]}):a}});return g.jsx(ui,{slots:{root:C,input:w},slotProps:m,renderSuffix:k=>g.jsx(x,{...T,notched:typeof c<"u"?c:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:f,...b,classes:{...d,notchedOutline:null}})});fi.muiName="Input";function e0(e){return ge("MuiFormLabel",e)}const ur=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),t0=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${le(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return he(l,e0,t)},n0=U("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ie(({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(Xe()).map(([t])=>({props:{color:t},style:{[`&.${ur.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ur.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ur.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),r0=U("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ie(({theme:e})=>({[`&.${ur.error}`]:{color:(e.vars||e).palette.error.main}}))),o0=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:m,required:f,...b}=r,d=ft(),p=hn({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),h={...r,color:p.color||"primary",component:a,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},S=t0(h);return g.jsxs(n0,{as:a,ownerState:h,className:de(S.root,s),ref:n,...b,children:[o,p.required&&g.jsxs(r0,{ownerState:h,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function s0(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const i0=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${le(r)}`,i],asterisk:[a&&"asterisk"]},c=he(l,s0,t);return{...t,...c}},a0=U(o0,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ur.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]]}})(Ie(({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)"}}]}))),mi=v.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=ft();let m=i;typeof m>"u"&&u&&(m=u.filled||u.focused||u.adornedStart);const f=hn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:m,size:f.size,variant:f.variant,required:f.required,focused:f.focused},d=i0(b);return g.jsx(a0,{"data-shrink":m,ref:n,className:de(d.root,l),...c,ownerState:b,classes:d})});function l0(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const c0=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return he(o,l0,t)},u0=U("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(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%"}}]}),hi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:m=!1,hiddenLabel:f=!1,margin:b="none",required:d=!1,size:p="medium",variant:h="outlined",...S}=r,C={...r,color:i,component:a,disabled:l,error:c,fullWidth:m,hiddenLabel:f,margin:b,required:d,size:p,variant:h},w=c0(C),[x,T]=v.useState(()=>{let P=!1;return o&&v.Children.forEach(o,M=>{if(!Ur(M,["Input","Select"]))return;const A=Ur(M,["Select"])?M.props.input:M;A&&Fx(A.props)&&(P=!0)}),P}),[k,O]=v.useState(()=>{let P=!1;return o&&v.Children.forEach(o,M=>{Ur(M,["Input","Select"])&&(mo(M.props,!0)||mo(M.props.inputProps,!0))&&(P=!0)}),P}),[I,N]=v.useState(!1);l&&I&&N(!1);const L=u!==void 0&&!l?u:I;let R;v.useRef(!1);const y=v.useCallback(()=>{O(!0)},[]),E=v.useCallback(()=>{O(!1)},[]),D=v.useMemo(()=>({adornedStart:x,setAdornedStart:T,color:i,disabled:l,error:c,filled:k,focused:L,fullWidth:m,hiddenLabel:f,size:p,onBlur:()=>{N(!1)},onFocus:()=>{N(!0)},onEmpty:E,onFilled:y,registerEffect:R,required:d,variant:h}),[x,i,l,c,k,L,m,f,R,E,y,d,p,h]);return g.jsx($o.Provider,{value:D,children:g.jsx(u0,{as:a,ownerState:C,className:de(w.root,s),ref:n,...S,children:o})})});function d0(e){return ge("MuiFormHelperText",e)}const Qa=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Za;const p0=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${le(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return he(c,d0,t)},f0=U("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ie(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qa.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}}]}))),cu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:m,required:f,variant:b,...d}=r,p=ft(),h=hn({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:i,contained:h.variant==="filled"||h.variant==="outlined",variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required};delete S.ownerState;const C=p0(S);return g.jsx(f0,{as:i,className:de(C.root,s),ref:n,...d,ownerState:S,children:o===" "?Za||(Za=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function es(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ja(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uu(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 Kn(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")||!uu(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const m0=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:m="selectedMenu",...f}=t,b=v.useRef(null),d=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});He(()=>{o&&b.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:x})=>{const T=!b.current.style.width;if(w.clientHeight<b.current.clientHeight&&T){const k=`${Cc(At(w))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=k,b.current.style.width=`calc(100% + ${k})`}return b.current}}),[]);const p=w=>{const x=b.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const O=Ye(x).activeElement;if(T==="ArrowDown")w.preventDefault(),Kn(x,O,c,l,es);else if(T==="ArrowUp")w.preventDefault(),Kn(x,O,c,l,Ja);else if(T==="Home")w.preventDefault(),Kn(x,null,c,l,es);else if(T==="End")w.preventDefault(),Kn(x,null,c,l,Ja);else if(T.length===1){const I=d.current,N=T.toLowerCase(),L=performance.now();I.keys.length>0&&(L-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&N!==I.keys[0]&&(I.repeating=!1)),I.lastTime=L,I.keys.push(N);const R=O&&!I.repeating&&uu(O,I);I.previousKeyMatched&&(R||Kn(x,O,!1,l,es,I))?w.preventDefault():I.previousKeyMatched=!1}u&&u(w)},h=Pe(b,n);let S=-1;v.Children.forEach(i,(w,x)=>{if(!v.isValidElement(w)){S===x&&(S+=1,S>=i.length&&(S=-1));return}w.props.disabled||(m==="selectedMenu"&&w.props.selected||S===-1)&&(S=x),S===x&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(S+=1,S>=i.length&&(S=-1))});const C=v.Children.map(i,(w,x)=>{if(x===S){const T={};return s&&(T.autoFocus=!0),w.props.tabIndex===void 0&&m==="selectedMenu"&&(T.tabIndex=0),v.cloneElement(w,T)}return w});return g.jsx(ou,{role:"menu",ref:h,className:a,onKeyDown:p,tabIndex:o?0:-1,...f,children:C})});function h0(e){const t=Ye(e);return t.body===e?At(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function el(e){return parseInt(At(e).getComputedStyle(e).paddingRight,10)||0}function g0(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=!g0(i);a&&l&&dr(i,o)})}function ts(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function y0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(h0(r)){const i=Cc(At(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${el(r)+i}px`;const a=Ye(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${el(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ye(r).body;else{const i=r.parentElement,a=At(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 b0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class v0{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&&dr(t.modalRef,!1);const o=b0(n);tl(n,t.mount,t.modalRef,o,!0);const s=ts(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=ts(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=y0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ts(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&&dr(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&&dr(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function x0(e){return ge("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const S0=e=>{const{classes:t,invisible:n}=e;return he({root:["root",n&&"invisible"]},x0,t)},w0=U("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"}}]}),du=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:m={},slots:f={},TransitionComponent:b,transitionDuration:d,...p}=r,h={...r,component:i,invisible:a},S=S0(h),C={transition:b,root:c.Root,...f},w={...u,...m},x={component:i,slots:C,slotProps:w},[T,k]=Le("root",{elementType:w0,externalForwardedProps:x,className:de(S.root,s),ownerState:h}),[O,I]=Le("transition",{elementType:un,externalForwardedProps:x,ownerState:h});return g.jsx(O,{in:l,timeout:d,...p,...I,children:g.jsx(T,{"aria-hidden":!0,...k,classes:S,ref:n,children:o})})});function C0(e){return typeof e=="function"?e():e}function P0(e){return e?e.props.hasOwnProperty("in"):!1}const nl=()=>{},jr=new v0;function k0(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,m=v.useRef({}),f=v.useRef(null),b=v.useRef(null),d=Pe(b,u),[p,h]=v.useState(!c),S=P0(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Ye(f.current),x=()=>(m.current.modalRef=b.current,m.current.mount=f.current,m.current),T=()=>{jr.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},k=ue(()=>{const P=C0(t)||w().body;jr.add(x(),P),b.current&&T()}),O=()=>jr.isTopModal(x()),I=ue(P=>{f.current=P,P&&(c&&O()?T():b.current&&dr(b.current,C))}),N=v.useCallback(()=>{jr.remove(x(),C)},[C]);v.useEffect(()=>()=>{N()},[N]),v.useEffect(()=>{c?k():(!S||!o)&&N()},[c,N,S,o,k]);const L=P=>M=>{P.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!O())&&(n||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},R=P=>M=>{P.onClick?.(M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(P={})=>{const M=Us(e);delete M.onTransitionEnter,delete M.onTransitionExited;const A={...M,...P};return{role:"presentation",...A,onKeyDown:L(A),ref:d}},getBackdropProps:(P={})=>{const M=P;return{"aria-hidden":!0,...M,onClick:R(M),open:c}},getTransitionProps:()=>{const P=()=>{h(!1),s&&s()},M=()=>{h(!0),i&&i(),o&&N()};return{onEnter:Ei(P,a?.props.onEnter??nl),onExited:Ei(M,a?.props.onExited??nl)}},rootRef:d,portalRef:I,isTopModal:O,exited:p,hasTransition:S}}function M0(e){return ge("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const T0=e=>{const{open:t,exited:n,classes:r}=e;return he({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},M0,r)},D0=U("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ie(({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"}}]}))),R0=U(du,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),pu=v.forwardRef(function(t,n){const r=we({name:"MuiModal",props:t}),{BackdropComponent:o=R0,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:m,components:f={},componentsProps:b={},disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:T=!1,onClose:k,onTransitionEnter:O,onTransitionExited:I,open:N,slotProps:L={},slots:R={},theme:y,...E}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:x,keepMounted:T},{getRootProps:P,getBackdropProps:M,getTransitionProps:A,portalRef:$,isTopModal:F,exited:V,hasTransition:q}=k0({...D,rootRef:n}),re={...D,exited:V},ae=T0(re),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),q){const{onEnter:G,onExited:ee}=A();ie.onEnter=G,ie.onExited=ee}const z={slots:{root:f.Root,backdrop:f.Backdrop,...R},slotProps:{...b,...L}},[Z,X]=Le("root",{ref:n,elementType:D0,externalForwardedProps:{...z,...E,component:m},getSlotProps:P,ownerState:re,className:de(a,ae?.root,!re.open&&re.exited&&ae?.hidden)}),[Y,W]=Le("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:G=>M({...G,onClick:ee=>{G?.onClick&&G.onClick(ee)}}),className:de(s?.className,ae?.backdrop),ownerState:re});return!T&&!N&&(!q||V)?null:g.jsx(Xc,{ref:$,container:u,disablePortal:S,children:g.jsxs(Z,{...X,children:[!x&&o?g.jsx(Y,{...W}):null,g.jsx(Zc,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:C,isEnabled:F,open:N,children:v.cloneElement(c,ie)})]})})});function I0(e){return ge("MuiPopover",e)}me("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 sl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Br(e){return typeof e=="function"?e():e}const E0=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"]},I0,t)},O0=U(pu,{name:"MuiPopover",slot:"Root"})({}),fu=U(Er,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$0=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:m,elevation:f=8,marginThreshold:b=16,open:d,PaperProps:p={},slots:h={},slotProps:S={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:x="auto",TransitionProps:T={},disableScrollLock:k=!1,...O}=r,I=v.useRef(),N={...r,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:b,transformOrigin:C,TransitionComponent:w,transitionDuration:x,TransitionProps:T},L=E0(N),R=v.useCallback(()=>{if(l==="anchorPosition")return a;const G=Br(s),J=(G&&G.nodeType===1?G:Ye(I.current).body).getBoundingClientRect();return{top:J.top+rl(J,i.vertical),left:J.left+ol(J,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),y=v.useCallback(G=>({vertical:rl(G,C.vertical),horizontal:ol(G,C.horizontal)}),[C.horizontal,C.vertical]),E=v.useCallback(G=>{const ee={width:G.offsetWidth,height:G.offsetHeight},J=y(ee);if(l==="none")return{top:null,left:null,transformOrigin:sl(J)};const B=R();let K=B.top-J.vertical,oe=B.left-J.horizontal;const te=K+ee.height,ce=oe+ee.width,se=At(Br(s)),fe=se.innerHeight-b,be=se.innerWidth-b;if(b!==null&&K<b){const Se=K-b;K-=Se,J.vertical+=Se}else if(b!==null&&te>fe){const Se=te-fe;K-=Se,J.vertical+=Se}if(b!==null&&oe<b){const Se=oe-b;oe-=Se,J.horizontal+=Se}else if(ce>be){const Se=ce-be;oe-=Se,J.horizontal+=Se}return{top:`${Math.round(K)}px`,left:`${Math.round(oe)}px`,transformOrigin:sl(J)}},[s,l,R,y,b]),[D,P]=v.useState(d),M=v.useCallback(()=>{const G=I.current;if(!G)return;const ee=E(G);ee.top!==null&&G.style.setProperty("top",ee.top),ee.left!==null&&(G.style.left=ee.left),G.style.transformOrigin=ee.transformOrigin,P(!0)},[E]);v.useEffect(()=>(k&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[s,k,M]);const A=()=>{M()},$=()=>{P(!1)};v.useEffect(()=>{d&&M()}),v.useImperativeHandle(o,()=>d?{updatePosition:()=>{M()}}:null,[d,M]),v.useEffect(()=>{if(!d)return;const G=Fl(()=>{M()}),ee=At(Br(s));return ee.addEventListener("resize",G),()=>{G.clear(),ee.removeEventListener("resize",G)}},[s,d,M]);let F=x;const V={slots:{transition:w,...h},slotProps:{transition:T,paper:p,...S}},[q,re]=Le("transition",{elementType:gr,externalForwardedProps:V,ownerState:N,getSlotProps:G=>({...G,onEntering:(ee,J)=>{G.onEntering?.(ee,J),A()},onExited:ee=>{G.onExited?.(ee),$()}}),additionalProps:{appear:!0,in:d}});x==="auto"&&!q.muiSupportAuto&&(F=void 0);const ae=m||(s?Ye(Br(s)).body:void 0),[ie,{slots:z,slotProps:Z,...X}]=Le("root",{ref:n,elementType:O0,externalForwardedProps:{...V,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Ll(typeof S.backdrop=="function"?S.backdrop(N):S.backdrop,{invisible:!0})},container:ae,open:d},ownerState:N,className:de(L.root,u)}),[Y,W]=Le("paper",{ref:I,className:L.paper,elementType:fu,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:D?void 0:{opacity:0}},ownerState:N});return g.jsx(ie,{...X,...!An(ie)&&{slots:z,slotProps:Z,disableScrollLock:k},children:g.jsx(q,{...re,timeout:F,children:g.jsx(Y,{...W,children:c})})})});function A0(e){return ge("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const F0={vertical:"top",horizontal:"right"},L0={vertical:"top",horizontal:"left"},N0=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"],list:["list"]},A0,t)},j0=U($0,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),B0=U(fu,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),V0=U(m0,{name:"MuiMenu",slot:"List"})({outline:0}),z0=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:m={},PopoverClasses:f,transitionDuration:b="auto",TransitionProps:{onEntering:d,...p}={},variant:h="selectedMenu",slots:S={},slotProps:C={},...w}=r,x=vt(),T={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:m,transitionDuration:b,TransitionProps:p,variant:h},k=N0(T),O=o&&!a&&u,I=v.useRef(null),N=(F,V)=>{I.current&&I.current.adjustStyleForScrollbar(F,{direction:x?"rtl":"ltr"}),d&&d(F,V)},L=F=>{F.key==="Tab"&&(F.preventDefault(),c&&c(F,"tabKeyDown"))};let R=-1;v.Children.map(s,(F,V)=>{v.isValidElement(F)&&(F.props.disabled||(h==="selectedMenu"&&F.props.selected||R===-1)&&(R=V))});const y={slots:S,slotProps:{list:l,transition:p,paper:m,...C}},E=Ce({elementType:S.root,externalSlotProps:C.root,ownerState:T,className:[k.root,i]}),[D,P]=Le("paper",{className:k.paper,elementType:B0,externalForwardedProps:y,shouldForwardComponentProp:!0,ownerState:T}),[M,A]=Le("list",{className:de(k.list,l.className),elementType:V0,shouldForwardComponentProp:!0,externalForwardedProps:y,getSlotProps:F=>({...F,onKeyDown:V=>{L(V),F.onKeyDown?.(V)}}),ownerState:T}),$=typeof y.slotProps.transition=="function"?y.slotProps.transition(T):y.slotProps.transition;return g.jsx(j0,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?F0:L0,slots:{root:S.root,paper:D,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:E,paper:P,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...$,onEntering:(...F)=>{N(...F),$?.onEntering?.(...F)}}},open:u,ref:n,transitionDuration:b,ownerState:T,...w,classes:f,children:g.jsx(M,{actions:I,autoFocus:o&&(R===-1||a),autoFocusItem:O,variant:h,...A,children:s})})});function _0(e){return ge("MuiNativeSelect",e)}const gi=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W0=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${le(n)}`,s&&"iconOpen",r&&"disabled"]};return he(a,_0,t)},mu=U("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${gi.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}}}]})),H0=U(mu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${gi.multiple}`]:t.multiple}]}})({}),hu=U("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${gi.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}}]})),U0=U(hu,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),Y0=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},m=W0(u);return g.jsxs(v.Fragment,{children:[g.jsx(H0,{ownerState:u,className:de(m.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:g.jsx(U0,{as:i,ownerState:u,className:m.icon})]})});function gu(e){return ge("MuiSelect",e)}const qn=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var il;const G0=U(mu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qn.select}`]:t.select},{[`&.${qn.select}`]:t[n.variant]},{[`&.${qn.error}`]:t.error},{[`&.${qn.multiple}`]:t.multiple}]}})({[`&.${qn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),K0=U(hu,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),q0=U("input",{shouldForwardProp:e=>Al(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 X0(e){return e==null||typeof e=="string"&&!e.trim()}const Q0=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${le(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return he(a,gu,t)},Z0=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:m,displayEmpty:f,error:b=!1,IconComponent:d,inputRef:p,labelId:h,MenuProps:S={},multiple:C,name:w,onBlur:x,onChange:T,onClose:k,onFocus:O,onOpen:I,open:N,readOnly:L,renderValue:R,required:y,SelectDisplayProps:E={},tabIndex:D,type:P,value:M,variant:A="standard",...$}=t,[F,V]=Tt({controlled:M,default:u,name:"Select"}),[q,re]=Tt({controlled:N,default:c,name:"Select"}),ae=v.useRef(null),ie=v.useRef(null),[z,Z]=v.useState(null),{current:X}=v.useRef(N!=null),[Y,W]=v.useState(),G=Pe(n,p),ee=v.useCallback(ye=>{ie.current=ye,ye&&Z(ye)},[]),J=z?.parentNode;v.useImperativeHandle(G,()=>({focus:()=>{ie.current.focus()},node:ae.current,value:F}),[F]),v.useEffect(()=>{c&&q&&z&&!X&&(W(i?null:J.clientWidth),ie.current.focus())},[z,i]),v.useEffect(()=>{s&&ie.current.focus()},[s]),v.useEffect(()=>{if(!h)return;const ye=Ye(ie.current).getElementById(h);if(ye){const ke=()=>{getSelection().isCollapsed&&ie.current.focus()};return ye.addEventListener("click",ke),()=>{ye.removeEventListener("click",ke)}}},[h]);const B=(ye,ke)=>{ye?I&&I(ke):k&&k(ke),X||(W(i?null:J.clientWidth),re(ye))},K=ye=>{ye.button===0&&(ye.preventDefault(),ie.current.focus(),B(!0,ye))},oe=ye=>{B(!1,ye)},te=v.Children.toArray(a),ce=ye=>{const ke=te.find(Ve=>Ve.props.value===ye.target.value);ke!==void 0&&(V(ke.props.value),T&&T(ye,ke))},se=ye=>ke=>{let Ve;if(ke.currentTarget.hasAttribute("tabindex")){if(C){Ve=Array.isArray(F)?F.slice():[];const zt=F.indexOf(ye.props.value);zt===-1?Ve.push(ye.props.value):Ve.splice(zt,1)}else Ve=ye.props.value;if(ye.props.onClick&&ye.props.onClick(ke),F!==Ve&&(V(Ve),T)){const zt=ke.nativeEvent||ke,Oe=new zt.constructor(zt.type,zt);Object.defineProperty(Oe,"target",{writable:!0,value:{value:Ve,name:w}}),T(Oe,ye)}C||B(!1,ke)}},fe=ye=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),B(!0,ye))},be=z!==null&&q,Se=ye=>{!be&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:F,name:w}}),x(ye))};delete $["aria-invalid"];let pe,Ke;const Ne=[];let mt=!1;(mo({value:F})||f)&&(R?pe=R(F):mt=!0);const ht=te.map(ye=>{if(!v.isValidElement(ye))return null;let ke;if(C){if(!Array.isArray(F))throw new Error(Ot(2));ke=F.some(Ve=>al(Ve,ye.props.value)),ke&&mt&&Ne.push(ye.props.children)}else ke=al(F,ye.props.value),ke&&mt&&(Ke=ye.props.children);return v.cloneElement(ye,{"aria-selected":ke?"true":"false",onClick:se(ye),onKeyUp:Ve=>{Ve.key===" "&&Ve.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(Ve)},role:"option",selected:ke,value:void 0,"data-value":ye.props.value})});mt&&(C?Ne.length===0?pe=null:pe=Ne.reduce((ye,ke,Ve)=>(ye.push(ke),Ve<Ne.length-1&&ye.push(", "),ye),[]):pe=Ke);let nt=Y;!i&&X&&z&&(nt=J.clientWidth);let rt;typeof D<"u"?rt=D:rt=m?null:0;const jt=E.id||(w?`mui-component-select-${w}`:void 0),gt={...t,variant:A,value:F,open:be,error:b},Ee=Q0(gt),Bt={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(gt):S.slotProps?.paper},Vt={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(gt):S.slotProps?.list},_n=xt();return g.jsxs(v.Fragment,{children:[g.jsx(G0,{as:"div",ref:ee,tabIndex:rt,role:"combobox","aria-controls":be?_n:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[h,jt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":y?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:fe,onMouseDown:m||L?null:K,onBlur:Se,onFocus:O,...E,ownerState:gt,className:de(E.className,Ee.select,l),id:jt,children:X0(pe)?il||(il=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),g.jsx(q0,{"aria-invalid":b,value:Array.isArray(F)?F.join(","):F,name:w,ref:ae,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:m,className:Ee.nativeInput,autoFocus:s,required:y,...$,ownerState:gt}),g.jsx(K0,{as:d,className:Ee.icon,ownerState:gt}),g.jsx(z0,{id:`menu-${w||""}`,anchorEl:J,open:be,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":h,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:_n,...Vt},paper:{...Bt,style:{minWidth:nt,...Bt!=null?Bt.style:null}}},children:ht})]})}),yu=Ue(g.jsx("path",{d:"M7 10l5 5 5-5z"})),J0=e=>{const{classes:t}=e,r=he({root:["root"]},gu,t);return{...t,...r}},yi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},eS=U(di,yi)(""),tS=U(fi,yi)(""),nS=U(pi,yi)(""),bi=v.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=yu,id:m,input:f,inputProps:b,label:d,labelId:p,MenuProps:h,multiple:S=!1,native:C=!1,onClose:w,onOpen:x,open:T,renderValue:k,SelectDisplayProps:O,variant:I="outlined",...N}=r,L=C?Y0:Z0,R=ft(),y=hn({props:r,muiFormControl:R,states:["variant","error"]}),E=y.variant||I,D={...r,variant:E,classes:i},P=J0(D),{root:M,...A}=P,$=f||{standard:g.jsx(eS,{ownerState:D}),outlined:g.jsx(tS,{label:d,ownerState:D}),filled:g.jsx(nS,{ownerState:D})}[E],F=Pe(n,zn($));return g.jsx(v.Fragment,{children:v.cloneElement($,{inputComponent:L,inputProps:{children:s,error:y.error,IconComponent:u,variant:E,type:void 0,multiple:S,...C?{id:m}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:p,MenuProps:h,onClose:w,onOpen:x,open:T,renderValue:k,SelectDisplayProps:{id:m,...O}},...b,classes:b?Ge(A,b.classes):A,...f?f.props.inputProps:{}},...(S&&C||c)&&E==="outlined"?{notched:!0}:{},ref:F,className:de($.props.className,a,P.root),...!f&&{variant:E},...N})})});bi.muiName="Select";function rS(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const oS={standard:di,filled:pi,outlined:fi},sS=e=>{const{classes:t}=e;return he({root:["root"]},rS,t)},iS=U(hi,{name:"MuiTextField",slot:"Root"})({}),bu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:m=!1,FormHelperTextProps:f,fullWidth:b=!1,helperText:d,id:p,InputLabelProps:h,inputProps:S,InputProps:C,inputRef:w,label:x,maxRows:T,minRows:k,multiline:O=!1,name:I,onBlur:N,onChange:L,onFocus:R,placeholder:y,required:E=!1,rows:D,select:P=!1,SelectProps:M,slots:A={},slotProps:$={},type:F,value:V,variant:q="outlined",...re}=r,ae={...r,autoFocus:s,color:l,disabled:u,error:m,fullWidth:b,multiline:O,required:E,select:P,variant:q},ie=sS(ae),z=xt(p),Z=d&&z?`${z}-helper-text`:void 0,X=x&&z?`${z}-label`:void 0,Y=oS[q],W={slots:A,slotProps:{input:C,inputLabel:h,htmlInput:S,formHelperText:f,select:M,...$}},G={},ee=W.slotProps.inputLabel;q==="outlined"&&(ee&&typeof ee.shrink<"u"&&(G.notched=ee.shrink),G.label=x),P&&((!M||!M.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[J,B]=Le("root",{elementType:iS,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...re},ownerState:ae,className:de(ie.root,a),ref:n,additionalProps:{disabled:u,error:m,fullWidth:b,required:E,color:l,variant:q}}),[K,oe]=Le("input",{elementType:Y,externalForwardedProps:W,additionalProps:G,ownerState:ae}),[te,ce]=Le("inputLabel",{elementType:mi,externalForwardedProps:W,ownerState:ae}),[se,fe]=Le("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ae}),[be,Se]=Le("formHelperText",{elementType:cu,externalForwardedProps:W,ownerState:ae}),[pe,Ke]=Le("select",{elementType:bi,externalForwardedProps:W,ownerState:ae}),Ne=g.jsx(K,{"aria-describedby":Z,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:O,name:I,rows:D,maxRows:T,minRows:k,type:F,value:V,id:z,inputRef:w,onBlur:N,onChange:L,onFocus:R,placeholder:y,inputProps:fe,slots:{input:A.htmlInput?se:void 0},...oe});return g.jsxs(J,{...B,children:[x!=null&&x!==""&&g.jsx(te,{htmlFor:z,id:X,...ce,children:x}),P?g.jsx(pe,{"aria-describedby":Z,id:z,labelId:X,value:V,input:Ne,...Ke,children:i}):Ne,d&&g.jsx(be,{id:Z,...Se,children:d})]})}),aS=({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},lS=({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},cS=(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}},uS=({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=Tc(e,i),c=Ec(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",m=t!=null&&e.isValid(t);let f=m?e.formatByString(t,i):"",b=null;if(u)if(c)b=f===""?e.formatByString(s,i).length:f.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,m&&(f=Ks(Rc(cn(f,o),b),o))}return j({},l,{format:i,maxLength:b,value:f,placeholder:cS(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},dS=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,d)=>d.length-b.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),m=b=>r.find(d=>d.start<=b&&d.end>=b);let f=0;for(;f<n.length;){const b=m(f),d=b!=null,p=l.exec(n.slice(f))?.[1];if(!d&&p!=null&&c.test(p)){let h=p;for(;h.length>0;){const S=u.exec(h)[1];h=h.slice(S.length),s.push(uS(j({},e,{now:o,token:S,startSeparator:i}))),i=""}f+=p.length}else{const h=n[f];d&&b?.start===f||b?.end===f||(s.length===0?i+=h:s[s.length-1].endSeparator+=h),f+=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},pS=({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=aS(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=lS(j({},e,{expandedFormat:t})),r=dS(j({},e,{expandedFormat:t,escapedParts:n}));return pS(j({},e,{sections:r}))},fS=e=>{const t=Ae(),n=Nt(),r=mn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:m,referenceDate:f,onChange:b,format:d,formatDensity:p="dense",selectedSections:h,onSelectedSectionsChange:S,shouldRespectLeadingZeros:C=!1,timezone:w,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:T,value:k,handleValueChange:O}=ai({timezone:w,value:u,defaultValue:m,referenceDate:f,onChange:b,valueManager:s}),I=v.useMemo(()=>fg(t),[t]),N=v.useMemo(()=>vg(t,I,T),[t,I,T]),L=v.useCallback((z,Z=null)=>i.getSectionsFromValue(t,z,Z,X=>ll({utils:t,localeText:n,localizedDigits:I,format:d,date:X,formatDensity:p,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,d,n,I,o,C,t,p,x]),[R,y]=v.useState(()=>{const z=L(k),Z={sections:z,value:k,referenceValue:s.emptyValue,tempValueStrAndroid:null},X=cg(z),Y=s.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:X,timezone:T});return j({},Z,{referenceValue:Y})}),[E,D]=Tt({controlled:h,default:null,name:"useField",state:"selectedSections"}),P=z=>{D(z),S?.(z)},M=v.useMemo(()=>cs(E,R.sections),[E,R.sections]),A=M==="all"?0:M,$=({value:z,referenceValue:Z,sections:X})=>{if(y(W=>j({},W,{sections:X,value:z,referenceValue:Z,tempValueStrAndroid:null})),s.areValuesEqual(t,R.value,z))return;const Y={validationError:l({adapter:r,value:z,timezone:T,props:c})};O(z,Y)},F=(z,Z)=>{const X=[...R.sections];return X[z]=j({},X[z],{value:Z,modified:!0}),X},V=()=>{$({value:s.emptyValue,referenceValue:R.referenceValue,sections:L(s.emptyValue)})},q=()=>{if(A==null)return;const z=R.sections[A],Z=i.getActiveDateManager(t,R,z),Y=Z.getSections(R.sections).filter(J=>J.value!=="").length===(z.value===""?0:1),W=F(A,""),G=Y?null:t.getInvalidDate(),ee=Z.getNewValuesFromNewActiveDate(G);$(j({},ee,{sections:W}))},re=z=>{const Z=(W,G)=>{const ee=t.parse(W,d);if(ee==null||!t.isValid(ee))return null;const J=ll({utils:t,localeText:n,localizedDigits:I,format:d,date:ee,formatDensity:p,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:o});return ka(t,ee,J,G,!1)},X=i.parseValueStr(z,R.referenceValue,Z),Y=i.updateReferenceValue(t,X,R.referenceValue);$({value:X,referenceValue:Y,sections:L(X,R.sections)})},ae=({activeSection:z,newSectionValue:Z,shouldGoToNextSection:X})=>{X&&A<R.sections.length-1&&P(A+1);const Y=i.getActiveDateManager(t,R,z),W=F(A,Z),G=Y.getSections(W),ee=gg(t,G,I);let J,B;if(ee!=null&&t.isValid(ee)){const K=ka(t,ee,G,Y.referenceDate,!0);J=Y.getNewValuesFromNewActiveDate(K),B=!0}else J=Y.getNewValuesFromNewActiveDate(ee),B=(ee!=null&&!t.isValid(ee))!=(Y.date!=null&&!t.isValid(Y.date));return B?$(j({},J,{sections:W})):y(K=>j({},K,J,{sections:W,tempValueStrAndroid:null}))},ie=z=>y(Z=>j({},Z,{tempValueStrAndroid:z}));return v.useEffect(()=>{const z=L(R.value);y(Z=>j({},Z,{sections:z}))},[d,t.locale,o]),v.useEffect(()=>{let z;s.areValuesEqual(t,R.value,k)?z=s.getTimezone(t,R.value)!==s.getTimezone(t,k):z=!0,z&&y(Z=>j({},Z,{value:k,referenceValue:i.updateReferenceValue(t,k,Z.referenceValue),sections:L(k)}))},[k]),{state:R,activeSectionIndex:A,parsedSelectedSections:M,setSelectedSections:P,clearValue:V,clearActiveSection:q,updateSectionValue:ae,updateValueFromValueStr:re,setTempAndroidValueStr:ie,getSectionsFromValue:L,sectionsValueBoundaries:N,localizedDigits:I,timezone:T}},mS=5e3,wn=e=>e.saveQuery!=null,hS=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Ae(),[a,l]=v.useState(null),c=ue(()=>l(null));v.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),v.useEffect(()=>{if(a!=null){const d=setTimeout(()=>c(),mS);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:p},h,S)=>{const C=d.toLowerCase(),w=e[p];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===p){const T=`${a.value}${C}`,k=h(T,w);if(!wn(k))return l({sectionIndex:p,value:T,sectionType:w.type}),k}const x=h(C,w);return wn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:p,value:C,sectionType:w.type}),wn(x)?null:x)},m=d=>{const p=(C,w,x)=>{const T=w.filter(k=>k.toLowerCase().startsWith(x));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},h=(C,w,x,T)=>{const k=O=>Dc(i,s,w.type,O);if(w.contentType==="letter")return p(w.format,k(w.format),C);if(x&&T!=null&&Tc(i,x).contentType==="letter"){const O=k(x),I=p(x,O,C);return wn(I)?{saveQuery:!1}:j({},I,{sectionValue:T(I.sectionValue,O)})}return{saveQuery:!1}};return u(d,(C,w)=>{switch(w.type){case"month":{const x=T=>Ca(i,T,i.formats.month,w.format);return h(C,w,i.formats.month,x)}case"weekDay":{const x=(T,k)=>k.indexOf(T).toString();return h(C,w,i.formats.weekday,x)}case"meridiem":return h(C,w);default:return{saveQuery:!1}}})},f=d=>{const p=(S,C)=>{const w=cn(S,r),x=Number(w),T=n[C.type]({currentDate:null,format:C.format,contentType:C.contentType});if(x>T.maximum)return{saveQuery:!1};if(x<T.minimum)return{saveQuery:!0};const k=x*10>T.maximum||w.length===T.maximum.toString().length;return{sectionValue:Ic(i,x,T,r,C),shouldGoToNextSection:k}};return u(d,(S,C)=>{if(C.contentType==="digit"||C.contentType==="digit-with-letter")return p(S,C);if(C.type==="month"){Ec(i,"digit","month","MM");const w=p(S,{type:C.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wn(w))return w;const x=Ca(i,w.sectionValue,"MM",C.format);return j({},w,{sectionValue:x})}if(C.type==="weekDay"){const w=p(S,C);if(wn(w))return w;const x=Eo(i,C.format)[Number(w.sectionValue)-1];return j({},w,{sectionValue:x})}return{saveQuery:!1}},S=>wa(S,r))};return{applyCharacterEditing:ue(d=>{const p=e[d.sectionIndex],S=wa(d.keyPressed,r)?f(j({},d,{keyPressed:Ks(d.keyPressed,r)})):m(d);if(S==null){o(null);return}t({activeSection:p,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:c}},gS=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:m,applyCharacterEditing:f,resetCharacterQuery:b,setSelectedSections:d,parsedSelectedSections:p,state:h,clearActiveSection:S,clearValue:C,updateSectionValue:w,updateValueFromValueStr:x,sectionOrder:T,areAllSectionsEmpty:k,sectionsValueBoundaries:O}=e,I=v.useRef(null),N=Pe(r,I),L=Nt(),R=Ae(),y=xt(),[E,D]=v.useState(!1),P=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!I.current)return;const B=document.getSelection();if(!B)return;if(p==null){B.rangeCount>0&&I.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),E&&I.current.getRoot().blur();return}if(!I.current.getRoot().contains(qe(document)))return;const K=new window.Range;let oe;p==="all"?oe=I.current.getRoot():h.sections[p].type==="empty"?oe=I.current.getSectionContainer(p):oe=I.current.getSectionContent(p),K.selectNodeContents(oe),oe.focus(),B.removeAllRanges(),B.addRange(K)},getActiveSectionIndexFromDOM:()=>{const B=qe(document);return!B||!I.current||!I.current.getRoot().contains(B)?null:I.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!I.current||P.getActiveSectionIndexFromDOM()!=null)return;const K=cs(B,h.sections);D(!0),I.current.getSectionContent(K).focus()},setSelectedSections:B=>{if(!I.current)return;const K=cs(B,h.sections);D((K==="all"?0:K)!==null),d(B)},isFieldFocused:()=>{const B=qe(document);return!!I.current&&I.current.getRoot().contains(B)}}),[p,d,h.sections,E]),M=ue(B=>{if(!I.current)return;const K=h.sections[B];I.current.getSectionContent(B).innerHTML=K.value||K.placeholder,P.syncSelectionToDOM()}),A=ue((B,...K)=>{B.isDefaultPrevented()||!I.current||(D(!0),s?.(B,...K),p==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){d(T.startIndex);return}let te=0,ce=0;for(;ce<oe&&te<h.sections.length;){const se=h.sections[te];te+=1,ce+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}d(te-1)}):E?I.current.getRoot().contains(B.target)||d(T.startIndex):(D(!0),d(T.startIndex)))}),$=ue(B=>{if(a?.(B),!I.current||p!=="all")return;const oe=B.target.textContent??"";I.current.getRoot().innerHTML=h.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),P.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(b(),C(),d("all")):oe.length>1?x(oe):(p==="all"&&d(0),f({keyPressed:oe,sectionIndex:0}))}),F=ue(B=>{if(l?.(B),n||p!=="all"){B.preventDefault();return}const K=B.clipboardData.getData("text");B.preventDefault(),b(),x(K)}),V=ue((...B)=>{if(i?.(...B),E||!I.current)return;D(!0),I.current.getSectionIndexFromDOMElement(qe(document))!=null||d(T.startIndex)}),q=ue((...B)=>{o?.(...B),setTimeout(()=>{if(!I.current)return;const K=qe(document);!I.current.getRoot().contains(K)&&(D(!1),d(null))})}),re=ue(B=>K=>{K.isDefaultPrevented()||d(B)}),ae=ue(B=>{B.preventDefault()}),ie=ue(B=>()=>{d(B)}),z=ue(B=>{if(B.preventDefault(),n||t||typeof p!="number")return;const K=h.sections[p],oe=B.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(oe),ce=/^[0-9]+$/.test(oe),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);K.contentType==="letter"&&te||K.contentType==="digit"&&ce||K.contentType==="digit-with-letter"&&se?(b(),w({activeSection:K,newSectionValue:oe,shouldGoToNextSection:!0})):!te&&!ce&&(b(),x(oe))}),Z=ue(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),X=ue(B=>{if(!I.current)return;const K=B.target,oe=K.textContent??"",te=I.current.getSectionIndexFromDOMElement(K),ce=h.sections[te];if(n||!I.current){M(te);return}if(oe.length===0){if(ce.value===""){M(te);return}const se=B.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){M(te);return}b(),S();return}f({keyPressed:oe,sectionIndex:te}),M(te)});He(()=>{if(!(!E||!I.current)){if(p==="all")I.current.getRoot().focus();else if(typeof p=="number"){const B=I.current.getSectionContent(p);B&&B.focus()}}},[p,E]);const Y=v.useMemo(()=>h.sections.reduce((B,K)=>(B[K.type]=O[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),B),{}),[O,h.sections]),W=p==="all",G=v.useMemo(()=>h.sections.map((B,K)=>{const oe=!W&&!t&&!n;return{container:{"data-sectionindex":K,onClick:re(K)},content:{tabIndex:W||K>0?-1:0,contentEditable:!W&&!t&&!n,role:"spinbutton",id:`${y}-${B.type}`,"aria-labelledby":`${y}-${B.type}`,"aria-readonly":n,"aria-valuenow":Pg(B,R),"aria-valuemin":Y[B.type].minimum,"aria-valuemax":Y[B.type].maximum,"aria-valuetext":B.value?Cg(B,R):L.empty,"aria-label":L[B.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:B.value||B.placeholder,onInput:X,onPaste:z,onFocus:ie(K),onDragOver:Z,onMouseUp:ae,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[h.sections,ie,z,Z,X,re,ae,t,n,W,L,R,Y,y]),ee=ue(B=>{x(B.target.value)}),J=v.useMemo(()=>k?"":m.getV7HiddenInputValueFromSections(h.sections),[k,h.sections,m]);return v.useEffect(()=>{if(I.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(`
134
- `));u&&I.current&&I.current.getSectionContent(T.startIndex).focus()},[]),{interactions:P,returnedValue:{autoFocus:u,readOnly:n,focused:c??E,sectionListRef:N,onBlur:q,onClick:A,onFocus:V,onInput:$,onPaste:F,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:p===0?-1:0,contentEditable:W,value:J,onChange:ee,areAllSectionsEmpty:k}}},Mn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),yS=(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=qs(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Mn(c).length,m=c.length,f=Mn(l),b=o+(f===""?0:l.indexOf(f[0]))+a.startSeparator.length,d=b+f.length;s.push(j({},a,{start:r,end:r+u,startInInput:b,endInInput:d})),r+=u,o+=m}return s},bS=e=>{const t=vt(),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:m=!1},parsedSelectedSections:f,activeSectionIndex:b,state:d,fieldValueManager:p,valueManager:h,applyCharacterEditing:S,resetCharacterQuery:C,updateSectionValue:w,updateValueFromValueStr:x,clearActiveSection:T,clearValue:k,setTempAndroidValueStr:O,setSelectedSections:I,getSectionsFromValue:N,areAllSectionsEmpty:L,localizedDigits:R}=e,y=v.useRef(null),E=Pe(l,y),D=v.useMemo(()=>yS(d.sections,R,t),[d.sections,R,t]),P=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(f==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==qe(document))return;const X=y.current.scrollTop;if(f==="all")y.current.select();else{const Y=D[f],W=Y.type==="empty"?Y.startInInput-Y.startSeparator.length:Y.startInInput,G=Y.type==="empty"?Y.endInInput+Y.endSeparator.length:Y.endInInput;(W!==y.current.selectionStart||G!==y.current.selectionEnd)&&y.current===qe(document)&&y.current.setSelectionRange(W,G),clearTimeout(r.current),r.current=setTimeout(()=>{y.current&&y.current===qe(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==W||y.current.selectionEnd!==G)&&P.syncSelectionToDOM()})}y.current.scrollTop=X},getActiveSectionIndexFromDOM:()=>{const X=y.current.selectionStart??0,Y=y.current.selectionEnd??0;if(X===0&&Y===0)return null;const W=X<=D[0].startInInput?1:D.findIndex(G=>G.startInInput-G.startSeparator.length>X);return W===-1?D.length-1:W-1},focusField:(X=0)=>{qe(document)!==y.current&&(y.current?.focus(),I(X))},setSelectedSections:X=>I(X),isFieldFocused:()=>y.current===qe(document)}),[y,f,D,I]),M=()=>{const X=y.current.selectionStart??0;let Y;X<=D[0].startInInput||X>=D[D.length-1].endInInput?Y=1:Y=D.findIndex(G=>G.startInInput-G.startSeparator.length>X);const W=Y===-1?D.length-1:Y-1;I(W)},A=ue((...X)=>{o?.(...X);const Y=y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!Y||Y!==y.current||b==null&&(Y.value.length&&Number(Y.selectionEnd)-Number(Y.selectionStart)===Y.value.length?I("all"):M())})}),$=ue((X,...Y)=>{X.isDefaultPrevented()||(s?.(X,...Y),M())}),F=ue(X=>{if(i?.(X),X.preventDefault(),u||m)return;const Y=X.clipboardData.getData("text");if(typeof f=="number"){const W=d.sections[f],G=/^[a-zA-Z]+$/.test(Y),ee=/^[0-9]+$/.test(Y),J=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Y);if(W.contentType==="letter"&&G||W.contentType==="digit"&&ee||W.contentType==="digit-with-letter"&&J){C(),w({activeSection:W,newSectionValue:Y,shouldGoToNextSection:!0});return}if(G||ee)return}C(),x(Y)}),V=ue((...X)=>{a?.(...X),I(null)}),q=ue(X=>{if(u)return;const Y=X.target.value;if(Y===""){C(),k();return}const W=X.nativeEvent.data,G=W&&W.length>1,ee=G?W:Y,J=Mn(ee);if(f==="all"&&I(b),b==null||G){x(G?W:J);return}let B;if(f==="all"&&J.length===1)B=J;else{const K=Mn(p.getV6InputValueFromSections(D,R,t));let oe=-1,te=-1;for(let be=0;be<K.length;be+=1)oe===-1&&K[be]!==J[be]&&(oe=be),te===-1&&K[K.length-be-1]!==J[J.length-be-1]&&(te=be);const ce=D[b];if(oe<ce.start||K.length-te-1>ce.end)return;const fe=J.length-K.length+ce.end-Mn(ce.endSeparator||"").length;B=J.slice(ce.start+Mn(ce.startSeparator||"").length,fe)}if(B.length===0){Sg()&&O(ee),C(),T();return}S({keyPressed:B,sectionIndex:b})}),re=v.useMemo(()=>c!==void 0?c:p.getV6InputValueFromSections(N(h.emptyValue),R,t),[c,p,N,h.emptyValue,R,t]),ae=v.useMemo(()=>d.tempValueStrAndroid??p.getV6InputValueFromSections(d.sections,R,t),[d.sections,p,d.tempValueStrAndroid,R,t]);v.useEffect(()=>(y.current&&y.current===qe(document)&&I("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ie=v.useMemo(()=>b==null||d.sections[b].contentType==="letter"?"text":"numeric",[b,d.sections]),Z=!(y.current&&y.current===qe(document))&&L;return{interactions:P,returnedValue:{readOnly:u,onBlur:V,onClick:$,onFocus:A,onPaste:F,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:re,inputMode:ie,autoComplete:"off",value:Z?"":ae,onChange:q}}},vS=e=>{const t=Ae(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:m},fieldValueManager:f,valueManager:b,validator:d}=e,p=vt(),h=fS(e),{state:S,activeSectionIndex:C,parsedSelectedSections:w,setSelectedSections:x,clearValue:T,clearActiveSection:k,updateSectionValue:O,setTempAndroidValueStr:I,sectionsValueBoundaries:N,localizedDigits:L,timezone:R}=h,y=hS({sections:S.sections,updateSectionValue:O,sectionsValueBoundaries:N,localizedDigits:L,setTempAndroidValueStr:I,timezone:R}),{resetCharacterQuery:E}=y,D=b.areValuesEqual(t,S.value,b.emptyValue),P=s?gS:bS,M=v.useMemo(()=>wg(S.sections,p&&!s),[S.sections,p,s]),{returnedValue:A,interactions:$}=P(j({},e,h,y,{areAllSectionsEmpty:D,sectionOrder:M})),F=ue(z=>{if(l?.(z),!i)switch(!0){case((z.ctrlKey||z.metaKey)&&String.fromCharCode(z.keyCode)==="A"&&!z.shiftKey&&!z.altKey):{z.preventDefault(),x("all");break}case z.key==="ArrowRight":{if(z.preventDefault(),w==null)x(M.startIndex);else if(w==="all")x(M.endIndex);else{const Z=M.neighbors[w].rightIndex;Z!==null&&x(Z)}break}case z.key==="ArrowLeft":{if(z.preventDefault(),w==null)x(M.endIndex);else if(w==="all")x(M.startIndex);else{const Z=M.neighbors[w].leftIndex;Z!==null&&x(Z)}break}case z.key==="Delete":{if(z.preventDefault(),a)break;w==null||w==="all"?T():k(),E();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(z.key):{if(z.preventDefault(),a||C==null)break;w==="all"&&x(C);const Z=S.sections[C],X=f.getActiveDateManager(t,S,Z),Y=mg(t,R,Z,z.key,N,L,X.date,{minutesStep:o});O({activeSection:Z,newSectionValue:Y,shouldGoToNextSection:!1});break}}});He(()=>{$.syncSelectionToDOM()});const{hasValidationError:V}=Nc({props:n,validator:d,timezone:R,value:S.value,onError:n.onError}),q=v.useMemo(()=>c!==void 0?c:V,[V,c]);v.useEffect(()=>{!q&&C==null&&E()},[S.referenceValue,C,q]),v.useEffect(()=>{S.tempValueStrAndroid!=null&&C!=null&&(E(),k())},[S.sections]),v.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:$.getActiveSectionIndexFromDOM,setSelectedSections:$.setSelectedSections,focusField:$.focusField,isFieldFocused:$.isFieldFocused}));const re=ue((z,...Z)=>{z.preventDefault(),m?.(z,...Z),T(),$.isFieldFocused()?x(M.startIndex):$.focusField(0)}),ae={onKeyDown:F,onClear:re,error:q,clearable:!!(u&&!D&&!a&&!i)},ie={disabled:i,readOnly:a};return j({},e.forwardedProps,ae,ie,A)},xS=["clearable","onClear","InputProps","sx","slots","slotProps"],SS=["ownerState"],wS=e=>{const t=Nt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,xS),c=i?.clearButton??Ir,u=Ce({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),m=ve(u,SS),f=i?.clearIcon??Ex,b=Ce({elementType:f,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:g.jsxs(v.Fragment,{children:[n&&g.jsx(jc,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:g.jsx(c,j({},m,{onClick:r,children:g.jsx(f,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]]})},CS=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],PS=(e,t)=>v.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return CS.forEach(o),Fc.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),kS=e=>{const t=Ae(),n=Tr();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:lt(t,e.minDate,n.minDate),maxDate:lt(t,e.maxDate,n.maxDate)})},MS=e=>{const t=kS(e),{forwardedProps:n,internalProps:r}=PS(t,"date");return vS({forwardedProps:n,internalProps:r,valueManager:Dt,fieldValueManager:Mg,validator:Dr,valueType:"date"})};function TS(e){return ge("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function DS(e){return ge("MuiPickersInputBase",e)}const En=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function RS(e){return ge("MuiPickersSectionList",e)}const Xn=me("MuiPickersSectionList",["root","section","sectionContent"]),IS=["slots","slotProps","elements","sectionListRef"],vu=U("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),xu=U("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Su=U("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wu=U("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),ES=e=>{const{classes:t}=e;return he({root:["root"],section:["section"],sectionContent:["sectionContent"]},RS,t)};function OS(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??xu,i=Ce({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??wu,l=Ce({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Su,u=Ce({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),m=Ce({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return g.jsxs(s,j({},i,{children:[g.jsx(c,j({},u)),g.jsx(a,j({},l)),g.jsx(c,j({},m))]}))}const $S=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,IS),c=ES(r),u=v.useRef(null),m=Pe(n,u),f=p=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${p} before the mount of the component.`);return u.current};v.useImperativeHandle(a,()=>({getRoot(){return f("getRoot")},getSectionContainer(p){return f("getSectionContainer").querySelector(`.${Xn.section}[data-sectionindex="${p}"]`)},getSectionContent(p){return f("getSectionContent").querySelector(`.${Xn.section}[data-sectionindex="${p}"] .${Xn.sectionContent}`)},getSectionIndexFromDOMElement(p){const h=f("getSectionIndexFromDOMElement");if(p==null||!h.contains(p))return null;let S=null;return p.classList.contains(Xn.section)?S=p:p.classList.contains(Xn.sectionContent)&&(S=p.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const b=o?.root??vu,d=Ce({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return g.jsx(b,j({},d,{children:d.contentEditable?i.map(({content:p,before:h,after:S})=>`${h.children}${p.children}${S.children}`).join(""):g.jsx(v.Fragment,{children:i.map((p,h)=>g.jsx(OS,{slots:o,slotProps:s,element:p,classes:c},h))})}))}),AS=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],FS=e=>Math.round(e*1e5)/1e5,zo=U("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:`${FS(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),vi=U(vu,{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}}]})),LS=U(xu,{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"})),NS=U(wu,{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"})),jS=U(Su,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),BS=U("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},eg)),VS=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,m={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${le(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return he(m,DS,o)},xi=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:m,slots:f,slotProps:b,contentEditable:d,tabIndex:p,onInput:h,onPaste:S,onKeyDown:C,name:w,readOnly:x,inputProps:T,inputRef:k,sectionListRef:O}=r,I=ve(r,AS),N=v.useRef(null),L=Pe(n,N),R=Pe(T?.ref,k),y=vt(),E=ft();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=V=>{if(E.disabled){V.stopPropagation();return}E.onFocus?.(V)};v.useEffect(()=>{E&&E.setAdornedStart(!!u)},[E,u]),v.useEffect(()=>{E&&(s?E.onEmpty():E.onFilled())},[E,s]);const P=j({},r,E,{isRtl:y}),M=VS(P),A=f?.root||zo,$=Ce({elementType:A,externalSlotProps:b?.root,externalForwardedProps:I,additionalProps:{"aria-invalid":E.error,ref:L},className:M.root,ownerState:P}),F=f?.input||vi;return g.jsxs(A,j({},$,{children:[u,g.jsx($S,{sectionListRef:O,elements:o,contentEditable:d,tabIndex:p,className:M.sectionsContainer,onFocus:D,onBlur:E.onBlur,onInput:h,onPaste:S,onKeyDown:C,slots:{root:F,section:LS,sectionContent:NS,sectionSeparator:jS},slotProps:{root:{ownerState:P},sectionContent:{className:En.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?En.sectionBefore:En.sectionAfter})}}),c,m?m(j({},E)):null,g.jsx(BS,j({name:w,className:M.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:E.required,disabled:E.disabled},T,{ref:R}))]}))});function zS(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},En,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),_S=["children","className","label","notched","shrink"],WS=U("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}}),cl=U("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),HS=U("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 US(e){const{className:t,label:n}=e,r=ve(e,_S),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return g.jsx(WS,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:g.jsx(HS,{ownerState:s,children:o?g.jsx(cl,{children:n}):g.jsx(cl,{className:"notranslate",children:"​"})})}))}const YS=["label","autoFocus","ownerState","notched"],GS=U(zo,{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 .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${yt.focused} .${yt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${yt.disabled}`]:{[`& .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${yt.error} .${yt.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:{[`&.${yt.focused}:not(.${yt.error}) .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),KS=U(vi,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),qS=e=>{const{classes:t}=e,r=he({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zS,t);return j({},t,r)},Cu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,YS),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=qS(c);return g.jsx(xi,j({slots:{root:GS,input:KS},renderSuffix:m=>g.jsx(US,{shrink:!!(i||m.adornedStart||m.focused||m.filled),notched:!!(i||m.adornedStart||m.focused||m.filled),className:u.notchedOutline,label:o!=null&&o!==""&&l?.required?g.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Cu.muiName="Input";function XS(e){return ge("MuiPickersFilledInput",e)}const Zt=j({},En,me("MuiPickersFilledInput",["root","underline","input"])),QS=["label","autoFocus","disableUnderline","ownerState"],ZS=U(zo,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>We.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}},[`&.${Zt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Zt.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"},[`&.${Zt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zt.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(.${Zt.disabled}, .${Zt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zt.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),JS=U(vi,{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}}]}),ew=e=>{const{classes:t,disableUnderline:n}=e,o=he({root:["root",!n&&"underline"],input:["input"]},XS,t);return j({},t,o)},Pu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,QS),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=ew(c);return g.jsx(xi,j({slots:{root:ZS,input:JS},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});Pu.muiName="Input";function tw(e){return ge("MuiPickersFilledInput",e)}const Qn=j({},En,me("MuiPickersInput",["root","input"])),nw=["label","autoFocus","disableUnderline","ownerState"],rw=U(zo,{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"},[`&.${Qn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qn.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(.${Qn.disabled}, .${Qn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Qn.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),ow=e=>{const{classes:t,disableUnderline:n}=e,o=he({root:["root",!n&&"underline"],input:["input"]},tw,t);return j({},t,o)},ku=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,nw),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=ow(c);return g.jsx(xi,j({slots:{root:rw}},a,{label:o,classes:u,ref:n}))});ku.muiName="Input";const sw=["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"],iw={standard:ku,filled:Pu,outlined:Cu},aw=U(hi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),lw=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return he({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},TS,r)},cw=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:m=!1,InputProps:f,inputProps:b,inputRef:d,sectionListRef:p,elements:h,areAllSectionsEmpty:S,onClick:C,onKeyDown:w,onKeyUp:x,onPaste:T,onInput:k,endAdornment:O,startAdornment:I,tabIndex:N,contentEditable:L,focused:R,value:y,onChange:E,fullWidth:D,id:P,name:M,helperText:A,FormHelperTextProps:$,label:F,InputLabelProps:V}=r,q=ve(r,sw),re=v.useRef(null),ae=Pe(n,re),ie=xt(P),z=A&&ie?`${ie}-helper-text`:void 0,Z=F&&ie?`${ie}-label`:void 0,X=j({},r,{color:a,disabled:l,error:c,focused:R,required:m,variant:u}),Y=lw(X),W=iw[u];return g.jsxs(aw,j({className:de(Y.root,i),ref:ae,focused:R,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:m,ownerState:X},q,{children:[g.jsx(mi,j({htmlFor:ie,id:Z},V,{children:F})),g.jsx(W,j({elements:h,areAllSectionsEmpty:S,onClick:C,onKeyDown:w,onKeyUp:x,onInput:k,onPaste:T,endAdornment:O,startAdornment:I,tabIndex:N,contentEditable:L,value:y,onChange:E,id:ie,fullWidth:D,inputProps:b,inputRef:d,sectionListRef:p,label:F,name:M,role:"group","aria-labelledby":Z,"aria-describedby":z,"aria-live":z?"polite":void 0},f)),A&&g.jsx(cu,j({id:z},$,{children:A}))]}))}),uw=["enableAccessibleFieldDOMStructure"],dw=["InputProps","readOnly"],pw=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],fw=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,uw);if(t){const{InputProps:m,readOnly:f}=n,b=ve(n,dw);return j({},b,{InputProps:j({},m??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,pw);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},mw=["slots","slotProps","InputProps","inputProps"],Mu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,mw),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?cw:bu),m=Ce({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});m.inputProps=j({},a,m.inputProps),m.InputProps=j({},i,m.InputProps);const f=MS(m),b=fw(f),d=wS(j({},b,{slots:o,slotProps:s}));return g.jsx(u,j({},d))}),Tu=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=mn();return v.useCallback(c=>Dr({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])},hw=(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")}},gw=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:m}=e,f=Ae(),b=v.useRef(hw(!!c,s,f)).current,d=v.useMemo(()=>Dt.getInitialReferenceValue({value:t,utils:f,timezone:m,props:e,referenceDate:n,granularity:Pt.day}),[n,m]),[p,h]=v.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:d,currentMonth:f.startOfMonth(d),slideDirection:"left"});v.useEffect(()=>{h({type:"changeMonthTimezone",newTimezone:f.getTimezone(d)})},[d,f]);const S=v.useCallback(k=>{h(j({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),C=v.useCallback(k=>{const O=k;f.isSameMonth(O,p.currentMonth)||S({newMonth:f.startOfMonth(O),direction:f.isAfterDay(O,p.currentMonth)?"left":"right"})},[p.currentMonth,S,f]),w=Tu({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:m}),x=v.useCallback(()=>{h({type:"finishMonthSwitchingAnimation"})},[]),T=ue((k,O)=>{w(k)||h({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:O})});return{referenceDate:d,calendarState:p,changeMonth:C,changeFocusedDay:T,isDateDisabled:w,onMonthSwitchingAnimationEnd:x,handleChangeMonth:S}},yw=e=>ge("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const bw=e=>{const{classes:t}=e;return he({root:["root"]},yw,t)},vw=U(Rr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Du(e){const t=$e({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=bw(t),a=fn();return o?n:g.jsx(vw,{className:de(i.root,r),children:g.jsx(un,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function xw(e){return ge("MuiPickersDay",e)}const Jt=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Sw=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],ww=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return he({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},xw,l)},Ru=({theme:e})=>j({},e.typography.caption,{width:vr,height:vr,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})`:We.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:We.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Jt.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Jt.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}},[`&.${Jt.disabled}:not(.${Jt.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jt.disabled}&.${Jt.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Fo}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Jt.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Iu=(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]},Cw=U(Fn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Iu})(Ru),Pw=U("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Iu})(({theme:e})=>j({},Ru({theme:e}),{opacity:0,pointerEvents:"none"})),Zn=()=>{},kw=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:m,onDaySelect:f,onFocus:b=Zn,onBlur:d=Zn,onKeyDown:p=Zn,onMouseDown:h=Zn,onMouseEnter:S=Zn,outsideCurrentMonth:C,selected:w=!1,showDaysOutsideCurrentMonth:x=!1,children:T,today:k=!1}=r,O=ve(r,Sw),I=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:x,today:k}),N=ww(I),L=Ae(),R=v.useRef(null),y=Pe(R,n);He(()=>{o&&!a&&!u&&!C&&R.current.focus()},[o,a,u,C]);const E=P=>{h(P),C&&P.preventDefault()},D=P=>{a||f(i),C&&P.currentTarget.focus(),m&&m(P)};return C&&!x?g.jsx(Pw,{className:de(N.root,N.hiddenDaySpacingFiller,s),ownerState:I,role:O.role}):g.jsx(Cw,j({className:de(N.root,s),ref:y,centerRipple:!0,disabled:a,tabIndex:w?0:-1,onKeyDown:P=>p(P,i),onFocus:P=>b(P,i),onBlur:P=>d(P,i),onMouseEnter:P=>S(P,i),onClick:D,onMouseDown:E},O,{ownerState:I,children:T||L.format(i,"dayOfMonth")}))}),Mw=v.memo(kw),Tw=e=>ge("MuiPickersSlideTransition",e),ot=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Dw=["children","className","reduceAnimations","slideDirection","transKey","classes"],Rw=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return he(r,Tw,t)},Iw=U(Rr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ot["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ot["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ot.slideEnterActive}`]:t.slideEnterActive},{[`.${ot.slideExit}`]:t.slideExit},{[`.${ot["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ot["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},[`& .${ot["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ot["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ot.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ot.slideExit}`]:{transform:"translate(0%)"},[`& .${ot["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ot["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Ew(e){const t=$e({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,Dw),a=Rw(t),l=fn();if(o)return g.jsx("div",{className:de(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return g.jsx(Iw,{className:de(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:g.jsx(Qs,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const Ow=e=>ge("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const $w=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Aw=["ownerState"],Fw=e=>{const{classes:t}=e;return he({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Ow,t)},Eu=(vr+Fo*2)*6,Lw=U("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nw=U("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),jw=U(Gt,{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})),Bw=U(Gt,{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})),Vw=U(Gt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:vr,height:vr,padding:0,margin:`0 ${Fo}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),zw=U("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Eu}),_w=U(Ew,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Eu}),Ww=U("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Hw=U("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Fo}px 0`,display:"flex",justifyContent:"center"});function Uw(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,$w);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:f,slots:b,slotProps:d,timezone:p}=t,h=Ae(),S=Oo(p),C=r!==null&&h.isSameDay(n,r),w=o.some(y=>h.isSameDay(y,n)),x=h.isSameDay(n,S),T=b?.day??Mw,k=Ce({elementType:T,externalSlotProps:d?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:m,"data-timestamp":h.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:w})}),O=ve(k,Aw),I=v.useMemo(()=>c||s(n),[c,s,n]),N=v.useMemo(()=>h.getMonth(n)!==i,[h,n,i]),L=v.useMemo(()=>{const y=h.startOfMonth(h.setMonth(n,i));return f?h.isSameDay(n,h.startOfWeek(y)):h.isSameDay(n,y)},[i,n,f,h]),R=v.useMemo(()=>{const y=h.endOfMonth(h.setMonth(n,i));return f?h.isSameDay(n,h.endOfWeek(y)):h.isSameDay(n,y)},[i,n,f,h]);return g.jsx(T,j({},O,{day:n,disabled:I,autoFocus:a&&C,today:x,outsideCurrentMonth:N,isFirstVisibleCell:L,isLastVisibleCell:R,selected:w,tabIndex:C?0:-1,"aria-selected":w,"aria-current":x?"date":void 0}))}function Yw(e){const t=$e({props:e,name:"MuiDayCalendar"}),n=Ae(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:m,reduceAnimations:f,renderLoading:b=()=>g.jsx("span",{children:"..."}),slideDirection:d,TransitionProps:p,disablePast:h,disableFuture:S,minDate:C,maxDate:w,shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:k,dayOfWeekFormatter:O=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:I,onFocusedViewChange:N,gridLabelId:L,displayWeekNumber:R,fixedWeekNumber:y,autoFocus:E,timezone:D}=t,P=Oo(D),M=Fw(t),A=vt(),$=Tu({shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:k,minDate:C,maxDate:w,disablePast:h,disableFuture:S,timezone:D}),F=Nt(),[V,q]=Tt({name:"DayCalendar",state:"hasFocus",controlled:I,default:E??!1}),[re,ae]=v.useState(()=>a||P),ie=ue(te=>{m||c(te)}),z=te=>{$(te)||(r(te),ae(te),N?.(!0),q(!0))},Z=ue((te,ce)=>{switch(te.key){case"ArrowUp":z(n.addDays(ce,-7)),te.preventDefault();break;case"ArrowDown":z(n.addDays(ce,7)),te.preventDefault();break;case"ArrowLeft":{const se=n.addDays(ce,A?1:-1),fe=n.addMonths(ce,A?1:-1),be=ar({utils:n,date:se,minDate:A?se:n.startOfMonth(fe),maxDate:A?n.endOfMonth(fe):se,isDateDisabled:$,timezone:D});z(be||se),te.preventDefault();break}case"ArrowRight":{const se=n.addDays(ce,A?-1:1),fe=n.addMonths(ce,A?-1:1),be=ar({utils:n,date:se,minDate:A?n.startOfMonth(fe):se,maxDate:A?se:n.endOfMonth(fe),isDateDisabled:$,timezone:D});z(be||se),te.preventDefault();break}case"Home":z(n.startOfWeek(ce)),te.preventDefault();break;case"End":z(n.endOfWeek(ce)),te.preventDefault();break;case"PageUp":z(n.addMonths(ce,1)),te.preventDefault();break;case"PageDown":z(n.addMonths(ce,-1)),te.preventDefault();break}}),X=ue((te,ce)=>z(ce)),Y=ue((te,ce)=>{V&&n.isSameDay(re,ce)&&N?.(!1)}),W=n.getMonth(s),G=n.getYear(s),ee=v.useMemo(()=>i.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,i]),J=`${G}-${W}`,B=v.useMemo(()=>v.createRef(),[J]),K=v.useMemo(()=>{const te=n.startOfMonth(s),ce=n.endOfMonth(s);return $(re)||n.isAfterDay(re,ce)||n.isBeforeDay(re,te)?ar({utils:n,date:re,minDate:te,maxDate:ce,disablePast:h,disableFuture:S,isDateDisabled:$,timezone:D}):re},[s,S,h,re,$,n,D]),oe=v.useMemo(()=>{const te=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;y&&te.length<y;){const se=n.getWeekArray(ce),fe=n.isSameDay(te[te.length-1][0],se[0][0]);se.slice(fe?1:0).forEach(be=>{te.length<y&&te.push(be)}),ce=n.addMonths(ce,1)}return te},[s,y,n]);return g.jsxs(Lw,{role:"grid","aria-labelledby":L,className:M.root,children:[g.jsxs(Nw,{role:"row",className:M.header,children:[R&&g.jsx(Bw,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:M.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),sg(n,P).map((te,ce)=>g.jsx(jw,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:M.weekDayLabel,children:O(te)},ce.toString()))]}),l?g.jsx(zw,{className:M.loadingContainer,children:b()}):g.jsx(_w,j({transKey:J,onExited:u,reduceAnimations:f,slideDirection:d,className:de(o,M.slideTransition)},p,{nodeRef:B,children:g.jsx(Ww,{ref:B,role:"rowgroup",className:M.monthContainer,children:oe.map((te,ce)=>g.jsxs(Hw,{role:"row",className:M.weekContainer,"aria-rowindex":ce+1,children:[R&&g.jsx(Vw,{className:M.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:F.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((se,fe)=>g.jsx(Uw,{parentProps:t,day:se,selectedDays:ee,focusableDay:K,onKeyDown:Z,onFocus:X,onBlur:Y,onDaySelect:ie,isDateDisabled:$,currentMonthNumber:W,isViewFocused:V,"aria-colindex":fe+1},se.toString()))]},`week-${te[0]}`))})}))]})}function Gw(e){return ge("MuiPickersMonth",e)}const Vr=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),Kw=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],qw=e=>{const{disabled:t,selected:n,classes:r}=e;return he({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Gw,r)},Xw=U("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%"}}]}),Qw=U("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Vr.disabled}`]:t.disabled},{[`&.${Vr.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})`:We.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Vr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Zw=v.memo(function(t){const n=$e({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:m,onFocus:f,onBlur:b,"aria-current":d,"aria-label":p,slots:h,slotProps:S}=n,C=ve(n,Kw),w=v.useRef(null),x=qw(n);He(()=>{r&&w.current?.focus()},[r]);const T=h?.monthButton??Qw,k=Ce({elementType:T,externalSlotProps:S?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":d,"aria-checked":a,"aria-label":p,onClick:O=>u(O,l),onKeyDown:O=>m(O,l),onFocus:O=>f(O,l),onBlur:O=>b(O,l)},ownerState:n,className:x.monthButton});return g.jsx(Xw,j({className:de(x.root,o),ownerState:n},C,{children:g.jsx(T,j({},k))}))});function Jw(e){return ge("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const eC=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],tC=e=>{const{classes:t}=e;return he({root:["root"]},Jw,t)};function nC(e,t){const n=Ae(),r=Tr(),o=$e({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const rC=U("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Lo,boxSizing:"border-box"}),oC=v.forwardRef(function(t,n){const r=nC(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:m,minDate:f,onChange:b,shouldDisableMonth:d,readOnly:p,autoFocus:h=!1,onMonthFocus:S,hasFocus:C,onFocusedViewChange:w,monthsPerRow:x=3,timezone:T,gridLabelId:k,slots:O,slotProps:I}=r,N=ve(r,eC),{value:L,handleValueChange:R,timezone:y}=li({name:"MonthCalendar",timezone:T,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Dt}),E=Oo(y),D=vt(),P=Ae(),M=v.useMemo(()=>Dt.getInitialReferenceValue({value:L,utils:P,props:r,timezone:y,referenceDate:a,granularity:Pt.month}),[]),A=r,$=tC(A),F=v.useMemo(()=>P.getMonth(E),[P,E]),V=v.useMemo(()=>L!=null?P.getMonth(L):null,[L,P]),[q,re]=v.useState(()=>V||P.getMonth(M)),[ae,ie]=Tt({name:"MonthCalendar",state:"hasFocus",controlled:C,default:h??!1}),z=ue(J=>{ie(J),w&&w(J)}),Z=v.useCallback(J=>{const B=P.startOfMonth(u&&P.isAfter(E,f)?E:f),K=P.startOfMonth(c&&P.isBefore(E,m)?E:m),oe=P.startOfMonth(J);return P.isBefore(oe,B)||P.isAfter(oe,K)?!0:d?d(oe):!1},[c,u,m,f,E,d,P]),X=ue((J,B)=>{if(p)return;const K=P.setMonth(L??M,B);R(K)}),Y=ue(J=>{Z(P.setMonth(L??M,J))||(re(J),z(!0),S&&S(J))});v.useEffect(()=>{re(J=>V!==null&&J!==V?V:J)},[V]);const W=ue((J,B)=>{switch(J.key){case"ArrowUp":Y((12+B-3)%12),J.preventDefault();break;case"ArrowDown":Y((12+B+3)%12),J.preventDefault();break;case"ArrowLeft":Y((12+B+(D?1:-1))%12),J.preventDefault();break;case"ArrowRight":Y((12+B+(D?-1:1))%12),J.preventDefault();break}}),G=ue((J,B)=>{Y(B)}),ee=ue((J,B)=>{q===B&&z(!1)});return g.jsx(rC,j({ref:n,className:de($.root,o),ownerState:A,role:"radiogroup","aria-labelledby":k},N,{children:Ys(P,L??M).map(J=>{const B=P.getMonth(J),K=P.format(J,"monthShort"),oe=P.format(J,"month"),te=B===V,ce=l||Z(J);return g.jsx(Zw,{selected:te,value:B,onClick:X,onKeyDown:W,autoFocus:ae&&B===q,disabled:ce,tabIndex:B===q&&!ce?0:-1,onFocus:G,onBlur:ee,"aria-current":F===B?"date":void 0,"aria-label":oe,monthsPerRow:x,slots:O,slotProps:I,children:K},K)})}))});function sC(e){return ge("MuiPickersYear",e)}const zr=me("MuiPickersYear",["root","yearButton","selected","disabled"]),iC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],aC=e=>{const{disabled:t,selected:n,classes:r}=e;return he({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},sC,r)},lC=U("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%"}}]}),cC=U("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${zr.disabled}`]:t.disabled},{[`&.${zr.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})`:We.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${zr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${zr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),uC=v.memo(function(t){const n=$e({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:m,onFocus:f,onBlur:b,"aria-current":d,slots:p,slotProps:h}=n,S=ve(n,iC),C=v.useRef(null),w=aC(n);He(()=>{r&&C.current?.focus()},[r]);const x=p?.yearButton??cC,T=Ce({elementType:x,externalSlotProps:h?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":d,"aria-checked":a,onClick:k=>u(k,l),onKeyDown:k=>m(k,l),onFocus:k=>f(k,l),onBlur:k=>b(k,l)},ownerState:n,className:w.yearButton});return g.jsx(lC,j({className:de(w.root,o),ownerState:n},S,{children:g.jsx(x,j({},T))}))});function dC(e){return ge("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const pC=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],fC=e=>{const{classes:t}=e;return he({root:["root"]},dC,t)};function mC(e,t){const n=Ae(),r=Tr(),o=$e({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const hC=U("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Lo,maxHeight:px,boxSizing:"border-box",position:"relative"}),gC=v.forwardRef(function(t,n){const r=mC(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:m,maxDate:f,minDate:b,onChange:d,readOnly:p,shouldDisableYear:h,onYearFocus:S,hasFocus:C,onFocusedViewChange:w,yearsOrder:x="asc",yearsPerRow:T,timezone:k,gridLabelId:O,slots:I,slotProps:N}=r,L=ve(r,pC),{value:R,handleValueChange:y,timezone:E}=li({name:"YearCalendar",timezone:k,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Dt}),D=Oo(E),P=vt(),M=Ae(),A=v.useMemo(()=>Dt.getInitialReferenceValue({value:R,utils:M,props:r,timezone:E,referenceDate:l,granularity:Pt.year}),[]),$=r,F=fC($),V=v.useMemo(()=>M.getYear(D),[M,D]),q=v.useMemo(()=>R!=null?M.getYear(R):null,[R,M]),[re,ae]=v.useState(()=>q||M.getYear(A)),[ie,z]=Tt({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),Z=ue(se=>{z(se),w&&w(se)}),X=v.useCallback(se=>{if(m&&M.isBeforeYear(se,D)||u&&M.isAfterYear(se,D)||b&&M.isBeforeYear(se,b)||f&&M.isAfterYear(se,f))return!0;if(!h)return!1;const fe=M.startOfYear(se);return h(fe)},[u,m,f,b,D,h,M]),Y=ue((se,fe)=>{if(p)return;const be=M.setYear(R??A,fe);y(be)}),W=ue(se=>{X(M.setYear(R??A,se))||(ae(se),Z(!0),S?.(se))});v.useEffect(()=>{ae(se=>q!==null&&se!==q?q:se)},[q]);const G=x!=="desc"?T*1:T*-1,ee=P&&x==="asc"||!P&&x==="desc"?-1:1,J=ue((se,fe)=>{switch(se.key){case"ArrowUp":W(fe-G),se.preventDefault();break;case"ArrowDown":W(fe+G),se.preventDefault();break;case"ArrowLeft":W(fe-ee),se.preventDefault();break;case"ArrowRight":W(fe+ee),se.preventDefault();break}}),B=ue((se,fe)=>{W(fe)}),K=ue((se,fe)=>{re===fe&&Z(!1)}),oe=v.useRef(null),te=Pe(n,oe);v.useEffect(()=>{if(o||oe.current===null)return;const se=oe.current.querySelector('[tabindex="0"]');if(!se)return;const fe=se.offsetHeight,be=se.offsetTop,Se=oe.current.clientHeight,pe=oe.current.scrollTop,Ke=be+fe;fe>Se||be<pe||(oe.current.scrollTop=Ke-Se/2-fe/2)},[o]);const ce=M.getYearRange([b,f]);return x==="desc"&&ce.reverse(),g.jsx(hC,j({ref:te,className:de(F.root,s),ownerState:$,role:"radiogroup","aria-labelledby":O},L,{children:ce.map(se=>{const fe=M.getYear(se),be=fe===q,Se=c||X(se);return g.jsx(uC,{selected:be,value:fe,onClick:Y,onKeyDown:J,autoFocus:ie&&fe===re,disabled:Se,tabIndex:fe===re&&!Se?0:-1,onFocus:B,onBlur:K,"aria-current":V===fe?"date":void 0,yearsPerRow:T,slots:I,slotProps:N,children:M.format(se,"year")},M.format(se,"year"))})}))}),yC=e=>ge("MuiPickersCalendarHeader",e),bC=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function vC(e){return ge("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const xC=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],SC=["ownerState"],wC=["ownerState"],CC=U("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),PC=U("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ul=U(Ir,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),kC=e=>{const{classes:t}=e;return he({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},vC,t)},MC=v.forwardRef(function(t,n){const r=vt(),o=$e({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:m,nextLabel:f,isPreviousDisabled:b,isPreviousHidden:d,onGoToPrevious:p,previousLabel:h,labelId:S}=o,C=ve(o,xC),w=o,x=kC(w),T={isDisabled:c,isHidden:u,goTo:m,label:f},k={isDisabled:b,isHidden:d,goTo:p,label:h},O=a?.previousIconButton??ul,I=Ce({elementType:O,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:j({},w,{hidden:k.isHidden}),className:de(x.button,x.previousIconButton)}),N=a?.nextIconButton??ul,L=Ce({elementType:N,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:j({},w,{hidden:T.isHidden}),className:de(x.button,x.nextIconButton)}),R=a?.leftArrowIcon??Dx,y=Ce({elementType:R,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.leftArrowIcon}),E=ve(y,SC),D=a?.rightArrowIcon??Rx,P=Ce({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.rightArrowIcon}),M=ve(P,wC);return g.jsxs(CC,j({ref:n,className:de(x.root,i),ownerState:w},C,{children:[g.jsx(O,j({},I,{children:r?g.jsx(D,j({},M)):g.jsx(R,j({},E))})),s?g.jsx(Gt,{variant:"subtitle1",component:"span",id:S,children:s}):g.jsx(PC,{className:x.spacer,ownerState:w}),g.jsx(N,j({},L,{children:r?g.jsx(R,j({},E)):g.jsx(D,j({},M))}))]}))});function TC(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Ae();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 DC(e,{disablePast:t,minDate:n,timezone:r}){const o=Ae();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 RC=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],IC=["ownerState"],EC=e=>{const{classes:t}=e;return he({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},yC,t)},OC=U("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}),$C=U("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})),AC=U("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),FC=U(Ir,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${bC.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),LC=U(Tx,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),NC=v.forwardRef(function(t,n){const r=Nt(),o=Ae(),s=$e({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:m,maxDate:f,minDate:b,onMonthChange:d,onViewChange:p,view:h,reduceAnimations:S,views:C,labelId:w,className:x,timezone:T,format:k=`${o.formats.month} ${o.formats.year}`}=s,O=ve(s,RC),I=s,N=EC(s),L=i?.switchViewButton??FC,R=Ce({elementType:L,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(h)},ownerState:I,className:N.switchViewButton}),y=i?.switchViewIcon??LC,E=Ce({elementType:y,externalSlotProps:a?.switchViewIcon,ownerState:I,className:N.switchViewIcon}),D=ve(E,IC),P=()=>d(o.addMonths(l,1),"left"),M=()=>d(o.addMonths(l,-1),"right"),A=TC(l,{disableFuture:u,maxDate:f,timezone:T}),$=DC(l,{disablePast:m,minDate:b,timezone:T}),F=()=>{if(!(C.length===1||!p||c))if(C.length===2)p(C.find(q=>q!==h)||C[0]);else{const q=C.indexOf(h)!==0?0:1;p(C[q])}};if(C.length===1&&C[0]==="year")return null;const V=o.formatByString(l,k);return g.jsxs(OC,j({},O,{ownerState:I,className:de(N.root,x),ref:n,children:[g.jsxs($C,{role:"presentation",onClick:F,ownerState:I,"aria-live":"polite",className:N.labelContainer,children:[g.jsx(Du,{reduceAnimations:S,transKey:V,children:g.jsx(AC,{id:w,ownerState:I,className:N.label,children:V})}),C.length>1&&!c&&g.jsx(L,j({},R,{children:g.jsx(y,j({},D))}))]}),g.jsx(un,{in:h==="day",appear:!S,enter:!S,children:g.jsx(MC,{slots:i,slotProps:a,onGoToPrevious:M,isPreviousDisabled:$,previousLabel:r.previousMonth,onGoToNext:P,isNextDisabled:A,nextLabel:r.nextMonth})})]}))}),jC=U("div")({overflow:"hidden",width:Lo,maxHeight:ci,display:"flex",flexDirection:"column",margin:"0 auto"}),BC=e=>ge("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const VC=["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"],zC=e=>{const{classes:t}=e;return he({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},BC,t)};function _C(e,t){const n=Ae(),r=Tr(),o=Jc(),s=$e({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??(()=>g.jsx("span",{children:"..."})),minDate:lt(n,s.minDate,r.minDate),maxDate:lt(n,s.maxDate,r.maxDate)})}const WC=U(jC,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:ci}),HC=U(Du,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),UC=v.forwardRef(function(t,n){const r=Ae(),o=xt(),s=_C(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:m,disablePast:f,onChange:b,onYearChange:d,onMonthChange:p,reduceAnimations:h,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:w,view:x,views:T,openTo:k,className:O,disabled:I,readOnly:N,minDate:L,maxDate:R,disableHighlightToday:y,focusedView:E,onFocusedViewChange:D,showDaysOutsideCurrentMonth:P,fixedWeekNumber:M,dayOfWeekFormatter:A,slots:$,slotProps:F,loading:V,renderLoading:q,displayWeekNumber:re,yearsOrder:ae,yearsPerRow:ie,monthsPerRow:z,timezone:Z}=s,X=ve(s,VC),{value:Y,handleValueChange:W,timezone:G}=li({name:"DateCalendar",timezone:Z,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Dt}),{view:ee,setView:J,focusedView:B,setFocusedView:K,goToNextView:oe,setValueAndGoToNextView:te}=eu({view:x,views:T,openTo:k,onChange:W,onViewChange:a,autoFocus:i,focusedView:E,onFocusedViewChange:D}),{referenceDate:ce,calendarState:se,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:Se,isDateDisabled:pe,onMonthSwitchingAnimationEnd:Ke}=gw({value:Y,referenceDate:u,reduceAnimations:h,onMonthChange:p,minDate:L,maxDate:R,shouldDisableDate:S,disablePast:f,disableFuture:m,timezone:G}),Ne=I&&Y||L,mt=I&&Y||R,ht=`${o}-grid-label`,nt=B!==null,rt=$?.calendarHeader??NC,jt=Ce({elementType:rt,externalSlotProps:F?.calendarHeader,additionalProps:{views:T,view:ee,currentMonth:se.currentMonth,onViewChange:J,onMonthChange:(Oe,wt)=>Se({newMonth:Oe,direction:wt}),minDate:Ne,maxDate:mt,disabled:I,disablePast:f,disableFuture:m,reduceAnimations:h,timezone:G,labelId:ht},ownerState:s}),gt=ue(Oe=>{const wt=r.startOfMonth(Oe),Wn=r.endOfMonth(Oe),_t=pe(Oe)?ar({utils:r,date:Oe,minDate:r.isBefore(L,wt)?wt:L,maxDate:r.isAfter(R,Wn)?Wn:R,disablePast:f,disableFuture:m,isDateDisabled:pe,timezone:G}):Oe;_t?(te(_t,"finish"),p?.(wt)):(oe(),be(wt)),fe(_t,!0)}),Ee=ue(Oe=>{const wt=r.startOfYear(Oe),Wn=r.endOfYear(Oe),_t=pe(Oe)?ar({utils:r,date:Oe,minDate:r.isBefore(L,wt)?wt:L,maxDate:r.isAfter(R,Wn)?Wn:R,disablePast:f,disableFuture:m,isDateDisabled:pe,timezone:G}):Oe;_t?(te(_t,"finish"),d?.(_t)):(oe(),be(wt)),fe(_t,!0)}),Bt=ue(Oe=>W(Oe&&lo(r,Oe,Y??ce),"finish",ee));v.useEffect(()=>{Y!=null&&r.isValid(Y)&&be(Y)},[Y]);const Vt=s,_n=zC(Vt),ye={disablePast:f,disableFuture:m,maxDate:R,minDate:L},ke={disableHighlightToday:y,readOnly:N,disabled:I,timezone:G,gridLabelId:ht,slots:$,slotProps:F},Ve=v.useRef(ee);v.useEffect(()=>{Ve.current!==ee&&(B===Ve.current&&K(ee,!0),Ve.current=ee)},[B,K,ee]);const zt=v.useMemo(()=>[Y],[Y]);return g.jsxs(WC,j({ref:n,className:de(_n.root,O),ownerState:Vt},X,{children:[g.jsx(rt,j({},jt,{slots:$,slotProps:F})),g.jsx(HC,{reduceAnimations:h,className:_n.viewTransitionContainer,transKey:ee,ownerState:Vt,children:g.jsxs("div",{children:[ee==="year"&&g.jsx(gC,j({},ye,ke,{value:Y,onChange:Ee,shouldDisableYear:w,hasFocus:nt,onFocusedViewChange:Oe=>K("year",Oe),yearsOrder:ae,yearsPerRow:ie,referenceDate:ce})),ee==="month"&&g.jsx(oC,j({},ye,ke,{hasFocus:nt,className:O,value:Y,onChange:gt,shouldDisableMonth:C,onFocusedViewChange:Oe=>K("month",Oe),monthsPerRow:z,referenceDate:ce})),ee==="day"&&g.jsx(Yw,j({},se,ye,ke,{onMonthSwitchingAnimationEnd:Ke,onFocusedDayChange:fe,reduceAnimations:h,selectedDays:zt,onSelectedDaysChange:Bt,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:w,hasFocus:nt,onFocusedViewChange:Oe=>K("day",Oe),showDaysOutsideCurrentMonth:P,fixedWeekNumber:M,dayOfWeekFormatter:A,displayWeekNumber:re,loading:V,renderLoading:q}))]})})]}))}),On=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:m,disablePast:f,minDate:b,maxDate:d,shouldDisableDate:p,shouldDisableMonth:h,shouldDisableYear:S,reduceAnimations:C,onMonthChange:w,monthsPerRow:x,onYearChange:T,yearsOrder:k,yearsPerRow:O,slots:I,slotProps:N,loading:L,renderLoading:R,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:P,dayOfWeekFormatter:M,sx:A,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:V,timezone:q})=>g.jsx(UC,{view:e,onViewChange:t,views:n.filter(va),focusedView:r&&va(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:m,disablePast:f,minDate:b,maxDate:d,shouldDisableDate:p,shouldDisableMonth:h,shouldDisableYear:S,reduceAnimations:C,onMonthChange:w,monthsPerRow:x,onYearChange:T,yearsOrder:k,yearsPerRow:O,slots:I,slotProps:N,loading:L,renderLoading:R,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:P,dayOfWeekFormatter:M,sx:A,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:V,timezone:q}),Ou=v.forwardRef(function(t,n){const r=Nt(),o=Ae(),s=Ac(t,"MuiDesktopDatePicker"),i=j({day:On,month:On,year:On},s.viewRenderers),a=j({},s,{viewRenderers:i,format:Gs(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:Ix,field:Mu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Io(s.slotProps?.field,c),Lc(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=Mx({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:Oc({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Dr});return l()});Ou.propTypes={autoFocus:_.bool,className:_.string,closeOnSelect:_.bool,dayOfWeekFormatter:_.func,defaultValue:_.object,disabled:_.bool,disableFuture:_.bool,disableHighlightToday:_.bool,disableOpenPicker:_.bool,disablePast:_.bool,displayWeekNumber:_.bool,enableAccessibleFieldDOMStructure:_.any,fixedWeekNumber:_.number,format:_.string,formatDensity:_.oneOf(["dense","spacious"]),inputRef:Sc,label:_.node,loading:_.bool,localeText:_.object,maxDate:_.object,minDate:_.object,monthsPerRow:_.oneOf([3,4]),name:_.string,onAccept:_.func,onChange:_.func,onClose:_.func,onError:_.func,onMonthChange:_.func,onOpen:_.func,onSelectedSectionsChange:_.func,onViewChange:_.func,onYearChange:_.func,open:_.bool,openTo:_.oneOf(["day","month","year"]),orientation:_.oneOf(["landscape","portrait"]),readOnly:_.bool,reduceAnimations:_.bool,referenceDate:_.object,renderLoading:_.func,selectedSections:_.oneOfType([_.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_.number]),shouldDisableDate:_.func,shouldDisableMonth:_.func,shouldDisableYear:_.func,showDaysOutsideCurrentMonth:_.bool,slotProps:_.object,slots:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),timezone:_.string,value:_.object,view:_.oneOf(["day","month","year"]),viewRenderers:_.shape({day:_.func,month:_.func,year:_.func}),views:_.arrayOf(_.oneOf(["day","month","year"]).isRequired),yearsOrder:_.oneOf(["asc","desc"]),yearsPerRow:_.oneOf([3,4])};function YC(e){return ge("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);const GC=me("MuiDialogTitle",["root"]),KC=e=>{const{classes:t,dividers:n}=e;return he({root:["root",n&&"dividers"]},YC,t)},qC=U("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ie(({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:{[`.${GC.root} + &`]:{paddingTop:0}}}]}))),XC=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=KC(a);return g.jsx(qC,{className:de(l.root,o),ownerState:a,ref:n,...i})});function QC(e){return ge("MuiDialog",e)}const pr=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ZC=v.createContext({}),JC=U(du,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),eP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return he(i,QC,t)},tP=U(pu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),nP=U("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),rP=U(Er,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ie(({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)`,[`&.${pr.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}`,[`&.${pr.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,[`&.${pr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),oP=v.forwardRef(function(t,n){const r=we({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:m,className:f,disableEscapeKeyDown:b=!1,fullScreen:d=!1,fullWidth:p=!1,maxWidth:h="sm",onClick:S,onClose:C,open:w,PaperComponent:x=Er,PaperProps:T={},scroll:k="paper",slots:O={},slotProps:I={},TransitionComponent:N=un,transitionDuration:L=s,TransitionProps:R,...y}=r,E={...r,disableEscapeKeyDown:b,fullScreen:d,fullWidth:p,maxWidth:h,scroll:k},D=eP(E),P=v.useRef(),M=B=>{P.current=B.target===B.currentTarget},A=B=>{S&&S(B),P.current&&(P.current=null,C&&C(B,"backdropClick"))},$=xt(a),F=v.useMemo(()=>({titleId:$}),[$]),V={transition:N,...O},q={transition:R,paper:T,backdrop:u,...I},re={slots:V,slotProps:q},[ae,ie]=Le("root",{elementType:tP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.root,f),ref:n}),[z,Z]=Le("backdrop",{elementType:JC,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E}),[X,Y]=Le("paper",{elementType:rP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.paper,T.className)}),[W,G]=Le("container",{elementType:nP,externalForwardedProps:re,ownerState:E,className:D.container}),[ee,J]=Le("transition",{elementType:un,externalForwardedProps:re,ownerState:E,additionalProps:{appear:!0,in:w,timeout:L,role:"presentation"}});return g.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:z},slotProps:{backdrop:{transitionDuration:L,as:c,...Z}},disableEscapeKeyDown:b,onClose:C,open:w,onClick:A,...ie,...y,children:g.jsx(ee,{...J,children:g.jsx(W,{onMouseDown:M,...G,children:g.jsx(X,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":$,"aria-modal":l,...Y,children:g.jsx(ZC.Provider,{value:F,children:m})})})})})}),sP=U(oP)({[`& .${pr.container}`]:{outline:0},[`& .${pr.paper}`]:{outline:0,minWidth:Lo}}),iP=U(XC)({"&:first-of-type":{padding:0}});function aP(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??sP,a=o?.mobileTransition??un;return g.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:g.jsx(iP,{children:t})}))}const lP=["props","getOpenDialogAriaText"],cP=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,lP);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,name:d,label:p,inputRef:h,readOnly:S,disabled:C,localeText:w}=t,x=v.useRef(null),T=xt(),k=s?.toolbar?.hidden??!1,{open:O,actions:I,layoutProps:N,renderCurrentView:L,fieldProps:R,contextValue:y}=tu(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),E=o.field,D=Ce({elementType:E,externalSlotProps:s?.field,additionalProps:j({},R,k&&{id:T},!(C||S)&&{onClick:I.onOpen,onKeyDown:pv(I.onOpen)},{readOnly:S??!0,disabled:C,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,label:p,name:d},h?{inputRef:h}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(R.value)});const P=j({textField:o.textField},D.slots),M=o.layout??au;let A=T;k&&(p?A=`${T}-label`:A=void 0);const $=j({},s,{toolbar:j({},s?.toolbar,{titleId:T}),mobilePaper:j({"aria-labelledby":A},s?.mobilePaper)}),F=Pe(x,D.unstableFieldRef);return{renderPicker:()=>g.jsxs(lu,{contextValue:y,localeText:w,children:[g.jsx(E,j({},D,{slots:P,slotProps:$,unstableFieldRef:F})),g.jsx(aP,j({},I,{open:O,slots:o,slotProps:$,children:g.jsx(M,j({},N,$?.layout,{slots:o,slotProps:$,children:L()}))}))]})}},$u=v.forwardRef(function(t,n){const r=Nt(),o=Ae(),s=Ac(t,"MuiMobileDatePicker"),i=j({day:On,month:On,year:On},s.viewRenderers),a=j({},s,{viewRenderers:i,format:Gs(o,s,!1),slots:j({field:Mu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Io(s.slotProps?.field,c),Lc(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=cP({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:Oc({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Dr});return l()});$u.propTypes={autoFocus:_.bool,className:_.string,closeOnSelect:_.bool,dayOfWeekFormatter:_.func,defaultValue:_.object,disabled:_.bool,disableFuture:_.bool,disableHighlightToday:_.bool,disableOpenPicker:_.bool,disablePast:_.bool,displayWeekNumber:_.bool,enableAccessibleFieldDOMStructure:_.any,fixedWeekNumber:_.number,format:_.string,formatDensity:_.oneOf(["dense","spacious"]),inputRef:Sc,label:_.node,loading:_.bool,localeText:_.object,maxDate:_.object,minDate:_.object,monthsPerRow:_.oneOf([3,4]),name:_.string,onAccept:_.func,onChange:_.func,onClose:_.func,onError:_.func,onMonthChange:_.func,onOpen:_.func,onSelectedSectionsChange:_.func,onViewChange:_.func,onYearChange:_.func,open:_.bool,openTo:_.oneOf(["day","month","year"]),orientation:_.oneOf(["landscape","portrait"]),readOnly:_.bool,reduceAnimations:_.bool,referenceDate:_.object,renderLoading:_.func,selectedSections:_.oneOfType([_.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_.number]),shouldDisableDate:_.func,shouldDisableMonth:_.func,shouldDisableYear:_.func,showDaysOutsideCurrentMonth:_.bool,slotProps:_.object,slots:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),timezone:_.string,value:_.object,view:_.oneOf(["day","month","year"]),viewRenderers:_.shape({day:_.func,month:_.func,year:_.func}),views:_.arrayOf(_.oneOf(["day","month","year"]).isRequired),yearsOrder:_.oneOf(["asc","desc"]),yearsPerRow:_.oneOf([3,4])};const uP=["desktopModeMediaQuery"],xr=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=fv}=r,s=ve(r,uP);return xc(o,{defaultMatches:!0})?g.jsx(Ou,j({ref:n},s)):g.jsx($u,j({ref:n},s))});function Au(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"?dP(n):n}function dP(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"?`
135
- `:r==="t"?" ":r==="r"?"\r":r):e}De.extend(Ls);const dl=14,pP=42;function fP(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(`
136
- `):void 0}function Fu({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s}){const i=e.label??e.name??"",{theme:a}=ze.usePublisherTheme(),l=e.type??"string",c=fP(e),u=Au(l,e.default),m=u!==void 0?`Default: ${u===""?"(empty)":u}`:void 0,f=c||m?g.jsxs(g.Fragment,{children:[c,c&&m?g.jsx("br",{}):null,m]}):void 0,b=l==="string"||kn(l)==="string",d=!nn(l)||typeof t!="string"||Jm(t),p=A=>g.jsx(Q.TextField,{label:i,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:g.jsxs(g.Fragment,{children:[`Not a ${A}. Clear it to pick one.`,f?g.jsx("br",{}):null,f]}),slotProps:{input:{endAdornment:g.jsx(ns,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),h=nn(l),S=e.control==="multiselect"&&h,C=nn(l),w=e.control==="select"||e.control==="multiselect",x=w?C?typeof t=="string"?Zm(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(w&&b&&d&&!(!S&&x.length>1)){const A=$=>{const F=C?Ns($):void 0;if($.length===0||F===""){n(null);return}n(C?F:$[0])};return g.jsx(Q.Autocomplete,{multiple:S,disableCloseOnSelect:S,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:s?"Options unavailable":"No matching values",value:S?x:x[0]??null,onChange:($,F)=>A(F===null?[]:Array.isArray(F)?F:[F]),renderInput:$=>g.jsx(Q.TextField,{...$,label:i,size:"small",placeholder:x.length!==0?void 0:t===""?"All":u??"All",error:s,helperText:s?g.jsxs(g.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",f?g.jsx("br",{}):null,f]}):f,slotProps:{input:{...$.InputProps,endAdornment:g.jsxs(g.Fragment,{children:[o&&g.jsx(Q.CircularProgress,{size:16}),$.InputProps.endAdornment]})}}}),fullWidth:!0})}const T=nn(l)&&kn(l)==="number",{rangeMin:k,rangeMax:O}=e,I=T&&typeof t=="string"?th(t):void 0,N=T&&typeof t=="string"?rh(t):void 0;if((T||l==="number")&&k!==void 0&&O!==void 0&&(!T||t===void 0||t===null||t===""||I!==void 0||N!==void 0)){const A=N??(I!==void 0?[I,O]:void 0),$=T?A?.[0]:typeof t=="number"?t:void 0;if($===void 0&&t!==void 0&&t!==null&&t!=="")return p("number");const F=$??k,V=A??[k,O],q=V[1]>=O?`≥ ${V[0]}`:`${V[0]} to ${V[1]}`,re=T&&t==="",ae=$!==void 0||re;return g.jsxs(Q.FormControl,{fullWidth:!0,children:[g.jsxs(Q.Box,{component:"fieldset",sx:ie=>({m:0,minWidth:0,border:a.cardBorder,borderRadius:2,px:`${dl}px`,pt:0,pb:.75,minHeight:pP,transition:"border-color 120ms ease-in","&:hover":{borderColor:ie.palette.text.secondary},"&:focus-within":{borderColor:ie.palette.text.primary}}),children:[g.jsx(Q.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:i}),g.jsxs(Q.Stack,{direction:"row",alignItems:"center",spacing:1,children:[g.jsx(Q.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:ae?re?"Any":T?q:String(F):T?"Any":u??"Unset"}),ae&&g.jsx(Sr,{onClear:()=>n(null),sx:{p:0}})]}),g.jsx(Q.Slider,{size:"small",min:k,max:O,value:T?V:F,disableSwap:T,valueLabelDisplay:"auto","aria-label":T?void 0:i,getAriaLabel:T?ie=>ie===0?`${i} from`:`${i} to`:void 0,sx:{py:0,mt:.5},onChange:(ie,z)=>{if(T){const[Z,X]=Array.isArray(z)?[z[0],z[1]]:[z,z];if(Z<=k&&X>=O){n(null);return}n(X>=O?eh(Z):nh(Z,X));return}n(Array.isArray(z)?z[0]:z)}}),g.jsxs(Q.Stack,{direction:"row",justifyContent:"space-between",children:[g.jsx(Q.Typography,{variant:"caption",color:"text.secondary",children:k}),g.jsx(Q.Typography,{variant:"caption",color:"text.secondary",children:O})]})]}),f&&g.jsx(Q.FormHelperText,{sx:{mx:`${dl}px`},children:f})]})}const R=nn(l)?kn(l):void 0,y=R==="date"||R==="timestamp"||R==="timestamptz",E=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),D=t==null||E;if(y&&!E){const A=hP(t);if(A!==void 0)return g.jsx(gP,{label:i,state:A,onChange:n,helperNode:f,defaultDisplay:u})}if(y&&D){const A=E?De.utc(t):null;return g.jsx(hr,{dateAdapter:ao,children:g.jsx(xr,{label:i,value:A?.isValid()?A:null,onChange:$=>n($?$.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:f},field:{clearable:!0,onClear:()=>n(null)}}})})}if(kn(l)==="boolean"){const A=typeof t=="string"?Qm(t):void 0;if(t==null||t===""||A!==void 0)return g.jsx(mP,{label:i,picked:A,emptyOverride:t==="",onChange:n,helperNode:f,defaultDisplay:u})}if(l==="boolean"){const A=typeof t=="boolean";if(!A&&t!==void 0&&t!==null)return p("true or false");const $=e.default?.trim()==="true",F=A?t:$;return g.jsxs(Q.FormControl,{children:[g.jsxs(Q.Stack,{direction:"row",alignItems:"center",children:[g.jsx(Q.FormControlLabel,{control:g.jsx(Q.Checkbox,{checked:F,onChange:V=>n(V.target.checked)}),label:i}),A&&g.jsx(Sr,{onClear:()=>n(null),edge:"end"})]}),f&&g.jsx(Q.FormHelperText,{children:f})]})}if(l==="number"){const A=typeof t=="number"?t:"",$=t!=null;return $&&t!==""&&typeof t!="number"?p("number"):g.jsx(Q.TextField,{label:i,type:"number",value:A,onChange:F=>{const V=F.target.value;n(V===""?null:Number(V))},placeholder:u,helperText:f,slotProps:{input:{endAdornment:$&&g.jsx(ns,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const A=t instanceof Date?t:typeof t=="string"?(V=>V instanceof Date?V:null)(cc(l,t)):null,$=A?De.utc(A):null;return t!=null&&t!==""&&A===null?p("date"):g.jsx(hr,{dateAdapter:ao,children:g.jsx(xr,{label:i,value:$,onChange:V=>n(V?uh(V,A??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:f},field:{clearable:!0,onClear:()=>n(null)}}})})}const P=typeof t=="string"?t:"",M=t!=null;return g.jsx(Q.TextField,{label:i,value:P,onChange:A=>n(A.target.value),placeholder:M?void 0:u??(l.startsWith("filter<")?l:void 0),helperText:f,slotProps:{input:{endAdornment:M&&g.jsx(ns,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Sr({onClear:e,edge:t,sx:n}){return g.jsx(Q.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:g.jsx(Ph,{fontSize:"small"})})}function ns({onClear:e}){return g.jsx(Q.InputAdornment,{position:"end",children:g.jsx(Sr,{onClear:e,edge:"end"})})}const _r="__any__";function mP({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?_r:""),a=i!=="";return g.jsx(Q.Box,{"data-testid":"boolean-filter",children:g.jsxs(Q.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===_r?"Any":s||"Any"},input:{endAdornment:a?g.jsx(Sr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==_r&&r(l.target.value)},children:[n&&g.jsx(Q.MenuItem,{value:_r,children:"Any"}),g.jsx(Q.MenuItem,{value:"true",children:"true"}),g.jsx(Q.MenuItem,{value:"false",children:"false"})]})})}function hP(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=sh(e);if(t!==void 0)return{kind:"preset",key:t};const n=lh(e);if(n!==void 0)return{kind:"days",...n}}const Wr="__custom__",rs="__any__";function gP({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]=ne.useState(t.kind==="days"),[l,c]=ne.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});ne.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",m=i?Wr:t.kind==="preset"?t.key:t.kind==="any"?rs:"",f=d=>{c(d),d.from&&d.to&&!De.utc(d.to).isBefore(De.utc(d.from))&&n(ah(d.from,d.to))},b=d=>{const p=d?De.utc(d):null;return p?.isValid()?p:null};return g.jsxs(Q.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[g.jsxs(Q.TextField,{select:!0,label:e,value:m,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:d=>{if(d===Wr)return"Custom range";if(d===rs)return"Any time";const p=io.find(h=>h.key===d);return p?p.label:o??"Any time"}},input:{endAdornment:u?g.jsx(Sr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const p=d.target.value;if(p===Wr){a(!0);return}a(!1);const h=oh(p);h!==void 0&&n(h)},children:[t.kind==="any"&&g.jsx(Q.MenuItem,{value:rs,children:"Any time"}),io.map(d=>g.jsx(Q.MenuItem,{value:d.key,children:d.label},d.key)),g.jsx(Q.MenuItem,{value:Wr,children:"Custom range"})]}),i&&g.jsxs(hr,{dateAdapter:ao,children:[g.jsx(xr,{label:"From",value:b(l.from),onChange:d=>f({...l,from:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),g.jsx(xr,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:d=>f({...l,to:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function Lu({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:s,optionsLoading:i,optionsFailed:a,apply:l,title:c}){const{theme:u}=ze.usePublisherTheme();if(e.length===0)return null;const m=Array.from(t.values()).some(d=>d!==null),f=e.map(d=>g.jsx(Q.Box,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:g.jsx(Fu,{given:d,value:d.name?t.get(d.name):void 0,onChange:p=>d.name&&n(d.name,p),options:d.name?s?.get(d.name):void 0,optionsLoading:i,optionsFailed:d.name?a?.has(d.name):void 0})},d.name)),b=g.jsxs(Q.Stack,{direction:"row",alignItems:"center",spacing:1,children:[l&&g.jsx(Q.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:l.onApply,disabled:!l.pending,children:"Apply"}),m&&g.jsx(Q.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return o==="bar"?g.jsx(Q.Paper,{elevation:0,sx:{p:2,border:u.cardBorder,borderRadius:1,backgroundColor:"transparent"},children:g.jsxs(Q.Stack,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[f,g.jsx(Q.Box,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:b})]})}):g.jsxs(Q.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[g.jsxs(Q.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[g.jsx(Q.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:c??"Filters"}),b]}),g.jsx(Q.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:f})]})}const yP=new Set(["bar","line","chart","scatter_chart"]),bP=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function vP(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":yP.has(e)?"container":"content"}function xP(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&bP.has(e)}function SP(e){return e==="dashboard"?3:2}function Nu(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function wP(e,t){const n=Nu(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const ju=400,CP=700,PP=600,kP=800,Bu=400,xs=2e3;function Vu(e){return e===void 0?xs:Math.min(e,xs)}function Ss({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r}){if(e==="container")return n??Bu;if(t===void 0||t<=0)return Vu(n);const o=n===void 0?t:Math.min(n,t);return r===void 0?o:Math.max(o,r)}function zu(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function _u(e,t){if(e==null||e==="")return;const n=o=>`'${zu(o)}'`;switch(t===void 0?MP(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=pl(e);return o&&`@${o}`}case"timestamp":{const o=pl(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 MP(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 pl(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 ho={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function Si({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=g.jsxs(Q.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[g.jsx(Q.CircularProgress,{size:t,color:n,thickness:r}),e&&g.jsx(Q.Typography,{variant:i,color:"text.secondary",children:e})]});return o?g.jsx(Q.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let Jn;function Wu(){return Jn||(Jn=import("@malloydata/render"),Jn.catch(()=>{Jn=void 0})),Jn}function Hu(){typeof window>"u"||Wu().catch(()=>{})}const Uu=Ue(g.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 Yu({sx:e,...t}){const{theme:n}=ze.usePublisherTheme();return g.jsx(Q.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 TP=new Set(["warn","error"]);function DP(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!TP.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(`
137
- `)}}const RP=ne.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-BrvrMDAP.cjs.js")).then(e=>e.RenderedResult$1));function Gu({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o,fill:s=!1}){const i=ne.useRef(null);ne.useEffect(()=>Hu(),[]);const[a,l]=ne.useState(void 0),[c,u]=ne.useState(void 0),[m,f]=ne.useState(!1),[b,d]=ne.useState(void 0),p=DP(r),h=!!e;if(ne.useEffect(()=>{const T=i.current;if(!s||!T)return;const k=new ResizeObserver(([O])=>d(Math.round(O.contentRect.height)));return k.observe(T),()=>k.disconnect()},[s,h,m]),!e)return null;if(n>0&&e.length>n&&!m)return g.jsxs(Q.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[g.jsx(Bd.Warning,{sx:{fontSize:48,color:"#757575"}}),g.jsx(Q.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),g.jsx(Q.Button,{variant:"contained",color:"primary",onClick:()=>f(!0),children:"Proceed"})]});const C=g.jsx(Si,{text:ho.loading,centered:!0,size:32}),w=Ss({sizing:a,contentHeight:c,maxHeight:t,fillHeight:s?b:void 0}),x=g.jsx(ne.Suspense,{fallback:C,children:g.jsx(RP,{result:e,height:w,onSizeChange:u,onSizing:l,drill:o,fill:s})});return g.jsxs(Q.Box,{ref:i,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden",...s&&{flex:`1 1 ${Ss({sizing:a,contentHeight:c,maxHeight:t})}px`,minHeight:0}},children:[s?g.jsx(Q.Box,{sx:{position:"absolute",inset:0},children:x}):x,p&&g.jsx(Q.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:g.jsx(Q.Tooltip,{title:p.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:g.jsx(Yu,{"aria-label":"Render tag warnings",children:g.jsx(Uu,{fontSize:"small",color:p.severity==="error"?"error":"warning"})})})})]})}function wi({state:e,context:t,loadingText:n=ho.running,maxHeight:r,maxResultSize:o,drill:s,fill:i,transform:a}){const{data:l,isSuccess:c,isError:u,error:m,fetchStatus:f}=e,b=c||f==="fetching";ne.useEffect(()=>{b&&Hu()},[b]);const d=l?.data.result,p=ne.useMemo(()=>d!==void 0&&a?a(d):d,[d,a]);return u?g.jsx(Q.Box,{sx:{p:2},children:g.jsx(tc,{context:t,error:m})}):c?g.jsx(Gu,{result:p,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:s,fill:i}):g.jsx(Si,{text:f==="idle"?ho.loading:n})}const wr=()=>typeof performance<"u"?performance.now():Date.now(),Ku=200;function IP(e){const t=_u(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${Ku} }`}function EP(e){const t=Tn.tileSteps(e);if(!(!t||t.refinement!==void 0||!Tn.isIdentifier(t.source)||!Tn.isIdentifier(t.view)))return{source:t.source,view:t.view}}function OP({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onClose:i,onDone:a}){const{theme:l}=ze.usePublisherTheme(),c=e?IP(e):void 0;return g.jsxs(Q.Dialog,{open:e!==void 0,onClose:i,maxWidth:"lg",fullWidth:!0,children:[g.jsxs(Q.DialogTitle,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[g.jsxs(Q.Box,{children:[e?g.jsxs(g.Fragment,{children:["Rows where"," ",g.jsx(Q.Box,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",g.jsx(Q.Typography,{component:"div",variant:"caption",sx:{color:l.tileTitle,mt:.25},children:e?`The first ${Ku} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),g.jsx(Q.IconButton,{onClick:i,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:g.jsx(Es,{fontSize:"small"})})]}),g.jsxs(Q.DialogContent,{dividers:!0,sx:{p:0,minHeight:240},children:[c===void 0&&e&&g.jsx(Q.Typography,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),c!==void 0&&g.jsx($P,{query:c,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:s,...a?{onDone:a}:{}})]}),g.jsxs(Q.DialogActions,{sx:{px:3,py:1.5},children:[c!==void 0&&g.jsx(Q.Typography,{variant:"caption",sx:{mr:"auto",color:l.tileTitle,fontFamily:ze.MONO_FONT_FAMILY,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c,children:c}),g.jsx(Q.Button,{onClick:i,children:"Close"})]})]})}function $P({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onDone:i}){const a=Di({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:s}),{isSuccess:l,isError:c}=a,u=ne.useRef(void 0);return ne.useEffect(()=>{u.current=wr()},[e]),ne.useEffect(()=>{u.current===void 0||!l&&!c||(i?.(l,wr()-u.current),u.current=void 0)},[l,c,i]),g.jsx(Q.Box,{sx:{p:1},children:g.jsx(wi,{state:a,context:e})})}const AP=Ue(g.jsx("path",{d:"m16.95 6-3.57 4.55 1.43 1.43c1.03-1.31 4.98-6.37 4.98-6.37C20.3 4.95 19.83 4 19 4H6.83l2 2zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"})),FP=3;function qu(e,t){if(e===void 0)return[];const n=new Set(e);return t.flatMap(r=>r.name&&!n.has(r.name)?[r.label??r.name]:[])}function LP(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function Xu({ignored:e}){const{theme:t}=ze.usePublisherTheme();if(e.length===0)return null;const n=e.length>FP?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return g.jsxs(Q.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${LP(e)}, so changing ${e.length===1?"it":"them"} won't change this tile`,sx:{display:"inline-flex",alignItems:"center",gap:.5,maxWidth:"100%",mb:1,alignSelf:"flex-start",px:.75,py:.125,border:1,borderColor:"warning.main",borderRadius:1,fontSize:11,lineHeight:1.6,color:"warning.main",fontFamily:t.font.family},children:[g.jsx(AP,{sx:{fontSize:12}}),g.jsx(Q.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}const NP=240,Qu=4;function jP({manifest:e,environmentName:t,packageName:n,versionId:r,documentName:o,givens:s,onGivensChange:i,onNavigate:a,height:l,maxResultSize:c,chrome:u="card",controlsLayout:m="bar",preamble:f,runModelPath:b,hiddenGivens:d}){const p=ne.useMemo(()=>(e.givens??[]).filter($=>!(f!==void 0&&$.secure===!0)&&!($.name!==void 0&&d?.includes($.name))),[e,d,f]),h=ne.useMemo(()=>s===void 0?void 0:Object.fromEntries(Object.entries(s).filter(([,$])=>typeof $=="string")),[s]),S=hc({specs:p,loaded:!0,startingValues:e.startingGivens,params:h,onGivensChange:i,documentKey:`${t}/${n}/${r??""}/${o}`,autorun:e.autorun!==!1,environmentName:t,packageName:n,modelPath:b??e.path,versionId:r,documentName:o,...f!==void 0?{preamble:f}:{},...s?{hostGivens:s}:{}}),{applied:C,declaredTypes:w,canSelf:x,onSelf:T}=S,k=Do(),O=ne.useMemo(()=>{const $=new Set((e.tiles??[]).flatMap(F=>F.givenNames??[]));return Object.fromEntries(Object.entries(s??{}).filter(([F])=>$.has(F)&&!w.has(F)))},[e,s,w]),[I,N]=ne.useState(void 0),L=ne.useCallback($=>{const F=EP($.context);F!==void 0&&N({...F,field:$.field,rawValue:$.rawValue,label:$.label})},[]),R=ne.useMemo(()=>zs(Ro(C,w),O),[C,w,O]),{drill:y,drillMenu:E}=gc({onNavigate:a,onSelf:T,canSelf:x,selfLabel:"Filter this report",...f===void 0?{onRows:L}:{}}),D=ne.useCallback($=>({canDrill:y.canDrill,onClick:F=>y.onClick({...F,context:$})}),[y]);if(e.error)return g.jsxs(Q.Stack,{spacing:2,children:[g.jsx(fl,{manifest:e,chrome:u}),g.jsx(Q.Alert,{severity:"error",children:e.error})]});const P=b??e.path,M=e.tiles??[],A=e.dashboardColumns??jl;return g.jsxs(Q.Stack,{spacing:2,children:[u==="card"&&g.jsx(fl,{manifest:e,chrome:u}),p.length>0&&g.jsx(Q.Box,{sx:{position:"sticky",top:0,zIndex:Qu,bgcolor:"background.default"},children:g.jsx(Lu,{...S.panel,layout:m})}),P===void 0?g.jsx(Q.Alert,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):M.length>0?g.jsx(_l,{tiles:M,columns:A,minTilePx:NP,rowGapPx:u==="none"?Bl:an,keyOf:($,F)=>`${F}:${$.kind==="text"?`text:${$.name}`:$.query}`,renderTile:($,F)=>$.kind==="text"||$.query===void 0?g.jsx(Zu,{markdown:$.markdown??"",chrome:u}):g.jsx(Rd,{index:F,environmentName:t,packageName:n,versionId:r,modelPath:P,tile:$.query,label:$.label,subtitle:$.subtitle,borderless:$.borderless,givens:C,hostGivens:O,declaredTypes:w,givenNames:$.givenNames,height:l??ju,maxResultSize:c,drill:D($.query),chrome:u,ignoredFilters:qu($.givenNames,p),...f!==void 0?{preamble:f,restricted:$.restricted}:{}})}):g.jsx(Q.Alert,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),E,P!==void 0&&g.jsx(OP,{request:I,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:P,givens:R,onClose:()=>N(void 0),onDone:($,F)=>{I&&k.emit({type:"report.rows_shown",source:I.source,view:I.view,field:I.field,ok:$,durationMs:F})}})]})}function Zu({markdown:e,chrome:t}){return g.jsx($s,{chrome:t,kind:"text",children:g.jsx(Jl,{variant:"document",children:e})})}function fl({manifest:e,chrome:t}){return g.jsx(Ju,{chrome:t,title:e.title??e.name,...e.description?{description:e.description}:{}})}function Ju({title:e,description:t,chrome:n="card"}){return g.jsxs(Q.Stack,{sx:{gap:2},children:[g.jsx(Q.Typography,{variant:"h5",children:e}),t&&g.jsx(Q.Box,{sx:n==="none"?{my:`${zl}px`}:void 0,children:g.jsx(Zu,{markdown:t,chrome:n})})]})}const ed=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},td=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},BP=Ue(g.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));async function VP(e){const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t),n=>n.toString(16).padStart(2,"0")).join("")}function zP(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function nd({authoritative:e,mutable:t,versionId:n,canStore:r,readFailed:o}){const s=e?"host":t?"package":"browser",i=n!==void 0&&s==="package";return{savesTo:s,pinnedPackageSave:i,writer:o?void 0:e?r?"storage":void 0:i?void 0:t?"package":r?"storage":void 0}}async function _P(e,t){return e??(t===void 0?void 0:await VP(t))}function WP({authoritative:e,mutable:t,pinnedPackageSave:n,workspace:r,readFailure:o,versionId:s}){return o!==void 0?`The saved copy could not be read, so Save is off: ${o}`:e&&r?r.writeable?r.description:`${r.description}: you cannot save into it.`:n?`Reading version ${s}: a version is a fixed point in history, so Save is off.`:t?"Save writes the file into the package.":r?`${r.description}: this server does not take writes.`:"This server does not take writes."}function HP(e){return e instanceof Error?e.message:String(e)}function UP(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function YP({apiClients:e,queryClient:t,environmentName:n,packageName:r,modelPath:o,source:s,expectedHash:i,invalidateOnError:a,invalidate:l,afterWrite:c}){let u;try{u=await e.models.updateModelSource(n,r,o,{source:s,expectedHash:i})}catch(f){for(const b of a)t.invalidateQueries({queryKey:b});throw new Error(UP(f))}const m=u.data.contentHash;await c?.(m);for(const{queryKey:f,refetchType:b,wait:d}of l){const p=t.invalidateQueries({queryKey:f,...b?{refetchType:b}:{}});d&&await p}return m}function GP(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function KP(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=ed(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class rd extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const od=e=>e instanceof rd||e instanceof Error&&e.name==="DocumentNotFoundError",sd="document.malloy",id=e=>e.slice(0,e.lastIndexOf("/")+1),ad=(e,t)=>new URL(e,`https://malloy.invalid/${id(t)}`).pathname.slice(1);function ld(e,t){const n=id(t).split("/").filter(Boolean),r=e.split("/");let o=0;for(;o<n.length&&o<r.length-1&&n[o]===r[o];)o++;const s=n.length-o;return`${"../".repeat(s)}${r.slice(o).join("/")}`}function qP(e,t,n,r=sd,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(ad(s.from,r)))}function XP(e,t,n,r=sd,o=[n]){const{imports:s}=e;if(qP(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(ad(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:ld(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const er=e=>Tn.isBareName(e)?e:`\`${e}\``;function Ci(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=As("title",t);if(s)return s;if(t.includes("|##"))return"A title cannot contain `|##`, which closes the report's artifact tag.";if(/["\\\r\n]/.test(n)||n.trim()==="")return`The model path ${JSON.stringify(n)} cannot be written as an import.`;for(const[i,a]of[["source",r],["view",o]])if(a.trim()===""||/[`\r\n\\]/.test(a))return`The ${i} name ${JSON.stringify(a)} cannot be written as a Malloy name.`}const QP="report.malloy";function Pi(e,t,n=QP){const r=Ci(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,c=er(`${s}_tiles`),u=er(`${i}_tile`),m=`"${c} -> ${u}"`;return["##! experimental.givens",`##| artifact { layout=${t} title=${l}`," tiles=["," intro { kind=text },",` ${m}`," ]",t==="grid"?"} dashboard { columns=12 }":"}","|##",`import { ${er(s)} } from "${ld(o,n)}"`,"","##|(markdown) intro",`# ${a}`,"Say what this report is for, then let the queries below answer it.","|##","",`source: ${c} is ${er(s)} extend {`,` view: ${u} is ${er(i)}`,"}",""].join(`
138
- `)}function ZP(e,t){return Pi(e,"linear",t)}function cd(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function JP({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Tn.isBareName(s))return`The ${o} name ${JSON.stringify(s)} cannot be written as a Malloy name.`;return/["\\\r\n]/.test(t)?`The model path ${JSON.stringify(t)} cannot be written into an import.`:As("title",e)}function e1(e,t){const n=JP(e);if(n)throw new Error(n);return Pi(e,"grid",t)}const ud=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function dd(e,t){const n=ud(t);return`${n===""?"":`${n}/`}${e}.malloy`}function pd(e){return cd(e)||"untitled"}function fd(e,t=1,n){const r=pd(e);return dd(t>1?`${r}-${t}`:r,n)}const md=(e,t,n)=>`${e}/${t}/${n}`,hd=(e,t,n,r,o)=>({workspace:t,type:e,path:md(n,r,o)}),ki=20;function t1(e){const{savesTo:t,writer:n}=nd({...e,readFailed:!1});return t==="browser"?void 0:n}const ml=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function gd(e){if(!e.endsWith(".malloy"))return"A report's file name ends in .malloy.";const t=e.split("/");if(t.some(n=>n===""||n==="."||n===".."))return"A location is a path inside the package, such as sales/q3.malloy.";if(t.at(-1)===".malloy")return"A report's file needs a name.";if(t[0].toLowerCase()==="public")return"A report cannot live under public/, which is served as plain files.";if(e.toLowerCase()==="index.malloy")return"The package's index.malloy is its surface, never a report."}async function n1(e){const t=e.layout??"linear",n=wr();let r;try{r=await r1(e,t)}catch(o){throw so({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return so({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:wr()-n}),e.onCreated?.(r),r}async function r1(e,t){const{document:n,target:r}=e,o=Ci(n);if(o)throw new Error(o);const s=ud(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:ki},(p,h)=>fd(n.title,h+1,s));for(const p of i){const h=gd(p);if(h)throw new Error(h)}const a=p=>Pi(n,t,p);if(r.route==="package"){const p=new Set(r.existing);let h;for(const S of i)if(!p.has(S))try{await r.write(S,a(S)),h=S;break}catch(C){if(!o1(C))throw C}if(h===void 0)throw hl(n.title,e.path);return{layout:t,path:h,slug:ml(h)}}const{storage:l,workspace:c,environmentName:u,packageName:m}=r,f=new Set(r.existing),b=new Set((await l.listDocuments(c)).map(p=>p.path));let d;for(const p of i){const h=hd(t,c.name,u,m,p),S=await l.resolveDocumentPath?.(h)??p;if(b.has(h.path)||f.has(p)||f.has(S))continue;let C=!0;try{await l.getDocument(h)}catch(w){if(!od(w))throw w;C=!1}if(!C){d={layout:t,path:S,slug:ml(S),locator:h};break}}if(d===void 0)throw hl(n.title,e.path);return await l.saveDocument(d.locator,a(d.path)),d}const o1=e=>e?.response?.status===409,hl=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${ki} tries. Fix: choose a different title.`);function yd(e){try{const t=JSON.parse(e??"");return new Set((t.entries??[]).flatMap(n=>n.kind==="source"&&typeof n.name=="string"?[n.name]:[]))}catch{return new Set}}function s1({environmentName:e,packageName:t,versionId:n,models:r,enabled:o}){const{apiClients:s,server:i}=ze.useServer(),a=go.useQueries({queries:r.map(d=>({queryKey:["new-document-model",e,t,n,d,i],queryFn:async()=>(await s.models.getModel(e,t,d,n)).data,enabled:o,retry:!1,staleTime:300*1e3,refetchOnWindowFocus:!1}))}),l=a.map(d=>d.dataUpdatedAt).join(),c=ne.useMemo(()=>{const d=new Map;return a.forEach((p,h)=>{const S=[],C=yd(p.data?.modelInfo);for(const w of p.data?.sources??[])if(!(typeof w.name!="string"||!C.has(w.name)))for(const x of w.views??[])typeof x.name=="string"&&S.push({source:w.name,view:x.name});S.length>0&&d.set(r[h],S)}),d},[l,r]),u=a.some(d=>d.isLoading),m=u?[]:r.filter((d,p)=>a[p]?.isError),f=!u&&a.some(d=>d.isError&&Tn.canRetryRequest(d.error)),b=()=>{a.forEach(d=>{d.isError&&d.refetch()})};return{choices:c,isLoading:u,isSuccess:a.length>0&&a.every(d=>!d.isPending),failed:m,retry:b,canRetry:f}}const Mi=ne.createContext(void 0);function i1({children:e,documentStorage:t}){const n=ne.useMemo(()=>({documentStorage:t}),[t]);return g.jsx(Mi.Provider,{value:n,children:e})}function a1(){const e=ne.useContext(Mi);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function l1(){return ne.useContext(Mi)}const c1=e=>e==="notebook"?"linear":"grid",u1=(e,t)=>`${e}s/${t}.malloy`,d1=/\.malloy(nb)?$/,p1=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(d1,"")||void 0,bd=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),vd=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${bd(n)}`,xd="edit",f1=(e,t,n)=>`${vd(e,t,n)}?${xd}`,Sd=e=>e.layout==="linear"?"linear":"grid",wd=e=>({layout:Sd(e),path:e.path,editable:e.editable!==!1});function Ti(e,t){const n=t.find(r=>r.path===e);return n?.path?wd({...n,path:n.path}):void 0}function Cd(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function m1(e,t){if(!Cd(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=Ti(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}function h1(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[td({environmentName:e,packageName:t,modelPath:n})]]]}function g1(e,t,n,r){for(const o of[["report"],["reports"],...h1(t,n,r)])e.invalidateQueries({queryKey:o})}const y1=(e,t,n)=>["reports",e,t,n];async function b1(e,t,n,r){try{return(await e.reports.listReports(t,n,r)).data}catch(o){if(o?.response?.status===404)return[];throw o}}function Pd(e,t,n,r=!0){const{apiClients:o}=ze.useServer(),s=_o({queryKey:y1(e,t,n),queryFn:()=>b1(o,e,t,n),enabled:r,staleTime:6e4});return{reports:s.data??[],settled:s.isSuccess||s.isError,isFetching:s.isFetching,isError:s.isError,error:s.error,refetch:s.refetch}}function v1(e,t,n,r){const{reports:o,settled:s}=Pd(e,t,r);return{settled:s,reports:o,location:s?Ti(n,o):void 0}}function _o(e){const{server:t}=ze.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async r=>{try{return await e.queryFn(r)}catch(o){if(o&&typeof o=="object"&&"response"in o){const s=o;if(s.response?.data){const i=new Error(s.response.data.message||s.message);throw i.status=s.response.status,i.data=s.response.data,i}}throw o}},retry:!1,throwOnError:!1};return go.useQuery(n,ze.globalQueryClient)}function x1(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 go.useMutation(t,ze.globalQueryClient)}function kd(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function S1(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function Di(e,{enabled:t=!0}={}){const{apiClients:n}=ze.useServer();return _o({queryKey:kd(e),queryFn:({signal:r})=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId},void 0,{signal:r}),enabled:t,...ze.CHART_RESULT_QUERY_OPTIONS})}const w1=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function Md(e){let t=!1;for(const[n,r]of Array.from(e.entries())){if(r.deleted)continue;if(n==="image"||n==="link"){e.delete(n),t=!0;continue}if(n==="label"){let s;try{s=e.text("label")}catch{s=void 0}if(s!==void 0&&w1.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])Md(s)&&(t=!0)}return t}function C1(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=Vd.parseAnnotation(t)}catch{return""}return n.log.length>0?"":Md(n.tag)?`${n.tag.toString()}
139
- `:e}function ws(e){if(Array.isArray(e)){for(const n of e)ws(n);return}if(e===null||typeof e!="object")return;const t=e;for(const[n,r]of Object.entries(t))if(n==="annotations"&&Array.isArray(r))for(const o of r){const s=o;typeof s?.value=="string"&&(s.value=C1(s.value))}else ws(r)}function Td(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);ws(t);const r=JSON.stringify(t);return r===n?e:r}const P1=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"]),k1={value:`# big_value
140
- `},M1=/^#\(malloy\)[\s\S]*\bcalculation\b/;function T1(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&M1.test(t.value.trim())):!1}function D1(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(T1))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 R1(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(P1.has(o))return!0}return!1}function Dd(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!D1(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return R1(r)?e:JSON.stringify({...t,annotations:[k1,...n]})}const I1=e=>Td(Dd(e));function Cs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?Bs(t):e}function Rd({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,annotation:i,label:a,subtitle:l,heading:c,borderless:u,givens:m,hostGivens:f,declaredTypes:b,givenNames:d,height:p,maxResultSize:h,drill:S,onExplore:C,chrome:w="card",ignoredFilters:x,preamble:T,restricted:k,index:O}){const{theme:I}=ze.usePublisherTheme(),[N,L]=_m(),R=Di({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?_s(T??"",`${i?`${i}
141
- `:""}run: ${s}`):void 0,givens:zs(Ro(m,b,d),f,d)},{enabled:L&&k!==!0}),{emit:y}=Do(),E=R.isError?R.error:void 0;ne.useEffect(()=>{E!==void 0&&y({type:"report.query_failed",...O!==void 0?{tile:O}:{},category:Yl(E)})},[E,y,O]);const D=k===!0||T!==void 0&&R.isError&&bh(R.error);return g.jsxs($s,{cardRef:N,borderless:u,chrome:w,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${Kl}`,...ql,...Xl},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&g.jsx(Zl,{title:c?.title??a??Cs(s),subtitle:c?c.subtitle:l,quiet:w==="none",tooltip:s,action:C&&g.jsx(Q.Tooltip,{title:"Explore from here",children:g.jsx(Q.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??Cs(s)}`,onClick:C,sx:{mt:-.5,mr:-.5,color:I.tileTitle},children:g.jsx(Bm,{fontSize:"small"})})})}),x&&g.jsx(Xu,{ignored:x}),D?g.jsx(Q.Box,{sx:{p:2},children:g.jsx(Q.Typography,{variant:"body2",role:"status",color:"text.secondary",children:pc})}):g.jsx(wi,{fill:!0,state:R,context:s??o??r,maxHeight:p,maxResultSize:h,drill:S,transform:T!==void 0?s!==void 0?I1:Td:s!==void 0?Dd:void 0})]})}function E1(e,{enabled:t=!0}={}){const{apiClients:n}=ze.useServer();return _o({queryKey:["compiled-document",e.environmentName,e.packageName,e.modelPath,e.source,e.givens??null],queryFn:async()=>{const r=(await n.models.compileModelSource(e.environmentName,e.packageName,e.modelPath,{source:e.source,scope:"append",...e.givens&&Object.keys(e.givens).length>0?{givens:e.givens}:{}})).data;return{document:r.document,result:r}},enabled:t})}exports.AdapterDayjs=ao;exports.AddButton=Wm;exports.AddIcon=Nl;exports.ApiErrorDisplay=tc;exports.AppDialog=Gl;exports.ArrowDropDownIcon=yu;exports.BARE_DESCRIPTION_MARGIN_PX=zl;exports.BARE_RING_OFFSET_PX=Vl;exports.Button=sr;exports.ButtonBase=Fn;exports.CheckIcon=BP;exports.Chip=iu;exports.CircularProgress=Js;exports.ClassNameGenerator=yl;exports.CloseIcon=Es;exports.DASHBOARD_CARD_PADDING_PX=Os;exports.DEFAULT_COLUMNS=jl;exports.DRILL_SELF=Kr;exports.DashboardGrid=_l;exports.DashboardProse=Ju;exports.DashboardTile=Rd;exports.DashboardView=jP;exports.DatePicker=xr;exports.DeleteOutlineIcon=wm;exports.DocumentNotFoundError=rd;exports.DocumentStorageProvider=i1;exports.ErrorDetailAlert=ec;exports.FloatingIconButton=Yu;exports.FormControl=hi;exports.GRID_GAP_PX=an;exports.GivenInput=Fu;exports.GivensPanel=Lu;exports.Grow=gr;exports.INITIAL_RENDER_HEIGHT=xs;exports.IconButton=Ir;exports.InfoOutlinedIcon=Uu;exports.InputLabel=mi;exports.LOADING_COPY=ho;exports.ListContext=In;exports.Loading=Si;exports.LocalizationProvider=hr;exports.MAX_SLUG_ATTEMPTS=ki;exports.MODEL_CELL_MAX_HEIGHT=PP;exports.MOTION_FAST=Kl;exports.NOTEBOOK_CELL_MAX_HEIGHT=CP;exports.NOTEBOOK_GAP_PX=Bl;exports.Paper=Er;exports.Popper=Qc;exports.Prose=Jl;exports.REPORT_EDIT_PARAM=xd;exports.RESTRICTED_NOTICE=pc;exports.RESULTS_DIALOG_MAX_HEIGHT=kP;exports.ReportEventsContext=Ul;exports.ResultContainer=Gu;exports.ResultPanel=wi;exports.STICKY_CONTROLS_Z=Qu;exports.SecondaryButton=Hm;exports.Select=bi;exports.SvgIcon=oo;exports.THEME_ID=Vn;exports.TILE_MAX_HEIGHT=ju;exports.TILE_MIN_HEIGHT=Ql;exports.TextField=bu;exports.TileCard=$s;exports.TileFilterTag=Xu;exports.TileHeading=Zl;exports.Typography=Gt;exports.UNCAPPED_CONTAINER_HEIGHT=Bu;exports.UnsavedChangesDialog=Sm;exports.annotationTextProblem=As;exports.buildTableCssVars=Mm;exports.capitalize=le;exports.chooseWorkspace=zP;exports.clsx=de;exports.composeClasses=he;exports.contentNode=Nu;exports.contentNodeDepth=SP;exports.createDocument=n1;exports.createRoute=t1;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=Ue;exports.createTheme=Ol;exports.dangerTextColor=Pm;exports.dayjs=De;exports.documentPreamble=yh;exports.documentSlug=p1;exports.draftKey=md;exports.drillDestinations=js;exports.drillValueToFilter=Mr;exports.emphasize=Cl;exports.encodeDrillValue=ic;exports.encodeResourceUri=td;exports.escapeMalloyString=zu;exports.expectedHashFor=_P;exports.exportedSources=yd;exports.extractEventHandlers=Us;exports.failureCategory=Yl;exports.filledInputClasses=Ht;exports.formControlState=hn;exports.generateUtilityClass=ge;exports.generateUtilityClasses=me;exports.getAugmentedNamespace=Wd;exports.getDefaultExportFromCjs=Lt;exports.getReactElementRef=zn;exports.givensToParams=uc;exports.givensToRequest=Ro;exports.humanizeSlug=Bs;exports.initialResultHeight=Vu;exports.inputBaseClasses=pn;exports.inputClasses=Pn;exports.invalidateReportQueries=g1;exports.isDocumentNotFound=od;exports.isDrillTargetPath=Cd;exports.layoutOfKind=c1;exports.legacyNamedPath=u1;exports.listedLayout=Sd;exports.loadMalloy=Lm;exports.loadMalloyRenderer=Wu;exports.loadMalloyTag=Nm;exports.loadQueryBuilder=jm;exports.locateReport=Ti;exports.locatedReport=wd;exports.locatorFor=hd;exports.malloyLiteral=_u;exports.measureContentHeight=wP;exports.memoTheme=Ie;exports.mergeSlotProps=Ll;exports.modelResultsKey=S1;exports.newDashboardSource=e1;exports.newDocumentProblem=Ci;exports.newNotebookSource=ZP;exports.now=wr;exports.nudgedSpan=ym;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseResourceUri=ed;exports.queryResultKey=kd;exports.reducedMotionSx=ql;exports.remeasuresAfterReady=xP;exports.renderGivenDefault=Au;exports.reportEditRoute=f1;exports.reportEmitter=so;exports.reportPathFor=dd;exports.reportPathForTitle=fd;exports.reportPathProblem=gd;exports.reportRoute=vd;exports.reportRoutePath=bd;exports.resolveDrill=sc;exports.resolveDrillTarget=m1;exports.resolveEditorTarget=KP;exports.resolveResultHeight=Ss;exports.resultSizing=vP;exports.rootShouldForwardProp=pt;exports.saveCaption=WP;exports.saveTarget=nd;exports.scrollBehavior=Cm;exports.setRef=ls;exports.slugFor=cd;exports.slugOrFallback=pd;exports.storageErrorMessage=HP;exports.styled=U;exports.tileIgnoredFilterLabels=qu;exports.tileTitle=Cs;exports.typographyClasses=$g;exports.useCompiledDocument=E1;exports.useControlled=Tt;exports.useDefaultProps=we;exports.useDocumentChoices=s1;exports.useDocumentControls=hc;exports.useDocumentLocation=v1;exports.useDocumentStorage=a1;exports.useDrill=gc;exports.useDrillSelf=ac;exports.useEnhancedEffect=He;exports.useEventCallback=ue;exports.useForkRef=Pe;exports.useFormControl=ft;exports.useGivensState=dc;exports.useId=xt;exports.useMutationWithApiError=x1;exports.useOptionalDocumentStorage=l1;exports.useQueryResult=Di;exports.useQueryWithApiError=_o;exports.useReportEmitter=xm;exports.useReportEvents=Do;exports.useReportListing=Pd;exports.useSlot=Le;exports.useSuggestOptions=mc;exports.useTheme=fn;exports.useTimeout=Hs;exports.utc=Ls;exports.visibleWithoutHoverSx=Xl;exports.withPreamble=_s;exports.withReportContext=Wl;exports.withSource=XP;exports.withWorkspace=GP;exports.writePackageFile=YP;
131
+ `:null,Oy=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${le(r)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,o&&"circleDisableShrink"]};return he(s,Ry,t)},$y=U("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Ie(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Iy||{animation:`${ms} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ay=U("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Fy=U("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ie(({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:Ey||{animation:`${hs} 1.4s ease-in-out infinite`}}]}))),ti=v.forwardRef(function(t,n){const r=we({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:m="indeterminate",...f}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:m},d=Oy(b),p={},h={},S={};if(m==="determinate"){const C=2*Math.PI*((Wt-c)/2);p.strokeDasharray=C.toFixed(3),S["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,h.transform="rotate(-90deg)"}return g.jsx($y,{className:de(d.root,o),style:{width:a,height:a,...h,...l},ownerState:b,ref:n,role:"progressbar",...S,...f,children:g.jsx(Ay,{className:d.svg,ownerState:b,viewBox:`${Wt/2} ${Wt/2} ${Wt} ${Wt}`,children:g.jsx(Fy,{className:d.circle,style:p,ownerState:b,cx:Wt,cy:Wt,r:(Wt-c)/2,fill:"none",strokeWidth:c})})})});function Ly(e){return ge("MuiIconButton",e)}const $a=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ny=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${le(r)}`,o&&`edge${le(o)}`,`size${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return he(a,Ly,t)},jy=U(Fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Ie(({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}}]})),Ie(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Xe()).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)}}],[`&.${$a.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${$a.loading}`]:{color:"transparent"}}))),By=U("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"}}]})),Ir=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:m,loading:f=null,loadingIndicator:b,...d}=r,p=xt(m),h=b??g.jsx(ti,{"aria-labelledby":p,color:"inherit",size:16}),S={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:h,size:u},C=Ny(S);return g.jsxs(jy,{id:f?p:m,className:de(C.root,i),centerRipple:!0,focusRipple:!c,disabled:l||f,ref:n,...d,ownerState:S,children:[typeof f=="boolean"&&g.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:g.jsx(By,{className:C.loadingIndicator,ownerState:S,children:f&&h})}),s]})}),zc=e=>e.scrollTop;function po(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 gs(e){return`scale(${e}, ${e**2})`}const Vy={entering:{opacity:1,transform:gs(1)},entered:{opacity:1,transform:"none"}},Jo=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:m,onExited:f,onExiting:b,style:d,timeout:p="auto",TransitionComponent:h=St,...S}=t,C=Ys(),w=v.useRef(),x=fn(),T=v.useRef(null),k=Pe(T,zn(s),n),O=P=>M=>{if(P){const A=T.current;M===void 0?P(A):P(A,M)}},I=O(u),N=O((P,M)=>{zc(P);const{duration:A,delay:$,easing:F}=po({style:d,timeout:p,easing:i},{mode:"enter"});let V;p==="auto"?(V=x.transitions.getAutoHeightDuration(P.clientHeight),w.current=V):V=A,P.style.transition=[x.transitions.create("opacity",{duration:V,delay:$}),x.transitions.create("transform",{duration:Jo?V:V*.666,delay:$,easing:F})].join(","),l&&l(P,M)}),L=O(c),R=O(b),y=O(P=>{const{duration:M,delay:A,easing:$}=po({style:d,timeout:p,easing:i},{mode:"exit"});let F;p==="auto"?(F=x.transitions.getAutoHeightDuration(P.clientHeight),w.current=F):F=M,P.style.transition=[x.transitions.create("opacity",{duration:F,delay:A}),x.transitions.create("transform",{duration:Jo?F:F*.666,delay:Jo?A:A||F*.333,easing:$})].join(","),P.style.opacity=0,P.style.transform=gs(.75),m&&m(P)}),E=O(f),D=P=>{p==="auto"&&C.start(w.current||0,P),r&&r(T.current,P)};return g.jsx(h,{appear:o,in:a,nodeRef:T,onEnter:N,onEntered:L,onEntering:I,onExit:y,onExited:E,onExiting:R,addEndListener:D,timeout:p==="auto"?null:p,...S,children:(P,{ownerState:M,...A})=>v.cloneElement(s,{style:{opacity:0,transform:gs(.75),visibility:P==="exited"&&!a?"hidden":void 0,...Vy[P],...d,...s.props.style},ref:k,...A})})});gr&&(gr.muiSupportAuto=!0);const zy={entering:{opacity:1},entered:{opacity:1}},un=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:m,onEntering:f,onExit:b,onExited:d,onExiting:p,style:h,timeout:S=o,TransitionComponent:C=St,...w}=t,x=v.useRef(null),T=Pe(x,zn(a),n),k=D=>P=>{if(D){const M=x.current;P===void 0?D(M):D(M,P)}},O=k(f),I=k((D,P)=>{zc(D);const M=po({style:h,timeout:S,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),u&&u(D,P)}),N=k(m),L=k(p),R=k(D=>{const P=po({style:h,timeout:S,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",P),D.style.transition=r.transitions.create("opacity",P),b&&b(D)}),y=k(d),E=D=>{s&&s(x.current,D)};return g.jsx(C,{appear:i,in:c,nodeRef:x,onEnter:I,onEntered:N,onEntering:O,onExit:R,onExited:y,onExiting:L,addEndListener:E,timeout:S,...w,children:(D,{ownerState:P,...M})=>v.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...zy[D],...h,...a.props.style},ref:T,...M})})});function _y(e){return ge("MuiPaper",e)}me("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 Wy=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return he(s,_y,o)},Hy=U("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}`]]}})(Ie(({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)"}}]}))),Er=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiPaper"}),o=fn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,m={...r,component:i,elevation:a,square:l,variant:c},f=Wy(m);return g.jsx(Hy,{as:i,ownerState:m,className:de(f.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(${no("#fff",as(a))}, ${no("#fff",as(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",ni="auto",Or=[Qe,ct,ut,Ze],Ln="start",yr="end",Uy="clippingParents",_c="viewport",Gn="popper",Yy="reference",Aa=Or.reduce(function(e,t){return e.concat([t+"-"+Ln,t+"-"+yr])},[]),Wc=[].concat(Or,[ni]).reduce(function(e,t){return e.concat([t,t+"-"+Ln,t+"-"+yr])},[]),Gy="beforeRead",Ky="read",qy="afterRead",Xy="beforeMain",Qy="main",Zy="afterMain",Jy="beforeWrite",eb="write",tb="afterWrite",nb=[Gy,Ky,qy,Xy,Qy,Zy,Jy,eb,tb];function Rt(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dn(e){var t=et(e).Element;return e instanceof t||e instanceof Element}function at(e){var t=et(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ri(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rb(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];!at(s)||!Rt(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 ob(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},{});!at(o)||!Rt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const sb={name:"applyStyles",enabled:!0,phase:"write",fn:rb,effect:ob,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var ln=Math.max,fo=Math.min,Nn=Math.round;function ys(){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 Hc(){return!/^((?!chrome|android).)*safari/i.test(ys())}function jn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&at(e)&&(o=e.offsetWidth>0&&Nn(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Nn(r.height)/e.offsetHeight||1);var i=dn(e)?et(e):window,a=i.visualViewport,l=!Hc()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,m=r.width/o,f=r.height/s;return{width:m,height:f,top:u,right:c+m,bottom:u+f,left:c,x:c,y:u}}function oi(e){var t=jn(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 Uc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ri(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ft(e){return et(e).getComputedStyle(e)}function ib(e){return["table","td","th"].indexOf(Rt(e))>=0}function Kt(e){return((dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ao(e){return Rt(e)==="html"?e:e.assignedSlot||e.parentNode||(ri(e)?e.host:null)||Kt(e)}function Fa(e){return!at(e)||Ft(e).position==="fixed"?null:e.offsetParent}function ab(e){var t=/firefox/i.test(ys()),n=/Trident/i.test(ys());if(n&&at(e)){var r=Ft(e);if(r.position==="fixed")return null}var o=Ao(e);for(ri(o)&&(o=o.host);at(o)&&["html","body"].indexOf(Rt(o))<0;){var s=Ft(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 $r(e){for(var t=et(e),n=Fa(e);n&&ib(n)&&Ft(n).position==="static";)n=Fa(n);return n&&(Rt(n)==="html"||Rt(n)==="body"&&Ft(n).position==="static")?t:n||ab(e)||t}function si(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lr(e,t,n){return ln(e,fo(t,n))}function lb(e,t,n){var r=lr(e,t,n);return r>n?n:r}function Yc(){return{top:0,right:0,bottom:0,left:0}}function Gc(e){return Object.assign({},Yc(),e)}function Kc(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Gc(typeof t!="number"?t:Kc(t,Or))};function ub(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Mt(n.placement),l=si(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var m=cb(o.padding,n),f=oi(s),b=l==="y"?Qe:Ze,d=l==="y"?ct:ut,p=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],h=i[l]-n.rects.reference[l],S=$r(s),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=p/2-h/2,x=m[b],T=C-f[u]-m[d],k=C/2-f[u]/2+w,O=lr(x,k,T),I=l;n.modifiersData[r]=(t={},t[I]=O,t.centerOffset=O-k,t)}}function db(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)||Uc(t.elements.popper,o)&&(t.elements.arrow=o))}const pb={name:"arrow",enabled:!0,phase:"main",fn:ub,effect:db,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bn(e){return e.split("-")[1]}var fb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Nn(n*o)/o||0,y:Nn(r*o)/o||0}}function La(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,m=e.isFixed,f=i.x,b=f===void 0?0:f,d=i.y,p=d===void 0?0:d,h=typeof u=="function"?u({x:b,y:p}):{x:b,y:p};b=h.x,p=h.y;var S=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),w=Ze,x=Qe,T=window;if(c){var k=$r(n),O="clientHeight",I="clientWidth";if(k===et(n)&&(k=Kt(n),Ft(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",I="scrollWidth")),k=k,o===Qe||(o===Ze||o===ut)&&s===yr){x=ct;var N=m&&k===T&&T.visualViewport?T.visualViewport.height:k[O];p-=N-r.height,p*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===yr){w=ut;var L=m&&k===T&&T.visualViewport?T.visualViewport.width:k[I];b-=L-r.width,b*=l?1:-1}}var R=Object.assign({position:a},c&&fb),y=u===!0?mb({x:b,y:p},et(n)):{x:b,y:p};if(b=y.x,p=y.y,l){var E;return Object.assign({},R,(E={},E[x]=C?"0":"",E[w]=S?"0":"",E.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",E))}return Object.assign({},R,(t={},t[x]=C?p+"px":"",t[w]=S?b+"px":"",t.transform="",t))}function hb(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:Mt(t.placement),variation:Bn(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,La(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,La(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 gb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hb,data:{}};var Lr={passive:!0};function yb(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=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Lr)}),a&&l.addEventListener("resize",n.update,Lr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Lr)}),a&&l.removeEventListener("resize",n.update,Lr)}}const bb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yb,data:{}};var vb={left:"right",right:"left",bottom:"top",top:"bottom"};function eo(e){return e.replace(/left|right|bottom|top/g,function(t){return vb[t]})}var xb={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return xb[t]})}function ii(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ai(e){return jn(Kt(e)).left+ii(e).scrollLeft}function Sb(e,t){var n=et(e),r=Kt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Hc();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+ai(e),y:l}}function wb(e){var t,n=Kt(e),r=ii(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ln(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ln(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+ai(e),l=-r.scrollTop;return Ft(o||n).direction==="rtl"&&(a+=ln(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function li(e){var t=Ft(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function qc(e){return["html","body","#document"].indexOf(Rt(e))>=0?e.ownerDocument.body:at(e)&&li(e)?e:qc(Ao(e))}function cr(e,t){var n;t===void 0&&(t=[]);var r=qc(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],li(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(cr(Ao(i)))}function bs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cb(e,t){var n=jn(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 ja(e,t,n){return t===_c?bs(Sb(e,n)):dn(t)?Cb(t,n):bs(wb(Kt(e)))}function Pb(e){var t=cr(Ao(e)),n=["absolute","fixed"].indexOf(Ft(e).position)>=0,r=n&&at(e)?$r(e):e;return dn(r)?t.filter(function(o){return dn(o)&&Uc(o,r)&&Rt(o)!=="body"}):[]}function kb(e,t,n,r){var o=t==="clippingParents"?Pb(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=ja(e,c,r);return l.top=ln(u.top,l.top),l.right=fo(u.right,l.right),l.bottom=fo(u.bottom,l.bottom),l.left=ln(u.left,l.left),l},ja(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 Xc(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mt(r):null,s=r?Bn(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qe:l={x:i,y:t.y-n.height};break;case ct:l={x:i,y:t.y+t.height};break;case ut:l={x:t.x+t.width,y:a};break;case Ze:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?si(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Ln:l[c]=l[c]-(t[u]/2-n[u]/2);break;case yr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function br(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?Uy:a,c=n.rootBoundary,u=c===void 0?_c:c,m=n.elementContext,f=m===void 0?Gn:m,b=n.altBoundary,d=b===void 0?!1:b,p=n.padding,h=p===void 0?0:p,S=Gc(typeof h!="number"?h:Kc(h,Or)),C=f===Gn?Yy:Gn,w=e.rects.popper,x=e.elements[d?C:f],T=kb(dn(x)?x:x.contextElement||Kt(e.elements.popper),l,u,i),k=jn(e.elements.reference),O=Xc({reference:k,element:w,placement:o}),I=bs(Object.assign({},w,O)),N=f===Gn?I:k,L={top:T.top-N.top+S.top,bottom:N.bottom-T.bottom+S.bottom,left:T.left-N.left+S.left,right:N.right-T.right+S.right},R=e.modifiersData.offset;if(f===Gn&&R){var y=R[o];Object.keys(L).forEach(function(E){var D=[ut,ct].indexOf(E)>=0?1:-1,P=[Qe,ct].indexOf(E)>=0?"y":"x";L[E]+=y[P]*D})}return L}function Mb(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?Wc:l,u=Bn(r),m=u?a?Aa:Aa.filter(function(d){return Bn(d)===u}):Or,f=m.filter(function(d){return c.indexOf(d)>=0});f.length===0&&(f=m);var b=f.reduce(function(d,p){return d[p]=br(e,{placement:p,boundary:o,rootBoundary:s,padding:i})[Mt(p)],d},{});return Object.keys(b).sort(function(d,p){return b[d]-b[p]})}function Tb(e){if(Mt(e)===ni)return[];var t=eo(e);return[Na(e),t,Na(t)]}function Db(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,m=n.rootBoundary,f=n.altBoundary,b=n.flipVariations,d=b===void 0?!0:b,p=n.allowedAutoPlacements,h=t.options.placement,S=Mt(h),C=S===h,w=l||(C||!d?[eo(h)]:Tb(h)),x=[h].concat(w).reduce(function(ie,z){return ie.concat(Mt(z)===ni?Mb(t,{placement:z,boundary:u,rootBoundary:m,padding:c,flipVariations:d,allowedAutoPlacements:p}):z)},[]),T=t.rects.reference,k=t.rects.popper,O=new Map,I=!0,N=x[0],L=0;L<x.length;L++){var R=x[L],y=Mt(R),E=Bn(R)===Ln,D=[Qe,ct].indexOf(y)>=0,P=D?"width":"height",M=br(t,{placement:R,boundary:u,rootBoundary:m,altBoundary:f,padding:c}),A=D?E?ut:Ze:E?ct:Qe;T[P]>k[P]&&(A=eo(A));var $=eo(A),F=[];if(s&&F.push(M[y]<=0),a&&F.push(M[A]<=0,M[$]<=0),F.every(function(ie){return ie})){N=R,I=!1;break}O.set(R,F)}if(I)for(var V=d?3:1,q=function(z){var Z=x.find(function(X){var Y=O.get(X);if(Y)return Y.slice(0,z).every(function(W){return W})});if(Z)return N=Z,"break"},re=V;re>0;re--){var ae=q(re);if(ae==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Rb={name:"flip",enabled:!0,phase:"main",fn:Db,requiresIfExists:["offset"],data:{_skip:!1}};function Ba(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 Va(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function Ib(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=br(t,{elementContext:"reference"}),a=br(t,{altBoundary:!0}),l=Ba(i,r),c=Ba(a,o,s),u=Va(l),m=Va(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}const Eb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ib};function Ob(e,t,n){var r=Mt(e),o=[Ze,Qe].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,[Ze,ut].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function $b(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=Wc.reduce(function(u,m){return u[m]=Ob(m,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 Ab={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$b};function Fb(e){var t=e.state,n=e.name;t.modifiersData[n]=Xc({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Lb={name:"popperOffsets",enabled:!0,phase:"read",fn:Fb,data:{}};function Nb(e){return e==="x"?"y":"x"}function jb(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,m=n.padding,f=n.tether,b=f===void 0?!0:f,d=n.tetherOffset,p=d===void 0?0:d,h=br(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:u}),S=Mt(t.placement),C=Bn(t.placement),w=!C,x=si(S),T=Nb(x),k=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,L=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,y={x:0,y:0};if(k){if(s){var E,D=x==="y"?Qe:Ze,P=x==="y"?ct:ut,M=x==="y"?"height":"width",A=k[x],$=A+h[D],F=A-h[P],V=b?-I[M]/2:0,q=C===Ln?O[M]:I[M],re=C===Ln?-I[M]:-O[M],ae=t.elements.arrow,ie=b&&ae?oi(ae):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yc(),Z=z[D],X=z[P],Y=lr(0,O[M],ie[M]),W=w?O[M]/2-V-Y-Z-L.mainAxis:q-Y-Z-L.mainAxis,G=w?-O[M]/2+V+Y+X+L.mainAxis:re+Y+X+L.mainAxis,te=t.elements.arrow&&$r(t.elements.arrow),J=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,B=(E=R?.[x])!=null?E:0,K=A+W-B-J,oe=A+G-B,ne=lr(b?fo($,K):$,A,b?ln(F,oe):F);k[x]=ne,y[x]=ne-A}if(a){var ce,se=x==="x"?Qe:Ze,fe=x==="x"?ct:ut,be=k[T],Se=T==="y"?"height":"width",pe=be+h[se],Ke=be-h[fe],Ne=[Qe,Ze].indexOf(S)!==-1,mt=(ce=R?.[T])!=null?ce:0,ht=Ne?pe:be-O[Se]-I[Se]-mt+L.altAxis,nt=Ne?be+O[Se]+I[Se]-mt-L.altAxis:Ke,rt=b&&Ne?lb(ht,be,nt):lr(b?ht:pe,be,b?nt:Ke);k[T]=rt,y[T]=rt-be}t.modifiersData[r]=y}}const Bb={name:"preventOverflow",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"]};function Vb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zb(e){return e===et(e)||!at(e)?ii(e):Vb(e)}function _b(e){var t=e.getBoundingClientRect(),n=Nn(t.width)/e.offsetWidth||1,r=Nn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Wb(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&_b(t),s=Kt(t),i=jn(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Rt(t)!=="body"||li(s))&&(a=zb(t)),at(t)?(l=jn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=ai(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Hb(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 Ub(e){var t=Hb(e);return nb.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Yb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gb(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 za={placement:"bottom",modifiers:[],strategy:"absolute"};function _a(){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 Kb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?za:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},za,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],f=!1,b={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;p(),u.options=Object.assign({},s,u.options,C),u.scrollParents={reference:dn(a)?cr(a):a.contextElement?cr(a.contextElement):[],popper:cr(l)};var w=Ub(Gb([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(x){return x.enabled}),d(),b.update()},forceUpdate:function(){if(!f){var S=u.elements,C=S.reference,w=S.popper;if(_a(C,w)){u.rects={reference:Wb(C,$r(w),u.options.strategy==="fixed"),popper:oi(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var T=u.orderedModifiers[x],k=T.fn,O=T.options,I=O===void 0?{}:O,N=T.name;typeof k=="function"&&(u=k({state:u,options:I,name:N,instance:b})||u)}}}},update:Yb(function(){return new Promise(function(h){b.forceUpdate(),h(u)})}),destroy:function(){p(),f=!0}};if(!_a(a,l))return b;b.setOptions(c).then(function(h){!f&&c.onFirstUpdate&&c.onFirstUpdate(h)});function d(){u.orderedModifiers.forEach(function(h){var S=h.name,C=h.options,w=C===void 0?{}:C,x=h.effect;if(typeof x=="function"){var T=x({state:u,name:S,instance:b,options:w}),k=function(){};m.push(T||k)}})}function p(){m.forEach(function(h){return h()}),m=[]}return b}}var qb=[bb,Lb,gb,sb,Ab,Rb,Bb,pb,Eb],Xb=Kb({defaultModifiers:qb});function Qb(e){return typeof e=="function"?e():e}const Qc=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=v.useState(null),l=Pe(v.isValidElement(r)?zn(r):null,n);if(He(()=>{s||a(Qb(o)||document.body)},[o,s]),He(()=>{if(i&&!s)return ls(n,i),()=>{ls(n,null)}},[n,i,s]),s){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return i&&Wd.createPortal(r,i)});function Zb(e){return ge("MuiPopper",e)}me("MuiPopper",["root"]);function Jb(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 vs(e){return typeof e=="function"?e():e}function ev(e){return e.nodeType!==void 0}const tv=e=>{const{classes:t}=e;return he({root:["root"]},Zb,t)},nv={},rv=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:m,slotProps:f={},slots:b={},TransitionProps:d,ownerState:p,...h}=t,S=v.useRef(null),C=Pe(S,n),w=v.useRef(null),x=Pe(w,m),T=v.useRef(x);He(()=>{T.current=x},[x]),v.useImperativeHandle(m,()=>w.current,[]);const k=Jb(c,s),[O,I]=v.useState(k),[N,L]=v.useState(vs(r));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{r&&L(vs(r))},[r]),He(()=>{if(!N||!l)return;const P=$=>{I($.placement)};let M=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{P($)}}];a!=null&&(M=M.concat(a)),u&&u.modifiers!=null&&(M=M.concat(u.modifiers));const A=Xb(N,S.current,{placement:k,...u,modifiers:M});return T.current(A),()=>{A.destroy(),T.current(null)}},[N,i,a,l,u,k]);const R={placement:O};d!==null&&(R.TransitionProps=d);const y=tv(t),E=b.root??"div",D=Ce({elementType:E,externalSlotProps:f.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:y.root});return g.jsx(E,{...D,children:typeof o=="function"?o(R):o})}),ov=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:m="bottom",popperOptions:f=nv,popperRef:b,style:d,transition:p=!1,slotProps:h={},slots:S={},...C}=t,[w,x]=v.useState(!0),T=()=>{x(!1)},k=()=>{x(!0)};if(!l&&!u&&(!p||w))return null;let O;if(s)O=s;else if(r){const L=vs(r);O=L&&ev(L)?Ye(L).body:Ye(null).body}const I=!u&&l&&(!p||w)?"none":void 0,N=p?{in:u,onEnter:T,onExited:k}:void 0;return g.jsx(Qc,{disablePortal:a,container:O,children:g.jsx(rv,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:p?!w:u,placement:m,popperOptions:f,popperRef:b,slotProps:h,slots:S,...C,style:{position:"fixed",top:0,left:0,display:I,...d},TransitionProps:N,children:o})})}),sv=U(ov,{name:"MuiPopper",slot:"Root"})({}),Zc=v.forwardRef(function(t,n){const r=vt(),o=we({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:m,modifiers:f,open:b,placement:d,popperOptions:p,popperRef:h,transition:S,slots:C,slotProps:w,...x}=o,T=C?.root??a?.Root,k={anchorEl:s,container:c,disablePortal:u,keepMounted:m,modifiers:f,open:b,placement:d,popperOptions:p,popperRef:h,transition:S,...x};return g.jsx(sv,{as:i,direction:r?"rtl":"ltr",slots:{root:T},slotProps:w??l,...k,ref:n})}),iv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function av(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 lv(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 cv(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lv(e))}function uv(e){const t=[],n=[];return Array.from(e.querySelectorAll(iv)).forEach((r,o)=>{const s=av(r);s===-1||!cv(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 dv(){return!0}function Jc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=uv,isEnabled:i=dv,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),m=v.useRef(null),f=v.useRef(null),b=v.useRef(!1),d=v.useRef(null),p=Pe(zn(t),d),h=v.useRef(null);v.useEffect(()=>{!a||!d.current||(b.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!d.current)return;const w=Ye(d.current);return d.current.contains(w.activeElement)||(d.current.hasAttribute("tabIndex")||d.current.setAttribute("tabIndex","-1"),b.current&&d.current.focus()),()=>{o||(m.current&&m.current.focus&&(l.current=!0,m.current.focus()),m.current=null)}},[a]),v.useEffect(()=>{if(!a||!d.current)return;const w=Ye(d.current),x=O=>{h.current=O,!(r||!i()||O.key!=="Tab")&&w.activeElement===d.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const O=d.current;if(O===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(O.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!b.current)return;let I=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(I=s(d.current)),I.length>0){const N=!!(h.current?.shiftKey&&h.current?.key==="Tab"),L=I[0],R=I[I.length-1];typeof L!="string"&&typeof R!="string"&&(N?R.focus():L.focus())}else O.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",x,!0);const k=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",T),w.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const S=w=>{m.current===null&&(m.current=w.relatedTarget),b.current=!0,f.current=w.target;const x=t.props.onFocus;x&&x(w)},C=w=>{m.current===null&&(m.current=w.relatedTarget),b.current=!0};return g.jsxs(v.Fragment,{children:[g.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:S}),g.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}function pv(e){return ge("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);function fv(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const mv=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},qe=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?qe(t.shadowRoot):t:null},hv="@media (pointer: fine)",gv="@media (prefers-reduced-motion: reduce)",Rn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Wa=Rn&&Rn[1]?parseInt(Rn[1],10):null,Ha=Rn&&Rn[2]?parseInt(Rn[2],10):null,yv=Wa&&Wa<10||Ha&&Ha<13||!1,eu=()=>Sc(gv,{defaultMatches:!1})||yv,bv=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],vv=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"]},pv,t)},xv=U(Zc,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Sv=U(Er,{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 wv(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Cv(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=ue(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=Ye(o.current);if(!o.current||"clientX"in l&&wv(l,u))return;if(n.current){n.current=!1;return}let m;l.composedPath?m=l.composedPath().indexOf(o.current)>-1:m=!u.documentElement.contains(l.target)||o.current.contains(l.target),!m&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=Ye(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=Ye(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const Pv=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ve(e,bv),m=j({},o,{placement:r}),f=Ce({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:m});return g.jsx(n,j({},u,f,{onClick:b=>{l(b),f.onClick?.(b)},onTouchStart:b=>{c(b),f.onTouchStart?.(b)},ownerState:m,children:s}))});function kv(e){const t=$e({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:m,slotProps:f,reduceAnimations:b}=t;v.useEffect(()=>{function P(M){l&&M.key==="Escape"&&a()}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[a,l]);const d=v.useRef(null);v.useEffect(()=>{c==="tooltip"||s&&!s()||(l?d.current=qe(document):d.current&&d.current instanceof HTMLElement&&setTimeout(()=>{d.current instanceof HTMLElement&&d.current.focus()}))},[l,c,s]);const[p,h,S]=Cv(l,i??a),C=v.useRef(null),w=Pe(C,o),x=Pe(w,p),T=t,k=vv(T),O=eu(),I=b??O,N=P=>{P.key==="Escape"&&(P.stopPropagation(),a())},L=m?.desktopTransition??I?un:gr,R=m?.desktopTrapFocus??Jc,y=m?.desktopPaper??Sv,E=m?.popper??xv,D=Ce({elementType:E,externalSlotProps:f?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:N},className:k.root,ownerState:t});return g.jsx(E,j({},D,{children:({TransitionProps:P,placement:M})=>g.jsx(R,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f?.desktopTrapFocus,{children:g.jsx(L,j({},P,f?.desktopTransition,{children:g.jsx(Pv,{PaperComponent:y,ownerState:T,popperPlacement:M,ref:x,onPaperClick:h,onPaperTouchStart:S,paperClasses:k.paper,paperSlotProps:f?.desktopPaper,children:r})}))}))}))}const Mv=({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}},ci=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Ae(),a=v.useRef(n),l=t??a.current??s.emptyValue,c=v.useMemo(()=>s.getTimezone(i,l),[i,s,l]),u=ue(d=>c==null?d:s.setTimezone(i,c,d));let m;e?m=e:c?m=c:r?m=i.getTimezone(r):m="default";const f=v.useMemo(()=>s.setTimezone(i,m,l),[s,i,m,l]),b=ue((d,...p)=>{const h=u(d);o?.(h,...p)});return{value:f,handleValueChange:b,timezone:m}},ui=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Tt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=ue((u,...m)=>{l(u),s?.(u,...m)});return ci({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},Tv=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},Dv=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},Rv=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},Iv=({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:m}=e,{current:f}=v.useRef(l),{current:b}=v.useRef(a!==void 0),[d,p]=v.useState(u),h=Ae(),S=mn(),{isOpen:C,setIsOpen:w}=Mv(e),{timezone:x,value:T,handleValueChange:k}=ci({timezone:u,value:a,defaultValue:f,referenceDate:m,onChange:i,valueManager:t}),[O,I]=v.useState(()=>{let W;return T!==void 0?W=T:f!==void 0?W=f:W=t.emptyValue,{draft:W,lastPublishedValue:W,lastCommittedValue:W,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),N=t.getTimezone(h,O.draft);d!==u&&(p(u),u&&N&&u!==N&&I(W=>j({},W,{draft:t.setTimezone(h,u,W.draft)})));const{getValidationErrorForNewValue:L}=jc({props:e,validator:o,timezone:x,value:O.draft,onError:e.onError}),R=ue(W=>{const G={action:W,dateState:O,hasChanged:ne=>!t.areValuesEqual(h,W.value,ne),isControlled:b,closeOnSelect:c},te=Tv(G),J=Dv(G),B=Rv(G);I(ne=>j({},ne,{draft:W.value,lastPublishedValue:te?W.value:ne.lastPublishedValue,lastCommittedValue:J?W.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const oe=()=>(K||(K={validationError:W.name==="setValueFromField"?W.context.validationError:L(W.value)},W.name==="setValueFromShortcut"&&(K.shortcut=W.shortcut)),K);te&&k(W.value,oe()),J&&s&&s(W.value,oe()),B&&w(!1)});if(O.lastControlledValue!==a){const W=t.areValuesEqual(h,O.draft,T);I(G=>j({},G,{lastControlledValue:a},W?{}:{lastCommittedValue:T,lastPublishedValue:T,draft:T,hasBeenModifiedSinceMount:!0}))}const y=ue(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),E=ue(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=ue(()=>{R({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),P=ue(()=>{R({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),M=ue(()=>{R({value:t.getTodayValue(h,x,n),name:"setValueFromAction",pickerAction:"today"})}),A=ue(W=>{W.preventDefault(),w(!0)}),$=ue(W=>{W?.preventDefault(),w(!1)}),F=ue((W,G="partial")=>R({name:"setValueFromView",value:W,selectionState:G})),V=ue((W,G,te)=>R({name:"setValueFromShortcut",value:W,changeImportance:G,shortcut:te})),q=ue((W,G)=>R({name:"setValueFromField",value:W,context:G})),re={onClear:y,onAccept:E,onDismiss:D,onCancel:P,onSetToday:M,onOpen:A,onClose:$},ae={value:O.draft,onChange:q},ie=v.useMemo(()=>t.cleanValue(h,O.draft),[h,t,O.draft]),z={value:ie,onChange:F,onClose:$,open:C},X=j({},re,{value:ie,onChange:F,onSelectShortcut:V,isValid:W=>{const G=o({adapter:S,value:W,timezone:x,props:e});return!t.hasError(G)}}),Y=v.useMemo(()=>({onOpen:A,onClose:$,open:C}),[C,$,A]);return{open:C,fieldProps:ae,viewProps:z,layoutProps:X,actions:re,contextValue:Y}};function tu({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]),[m,f]=Tt({name:"useViews",state:"view",controlled:r,default:u.current}),b=v.useRef(s?m:null),[d,p]=Tt({name:"useViews",state:"focusedView",controlled:i,default:b.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(O=>!o.includes(O)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,m,o]);const h=o.indexOf(m),S=o[h-1]??null,C=o[h+1]??null,w=ue((O,I)=>{p(I?O:N=>O===N?null:N),a?.(O,I)}),x=ue(O=>{w(O,!0),O!==m&&(f(O),t&&t(O))}),T=ue(()=>{C&&x(C)}),k=ue((O,I,N)=>{const L=I==="finish",R=N?o.indexOf(N)<o.length-1:!!C;if(e(O,L&&R?"partial":I,N),N&&N!==m){const E=o[o.indexOf(N)+1];E&&x(E)}else L&&T()});return{view:m,setView:x,focusedView:d,setFocusedView:w,nextView:C,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:T,setValueAndGoToNextView:k}}const Ev=["className","sx"],Ov=({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:m,onViewChange:f,viewRenderers:b,timezone:d}=e,p=ve(e,Ev),{view:h,setView:S,defaultView:C,focusedView:w,setFocusedView:x,setValueAndGoToNextView:T}=tu({view:c,views:u,openTo:m,onChange:i,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:O}=v.useMemo(()=>u.reduce((D,P)=>{let M;return b[P]!=null?M="UI":M="field",D.viewModeLookup[P]=M,M==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,u]),I=v.useMemo(()=>u.reduce((D,P)=>b[P]!=null&&cg(P)?D+1:D,0),[b,u]),N=O[h],L=ue(()=>N==="UI"),[R,y]=v.useState(N==="UI"?h:null);return R!==h&&O[h]==="UI"&&y(h),He(()=>{N==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(h),s?.current?.focusField(h)}))},[h]),He(()=>{if(!a)return;let D=h;N==="field"&&R!=null&&(D=R),D!==C&&O[D]==="UI"&&O[C]==="UI"&&(D=C),D!==h&&S(D),x(D,!0)},[a]),{hasUIView:k,shouldRestoreFocus:L,layoutProps:{views:u,view:R,onViewChange:S},renderCurrentView:()=>{if(R==null)return null;const D=b[R];if(D==null)return null;const P=j({},p,n,t,{views:u,timezone:d,onChange:T,view:R,onViewChange:S,focusedView:w,onFocusedViewChange:x,showViewSwitcher:I>1,timeViewsCount:I});return o?o(b,R,P):D(P)}}};function Ua(){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 $v=(e,t)=>{const[n,r]=v.useState(Ua);return He(()=>{const s=()=>{r(Ua())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),fv(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Av=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=$v(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Fv(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 nu=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=Iv({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Ov({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),m=Av({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=Fv({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:m.layoutProps,contextValue:c.contextValue,ownerState:f}};function ru(e){return ge("MuiPickersLayout",e)}const Xt=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Lv(e){return ge("MuiButton",e)}const Qt=me("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"]),Nv=v.createContext({}),jv=v.createContext(void 0),Bv=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}${le(t)}`,`size${le(o)}`,`${s}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${le(a)}`],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=he(c,Lv,l);return{...l,...u}},ou=[{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}}}],Vv=U(Fn,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ie(({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"},[`&.${Qt.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]},[`&.${Qt.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Qt.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)",[`&.${Qt.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(Xe()).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"},[`&.${Qt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qt.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}),[`&.${Qt.loading}`]:{color:"transparent"}}}]}})),zv=U("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(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}},...ou]})),_v=U("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(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}},...ou]})),Wv=U("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}}]})),Ya=U("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),sr=v.forwardRef(function(t,n){const r=v.useContext(Nv),o=v.useContext(jv),s=mr(r,t),i=we({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:m=!1,disableElevation:f=!1,disableFocusRipple:b=!1,endIcon:d,focusVisibleClassName:p,fullWidth:h=!1,id:S,loading:C=null,loadingIndicator:w,loadingPosition:x="center",size:T="medium",startIcon:k,type:O,variant:I="text",...N}=i,L=xt(S),R=w??g.jsx(ti,{"aria-labelledby":L,color:"inherit",size:16}),y={...i,color:l,component:c,disabled:m,disableElevation:f,disableFocusRipple:b,fullWidth:h,loading:C,loadingIndicator:R,loadingPosition:x,size:T,type:O,variant:I},E=Bv(y),D=(k||C&&x==="start")&&g.jsx(zv,{className:E.startIcon,ownerState:y,children:k||g.jsx(Ya,{className:E.loadingIconPlaceholder,ownerState:y})}),P=(d||C&&x==="end")&&g.jsx(_v,{className:E.endIcon,ownerState:y,children:d||g.jsx(Ya,{className:E.loadingIconPlaceholder,ownerState:y})}),M=o||"",A=typeof C=="boolean"?g.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:C&&g.jsx(Wv,{className:E.loadingIndicator,ownerState:y,children:R})}):null;return g.jsxs(Vv,{ownerState:y,className:de(r.className,E.root,u,M),component:c,disabled:m||C,focusRipple:!b,focusVisibleClassName:de(E.focusVisible,p),ref:n,type:O,id:C?L:S,...N,classes:E,children:[D,x!=="end"&&A,a,x==="end"&&A,P]})});function Hv(e){return ge("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const Uv=e=>{const{classes:t,disableSpacing:n}=e;return he({root:["root",!n&&"spacing"]},Hv,t)},Yv=U("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}}}]}),Gv=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=Uv(a);return g.jsx(Yv,{className:de(l.root,o),ownerState:a,ref:n,...i})}),Kv=["onAccept","onClear","onCancel","onSetToday","actions"];function qv(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,Kv),a=Nt();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return g.jsx(sr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return g.jsx(sr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return g.jsx(sr,{onClick:t,children:a.okButtonLabel},c);case"today":return g.jsx(sr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return g.jsx(Gv,j({},i,{children:l}))}const In=v.createContext({});function Xv(e){return ge("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const Qv=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return he({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Xv,t)},Zv=U("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}}]}),su=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,m=v.useMemo(()=>({dense:a}),[a]),f={...r,component:i,dense:a,disablePadding:l},b=Qv(f);return g.jsx(In.Provider,{value:m,children:g.jsxs(Zv,{as:i,className:de(b.root,s),ref:n,ownerState:f,...u,children:[c,o]})})});function Jv(e){return ge("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const ex=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function tx(e){return ge("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const nx=e=>{const{disableGutters:t,classes:n}=e;return he({root:["root",t&&"disableGutters"]},tx,n)},rx=U("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}}]}),iu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=v.useContext(In),a={...r,disableGutters:i.disableGutters},l=nx(a);return g.jsx(rx,{className:de(l.root,o),ownerState:a,ref:n,...s})});iu.muiName="ListItemSecondaryAction";const ox=(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]},sx=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return he({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},Jv,n)},ix=U("div",{name:"MuiListItem",slot:"Root",overridesResolver:ox})(Ie(({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:{[`& > .${ex.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}}]}))),ax=U("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),lx=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:m,...f}={},dense:b=!1,disableGutters:d=!1,disablePadding:p=!1,divider:h=!1,secondaryAction:S,slotProps:C={},slots:w={},...x}=r,T=v.useContext(In),k=v.useMemo(()=>({dense:b||T.dense||!1,alignItems:o,disableGutters:d}),[o,T.dense,b,d]),O=v.useRef(null),I=v.Children.toArray(s),N=I.length&&Ur(I[I.length-1],["ListItemSecondaryAction"]),L={...r,alignItems:o,dense:k.dense,disableGutters:d,disablePadding:p,divider:h,hasSecondaryAction:N},R=sx(L),y=Pe(O,n),E=w.root||l.Root||ix,D=C.root||c.root||{},P={className:de(R.root,D.className,i),...x};let M=a||"li";return N?(M=!P.component&&!a?"div":M,u==="li"&&(M==="li"?M="div":P.component==="li"&&(P.component="div")),g.jsx(In.Provider,{value:k,children:g.jsxs(ax,{as:u,className:de(R.container,m),ref:y,ownerState:L,...f,children:[g.jsx(E,{...D,...!An(E)&&{as:M,ownerState:{...L,...D.ownerState}},...P,children:I}),I.pop()]})})):g.jsx(In.Provider,{value:k,children:g.jsxs(E,{...D,as:M,ref:y,...!An(E)&&{ownerState:{...L,...D.ownerState}},...P,children:[I,S&&g.jsx(iu,{children:S})]})})}),cx=Ue(g.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 ux(e){return ge("MuiChip",e)}const xe=me("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 Le(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:m={[e]:void 0},...f}=s,b=u[e]||r,d=Io(m[e],o),{props:{component:p,...h},internalRef:S}=Mc({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:d}),C=Pe(S,d?.ref,t.ref),w=e==="root"?p||c:p,x=kc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...h,...w&&!a&&{as:w},...w&&a&&{component:w},ref:C},o);return[b,x]}const dx=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${le(r)}`,`color${le(o)}`,a&&"clickable",a&&`clickableColor${le(o)}`,i&&"deletable",i&&`deletableColor${le(o)}`,`${l}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(l)}Color${le(o)}`]};return he(c,ux,t)},px=U("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[{[`& .${xe.avatar}`]:t.avatar},{[`& .${xe.avatar}`]:t[`avatar${le(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${le(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${le(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(r)}`]},t.root,t[`size${le(a)}`],t[`color${le(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${le(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${le(r)}`],t[l],t[`${l}${le(r)}`]]}})(Ie(({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",[`&.${xe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${xe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${xe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${xe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${xe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${xe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${xe.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,[`& .${xe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${xe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Xe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${xe.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:{[`& .${xe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${xe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${xe.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(Xe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${xe.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}`)},[`&.${xe.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(Xe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${xe.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]}`,[`&.${xe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${xe.avatar}`]:{marginLeft:4},[`& .${xe.avatarSmall}`]:{marginLeft:2},[`& .${xe.icon}`]:{marginLeft:4},[`& .${xe.iconSmall}`]:{marginLeft:2},[`& .${xe.deleteIcon}`]:{marginRight:5},[`& .${xe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Xe()).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)}`,[`&.${xe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${xe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${xe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),fx=U("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(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 Ga(e){return e.key==="Backspace"||e.key==="Delete"}const au=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:m,label:f,onClick:b,onDelete:d,onKeyDown:p,onKeyUp:h,size:S="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:x=!1,slots:T={},slotProps:k={},...O}=r,I=v.useRef(null),N=Pe(I,n),L=Z=>{Z.stopPropagation(),d&&d(Z)},R=Z=>{Z.currentTarget===Z.target&&Ga(Z)&&Z.preventDefault(),p&&p(Z)},y=Z=>{Z.currentTarget===Z.target&&d&&Ga(Z)&&d(Z),h&&h(Z)},E=i!==!1&&b?!0:i,D=E||d?Fn:l||"div",P={...r,component:D,disabled:u,size:S,color:a,iconColor:v.isValidElement(m)&&m.props.color||a,onDelete:!!d,clickable:E,variant:C},M=dx(P),A=D===Fn?{component:l||"div",focusVisibleClassName:M.focusVisible,...d&&{disableRipple:!0}}:{};let $=null;d&&($=c&&v.isValidElement(c)?v.cloneElement(c,{className:de(c.props.className,M.deleteIcon),onClick:L}):g.jsx(cx,{className:M.deleteIcon,onClick:L}));let F=null;o&&v.isValidElement(o)&&(F=v.cloneElement(o,{className:de(M.avatar,o.props.className)}));let V=null;m&&v.isValidElement(m)&&(V=v.cloneElement(m,{className:de(M.icon,m.props.className)}));const q={slots:T,slotProps:k},[re,ae]=Le("root",{elementType:px,externalForwardedProps:{...q,...O},ownerState:P,shouldForwardComponentProp:!0,ref:N,className:de(M.root,s),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:x&&u?-1:w,...A},getSlotProps:Z=>({...Z,onClick:X=>{Z.onClick?.(X),b?.(X)},onKeyDown:X=>{Z.onKeyDown?.(X),R(X)},onKeyUp:X=>{Z.onKeyUp?.(X),y(X)}})}),[ie,z]=Le("label",{elementType:fx,externalForwardedProps:q,ownerState:P,className:M.label});return g.jsxs(re,{as:D,...ae,children:[F||V,g.jsx(ie,{...z,children:f}),$]})}),vr=36,Fo=2,Lo=320,mx=280,di=336,hx=["items","changeImportance","isLandscape","onChange","isValid"],gx=["getValue"];function yx(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,hx);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,gx);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return g.jsx(su,j({dense:!0,sx:[{maxHeight:di,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>g.jsx(lx,{children:g.jsx(au,j({},a))},a.id??a.label))}))}function bx(e){return e.view!==null}const vx=e=>{const{classes:t,isLandscape:n}=e;return he({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ru,t)},xx=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:m,isValid:f,isLandscape:b,disabled:d,readOnly:p,children:h,slots:S,slotProps:C}=e,w=vx(e),x=S?.actionBar??qv,T=Ce({elementType:x,externalSlotProps:C?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:w.actionBar,ownerState:j({},e,{wrapperVariant:t})}),k=g.jsx(x,j({},T)),O=S?.toolbar,I=Ce({elementType:O,externalSlotProps:C?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:d,readOnly:p},className:w.toolbar,ownerState:j({},e,{wrapperVariant:t})}),N=bx(I)&&O?g.jsx(O,j({},I)):null,L=h,R=S?.tabs,y=i&&R?g.jsx(R,j({view:i,onViewChange:l,className:w.tabs},C?.tabs)):null,E=S?.shortcuts??yx,D=Ce({elementType:E,externalSlotProps:C?.shortcuts,additionalProps:{isValid:f,isLandscape:b,onChange:m},className:w.shortcuts,ownerState:{isValid:f,isLandscape:b,onChange:m,wrapperVariant:t}}),P=i&&E?g.jsx(E,j({},D)):null;return{toolbar:N,content:L,tabs:y,actionBar:k,shortcuts:P}},Sx=e=>{const{isLandscape:t,classes:n}=e;return he({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ru,n)},wx=U("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Xt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Xt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Xt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Xt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Xt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Xt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Xt.shortcuts}`]:{gridColumn:3}}}]}),Cx=U("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),lu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=xx(r),{sx:c,className:u,isLandscape:m,wrapperVariant:f}=r,b=Sx(r);return g.jsxs(wx,{ref:n,sx:c,className:de(b.root,u),ownerState:r,children:[m?l:o,m?o:l,g.jsx(Cx,{className:b.contentWrapper,children:f==="desktop"?g.jsxs(v.Fragment,{children:[s,i]}):g.jsxs(v.Fragment,{children:[i,s]})}),a]})}),Px=v.createContext(null);function cu(e){const{contextValue:t,localeText:n,children:r}=e;return g.jsx(Px.Provider,{value:t,children:g.jsx(hr,{localeText:n,children:r})})}const kx=["props","getOpenDialogAriaText"],Mx=["ownerState"],Tx=["ownerState"],Dx=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,kx);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,name:d,label:p,inputRef:h,readOnly:S,disabled:C,autoFocus:w,localeText:x,reduceAnimations:T}=t,k=v.useRef(null),O=v.useRef(null),I=xt(),N=s?.toolbar?.hidden??!1,{open:L,actions:R,hasUIView:y,layoutProps:E,renderCurrentView:D,shouldRestoreFocus:P,fieldProps:M,contextValue:A,ownerState:$}=nu(j({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),F=o.inputAdornment??Bc,V=Ce({elementType:F,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),q=ve(V,Mx),re=o.openPickerButton??Ir,ae=Ce({elementType:re,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:C||S,onClick:L?R.onClose:R.onOpen,"aria-label":n(M.value),edge:q.position},ownerState:t}),ie=ve(ae,Tx),z=o.openPickerIcon,Z=Ce({elementType:z,externalSlotProps:s?.openPickerIcon,ownerState:$}),X=o.field,Y=Ce({elementType:X,externalSlotProps:s?.field,additionalProps:j({},M,N&&{id:I},{readOnly:S,disabled:C,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,label:p,name:d,autoFocus:w&&!t.open,focused:L?!0:void 0},h?{inputRef:h}:{}),ownerState:t});y&&(Y.InputProps=j({},Y.InputProps,{ref:k},!t.disableOpenPicker&&{[`${q.position}Adornment`]:g.jsx(F,j({},q,{children:g.jsx(re,j({},ie,{children:g.jsx(z,j({},Z))}))}))}));const W=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},Y.slots),G=o.layout??lu;let te=I;N&&(p?te=`${I}-label`:te=void 0);const J=j({},s,{toolbar:j({},s?.toolbar,{titleId:I}),popper:j({"aria-labelledby":te},s?.popper)}),B=Pe(O,Y.unstableFieldRef);return{renderPicker:()=>g.jsxs(cu,{contextValue:A,localeText:x,children:[g.jsx(X,j({},Y,{slots:W,slotProps:J,unstableFieldRef:B})),g.jsx(kv,j({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:L,slots:o,slotProps:J,shouldRestoreFocus:P,reduceAnimations:T,children:g.jsx(G,j({},E,J?.layout,{slots:o,slotProps:J,children:D()}))}))]})}},Rx=Ue(g.jsx("path",{d:"M7 10l5 5 5-5z"})),Ix=Ue(g.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Ex=Ue(g.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Ox=Ue(g.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"}));Ue(g.jsxs(v.Fragment,{children:[g.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"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));Ue(g.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"}));Ue(g.jsxs(v.Fragment,{children:[g.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"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const $x=Ue(g.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 Nr(e){return parseInt(e,10)||0}const Ax={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Fx(e){for(const t in e)return!1;return!0}function Ka(e){return Fx(e)||e.outerHeightStyle===0&&!e.overflowing}const Lx=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),m=Pe(n,u),f=v.useRef(null),b=v.useRef(null),d=v.useCallback(()=>{const w=u.current,x=b.current;if(!w||!x)return;const k=At(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=k.width,x.value=w.value||t.placeholder||"x",x.value.slice(-1)===`
132
+ `&&(x.value+=" ");const O=k.boxSizing,I=Nr(k.paddingBottom)+Nr(k.paddingTop),N=Nr(k.borderBottomWidth)+Nr(k.borderTopWidth),L=x.scrollHeight;x.value="x";const R=x.scrollHeight;let y=L;s&&(y=Math.max(Number(s)*R,y)),o&&(y=Math.min(Number(o)*R,y)),y=Math.max(y,R);const E=y+(O==="border-box"?I+N:0),D=Math.abs(y-L)<=1;return{outerHeightStyle:E,overflowing:D}},[o,s,t.placeholder]),p=ue(()=>{const w=u.current,x=d();if(!w||!x||Ka(x))return!1;const T=x.outerHeightStyle;return f.current!=null&&f.current!==T}),h=v.useCallback(()=>{const w=u.current,x=d();if(!w||!x||Ka(x))return;const T=x.outerHeightStyle;f.current!==T&&(f.current=T,w.style.height=`${T}px`),w.style.overflow=x.overflowing?"hidden":""},[d]),S=v.useRef(-1);He(()=>{const w=jl(h),x=u?.current;if(!x)return;const T=At(x);T.addEventListener("resize",w);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{p()&&(k.unobserve(x),cancelAnimationFrame(S.current),h(),S.current=requestAnimationFrame(()=>{k.observe(x)}))}),k.observe(x)),()=>{w.clear(),cancelAnimationFrame(S.current),T.removeEventListener("resize",w),k&&k.disconnect()}},[d,h,p]),He(()=>{h()});const C=w=>{c||h();const x=w.target,T=x.value.length,k=x.value.endsWith(`
133
+ `),O=x.selectionStart===T;k&&O&&x.setSelectionRange(T,T),r&&r(w)};return g.jsxs(v.Fragment,{children:[g.jsx("textarea",{value:a,onChange:C,ref:m,rows:s,style:i,...l}),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...Ax.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function hn({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 qa(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mo(e,t=!1){return e&&(qa(e.value)&&e.value!==""||t&&qa(e.defaultValue)&&e.defaultValue!=="")}function Nx(e){return e.startAdornment}function jx(e){return ge("MuiInputBase",e)}const pn=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Xa;const No=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},jo=(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]},Bx=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:m,size:f,startAdornment:b,type:d}=e,p={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",f&&f!=="medium"&&`size${le(f)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",d==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return he(p,jx,t)},Bo=U("div",{name:"MuiInputBase",slot:"Root",overridesResolver:No})(Ie(({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",[`&.${pn.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%"}}]}))),Vo=U("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jo})(Ie(({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] + .${pn.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},[`&.${pn.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"}}]}})),Qa=pm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),pi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:m,disabled:f,disableInjectingGlobalStyles:b,endAdornment:d,error:p,fullWidth:h=!1,id:S,inputComponent:C="input",inputProps:w={},inputRef:x,margin:T,maxRows:k,minRows:O,multiline:I=!1,name:N,onBlur:L,onChange:R,onClick:y,onFocus:E,onKeyDown:D,onKeyUp:P,placeholder:M,readOnly:A,renderSuffix:$,rows:F,size:V,slotProps:q={},slots:re={},startAdornment:ae,type:ie="text",value:z,...Z}=r,X=w.value!=null?w.value:z,{current:Y}=v.useRef(X!=null),W=v.useRef(),G=v.useCallback(Ee=>{},[]),te=Pe(W,x,w.ref,G),[J,B]=v.useState(!1),K=ft(),oe=hn({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=K?K.focused:J,v.useEffect(()=>{!K&&f&&J&&(B(!1),L&&L())},[K,f,J,L]);const ne=K&&K.onFilled,ce=K&&K.onEmpty,se=v.useCallback(Ee=>{mo(Ee)?ne&&ne():ce&&ce()},[ne,ce]);He(()=>{Y&&se({value:X})},[X,se,Y]);const fe=Ee=>{E&&E(Ee),w.onFocus&&w.onFocus(Ee),K&&K.onFocus?K.onFocus(Ee):B(!0)},be=Ee=>{L&&L(Ee),w.onBlur&&w.onBlur(Ee),K&&K.onBlur?K.onBlur(Ee):B(!1)},Se=(Ee,...Bt)=>{if(!Y){const Vt=Ee.target||W.current;if(Vt==null)throw new Error(Ot(1));se({value:Vt.value})}w.onChange&&w.onChange(Ee,...Bt),R&&R(Ee,...Bt)};v.useEffect(()=>{se(W.current)},[]);const pe=Ee=>{W.current&&Ee.currentTarget===Ee.target&&W.current.focus(),y&&y(Ee)};let Ke=C,Ne=w;I&&Ke==="input"&&(F?Ne={type:void 0,minRows:F,maxRows:F,...Ne}:Ne={type:void 0,maxRows:k,minRows:O,...Ne},Ke=Lx);const mt=Ee=>{se(Ee.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};v.useEffect(()=>{K&&K.setAdornedStart(!!ae)},[K,ae]);const ht={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:d,error:oe.error,focused:oe.focused,formControl:K,fullWidth:h,hiddenLabel:oe.hiddenLabel,multiline:I,size:oe.size,startAdornment:ae,type:ie},nt=Bx(ht),rt=re.root||c.Root||Bo,jt=q.root||u.root||{},gt=re.input||c.Input||Vo;return Ne={...Ne,...q.input??u.input},g.jsxs(v.Fragment,{children:[!b&&typeof Qa=="function"&&(Xa||(Xa=g.jsx(Qa,{}))),g.jsxs(rt,{...jt,ref:n,onClick:pe,...Z,...!An(rt)&&{ownerState:{...ht,...jt.ownerState}},className:de(nt.root,jt.className,a,A&&"MuiInputBase-readOnly"),children:[ae,g.jsx($o.Provider,{value:null,children:g.jsx(gt,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:m,disabled:oe.disabled,id:S,onAnimationStart:mt,name:N,placeholder:M,readOnly:A,required:oe.required,rows:F,value:X,onKeyDown:D,onKeyUp:P,type:ie,...Ne,...!An(gt)&&{as:Ke,ownerState:{...ht,...Ne.ownerState}},ref:te,className:de(nt.input,Ne.className,A&&"MuiInputBase-readOnly"),onBlur:be,onChange:Se,onFocus:fe})}),d,$?$({...oe,startAdornment:ae}):null]})]})});function Vx(e){return ge("MuiInput",e)}const Pn={...pn,...me("MuiInput",["root","underline","input"])},zx=e=>{const{classes:t,disableUnderline:n}=e,o=he({root:["root",!n&&"underline"],input:["input"]},Vx,t);return{...t,...o}},_x=U(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...No(e,t),!n.disableUnderline&&t.underline]}})(Ie(({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"},[`&.${Pn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pn.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(.${Pn.disabled}, .${Pn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Pn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Wx=U(Vo,{name:"MuiInput",slot:"Input",overridesResolver:jo})({}),fi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:m={},type:f="text",...b}=r,d=zx(r),h={root:{ownerState:{disableUnderline:o}}},S=u??i?Ge(u??i,h):h,C=m.root??s.Root??_x,w=m.input??s.Input??Wx;return g.jsx(pi,{slots:{root:C,input:w},slotProps:S,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:d})});fi.muiName="Input";function Hx(e){return ge("MuiFilledInput",e)}const Ht={...pn,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ux=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${le(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=he(l,Hx,t);return{...t,...c}},Yx=U(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...No(e,t),!n.disableUnderline&&t.underline]}})(Ie(({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}},[`&.${Ht.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ht.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"},[`&.${Ht.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ht.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(.${Ht.disabled}, .${Ht.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ht.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).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}}]}})),Gx=U(Vo,{name:"MuiFilledInput",slot:"Input",overridesResolver:jo})(Ie(({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}}]}))),mi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:m,slots:f={},type:b="text",...d}=r,p={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},h=Ux(r),S={root:{ownerState:p},input:{ownerState:p}},C=m??i?Ge(S,m??i):S,w=f.root??s.Root??Yx,x=f.input??s.Input??Gx;return g.jsx(pi,{slots:{root:w,input:x},slotProps:C,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...d,classes:h})});mi.muiName="Input";var Za;const Kx=U("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pt})({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%"}),qx=U("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pt})(Ie(({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 Xx(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 g.jsx(Kx,{"aria-hidden":!0,className:r,ownerState:l,...i,children:g.jsx(qx,{ownerState:l,children:a?g.jsx("span",{children:o}):Za||(Za=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function Qx(e){return ge("MuiOutlinedInput",e)}const bt={...pn,...me("MuiOutlinedInput",["root","notchedOutline","input"])},Zx=e=>{const{classes:t}=e,r=he({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Qx,t);return{...t,...r}},Jx=U(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:No})(Ie(({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 .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bt.focused} .${bt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Xe()).map(([n])=>({props:{color:n},style:{[`&.${bt.focused} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bt.error} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bt.disabled} .${bt.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"}}]}})),e0=U(Xx,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ie(({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}})),t0=U(Vo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jo})(Ie(({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}}]}))),hi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:m={},type:f="text",...b}=r,d=Zx(r),p=ft(),h=hn({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:p,fullWidth:s,hiddenLabel:h.hiddenLabel,multiline:l,size:h.size,type:f},C=u.root??o.Root??Jx,w=u.input??o.Input??t0,[x,T]=Le("notchedOutline",{elementType:e0,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:u,slotProps:m},additionalProps:{label:a!=null&&a!==""&&h.required?g.jsxs(v.Fragment,{children:[a," ","*"]}):a}});return g.jsx(pi,{slots:{root:C,input:w},slotProps:m,renderSuffix:k=>g.jsx(x,{...T,notched:typeof c<"u"?c:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:f,...b,classes:{...d,notchedOutline:null}})});hi.muiName="Input";function n0(e){return ge("MuiFormLabel",e)}const ur=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),r0=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${le(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return he(l,n0,t)},o0=U("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ie(({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(Xe()).map(([t])=>({props:{color:t},style:{[`&.${ur.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ur.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ur.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),s0=U("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ie(({theme:e})=>({[`&.${ur.error}`]:{color:(e.vars||e).palette.error.main}}))),i0=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:m,required:f,...b}=r,d=ft(),p=hn({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),h={...r,color:p.color||"primary",component:a,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},S=r0(h);return g.jsxs(o0,{as:a,ownerState:h,className:de(S.root,s),ref:n,...b,children:[o,p.required&&g.jsxs(s0,{ownerState:h,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function a0(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const l0=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${le(r)}`,i],asterisk:[a&&"asterisk"]},c=he(l,a0,t);return{...t,...c}},c0=U(i0,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ur.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]]}})(Ie(({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)"}}]}))),gi=v.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=ft();let m=i;typeof m>"u"&&u&&(m=u.filled||u.focused||u.adornedStart);const f=hn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:m,size:f.size,variant:f.variant,required:f.required,focused:f.focused},d=l0(b);return g.jsx(c0,{"data-shrink":m,ref:n,className:de(d.root,l),...c,ownerState:b,classes:d})});function u0(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const d0=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return he(o,u0,t)},p0=U("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(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%"}}]}),yi=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:m=!1,hiddenLabel:f=!1,margin:b="none",required:d=!1,size:p="medium",variant:h="outlined",...S}=r,C={...r,color:i,component:a,disabled:l,error:c,fullWidth:m,hiddenLabel:f,margin:b,required:d,size:p,variant:h},w=d0(C),[x,T]=v.useState(()=>{let P=!1;return o&&v.Children.forEach(o,M=>{if(!Ur(M,["Input","Select"]))return;const A=Ur(M,["Select"])?M.props.input:M;A&&Nx(A.props)&&(P=!0)}),P}),[k,O]=v.useState(()=>{let P=!1;return o&&v.Children.forEach(o,M=>{Ur(M,["Input","Select"])&&(mo(M.props,!0)||mo(M.props.inputProps,!0))&&(P=!0)}),P}),[I,N]=v.useState(!1);l&&I&&N(!1);const L=u!==void 0&&!l?u:I;let R;v.useRef(!1);const y=v.useCallback(()=>{O(!0)},[]),E=v.useCallback(()=>{O(!1)},[]),D=v.useMemo(()=>({adornedStart:x,setAdornedStart:T,color:i,disabled:l,error:c,filled:k,focused:L,fullWidth:m,hiddenLabel:f,size:p,onBlur:()=>{N(!1)},onFocus:()=>{N(!0)},onEmpty:E,onFilled:y,registerEffect:R,required:d,variant:h}),[x,i,l,c,k,L,m,f,R,E,y,d,p,h]);return g.jsx($o.Provider,{value:D,children:g.jsx(p0,{as:a,ownerState:C,className:de(w.root,s),ref:n,...S,children:o})})});function f0(e){return ge("MuiFormHelperText",e)}const Ja=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var el;const m0=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${le(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return he(c,f0,t)},h0=U("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ie(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ja.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}}]}))),uu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:m,required:f,variant:b,...d}=r,p=ft(),h=hn({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:i,contained:h.variant==="filled"||h.variant==="outlined",variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required};delete S.ownerState;const C=m0(S);return g.jsx(h0,{as:i,className:de(C.root,s),ref:n,...d,ownerState:S,children:o===" "?el||(el=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function es(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function du(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 Kn(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")||!du(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const g0=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:m="selectedMenu",...f}=t,b=v.useRef(null),d=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});He(()=>{o&&b.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:x})=>{const T=!b.current.style.width;if(w.clientHeight<b.current.clientHeight&&T){const k=`${Pc(At(w))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=k,b.current.style.width=`calc(100% + ${k})`}return b.current}}),[]);const p=w=>{const x=b.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const O=Ye(x).activeElement;if(T==="ArrowDown")w.preventDefault(),Kn(x,O,c,l,es);else if(T==="ArrowUp")w.preventDefault(),Kn(x,O,c,l,tl);else if(T==="Home")w.preventDefault(),Kn(x,null,c,l,es);else if(T==="End")w.preventDefault(),Kn(x,null,c,l,tl);else if(T.length===1){const I=d.current,N=T.toLowerCase(),L=performance.now();I.keys.length>0&&(L-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&N!==I.keys[0]&&(I.repeating=!1)),I.lastTime=L,I.keys.push(N);const R=O&&!I.repeating&&du(O,I);I.previousKeyMatched&&(R||Kn(x,O,!1,l,es,I))?w.preventDefault():I.previousKeyMatched=!1}u&&u(w)},h=Pe(b,n);let S=-1;v.Children.forEach(i,(w,x)=>{if(!v.isValidElement(w)){S===x&&(S+=1,S>=i.length&&(S=-1));return}w.props.disabled||(m==="selectedMenu"&&w.props.selected||S===-1)&&(S=x),S===x&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(S+=1,S>=i.length&&(S=-1))});const C=v.Children.map(i,(w,x)=>{if(x===S){const T={};return s&&(T.autoFocus=!0),w.props.tabIndex===void 0&&m==="selectedMenu"&&(T.tabIndex=0),v.cloneElement(w,T)}return w});return g.jsx(su,{role:"menu",ref:h,className:a,onKeyDown:p,tabIndex:o?0:-1,...f,children:C})});function y0(e){const t=Ye(e);return t.body===e?At(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nl(e){return parseInt(At(e).getComputedStyle(e).paddingRight,10)||0}function b0(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 rl(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!b0(i);a&&l&&dr(i,o)})}function ts(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function v0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(y0(r)){const i=Pc(At(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nl(r)+i}px`;const a=Ye(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${nl(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ye(r).body;else{const i=r.parentElement,a=At(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 x0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class S0{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&&dr(t.modalRef,!1);const o=x0(n);rl(n,t.mount,t.modalRef,o,!0);const s=ts(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=ts(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=v0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ts(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&&dr(t.modalRef,n),rl(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&&dr(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function w0(e){return ge("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const C0=e=>{const{classes:t,invisible:n}=e;return he({root:["root",n&&"invisible"]},w0,t)},P0=U("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"}}]}),pu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:m={},slots:f={},TransitionComponent:b,transitionDuration:d,...p}=r,h={...r,component:i,invisible:a},S=C0(h),C={transition:b,root:c.Root,...f},w={...u,...m},x={component:i,slots:C,slotProps:w},[T,k]=Le("root",{elementType:P0,externalForwardedProps:x,className:de(S.root,s),ownerState:h}),[O,I]=Le("transition",{elementType:un,externalForwardedProps:x,ownerState:h});return g.jsx(O,{in:l,timeout:d,...p,...I,children:g.jsx(T,{"aria-hidden":!0,...k,classes:S,ref:n,children:o})})});function k0(e){return typeof e=="function"?e():e}function M0(e){return e?e.props.hasOwnProperty("in"):!1}const ol=()=>{},jr=new S0;function T0(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,m=v.useRef({}),f=v.useRef(null),b=v.useRef(null),d=Pe(b,u),[p,h]=v.useState(!c),S=M0(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Ye(f.current),x=()=>(m.current.modalRef=b.current,m.current.mount=f.current,m.current),T=()=>{jr.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},k=ue(()=>{const P=k0(t)||w().body;jr.add(x(),P),b.current&&T()}),O=()=>jr.isTopModal(x()),I=ue(P=>{f.current=P,P&&(c&&O()?T():b.current&&dr(b.current,C))}),N=v.useCallback(()=>{jr.remove(x(),C)},[C]);v.useEffect(()=>()=>{N()},[N]),v.useEffect(()=>{c?k():(!S||!o)&&N()},[c,N,S,o,k]);const L=P=>M=>{P.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!O())&&(n||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},R=P=>M=>{P.onClick?.(M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(P={})=>{const M=Gs(e);delete M.onTransitionEnter,delete M.onTransitionExited;const A={...M,...P};return{role:"presentation",...A,onKeyDown:L(A),ref:d}},getBackdropProps:(P={})=>{const M=P;return{"aria-hidden":!0,...M,onClick:R(M),open:c}},getTransitionProps:()=>{const P=()=>{h(!1),s&&s()},M=()=>{h(!0),i&&i(),o&&N()};return{onEnter:$i(P,a?.props.onEnter??ol),onExited:$i(M,a?.props.onExited??ol)}},rootRef:d,portalRef:I,isTopModal:O,exited:p,hasTransition:S}}function D0(e){return ge("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const R0=e=>{const{open:t,exited:n,classes:r}=e;return he({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},D0,r)},I0=U("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ie(({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"}}]}))),E0=U(pu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),fu=v.forwardRef(function(t,n){const r=we({name:"MuiModal",props:t}),{BackdropComponent:o=E0,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:m,components:f={},componentsProps:b={},disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:T=!1,onClose:k,onTransitionEnter:O,onTransitionExited:I,open:N,slotProps:L={},slots:R={},theme:y,...E}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:x,keepMounted:T},{getRootProps:P,getBackdropProps:M,getTransitionProps:A,portalRef:$,isTopModal:F,exited:V,hasTransition:q}=T0({...D,rootRef:n}),re={...D,exited:V},ae=R0(re),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),q){const{onEnter:G,onExited:te}=A();ie.onEnter=G,ie.onExited=te}const z={slots:{root:f.Root,backdrop:f.Backdrop,...R},slotProps:{...b,...L}},[Z,X]=Le("root",{ref:n,elementType:I0,externalForwardedProps:{...z,...E,component:m},getSlotProps:P,ownerState:re,className:de(a,ae?.root,!re.open&&re.exited&&ae?.hidden)}),[Y,W]=Le("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:G=>M({...G,onClick:te=>{G?.onClick&&G.onClick(te)}}),className:de(s?.className,ae?.backdrop),ownerState:re});return!T&&!N&&(!q||V)?null:g.jsx(Qc,{ref:$,container:u,disablePortal:S,children:g.jsxs(Z,{...X,children:[!x&&o?g.jsx(Y,{...W}):null,g.jsx(Jc,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:C,isEnabled:F,open:N,children:v.cloneElement(c,ie)})]})})});function O0(e){return ge("MuiPopover",e)}me("MuiPopover",["root","paper"]);function sl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function il(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function al(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Br(e){return typeof e=="function"?e():e}const $0=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"]},O0,t)},A0=U(fu,{name:"MuiPopover",slot:"Root"})({}),mu=U(Er,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),F0=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:m,elevation:f=8,marginThreshold:b=16,open:d,PaperProps:p={},slots:h={},slotProps:S={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:x="auto",TransitionProps:T={},disableScrollLock:k=!1,...O}=r,I=v.useRef(),N={...r,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:b,transformOrigin:C,TransitionComponent:w,transitionDuration:x,TransitionProps:T},L=$0(N),R=v.useCallback(()=>{if(l==="anchorPosition")return a;const G=Br(s),J=(G&&G.nodeType===1?G:Ye(I.current).body).getBoundingClientRect();return{top:J.top+sl(J,i.vertical),left:J.left+il(J,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),y=v.useCallback(G=>({vertical:sl(G,C.vertical),horizontal:il(G,C.horizontal)}),[C.horizontal,C.vertical]),E=v.useCallback(G=>{const te={width:G.offsetWidth,height:G.offsetHeight},J=y(te);if(l==="none")return{top:null,left:null,transformOrigin:al(J)};const B=R();let K=B.top-J.vertical,oe=B.left-J.horizontal;const ne=K+te.height,ce=oe+te.width,se=At(Br(s)),fe=se.innerHeight-b,be=se.innerWidth-b;if(b!==null&&K<b){const Se=K-b;K-=Se,J.vertical+=Se}else if(b!==null&&ne>fe){const Se=ne-fe;K-=Se,J.vertical+=Se}if(b!==null&&oe<b){const Se=oe-b;oe-=Se,J.horizontal+=Se}else if(ce>be){const Se=ce-be;oe-=Se,J.horizontal+=Se}return{top:`${Math.round(K)}px`,left:`${Math.round(oe)}px`,transformOrigin:al(J)}},[s,l,R,y,b]),[D,P]=v.useState(d),M=v.useCallback(()=>{const G=I.current;if(!G)return;const te=E(G);te.top!==null&&G.style.setProperty("top",te.top),te.left!==null&&(G.style.left=te.left),G.style.transformOrigin=te.transformOrigin,P(!0)},[E]);v.useEffect(()=>(k&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[s,k,M]);const A=()=>{M()},$=()=>{P(!1)};v.useEffect(()=>{d&&M()}),v.useImperativeHandle(o,()=>d?{updatePosition:()=>{M()}}:null,[d,M]),v.useEffect(()=>{if(!d)return;const G=jl(()=>{M()}),te=At(Br(s));return te.addEventListener("resize",G),()=>{G.clear(),te.removeEventListener("resize",G)}},[s,d,M]);let F=x;const V={slots:{transition:w,...h},slotProps:{transition:T,paper:p,...S}},[q,re]=Le("transition",{elementType:gr,externalForwardedProps:V,ownerState:N,getSlotProps:G=>({...G,onEntering:(te,J)=>{G.onEntering?.(te,J),A()},onExited:te=>{G.onExited?.(te),$()}}),additionalProps:{appear:!0,in:d}});x==="auto"&&!q.muiSupportAuto&&(F=void 0);const ae=m||(s?Ye(Br(s)).body:void 0),[ie,{slots:z,slotProps:Z,...X}]=Le("root",{ref:n,elementType:A0,externalForwardedProps:{...V,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Bl(typeof S.backdrop=="function"?S.backdrop(N):S.backdrop,{invisible:!0})},container:ae,open:d},ownerState:N,className:de(L.root,u)}),[Y,W]=Le("paper",{ref:I,className:L.paper,elementType:mu,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:D?void 0:{opacity:0}},ownerState:N});return g.jsx(ie,{...X,...!An(ie)&&{slots:z,slotProps:Z,disableScrollLock:k},children:g.jsx(q,{...re,timeout:F,children:g.jsx(Y,{...W,children:c})})})});function L0(e){return ge("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const N0={vertical:"top",horizontal:"right"},j0={vertical:"top",horizontal:"left"},B0=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"],list:["list"]},L0,t)},V0=U(F0,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),z0=U(mu,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_0=U(g0,{name:"MuiMenu",slot:"List"})({outline:0}),W0=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:m={},PopoverClasses:f,transitionDuration:b="auto",TransitionProps:{onEntering:d,...p}={},variant:h="selectedMenu",slots:S={},slotProps:C={},...w}=r,x=vt(),T={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:m,transitionDuration:b,TransitionProps:p,variant:h},k=B0(T),O=o&&!a&&u,I=v.useRef(null),N=(F,V)=>{I.current&&I.current.adjustStyleForScrollbar(F,{direction:x?"rtl":"ltr"}),d&&d(F,V)},L=F=>{F.key==="Tab"&&(F.preventDefault(),c&&c(F,"tabKeyDown"))};let R=-1;v.Children.map(s,(F,V)=>{v.isValidElement(F)&&(F.props.disabled||(h==="selectedMenu"&&F.props.selected||R===-1)&&(R=V))});const y={slots:S,slotProps:{list:l,transition:p,paper:m,...C}},E=Ce({elementType:S.root,externalSlotProps:C.root,ownerState:T,className:[k.root,i]}),[D,P]=Le("paper",{className:k.paper,elementType:z0,externalForwardedProps:y,shouldForwardComponentProp:!0,ownerState:T}),[M,A]=Le("list",{className:de(k.list,l.className),elementType:_0,shouldForwardComponentProp:!0,externalForwardedProps:y,getSlotProps:F=>({...F,onKeyDown:V=>{L(V),F.onKeyDown?.(V)}}),ownerState:T}),$=typeof y.slotProps.transition=="function"?y.slotProps.transition(T):y.slotProps.transition;return g.jsx(V0,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?N0:j0,slots:{root:S.root,paper:D,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:E,paper:P,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...$,onEntering:(...F)=>{N(...F),$?.onEntering?.(...F)}}},open:u,ref:n,transitionDuration:b,ownerState:T,...w,classes:f,children:g.jsx(M,{actions:I,autoFocus:o&&(R===-1||a),autoFocusItem:O,variant:h,...A,children:s})})});function H0(e){return ge("MuiNativeSelect",e)}const bi=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),U0=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${le(n)}`,s&&"iconOpen",r&&"disabled"]};return he(a,H0,t)},hu=U("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${bi.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}}}]})),Y0=U(hu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${bi.multiple}`]:t.multiple}]}})({}),gu=U("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${bi.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}}]})),G0=U(gu,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),K0=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},m=U0(u);return g.jsxs(v.Fragment,{children:[g.jsx(Y0,{ownerState:u,className:de(m.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:g.jsx(G0,{as:i,ownerState:u,className:m.icon})]})});function yu(e){return ge("MuiSelect",e)}const qn=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ll;const q0=U(hu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qn.select}`]:t.select},{[`&.${qn.select}`]:t[n.variant]},{[`&.${qn.error}`]:t.error},{[`&.${qn.multiple}`]:t.multiple}]}})({[`&.${qn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),X0=U(gu,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),Q0=U("input",{shouldForwardProp:e=>Nl(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Z0(e){return e==null||typeof e=="string"&&!e.trim()}const J0=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${le(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return he(a,yu,t)},eS=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:m,displayEmpty:f,error:b=!1,IconComponent:d,inputRef:p,labelId:h,MenuProps:S={},multiple:C,name:w,onBlur:x,onChange:T,onClose:k,onFocus:O,onOpen:I,open:N,readOnly:L,renderValue:R,required:y,SelectDisplayProps:E={},tabIndex:D,type:P,value:M,variant:A="standard",...$}=t,[F,V]=Tt({controlled:M,default:u,name:"Select"}),[q,re]=Tt({controlled:N,default:c,name:"Select"}),ae=v.useRef(null),ie=v.useRef(null),[z,Z]=v.useState(null),{current:X}=v.useRef(N!=null),[Y,W]=v.useState(),G=Pe(n,p),te=v.useCallback(ye=>{ie.current=ye,ye&&Z(ye)},[]),J=z?.parentNode;v.useImperativeHandle(G,()=>({focus:()=>{ie.current.focus()},node:ae.current,value:F}),[F]),v.useEffect(()=>{c&&q&&z&&!X&&(W(i?null:J.clientWidth),ie.current.focus())},[z,i]),v.useEffect(()=>{s&&ie.current.focus()},[s]),v.useEffect(()=>{if(!h)return;const ye=Ye(ie.current).getElementById(h);if(ye){const ke=()=>{getSelection().isCollapsed&&ie.current.focus()};return ye.addEventListener("click",ke),()=>{ye.removeEventListener("click",ke)}}},[h]);const B=(ye,ke)=>{ye?I&&I(ke):k&&k(ke),X||(W(i?null:J.clientWidth),re(ye))},K=ye=>{ye.button===0&&(ye.preventDefault(),ie.current.focus(),B(!0,ye))},oe=ye=>{B(!1,ye)},ne=v.Children.toArray(a),ce=ye=>{const ke=ne.find(ze=>ze.props.value===ye.target.value);ke!==void 0&&(V(ke.props.value),T&&T(ye,ke))},se=ye=>ke=>{let ze;if(ke.currentTarget.hasAttribute("tabindex")){if(C){ze=Array.isArray(F)?F.slice():[];const zt=F.indexOf(ye.props.value);zt===-1?ze.push(ye.props.value):ze.splice(zt,1)}else ze=ye.props.value;if(ye.props.onClick&&ye.props.onClick(ke),F!==ze&&(V(ze),T)){const zt=ke.nativeEvent||ke,Oe=new zt.constructor(zt.type,zt);Object.defineProperty(Oe,"target",{writable:!0,value:{value:ze,name:w}}),T(Oe,ye)}C||B(!1,ke)}},fe=ye=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),B(!0,ye))},be=z!==null&&q,Se=ye=>{!be&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:F,name:w}}),x(ye))};delete $["aria-invalid"];let pe,Ke;const Ne=[];let mt=!1;(mo({value:F})||f)&&(R?pe=R(F):mt=!0);const ht=ne.map(ye=>{if(!v.isValidElement(ye))return null;let ke;if(C){if(!Array.isArray(F))throw new Error(Ot(2));ke=F.some(ze=>cl(ze,ye.props.value)),ke&&mt&&Ne.push(ye.props.children)}else ke=cl(F,ye.props.value),ke&&mt&&(Ke=ye.props.children);return v.cloneElement(ye,{"aria-selected":ke?"true":"false",onClick:se(ye),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ze)},role:"option",selected:ke,value:void 0,"data-value":ye.props.value})});mt&&(C?Ne.length===0?pe=null:pe=Ne.reduce((ye,ke,ze)=>(ye.push(ke),ze<Ne.length-1&&ye.push(", "),ye),[]):pe=Ke);let nt=Y;!i&&X&&z&&(nt=J.clientWidth);let rt;typeof D<"u"?rt=D:rt=m?null:0;const jt=E.id||(w?`mui-component-select-${w}`:void 0),gt={...t,variant:A,value:F,open:be,error:b},Ee=J0(gt),Bt={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(gt):S.slotProps?.paper},Vt={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(gt):S.slotProps?.list},_n=xt();return g.jsxs(v.Fragment,{children:[g.jsx(q0,{as:"div",ref:te,tabIndex:rt,role:"combobox","aria-controls":be?_n:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[h,jt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":y?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:fe,onMouseDown:m||L?null:K,onBlur:Se,onFocus:O,...E,ownerState:gt,className:de(E.className,Ee.select,l),id:jt,children:Z0(pe)?ll||(ll=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),g.jsx(Q0,{"aria-invalid":b,value:Array.isArray(F)?F.join(","):F,name:w,ref:ae,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:m,className:Ee.nativeInput,autoFocus:s,required:y,...$,ownerState:gt}),g.jsx(X0,{as:d,className:Ee.icon,ownerState:gt}),g.jsx(W0,{id:`menu-${w||""}`,anchorEl:J,open:be,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":h,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:_n,...Vt},paper:{...Bt,style:{minWidth:nt,...Bt!=null?Bt.style:null}}},children:ht})]})}),bu=Ue(g.jsx("path",{d:"M7 10l5 5 5-5z"})),tS=e=>{const{classes:t}=e,r=he({root:["root"]},yu,t);return{...t,...r}},vi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},nS=U(fi,vi)(""),rS=U(hi,vi)(""),oS=U(mi,vi)(""),xi=v.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=bu,id:m,input:f,inputProps:b,label:d,labelId:p,MenuProps:h,multiple:S=!1,native:C=!1,onClose:w,onOpen:x,open:T,renderValue:k,SelectDisplayProps:O,variant:I="outlined",...N}=r,L=C?K0:eS,R=ft(),y=hn({props:r,muiFormControl:R,states:["variant","error"]}),E=y.variant||I,D={...r,variant:E,classes:i},P=tS(D),{root:M,...A}=P,$=f||{standard:g.jsx(nS,{ownerState:D}),outlined:g.jsx(rS,{label:d,ownerState:D}),filled:g.jsx(oS,{ownerState:D})}[E],F=Pe(n,zn($));return g.jsx(v.Fragment,{children:v.cloneElement($,{inputComponent:L,inputProps:{children:s,error:y.error,IconComponent:u,variant:E,type:void 0,multiple:S,...C?{id:m}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:p,MenuProps:h,onClose:w,onOpen:x,open:T,renderValue:k,SelectDisplayProps:{id:m,...O}},...b,classes:b?Ge(A,b.classes):A,...f?f.props.inputProps:{}},...(S&&C||c)&&E==="outlined"?{notched:!0}:{},ref:F,className:de($.props.className,a,P.root),...!f&&{variant:E},...N})})});xi.muiName="Select";function sS(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const iS={standard:fi,filled:mi,outlined:hi},aS=e=>{const{classes:t}=e;return he({root:["root"]},sS,t)},lS=U(yi,{name:"MuiTextField",slot:"Root"})({}),vu=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:m=!1,FormHelperTextProps:f,fullWidth:b=!1,helperText:d,id:p,InputLabelProps:h,inputProps:S,InputProps:C,inputRef:w,label:x,maxRows:T,minRows:k,multiline:O=!1,name:I,onBlur:N,onChange:L,onFocus:R,placeholder:y,required:E=!1,rows:D,select:P=!1,SelectProps:M,slots:A={},slotProps:$={},type:F,value:V,variant:q="outlined",...re}=r,ae={...r,autoFocus:s,color:l,disabled:u,error:m,fullWidth:b,multiline:O,required:E,select:P,variant:q},ie=aS(ae),z=xt(p),Z=d&&z?`${z}-helper-text`:void 0,X=x&&z?`${z}-label`:void 0,Y=iS[q],W={slots:A,slotProps:{input:C,inputLabel:h,htmlInput:S,formHelperText:f,select:M,...$}},G={},te=W.slotProps.inputLabel;q==="outlined"&&(te&&typeof te.shrink<"u"&&(G.notched=te.shrink),G.label=x),P&&((!M||!M.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[J,B]=Le("root",{elementType:lS,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...re},ownerState:ae,className:de(ie.root,a),ref:n,additionalProps:{disabled:u,error:m,fullWidth:b,required:E,color:l,variant:q}}),[K,oe]=Le("input",{elementType:Y,externalForwardedProps:W,additionalProps:G,ownerState:ae}),[ne,ce]=Le("inputLabel",{elementType:gi,externalForwardedProps:W,ownerState:ae}),[se,fe]=Le("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ae}),[be,Se]=Le("formHelperText",{elementType:uu,externalForwardedProps:W,ownerState:ae}),[pe,Ke]=Le("select",{elementType:xi,externalForwardedProps:W,ownerState:ae}),Ne=g.jsx(K,{"aria-describedby":Z,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:O,name:I,rows:D,maxRows:T,minRows:k,type:F,value:V,id:z,inputRef:w,onBlur:N,onChange:L,onFocus:R,placeholder:y,inputProps:fe,slots:{input:A.htmlInput?se:void 0},...oe});return g.jsxs(J,{...B,children:[x!=null&&x!==""&&g.jsx(ne,{htmlFor:z,id:X,...ce,children:x}),P?g.jsx(pe,{"aria-describedby":Z,id:z,labelId:X,value:V,input:Ne,...Ke,children:i}):Ne,d&&g.jsx(be,{id:Z,...Se,children:d})]})}),cS=({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},uS=({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},dS=(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}},pS=({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=Dc(e,i),c=Oc(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",m=t!=null&&e.isValid(t);let f=m?e.formatByString(t,i):"",b=null;if(u)if(c)b=f===""?e.formatByString(s,i).length:f.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,m&&(f=Xs(Ic(cn(f,o),b),o))}return j({},l,{format:i,maxLength:b,value:f,placeholder:dS(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},fS=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,d)=>d.length-b.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),m=b=>r.find(d=>d.start<=b&&d.end>=b);let f=0;for(;f<n.length;){const b=m(f),d=b!=null,p=l.exec(n.slice(f))?.[1];if(!d&&p!=null&&c.test(p)){let h=p;for(;h.length>0;){const S=u.exec(h)[1];h=h.slice(S.length),s.push(pS(j({},e,{now:o,token:S,startSeparator:i}))),i=""}f+=p.length}else{const h=n[f];d&&b?.start===f||b?.end===f||(s.length===0?i+=h:s[s.length-1].endSeparator+=h),f+=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},mS=({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}),ul=e=>{let t=cS(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=uS(j({},e,{expandedFormat:t})),r=fS(j({},e,{expandedFormat:t,escapedParts:n}));return mS(j({},e,{sections:r}))},hS=e=>{const t=Ae(),n=Nt(),r=mn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:m,referenceDate:f,onChange:b,format:d,formatDensity:p="dense",selectedSections:h,onSelectedSectionsChange:S,shouldRespectLeadingZeros:C=!1,timezone:w,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:T,value:k,handleValueChange:O}=ci({timezone:w,value:u,defaultValue:m,referenceDate:f,onChange:b,valueManager:s}),I=v.useMemo(()=>hg(t),[t]),N=v.useMemo(()=>Sg(t,I,T),[t,I,T]),L=v.useCallback((z,Z=null)=>i.getSectionsFromValue(t,z,Z,X=>ul({utils:t,localeText:n,localizedDigits:I,format:d,date:X,formatDensity:p,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,d,n,I,o,C,t,p,x]),[R,y]=v.useState(()=>{const z=L(k),Z={sections:z,value:k,referenceValue:s.emptyValue,tempValueStrAndroid:null},X=dg(z),Y=s.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:X,timezone:T});return j({},Z,{referenceValue:Y})}),[E,D]=Tt({controlled:h,default:null,name:"useField",state:"selectedSections"}),P=z=>{D(z),S?.(z)},M=v.useMemo(()=>cs(E,R.sections),[E,R.sections]),A=M==="all"?0:M,$=({value:z,referenceValue:Z,sections:X})=>{if(y(W=>j({},W,{sections:X,value:z,referenceValue:Z,tempValueStrAndroid:null})),s.areValuesEqual(t,R.value,z))return;const Y={validationError:l({adapter:r,value:z,timezone:T,props:c})};O(z,Y)},F=(z,Z)=>{const X=[...R.sections];return X[z]=j({},X[z],{value:Z,modified:!0}),X},V=()=>{$({value:s.emptyValue,referenceValue:R.referenceValue,sections:L(s.emptyValue)})},q=()=>{if(A==null)return;const z=R.sections[A],Z=i.getActiveDateManager(t,R,z),Y=Z.getSections(R.sections).filter(J=>J.value!=="").length===(z.value===""?0:1),W=F(A,""),G=Y?null:t.getInvalidDate(),te=Z.getNewValuesFromNewActiveDate(G);$(j({},te,{sections:W}))},re=z=>{const Z=(W,G)=>{const te=t.parse(W,d);if(te==null||!t.isValid(te))return null;const J=ul({utils:t,localeText:n,localizedDigits:I,format:d,date:te,formatDensity:p,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:o});return Ta(t,te,J,G,!1)},X=i.parseValueStr(z,R.referenceValue,Z),Y=i.updateReferenceValue(t,X,R.referenceValue);$({value:X,referenceValue:Y,sections:L(X,R.sections)})},ae=({activeSection:z,newSectionValue:Z,shouldGoToNextSection:X})=>{X&&A<R.sections.length-1&&P(A+1);const Y=i.getActiveDateManager(t,R,z),W=F(A,Z),G=Y.getSections(W),te=bg(t,G,I);let J,B;if(te!=null&&t.isValid(te)){const K=Ta(t,te,G,Y.referenceDate,!0);J=Y.getNewValuesFromNewActiveDate(K),B=!0}else J=Y.getNewValuesFromNewActiveDate(te),B=(te!=null&&!t.isValid(te))!=(Y.date!=null&&!t.isValid(Y.date));return B?$(j({},J,{sections:W})):y(K=>j({},K,J,{sections:W,tempValueStrAndroid:null}))},ie=z=>y(Z=>j({},Z,{tempValueStrAndroid:z}));return v.useEffect(()=>{const z=L(R.value);y(Z=>j({},Z,{sections:z}))},[d,t.locale,o]),v.useEffect(()=>{let z;s.areValuesEqual(t,R.value,k)?z=s.getTimezone(t,R.value)!==s.getTimezone(t,k):z=!0,z&&y(Z=>j({},Z,{value:k,referenceValue:i.updateReferenceValue(t,k,Z.referenceValue),sections:L(k)}))},[k]),{state:R,activeSectionIndex:A,parsedSelectedSections:M,setSelectedSections:P,clearValue:V,clearActiveSection:q,updateSectionValue:ae,updateValueFromValueStr:re,setTempAndroidValueStr:ie,getSectionsFromValue:L,sectionsValueBoundaries:N,localizedDigits:I,timezone:T}},gS=5e3,wn=e=>e.saveQuery!=null,yS=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Ae(),[a,l]=v.useState(null),c=ue(()=>l(null));v.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),v.useEffect(()=>{if(a!=null){const d=setTimeout(()=>c(),gS);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:p},h,S)=>{const C=d.toLowerCase(),w=e[p];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===p){const T=`${a.value}${C}`,k=h(T,w);if(!wn(k))return l({sectionIndex:p,value:T,sectionType:w.type}),k}const x=h(C,w);return wn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:p,value:C,sectionType:w.type}),wn(x)?null:x)},m=d=>{const p=(C,w,x)=>{const T=w.filter(k=>k.toLowerCase().startsWith(x));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},h=(C,w,x,T)=>{const k=O=>Rc(i,s,w.type,O);if(w.contentType==="letter")return p(w.format,k(w.format),C);if(x&&T!=null&&Dc(i,x).contentType==="letter"){const O=k(x),I=p(x,O,C);return wn(I)?{saveQuery:!1}:j({},I,{sectionValue:T(I.sectionValue,O)})}return{saveQuery:!1}};return u(d,(C,w)=>{switch(w.type){case"month":{const x=T=>ka(i,T,i.formats.month,w.format);return h(C,w,i.formats.month,x)}case"weekDay":{const x=(T,k)=>k.indexOf(T).toString();return h(C,w,i.formats.weekday,x)}case"meridiem":return h(C,w);default:return{saveQuery:!1}}})},f=d=>{const p=(S,C)=>{const w=cn(S,r),x=Number(w),T=n[C.type]({currentDate:null,format:C.format,contentType:C.contentType});if(x>T.maximum)return{saveQuery:!1};if(x<T.minimum)return{saveQuery:!0};const k=x*10>T.maximum||w.length===T.maximum.toString().length;return{sectionValue:Ec(i,x,T,r,C),shouldGoToNextSection:k}};return u(d,(S,C)=>{if(C.contentType==="digit"||C.contentType==="digit-with-letter")return p(S,C);if(C.type==="month"){Oc(i,"digit","month","MM");const w=p(S,{type:C.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wn(w))return w;const x=ka(i,w.sectionValue,"MM",C.format);return j({},w,{sectionValue:x})}if(C.type==="weekDay"){const w=p(S,C);if(wn(w))return w;const x=Eo(i,C.format)[Number(w.sectionValue)-1];return j({},w,{sectionValue:x})}return{saveQuery:!1}},S=>Pa(S,r))};return{applyCharacterEditing:ue(d=>{const p=e[d.sectionIndex],S=Pa(d.keyPressed,r)?f(j({},d,{keyPressed:Xs(d.keyPressed,r)})):m(d);if(S==null){o(null);return}t({activeSection:p,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:c}},bS=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:m,applyCharacterEditing:f,resetCharacterQuery:b,setSelectedSections:d,parsedSelectedSections:p,state:h,clearActiveSection:S,clearValue:C,updateSectionValue:w,updateValueFromValueStr:x,sectionOrder:T,areAllSectionsEmpty:k,sectionsValueBoundaries:O}=e,I=v.useRef(null),N=Pe(r,I),L=Nt(),R=Ae(),y=xt(),[E,D]=v.useState(!1),P=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!I.current)return;const B=document.getSelection();if(!B)return;if(p==null){B.rangeCount>0&&I.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),E&&I.current.getRoot().blur();return}if(!I.current.getRoot().contains(qe(document)))return;const K=new window.Range;let oe;p==="all"?oe=I.current.getRoot():h.sections[p].type==="empty"?oe=I.current.getSectionContainer(p):oe=I.current.getSectionContent(p),K.selectNodeContents(oe),oe.focus(),B.removeAllRanges(),B.addRange(K)},getActiveSectionIndexFromDOM:()=>{const B=qe(document);return!B||!I.current||!I.current.getRoot().contains(B)?null:I.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!I.current||P.getActiveSectionIndexFromDOM()!=null)return;const K=cs(B,h.sections);D(!0),I.current.getSectionContent(K).focus()},setSelectedSections:B=>{if(!I.current)return;const K=cs(B,h.sections);D((K==="all"?0:K)!==null),d(B)},isFieldFocused:()=>{const B=qe(document);return!!I.current&&I.current.getRoot().contains(B)}}),[p,d,h.sections,E]),M=ue(B=>{if(!I.current)return;const K=h.sections[B];I.current.getSectionContent(B).innerHTML=K.value||K.placeholder,P.syncSelectionToDOM()}),A=ue((B,...K)=>{B.isDefaultPrevented()||!I.current||(D(!0),s?.(B,...K),p==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){d(T.startIndex);return}let ne=0,ce=0;for(;ce<oe&&ne<h.sections.length;){const se=h.sections[ne];ne+=1,ce+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}d(ne-1)}):E?I.current.getRoot().contains(B.target)||d(T.startIndex):(D(!0),d(T.startIndex)))}),$=ue(B=>{if(a?.(B),!I.current||p!=="all")return;const oe=B.target.textContent??"";I.current.getRoot().innerHTML=h.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),P.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(b(),C(),d("all")):oe.length>1?x(oe):(p==="all"&&d(0),f({keyPressed:oe,sectionIndex:0}))}),F=ue(B=>{if(l?.(B),n||p!=="all"){B.preventDefault();return}const K=B.clipboardData.getData("text");B.preventDefault(),b(),x(K)}),V=ue((...B)=>{if(i?.(...B),E||!I.current)return;D(!0),I.current.getSectionIndexFromDOMElement(qe(document))!=null||d(T.startIndex)}),q=ue((...B)=>{o?.(...B),setTimeout(()=>{if(!I.current)return;const K=qe(document);!I.current.getRoot().contains(K)&&(D(!1),d(null))})}),re=ue(B=>K=>{K.isDefaultPrevented()||d(B)}),ae=ue(B=>{B.preventDefault()}),ie=ue(B=>()=>{d(B)}),z=ue(B=>{if(B.preventDefault(),n||t||typeof p!="number")return;const K=h.sections[p],oe=B.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(oe),ce=/^[0-9]+$/.test(oe),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);K.contentType==="letter"&&ne||K.contentType==="digit"&&ce||K.contentType==="digit-with-letter"&&se?(b(),w({activeSection:K,newSectionValue:oe,shouldGoToNextSection:!0})):!ne&&!ce&&(b(),x(oe))}),Z=ue(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),X=ue(B=>{if(!I.current)return;const K=B.target,oe=K.textContent??"",ne=I.current.getSectionIndexFromDOMElement(K),ce=h.sections[ne];if(n||!I.current){M(ne);return}if(oe.length===0){if(ce.value===""){M(ne);return}const se=B.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){M(ne);return}b(),S();return}f({keyPressed:oe,sectionIndex:ne}),M(ne)});He(()=>{if(!(!E||!I.current)){if(p==="all")I.current.getRoot().focus();else if(typeof p=="number"){const B=I.current.getSectionContent(p);B&&B.focus()}}},[p,E]);const Y=v.useMemo(()=>h.sections.reduce((B,K)=>(B[K.type]=O[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),B),{}),[O,h.sections]),W=p==="all",G=v.useMemo(()=>h.sections.map((B,K)=>{const oe=!W&&!t&&!n;return{container:{"data-sectionindex":K,onClick:re(K)},content:{tabIndex:W||K>0?-1:0,contentEditable:!W&&!t&&!n,role:"spinbutton",id:`${y}-${B.type}`,"aria-labelledby":`${y}-${B.type}`,"aria-readonly":n,"aria-valuenow":Mg(B,R),"aria-valuemin":Y[B.type].minimum,"aria-valuemax":Y[B.type].maximum,"aria-valuetext":B.value?kg(B,R):L.empty,"aria-label":L[B.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:B.value||B.placeholder,onInput:X,onPaste:z,onFocus:ie(K),onDragOver:Z,onMouseUp:ae,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[h.sections,ie,z,Z,X,re,ae,t,n,W,L,R,Y,y]),te=ue(B=>{x(B.target.value)}),J=v.useMemo(()=>k?"":m.getV7HiddenInputValueFromSections(h.sections),[k,h.sections,m]);return v.useEffect(()=>{if(I.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(`
134
+ `));u&&I.current&&I.current.getSectionContent(T.startIndex).focus()},[]),{interactions:P,returnedValue:{autoFocus:u,readOnly:n,focused:c??E,sectionListRef:N,onBlur:q,onClick:A,onFocus:V,onInput:$,onPaste:F,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:p===0?-1:0,contentEditable:W,value:J,onChange:te,areAllSectionsEmpty:k}}},Mn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vS=(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=Qs(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Mn(c).length,m=c.length,f=Mn(l),b=o+(f===""?0:l.indexOf(f[0]))+a.startSeparator.length,d=b+f.length;s.push(j({},a,{start:r,end:r+u,startInInput:b,endInInput:d})),r+=u,o+=m}return s},xS=e=>{const t=vt(),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:m=!1},parsedSelectedSections:f,activeSectionIndex:b,state:d,fieldValueManager:p,valueManager:h,applyCharacterEditing:S,resetCharacterQuery:C,updateSectionValue:w,updateValueFromValueStr:x,clearActiveSection:T,clearValue:k,setTempAndroidValueStr:O,setSelectedSections:I,getSectionsFromValue:N,areAllSectionsEmpty:L,localizedDigits:R}=e,y=v.useRef(null),E=Pe(l,y),D=v.useMemo(()=>vS(d.sections,R,t),[d.sections,R,t]),P=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(f==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==qe(document))return;const X=y.current.scrollTop;if(f==="all")y.current.select();else{const Y=D[f],W=Y.type==="empty"?Y.startInInput-Y.startSeparator.length:Y.startInInput,G=Y.type==="empty"?Y.endInInput+Y.endSeparator.length:Y.endInInput;(W!==y.current.selectionStart||G!==y.current.selectionEnd)&&y.current===qe(document)&&y.current.setSelectionRange(W,G),clearTimeout(r.current),r.current=setTimeout(()=>{y.current&&y.current===qe(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==W||y.current.selectionEnd!==G)&&P.syncSelectionToDOM()})}y.current.scrollTop=X},getActiveSectionIndexFromDOM:()=>{const X=y.current.selectionStart??0,Y=y.current.selectionEnd??0;if(X===0&&Y===0)return null;const W=X<=D[0].startInInput?1:D.findIndex(G=>G.startInInput-G.startSeparator.length>X);return W===-1?D.length-1:W-1},focusField:(X=0)=>{qe(document)!==y.current&&(y.current?.focus(),I(X))},setSelectedSections:X=>I(X),isFieldFocused:()=>y.current===qe(document)}),[y,f,D,I]),M=()=>{const X=y.current.selectionStart??0;let Y;X<=D[0].startInInput||X>=D[D.length-1].endInInput?Y=1:Y=D.findIndex(G=>G.startInInput-G.startSeparator.length>X);const W=Y===-1?D.length-1:Y-1;I(W)},A=ue((...X)=>{o?.(...X);const Y=y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!Y||Y!==y.current||b==null&&(Y.value.length&&Number(Y.selectionEnd)-Number(Y.selectionStart)===Y.value.length?I("all"):M())})}),$=ue((X,...Y)=>{X.isDefaultPrevented()||(s?.(X,...Y),M())}),F=ue(X=>{if(i?.(X),X.preventDefault(),u||m)return;const Y=X.clipboardData.getData("text");if(typeof f=="number"){const W=d.sections[f],G=/^[a-zA-Z]+$/.test(Y),te=/^[0-9]+$/.test(Y),J=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Y);if(W.contentType==="letter"&&G||W.contentType==="digit"&&te||W.contentType==="digit-with-letter"&&J){C(),w({activeSection:W,newSectionValue:Y,shouldGoToNextSection:!0});return}if(G||te)return}C(),x(Y)}),V=ue((...X)=>{a?.(...X),I(null)}),q=ue(X=>{if(u)return;const Y=X.target.value;if(Y===""){C(),k();return}const W=X.nativeEvent.data,G=W&&W.length>1,te=G?W:Y,J=Mn(te);if(f==="all"&&I(b),b==null||G){x(G?W:J);return}let B;if(f==="all"&&J.length===1)B=J;else{const K=Mn(p.getV6InputValueFromSections(D,R,t));let oe=-1,ne=-1;for(let be=0;be<K.length;be+=1)oe===-1&&K[be]!==J[be]&&(oe=be),ne===-1&&K[K.length-be-1]!==J[J.length-be-1]&&(ne=be);const ce=D[b];if(oe<ce.start||K.length-ne-1>ce.end)return;const fe=J.length-K.length+ce.end-Mn(ce.endSeparator||"").length;B=J.slice(ce.start+Mn(ce.startSeparator||"").length,fe)}if(B.length===0){Cg()&&O(te),C(),T();return}S({keyPressed:B,sectionIndex:b})}),re=v.useMemo(()=>c!==void 0?c:p.getV6InputValueFromSections(N(h.emptyValue),R,t),[c,p,N,h.emptyValue,R,t]),ae=v.useMemo(()=>d.tempValueStrAndroid??p.getV6InputValueFromSections(d.sections,R,t),[d.sections,p,d.tempValueStrAndroid,R,t]);v.useEffect(()=>(y.current&&y.current===qe(document)&&I("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ie=v.useMemo(()=>b==null||d.sections[b].contentType==="letter"?"text":"numeric",[b,d.sections]),Z=!(y.current&&y.current===qe(document))&&L;return{interactions:P,returnedValue:{readOnly:u,onBlur:V,onClick:$,onFocus:A,onPaste:F,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:re,inputMode:ie,autoComplete:"off",value:Z?"":ae,onChange:q}}},SS=e=>{const t=Ae(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:m},fieldValueManager:f,valueManager:b,validator:d}=e,p=vt(),h=hS(e),{state:S,activeSectionIndex:C,parsedSelectedSections:w,setSelectedSections:x,clearValue:T,clearActiveSection:k,updateSectionValue:O,setTempAndroidValueStr:I,sectionsValueBoundaries:N,localizedDigits:L,timezone:R}=h,y=yS({sections:S.sections,updateSectionValue:O,sectionsValueBoundaries:N,localizedDigits:L,setTempAndroidValueStr:I,timezone:R}),{resetCharacterQuery:E}=y,D=b.areValuesEqual(t,S.value,b.emptyValue),P=s?bS:xS,M=v.useMemo(()=>Pg(S.sections,p&&!s),[S.sections,p,s]),{returnedValue:A,interactions:$}=P(j({},e,h,y,{areAllSectionsEmpty:D,sectionOrder:M})),F=ue(z=>{if(l?.(z),!i)switch(!0){case((z.ctrlKey||z.metaKey)&&String.fromCharCode(z.keyCode)==="A"&&!z.shiftKey&&!z.altKey):{z.preventDefault(),x("all");break}case z.key==="ArrowRight":{if(z.preventDefault(),w==null)x(M.startIndex);else if(w==="all")x(M.endIndex);else{const Z=M.neighbors[w].rightIndex;Z!==null&&x(Z)}break}case z.key==="ArrowLeft":{if(z.preventDefault(),w==null)x(M.endIndex);else if(w==="all")x(M.startIndex);else{const Z=M.neighbors[w].leftIndex;Z!==null&&x(Z)}break}case z.key==="Delete":{if(z.preventDefault(),a)break;w==null||w==="all"?T():k(),E();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(z.key):{if(z.preventDefault(),a||C==null)break;w==="all"&&x(C);const Z=S.sections[C],X=f.getActiveDateManager(t,S,Z),Y=gg(t,R,Z,z.key,N,L,X.date,{minutesStep:o});O({activeSection:Z,newSectionValue:Y,shouldGoToNextSection:!1});break}}});He(()=>{$.syncSelectionToDOM()});const{hasValidationError:V}=jc({props:n,validator:d,timezone:R,value:S.value,onError:n.onError}),q=v.useMemo(()=>c!==void 0?c:V,[V,c]);v.useEffect(()=>{!q&&C==null&&E()},[S.referenceValue,C,q]),v.useEffect(()=>{S.tempValueStrAndroid!=null&&C!=null&&(E(),k())},[S.sections]),v.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:$.getActiveSectionIndexFromDOM,setSelectedSections:$.setSelectedSections,focusField:$.focusField,isFieldFocused:$.isFieldFocused}));const re=ue((z,...Z)=>{z.preventDefault(),m?.(z,...Z),T(),$.isFieldFocused()?x(M.startIndex):$.focusField(0)}),ae={onKeyDown:F,onClear:re,error:q,clearable:!!(u&&!D&&!a&&!i)},ie={disabled:i,readOnly:a};return j({},e.forwardedProps,ae,ie,A)},wS=["clearable","onClear","InputProps","sx","slots","slotProps"],CS=["ownerState"],PS=e=>{const t=Nt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,wS),c=i?.clearButton??Ir,u=Ce({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),m=ve(u,CS),f=i?.clearIcon??$x,b=Ce({elementType:f,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:g.jsxs(v.Fragment,{children:[n&&g.jsx(Bc,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:g.jsx(c,j({},m,{onClick:r,children:g.jsx(f,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]]})},kS=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],MS=(e,t)=>v.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return kS.forEach(o),Lc.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),TS=e=>{const t=Ae(),n=Tr();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:lt(t,e.minDate,n.minDate),maxDate:lt(t,e.maxDate,n.maxDate)})},DS=e=>{const t=TS(e),{forwardedProps:n,internalProps:r}=MS(t,"date");return SS({forwardedProps:n,internalProps:r,valueManager:Dt,fieldValueManager:Dg,validator:Dr,valueType:"date"})};function RS(e){return ge("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function IS(e){return ge("MuiPickersInputBase",e)}const En=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function ES(e){return ge("MuiPickersSectionList",e)}const Xn=me("MuiPickersSectionList",["root","section","sectionContent"]),OS=["slots","slotProps","elements","sectionListRef"],xu=U("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Su=U("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),wu=U("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Cu=U("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),$S=e=>{const{classes:t}=e;return he({root:["root"],section:["section"],sectionContent:["sectionContent"]},ES,t)};function AS(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Su,i=Ce({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Cu,l=Ce({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??wu,u=Ce({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),m=Ce({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return g.jsxs(s,j({},i,{children:[g.jsx(c,j({},u)),g.jsx(a,j({},l)),g.jsx(c,j({},m))]}))}const FS=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,OS),c=$S(r),u=v.useRef(null),m=Pe(n,u),f=p=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${p} before the mount of the component.`);return u.current};v.useImperativeHandle(a,()=>({getRoot(){return f("getRoot")},getSectionContainer(p){return f("getSectionContainer").querySelector(`.${Xn.section}[data-sectionindex="${p}"]`)},getSectionContent(p){return f("getSectionContent").querySelector(`.${Xn.section}[data-sectionindex="${p}"] .${Xn.sectionContent}`)},getSectionIndexFromDOMElement(p){const h=f("getSectionIndexFromDOMElement");if(p==null||!h.contains(p))return null;let S=null;return p.classList.contains(Xn.section)?S=p:p.classList.contains(Xn.sectionContent)&&(S=p.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const b=o?.root??xu,d=Ce({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return g.jsx(b,j({},d,{children:d.contentEditable?i.map(({content:p,before:h,after:S})=>`${h.children}${p.children}${S.children}`).join(""):g.jsx(v.Fragment,{children:i.map((p,h)=>g.jsx(AS,{slots:o,slotProps:s,element:p,classes:c},h))})}))}),LS=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],NS=e=>Math.round(e*1e5)/1e5,zo=U("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:`${NS(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Si=U(xu,{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}}]})),jS=U(Su,{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"})),BS=U(Cu,{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"})),VS=U(wu,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),zS=U("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},ng)),_S=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,m={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${le(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return he(m,IS,o)},wi=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:m,slots:f,slotProps:b,contentEditable:d,tabIndex:p,onInput:h,onPaste:S,onKeyDown:C,name:w,readOnly:x,inputProps:T,inputRef:k,sectionListRef:O}=r,I=ve(r,LS),N=v.useRef(null),L=Pe(n,N),R=Pe(T?.ref,k),y=vt(),E=ft();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=V=>{if(E.disabled){V.stopPropagation();return}E.onFocus?.(V)};v.useEffect(()=>{E&&E.setAdornedStart(!!u)},[E,u]),v.useEffect(()=>{E&&(s?E.onEmpty():E.onFilled())},[E,s]);const P=j({},r,E,{isRtl:y}),M=_S(P),A=f?.root||zo,$=Ce({elementType:A,externalSlotProps:b?.root,externalForwardedProps:I,additionalProps:{"aria-invalid":E.error,ref:L},className:M.root,ownerState:P}),F=f?.input||Si;return g.jsxs(A,j({},$,{children:[u,g.jsx(FS,{sectionListRef:O,elements:o,contentEditable:d,tabIndex:p,className:M.sectionsContainer,onFocus:D,onBlur:E.onBlur,onInput:h,onPaste:S,onKeyDown:C,slots:{root:F,section:jS,sectionContent:BS,sectionSeparator:VS},slotProps:{root:{ownerState:P},sectionContent:{className:En.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?En.sectionBefore:En.sectionAfter})}}),c,m?m(j({},E)):null,g.jsx(zS,j({name:w,className:M.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:E.required,disabled:E.disabled},T,{ref:R}))]}))});function WS(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},En,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),HS=["children","className","label","notched","shrink"],US=U("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}}),dl=U("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),YS=U("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 GS(e){const{className:t,label:n}=e,r=ve(e,HS),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return g.jsx(US,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:g.jsx(YS,{ownerState:s,children:o?g.jsx(dl,{children:n}):g.jsx(dl,{className:"notranslate",children:"​"})})}))}const KS=["label","autoFocus","ownerState","notched"],qS=U(zo,{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 .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${yt.focused} .${yt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${yt.disabled}`]:{[`& .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${yt.error} .${yt.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:{[`&.${yt.focused}:not(.${yt.error}) .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),XS=U(Si,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),QS=e=>{const{classes:t}=e,r=he({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},WS,t);return j({},t,r)},Pu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,KS),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=QS(c);return g.jsx(wi,j({slots:{root:qS,input:XS},renderSuffix:m=>g.jsx(GS,{shrink:!!(i||m.adornedStart||m.focused||m.filled),notched:!!(i||m.adornedStart||m.focused||m.filled),className:u.notchedOutline,label:o!=null&&o!==""&&l?.required?g.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Pu.muiName="Input";function ZS(e){return ge("MuiPickersFilledInput",e)}const Zt=j({},En,me("MuiPickersFilledInput",["root","underline","input"])),JS=["label","autoFocus","disableUnderline","ownerState"],ew=U(zo,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>We.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}},[`&.${Zt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Zt.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"},[`&.${Zt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zt.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(.${Zt.disabled}, .${Zt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zt.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),tw=U(Si,{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}}]}),nw=e=>{const{classes:t,disableUnderline:n}=e,o=he({root:["root",!n&&"underline"],input:["input"]},ZS,t);return j({},t,o)},ku=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,JS),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=nw(c);return g.jsx(wi,j({slots:{root:ew,input:tw},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});ku.muiName="Input";function rw(e){return ge("MuiPickersFilledInput",e)}const Qn=j({},En,me("MuiPickersInput",["root","input"])),ow=["label","autoFocus","disableUnderline","ownerState"],sw=U(zo,{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"},[`&.${Qn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qn.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(.${Qn.disabled}, .${Qn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Qn.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),iw=e=>{const{classes:t,disableUnderline:n}=e,o=he({root:["root",!n&&"underline"],input:["input"]},rw,t);return j({},t,o)},Mu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,ow),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=iw(c);return g.jsx(wi,j({slots:{root:sw}},a,{label:o,classes:u,ref:n}))});Mu.muiName="Input";const aw=["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"],lw={standard:Mu,filled:ku,outlined:Pu},cw=U(yi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),uw=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return he({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},RS,r)},dw=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:m=!1,InputProps:f,inputProps:b,inputRef:d,sectionListRef:p,elements:h,areAllSectionsEmpty:S,onClick:C,onKeyDown:w,onKeyUp:x,onPaste:T,onInput:k,endAdornment:O,startAdornment:I,tabIndex:N,contentEditable:L,focused:R,value:y,onChange:E,fullWidth:D,id:P,name:M,helperText:A,FormHelperTextProps:$,label:F,InputLabelProps:V}=r,q=ve(r,aw),re=v.useRef(null),ae=Pe(n,re),ie=xt(P),z=A&&ie?`${ie}-helper-text`:void 0,Z=F&&ie?`${ie}-label`:void 0,X=j({},r,{color:a,disabled:l,error:c,focused:R,required:m,variant:u}),Y=uw(X),W=lw[u];return g.jsxs(cw,j({className:de(Y.root,i),ref:ae,focused:R,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:m,ownerState:X},q,{children:[g.jsx(gi,j({htmlFor:ie,id:Z},V,{children:F})),g.jsx(W,j({elements:h,areAllSectionsEmpty:S,onClick:C,onKeyDown:w,onKeyUp:x,onInput:k,onPaste:T,endAdornment:O,startAdornment:I,tabIndex:N,contentEditable:L,value:y,onChange:E,id:ie,fullWidth:D,inputProps:b,inputRef:d,sectionListRef:p,label:F,name:M,role:"group","aria-labelledby":Z,"aria-describedby":z,"aria-live":z?"polite":void 0},f)),A&&g.jsx(uu,j({id:z},$,{children:A}))]}))}),pw=["enableAccessibleFieldDOMStructure"],fw=["InputProps","readOnly"],mw=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],hw=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,pw);if(t){const{InputProps:m,readOnly:f}=n,b=ve(n,fw);return j({},b,{InputProps:j({},m??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,mw);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},gw=["slots","slotProps","InputProps","inputProps"],Tu=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,gw),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?dw:vu),m=Ce({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});m.inputProps=j({},a,m.inputProps),m.InputProps=j({},i,m.InputProps);const f=DS(m),b=hw(f),d=PS(j({},b,{slots:o,slotProps:s}));return g.jsx(u,j({},d))}),Du=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=mn();return v.useCallback(c=>Dr({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])},yw=(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")}},bw=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:m}=e,f=Ae(),b=v.useRef(yw(!!c,s,f)).current,d=v.useMemo(()=>Dt.getInitialReferenceValue({value:t,utils:f,timezone:m,props:e,referenceDate:n,granularity:Pt.day}),[n,m]),[p,h]=v.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:d,currentMonth:f.startOfMonth(d),slideDirection:"left"});v.useEffect(()=>{h({type:"changeMonthTimezone",newTimezone:f.getTimezone(d)})},[d,f]);const S=v.useCallback(k=>{h(j({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),C=v.useCallback(k=>{const O=k;f.isSameMonth(O,p.currentMonth)||S({newMonth:f.startOfMonth(O),direction:f.isAfterDay(O,p.currentMonth)?"left":"right"})},[p.currentMonth,S,f]),w=Du({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:m}),x=v.useCallback(()=>{h({type:"finishMonthSwitchingAnimation"})},[]),T=ue((k,O)=>{w(k)||h({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:O})});return{referenceDate:d,calendarState:p,changeMonth:C,changeFocusedDay:T,isDateDisabled:w,onMonthSwitchingAnimationEnd:x,handleChangeMonth:S}},vw=e=>ge("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const xw=e=>{const{classes:t}=e;return he({root:["root"]},vw,t)},Sw=U(Rr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Ru(e){const t=$e({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=xw(t),a=fn();return o?n:g.jsx(Sw,{className:de(i.root,r),children:g.jsx(un,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function ww(e){return ge("MuiPickersDay",e)}const Jt=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Cw=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Pw=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return he({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ww,l)},Iu=({theme:e})=>j({},e.typography.caption,{width:vr,height:vr,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})`:We.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:We.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Jt.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Jt.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}},[`&.${Jt.disabled}:not(.${Jt.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jt.disabled}&.${Jt.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Fo}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Jt.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Eu=(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]},kw=U(Fn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Eu})(Iu),Mw=U("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Eu})(({theme:e})=>j({},Iu({theme:e}),{opacity:0,pointerEvents:"none"})),Zn=()=>{},Tw=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:m,onDaySelect:f,onFocus:b=Zn,onBlur:d=Zn,onKeyDown:p=Zn,onMouseDown:h=Zn,onMouseEnter:S=Zn,outsideCurrentMonth:C,selected:w=!1,showDaysOutsideCurrentMonth:x=!1,children:T,today:k=!1}=r,O=ve(r,Cw),I=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:x,today:k}),N=Pw(I),L=Ae(),R=v.useRef(null),y=Pe(R,n);He(()=>{o&&!a&&!u&&!C&&R.current.focus()},[o,a,u,C]);const E=P=>{h(P),C&&P.preventDefault()},D=P=>{a||f(i),C&&P.currentTarget.focus(),m&&m(P)};return C&&!x?g.jsx(Mw,{className:de(N.root,N.hiddenDaySpacingFiller,s),ownerState:I,role:O.role}):g.jsx(kw,j({className:de(N.root,s),ref:y,centerRipple:!0,disabled:a,tabIndex:w?0:-1,onKeyDown:P=>p(P,i),onFocus:P=>b(P,i),onBlur:P=>d(P,i),onMouseEnter:P=>S(P,i),onClick:D,onMouseDown:E},O,{ownerState:I,children:T||L.format(i,"dayOfMonth")}))}),Dw=v.memo(Tw),Rw=e=>ge("MuiPickersSlideTransition",e),ot=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Iw=["children","className","reduceAnimations","slideDirection","transKey","classes"],Ew=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return he(r,Rw,t)},Ow=U(Rr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ot["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ot["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ot.slideEnterActive}`]:t.slideEnterActive},{[`.${ot.slideExit}`]:t.slideExit},{[`.${ot["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ot["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},[`& .${ot["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ot["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ot.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ot.slideExit}`]:{transform:"translate(0%)"},[`& .${ot["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ot["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function $w(e){const t=$e({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,Iw),a=Ew(t),l=fn();if(o)return g.jsx("div",{className:de(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return g.jsx(Ow,{className:de(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:g.jsx(Js,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const Aw=e=>ge("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Fw=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Lw=["ownerState"],Nw=e=>{const{classes:t}=e;return he({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Aw,t)},Ou=(vr+Fo*2)*6,jw=U("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bw=U("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Vw=U(Gt,{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})),zw=U(Gt,{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})),_w=U(Gt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:vr,height:vr,padding:0,margin:`0 ${Fo}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Ww=U("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ou}),Hw=U($w,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ou}),Uw=U("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Yw=U("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Fo}px 0`,display:"flex",justifyContent:"center"});function Gw(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,Fw);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:f,slots:b,slotProps:d,timezone:p}=t,h=Ae(),S=Oo(p),C=r!==null&&h.isSameDay(n,r),w=o.some(y=>h.isSameDay(y,n)),x=h.isSameDay(n,S),T=b?.day??Dw,k=Ce({elementType:T,externalSlotProps:d?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:m,"data-timestamp":h.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:w})}),O=ve(k,Lw),I=v.useMemo(()=>c||s(n),[c,s,n]),N=v.useMemo(()=>h.getMonth(n)!==i,[h,n,i]),L=v.useMemo(()=>{const y=h.startOfMonth(h.setMonth(n,i));return f?h.isSameDay(n,h.startOfWeek(y)):h.isSameDay(n,y)},[i,n,f,h]),R=v.useMemo(()=>{const y=h.endOfMonth(h.setMonth(n,i));return f?h.isSameDay(n,h.endOfWeek(y)):h.isSameDay(n,y)},[i,n,f,h]);return g.jsx(T,j({},O,{day:n,disabled:I,autoFocus:a&&C,today:x,outsideCurrentMonth:N,isFirstVisibleCell:L,isLastVisibleCell:R,selected:w,tabIndex:C?0:-1,"aria-selected":w,"aria-current":x?"date":void 0}))}function Kw(e){const t=$e({props:e,name:"MuiDayCalendar"}),n=Ae(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:m,reduceAnimations:f,renderLoading:b=()=>g.jsx("span",{children:"..."}),slideDirection:d,TransitionProps:p,disablePast:h,disableFuture:S,minDate:C,maxDate:w,shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:k,dayOfWeekFormatter:O=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:I,onFocusedViewChange:N,gridLabelId:L,displayWeekNumber:R,fixedWeekNumber:y,autoFocus:E,timezone:D}=t,P=Oo(D),M=Nw(t),A=vt(),$=Du({shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:k,minDate:C,maxDate:w,disablePast:h,disableFuture:S,timezone:D}),F=Nt(),[V,q]=Tt({name:"DayCalendar",state:"hasFocus",controlled:I,default:E??!1}),[re,ae]=v.useState(()=>a||P),ie=ue(ne=>{m||c(ne)}),z=ne=>{$(ne)||(r(ne),ae(ne),N?.(!0),q(!0))},Z=ue((ne,ce)=>{switch(ne.key){case"ArrowUp":z(n.addDays(ce,-7)),ne.preventDefault();break;case"ArrowDown":z(n.addDays(ce,7)),ne.preventDefault();break;case"ArrowLeft":{const se=n.addDays(ce,A?1:-1),fe=n.addMonths(ce,A?1:-1),be=ar({utils:n,date:se,minDate:A?se:n.startOfMonth(fe),maxDate:A?n.endOfMonth(fe):se,isDateDisabled:$,timezone:D});z(be||se),ne.preventDefault();break}case"ArrowRight":{const se=n.addDays(ce,A?-1:1),fe=n.addMonths(ce,A?-1:1),be=ar({utils:n,date:se,minDate:A?n.startOfMonth(fe):se,maxDate:A?se:n.endOfMonth(fe),isDateDisabled:$,timezone:D});z(be||se),ne.preventDefault();break}case"Home":z(n.startOfWeek(ce)),ne.preventDefault();break;case"End":z(n.endOfWeek(ce)),ne.preventDefault();break;case"PageUp":z(n.addMonths(ce,1)),ne.preventDefault();break;case"PageDown":z(n.addMonths(ce,-1)),ne.preventDefault();break}}),X=ue((ne,ce)=>z(ce)),Y=ue((ne,ce)=>{V&&n.isSameDay(re,ce)&&N?.(!1)}),W=n.getMonth(s),G=n.getYear(s),te=v.useMemo(()=>i.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,i]),J=`${G}-${W}`,B=v.useMemo(()=>v.createRef(),[J]),K=v.useMemo(()=>{const ne=n.startOfMonth(s),ce=n.endOfMonth(s);return $(re)||n.isAfterDay(re,ce)||n.isBeforeDay(re,ne)?ar({utils:n,date:re,minDate:ne,maxDate:ce,disablePast:h,disableFuture:S,isDateDisabled:$,timezone:D}):re},[s,S,h,re,$,n,D]),oe=v.useMemo(()=>{const ne=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;y&&ne.length<y;){const se=n.getWeekArray(ce),fe=n.isSameDay(ne[ne.length-1][0],se[0][0]);se.slice(fe?1:0).forEach(be=>{ne.length<y&&ne.push(be)}),ce=n.addMonths(ce,1)}return ne},[s,y,n]);return g.jsxs(jw,{role:"grid","aria-labelledby":L,className:M.root,children:[g.jsxs(Bw,{role:"row",className:M.header,children:[R&&g.jsx(zw,{variant:"caption",role:"columnheader","aria-label":F.calendarWeekNumberHeaderLabel,className:M.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),ag(n,P).map((ne,ce)=>g.jsx(Vw,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:M.weekDayLabel,children:O(ne)},ce.toString()))]}),l?g.jsx(Ww,{className:M.loadingContainer,children:b()}):g.jsx(Hw,j({transKey:J,onExited:u,reduceAnimations:f,slideDirection:d,className:de(o,M.slideTransition)},p,{nodeRef:B,children:g.jsx(Uw,{ref:B,role:"rowgroup",className:M.monthContainer,children:oe.map((ne,ce)=>g.jsxs(Yw,{role:"row",className:M.weekContainer,"aria-rowindex":ce+1,children:[R&&g.jsx(_w,{className:M.weekNumber,role:"rowheader","aria-label":F.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:F.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((se,fe)=>g.jsx(Gw,{parentProps:t,day:se,selectedDays:te,focusableDay:K,onKeyDown:Z,onFocus:X,onBlur:Y,onDaySelect:ie,isDateDisabled:$,currentMonthNumber:W,isViewFocused:V,"aria-colindex":fe+1},se.toString()))]},`week-${ne[0]}`))})}))]})}function qw(e){return ge("MuiPickersMonth",e)}const Vr=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),Xw=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Qw=e=>{const{disabled:t,selected:n,classes:r}=e;return he({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},qw,r)},Zw=U("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%"}}]}),Jw=U("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Vr.disabled}`]:t.disabled},{[`&.${Vr.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})`:We.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Vr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),eC=v.memo(function(t){const n=$e({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:m,onFocus:f,onBlur:b,"aria-current":d,"aria-label":p,slots:h,slotProps:S}=n,C=ve(n,Xw),w=v.useRef(null),x=Qw(n);He(()=>{r&&w.current?.focus()},[r]);const T=h?.monthButton??Jw,k=Ce({elementType:T,externalSlotProps:S?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":d,"aria-checked":a,"aria-label":p,onClick:O=>u(O,l),onKeyDown:O=>m(O,l),onFocus:O=>f(O,l),onBlur:O=>b(O,l)},ownerState:n,className:x.monthButton});return g.jsx(Zw,j({className:de(x.root,o),ownerState:n},C,{children:g.jsx(T,j({},k))}))});function tC(e){return ge("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const nC=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],rC=e=>{const{classes:t}=e;return he({root:["root"]},tC,t)};function oC(e,t){const n=Ae(),r=Tr(),o=$e({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const sC=U("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Lo,boxSizing:"border-box"}),iC=v.forwardRef(function(t,n){const r=oC(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:m,minDate:f,onChange:b,shouldDisableMonth:d,readOnly:p,autoFocus:h=!1,onMonthFocus:S,hasFocus:C,onFocusedViewChange:w,monthsPerRow:x=3,timezone:T,gridLabelId:k,slots:O,slotProps:I}=r,N=ve(r,nC),{value:L,handleValueChange:R,timezone:y}=ui({name:"MonthCalendar",timezone:T,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Dt}),E=Oo(y),D=vt(),P=Ae(),M=v.useMemo(()=>Dt.getInitialReferenceValue({value:L,utils:P,props:r,timezone:y,referenceDate:a,granularity:Pt.month}),[]),A=r,$=rC(A),F=v.useMemo(()=>P.getMonth(E),[P,E]),V=v.useMemo(()=>L!=null?P.getMonth(L):null,[L,P]),[q,re]=v.useState(()=>V||P.getMonth(M)),[ae,ie]=Tt({name:"MonthCalendar",state:"hasFocus",controlled:C,default:h??!1}),z=ue(J=>{ie(J),w&&w(J)}),Z=v.useCallback(J=>{const B=P.startOfMonth(u&&P.isAfter(E,f)?E:f),K=P.startOfMonth(c&&P.isBefore(E,m)?E:m),oe=P.startOfMonth(J);return P.isBefore(oe,B)||P.isAfter(oe,K)?!0:d?d(oe):!1},[c,u,m,f,E,d,P]),X=ue((J,B)=>{if(p)return;const K=P.setMonth(L??M,B);R(K)}),Y=ue(J=>{Z(P.setMonth(L??M,J))||(re(J),z(!0),S&&S(J))});v.useEffect(()=>{re(J=>V!==null&&J!==V?V:J)},[V]);const W=ue((J,B)=>{switch(J.key){case"ArrowUp":Y((12+B-3)%12),J.preventDefault();break;case"ArrowDown":Y((12+B+3)%12),J.preventDefault();break;case"ArrowLeft":Y((12+B+(D?1:-1))%12),J.preventDefault();break;case"ArrowRight":Y((12+B+(D?-1:1))%12),J.preventDefault();break}}),G=ue((J,B)=>{Y(B)}),te=ue((J,B)=>{q===B&&z(!1)});return g.jsx(sC,j({ref:n,className:de($.root,o),ownerState:A,role:"radiogroup","aria-labelledby":k},N,{children:Ks(P,L??M).map(J=>{const B=P.getMonth(J),K=P.format(J,"monthShort"),oe=P.format(J,"month"),ne=B===V,ce=l||Z(J);return g.jsx(eC,{selected:ne,value:B,onClick:X,onKeyDown:W,autoFocus:ae&&B===q,disabled:ce,tabIndex:B===q&&!ce?0:-1,onFocus:G,onBlur:te,"aria-current":F===B?"date":void 0,"aria-label":oe,monthsPerRow:x,slots:O,slotProps:I,children:K},K)})}))});function aC(e){return ge("MuiPickersYear",e)}const zr=me("MuiPickersYear",["root","yearButton","selected","disabled"]),lC=["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 he({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},aC,r)},uC=U("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%"}}]}),dC=U("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${zr.disabled}`]:t.disabled},{[`&.${zr.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})`:We.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${zr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${zr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pC=v.memo(function(t){const n=$e({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:m,onFocus:f,onBlur:b,"aria-current":d,slots:p,slotProps:h}=n,S=ve(n,lC),C=v.useRef(null),w=cC(n);He(()=>{r&&C.current?.focus()},[r]);const x=p?.yearButton??dC,T=Ce({elementType:x,externalSlotProps:h?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":d,"aria-checked":a,onClick:k=>u(k,l),onKeyDown:k=>m(k,l),onFocus:k=>f(k,l),onBlur:k=>b(k,l)},ownerState:n,className:w.yearButton});return g.jsx(uC,j({className:de(w.root,o),ownerState:n},S,{children:g.jsx(x,j({},T))}))});function fC(e){return ge("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const mC=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],hC=e=>{const{classes:t}=e;return he({root:["root"]},fC,t)};function gC(e,t){const n=Ae(),r=Tr(),o=$e({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const yC=U("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Lo,maxHeight:mx,boxSizing:"border-box",position:"relative"}),bC=v.forwardRef(function(t,n){const r=gC(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:m,maxDate:f,minDate:b,onChange:d,readOnly:p,shouldDisableYear:h,onYearFocus:S,hasFocus:C,onFocusedViewChange:w,yearsOrder:x="asc",yearsPerRow:T,timezone:k,gridLabelId:O,slots:I,slotProps:N}=r,L=ve(r,mC),{value:R,handleValueChange:y,timezone:E}=ui({name:"YearCalendar",timezone:k,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Dt}),D=Oo(E),P=vt(),M=Ae(),A=v.useMemo(()=>Dt.getInitialReferenceValue({value:R,utils:M,props:r,timezone:E,referenceDate:l,granularity:Pt.year}),[]),$=r,F=hC($),V=v.useMemo(()=>M.getYear(D),[M,D]),q=v.useMemo(()=>R!=null?M.getYear(R):null,[R,M]),[re,ae]=v.useState(()=>q||M.getYear(A)),[ie,z]=Tt({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),Z=ue(se=>{z(se),w&&w(se)}),X=v.useCallback(se=>{if(m&&M.isBeforeYear(se,D)||u&&M.isAfterYear(se,D)||b&&M.isBeforeYear(se,b)||f&&M.isAfterYear(se,f))return!0;if(!h)return!1;const fe=M.startOfYear(se);return h(fe)},[u,m,f,b,D,h,M]),Y=ue((se,fe)=>{if(p)return;const be=M.setYear(R??A,fe);y(be)}),W=ue(se=>{X(M.setYear(R??A,se))||(ae(se),Z(!0),S?.(se))});v.useEffect(()=>{ae(se=>q!==null&&se!==q?q:se)},[q]);const G=x!=="desc"?T*1:T*-1,te=P&&x==="asc"||!P&&x==="desc"?-1:1,J=ue((se,fe)=>{switch(se.key){case"ArrowUp":W(fe-G),se.preventDefault();break;case"ArrowDown":W(fe+G),se.preventDefault();break;case"ArrowLeft":W(fe-te),se.preventDefault();break;case"ArrowRight":W(fe+te),se.preventDefault();break}}),B=ue((se,fe)=>{W(fe)}),K=ue((se,fe)=>{re===fe&&Z(!1)}),oe=v.useRef(null),ne=Pe(n,oe);v.useEffect(()=>{if(o||oe.current===null)return;const se=oe.current.querySelector('[tabindex="0"]');if(!se)return;const fe=se.offsetHeight,be=se.offsetTop,Se=oe.current.clientHeight,pe=oe.current.scrollTop,Ke=be+fe;fe>Se||be<pe||(oe.current.scrollTop=Ke-Se/2-fe/2)},[o]);const ce=M.getYearRange([b,f]);return x==="desc"&&ce.reverse(),g.jsx(yC,j({ref:ne,className:de(F.root,s),ownerState:$,role:"radiogroup","aria-labelledby":O},L,{children:ce.map(se=>{const fe=M.getYear(se),be=fe===q,Se=c||X(se);return g.jsx(pC,{selected:be,value:fe,onClick:Y,onKeyDown:J,autoFocus:ie&&fe===re,disabled:Se,tabIndex:fe===re&&!Se?0:-1,onFocus:B,onBlur:K,"aria-current":V===fe?"date":void 0,yearsPerRow:T,slots:I,slotProps:N,children:M.format(se,"year")},M.format(se,"year"))})}))}),vC=e=>ge("MuiPickersCalendarHeader",e),xC=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function SC(e){return ge("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const wC=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],CC=["ownerState"],PC=["ownerState"],kC=U("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),MC=U("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),pl=U(Ir,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),TC=e=>{const{classes:t}=e;return he({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},SC,t)},DC=v.forwardRef(function(t,n){const r=vt(),o=$e({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:m,nextLabel:f,isPreviousDisabled:b,isPreviousHidden:d,onGoToPrevious:p,previousLabel:h,labelId:S}=o,C=ve(o,wC),w=o,x=TC(w),T={isDisabled:c,isHidden:u,goTo:m,label:f},k={isDisabled:b,isHidden:d,goTo:p,label:h},O=a?.previousIconButton??pl,I=Ce({elementType:O,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:j({},w,{hidden:k.isHidden}),className:de(x.button,x.previousIconButton)}),N=a?.nextIconButton??pl,L=Ce({elementType:N,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:j({},w,{hidden:T.isHidden}),className:de(x.button,x.nextIconButton)}),R=a?.leftArrowIcon??Ix,y=Ce({elementType:R,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.leftArrowIcon}),E=ve(y,CC),D=a?.rightArrowIcon??Ex,P=Ce({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:x.rightArrowIcon}),M=ve(P,PC);return g.jsxs(kC,j({ref:n,className:de(x.root,i),ownerState:w},C,{children:[g.jsx(O,j({},I,{children:r?g.jsx(D,j({},M)):g.jsx(R,j({},E))})),s?g.jsx(Gt,{variant:"subtitle1",component:"span",id:S,children:s}):g.jsx(MC,{className:x.spacer,ownerState:w}),g.jsx(N,j({},L,{children:r?g.jsx(R,j({},E)):g.jsx(D,j({},M))}))]}))});function RC(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Ae();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 IC(e,{disablePast:t,minDate:n,timezone:r}){const o=Ae();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 EC=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],OC=["ownerState"],$C=e=>{const{classes:t}=e;return he({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},vC,t)},AC=U("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}),FC=U("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})),LC=U("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),NC=U(Ir,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${xC.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),jC=U(Rx,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),BC=v.forwardRef(function(t,n){const r=Nt(),o=Ae(),s=$e({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:m,maxDate:f,minDate:b,onMonthChange:d,onViewChange:p,view:h,reduceAnimations:S,views:C,labelId:w,className:x,timezone:T,format:k=`${o.formats.month} ${o.formats.year}`}=s,O=ve(s,EC),I=s,N=$C(s),L=i?.switchViewButton??NC,R=Ce({elementType:L,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(h)},ownerState:I,className:N.switchViewButton}),y=i?.switchViewIcon??jC,E=Ce({elementType:y,externalSlotProps:a?.switchViewIcon,ownerState:I,className:N.switchViewIcon}),D=ve(E,OC),P=()=>d(o.addMonths(l,1),"left"),M=()=>d(o.addMonths(l,-1),"right"),A=RC(l,{disableFuture:u,maxDate:f,timezone:T}),$=IC(l,{disablePast:m,minDate:b,timezone:T}),F=()=>{if(!(C.length===1||!p||c))if(C.length===2)p(C.find(q=>q!==h)||C[0]);else{const q=C.indexOf(h)!==0?0:1;p(C[q])}};if(C.length===1&&C[0]==="year")return null;const V=o.formatByString(l,k);return g.jsxs(AC,j({},O,{ownerState:I,className:de(N.root,x),ref:n,children:[g.jsxs(FC,{role:"presentation",onClick:F,ownerState:I,"aria-live":"polite",className:N.labelContainer,children:[g.jsx(Ru,{reduceAnimations:S,transKey:V,children:g.jsx(LC,{id:w,ownerState:I,className:N.label,children:V})}),C.length>1&&!c&&g.jsx(L,j({},R,{children:g.jsx(y,j({},D))}))]}),g.jsx(un,{in:h==="day",appear:!S,enter:!S,children:g.jsx(DC,{slots:i,slotProps:a,onGoToPrevious:M,isPreviousDisabled:$,previousLabel:r.previousMonth,onGoToNext:P,isNextDisabled:A,nextLabel:r.nextMonth})})]}))}),VC=U("div")({overflow:"hidden",width:Lo,maxHeight:di,display:"flex",flexDirection:"column",margin:"0 auto"}),zC=e=>ge("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const _C=["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"],WC=e=>{const{classes:t}=e;return he({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},zC,t)};function HC(e,t){const n=Ae(),r=Tr(),o=eu(),s=$e({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??(()=>g.jsx("span",{children:"..."})),minDate:lt(n,s.minDate,r.minDate),maxDate:lt(n,s.maxDate,r.maxDate)})}const UC=U(VC,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:di}),YC=U(Ru,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),GC=v.forwardRef(function(t,n){const r=Ae(),o=xt(),s=HC(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:m,disablePast:f,onChange:b,onYearChange:d,onMonthChange:p,reduceAnimations:h,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:w,view:x,views:T,openTo:k,className:O,disabled:I,readOnly:N,minDate:L,maxDate:R,disableHighlightToday:y,focusedView:E,onFocusedViewChange:D,showDaysOutsideCurrentMonth:P,fixedWeekNumber:M,dayOfWeekFormatter:A,slots:$,slotProps:F,loading:V,renderLoading:q,displayWeekNumber:re,yearsOrder:ae,yearsPerRow:ie,monthsPerRow:z,timezone:Z}=s,X=ve(s,_C),{value:Y,handleValueChange:W,timezone:G}=ui({name:"DateCalendar",timezone:Z,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Dt}),{view:te,setView:J,focusedView:B,setFocusedView:K,goToNextView:oe,setValueAndGoToNextView:ne}=tu({view:x,views:T,openTo:k,onChange:W,onViewChange:a,autoFocus:i,focusedView:E,onFocusedViewChange:D}),{referenceDate:ce,calendarState:se,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:Se,isDateDisabled:pe,onMonthSwitchingAnimationEnd:Ke}=bw({value:Y,referenceDate:u,reduceAnimations:h,onMonthChange:p,minDate:L,maxDate:R,shouldDisableDate:S,disablePast:f,disableFuture:m,timezone:G}),Ne=I&&Y||L,mt=I&&Y||R,ht=`${o}-grid-label`,nt=B!==null,rt=$?.calendarHeader??BC,jt=Ce({elementType:rt,externalSlotProps:F?.calendarHeader,additionalProps:{views:T,view:te,currentMonth:se.currentMonth,onViewChange:J,onMonthChange:(Oe,wt)=>Se({newMonth:Oe,direction:wt}),minDate:Ne,maxDate:mt,disabled:I,disablePast:f,disableFuture:m,reduceAnimations:h,timezone:G,labelId:ht},ownerState:s}),gt=ue(Oe=>{const wt=r.startOfMonth(Oe),Wn=r.endOfMonth(Oe),_t=pe(Oe)?ar({utils:r,date:Oe,minDate:r.isBefore(L,wt)?wt:L,maxDate:r.isAfter(R,Wn)?Wn:R,disablePast:f,disableFuture:m,isDateDisabled:pe,timezone:G}):Oe;_t?(ne(_t,"finish"),p?.(wt)):(oe(),be(wt)),fe(_t,!0)}),Ee=ue(Oe=>{const wt=r.startOfYear(Oe),Wn=r.endOfYear(Oe),_t=pe(Oe)?ar({utils:r,date:Oe,minDate:r.isBefore(L,wt)?wt:L,maxDate:r.isAfter(R,Wn)?Wn:R,disablePast:f,disableFuture:m,isDateDisabled:pe,timezone:G}):Oe;_t?(ne(_t,"finish"),d?.(_t)):(oe(),be(wt)),fe(_t,!0)}),Bt=ue(Oe=>W(Oe&&lo(r,Oe,Y??ce),"finish",te));v.useEffect(()=>{Y!=null&&r.isValid(Y)&&be(Y)},[Y]);const Vt=s,_n=WC(Vt),ye={disablePast:f,disableFuture:m,maxDate:R,minDate:L},ke={disableHighlightToday:y,readOnly:N,disabled:I,timezone:G,gridLabelId:ht,slots:$,slotProps:F},ze=v.useRef(te);v.useEffect(()=>{ze.current!==te&&(B===ze.current&&K(te,!0),ze.current=te)},[B,K,te]);const zt=v.useMemo(()=>[Y],[Y]);return g.jsxs(UC,j({ref:n,className:de(_n.root,O),ownerState:Vt},X,{children:[g.jsx(rt,j({},jt,{slots:$,slotProps:F})),g.jsx(YC,{reduceAnimations:h,className:_n.viewTransitionContainer,transKey:te,ownerState:Vt,children:g.jsxs("div",{children:[te==="year"&&g.jsx(bC,j({},ye,ke,{value:Y,onChange:Ee,shouldDisableYear:w,hasFocus:nt,onFocusedViewChange:Oe=>K("year",Oe),yearsOrder:ae,yearsPerRow:ie,referenceDate:ce})),te==="month"&&g.jsx(iC,j({},ye,ke,{hasFocus:nt,className:O,value:Y,onChange:gt,shouldDisableMonth:C,onFocusedViewChange:Oe=>K("month",Oe),monthsPerRow:z,referenceDate:ce})),te==="day"&&g.jsx(Kw,j({},se,ye,ke,{onMonthSwitchingAnimationEnd:Ke,onFocusedDayChange:fe,reduceAnimations:h,selectedDays:zt,onSelectedDaysChange:Bt,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:w,hasFocus:nt,onFocusedViewChange:Oe=>K("day",Oe),showDaysOutsideCurrentMonth:P,fixedWeekNumber:M,dayOfWeekFormatter:A,displayWeekNumber:re,loading:V,renderLoading:q}))]})})]}))}),On=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:m,disablePast:f,minDate:b,maxDate:d,shouldDisableDate:p,shouldDisableMonth:h,shouldDisableYear:S,reduceAnimations:C,onMonthChange:w,monthsPerRow:x,onYearChange:T,yearsOrder:k,yearsPerRow:O,slots:I,slotProps:N,loading:L,renderLoading:R,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:P,dayOfWeekFormatter:M,sx:A,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:V,timezone:q})=>g.jsx(GC,{view:e,onViewChange:t,views:n.filter(Sa),focusedView:r&&Sa(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:m,disablePast:f,minDate:b,maxDate:d,shouldDisableDate:p,shouldDisableMonth:h,shouldDisableYear:S,reduceAnimations:C,onMonthChange:w,monthsPerRow:x,onYearChange:T,yearsOrder:k,yearsPerRow:O,slots:I,slotProps:N,loading:L,renderLoading:R,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:P,dayOfWeekFormatter:M,sx:A,autoFocus:$,fixedWeekNumber:F,displayWeekNumber:V,timezone:q}),$u=v.forwardRef(function(t,n){const r=Nt(),o=Ae(),s=Fc(t,"MuiDesktopDatePicker"),i=j({day:On,month:On,year:On},s.viewRenderers),a=j({},s,{viewRenderers:i,format:qs(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:Ox,field:Tu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Io(s.slotProps?.field,c),Nc(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=Dx({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:$c({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Dr});return l()});$u.propTypes={autoFocus:_.bool,className:_.string,closeOnSelect:_.bool,dayOfWeekFormatter:_.func,defaultValue:_.object,disabled:_.bool,disableFuture:_.bool,disableHighlightToday:_.bool,disableOpenPicker:_.bool,disablePast:_.bool,displayWeekNumber:_.bool,enableAccessibleFieldDOMStructure:_.any,fixedWeekNumber:_.number,format:_.string,formatDensity:_.oneOf(["dense","spacious"]),inputRef:wc,label:_.node,loading:_.bool,localeText:_.object,maxDate:_.object,minDate:_.object,monthsPerRow:_.oneOf([3,4]),name:_.string,onAccept:_.func,onChange:_.func,onClose:_.func,onError:_.func,onMonthChange:_.func,onOpen:_.func,onSelectedSectionsChange:_.func,onViewChange:_.func,onYearChange:_.func,open:_.bool,openTo:_.oneOf(["day","month","year"]),orientation:_.oneOf(["landscape","portrait"]),readOnly:_.bool,reduceAnimations:_.bool,referenceDate:_.object,renderLoading:_.func,selectedSections:_.oneOfType([_.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_.number]),shouldDisableDate:_.func,shouldDisableMonth:_.func,shouldDisableYear:_.func,showDaysOutsideCurrentMonth:_.bool,slotProps:_.object,slots:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),timezone:_.string,value:_.object,view:_.oneOf(["day","month","year"]),viewRenderers:_.shape({day:_.func,month:_.func,year:_.func}),views:_.arrayOf(_.oneOf(["day","month","year"]).isRequired),yearsOrder:_.oneOf(["asc","desc"]),yearsPerRow:_.oneOf([3,4])};function KC(e){return ge("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);const qC=me("MuiDialogTitle",["root"]),XC=e=>{const{classes:t,dividers:n}=e;return he({root:["root",n&&"dividers"]},KC,t)},QC=U("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ie(({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:{[`.${qC.root} + &`]:{paddingTop:0}}}]}))),ZC=v.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=XC(a);return g.jsx(QC,{className:de(l.root,o),ownerState:a,ref:n,...i})});function JC(e){return ge("MuiDialog",e)}const pr=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),eP=v.createContext({}),tP=U(pu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return he(i,JC,t)},rP=U(fu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),oP=U("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),sP=U(Er,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ie(({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)`,[`&.${pr.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}`,[`&.${pr.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,[`&.${pr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),iP=v.forwardRef(function(t,n){const r=we({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:m,className:f,disableEscapeKeyDown:b=!1,fullScreen:d=!1,fullWidth:p=!1,maxWidth:h="sm",onClick:S,onClose:C,open:w,PaperComponent:x=Er,PaperProps:T={},scroll:k="paper",slots:O={},slotProps:I={},TransitionComponent:N=un,transitionDuration:L=s,TransitionProps:R,...y}=r,E={...r,disableEscapeKeyDown:b,fullScreen:d,fullWidth:p,maxWidth:h,scroll:k},D=nP(E),P=v.useRef(),M=B=>{P.current=B.target===B.currentTarget},A=B=>{S&&S(B),P.current&&(P.current=null,C&&C(B,"backdropClick"))},$=xt(a),F=v.useMemo(()=>({titleId:$}),[$]),V={transition:N,...O},q={transition:R,paper:T,backdrop:u,...I},re={slots:V,slotProps:q},[ae,ie]=Le("root",{elementType:rP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.root,f),ref:n}),[z,Z]=Le("backdrop",{elementType:tP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E}),[X,Y]=Le("paper",{elementType:sP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.paper,T.className)}),[W,G]=Le("container",{elementType:oP,externalForwardedProps:re,ownerState:E,className:D.container}),[te,J]=Le("transition",{elementType:un,externalForwardedProps:re,ownerState:E,additionalProps:{appear:!0,in:w,timeout:L,role:"presentation"}});return g.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:z},slotProps:{backdrop:{transitionDuration:L,as:c,...Z}},disableEscapeKeyDown:b,onClose:C,open:w,onClick:A,...ie,...y,children:g.jsx(te,{...J,children:g.jsx(W,{onMouseDown:M,...G,children:g.jsx(X,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":$,"aria-modal":l,...Y,children:g.jsx(eP.Provider,{value:F,children:m})})})})})}),aP=U(iP)({[`& .${pr.container}`]:{outline:0},[`& .${pr.paper}`]:{outline:0,minWidth:Lo}}),lP=U(ZC)({"&:first-of-type":{padding:0}});function cP(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??aP,a=o?.mobileTransition??un;return g.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:g.jsx(lP,{children:t})}))}const uP=["props","getOpenDialogAriaText"],dP=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,uP);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,name:d,label:p,inputRef:h,readOnly:S,disabled:C,localeText:w}=t,x=v.useRef(null),T=xt(),k=s?.toolbar?.hidden??!1,{open:O,actions:I,layoutProps:N,renderCurrentView:L,fieldProps:R,contextValue:y}=nu(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),E=o.field,D=Ce({elementType:E,externalSlotProps:s?.field,additionalProps:j({},R,k&&{id:T},!(C||S)&&{onClick:I.onOpen,onKeyDown:mv(I.onOpen)},{readOnly:S??!0,disabled:C,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:b,label:p,name:d},h?{inputRef:h}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(R.value)});const P=j({textField:o.textField},D.slots),M=o.layout??lu;let A=T;k&&(p?A=`${T}-label`:A=void 0);const $=j({},s,{toolbar:j({},s?.toolbar,{titleId:T}),mobilePaper:j({"aria-labelledby":A},s?.mobilePaper)}),F=Pe(x,D.unstableFieldRef);return{renderPicker:()=>g.jsxs(cu,{contextValue:y,localeText:w,children:[g.jsx(E,j({},D,{slots:P,slotProps:$,unstableFieldRef:F})),g.jsx(cP,j({},I,{open:O,slots:o,slotProps:$,children:g.jsx(M,j({},N,$?.layout,{slots:o,slotProps:$,children:L()}))}))]})}},Au=v.forwardRef(function(t,n){const r=Nt(),o=Ae(),s=Fc(t,"MuiMobileDatePicker"),i=j({day:On,month:On,year:On},s.viewRenderers),a=j({},s,{viewRenderers:i,format:qs(o,s,!1),slots:j({field:Tu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Io(s.slotProps?.field,c),Nc(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=dP({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:$c({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Dr});return l()});Au.propTypes={autoFocus:_.bool,className:_.string,closeOnSelect:_.bool,dayOfWeekFormatter:_.func,defaultValue:_.object,disabled:_.bool,disableFuture:_.bool,disableHighlightToday:_.bool,disableOpenPicker:_.bool,disablePast:_.bool,displayWeekNumber:_.bool,enableAccessibleFieldDOMStructure:_.any,fixedWeekNumber:_.number,format:_.string,formatDensity:_.oneOf(["dense","spacious"]),inputRef:wc,label:_.node,loading:_.bool,localeText:_.object,maxDate:_.object,minDate:_.object,monthsPerRow:_.oneOf([3,4]),name:_.string,onAccept:_.func,onChange:_.func,onClose:_.func,onError:_.func,onMonthChange:_.func,onOpen:_.func,onSelectedSectionsChange:_.func,onViewChange:_.func,onYearChange:_.func,open:_.bool,openTo:_.oneOf(["day","month","year"]),orientation:_.oneOf(["landscape","portrait"]),readOnly:_.bool,reduceAnimations:_.bool,referenceDate:_.object,renderLoading:_.func,selectedSections:_.oneOfType([_.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_.number]),shouldDisableDate:_.func,shouldDisableMonth:_.func,shouldDisableYear:_.func,showDaysOutsideCurrentMonth:_.bool,slotProps:_.object,slots:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),timezone:_.string,value:_.object,view:_.oneOf(["day","month","year"]),viewRenderers:_.shape({day:_.func,month:_.func,year:_.func}),views:_.arrayOf(_.oneOf(["day","month","year"]).isRequired),yearsOrder:_.oneOf(["asc","desc"]),yearsPerRow:_.oneOf([3,4])};const pP=["desktopModeMediaQuery"],xr=v.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=hv}=r,s=ve(r,pP);return Sc(o,{defaultMatches:!0})?g.jsx($u,j({ref:n},s)):g.jsx(Au,j({ref:n},s))});function Fu(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"?fP(n):n}function fP(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"?`
135
+ `:r==="t"?" ":r==="r"?"\r":r):e}De.extend(js);const fl=14,mP=42;function hP(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(`
136
+ `):void 0}function Lu({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s}){const i=e.label??e.name??"",{theme:a}=Ve.usePublisherTheme(),l=e.type??"string",c=hP(e),u=Fu(l,e.default),m=u!==void 0?`Default: ${u===""?"(empty)":u}`:void 0,f=c||m?g.jsxs(g.Fragment,{children:[c,c&&m?g.jsx("br",{}):null,m]}):void 0,b=l==="string"||kn(l)==="string",d=!nn(l)||typeof t!="string"||th(t),p=A=>g.jsx(Q.TextField,{label:i,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:g.jsxs(g.Fragment,{children:[`Not a ${A}. Clear it to pick one.`,f?g.jsx("br",{}):null,f]}),slotProps:{input:{endAdornment:g.jsx(ns,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),h=nn(l),S=e.control==="multiselect"&&h,C=nn(l),w=e.control==="select"||e.control==="multiselect",x=w?C?typeof t=="string"?eh(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(w&&b&&d&&!(!S&&x.length>1)){const A=$=>{const F=C?Bs($):void 0;if($.length===0||F===""){n(null);return}n(C?F:$[0])};return g.jsx(Q.Autocomplete,{multiple:S,disableCloseOnSelect:S,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:s?"Options unavailable":"No matching values",value:S?x:x[0]??null,onChange:($,F)=>A(F===null?[]:Array.isArray(F)?F:[F]),renderInput:$=>g.jsx(Q.TextField,{...$,label:i,size:"small",placeholder:x.length!==0?void 0:t===""?"All":u??"All",error:s,helperText:s?g.jsxs(g.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",f?g.jsx("br",{}):null,f]}):f,slotProps:{input:{...$.InputProps,endAdornment:g.jsxs(g.Fragment,{children:[o&&g.jsx(Q.CircularProgress,{size:16}),$.InputProps.endAdornment]})}}}),fullWidth:!0})}const T=nn(l)&&kn(l)==="number",{rangeMin:k,rangeMax:O}=e,I=T&&typeof t=="string"?rh(t):void 0,N=T&&typeof t=="string"?sh(t):void 0;if((T||l==="number")&&k!==void 0&&O!==void 0&&(!T||t===void 0||t===null||t===""||I!==void 0||N!==void 0)){const A=N??(I!==void 0?[I,O]:void 0),$=T?A?.[0]:typeof t=="number"?t:void 0;if($===void 0&&t!==void 0&&t!==null&&t!=="")return p("number");const F=$??k,V=A??[k,O],q=V[1]>=O?`≥ ${V[0]}`:`${V[0]} to ${V[1]}`,re=T&&t==="",ae=$!==void 0||re;return g.jsxs(Q.FormControl,{fullWidth:!0,children:[g.jsxs(Q.Box,{component:"fieldset",sx:ie=>({m:0,minWidth:0,border:a.cardBorder,borderRadius:2,px:`${fl}px`,pt:0,pb:.75,minHeight:mP,transition:"border-color 120ms ease-in","&:hover":{borderColor:ie.palette.text.secondary},"&:focus-within":{borderColor:ie.palette.text.primary}}),children:[g.jsx(Q.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:i}),g.jsxs(Q.Stack,{direction:"row",alignItems:"center",spacing:1,children:[g.jsx(Q.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:ae?re?"Any":T?q:String(F):T?"Any":u??"Unset"}),ae&&g.jsx(Sr,{onClear:()=>n(null),sx:{p:0}})]}),g.jsx(Q.Slider,{size:"small",min:k,max:O,value:T?V:F,disableSwap:T,valueLabelDisplay:"auto","aria-label":T?void 0:i,getAriaLabel:T?ie=>ie===0?`${i} from`:`${i} to`:void 0,sx:{py:0,mt:.5},onChange:(ie,z)=>{if(T){const[Z,X]=Array.isArray(z)?[z[0],z[1]]:[z,z];if(Z<=k&&X>=O){n(null);return}n(X>=O?nh(Z):oh(Z,X));return}n(Array.isArray(z)?z[0]:z)}}),g.jsxs(Q.Stack,{direction:"row",justifyContent:"space-between",children:[g.jsx(Q.Typography,{variant:"caption",color:"text.secondary",children:k}),g.jsx(Q.Typography,{variant:"caption",color:"text.secondary",children:O})]})]}),f&&g.jsx(Q.FormHelperText,{sx:{mx:`${fl}px`},children:f})]})}const R=nn(l)?kn(l):void 0,y=R==="date"||R==="timestamp"||R==="timestamptz",E=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),D=t==null||E;if(y&&!E){const A=yP(t);if(A!==void 0)return g.jsx(bP,{label:i,state:A,onChange:n,helperNode:f,defaultDisplay:u})}if(y&&D){const A=E?De.utc(t):null;return g.jsx(hr,{dateAdapter:ao,children:g.jsx(xr,{label:i,value:A?.isValid()?A:null,onChange:$=>n($?$.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:f},field:{clearable:!0,onClear:()=>n(null)}}})})}if(kn(l)==="boolean"){const A=typeof t=="string"?Jm(t):void 0;if(t==null||t===""||A!==void 0)return g.jsx(gP,{label:i,picked:A,emptyOverride:t==="",onChange:n,helperNode:f,defaultDisplay:u})}if(l==="boolean"){const A=typeof t=="boolean";if(!A&&t!==void 0&&t!==null)return p("true or false");const $=e.default?.trim()==="true",F=A?t:$;return g.jsxs(Q.FormControl,{children:[g.jsxs(Q.Stack,{direction:"row",alignItems:"center",children:[g.jsx(Q.FormControlLabel,{control:g.jsx(Q.Checkbox,{checked:F,onChange:V=>n(V.target.checked)}),label:i}),A&&g.jsx(Sr,{onClear:()=>n(null),edge:"end"})]}),f&&g.jsx(Q.FormHelperText,{children:f})]})}if(l==="number"){const A=typeof t=="number"?t:"",$=t!=null;return $&&t!==""&&typeof t!="number"?p("number"):g.jsx(Q.TextField,{label:i,type:"number",value:A,onChange:F=>{const V=F.target.value;n(V===""?null:Number(V))},placeholder:u,helperText:f,slotProps:{input:{endAdornment:$&&g.jsx(ns,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const A=t instanceof Date?t:typeof t=="string"?(V=>V instanceof Date?V:null)(uc(l,t)):null,$=A?De.utc(A):null;return t!=null&&t!==""&&A===null?p("date"):g.jsx(hr,{dateAdapter:ao,children:g.jsx(xr,{label:i,value:$,onChange:V=>n(V?ph(V,A??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:f},field:{clearable:!0,onClear:()=>n(null)}}})})}const P=typeof t=="string"?t:"",M=t!=null;return g.jsx(Q.TextField,{label:i,value:P,onChange:A=>n(A.target.value),placeholder:M?void 0:u??(l.startsWith("filter<")?l:void 0),helperText:f,slotProps:{input:{endAdornment:M&&g.jsx(ns,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Sr({onClear:e,edge:t,sx:n}){return g.jsx(Q.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:g.jsx(Mh,{fontSize:"small"})})}function ns({onClear:e}){return g.jsx(Q.InputAdornment,{position:"end",children:g.jsx(Sr,{onClear:e,edge:"end"})})}const _r="__any__";function gP({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?_r:""),a=i!=="";return g.jsx(Q.Box,{"data-testid":"boolean-filter",children:g.jsxs(Q.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===_r?"Any":s||"Any"},input:{endAdornment:a?g.jsx(Sr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==_r&&r(l.target.value)},children:[n&&g.jsx(Q.MenuItem,{value:_r,children:"Any"}),g.jsx(Q.MenuItem,{value:"true",children:"true"}),g.jsx(Q.MenuItem,{value:"false",children:"false"})]})})}function yP(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=ah(e);if(t!==void 0)return{kind:"preset",key:t};const n=uh(e);if(n!==void 0)return{kind:"days",...n}}const Wr="__custom__",rs="__any__";function bP({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]=ee.useState(t.kind==="days"),[l,c]=ee.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});ee.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",m=i?Wr:t.kind==="preset"?t.key:t.kind==="any"?rs:"",f=d=>{c(d),d.from&&d.to&&!De.utc(d.to).isBefore(De.utc(d.from))&&n(ch(d.from,d.to))},b=d=>{const p=d?De.utc(d):null;return p?.isValid()?p:null};return g.jsxs(Q.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[g.jsxs(Q.TextField,{select:!0,label:e,value:m,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:d=>{if(d===Wr)return"Custom range";if(d===rs)return"Any time";const p=io.find(h=>h.key===d);return p?p.label:o??"Any time"}},input:{endAdornment:u?g.jsx(Sr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const p=d.target.value;if(p===Wr){a(!0);return}a(!1);const h=ih(p);h!==void 0&&n(h)},children:[t.kind==="any"&&g.jsx(Q.MenuItem,{value:rs,children:"Any time"}),io.map(d=>g.jsx(Q.MenuItem,{value:d.key,children:d.label},d.key)),g.jsx(Q.MenuItem,{value:Wr,children:"Custom range"})]}),i&&g.jsxs(hr,{dateAdapter:ao,children:[g.jsx(xr,{label:"From",value:b(l.from),onChange:d=>f({...l,from:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),g.jsx(xr,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:d=>f({...l,to:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function Nu({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:s,optionsLoading:i,optionsFailed:a,apply:l,title:c}){const{theme:u}=Ve.usePublisherTheme();if(e.length===0)return null;const m=Array.from(t.values()).some(d=>d!==null),f=e.map(d=>g.jsx(Q.Box,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:g.jsx(Lu,{given:d,value:d.name?t.get(d.name):void 0,onChange:p=>d.name&&n(d.name,p),options:d.name?s?.get(d.name):void 0,optionsLoading:i,optionsFailed:d.name?a?.has(d.name):void 0})},d.name)),b=g.jsxs(Q.Stack,{direction:"row",alignItems:"center",spacing:1,children:[l&&g.jsx(Q.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:l.onApply,disabled:!l.pending,children:"Apply"}),m&&g.jsx(Q.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return o==="bar"?g.jsx(Q.Paper,{elevation:0,sx:{p:2,border:u.cardBorder,borderRadius:1,backgroundColor:"transparent"},children:g.jsxs(Q.Stack,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[f,g.jsx(Q.Box,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:b})]})}):g.jsxs(Q.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[g.jsxs(Q.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[g.jsx(Q.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:c??"Filters"}),b]}),g.jsx(Q.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:f})]})}const vP=new Set(["bar","line","chart","scatter_chart"]),xP=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function SP(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":vP.has(e)?"container":"content"}function wP(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&xP.has(e)}function CP(e){return e==="dashboard"?3:2}function ju(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function PP(e,t){const n=ju(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const Bu=400,kP=700,MP=600,TP=800,Vu=400,xs=2e3;function zu(e){return e===void 0?xs:Math.min(e,xs)}function Ss({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r}){if(e==="container")return n??Vu;if(t===void 0||t<=0)return zu(n);const o=n===void 0?t:Math.min(n,t);return r===void 0?o:Math.max(o,r)}function _u(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function Wu(e,t){if(e==null||e==="")return;const n=o=>`'${_u(o)}'`;switch(t===void 0?DP(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=ml(e);return o&&`@${o}`}case"timestamp":{const o=ml(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 DP(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 ml(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 ho={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function Ci({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=g.jsxs(Q.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[g.jsx(Q.CircularProgress,{size:t,color:n,thickness:r}),e&&g.jsx(Q.Typography,{variant:i,color:"text.secondary",children:e})]});return o?g.jsx(Q.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let Jn;function Hu(){return Jn||(Jn=import("@malloydata/render"),Jn.catch(()=>{Jn=void 0})),Jn}function Uu(){typeof window>"u"||Hu().catch(()=>{})}const Yu=Ue(g.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 Gu({sx:e,...t}){const{theme:n}=Ve.usePublisherTheme();return g.jsx(Q.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 RP=new Set(["warn","error"]);function IP(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!RP.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(`
137
+ `)}}const EP=ee.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-BcgYjkZ0.cjs.js")).then(e=>e.RenderedResult$1));function Ku({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o,fill:s=!1}){const i=ee.useRef(null);ee.useEffect(()=>Uu(),[]);const[a,l]=ee.useState(void 0),[c,u]=ee.useState(void 0),[m,f]=ee.useState(!1),[b,d]=ee.useState(void 0),p=IP(r),h=!!e;if(ee.useEffect(()=>{const T=i.current;if(!s||!T)return;const k=new ResizeObserver(([O])=>d(Math.round(O.contentRect.height)));return k.observe(T),()=>k.disconnect()},[s,h,m]),!e)return null;if(n>0&&e.length>n&&!m)return g.jsxs(Q.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[g.jsx(zd.Warning,{sx:{fontSize:48,color:"#757575"}}),g.jsx(Q.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),g.jsx(Q.Button,{variant:"contained",color:"primary",onClick:()=>f(!0),children:"Proceed"})]});const C=g.jsx(Ci,{text:ho.loading,centered:!0,size:32}),w=Ss({sizing:a,contentHeight:c,maxHeight:t,fillHeight:s?b:void 0}),x=g.jsx(ee.Suspense,{fallback:C,children:g.jsx(EP,{result:e,height:w,onSizeChange:u,onSizing:l,drill:o,fill:s})});return g.jsxs(Q.Box,{ref:i,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden",...s&&{flex:`1 1 ${Ss({sizing:a,contentHeight:c,maxHeight:t})}px`,minHeight:0}},children:[s?g.jsx(Q.Box,{sx:{position:"absolute",inset:0},children:x}):x,p&&g.jsx(Q.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:g.jsx(Q.Tooltip,{title:p.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:g.jsx(Gu,{"aria-label":"Render tag warnings",children:g.jsx(Yu,{fontSize:"small",color:p.severity==="error"?"error":"warning"})})})})]})}function Pi({state:e,context:t,loadingText:n=ho.running,maxHeight:r,maxResultSize:o,drill:s,fill:i,transform:a}){const{data:l,isSuccess:c,isError:u,error:m,fetchStatus:f}=e,b=c||f==="fetching";ee.useEffect(()=>{b&&Uu()},[b]);const d=l?.data.result,p=ee.useMemo(()=>d!==void 0&&a?a(d):d,[d,a]);return u?g.jsx(Q.Box,{sx:{p:2},children:g.jsx(nc,{context:t,error:m})}):c?g.jsx(Ku,{result:p,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:s,fill:i}):g.jsx(Ci,{text:f==="idle"?ho.loading:n})}const wr=()=>typeof performance<"u"?performance.now():Date.now(),qu=200;function OP(e){const t=Wu(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${qu} }`}function $P(e){const t=Tn.tileSteps(e);if(!(!t||t.refinement!==void 0||!Tn.isIdentifier(t.source)||!Tn.isIdentifier(t.view)))return{source:t.source,view:t.view}}function AP({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onClose:i,onDone:a}){const{theme:l}=Ve.usePublisherTheme(),c=e?OP(e):void 0;return g.jsxs(Q.Dialog,{open:e!==void 0,onClose:i,maxWidth:"lg",fullWidth:!0,children:[g.jsxs(Q.DialogTitle,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[g.jsxs(Q.Box,{children:[e?g.jsxs(g.Fragment,{children:["Rows where"," ",g.jsx(Q.Box,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",g.jsx(Q.Typography,{component:"div",variant:"caption",sx:{color:l.tileTitle,mt:.25},children:e?`The first ${qu} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),g.jsx(Q.IconButton,{onClick:i,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:g.jsx(Es,{fontSize:"small"})})]}),g.jsxs(Q.DialogContent,{dividers:!0,sx:{p:0,minHeight:240},children:[c===void 0&&e&&g.jsx(Q.Typography,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),c!==void 0&&g.jsx(FP,{query:c,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:s,...a?{onDone:a}:{}})]}),g.jsxs(Q.DialogActions,{sx:{px:3,py:1.5},children:[c!==void 0&&g.jsx(Q.Typography,{variant:"caption",sx:{mr:"auto",color:l.tileTitle,fontFamily:Ve.MONO_FONT_FAMILY,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c,children:c}),g.jsx(Q.Button,{onClick:i,children:"Close"})]})]})}function FP({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onDone:i}){const a=Ii({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:s}),{isSuccess:l,isError:c}=a,u=ee.useRef(void 0);return ee.useEffect(()=>{u.current=wr()},[e]),ee.useEffect(()=>{u.current===void 0||!l&&!c||(i?.(l,wr()-u.current),u.current=void 0)},[l,c,i]),g.jsx(Q.Box,{sx:{p:1},children:g.jsx(Pi,{state:a,context:e})})}const LP=Ue(g.jsx("path",{d:"m16.95 6-3.57 4.55 1.43 1.43c1.03-1.31 4.98-6.37 4.98-6.37C20.3 4.95 19.83 4 19 4H6.83l2 2zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"})),NP=3;function Xu(e,t){if(e===void 0)return[];const n=new Set(e);return t.flatMap(r=>r.name&&!n.has(r.name)?[r.label??r.name]:[])}function jP(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function Qu({ignored:e}){const{theme:t}=Ve.usePublisherTheme();if(e.length===0)return null;const n=e.length>NP?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return g.jsxs(Q.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${jP(e)}, so changing ${e.length===1?"it":"them"} won't change this tile`,sx:{display:"inline-flex",alignItems:"center",gap:.5,maxWidth:"100%",mb:1,alignSelf:"flex-start",px:.75,py:.125,border:1,borderColor:"warning.main",borderRadius:1,fontSize:11,lineHeight:1.6,color:"warning.main",fontFamily:t.font.family},children:[g.jsx(LP,{sx:{fontSize:12}}),g.jsx(Q.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}function BP(){const[e,t]=ee.useState(!1),n=ee.useRef(null);return{sentinelRef:ee.useCallback(o=>{n.current?.disconnect(),n.current=null,!(!o||typeof IntersectionObserver>"u")&&(n.current=new IntersectionObserver(([s])=>{s&&t(!s.isIntersecting&&s.boundingClientRect.top<(s.rootBounds?.height??window.innerHeight)/2)}),n.current.observe(o))},[]),stuck:e}}const VP=240,Zu=4;function zP({manifest:e,environmentName:t,packageName:n,versionId:r,documentName:o,givens:s,onGivensChange:i,onNavigate:a,height:l,maxResultSize:c,chrome:u="card",controlsLayout:m="bar",preamble:f,runModelPath:b,hiddenGivens:d}){const p=ee.useMemo(()=>(e.givens??[]).filter($=>!(f!==void 0&&$.secure===!0)&&!($.name!==void 0&&d?.includes($.name))),[e,d,f]),h=ee.useMemo(()=>s===void 0?void 0:Object.fromEntries(Object.entries(s).filter(([,$])=>typeof $=="string")),[s]),S=gc({specs:p,loaded:!0,startingValues:e.startingGivens,params:h,onGivensChange:i,documentKey:`${t}/${n}/${r??""}/${o}`,autorun:e.autorun!==!1,environmentName:t,packageName:n,modelPath:b??e.path,versionId:r,documentName:o,...f!==void 0?{preamble:f}:{},...s?{hostGivens:s}:{}}),{applied:C,declaredTypes:w,canSelf:x,onSelf:T}=S,k=Do(),O=ee.useMemo(()=>{const $=new Set((e.tiles??[]).flatMap(F=>F.givenNames??[]));return Object.fromEntries(Object.entries(s??{}).filter(([F])=>$.has(F)&&!w.has(F)))},[e,s,w]),[I,N]=ee.useState(void 0),L=ee.useCallback($=>{const F=$P($.context);F!==void 0&&N({...F,field:$.field,rawValue:$.rawValue,label:$.label})},[]),R=ee.useMemo(()=>Ws(Ro(C,w),O),[C,w,O]),{drill:y,drillMenu:E}=yc({onNavigate:a,onSelf:T,canSelf:x,selfLabel:"Filter this report",...f===void 0?{onRows:L}:{}}),D=ee.useCallback($=>({canDrill:y.canDrill,onClick:F=>y.onClick({...F,context:$})}),[y]);if(e.error)return g.jsxs(Q.Stack,{spacing:2,children:[g.jsx(hl,{manifest:e,chrome:u}),g.jsx(Q.Alert,{severity:"error",children:e.error})]});const P=b??e.path,M=e.tiles??[],A=e.dashboardColumns??zl;return g.jsxs(Q.Stack,{spacing:2,children:[u==="card"&&g.jsx(hl,{manifest:e,chrome:u}),p.length>0&&g.jsx(td,{sticky:u==="card",children:g.jsx(Nu,{...S.panel,layout:m})}),P===void 0?g.jsx(Q.Alert,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):M.length>0?g.jsx(Ul,{tiles:M,columns:A,minTilePx:VP,rowGapPx:u==="none"?_l:an,keyOf:($,F)=>`${F}:${$.kind==="text"?`text:${$.name}`:$.query}`,renderTile:($,F)=>$.kind==="text"||$.query===void 0?g.jsx(Ju,{markdown:$.markdown??"",chrome:u}):g.jsx(Ed,{index:F,environmentName:t,packageName:n,versionId:r,modelPath:P,tile:$.query,label:$.label,subtitle:$.subtitle,borderless:$.borderless,givens:C,hostGivens:O,declaredTypes:w,givenNames:$.givenNames,height:l??Bu,maxResultSize:c,drill:D($.query),chrome:u,ignoredFilters:Xu($.givenNames,p),...f!==void 0?{preamble:f,restricted:$.restricted}:{}})}):g.jsx(Q.Alert,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),E,P!==void 0&&g.jsx(AP,{request:I,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:P,givens:R,onClose:()=>N(void 0),onDone:($,F)=>{I&&k.emit({type:"report.rows_shown",source:I.source,view:I.view,field:I.field,ok:$,durationMs:F})}})]})}function Ju({markdown:e,chrome:t}){return g.jsx(Fs,{chrome:t,kind:"text",children:g.jsx(ec,{variant:"document",children:e})})}function hl({manifest:e,chrome:t}){return g.jsx(ed,{chrome:t,title:e.title??e.name,...e.description?{description:e.description}:{}})}function ed({title:e,description:t,chrome:n="card"}){return g.jsxs(Q.Stack,{sx:{gap:2},children:[g.jsx(Q.Typography,{variant:"h5",children:e}),t&&g.jsx(Q.Box,{sx:n==="none"?{my:`${Hl}px`}:void 0,children:g.jsx(Ju,{markdown:t,chrome:n})})]})}function td({sticky:e=!0,children:t}){const{theme:n}=Ve.usePublisherTheme(),{sentinelRef:r,stuck:o}=BP();if(!e)return g.jsx(Q.Box,{children:t});const s=n.cardBorder.replace(/^1px solid /,"");return g.jsxs(g.Fragment,{children:[g.jsx(Q.Box,{ref:r,"aria-hidden":!0,sx:{height:0,m:"0 !important"}}),g.jsx(Q.Box,{"data-stuck":o||void 0,sx:{position:"sticky",top:0,zIndex:Zu,bgcolor:"background.default",pb:1,boxShadow:o?`0 1px 0 ${s}`:"none",transition:`box-shadow ${Os}`,...$s},children:t})]})}const nd=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},rd=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},_P=Ue(g.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));async function WP(e){const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t),n=>n.toString(16).padStart(2,"0")).join("")}function HP(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function od({authoritative:e,mutable:t,versionId:n,canStore:r,readFailed:o}){const s=e?"host":t?"package":"browser",i=n!==void 0&&s==="package";return{savesTo:s,pinnedPackageSave:i,writer:o?void 0:e?r?"storage":void 0:i?void 0:t?"package":r?"storage":void 0}}async function UP(e,t){return e??(t===void 0?void 0:await WP(t))}function YP({authoritative:e,mutable:t,pinnedPackageSave:n,workspace:r,readFailure:o,versionId:s}){return o!==void 0?`The saved copy could not be read, so Save is off: ${o}`:e&&r?r.writeable?r.description:`${r.description}: you cannot save into it.`:n?`Reading version ${s}: a version is a fixed point in history, so Save is off.`:t?"Save writes the file into the package.":r?`${r.description}: this server does not take writes.`:"This server does not take writes."}function GP(e){return e instanceof Error?e.message:String(e)}function KP(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function qP({apiClients:e,queryClient:t,environmentName:n,packageName:r,modelPath:o,source:s,expectedHash:i,invalidateOnError:a,invalidate:l,afterWrite:c}){let u;try{u=await e.models.updateModelSource(n,r,o,{source:s,expectedHash:i})}catch(f){for(const b of a)t.invalidateQueries({queryKey:b});throw new Error(KP(f))}const m=u.data.contentHash;await c?.(m);for(const{queryKey:f,refetchType:b,wait:d}of l){const p=t.invalidateQueries({queryKey:f,...b?{refetchType:b}:{}});d&&await p}return m}function XP(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function QP(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=nd(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class sd extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const id=e=>e instanceof sd||e instanceof Error&&e.name==="DocumentNotFoundError",ad="document.malloy",ld=e=>e.slice(0,e.lastIndexOf("/")+1),cd=(e,t)=>new URL(e,`https://malloy.invalid/${ld(t)}`).pathname.slice(1);function ud(e,t){const n=ld(t).split("/").filter(Boolean),r=e.split("/");let o=0;for(;o<n.length&&o<r.length-1&&n[o]===r[o];)o++;const s=n.length-o;return`${"../".repeat(s)}${r.slice(o).join("/")}`}function ZP(e,t,n,r=ad,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(cd(s.from,r)))}function JP(e,t,n,r=ad,o=[n]){const{imports:s}=e;if(ZP(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(cd(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:ud(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const er=e=>Tn.isBareName(e)?e:`\`${e}\``;function ki(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=Ls("title",t);if(s)return s;if(t.includes("|##"))return"A title cannot contain `|##`, which closes the report's artifact tag.";if(/["\\\r\n]/.test(n)||n.trim()==="")return`The model path ${JSON.stringify(n)} cannot be written as an import.`;for(const[i,a]of[["source",r],["view",o]])if(a.trim()===""||/[`\r\n\\]/.test(a))return`The ${i} name ${JSON.stringify(a)} cannot be written as a Malloy name.`}const e1=e=>{const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},gl=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,t1="report.malloy";function Mi(e,t,n=t1){const r=ki(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=gl(a),c=er(`${s}_tiles`),u=er(`${i}_tile`),m=`"${c} -> ${u}"`;return["##! experimental.givens",`##| artifact { layout=${t} title=${l}`," tiles=[",` ${m}`," ]",t==="grid"?"} dashboard { columns=12 }":"}","|##",`import { ${er(s)} } from "${ud(o,n)}"`,"",`source: ${c} is ${er(s)} extend {`,` # label=${gl(e1(i))}`,` view: ${u} is ${er(i)}`,"}",""].join(`
138
+ `)}function n1(e,t){return Mi(e,"linear",t)}function dd(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function r1({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Tn.isBareName(s))return`The ${o} name ${JSON.stringify(s)} cannot be written as a Malloy name.`;return/["\\\r\n]/.test(t)?`The model path ${JSON.stringify(t)} cannot be written into an import.`:Ls("title",e)}function o1(e,t){const n=r1(e);if(n)throw new Error(n);return Mi(e,"grid",t)}const pd=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function fd(e,t){const n=pd(t);return`${n===""?"":`${n}/`}${e}.malloy`}function md(e){return dd(e)||"untitled"}function hd(e,t=1,n){const r=md(e);return fd(t>1?`${r}-${t}`:r,n)}const gd=(e,t,n)=>`${e}/${t}/${n}`,yd=(e,t,n,r,o)=>({workspace:t,type:e,path:gd(n,r,o)}),Ti=20;function s1(e){const{savesTo:t,writer:n}=od({...e,readFailed:!1});return t==="browser"?void 0:n}const yl=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function bd(e){if(!e.endsWith(".malloy"))return"A report's file name ends in .malloy.";const t=e.split("/");if(t.some(n=>n===""||n==="."||n===".."))return"A location is a path inside the package, such as sales/q3.malloy.";if(t.at(-1)===".malloy")return"A report's file needs a name.";if(t[0].toLowerCase()==="public")return"A report cannot live under public/, which is served as plain files.";if(e.toLowerCase()==="index.malloy")return"The package's index.malloy is its surface, never a report."}async function i1(e){const t=e.layout??"linear",n=wr();let r;try{r=await a1(e,t)}catch(o){throw so({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return so({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:wr()-n}),e.onCreated?.(r),r}async function a1(e,t){const{document:n,target:r}=e,o=ki(n);if(o)throw new Error(o);const s=pd(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:Ti},(p,h)=>hd(n.title,h+1,s));for(const p of i){const h=bd(p);if(h)throw new Error(h)}const a=p=>Mi(n,t,p);if(r.route==="package"){const p=new Set(r.existing);let h;for(const S of i)if(!p.has(S))try{await r.write(S,a(S)),h=S;break}catch(C){if(!l1(C))throw C}if(h===void 0)throw bl(n.title,e.path);return{layout:t,path:h,slug:yl(h)}}const{storage:l,workspace:c,environmentName:u,packageName:m}=r,f=new Set(r.existing),b=new Set((await l.listDocuments(c)).map(p=>p.path));let d;for(const p of i){const h=yd(t,c.name,u,m,p),S=await l.resolveDocumentPath?.(h)??p;if(b.has(h.path)||f.has(p)||f.has(S))continue;let C=!0;try{await l.getDocument(h)}catch(w){if(!id(w))throw w;C=!1}if(!C){d={layout:t,path:S,slug:yl(S),locator:h};break}}if(d===void 0)throw bl(n.title,e.path);return await l.saveDocument(d.locator,a(d.path)),d}const l1=e=>e?.response?.status===409,bl=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${Ti} tries. Fix: choose a different title.`);function vd(e){try{const t=JSON.parse(e??"");return new Set((t.entries??[]).flatMap(n=>n.kind==="source"&&typeof n.name=="string"?[n.name]:[]))}catch{return new Set}}function c1({environmentName:e,packageName:t,versionId:n,models:r,enabled:o}){const{apiClients:s,server:i}=Ve.useServer(),a=go.useQueries({queries:r.map(d=>({queryKey:["new-document-model",e,t,n,d,i],queryFn:async()=>(await s.models.getModel(e,t,d,n)).data,enabled:o,retry:!1,staleTime:300*1e3,refetchOnWindowFocus:!1}))}),l=a.map(d=>d.dataUpdatedAt).join(),c=ee.useMemo(()=>{const d=new Map;return a.forEach((p,h)=>{const S=[],C=vd(p.data?.modelInfo);for(const w of p.data?.sources??[])if(!(typeof w.name!="string"||!C.has(w.name)))for(const x of w.views??[])typeof x.name=="string"&&S.push({source:w.name,view:x.name});S.length>0&&d.set(r[h],S)}),d},[l,r]),u=a.some(d=>d.isLoading),m=u?[]:r.filter((d,p)=>a[p]?.isError),f=!u&&a.some(d=>d.isError&&Tn.canRetryRequest(d.error)),b=()=>{a.forEach(d=>{d.isError&&d.refetch()})};return{choices:c,isLoading:u,isSuccess:a.length>0&&a.every(d=>!d.isPending),failed:m,retry:b,canRetry:f}}const Di=ee.createContext(void 0);function u1({children:e,documentStorage:t}){const n=ee.useMemo(()=>({documentStorage:t}),[t]);return g.jsx(Di.Provider,{value:n,children:e})}function d1(){const e=ee.useContext(Di);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function p1(){return ee.useContext(Di)}const f1=e=>e==="notebook"?"linear":"grid",m1=(e,t)=>`${e}s/${t}.malloy`,h1=/\.malloy(nb)?$/,g1=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(h1,"")||void 0,xd=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),Sd=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${xd(n)}`,wd="edit",y1=(e,t,n)=>`${Sd(e,t,n)}?${wd}`,Cd=e=>e.layout==="linear"?"linear":"grid",Pd=e=>({layout:Cd(e),path:e.path,editable:e.editable!==!1});function Ri(e,t){const n=t.find(r=>r.path===e);return n?.path?Pd({...n,path:n.path}):void 0}function kd(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function b1(e,t){if(!kd(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=Ri(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}function v1(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[rd({environmentName:e,packageName:t,modelPath:n})]]]}function x1(e,t,n,r){for(const o of[["report"],["reports"],...v1(t,n,r)])e.invalidateQueries({queryKey:o})}const S1=(e,t,n)=>["reports",e,t,n];async function w1(e,t,n,r){try{return(await e.reports.listReports(t,n,r)).data}catch(o){if(o?.response?.status===404)return[];throw o}}function Md(e,t,n,r=!0){const{apiClients:o}=Ve.useServer(),s=_o({queryKey:S1(e,t,n),queryFn:()=>w1(o,e,t,n),enabled:r,staleTime:6e4});return{reports:s.data??[],settled:s.isSuccess||s.isError,isFetching:s.isFetching,isError:s.isError,error:s.error,refetch:s.refetch}}function C1(e,t,n,r){const{reports:o,settled:s}=Md(e,t,r);return{settled:s,reports:o,location:s?Ri(n,o):void 0}}function _o(e){const{server:t}=Ve.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async r=>{try{return await e.queryFn(r)}catch(o){if(o&&typeof o=="object"&&"response"in o){const s=o;if(s.response?.data){const i=new Error(s.response.data.message||s.message);throw i.status=s.response.status,i.data=s.response.data,i}}throw o}},retry:!1,throwOnError:!1};return go.useQuery(n,Ve.globalQueryClient)}function P1(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 go.useMutation(t,Ve.globalQueryClient)}function Td(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function k1(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function Ii(e,{enabled:t=!0}={}){const{apiClients:n}=Ve.useServer();return _o({queryKey:Td(e),queryFn:({signal:r})=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId},void 0,{signal:r}),enabled:t,...Ve.CHART_RESULT_QUERY_OPTIONS})}const M1=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function Dd(e){let t=!1;for(const[n,r]of Array.from(e.entries())){if(r.deleted)continue;if(n==="image"||n==="link"){e.delete(n),t=!0;continue}if(n==="label"){let s;try{s=e.text("label")}catch{s=void 0}if(s!==void 0&&M1.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])Dd(s)&&(t=!0)}return t}function T1(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=_d.parseAnnotation(t)}catch{return""}return n.log.length>0?"":Dd(n.tag)?`${n.tag.toString()}
139
+ `:e}function ws(e){if(Array.isArray(e)){for(const n of e)ws(n);return}if(e===null||typeof e!="object")return;const t=e;for(const[n,r]of Object.entries(t))if(n==="annotations"&&Array.isArray(r))for(const o of r){const s=o;typeof s?.value=="string"&&(s.value=T1(s.value))}else ws(r)}function Rd(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);ws(t);const r=JSON.stringify(t);return r===n?e:r}const D1=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"]),R1={value:`# big_value
140
+ `},I1=/^#\(malloy\)[\s\S]*\bcalculation\b/;function E1(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&I1.test(t.value.trim())):!1}function O1(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(E1))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 $1(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(D1.has(o))return!0}return!1}function Id(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!O1(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return $1(r)?e:JSON.stringify({...t,annotations:[R1,...n]})}const A1=e=>Rd(Id(e));function Cs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?zs(t):e}function Ed({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,annotation:i,label:a,subtitle:l,heading:c,borderless:u,givens:m,hostGivens:f,declaredTypes:b,givenNames:d,height:p,maxResultSize:h,drill:S,onExplore:C,chrome:w="card",ignoredFilters:x,preamble:T,restricted:k,index:O}){const{theme:I}=Ve.usePublisherTheme(),[N,L]=Hm(),R=Ii({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?Hs(T??"",`${i?`${i}
141
+ `:""}run: ${s}`):void 0,givens:Ws(Ro(m,b,d),f,d)},{enabled:L&&k!==!0}),{emit:y}=Do(),E=R.isError?R.error:void 0;ee.useEffect(()=>{E!==void 0&&y({type:"report.query_failed",...O!==void 0?{tile:O}:{},category:ql(E)})},[E,y,O]);const D=k===!0||T!==void 0&&R.isError&&xh(R.error);return g.jsxs(Fs,{cardRef:N,borderless:u,chrome:w,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${Os}`,...$s,...Ql},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&g.jsx(Jl,{title:c?.title??a??Cs(s),subtitle:c?c.subtitle:l,quiet:w==="none",tooltip:s,action:C&&g.jsx(Q.Tooltip,{title:"Explore from here",children:g.jsx(Q.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??Cs(s)}`,onClick:C,sx:{mt:-.5,mr:-.5,color:I.tileTitle},children:g.jsx(zm,{fontSize:"small"})})})}),x&&g.jsx(Qu,{ignored:x}),D?g.jsx(Q.Box,{sx:{p:2},children:g.jsx(Q.Typography,{variant:"body2",role:"status",color:"text.secondary",children:fc})}):g.jsx(Pi,{fill:!0,state:R,context:s??o??r,maxHeight:p,maxResultSize:h,drill:S,transform:T!==void 0?s!==void 0?A1:Rd:s!==void 0?Id:void 0})]})}function F1(e,{enabled:t=!0}={}){const{apiClients:n}=Ve.useServer();return _o({queryKey:["compiled-document",e.environmentName,e.packageName,e.modelPath,e.source,e.givens??null],queryFn:async()=>{const r=(await n.models.compileModelSource(e.environmentName,e.packageName,e.modelPath,{source:e.source,scope:"append",...e.givens&&Object.keys(e.givens).length>0?{givens:e.givens}:{}})).data;return{document:r.document,result:r}},enabled:t})}exports.AdapterDayjs=ao;exports.AddButton=Um;exports.AddIcon=Vl;exports.ApiErrorDisplay=nc;exports.AppDialog=Xl;exports.ArrowDropDownIcon=bu;exports.BARE_DESCRIPTION_MARGIN_PX=Hl;exports.BARE_RING_OFFSET_PX=Wl;exports.Button=sr;exports.ButtonBase=Fn;exports.CheckIcon=_P;exports.Chip=au;exports.CircularProgress=ti;exports.ClassNameGenerator=xl;exports.CloseIcon=Es;exports.DASHBOARD_CARD_PADDING_PX=As;exports.DEFAULT_COLUMNS=zl;exports.DRILL_SELF=Kr;exports.DashboardGrid=Ul;exports.DashboardProse=ed;exports.DashboardTile=Ed;exports.DashboardView=zP;exports.DatePicker=xr;exports.DeleteOutlineIcon=Pm;exports.DocumentNotFoundError=sd;exports.DocumentStorageProvider=u1;exports.ErrorDetailAlert=tc;exports.FloatingIconButton=Gu;exports.FormControl=yi;exports.GRID_GAP_PX=an;exports.GivenInput=Lu;exports.GivensPanel=Nu;exports.Grow=gr;exports.INITIAL_RENDER_HEIGHT=xs;exports.IconButton=Ir;exports.InfoOutlinedIcon=Yu;exports.InputLabel=gi;exports.LOADING_COPY=ho;exports.ListContext=In;exports.Loading=Ci;exports.LocalizationProvider=hr;exports.MAX_SLUG_ATTEMPTS=Ti;exports.MODEL_CELL_MAX_HEIGHT=MP;exports.MOTION_FAST=Os;exports.NOTEBOOK_CELL_MAX_HEIGHT=kP;exports.NOTEBOOK_GAP_PX=_l;exports.Paper=Er;exports.Popper=Zc;exports.Prose=ec;exports.REPORT_EDIT_PARAM=wd;exports.RESTRICTED_NOTICE=fc;exports.RESULTS_DIALOG_MAX_HEIGHT=TP;exports.ReportEventsContext=Kl;exports.ResultContainer=Ku;exports.ResultPanel=Pi;exports.STICKY_CONTROLS_Z=Zu;exports.SecondaryButton=Ym;exports.Select=xi;exports.StickyControls=td;exports.SvgIcon=oo;exports.THEME_ID=Vn;exports.TILE_MAX_HEIGHT=Bu;exports.TILE_MIN_HEIGHT=Zl;exports.TextField=vu;exports.TileCard=Fs;exports.TileFilterTag=Qu;exports.TileHeading=Jl;exports.Typography=Gt;exports.UNCAPPED_CONTAINER_HEIGHT=Vu;exports.UnsavedChangesDialog=Cm;exports.annotationTextProblem=Ls;exports.buildTableCssVars=Dm;exports.capitalize=le;exports.chooseWorkspace=HP;exports.clsx=de;exports.composeClasses=he;exports.contentNode=ju;exports.contentNodeDepth=CP;exports.createDocument=i1;exports.createRoute=s1;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=Ue;exports.createTheme=Fl;exports.dangerTextColor=Mm;exports.dayjs=De;exports.documentPreamble=vh;exports.documentSlug=g1;exports.draftKey=gd;exports.drillDestinations=Vs;exports.drillValueToFilter=Mr;exports.emphasize=Ml;exports.encodeDrillValue=ac;exports.encodeResourceUri=rd;exports.escapeMalloyString=_u;exports.expectedHashFor=UP;exports.exportedSources=vd;exports.extractEventHandlers=Gs;exports.failureCategory=ql;exports.filledInputClasses=Ht;exports.formControlState=hn;exports.generateUtilityClass=ge;exports.generateUtilityClasses=me;exports.getAugmentedNamespace=Ud;exports.getDefaultExportFromCjs=Lt;exports.getReactElementRef=zn;exports.givensToParams=dc;exports.givensToRequest=Ro;exports.humanizeSlug=zs;exports.initialResultHeight=zu;exports.inputBaseClasses=pn;exports.inputClasses=Pn;exports.invalidateReportQueries=x1;exports.isDocumentNotFound=id;exports.isDrillTargetPath=kd;exports.layoutOfKind=f1;exports.legacyNamedPath=m1;exports.listedLayout=Cd;exports.loadMalloy=jm;exports.loadMalloyRenderer=Hu;exports.loadMalloyTag=Bm;exports.loadQueryBuilder=Vm;exports.locateReport=Ri;exports.locatedReport=Pd;exports.locatorFor=yd;exports.malloyLiteral=Wu;exports.measureContentHeight=PP;exports.memoTheme=Ie;exports.mergeSlotProps=Bl;exports.modelResultsKey=k1;exports.newDashboardSource=o1;exports.newDocumentProblem=ki;exports.newNotebookSource=n1;exports.now=wr;exports.nudgedSpan=vm;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseResourceUri=nd;exports.queryResultKey=Td;exports.reducedMotionSx=$s;exports.remeasuresAfterReady=wP;exports.renderGivenDefault=Fu;exports.reportEditRoute=y1;exports.reportEmitter=so;exports.reportPathFor=fd;exports.reportPathForTitle=hd;exports.reportPathProblem=bd;exports.reportRoute=Sd;exports.reportRoutePath=xd;exports.resolveDrill=ic;exports.resolveDrillTarget=b1;exports.resolveEditorTarget=QP;exports.resolveResultHeight=Ss;exports.resultSizing=SP;exports.rootShouldForwardProp=pt;exports.saveCaption=YP;exports.saveTarget=od;exports.scrollBehavior=km;exports.setRef=ls;exports.slugFor=dd;exports.slugOrFallback=md;exports.storageErrorMessage=GP;exports.styled=U;exports.tileIgnoredFilterLabels=Xu;exports.tileTitle=Cs;exports.typographyClasses=Fg;exports.useCompiledDocument=F1;exports.useControlled=Tt;exports.useDefaultProps=we;exports.useDocumentChoices=c1;exports.useDocumentControls=gc;exports.useDocumentLocation=C1;exports.useDocumentStorage=d1;exports.useDrill=yc;exports.useDrillSelf=lc;exports.useEnhancedEffect=He;exports.useEventCallback=ue;exports.useForkRef=Pe;exports.useFormControl=ft;exports.useGivensState=pc;exports.useId=xt;exports.useMutationWithApiError=P1;exports.useOptionalDocumentStorage=p1;exports.useQueryResult=Ii;exports.useQueryWithApiError=_o;exports.useReportEmitter=wm;exports.useReportEvents=Do;exports.useReportListing=Md;exports.useSlot=Le;exports.useSuggestOptions=hc;exports.useTheme=fn;exports.useTimeout=Ys;exports.utc=js;exports.visibleWithoutHoverSx=Ql;exports.withPreamble=Hs;exports.withReportContext=Yl;exports.withSource=JP;exports.withWorkspace=XP;exports.writePackageFile=qP;