@recursica/mui-adapter 0.19.1 → 0.21.1

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 (156) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/index.d.ts +2874 -2
  3. package/dist/mui-adapter.cjs +89 -58
  4. package/dist/mui-adapter.cjs.map +1 -1
  5. package/dist/mui-adapter.css +1 -1
  6. package/dist/mui-adapter.js +26163 -8727
  7. package/dist/mui-adapter.js.map +1 -1
  8. package/package.json +8 -2
  9. package/src/components/Box/USAGE.md +1 -1
  10. package/src/components/Button/BUTTON_IMPLEMENTATION_NOTES.md +22 -0
  11. package/src/components/Button/Button.module.css +10 -7
  12. package/src/components/Button/Button.tsx +4 -0
  13. package/src/components/Button/USAGE.md +1 -13
  14. package/src/components/Card/USAGE.md +1 -13
  15. package/src/components/Container/USAGE.md +1 -1
  16. package/src/components/Dropdown/BareDropdown.tsx +135 -0
  17. package/src/components/Dropdown/Dropdown.tsx +16 -0
  18. package/src/components/Grid/USAGE.md +6 -10
  19. package/src/components/Loader/USAGE.md +1 -23
  20. package/src/components/Menu/USAGE.md +0 -7
  21. package/src/components/Pagination/USAGE.md +0 -6
  22. package/src/components/Panel/USAGE.md +1 -58
  23. package/src/components/Stepper/USAGE.md +0 -7
  24. package/src/components/Tabs/USAGE.md +0 -7
  25. package/src/components/TimePicker/TIMEPICKER_IMPLEMENTATION_NOTES.md +68 -0
  26. package/src/components/TimePicker/TimePicker.module.css +213 -37
  27. package/src/components/TimePicker/TimePicker.stories.tsx +119 -4
  28. package/src/components/TimePicker/TimePicker.tsx +257 -8
  29. package/src/components/TimePicker/USAGE.md +27 -2
  30. package/src/components/Tree/IMPLEMENTATION_NOTES.md +28 -1
  31. package/src/components/Tree/Tree.module.css +114 -69
  32. package/src/components/Tree/Tree.stories.tsx +13 -0
  33. package/src/components/Tree/Tree.tsx +99 -32
  34. package/src/components/Tree/USAGE.md +18 -2
  35. package/src/index.ts +1 -0
  36. package/dist/src/OverStyling.d.ts +0 -1
  37. package/dist/src/Version.d.ts +0 -1
  38. package/dist/src/components/Accordion/Accordion.d.ts +0 -77
  39. package/dist/src/components/Accordion/index.d.ts +0 -1
  40. package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +0 -7
  41. package/dist/src/components/AssistiveElement/index.d.ts +0 -1
  42. package/dist/src/components/Autocomplete/Autocomplete.d.ts +0 -24
  43. package/dist/src/components/Autocomplete/index.d.ts +0 -1
  44. package/dist/src/components/Avatar/Avatar.d.ts +0 -25
  45. package/dist/src/components/Avatar/index.d.ts +0 -1
  46. package/dist/src/components/Badge/Badge.d.ts +0 -25
  47. package/dist/src/components/Badge/index.d.ts +0 -1
  48. package/dist/src/components/Box/Box.d.ts +0 -8
  49. package/dist/src/components/Box/index.d.ts +0 -1
  50. package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +0 -20
  51. package/dist/src/components/Breadcrumb/index.d.ts +0 -1
  52. package/dist/src/components/Button/Button.d.ts +0 -37
  53. package/dist/src/components/Button/index.d.ts +0 -1
  54. package/dist/src/components/Card/Card.d.ts +0 -81
  55. package/dist/src/components/Card/index.d.ts +0 -1
  56. package/dist/src/components/Checkbox/Checkbox.d.ts +0 -14
  57. package/dist/src/components/Checkbox/CheckboxGroup.d.ts +0 -29
  58. package/dist/src/components/Checkbox/index.d.ts +0 -5
  59. package/dist/src/components/Chip/Chip.d.ts +0 -21
  60. package/dist/src/components/Chip/index.d.ts +0 -1
  61. package/dist/src/components/Container/Container.d.ts +0 -5
  62. package/dist/src/components/Container/index.d.ts +0 -1
  63. package/dist/src/components/DatePicker/DatePicker.d.ts +0 -20
  64. package/dist/src/components/DatePicker/index.d.ts +0 -1
  65. package/dist/src/components/Dropdown/Dropdown.d.ts +0 -24
  66. package/dist/src/components/Dropdown/index.d.ts +0 -1
  67. package/dist/src/components/FileInput/FileInput.d.ts +0 -3
  68. package/dist/src/components/FileInput/index.d.ts +0 -1
  69. package/dist/src/components/FileUpload/FileUpload.d.ts +0 -3
  70. package/dist/src/components/FileUpload/index.d.ts +0 -1
  71. package/dist/src/components/Flex/Flex.d.ts +0 -5
  72. package/dist/src/components/Flex/index.d.ts +0 -1
  73. package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +0 -6
  74. package/dist/src/components/FormControlLayout/index.d.ts +0 -1
  75. package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +0 -11
  76. package/dist/src/components/FormControlWrapper/index.d.ts +0 -1
  77. package/dist/src/components/Grid/Grid.d.ts +0 -12
  78. package/dist/src/components/Grid/index.d.ts +0 -1
  79. package/dist/src/components/Group/Group.d.ts +0 -5
  80. package/dist/src/components/Group/index.d.ts +0 -1
  81. package/dist/src/components/HoverCard/HoverCard.d.ts +0 -29
  82. package/dist/src/components/HoverCard/index.d.ts +0 -1
  83. package/dist/src/components/Label/Label.d.ts +0 -7
  84. package/dist/src/components/Label/index.d.ts +0 -1
  85. package/dist/src/components/Link/Link.d.ts +0 -20
  86. package/dist/src/components/Link/index.d.ts +0 -1
  87. package/dist/src/components/Loader/Loader.d.ts +0 -5
  88. package/dist/src/components/Loader/index.d.ts +0 -1
  89. package/dist/src/components/Menu/Menu.d.ts +0 -54
  90. package/dist/src/components/Menu/index.d.ts +0 -1
  91. package/dist/src/components/Modal/Modal.d.ts +0 -78
  92. package/dist/src/components/Modal/index.d.ts +0 -1
  93. package/dist/src/components/NumberInput/NumberInput.d.ts +0 -24
  94. package/dist/src/components/NumberInput/index.d.ts +0 -1
  95. package/dist/src/components/Pagination/Pagination.d.ts +0 -23
  96. package/dist/src/components/Pagination/Pagination.icons.d.ts +0 -8
  97. package/dist/src/components/Pagination/index.d.ts +0 -1
  98. package/dist/src/components/Panel/Panel.d.ts +0 -52
  99. package/dist/src/components/Panel/index.d.ts +0 -1
  100. package/dist/src/components/Radio/Radio.d.ts +0 -13
  101. package/dist/src/components/Radio/RadioGroup.d.ts +0 -9
  102. package/dist/src/components/Radio/index.d.ts +0 -2
  103. package/dist/src/components/ReadOnlyField/ReadOnlyBooleanField.d.ts +0 -5
  104. package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +0 -5
  105. package/dist/src/components/ReadOnlyField/ReadOnlySwitchField.d.ts +0 -5
  106. package/dist/src/components/ReadOnlyField/ReadOnlyTextField.d.ts +0 -8
  107. package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +0 -28
  108. package/dist/src/components/ReadOnlyField/index.d.ts +0 -2
  109. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +0 -32
  110. package/dist/src/components/SegmentedControl/index.d.ts +0 -1
  111. package/dist/src/components/Slider/Slider.d.ts +0 -30
  112. package/dist/src/components/Slider/index.d.ts +0 -1
  113. package/dist/src/components/Stack/Stack.d.ts +0 -5
  114. package/dist/src/components/Stack/index.d.ts +0 -1
  115. package/dist/src/components/Stepper/Stepper.d.ts +0 -97
  116. package/dist/src/components/Stepper/index.d.ts +0 -1
  117. package/dist/src/components/Switch/Switch.d.ts +0 -10
  118. package/dist/src/components/Switch/SwitchGroup.d.ts +0 -24
  119. package/dist/src/components/Switch/index.d.ts +0 -2
  120. package/dist/src/components/Table/Table.d.ts +0 -154
  121. package/dist/src/components/Table/index.d.ts +0 -1
  122. package/dist/src/components/Tabs/Tabs.d.ts +0 -57
  123. package/dist/src/components/Tabs/index.d.ts +0 -1
  124. package/dist/src/components/Text/Text.d.ts +0 -20
  125. package/dist/src/components/Text/index.d.ts +0 -1
  126. package/dist/src/components/TextArea/TextArea.d.ts +0 -24
  127. package/dist/src/components/TextArea/index.d.ts +0 -1
  128. package/dist/src/components/TextField/TextField.d.ts +0 -24
  129. package/dist/src/components/TextField/index.d.ts +0 -1
  130. package/dist/src/components/TimePicker/TimePicker.d.ts +0 -4
  131. package/dist/src/components/TimePicker/index.d.ts +0 -1
  132. package/dist/src/components/Timeline/Timeline.d.ts +0 -16
  133. package/dist/src/components/Timeline/TimelineItem.d.ts +0 -29
  134. package/dist/src/components/Timeline/index.d.ts +0 -2
  135. package/dist/src/components/Title/Title.d.ts +0 -21
  136. package/dist/src/components/Title/index.d.ts +0 -1
  137. package/dist/src/components/Toast/Toast.d.ts +0 -32
  138. package/dist/src/components/Toast/index.d.ts +0 -1
  139. package/dist/src/components/Tooltip/Tooltip.d.ts +0 -28
  140. package/dist/src/components/Tooltip/index.d.ts +0 -1
  141. package/dist/src/components/TransferList/TransferList.d.ts +0 -4
  142. package/dist/src/components/TransferList/index.d.ts +0 -1
  143. package/dist/src/components/Tree/Tree.d.ts +0 -13
  144. package/dist/src/components/Tree/index.d.ts +0 -1
  145. package/dist/src/components/Typography/Typography.d.ts +0 -38
  146. package/dist/src/components/Typography/index.d.ts +0 -1
  147. package/dist/src/components/index.d.ts +0 -50
  148. package/dist/src/index.d.ts +0 -91
  149. package/dist/src/types/index.d.ts +0 -6
  150. package/dist/src/utils/ColorSchemeWrapper.d.ts +0 -3
  151. package/dist/src/utils/RequireAccessibleLabel.d.ts +0 -1
  152. package/dist/src/utils/copyToClipboard.d.ts +0 -8
  153. package/dist/src/utils/filterStylingProps.d.ts +0 -29
  154. package/dist/src/utils/index.d.ts +0 -1
  155. package/dist/vite.config.d.ts +0 -2
  156. package/dist/vitest.workspace.d.ts +0 -2
@@ -1,23 +1,23 @@
1
- "use strict";var Ql=Object.defineProperty;var Jl=(e,t,n)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>Jl(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),O=require("react"),H=require("@mui/material"),kt=require("@emotion/react"),Zl=require("@emotion/styled"),$n=require("react-dom");var No=typeof document<"u"?document.currentScript:null;function ec(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const k=ec(O),tc=["className","classes","style","sx","color","bgcolor","backgroundColor","typography","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderRadius","boxShadow","display","position","zIndex"],nc=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),Re={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function In(e){const t={...e};return"sx"in t&&delete t.sx,t}function X(e,t){if(t)return e;const n={...e};for(const o of tc)o in n&&delete n[o];for(const[o,r]of Object.entries(n))typeof r=="string"&&r.startsWith("rec-")&&nc.has(o)&&r in Re&&(n[o]=Re[r]);return n}const oc="Accordion-module__root___Dem6d",rc="Accordion-module__item___7ryVk",sc="Accordion-module__noDivider___Ni2tT",ic="Accordion-module__control___b4wgX",ac="Accordion-module__label___Ss7uW",lc="Accordion-module__chevron___i-HVZ",cc="Accordion-module__iconLeftWrapper___5oLen",uc="Accordion-module__panel___Wx50w",dc="Accordion-module__content___PEM9t",mt={root:oc,item:rc,noDivider:sc,control:ic,label:ac,chevron:lc,iconLeftWrapper:cc,panel:uc,content:dc},pc=()=>g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{width:"100%",height:"100%"},children:g.jsx("polyline",{points:"6 9 12 15 18 9"})}),ur=O.createContext(null),Ni=O.forwardRef(function({variant:t="unstyled",overStyled:n=!1,value:o,defaultValue:r,onChange:s,multiple:i=!1,chevron:a,children:u,...c},p){const f=X(c,n),h=f.className,d=[mt.root,h].filter(Boolean).join(" ")||void 0,[y,m]=O.useState(r!==void 0?r:i?[]:null),v=o!==void 0?o:y,_=S=>{let E;if(i){const C=Array.isArray(v)?v:v?[v]:[];E=C.includes(S)?C.filter(x=>x!==S):[...C,S]}else E=v===S?null:S;m(E),s==null||s(E)};return g.jsx(ur.Provider,{value:{value:v,onChange:_,chevron:a},children:g.jsx("div",{ref:p,className:d,"data-variant":t,...f,children:u})})});Ni.displayName="Accordion";const dr=O.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:r,value:s,overStyled:i=!1,style:a,...u},c){const p=X(u,i),f=p.className,h=[mt.item,o?void 0:mt.noDivider,f].filter(Boolean).join(" ")||void 0,d=O.useContext(ur),y=d?Array.isArray(d.value)?d.value.includes(s):d.value===s:void 0,m=()=>{d==null||d.onChange(s)},v={backgroundColor:"transparent",...a};return g.jsx(H.Accordion,{ref:c,className:h,disableGutters:!0,elevation:0,square:!0,expanded:y,onChange:m,style:v,...p,children:t?g.jsxs(g.Fragment,{children:[g.jsx(so,{leftIcon:n,children:t}),g.jsx(io,{children:r})]}):r})});dr.displayName="AccordionItem";const so=O.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...r},s){const i=X(r,o),a=i.className,u=[mt.control,a].filter(Boolean).join(" ")||void 0,c=O.useContext(ur),p=(c==null?void 0:c.chevron)??g.jsx(pc,{});return g.jsxs(H.AccordionSummary,{ref:s,className:u,expandIcon:g.jsx("span",{className:mt.chevron,children:p}),...i,children:[t&&g.jsx("span",{className:mt.iconLeftWrapper,"aria-hidden":!0,children:t}),g.jsx("div",{className:mt.label,children:n})]})});so.displayName="AccordionControl";const io=O.forwardRef(function({overStyled:t=!1,children:n,...o},r){const s=X(o,t),i=s.className,a=[mt.panel,i].filter(Boolean).join(" ")||void 0;return g.jsx(H.AccordionDetails,{ref:r,className:a,...s,children:g.jsx("div",{className:mt.content,children:n})})});io.displayName="AccordionPanel";const ao=Ni;ao.Item=dr;ao.Control=so;ao.Panel=io;const fc="AssistiveElement-module__root___WhQ43",mc="AssistiveElement-module__text___vrHAg",hc="AssistiveElement-module__icon___Q-CVz",Rn={root:fc,text:mc,icon:hc},pr=O.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:r=!0,overStyled:s=!1,className:i,children:a,...u}=t,c=X(u,s),p=()=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("circle",{cx:"12",cy:"12",r:"10"}),g.jsx("path",{d:"M12 16v-4"}),g.jsx("path",{d:"M12 8h.01"})]}),f=()=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),g.jsx("path",{d:"M12 9v4"}),g.jsx("path",{d:"M12 17h.01"})]}),h=o==="error";return g.jsxs(H.FormHelperText,{ref:n,component:"div",error:h,"data-variant":o,className:i?`${Rn.root} ${i}`:Rn.root,...c,children:[r&&g.jsx("div",{className:Rn.icon,children:o==="error"?g.jsx(f,{}):g.jsx(p,{})}),g.jsx("div",{className:Rn.text,children:a})]})});pr.displayName="AssistiveElement";const gc="Label-module__root___e6HXZ",yc="Label-module__innerLayout___Xxapo",bc="Label-module__text___OGeEw",vc="Label-module__required___Ggrzc",_c="Label-module__endNodes___es7ew",xc="Label-module__optionalText___Y2yun",Cc="Label-module__actionArea___O-f1X",Sc="Label-module__editIcon___9hO1G",nt={root:gc,innerLayout:yc,text:bc,required:vc,endNodes:_c,optionalText:xc,actionArea:Cc,editIcon:Sc},fr=O.forwardRef(function(t,n){const{overStyled:o=!1,required:r=!1,labelOptionalText:s="",labelWithEditIcon:i=!1,onLabelEditClick:a,labelActionArea:u,children:c,className:p,...f}=t,h=X(f,o),d=()=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("path",{d:"M12 20h9"}),g.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return g.jsx(H.InputLabel,{ref:n,shrink:!0,className:p?`${nt.root} ${p}`:nt.root,...h,children:g.jsxs("div",{className:nt.innerLayout,children:[g.jsxs("span",{className:nt.textWrapper,children:[g.jsx("span",{className:nt.text,children:c}),r&&g.jsx("span",{className:nt.required,children:" *"})]}),g.jsxs("div",{className:nt.endNodes,children:[u&&g.jsx("span",{className:nt.actionArea,children:u}),!r&&s&&!u&&g.jsx("span",{className:nt.optionalText,children:s===!0?"Optional":s}),i&&g.jsx("button",{type:"button",className:nt.editIcon,onClick:a,"aria-label":"Edit label",children:g.jsx(d,{})})]})]})})});fr.displayName="Label";const Ic="FormControlLayout-module__root___yNDhZ",Tc="FormControlLayout-module__leftSection___GBM1r",Ec="FormControlLayout-module__rightSection___bcL4v",dn={root:Ic,leftSection:Tc,rightSection:Ec},yt=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s="default",controlMaxWidth:i,controlMinWidth:a,leftSection:u,className:c,children:p,style:f,...h}=t,d=X(h,o);return g.jsxs("div",{ref:n,className:c?`${dn.root} ${c}`:dn.root,"data-form-layout":r,style:{...f,...i?{"--form-control-max-width":i}:{},...a?{"--form-control-min-width":a}:{}},...d,children:[r==="side-by-side"?g.jsx("div",{className:dn.leftSection,"data-label-size":s,children:u}):u&&g.jsx("div",{className:dn.leftSection,"data-label-size":s,children:u}),g.jsx("div",{className:dn.rightSection,children:p})]})});yt.displayName="FormControlLayout";const wc="FormControlWrapper-module__root___c-UHo",Nc="FormControlWrapper-module__inputSection___HenXk",Oo={root:wc,inputSection:Nc},Nt=O.forwardRef(function(t,n){const{overStyled:o=!1,label:r,assistiveText:s,description:i,helperText:a,assistiveWithIcon:u=!0,error:c,required:p,disabled:f,focused:h,id:d,formLayout:y="stacked",labelSize:m="default",labelOptionalText:v,labelWithEditIcon:_,onLabelEditClick:S,labelActionArea:E,controlMaxWidth:C,controlMinWidth:x,className:I,style:w,children:N,...L}=t,F=X(L,o),U=s||i||a,b=d?`${d}-label`:void 0,R=d?`${d}-description`:void 0,T=O.Children.map(N,j=>O.isValidElement(j)?O.cloneElement(j,{"aria-labelledby":b,"aria-describedby":U?R:void 0}):j);return g.jsx(H.FormControl,{ref:n,error:!!c,required:p,disabled:f,focused:h,className:I?`${Oo.root} ${I}`:Oo.root,style:w,"data-error":c?"true":void 0,"data-disabled":f?"true":void 0,"data-focused":h?"true":void 0,...F,children:g.jsx(yt,{formLayout:y,labelSize:m,controlMaxWidth:C,controlMinWidth:x,leftSection:r&&g.jsx(fr,{id:b,htmlFor:d,required:p,labelOptionalText:v,labelWithEditIcon:_,onLabelEditClick:S,labelActionArea:E,children:r}),children:g.jsxs("div",{className:Oo.inputSection,children:[T,(U||c)&&g.jsx(pr,{id:R,assistiveVariant:c?"error":"help",assistiveWithIcon:u,children:c&&typeof c=="string"?c:U})]})})})});Nt.displayName="FormControlWrapper";const Oc="ReadOnlyField-module__root___hKci7",$c="ReadOnlyField-module__text___bPxk9",Gt={root:Oc,text:$c},mr=O.forwardRef(function(t,n){const{value:o,type:r="text",readOnlyComponent:s,emptyValueComponent:i,className:a,...u}=t;if(i&&typeof i!="string"){const f=i;if(f.check&&f.check(o))return g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx(f,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx("p",{className:Gt.text,children:"N/A"})});if(s){const f=s;return g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx(f,{value:o})})}let p=o;return r==="boolean"||r==="switch"?(p=o?"True":"False",r==="switch"&&(p=o?"On":"Off")):Array.isArray(o)?p=o.join(", "):p=String(o),g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx("p",{className:Gt.text,children:p})})});mr.displayName="ReadOnlyField";const it=O.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:r,readOnlyNativeProps:s,emptyValueComponent:i,activeComponent:a,overStyled:u,onLabelEditClick:c,...p},f){if(t){if(n){const h=n;return g.jsx(Nt,{ref:f,...p,onLabelEditClick:c,overStyled:u,children:g.jsx(h,{...s})})}return g.jsx(mr,{ref:f,type:o,value:r,emptyValueComponent:i,onLabelEditClick:c,overStyled:u,...p})}return g.jsx(Nt,{ref:f,...p,onLabelEditClick:c,overStyled:u,children:a})});it.displayName="WithReadOnlyWrapper";const Rc="Autocomplete-module__layoutOverride___IIkyG",kc="Autocomplete-module__root___22Jqm",Mc="Autocomplete-module__input___MlbJR",Pc="Autocomplete-module__dropdown___A9XVI",Ac="Autocomplete-module__option___cZsvO",Le={layoutOverride:Rc,root:kc,input:Mc,dropdown:Pc,option:Ac},Oi=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,withAsterisk:m,id:v,className:_,style:S,disabled:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,data:L,leftSection:F,rightSection:U,placeholder:b,ListboxProps:R,...T}=t,V=X(T,o);delete V.size,delete V.variant,delete V.radius;const K={root:Le.root,inputRoot:Le.input,listbox:Le.dropdown,option:Le.option},se=V.classNames;if(se&&typeof se=="object"&&!Array.isArray(se)){const M=se;K.root=M.wrapper?`${Le.root} ${M.wrapper}`:Le.root,K.inputRoot=M.input?`${Le.input} ${M.input}`:Le.input,K.listbox=M.dropdown?`${Le.dropdown} ${M.dropdown}`:Le.dropdown,K.option=M.option?`${Le.option} ${M.option}`:Le.option}const oe=_?`${Le.layoutOverride} ${_}`:Le.layoutOverride;return g.jsx(it,{className:oe,style:S,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:!!d,required:y,id:v,disabled:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:K,disabled:E,value:w,defaultValue:N,forcePopupIcon:!1,"data-error":d?"true":void 0,"data-disabled":E?"true":void 0,"data-with-left-section":F?"true":void 0,"data-with-right-section":U?"true":void 0,ListboxProps:{...R,className:K.listbox},options:L||[],renderInput:M=>{const{InputProps:z,...Q}=M;return g.jsx(H.TextField,{...Q,placeholder:b,variant:"standard"})}})})});Oi.displayName="Autocomplete";const jc="Avatar-module__root___fXu-J",Lc="Avatar-module__iconWrapper___ojly2",Dc="Avatar-module__textWrapper___zp-jD",Vc="Avatar-module__image___ieqGp",Bc="Avatar-module__placeholder___IDW7-",Qe={root:jc,iconWrapper:Lc,textWrapper:Dc,image:Vc,placeholder:Bc},$i=O.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:r,src:s,overStyled:i=!1,...a},u){const c={solid:"filled",outline:"outline",ghost:"transparent"},p=X(a,i),f=p;let h="text";s?h="image":o&&(h="icon");const d={root:Qe.root,image:Qe.image,placeholder:Qe.placeholder},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const v=y;d.root=v.root?`${Qe.root} ${v.root}`:Qe.root,d.image=v.image?`${Qe.image} ${v.image}`:Qe.image,d.placeholder=v.placeholder?`${Qe.placeholder} ${v.placeholder}`:Qe.placeholder}const m=f.className;return g.jsx(H.Avatar,{ref:u,className:m,classes:d,variant:c[n],src:s,"data-variant":n,"data-size":t,"data-style":h,...p,children:o!=null?g.jsx("span",{className:Qe.iconWrapper,"aria-hidden":!0,children:o}):r!=null?g.jsx("span",{className:Qe.textWrapper,children:r}):void 0})});$i.displayName="Avatar";const Fc=$i,zc="Badge-module__root___5osNT",ct={root:zc},Ri=O.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},r){const s=X(o,n),i={root:ct.root,section:ct.section,label:ct.label},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const p=a;i.root=p.root?`${ct.root} ${p.root}`:ct.root,i.section=p.section??ct.section,i.label=p.label??ct.label}const u=s.className,c=u?`${ct.root} ${u}`:ct.root;return g.jsx(H.Badge,{ref:r,variant:"standard","data-variant":t,...s,className:c,classes:i})});Ri.displayName="Badge";const Wc=Ri,Uc=O.forwardRef(function(t,n){return g.jsx(H.Box,{ref:n,...t})}),Gc="Breadcrumb-module__root___x-9ln",qc="Breadcrumb-module__separator___qrUX-",xt={root:Gc,separator:qc},ki=O.forwardRef(function({overStyled:t=!1,separator:n=">",...o},r){const s=X({separator:n,...o},t),i={root:xt.root,separator:xt.separator},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const p=a;i.root=p.root?`${xt.root} ${p.root}`:xt.root,i.separator=p.separator?`${xt.separator} ${p.separator}`:xt.separator}const u=s.className,c=u?`${xt.root} ${u}`:xt.root;return g.jsx(H.Breadcrumbs,{ref:r,...s,className:c,classes:i})});ki.displayName="Breadcrumb";const Hc="Loader-module__root___6iYOP",ls={root:Hc},hr=O.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...r},s){const a={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",u=X(r,o),c=u.className,p=c?`${ls.root} ${c}`:ls.root,f=()=>t==="bars"||t==="dots"?g.jsxs(g.Fragment,{children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]}):null;return g.jsx("span",{ref:s,"data-variant":t,"data-size":a,...u,className:p,children:f()})});hr.displayName="Loader";const Kc="Button-module__root___Q2R8-",Yc="Button-module__labelText___rFV5p",Xc="Button-module__iconWrapper___uEKPa",pn={root:Kc,labelText:Yc,iconWrapper:Xc};function Qc(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const Mi=O.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:r,overStyled:s=!1,loaderVariant:i="oval",loaderSize:a,useRecursicaLoader:u=!0,...c},p){const f=X(c,s),h=f;delete h.color;const d=!!o||!!h.startIcon,y=!!h.endIcon,m=Qc(r),v=(d||y)&&!m;let _="label";v?_="icon-only":(d||y)&&(_="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&v&&!h["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const S=h.className,E=S?`${pn.root} ${S}`:pn.root,C=a??(n==="small"?"small":"default");let x=h.loadingIndicator;return u&&(x=g.jsx(hr,{variant:i,size:C})),g.jsx(H.Button,{ref:p,disableRipple:!0,disableElevation:!0,className:E,loading:!!h.loading,loadingIndicator:x,fullWidth:!!h.fullWidth,startIcon:h.loading?g.jsx("span",{className:pn.iconWrapper,"aria-hidden":!0,children:x}):o!=null?g.jsx("span",{className:pn.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":_,...h.loading?{"data-loading":"true"}:{},...f,disabled:!!h.disabled||!!h.loading,children:g.jsx("span",{className:pn.labelText,children:r})})});Mi.displayName="Button";const Jc="Card-module__root___c9KvZ",Zc="Card-module__header___PTXf2",eu="Card-module__footer___Mu-JC",tu="Card-module__section___BRT8H",nu="Card-module__content___oFIQa",bt={root:Jc,header:Zc,footer:eu,section:tu,content:nu},Pi=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(c=>{c in n&&!(c in r)&&(r[c]=n[c])});const i={root:bt.root},a=r.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const c=a;Object.keys(c).forEach(p=>{i[p]?i[p]=`${i[p]} ${c[p]}`:i[p]=c[p]})}const u=r.className;return g.jsx(H.Card,{ref:o,className:u,classes:i,...r})});Pi.displayName="Card";const Ai=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.section} ${s}`:bt.section,...r})});Ai.displayName="CardSection";const ji=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.header} ${s}`:bt.header,...r})});ji.displayName="CardHeader";const Li=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.footer} ${s}`:bt.footer,...r})});Li.displayName="CardFooter";const Di=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.content} ${s}`:bt.content,...r})});Di.displayName="CardContent";const Vi=Pi,lo=Vi;lo.Section=Ai;lo.Header=ji;lo.Footer=Li;lo.Content=Di;const ou=Vi,ru="Checkbox-module__groupRoot___cBS0o",su="Checkbox-module__root___mY3qk",iu="Checkbox-module__body___5yC7q",au="Checkbox-module__inner___rTke4",lu="Checkbox-module__input___2kt-h",cu="Checkbox-module__inputChecked___zaCIH",uu="Checkbox-module__inputIndeterminate___CVPhn",du="Checkbox-module__disabled___x7-eg",pu="Checkbox-module__icon___-O7i6",fu="Checkbox-module__labelWrapper___GpZkr",mu="Checkbox-module__label___cwRtI",hu="Checkbox-module__description___rMhG1",gu="Checkbox-module__error___E-bmD",Se={groupRoot:ru,root:su,body:iu,inner:au,input:lu,inputChecked:cu,inputIndeterminate:uu,disabled:du,icon:pu,labelWrapper:fu,label:mu,description:hu,error:gu},Bi=O.createContext(null),gr=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,className:_,style:S,children:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,onChange:L,row:F,...U}=t,b=X(U,o),R=b;delete R.size;const T=(j,V)=>{L&&L(V)};return g.jsx(it,{className:_,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,readOnly:C&&!!x,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(Bi.Provider,{value:{value:w!==void 0?w:N,onChange:T,name:R.name,readOnly:C||!!R.disabled},children:g.jsx(H.FormGroup,{ref:n,row:F,...b,className:`${Se.groupRoot} ${b.className||""}`.trim(),"data-layout":r,children:E})})})});gr.displayName="CheckboxGroup";const yr=O.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:r,readOnlyComponent:s,disabled:i,formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,label:f,description:h,error:d,style:y,...m}=t,v=X(m,o),_=v;delete _.size,delete _.color;const S={root:Se.root,checked:Se.checked,disabled:Se.disabled},E=_.classes;if(E&&typeof E=="object"&&!Array.isArray(E)){const T=E;S.root=T.root?`${Se.root} ${T.root}`:Se.root,S.checked=T.checked?`${Se.checked} ${T.checked}`:Se.checked,S.disabled=T.disabled?`${Se.disabled} ${T.disabled}`:Se.disabled}const C=_.className,x=C?`${Se.root} ${C}`:Se.root,I=O.useContext(Bi),w=I!==null,N=w?I.readOnly:!1,L=w?(I.value||[]).includes(_.value):!!(_.checked??_.defaultChecked);if(r&&s){const T=s,j=g.jsx(T,{...t,checked:L,label:f});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:j}):g.jsx(g.Fragment,{children:j})}const F=T=>{if(w){const j=T.target.checked?[...I.value||[],_.value]:(I.value||[]).filter(V=>V!==_.value);I.onChange&&I.onChange(T,j)}else _.onChange&&_.onChange(T,T.target.checked)},U=T=>g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...T,children:g.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),b=g.jsx(H.Checkbox,{ref:n,className:f?Se.inner:`${x} ${Se.inner}`,classes:S,disabled:r||i||N,...v,checked:L,onChange:F,sx:f?{padding:0}:void 0,icon:g.jsx("div",{className:Se.input}),checkedIcon:g.jsx("div",{className:`${Se.input} ${Se.inputChecked}`,children:g.jsx(U,{className:Se.icon})}),indeterminateIcon:g.jsx("div",{className:`${Se.input} ${Se.inputIndeterminate}`,children:g.jsx("svg",{className:Se.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:g.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),R=f?g.jsx("div",{className:x,style:y,children:g.jsxs("div",{className:Se.body,children:[b,g.jsxs("div",{className:Se.labelWrapper,children:[g.jsx("label",{className:Se.label,htmlFor:_.id,"data-disabled":r||i||N?!0:void 0,children:f}),h&&g.jsx("div",{className:Se.description,"data-disabled":r||i||N?!0:void 0,children:h}),d&&g.jsx("div",{className:Se.error,"data-disabled":r||i||N?!0:void 0,children:d})]})]})}):g.jsx("div",{className:x,style:y,children:b});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:R}):R});yr.displayName="Checkbox";yr.Group=gr;const yu="Chip-module__root___f5pFk",bu="Chip-module__label___Ov9pg",vu="Chip-module__mantineIconWrapper___KLSz6",_u="Chip-module__innerWrapper___EnrTF",xu="Chip-module__children___zbRAR",Cu="Chip-module__leadingIcon___JBtjQ",Su="Chip-module__removeIconWrapper___VOO7u",Ae={root:yu,label:bu,mantineIconWrapper:vu,innerWrapper:_u,children:xu,leadingIcon:Cu,removeIconWrapper:Su};function Iu(e){return g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Tu(e){return g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:g.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Fi=O.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:r="Remove",children:s,checked:i,overStyled:a=!1,...u},c){const p=X(u,a),f=p,h={root:Ae.root,label:Ae.label,icon:Ae.leadingIcon,deleteIcon:Ae.removeIconWrapper},d=f.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const E=d;h.root=E.root?`${Ae.root} ${E.root}`:Ae.root,h.label=E.label?`${Ae.label} ${E.label}`:Ae.label}const y=f.className,m=y?`${Ae.root} ${y}`:Ae.root,v=t?"":void 0,_=i?"":void 0,S=!s&&(!!n||!!o);return g.jsx(H.Chip,{ref:c,className:m,classes:h,...v!==void 0?{"data-error":""}:{},..._!==void 0?{"data-checked":""}:{},...S?{"data-icon-only":""}:{},...p,icon:i?g.jsx("span",{className:Ae.mantineIconWrapper,"aria-hidden":!0,children:g.jsx(Tu,{})}):n?g.jsx("span",{className:Ae.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?g.jsx("span",{className:Ae.removeIconWrapper,children:g.jsx(Iu,{})}):void 0,label:g.jsx("span",{className:Ae.innerWrapper,children:g.jsx("span",{className:Ae.children,children:s})})})});Fi.displayName="Chip";const zi=O.forwardRef(function({children:t,size:n,fluid:o,...r},s){const i={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},a=o?!1:typeof n=="string"&&i[n]?i[n]:n;return g.jsx(H.Container,{ref:s,maxWidth:a,...r,children:t})});zi.displayName="Container";const Eu=({disabled:e,label:t,assistiveText:n,error:o,required:r,withAsterisk:s,placeholder:i,value:a,defaultValue:u,onChange:c,readOnly:p,formLayout:f,leftSection:h,labelWithEditIcon:d,onLabelEditClick:y,...m})=>g.jsx("div",{...m,children:"DatePicker"}),wu="Dropdown-module__layoutOverride___FNcvP",Nu="Dropdown-module__root___uVyL0",Ou="Dropdown-module__input___dK4dN",$u="Dropdown-module__dropdown___gG-Sw",Ru="Dropdown-module__option___nAGU-",Ct={layoutOverride:wu,root:Nu,input:Ou,dropdown:$u,option:Ru},Wi=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",containerWidth:s,labelSize:i,labelAlignment:a,labelOptionalText:u,labelWithEditIcon:c,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,withAsterisk:v,id:_,className:S,style:E,disabled:C,readOnly:x,readOnlyComponent:I,emptyValueComponent:w,value:N,defaultValue:L,data:F,searchable:U,clearable:b,...R}=t,T=X(R,o),j=T;delete j.size,delete j.variant;const V={...E||{},width:s||"100%"},K=S?`${Ct.layoutOverride} ${S}`:Ct.layoutOverride,se=()=>F?F.map((oe,M)=>typeof oe=="string"?g.jsx(H.MenuItem,{value:oe,className:Ct.option,children:oe},`${oe}-${M}`):g.jsx(H.MenuItem,{value:oe.value,disabled:oe.disabled,className:Ct.option,children:oe.label},`${oe.value}-${M}`)):null;return g.jsx(it,{className:K,style:V,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:r,labelSize:i,labelAlignment:a,labelOptionalText:u,labelWithEditIcon:c,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:d,error:!!y,required:m,id:_,readOnly:x,readOnlyComponent:I,emptyValueComponent:w,readOnlyType:"text",readOnlyValue:N!==void 0?String(N):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:g.jsx(H.Select,{ref:n,disabled:C,value:N,defaultValue:L,error:!!y,required:m,displayEmpty:!0,className:Ct.root,classes:{select:Ct.input,icon:Ct.icon},MenuProps:{classes:{paper:Ct.dropdown}},inputProps:{"data-disabled":C?"true":void 0,"data-error":y?"true":void 0,...j.inputProps},...T,children:se()})})});Wi.displayName="Dropdown";const ku=e=>g.jsx("div",{...e,children:"FileInput"}),Mu=e=>g.jsx("div",{...e,children:"FileUpload"}),Ui=O.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:r,direction:s,align:i,justify:a,wrap:u,...c},p){const f=In(c),h=typeof n=="string"&&n in Re?Re[n]:n,d=typeof o=="string"&&o in Re?Re[o]:o,y=typeof r=="string"&&r in Re?Re[r]:r;return g.jsx(H.Box,{ref:p,display:"flex",...f,gap:h,rowGap:d,columnGap:y,flexDirection:s,alignItems:i,justifyContent:a,flexWrap:u,children:t})});Ui.displayName="Flex";const Pu="Grid-module__root___s-qPY",Au="Grid-module__col___tbuNg",ju="Grid-module__hiddenFromXs___Ap3ch",Lu="Grid-module__hiddenFromSm___ZD0Wm",Du="Grid-module__hiddenFromMd___O3Zhg",Vu="Grid-module__hiddenFromLg___RxDrc",Bu="Grid-module__hiddenFromXl___k7ytz",Fu="Grid-module__visibleFromSm___w20SX",zu="Grid-module__visibleFromMd___ePFrO",Wu="Grid-module__visibleFromLg___L6vtD",Uu="Grid-module__visibleFromXl___HLWTL",Ze={root:Pu,col:Au,hiddenFromXs:ju,hiddenFromSm:Lu,hiddenFromMd:Du,hiddenFromLg:Vu,hiddenFromXl:Bu,visibleFromSm:Fu,visibleFromMd:zu,visibleFromLg:Wu,visibleFromXl:Uu},Gi=O.createContext({grow:!1});function br(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function cs(e){return e==="auto"?"grow":e==="content"?"auto":e}function Gu(e){const t=br(e);if(t===void 0||typeof t!="object")return cs(t);const n={};return Object.entries(t).forEach(([o,r])=>{n[o]=cs(r)}),n}function qu(e){return br(e)}function Hu(e){if(e===void 0||typeof e=="number")return e;const t=br(e);return t.xs??t.sm??t.md??t.lg??t.xl}const Ku={xs:Ze.hiddenFromXs,sm:Ze.hiddenFromSm,md:Ze.hiddenFromMd,lg:Ze.hiddenFromLg,xl:Ze.hiddenFromXl},Yu={sm:Ze.visibleFromSm,md:Ze.visibleFromMd,lg:Ze.visibleFromLg,xl:Ze.visibleFromXl};function us(e){return e==="base"?"xs":e}const qi=O.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:r=!1,justify:s,align:i,style:a,...u},c){const p=In(u),f=typeof n=="string"&&n in Re?Re[n]:n;return g.jsx(Gi.Provider,{value:{grow:r},children:g.jsx(H.Grid,{ref:c,container:!0,columns:o,spacing:f,className:Ze.root,...p,style:{justifyContent:s,alignItems:i,...a},children:t})})});qi.displayName="Grid";const vr=O.forwardRef(function({children:t,span:n,offset:o,order:r,visibleFrom:s,hiddenFrom:i,style:a,className:u,...c},p){const{grow:f}=O.useContext(Gi),h=In(c),d=Hu(r),y=s?Yu[us(s)]:i?Ku[us(i)]:void 0,m=[Ze.col,y,u].filter(Boolean).join(" ");return g.jsx(H.Grid,{ref:p,size:Gu(n),offset:qu(o),className:m,...h,style:{order:d,...f?{flexGrow:1}:{},...a},children:t})});vr.displayName="GridCol";const Hi=qi;Hi.Col=vr;const Ki=O.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:r,justify:s,align:i,wrap:a,...u},c){const p=In(u),f=typeof n=="string"&&n in Re?Re[n]:n,h=typeof o=="string"&&o in Re?Re[o]:o,d=typeof r=="string"&&r in Re?Re[r]:r;return g.jsx(H.Stack,{ref:c,direction:"row",flexWrap:a||"wrap",justifyContent:s,alignItems:i,spacing:f,sx:{...h?{rowGap:h}:{},...d?{columnGap:d}:{}},...p,children:t})});Ki.displayName="Group";const Xu="HoverCard-module__dropdown___FBPFW",Qu="HoverCard-module__arrow___S9AkE",ds={dropdown:Xu,arrow:Qu},Yi=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:r=0,closeDelay:s=150,disabled:i=!1,offset:a=5,children:u,...c}){const p=X(c,t),f={tooltip:ds.dropdown,arrow:ds.arrow},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const m=h;Object.keys(m).forEach(v=>{f[v]?f[v]=`${f[v]} ${m[v]}`:f[v]=m[v]})}let d=null,y=null;return O.Children.forEach(u,m=>{var v,_;if(O.isValidElement(m)){const S=m;((v=S.type)==null?void 0:v.displayName)==="HoverCardTarget"?d=S.props.children:((_=S.type)==null?void 0:_.displayName)==="HoverCardDropdown"&&(y=S.props.children)}}),d||(d=g.jsx("div",{})),y||(y=g.jsx("div",{})),g.jsx(H.Tooltip,{title:y,placement:o,arrow:n,enterDelay:r,leaveDelay:s,disableHoverListener:i,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,a]}}]}},classes:f,...p,children:O.isValidElement(d)?d:g.jsx("span",{children:d})})};Yi.displayName="HoverCard";const Xi=function({children:t}){return g.jsx(g.Fragment,{children:t})};Xi.displayName="HoverCardTarget";const Qi=function({children:t}){return g.jsx(g.Fragment,{children:t})};Qi.displayName="HoverCardDropdown";const _r=Yi;_r.Target=Xi;_r.Dropdown=Qi;const Ju="Link-module__root___I0VGE",Zu="Link-module__iconWrapper___W-LlF",ed="Link-module__labelText___wSvUy",kn={root:Ju,iconWrapper:Zu,labelText:ed},Ji=O.forwardRef(function({icon:t,children:n,overStyled:o=!1,...r},s){const i=X(r,o),u=i.className,c=u?`${kn.root} ${u}`:kn.root;return g.jsxs(H.Link,{ref:s,className:c,underline:"none",...t?{"data-has-icon":""}:{},...i,children:[t&&g.jsx("span",{className:kn.iconWrapper,"aria-hidden":!0,children:t}),g.jsx("span",{className:kn.labelText,children:n})]})});Ji.displayName="Link";const td="Menu-module__dropdown___j4xuA",nd="Menu-module__item___NMXha",od="Menu-module__divider___wPiNq",yn={dropdown:td,item:nd,divider:od},Zi=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.Menu,{ref:r,className:`${yn.dropdown} ${n||""}`,classes:{paper:yn.dropdown,list:yn.dropdown},...s})});Zi.displayName="Menu";const ea=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.MenuItem,{ref:r,className:`${yn.item} ${n||""}`,...s})});ea.displayName="MenuItem";const ta=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.Divider,{ref:r,className:`${yn.divider} ${n||""}`,...s})});ta.displayName="MenuDivider";const rd="Modal-module__root___ytPLl",sd="Modal-module__inner___SSUJE",id="Modal-module__content___dWO-B",ad="Modal-module__header___ILG9i",ld="Modal-module__title___A5OeE",cd="Modal-module__scrollArea___KD-hm",ud="Modal-module__footer___rro2w",dd="Modal-module__close___-ER1C",ft={root:rd,inner:sd,content:id,header:ad,title:ld,scrollArea:cd,footer:ud,close:dd},pd=()=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),na=O.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:r,children:s,onClose:i,className:a,...u},c){const p=X(u,t);let f=null;const h=[];return O.Children.forEach(s,d=>{var y;O.isValidElement(d)&&(d.type===Cr||((y=d.type)==null?void 0:y.displayName)==="Modal.Footer")?f=d:h.push(d)}),g.jsxs(H.Dialog,{ref:c,className:`${ft.root} ${a||""}`,classes:{paper:ft.inner},...p,open:n||p.open||!1,onClose:i,children:[(r||o)&&g.jsxs("div",{className:ft.header,children:[r&&g.jsx("div",{className:ft.title,children:r}),o&&g.jsx(H.IconButton,{onClick:d=>i==null?void 0:i(d,"backdropClick"),className:ft.close,children:g.jsx(pd,{})})]}),g.jsx(xr,{children:h}),f]})});na.displayName="Modal";const oa=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.DialogTitle,{ref:r,className:`${ft.title} ${n||""}`,...s})});oa.displayName="Modal.Title";const xr=O.forwardRef(function({overStyled:t=!1,className:n,children:o,...r},s){const i=X(r,t),a=O.useRef(null),[u,c]=O.useState(!1),[p,f]=O.useState(!1),h=O.useCallback(()=>{if(a.current){const{scrollTop:d,scrollHeight:y,clientHeight:m}=a.current;c(d>0),f(Math.ceil(d+m)<y)}},[]);return O.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,o]),g.jsx(H.DialogContent,{ref:d=>{typeof s=="function"?s(d):s&&(s.current=d),a&&(a.current=d)},onScroll:()=>h(),"data-scrolled-top":u||void 0,"data-scrolled-bottom":p||void 0,className:`${ft.content} ${ft.scrollArea} ${n||""}`,...i,children:o})});xr.displayName="Modal.Body";const Cr=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.DialogActions,{ref:r,className:`${ft.footer} ${n||""}`,...s})});Cr.displayName="Modal.Footer";const co=na;co.Title=oa;co.Body=xr;co.Footer=Cr;const fd="NumberInput-module__layoutOverride___5-9T4",md="NumberInput-module__root___C6rAn",hd="NumberInput-module__input___Ss8p7",gd="NumberInput-module__section___MijP0",yd="NumberInput-module__controls___8UfQ2",bd="NumberInput-module__control___Qre9-",jt={layoutOverride:fd,root:md,input:hd,section:gd,controls:yd,control:bd},ra=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,className:v,style:_,disabled:S,readOnly:E,readOnlyComponent:C,emptyValueComponent:x,value:I,defaultValue:w,leftSection:N,rightSection:L,min:F,max:U,step:b,hideControls:R=!1,...T}=t,j=X(T,o),V=j;delete V.size,delete V.variant,delete V.radius;const K={wrapper:jt.root,input:jt.input,section:jt.section,controls:jt.controls,control:jt.control},se=v?`${jt.layoutOverride} ${v}`:jt.layoutOverride,oe=N?g.jsx("div",{className:K.section,"data-position":"left",children:N}):void 0,M=L?g.jsx("div",{className:K.section,"data-position":"right",children:L}):void 0;return g.jsx(it,{className:se,style:_,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,readOnly:E,readOnlyComponent:C,emptyValueComponent:x,readOnlyType:"text",readOnlyValue:I!==void 0?I==null?void 0:I.toString():w==null?void 0:w.toString(),readOnlyNativeProps:t,activeComponent:g.jsx(H.TextField,{ref:n,classes:K,disabled:S,value:I,defaultValue:w,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:oe,endAdornment:M},inputProps:{min:F,max:U,step:b,...V.inputProps},...j})})});ra.displayName="NumberInput";const vd="Pagination-module__root___ITRjt",St={root:vd};function _d(e){const t={root:St.root,ul:St.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const s=n;t.root=s.root?`${St.root} ${s.root}`:St.root,t.ul=s.ul?`${St.ul} ${s.ul}`:St.ul}const o=e.className;return{className:o?`${St.root} ${o}`:St.root,classNames:t}}const sa=O.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:r,total:s,withEdges:i,withControls:a,...u}=t,c=X(u,o),p=_d(c);return g.jsx("div",{ref:n,className:p.className,children:g.jsx(H.Pagination,{count:s,showFirstButton:i,showLastButton:i,hidePrevButton:a===!1?!0:void 0,hideNextButton:a===!1?!0:void 0,classes:p.classNames,...c})})});sa.displayName="Pagination";const xd=sa,Cd="Panel-module__content___wdGo-",Sd="Panel-module__inner___ruA2b",Id="Panel-module__header___o7SiC",Td="Panel-module__title___181OP",Ed="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",wd="Panel-module__body___SEC3T",Nd="Panel-module__footer___t6-hz",Et={content:Cd,inner:Sd,header:Id,title:Td,titleTruncate:Ed,body:wd,footer:Nd},ia=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:r=!1,opened:s,...i}){const a=X(i,t),u={content:Et.content,header:Et.header,title:r?Et.titleTruncate:Et.title,body:Et.body,inner:Et.inner},c=a.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const p=c;Object.keys(p).forEach(f=>{u[f]?u[f]=`${u[f]} ${p[f]}`:u[f]=p[f]})}return g.jsx(H.Drawer,{anchor:n,keepMounted:o,open:!!s,...a,classes:u})};ia.displayName="Panel";const Sr=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className,i=s?`${Et.footer} ${s}`:Et.footer;return g.jsx("div",{ref:o,className:i,...r})});Sr.displayName="PanelFooter";const aa=ia;aa.Footer=Sr;const Od="Radio-module__groupRoot___bfUii",$d="Radio-module__root___kAjTD",Rd="Radio-module__body___q2Wpj",kd="Radio-module__inner___QaTBB",Md="Radio-module__radio___MfgN-",Pd="Radio-module__icon___DWznm",Ad="Radio-module__labelWrapper___dB0Gi",jd="Radio-module__label___vAFIP",Ld="Radio-module__description___bEB8u",Dd="Radio-module__error___wem7t",ge={groupRoot:Od,root:$d,body:Rd,inner:kd,radio:Md,icon:Pd,labelWrapper:Ad,label:jd,description:Ld,error:Dd},Ir=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,className:_,style:S,children:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,...L}=t,F=X(L,o),U=F;return delete U.size,g.jsx(it,{className:_,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,id:v,readOnly:C&&!!x,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.RadioGroup,{ref:n,...F,value:w,defaultValue:N,className:ge.groupRoot,"data-layout":r,children:E})})});Ir.displayName="RadioGroup";const ps=({className:e,style:t})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:g.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Tr=O.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:r,readOnlyComponent:s,disabled:i,formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,label:f,description:h,error:d,style:y,...m}=t,v=X(m,o),_=v;delete _.size,delete _.color;const S={root:ge.root,body:ge.body,inner:ge.inner,radio:ge.radio,icon:ge.icon,labelWrapper:ge.labelWrapper,label:ge.label},E=_.classNames;if(E&&typeof E=="object"&&!Array.isArray(E)){const N=E;S.root=N.root?`${ge.root} ${N.root}`:ge.root,S.body=N.body?`${ge.body} ${N.body}`:ge.body,S.inner=N.inner?`${ge.inner} ${N.inner}`:ge.inner,S.radio=N.radio?`${ge.radio} ${N.radio}`:ge.radio,S.icon=N.icon?`${ge.icon} ${N.icon}`:ge.icon,S.labelWrapper=N.labelWrapper?`${ge.labelWrapper} ${N.labelWrapper}`:ge.labelWrapper,S.label=N.label?`${ge.label} ${N.label}`:ge.label}const C=_.className,x=C?`${ge.root} ${C}`:ge.root;if(r&&s){const N=!!(_.checked??_.defaultChecked),L=s,F=g.jsx(L,{...t,checked:N,label:_.label});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:F}):g.jsx(g.Fragment,{children:F})}const I=g.jsx(H.Radio,{ref:n,icon:g.jsx(ps,{}),checkedIcon:g.jsx(ps,{className:ge.checked}),className:x,classes:S,disabled:r||i,...v}),w=f?g.jsx("div",{className:x,style:y,children:g.jsxs("div",{className:ge.body,children:[I,g.jsxs("div",{className:ge.labelWrapper,children:[g.jsx("label",{className:ge.label,htmlFor:_.id,"data-disabled":r||i?!0:void 0,children:f}),h&&g.jsx("div",{className:ge.description,"data-disabled":r||i?!0:void 0,children:h}),d&&g.jsx("div",{className:ge.error,"data-disabled":r||i?!0:void 0,children:d})]})]})}):I;return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:w}):w});Tr.displayName="Radio";Tr.Group=Ir;const Vd="SegmentedControl-module__root___JFRhg",Bd="SegmentedControl-module__label___mS17q",Fd="SegmentedControl-module__control___znOdQ",De={root:Vd,label:Bd,control:Fd};function zd(e){const t={root:De.root,control:De.control,label:De.label,indicator:De.indicator},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const s=n;t.root=s.root?`${De.root} ${s.root}`:De.root,t.control=s.control?`${De.control} ${s.control}`:De.control,t.label=s.label?`${De.label} ${s.label}`:De.label,t.indicator=s.indicator?`${De.indicator} ${s.indicator}`:De.indicator}const o=e.className;return{className:o?`${De.root} ${o}`:De.root,classNames:t}}const la=O.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:r=[],value:s,onChange:i,...a},u){const c=X(a,t),p=c;delete p.disabled;const f=zd(p),h=(d,y)=>{y!==null&&i&&i(y)};return g.jsx(H.ToggleButtonGroup,{ref:u,className:f.className,classes:f.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:s,onChange:h,...c,children:r.map(d=>{const y=typeof d=="string"?d:d.value,m=typeof d=="string"?d:d.label,v=typeof d=="string"?!1:d.disabled;return g.jsx(H.ToggleButton,{value:y,disabled:v,className:f.classNames.control,children:g.jsx("div",{className:f.classNames.label,children:m})},y)})})});la.displayName="SegmentedControl";const Wd=la,Ud="Slider-module__layoutOverride___zYPun",Gd="Slider-module__sliderContainer___y8I0J",qd="Slider-module__sliderTrackWrapper___UHpVh",Hd="Slider-module__iconWrapper___uqHpC",Kd="Slider-module__sliderRoot___LI86H",Yd="Slider-module__sliderTrack___oqnlG",Xd="Slider-module__sliderBar___TI4VY",Qd="Slider-module__sliderThumb___OFn8p",Jd="Slider-module__sliderMark___1lM2B",Zd="Slider-module__sliderTooltip___J1Aqb",ep="Slider-module__minMaxGuide___TaGqz",tp="Slider-module__rightGuideContainer___8dOT8",np="Slider-module__currentValue___dGV2T",op="Slider-module__inputField___6x578",rp="Slider-module__readOnlyValue___-ZzMW",ye={layoutOverride:Ud,sliderContainer:Gd,sliderTrackWrapper:qd,iconWrapper:Hd,sliderRoot:Kd,sliderTrack:Yd,sliderBar:Xd,sliderThumb:Qd,sliderMark:Jd,sliderTooltip:Zd,minMaxGuide:ep,rightGuideContainer:tp,currentValue:np,inputField:op,readOnlyValue:rp},sp=({value:e})=>g.jsx("div",{className:ye.readOnlyValue,children:e}),ca=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,labelActionArea:c,onLabelEditClick:p,label:f,tooltipLabel:h,assistiveText:d,assistiveWithIcon:y,error:m,required:v,withAsterisk:_,id:S,className:E,style:C,disabled:x,readOnly:I,readOnlyComponent:w,emptyValueComponent:N,value:L,defaultValue:F,icon:U,showInput:b=!1,showMinMaxLabels:R=!0,min:T=0,max:j=100,step:V=1,onChange:K,onChangeEnd:se,...oe}=t,[M,z]=O.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:F!==void 0?Array.isArray(F)?F[0]:F:T),Q=L!==void 0?Array.isArray(L)?L[0]:L:M,[re,ne]=O.useState(Q.toString());O.useEffect(()=>{ne(Q.toString())},[Q]);const Y=(te,Te)=>{const ke=Array.isArray(Te)?Te[0]:Te;L===void 0&&z(ke),K==null||K(ke)},J=te=>{const Te=te.target.value;ne(Te);const ke=parseFloat(Te);if(!isNaN(ke)){const Me=Math.max(T,Math.min(j,ke));Y(null,Me)}},Z=()=>{ne(Q.toString())},A=X(oe,o),P=A;delete P.size,delete P.color,delete P.wrapperProps;const W={root:ye.sliderRoot,rail:ye.sliderTrack,track:ye.sliderBar,thumb:ye.sliderThumb,mark:ye.sliderMark,markLabel:ye.sliderMarkLabel,valueLabel:ye.sliderTooltip},ie=P.classNames;if(ie&&typeof ie=="object"&&!Array.isArray(ie)){const te=ie;W.root=te.root?`${ye.sliderRoot} ${te.root}`:ye.sliderRoot,W.rail=te.track?`${ye.sliderTrack} ${te.track}`:ye.sliderTrack,W.track=te.bar?`${ye.sliderBar} ${te.bar}`:ye.sliderBar,W.thumb=te.thumb?`${ye.sliderThumb} ${te.thumb}`:ye.sliderThumb,W.mark=te.mark?`${ye.sliderMark} ${te.mark}`:ye.sliderMark,W.markLabel=te.markLabel?`${ye.sliderMarkLabel} ${te.markLabel}`:ye.sliderMarkLabel}const D=E?`${ye.layoutOverride} ${E}`:ye.layoutOverride,Ee=U?g.jsx("span",{className:ye.iconWrapper,"aria-hidden":!0,children:U}):null;return g.jsx(it,{ref:n,className:D,style:C,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,labelActionArea:c,onLabelEditClick:p,label:f,assistiveText:d,assistiveWithIcon:y,error:!!m,required:v,id:S,readOnly:I,readOnlyComponent:w||sp,emptyValueComponent:N,readOnlyType:"text",readOnlyValue:Q,readOnlyNativeProps:{value:Q},activeComponent:g.jsxs("div",{className:ye.sliderContainer,"data-form-layout":r,"data-disabled":x?"true":void 0,"data-error":m?"true":void 0,children:[Ee,R&&g.jsx("span",{className:ye.minMaxGuide,children:T}),g.jsx("div",{className:ye.sliderTrackWrapper,children:g.jsx(H.Slider,{classes:W,disabled:x,value:Q,onChange:Y,onChangeCommitted:se,min:T,max:j,step:V,valueLabelDisplay:h===null?"off":"auto",valueLabelFormat:typeof h=="function"?h:void 0,...A})}),g.jsxs("div",{className:ye.rightGuideContainer,children:[!b&&g.jsx("span",{className:ye.currentValue,children:Q}),R&&g.jsx("span",{className:ye.minMaxGuide,children:j})]}),b&&g.jsx("input",{type:"number",className:ye.inputField,value:re,onChange:J,onBlur:Z,min:T,max:j,step:V??void 0,disabled:x,"data-error":m?"true":void 0})]})})});ca.displayName="Slider";const ua=O.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:r,...s},i){const a=In(s),u=typeof n=="string"&&n in Re?Re[n]:n;return g.jsx(H.Stack,{ref:i,spacing:u,alignItems:o,justifyContent:r,...a,children:t})});ua.displayName="Stack";const ip="Stepper-module__root___jbSYO",ap="Stepper-module__horizontal___USHT1",lp="Stepper-module__steps___4HPO6",cp="Stepper-module__step___s2nqL",up="Stepper-module__stepLabel___N6nuy",dp="Stepper-module__stepDescription___DnDAy",pp="Stepper-module__separator___pU0No",fp="Stepper-module__vertical___d4mOs",mp="Stepper-module__large___J18-y",hp="Stepper-module__small___Ub-zb",gp="Stepper-module__stepIcon___YQHNq",yp="Stepper-module__verticalSeparator___frWc1",Ge={root:ip,horizontal:ap,steps:lp,step:cp,stepLabel:up,stepDescription:dp,separator:pp,vertical:fp,large:mp,small:hp,stepIcon:gp,verticalSeparator:yp},da=O.forwardRef(function(t,n){const{overStyled:o=!1,size:r="large",orientation:s="horizontal",className:i,style:a,...u}=t,c=X(u,o);return g.jsx("div",{className:`${Ge.root} ${s==="horizontal"?Ge.horizontal:Ge.vertical} ${r==="large"?Ge.large:Ge.small} ${i||""}`,style:a,"data-size":r,"data-orientation":s,children:g.jsx(H.Stepper,{ref:n,orientation:s,connector:g.jsx(H.StepConnector,{classes:{root:s==="horizontal"?Ge.separator:Ge.verticalSeparator}}),classes:{root:Ge.steps},...c})})});da.displayName="Stepper";const bp=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t;return g.jsx(H.Step,{ref:n,classes:{root:Ge.step},className:r||"",...X(s,o)})});bp.displayName="Step";const vp=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t;return g.jsx(H.StepButton,{ref:n,className:r||"",...X(s,o)})});vp.displayName="StepButton";const _p=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,description:s,...i}=t;return g.jsx(H.StepLabel,{ref:n,className:r||"",classes:{label:Ge.stepLabel,iconContainer:Ge.stepIcon},optional:s?g.jsx("div",{className:Ge.stepDescription,children:s}):i.optional,...X(i,o)})});_p.displayName="StepLabel";const xp=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t;return g.jsx(H.StepConnector,{ref:n,className:r||"",...X(s,o)})});xp.displayName="StepConnector";const Cp="Switch-module__root___Y5Ydi",Sp="Switch-module__track___7ObdZ",Ip="Switch-module__body___Sw9Wr",Tp="Switch-module__thumb___-FTeK",Ep="Switch-module__labelWrapper___YSOwx",wp="Switch-module__label___LrH7V",Np="Switch-module__description___CClza",Op="Switch-module__error___OSPrU",$p="Switch-module__groupRoot___-Uepi",fe={root:Cp,track:Sp,body:Ip,thumb:Tp,labelWrapper:Ep,label:wp,description:Np,error:Op,groupRoot:$p},pa=O.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:r,readOnlyComponent:s,disabled:i,formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,label:f,description:h,error:d,style:y,...m}=t,v=X(m,o),_=v;delete _.size,delete _.color,delete _.radius,delete _.variant;const S={root:fe.root,body:fe.body,track:fe.track,thumb:fe.thumb,trackLabel:fe.trackLabel,labelWrapper:fe.labelWrapper,label:fe.label},E=_.classNames;if(E&&typeof E=="object"&&!Array.isArray(E)){const N=E;S.root=N.root?`${fe.root} ${N.root}`:fe.root,S.body=N.body?`${fe.body} ${N.body}`:fe.body,S.track=N.track?`${fe.track} ${N.track}`:fe.track,S.thumb=N.thumb?`${fe.thumb} ${N.thumb}`:fe.thumb,S.trackLabel=N.trackLabel?`${fe.trackLabel} ${N.trackLabel}`:fe.trackLabel,S.labelWrapper=N.labelWrapper?`${fe.labelWrapper} ${N.labelWrapper}`:fe.labelWrapper,S.label=N.label?`${fe.label} ${N.label}`:fe.label}const C=_.className,x=C?`${fe.root} ${C}`:fe.root;if(r&&s){const N=!!(_.checked??_.defaultChecked),L=s,F=g.jsx(L,{...t,checked:N,label:_.label});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:F}):g.jsx(g.Fragment,{children:F})}const I=g.jsx(H.Switch,{ref:n,className:f?fe.inner:`${x} ${fe.inner}`,classes:S,disabled:r||i,"data-disabled":r||i||void 0,...v}),w=f?g.jsx("div",{className:x,style:y,children:g.jsxs("div",{className:fe.body,children:[I,g.jsxs("div",{className:fe.labelWrapper,children:[g.jsx("label",{className:fe.label,htmlFor:_.id,"data-disabled":r||i?!0:void 0,children:f}),h&&g.jsx("div",{className:fe.description,"data-disabled":r||i?!0:void 0,children:h}),d&&g.jsx("div",{className:fe.error,"data-disabled":r||i?!0:void 0,children:d})]})]})}):I;return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:w}):w});pa.displayName="Switch";const fa=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,className:_,style:S,children:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,onChange:L,...F}=t,U=X(F,o),b=U;return delete b.size,g.jsx(it,{className:_,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,readOnly:C&&!!x,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.FormGroup,{ref:n,...U,className:`${fe.groupRoot} ${U.className||""}`.trim(),"data-layout":r,children:E})})});fa.displayName="SwitchGroup";const Rp="Table-module__root___aMWWS",kp={root:Rp},ma=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className,i=kp.root,a=s?`${i} ${s}`:i;return g.jsx(H.Table,{ref:o,className:a,...r})});ma.displayName="Table";const ha=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableBody,{ref:o,...r})});ha.displayName="TableBody";const ga=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableCell,{ref:o,...r})});ga.displayName="TableCell";const ya=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableContainer,{ref:o,...r})});ya.displayName="TableContainer";const ba=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableHead,{ref:o,...r})});ba.displayName="TableHead";const va=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableRow,{ref:o,...r})});va.displayName="TableRow";const _a=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableFooter,{ref:o,...r})});_a.displayName="TableFooter";const xa=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableSortLabel,{ref:o,...r})});xa.displayName="TableSortLabel";const Mt=ma;Mt.Body=ha;Mt.Cell=ga;Mt.Container=ya;Mt.Head=ba;Mt.Row=va;Mt.Footer=_a;Mt.SortLabel=xa;const Mp="Tabs-module__root___-VKVI",Pp="Tabs-module__list___qRVME",Ap="Tabs-module__tab___IdDYc",jp="Tabs-module__panel___08i9c",bn={root:Mp,list:Pp,tab:Ap,panel:jp};function Lp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mn={exports:{}},Pn={exports:{}},me={};/** @license React v16.13.1
1
+ "use strict";var jh=Object.defineProperty;var Lh=(e,t,n)=>t in e?jh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>Lh(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),Q=require("react"),pe=require("@mui/material"),Nn=require("@emotion/react"),Vh=require("@emotion/styled"),Jo=require("react-dom");var Ci=typeof document<"u"?document.currentScript:null;function Md(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const S=Md(Q),Fh=Md(Jo),Bh=["className","classes","style","sx","color","bgcolor","backgroundColor","typography","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderRadius","boxShadow","display","position","zIndex"],zh=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),at={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function Er(e){const t={...e};return"sx"in t&&delete t.sx,t}function fe(e,t){if(t)return e;const n={...e};for(const o of Bh)o in n&&delete n[o];for(const[o,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&zh.has(o)&&s in at&&(n[o]=at[s]);return n}const Wh="Accordion-module__root___Dem6d",Uh="Accordion-module__item___7ryVk",Hh="Accordion-module__noDivider___Ni2tT",qh="Accordion-module__control___b4wgX",Yh="Accordion-module__label___Ss7uW",Gh="Accordion-module__chevron___i-HVZ",Kh="Accordion-module__iconLeftWrapper___5oLen",Xh="Accordion-module__panel___Wx50w",Qh="Accordion-module__content___PEM9t",sn={root:Wh,item:Uh,noDivider:Hh,control:qh,label:Yh,chevron:Gh,iconLeftWrapper:Kh,panel:Xh,content:Qh},Zh=()=>b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{width:"100%",height:"100%"},children:b.jsx("polyline",{points:"6 9 12 15 18 9"})}),ha=Q.createContext(null),$d=Q.forwardRef(function({variant:t="unstyled",overStyled:n=!1,value:o,defaultValue:s,onChange:i,multiple:a=!1,chevron:l,children:c,...u},d){const m=fe(u,n),h=m.className,p=[sn.root,h].filter(Boolean).join(" ")||void 0,[g,f]=Q.useState(s!==void 0?s:a?[]:null),y=o!==void 0?o:g,x=w=>{let T;if(a){const C=Array.isArray(y)?y:y?[y]:[];T=C.includes(w)?C.filter(I=>I!==w):[...C,w]}else T=y===w?null:w;f(T),i==null||i(T)};return b.jsx(ha.Provider,{value:{value:y,onChange:x,chevron:l},children:b.jsx("div",{ref:d,className:p,"data-variant":t,...m,children:c})})});$d.displayName="Accordion";const ga=Q.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:s,value:i,overStyled:a=!1,style:l,...c},u){const d=fe(c,a),m=d.className,h=[sn.item,o?void 0:sn.noDivider,m].filter(Boolean).join(" ")||void 0,p=Q.useContext(ha),g=p?Array.isArray(p.value)?p.value.includes(i):p.value===i:void 0,f=()=>{p==null||p.onChange(i)},y={backgroundColor:"transparent",...l};return b.jsx(pe.Accordion,{ref:u,className:h,disableGutters:!0,elevation:0,square:!0,expanded:g,onChange:f,style:y,...d,children:t?b.jsxs(b.Fragment,{children:[b.jsx(Ms,{leftIcon:n,children:t}),b.jsx($s,{children:s})]}):s})});ga.displayName="AccordionItem";const Ms=Q.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...s},i){const a=fe(s,o),l=a.className,c=[sn.control,l].filter(Boolean).join(" ")||void 0,u=Q.useContext(ha),d=(u==null?void 0:u.chevron)??b.jsx(Zh,{});return b.jsxs(pe.AccordionSummary,{ref:i,className:c,expandIcon:b.jsx("span",{className:sn.chevron,children:d}),...a,children:[t&&b.jsx("span",{className:sn.iconLeftWrapper,"aria-hidden":!0,children:t}),b.jsx("div",{className:sn.label,children:n})]})});Ms.displayName="AccordionControl";const $s=Q.forwardRef(function({overStyled:t=!1,children:n,...o},s){const i=fe(o,t),a=i.className,l=[sn.panel,a].filter(Boolean).join(" ")||void 0;return b.jsx(pe.AccordionDetails,{ref:s,className:l,...i,children:b.jsx("div",{className:sn.content,children:n})})});$s.displayName="AccordionPanel";const Ds=$d;Ds.Item=ga;Ds.Control=Ms;Ds.Panel=$s;const Jh="AssistiveElement-module__root___WhQ43",eg="AssistiveElement-module__text___vrHAg",tg="AssistiveElement-module__icon___Q-CVz",Wr={root:Jh,text:eg,icon:tg},ba=Q.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:s=!0,overStyled:i=!1,className:a,children:l,...c}=t,u=fe(c,i),d=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10"}),b.jsx("path",{d:"M12 16v-4"}),b.jsx("path",{d:"M12 8h.01"})]}),m=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),b.jsx("path",{d:"M12 9v4"}),b.jsx("path",{d:"M12 17h.01"})]}),h=o==="error";return b.jsxs(pe.FormHelperText,{ref:n,component:"div",error:h,"data-variant":o,className:a?`${Wr.root} ${a}`:Wr.root,...u,children:[s&&b.jsx("div",{className:Wr.icon,children:o==="error"?b.jsx(m,{}):b.jsx(d,{})}),b.jsx("div",{className:Wr.text,children:l})]})});ba.displayName="AssistiveElement";const ng="Label-module__root___e6HXZ",og="Label-module__innerLayout___Xxapo",rg="Label-module__text___OGeEw",sg="Label-module__required___Ggrzc",ig="Label-module__endNodes___es7ew",ag="Label-module__optionalText___Y2yun",lg="Label-module__actionArea___O-f1X",cg="Label-module__editIcon___9hO1G",Ut={root:ng,innerLayout:og,text:rg,required:sg,endNodes:ig,optionalText:ag,actionArea:lg,editIcon:cg},ya=Q.forwardRef(function(t,n){const{overStyled:o=!1,required:s=!1,labelOptionalText:i="",labelWithEditIcon:a=!1,onLabelEditClick:l,labelActionArea:c,children:u,className:d,...m}=t,h=fe(m,o),p=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"M12 20h9"}),b.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return b.jsx(pe.InputLabel,{ref:n,shrink:!0,className:d?`${Ut.root} ${d}`:Ut.root,...h,children:b.jsxs("div",{className:Ut.innerLayout,children:[b.jsxs("span",{className:Ut.textWrapper,children:[b.jsx("span",{className:Ut.text,children:u}),s&&b.jsx("span",{className:Ut.required,children:" *"})]}),b.jsxs("div",{className:Ut.endNodes,children:[c&&b.jsx("span",{className:Ut.actionArea,children:c}),!s&&i&&!c&&b.jsx("span",{className:Ut.optionalText,children:i===!0?"Optional":i}),a&&b.jsx("button",{type:"button",className:Ut.editIcon,onClick:l,"aria-label":"Edit label",children:b.jsx(p,{})})]})]})})});ya.displayName="Label";const ug="FormControlLayout-module__root___yNDhZ",dg="FormControlLayout-module__leftSection___GBM1r",pg="FormControlLayout-module__rightSection___bcL4v",Wo={root:ug,leftSection:dg,rightSection:pg},un=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i="default",controlMaxWidth:a,controlMinWidth:l,leftSection:c,className:u,children:d,style:m,...h}=t,p=fe(h,o);return b.jsxs("div",{ref:n,className:u?`${Wo.root} ${u}`:Wo.root,"data-form-layout":s,style:{...m,...a?{"--form-control-max-width":a}:{},...l?{"--form-control-min-width":l}:{}},...p,children:[s==="side-by-side"?b.jsx("div",{className:Wo.leftSection,"data-label-size":i,children:c}):c&&b.jsx("div",{className:Wo.leftSection,"data-label-size":i,children:c}),b.jsx("div",{className:Wo.rightSection,children:d})]})});un.displayName="FormControlLayout";const fg="FormControlWrapper-module__root___c-UHo",mg="FormControlWrapper-module__inputSection___HenXk",Ti={root:fg,inputSection:mg},wn=Q.forwardRef(function(t,n){const{overStyled:o=!1,label:s,assistiveText:i,description:a,helperText:l,assistiveWithIcon:c=!0,error:u,required:d,disabled:m,focused:h,id:p,formLayout:g="stacked",labelSize:f="default",labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:w,labelActionArea:T,controlMaxWidth:C,controlMinWidth:I,className:E,style:N,children:R,...L}=t,V=fe(L,o),j=i||a||l,v=p?`${p}-label`:void 0,_=p?`${p}-description`:void 0,O=Q.Children.map(R,P=>Q.isValidElement(P)?Q.cloneElement(P,{"aria-labelledby":v,"aria-describedby":j?_:void 0}):P);return b.jsx(pe.FormControl,{ref:n,error:!!u,required:d,disabled:m,focused:h,className:E?`${Ti.root} ${E}`:Ti.root,style:N,"data-error":u?"true":void 0,"data-disabled":m?"true":void 0,"data-focused":h?"true":void 0,...V,children:b.jsx(un,{formLayout:g,labelSize:f,controlMaxWidth:C,controlMinWidth:I,leftSection:s&&b.jsx(ya,{id:v,htmlFor:p,required:d,labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:w,labelActionArea:T,children:s}),children:b.jsxs("div",{className:Ti.inputSection,children:[O,(j||u)&&b.jsx(ba,{id:_,assistiveVariant:u?"error":"help",assistiveWithIcon:c,children:u&&typeof u=="string"?u:j})]})})})});wn.displayName="FormControlWrapper";const hg="ReadOnlyField-module__root___hKci7",gg="ReadOnlyField-module__text___bPxk9",ro={root:hg,text:gg},va=Q.forwardRef(function(t,n){const{value:o,type:s="text",readOnlyComponent:i,emptyValueComponent:a,className:l,...c}=t;if(a&&typeof a!="string"){const m=a;if(m.check&&m.check(o))return b.jsx(wn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return b.jsx(wn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx("p",{className:ro.text,children:"N/A"})});if(i){const m=i;return b.jsx(wn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}let d=o;return s==="boolean"||s==="switch"?(d=o?"True":"False",s==="switch"&&(d=o?"On":"Off")):Array.isArray(o)?d=o.join(", "):d=String(o),b.jsx(wn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx("p",{className:ro.text,children:d})})});va.displayName="ReadOnlyField";const Bt=Q.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:s,readOnlyNativeProps:i,emptyValueComponent:a,activeComponent:l,overStyled:c,onLabelEditClick:u,...d},m){if(t){if(n){const h=n;return b.jsx(wn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:b.jsx(h,{...i})})}return b.jsx(va,{ref:m,type:o,value:s,emptyValueComponent:a,onLabelEditClick:u,overStyled:c,...d})}return b.jsx(wn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:l})});Bt.displayName="WithReadOnlyWrapper";const bg="Autocomplete-module__layoutOverride___IIkyG",yg="Autocomplete-module__root___22Jqm",vg="Autocomplete-module__input___MlbJR",xg="Autocomplete-module__dropdown___A9XVI",Sg="Autocomplete-module__option___cZsvO",bt={layoutOverride:bg,root:yg,input:vg,dropdown:xg,option:Sg},Dd=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,withAsterisk:f,id:y,className:x,style:w,disabled:T,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:N,defaultValue:R,data:L,leftSection:V,rightSection:j,placeholder:v,ListboxProps:_,...O}=t,k=fe(O,o);delete k.size,delete k.variant,delete k.radius;const D={root:bt.root,inputRoot:bt.input,listbox:bt.dropdown,option:bt.option},$=k.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const A=$;D.root=A.wrapper?`${bt.root} ${A.wrapper}`:bt.root,D.inputRoot=A.input?`${bt.input} ${A.input}`:bt.input,D.listbox=A.dropdown?`${bt.dropdown} ${A.dropdown}`:bt.dropdown,D.option=A.option?`${bt.option} ${A.option}`:bt.option}const z=x?`${bt.layoutOverride} ${x}`:bt.layoutOverride;return b.jsx(Bt,{className:z,style:w,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:!!p,required:g,id:y,disabled:T,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:N!==void 0?N:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:D,disabled:T,value:N,defaultValue:R,forcePopupIcon:!1,"data-error":p?"true":void 0,"data-disabled":T?"true":void 0,"data-with-left-section":V?"true":void 0,"data-with-right-section":j?"true":void 0,ListboxProps:{..._,className:D.listbox},options:L||[],renderInput:A=>{const{InputProps:F,...W}=A;return b.jsx(pe.TextField,{...W,placeholder:v,variant:"standard"})}})})});Dd.displayName="Autocomplete";const Cg="Avatar-module__root___fXu-J",Tg="Avatar-module__iconWrapper___ojly2",wg="Avatar-module__textWrapper___zp-jD",Ig="Avatar-module__image___ieqGp",Eg="Avatar-module__placeholder___IDW7-",At={root:Cg,iconWrapper:Tg,textWrapper:wg,image:Ig,placeholder:Eg},Ad=Q.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:s,src:i,overStyled:a=!1,...l},c){const u={solid:"filled",outline:"outline",ghost:"transparent"},d=fe(l,a),m=d;let h="text";i?h="image":o&&(h="icon");const p={root:At.root,image:At.image,placeholder:At.placeholder},g=m.classNames;if(g&&typeof g=="object"&&!Array.isArray(g)){const y=g;p.root=y.root?`${At.root} ${y.root}`:At.root,p.image=y.image?`${At.image} ${y.image}`:At.image,p.placeholder=y.placeholder?`${At.placeholder} ${y.placeholder}`:At.placeholder}const f=m.className;return b.jsx(pe.Avatar,{ref:c,className:f,classes:p,variant:u[n],src:i,"data-variant":n,"data-size":t,"data-style":h,...d,children:o!=null?b.jsx("span",{className:At.iconWrapper,"aria-hidden":!0,children:o}):s!=null?b.jsx("span",{className:At.textWrapper,children:s}):void 0})});Ad.displayName="Avatar";const Og=Ad,_g="Badge-module__root___5osNT",Jt={root:_g},jd=Q.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},s){const i=fe(o,n),a={root:Jt.root,section:Jt.section,label:Jt.label},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${Jt.root} ${d.root}`:Jt.root,a.section=d.section??Jt.section,a.label=d.label??Jt.label}const c=i.className,u=c?`${Jt.root} ${c}`:Jt.root;return b.jsx(pe.Badge,{ref:s,variant:"standard","data-variant":t,...i,className:u,classes:a})});jd.displayName="Badge";const kg=jd,Pg=Q.forwardRef(function(t,n){return b.jsx(pe.Box,{ref:n,...t})}),Rg="Breadcrumb-module__root___x-9ln",Ng="Breadcrumb-module__separator___qrUX-",bn={root:Rg,separator:Ng},Ld=Q.forwardRef(function({overStyled:t=!1,separator:n=">",...o},s){const i=fe({separator:n,...o},t),a={root:bn.root,separator:bn.separator},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${bn.root} ${d.root}`:bn.root,a.separator=d.separator?`${bn.separator} ${d.separator}`:bn.separator}const c=i.className,u=c?`${bn.root} ${c}`:bn.root;return b.jsx(pe.Breadcrumbs,{ref:s,...i,className:u,classes:a})});Ld.displayName="Breadcrumb";const Mg="Loader-module__root___6iYOP",sc={root:Mg},xa=Q.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...s},i){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",c=fe(s,o),u=c.className,d=u?`${sc.root} ${u}`:sc.root,m=()=>t==="bars"||t==="dots"?b.jsxs(b.Fragment,{children:[b.jsx("span",{}),b.jsx("span",{}),b.jsx("span",{})]}):null;return b.jsx("span",{ref:i,"data-variant":t,"data-size":l,...c,className:d,children:m()})});xa.displayName="Loader";const $g="Button-module__root___Q2R8-",Dg="Button-module__labelText___rFV5p",Ag="Button-module__iconWrapper___uEKPa",Uo={root:$g,labelText:Dg,iconWrapper:Ag};function jg(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const Sa=Q.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:s,overStyled:i=!1,loaderVariant:a="oval",loaderSize:l,useRecursicaLoader:c=!0,...u},d){const m=fe(u,i),h=m;delete h.color;const p=!!o||!!h.startIcon,g=!!h.endIcon,f=jg(s),y=(p||g)&&!f;let x="label";y?x="icon-only":(p||g)&&(x="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&y&&!h["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const w=h.className,T=w?`${Uo.root} ${w}`:Uo.root;delete h.className;const C=l??(n==="small"?"small":"default");let I=h.loadingIndicator;return c&&(I=b.jsx(xa,{variant:a,size:C})),b.jsx(pe.Button,{ref:d,disableRipple:!0,disableElevation:!0,className:T,loading:!!h.loading,loadingIndicator:I,fullWidth:!!h.fullWidth,startIcon:h.loading?b.jsx("span",{className:Uo.iconWrapper,"aria-hidden":!0,children:I}):o!=null?b.jsx("span",{className:Uo.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":x,...h.loading?{"data-loading":"true"}:{},...m,disabled:!!h.disabled||!!h.loading,children:b.jsx("span",{className:Uo.labelText,children:s})})});Sa.displayName="Button";const Lg="Card-module__root___c9KvZ",Vg="Card-module__header___PTXf2",Fg="Card-module__footer___Mu-JC",Bg="Card-module__section___BRT8H",zg="Card-module__content___oFIQa",dn={root:Lg,header:Vg,footer:Fg,section:Bg,content:zg},Vd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(u=>{u in n&&!(u in s)&&(s[u]=n[u])});const a={root:dn.root},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;Object.keys(u).forEach(d=>{a[d]?a[d]=`${a[d]} ${u[d]}`:a[d]=u[d]})}const c=s.className;return b.jsx(pe.Card,{ref:o,className:c,classes:a,...s})});Vd.displayName="Card";const Fd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,className:i?`${dn.section} ${i}`:dn.section,...s})});Fd.displayName="CardSection";const Bd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,className:i?`${dn.header} ${i}`:dn.header,...s})});Bd.displayName="CardHeader";const zd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,className:i?`${dn.footer} ${i}`:dn.footer,...s})});zd.displayName="CardFooter";const Wd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,className:i?`${dn.content} ${i}`:dn.content,...s})});Wd.displayName="CardContent";const Ud=Vd,As=Ud;As.Section=Fd;As.Header=Bd;As.Footer=zd;As.Content=Wd;const Wg=Ud,Ug="Checkbox-module__groupRoot___cBS0o",Hg="Checkbox-module__root___mY3qk",qg="Checkbox-module__body___5yC7q",Yg="Checkbox-module__inner___rTke4",Gg="Checkbox-module__input___2kt-h",Kg="Checkbox-module__inputChecked___zaCIH",Xg="Checkbox-module__inputIndeterminate___CVPhn",Qg="Checkbox-module__disabled___x7-eg",Zg="Checkbox-module__icon___-O7i6",Jg="Checkbox-module__labelWrapper___GpZkr",eb="Checkbox-module__label___cwRtI",tb="Checkbox-module__description___rMhG1",nb="Checkbox-module__error___E-bmD",qe={groupRoot:Ug,root:Hg,body:qg,inner:Yg,input:Gg,inputChecked:Kg,inputIndeterminate:Xg,disabled:Qg,icon:Zg,labelWrapper:Jg,label:eb,description:tb,error:nb},Hd=Q.createContext(null),Ca=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:p,error:g,required:f,id:y,className:x,style:w,children:T,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:N,defaultValue:R,onChange:L,row:V,...j}=t,v=fe(j,o),_=v;delete _.size;const O=(P,k)=>{L&&L(k)};return b.jsx(Bt,{className:x,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:p,error:g,required:f,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:N!==void 0?N:R,readOnlyNativeProps:t,activeComponent:b.jsx(Hd.Provider,{value:{value:N!==void 0?N:R,onChange:O,name:_.name,readOnly:C||!!_.disabled},children:b.jsx(pe.FormGroup,{ref:n,row:V,...v,className:`${qe.groupRoot} ${v.className||""}`.trim(),"data-layout":s,children:T})})})});Ca.displayName="CheckboxGroup";const Ta=Q.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:p,style:g,...f}=t,y=fe(f,o),x=y;delete x.size,delete x.color;const w={root:qe.root,checked:qe.checked,disabled:qe.disabled},T=x.classes;if(T&&typeof T=="object"&&!Array.isArray(T)){const O=T;w.root=O.root?`${qe.root} ${O.root}`:qe.root,w.checked=O.checked?`${qe.checked} ${O.checked}`:qe.checked,w.disabled=O.disabled?`${qe.disabled} ${O.disabled}`:qe.disabled}const C=x.className,I=C?`${qe.root} ${C}`:qe.root,E=Q.useContext(Hd),N=E!==null,R=N?E.readOnly:!1,L=N?(E.value||[]).includes(x.value):!!(x.checked??x.defaultChecked);if(s&&i){const O=i,P=b.jsx(O,{...t,checked:L,label:m});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:P}):b.jsx(b.Fragment,{children:P})}const V=O=>{if(N){const P=O.target.checked?[...E.value||[],x.value]:(E.value||[]).filter(k=>k!==x.value);E.onChange&&E.onChange(O,P)}else x.onChange&&x.onChange(O,O.target.checked)},j=O=>b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...O,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),v=b.jsx(pe.Checkbox,{ref:n,className:m?qe.inner:`${I} ${qe.inner}`,classes:w,disabled:s||a||R,...y,checked:L,onChange:V,sx:m?{padding:0}:void 0,icon:b.jsx("div",{className:qe.input}),checkedIcon:b.jsx("div",{className:`${qe.input} ${qe.inputChecked}`,children:b.jsx(j,{className:qe.icon})}),indeterminateIcon:b.jsx("div",{className:`${qe.input} ${qe.inputIndeterminate}`,children:b.jsx("svg",{className:qe.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:b.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),_=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:qe.body,children:[v,b.jsxs("div",{className:qe.labelWrapper,children:[b.jsx("label",{className:qe.label,htmlFor:x.id,"data-disabled":s||a||R?!0:void 0,children:m}),h&&b.jsx("div",{className:qe.description,"data-disabled":s||a||R?!0:void 0,children:h}),p&&b.jsx("div",{className:qe.error,"data-disabled":s||a||R?!0:void 0,children:p})]})]})}):b.jsx("div",{className:I,style:g,children:v});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:_}):_});Ta.displayName="Checkbox";Ta.Group=Ca;const ob="Chip-module__root___f5pFk",rb="Chip-module__label___Ov9pg",sb="Chip-module__mantineIconWrapper___KLSz6",ib="Chip-module__innerWrapper___EnrTF",ab="Chip-module__children___zbRAR",lb="Chip-module__leadingIcon___JBtjQ",cb="Chip-module__removeIconWrapper___VOO7u",pt={root:ob,label:rb,mantineIconWrapper:sb,innerWrapper:ib,children:ab,leadingIcon:lb,removeIconWrapper:cb};function ub(e){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[b.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function db(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const qd=Q.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:s="Remove",children:i,checked:a,overStyled:l=!1,...c},u){const d=fe(c,l),m=d,h={root:pt.root,label:pt.label,icon:pt.leadingIcon,deleteIcon:pt.removeIconWrapper},p=m.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const T=p;h.root=T.root?`${pt.root} ${T.root}`:pt.root,h.label=T.label?`${pt.label} ${T.label}`:pt.label}const g=m.className,f=g?`${pt.root} ${g}`:pt.root,y=t?"":void 0,x=a?"":void 0,w=!i&&(!!n||!!o);return b.jsx(pe.Chip,{ref:u,className:f,classes:h,...y!==void 0?{"data-error":""}:{},...x!==void 0?{"data-checked":""}:{},...w?{"data-icon-only":""}:{},...d,icon:a?b.jsx("span",{className:pt.mantineIconWrapper,"aria-hidden":!0,children:b.jsx(db,{})}):n?b.jsx("span",{className:pt.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?b.jsx("span",{className:pt.removeIconWrapper,children:b.jsx(ub,{})}):void 0,label:b.jsx("span",{className:pt.innerWrapper,children:b.jsx("span",{className:pt.children,children:i})})})});qd.displayName="Chip";const Yd=Q.forwardRef(function({children:t,size:n,fluid:o,...s},i){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=o?!1:typeof n=="string"&&a[n]?a[n]:n;return b.jsx(pe.Container,{ref:i,maxWidth:l,...s,children:t})});Yd.displayName="Container";const pb=({disabled:e,label:t,assistiveText:n,error:o,required:s,withAsterisk:i,placeholder:a,value:l,defaultValue:c,onChange:u,readOnly:d,formLayout:m,leftSection:h,labelWithEditIcon:p,onLabelEditClick:g,...f})=>b.jsx("div",{...f,children:"DatePicker"}),fb="Dropdown-module__layoutOverride___FNcvP",mb="Dropdown-module__root___uVyL0",hb="Dropdown-module__input___dK4dN",gb="Dropdown-module__dropdown___gG-Sw",bb="Dropdown-module__option___nAGU-",ft={layoutOverride:fb,root:mb,input:hb,dropdown:gb,option:bb},Gd=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",containerWidth:i,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:p,error:g,required:f,withAsterisk:y,id:x,className:w,style:T,disabled:C,readOnly:I,readOnlyComponent:E,emptyValueComponent:N,value:R,defaultValue:L,data:V,searchable:j,clearable:v,..._}=t,O=fe(_,o),P=O;delete P.size,delete P.variant;const k={...T||{},width:i||"100%"},D=w?`${ft.layoutOverride} ${w}`:ft.layoutOverride,$=()=>V?V.map((z,A)=>typeof z=="string"?b.jsx(pe.MenuItem,{value:z,className:ft.option,"data-selected":z===(R??L)?"true":void 0,children:z},`${z}-${A}`):b.jsx(pe.MenuItem,{value:z.value,disabled:z.disabled,className:ft.option,"data-selected":z.value===(R??L)?"true":void 0,children:z.label},`${z.value}-${A}`)):null;return b.jsx(Bt,{className:D,style:k,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:p,error:!!g,required:f,id:x,readOnly:I,readOnlyComponent:E,emptyValueComponent:N,readOnlyType:"text",readOnlyValue:R!==void 0?String(R):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Select,{ref:n,disabled:C,value:R,defaultValue:L,error:!!g,required:f,displayEmpty:!0,className:ft.root,classes:{select:ft.input,icon:ft.icon},MenuProps:{classes:{paper:ft.dropdown}},"data-disabled":C?"true":void 0,"data-error":g?"true":void 0,inputProps:{"data-disabled":C?"true":void 0,"data-error":g?"true":void 0,...P.inputProps},...O,children:$()})})});Gd.displayName="Dropdown";const yb=e=>b.jsx("div",{...e,children:"FileInput"}),vb=e=>b.jsx("div",{...e,children:"FileUpload"}),Kd=Q.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,direction:i,align:a,justify:l,wrap:c,...u},d){const m=Er(u),h=typeof n=="string"&&n in at?at[n]:n,p=typeof o=="string"&&o in at?at[o]:o,g=typeof s=="string"&&s in at?at[s]:s;return b.jsx(pe.Box,{ref:d,display:"flex",...m,gap:h,rowGap:p,columnGap:g,flexDirection:i,alignItems:a,justifyContent:l,flexWrap:c,children:t})});Kd.displayName="Flex";const xb="Grid-module__root___s-qPY",Sb="Grid-module__col___tbuNg",Cb="Grid-module__hiddenFromXs___Ap3ch",Tb="Grid-module__hiddenFromSm___ZD0Wm",wb="Grid-module__hiddenFromMd___O3Zhg",Ib="Grid-module__hiddenFromLg___RxDrc",Eb="Grid-module__hiddenFromXl___k7ytz",Ob="Grid-module__visibleFromSm___w20SX",_b="Grid-module__visibleFromMd___ePFrO",kb="Grid-module__visibleFromLg___L6vtD",Pb="Grid-module__visibleFromXl___HLWTL",Vt={root:xb,col:Sb,hiddenFromXs:Cb,hiddenFromSm:Tb,hiddenFromMd:wb,hiddenFromLg:Ib,hiddenFromXl:Eb,visibleFromSm:Ob,visibleFromMd:_b,visibleFromLg:kb,visibleFromXl:Pb},Xd=Q.createContext({grow:!1});function wa(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function ic(e){return e==="auto"?"grow":e==="content"?"auto":e}function Rb(e){const t=wa(e);if(t===void 0||typeof t!="object")return ic(t);const n={};return Object.entries(t).forEach(([o,s])=>{n[o]=ic(s)}),n}function Nb(e){return wa(e)}function Mb(e){if(e===void 0||typeof e=="number")return e;const t=wa(e);return t.xs??t.sm??t.md??t.lg??t.xl}const $b={xs:Vt.hiddenFromXs,sm:Vt.hiddenFromSm,md:Vt.hiddenFromMd,lg:Vt.hiddenFromLg,xl:Vt.hiddenFromXl},Db={sm:Vt.visibleFromSm,md:Vt.visibleFromMd,lg:Vt.visibleFromLg,xl:Vt.visibleFromXl};function ac(e){return e==="base"?"xs":e}const Qd=Q.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:s=!1,justify:i,align:a,style:l,...c},u){const d=Er(c),m=typeof n=="string"&&n in at?at[n]:n;return b.jsx(Xd.Provider,{value:{grow:s},children:b.jsx(pe.Grid,{ref:u,container:!0,columns:o,spacing:m,className:Vt.root,...d,style:{justifyContent:i,alignItems:a,...l},children:t})})});Qd.displayName="Grid";const Ia=Q.forwardRef(function({children:t,span:n,offset:o,order:s,visibleFrom:i,hiddenFrom:a,style:l,className:c,...u},d){const{grow:m}=Q.useContext(Xd),h=Er(u),p=Mb(s),g=i?Db[ac(i)]:a?$b[ac(a)]:void 0,f=[Vt.col,g,c].filter(Boolean).join(" ");return b.jsx(pe.Grid,{ref:d,size:Rb(n),offset:Nb(o),className:f,...h,style:{order:p,...m?{flexGrow:1}:{},...l},children:t})});Ia.displayName="GridCol";const Zd=Qd;Zd.Col=Ia;const Jd=Q.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,justify:i,align:a,wrap:l,...c},u){const d=Er(c),m=typeof n=="string"&&n in at?at[n]:n,h=typeof o=="string"&&o in at?at[o]:o,p=typeof s=="string"&&s in at?at[s]:s;return b.jsx(pe.Stack,{ref:u,direction:"row",flexWrap:l||"wrap",justifyContent:i,alignItems:a,spacing:m,sx:{...h?{rowGap:h}:{},...p?{columnGap:p}:{}},...d,children:t})});Jd.displayName="Group";const Ab="HoverCard-module__dropdown___FBPFW",jb="HoverCard-module__arrow___S9AkE",lc={dropdown:Ab,arrow:jb},ep=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:s=0,closeDelay:i=150,disabled:a=!1,offset:l=5,children:c,...u}){const d=fe(u,t),m={tooltip:lc.dropdown,arrow:lc.arrow},h=d.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;Object.keys(f).forEach(y=>{m[y]?m[y]=`${m[y]} ${f[y]}`:m[y]=f[y]})}let p=null,g=null;return Q.Children.forEach(c,f=>{var y,x;if(Q.isValidElement(f)){const w=f;((y=w.type)==null?void 0:y.displayName)==="HoverCardTarget"?p=w.props.children:((x=w.type)==null?void 0:x.displayName)==="HoverCardDropdown"&&(g=w.props.children)}}),p||(p=b.jsx("div",{})),g||(g=b.jsx("div",{})),b.jsx(pe.Tooltip,{title:g,placement:o,arrow:n,enterDelay:s,leaveDelay:i,disableHoverListener:a,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,l]}}]}},classes:m,...d,children:Q.isValidElement(p)?p:b.jsx("span",{children:p})})};ep.displayName="HoverCard";const tp=function({children:t}){return b.jsx(b.Fragment,{children:t})};tp.displayName="HoverCardTarget";const np=function({children:t}){return b.jsx(b.Fragment,{children:t})};np.displayName="HoverCardDropdown";const Ea=ep;Ea.Target=tp;Ea.Dropdown=np;const Lb="Link-module__root___I0VGE",Vb="Link-module__iconWrapper___W-LlF",Fb="Link-module__labelText___wSvUy",Ur={root:Lb,iconWrapper:Vb,labelText:Fb},op=Q.forwardRef(function({icon:t,children:n,overStyled:o=!1,...s},i){const a=fe(s,o),c=a.className,u=c?`${Ur.root} ${c}`:Ur.root;return b.jsxs(pe.Link,{ref:i,className:u,underline:"none",...t?{"data-has-icon":""}:{},...a,children:[t&&b.jsx("span",{className:Ur.iconWrapper,"aria-hidden":!0,children:t}),b.jsx("span",{className:Ur.labelText,children:n})]})});op.displayName="Link";const Bb="Menu-module__dropdown___j4xuA",zb="Menu-module__item___NMXha",Wb="Menu-module__divider___wPiNq",rr={dropdown:Bb,item:zb,divider:Wb},rp=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.Menu,{ref:s,className:`${rr.dropdown} ${n||""}`,classes:{paper:rr.dropdown,list:rr.dropdown},...i})});rp.displayName="Menu";const sp=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.MenuItem,{ref:s,className:`${rr.item} ${n||""}`,...i})});sp.displayName="MenuItem";const ip=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.Divider,{ref:s,className:`${rr.divider} ${n||""}`,...i})});ip.displayName="MenuDivider";const Ub="Modal-module__root___ytPLl",Hb="Modal-module__inner___SSUJE",qb="Modal-module__content___dWO-B",Yb="Modal-module__header___ILG9i",Gb="Modal-module__title___A5OeE",Kb="Modal-module__scrollArea___KD-hm",Xb="Modal-module__footer___rro2w",Qb="Modal-module__close___-ER1C",rn={root:Ub,inner:Hb,content:qb,header:Yb,title:Gb,scrollArea:Kb,footer:Xb,close:Qb},Zb=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),ap=Q.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:s,children:i,onClose:a,className:l,...c},u){const d=fe(c,t);let m=null;const h=[];return Q.Children.forEach(i,p=>{var g;Q.isValidElement(p)&&(p.type===_a||((g=p.type)==null?void 0:g.displayName)==="Modal.Footer")?m=p:h.push(p)}),b.jsxs(pe.Dialog,{ref:u,className:`${rn.root} ${l||""}`,classes:{paper:rn.inner},...d,open:n||d.open||!1,onClose:a,children:[(s||o)&&b.jsxs("div",{className:rn.header,children:[s&&b.jsx("div",{className:rn.title,children:s}),o&&b.jsx(pe.IconButton,{onClick:p=>a==null?void 0:a(p,"backdropClick"),className:rn.close,children:b.jsx(Zb,{})})]}),b.jsx(Oa,{children:h}),m]})});ap.displayName="Modal";const lp=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.DialogTitle,{ref:s,className:`${rn.title} ${n||""}`,...i})});lp.displayName="Modal.Title";const Oa=Q.forwardRef(function({overStyled:t=!1,className:n,children:o,...s},i){const a=fe(s,t),l=Q.useRef(null),[c,u]=Q.useState(!1),[d,m]=Q.useState(!1),h=Q.useCallback(()=>{if(l.current){const{scrollTop:p,scrollHeight:g,clientHeight:f}=l.current;u(p>0),m(Math.ceil(p+f)<g)}},[]);return Q.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,o]),b.jsx(pe.DialogContent,{ref:p=>{typeof i=="function"?i(p):i&&(i.current=p),l&&(l.current=p)},onScroll:()=>h(),"data-scrolled-top":c||void 0,"data-scrolled-bottom":d||void 0,className:`${rn.content} ${rn.scrollArea} ${n||""}`,...a,children:o})});Oa.displayName="Modal.Body";const _a=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.DialogActions,{ref:s,className:`${rn.footer} ${n||""}`,...i})});_a.displayName="Modal.Footer";const js=ap;js.Title=lp;js.Body=Oa;js.Footer=_a;const Jb="NumberInput-module__layoutOverride___5-9T4",ey="NumberInput-module__root___C6rAn",ty="NumberInput-module__input___Ss8p7",ny="NumberInput-module__section___MijP0",oy="NumberInput-module__controls___8UfQ2",ry="NumberInput-module__control___Qre9-",Fn={layoutOverride:Jb,root:ey,input:ty,section:ny,controls:oy,control:ry},cp=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:f,className:y,style:x,disabled:w,readOnly:T,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:N,leftSection:R,rightSection:L,min:V,max:j,step:v,hideControls:_=!1,...O}=t,P=fe(O,o),k=P;delete k.size,delete k.variant,delete k.radius;const D={wrapper:Fn.root,input:Fn.input,section:Fn.section,controls:Fn.controls,control:Fn.control},$=y?`${Fn.layoutOverride} ${y}`:Fn.layoutOverride,z=R?b.jsx("div",{className:D.section,"data-position":"left",children:R}):void 0,A=L?b.jsx("div",{className:D.section,"data-position":"right",children:L}):void 0;return b.jsx(Bt,{className:$,style:x,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:f,readOnly:T,readOnlyComponent:C,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:E!==void 0?E==null?void 0:E.toString():N==null?void 0:N.toString(),readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{ref:n,classes:D,disabled:w,value:E,defaultValue:N,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:z,endAdornment:A},inputProps:{min:V,max:j,step:v,...k.inputProps},...P})})});cp.displayName="NumberInput";const sy="Pagination-module__root___ITRjt",yn={root:sy};function iy(e){const t={root:yn.root,ul:yn.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${yn.root} ${i.root}`:yn.root,t.ul=i.ul?`${yn.ul} ${i.ul}`:yn.ul}const o=e.className;return{className:o?`${yn.root} ${o}`:yn.root,classNames:t}}const up=Q.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:s,total:i,withEdges:a,withControls:l,...c}=t,u=fe(c,o),d=iy(u);return b.jsx("div",{ref:n,className:d.className,children:b.jsx(pe.Pagination,{count:i,showFirstButton:a,showLastButton:a,hidePrevButton:l===!1?!0:void 0,hideNextButton:l===!1?!0:void 0,classes:d.classNames,...u})})});up.displayName="Pagination";const ay=up,ly="Panel-module__content___wdGo-",cy="Panel-module__inner___ruA2b",uy="Panel-module__header___o7SiC",dy="Panel-module__title___181OP",py="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",fy="Panel-module__body___SEC3T",my="Panel-module__footer___t6-hz",Sn={content:ly,inner:cy,header:uy,title:dy,titleTruncate:py,body:fy,footer:my},dp=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:s=!1,opened:i,...a}){const l=fe(a,t),c={content:Sn.content,header:Sn.header,title:s?Sn.titleTruncate:Sn.title,body:Sn.body,inner:Sn.inner},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const d=u;Object.keys(d).forEach(m=>{c[m]?c[m]=`${c[m]} ${d[m]}`:c[m]=d[m]})}return b.jsx(pe.Drawer,{anchor:n,keepMounted:o,open:!!i,...l,classes:c})};dp.displayName="Panel";const ka=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className,a=i?`${Sn.footer} ${i}`:Sn.footer;return b.jsx("div",{ref:o,className:a,...s})});ka.displayName="PanelFooter";const pp=dp;pp.Footer=ka;const hy="Radio-module__groupRoot___bfUii",gy="Radio-module__root___kAjTD",by="Radio-module__body___q2Wpj",yy="Radio-module__inner___QaTBB",vy="Radio-module__radio___MfgN-",xy="Radio-module__icon___DWznm",Sy="Radio-module__labelWrapper___dB0Gi",Cy="Radio-module__label___vAFIP",Ty="Radio-module__description___bEB8u",wy="Radio-module__error___wem7t",Me={groupRoot:hy,root:gy,body:by,inner:yy,radio:vy,icon:xy,labelWrapper:Sy,label:Cy,description:Ty,error:wy},Pa=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:p,error:g,required:f,id:y,className:x,style:w,children:T,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:N,defaultValue:R,...L}=t,V=fe(L,o),j=V;return delete j.size,b.jsx(Bt,{className:x,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:p,error:g,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:N!==void 0?N:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.RadioGroup,{ref:n,...V,value:N,defaultValue:R,className:Me.groupRoot,"data-layout":s,children:T})})});Pa.displayName="RadioGroup";const cc=({className:e,style:t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:b.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Ra=Q.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:p,style:g,...f}=t,y=fe(f,o),x=y;delete x.size,delete x.color;const w={root:Me.root,body:Me.body,inner:Me.inner,radio:Me.radio,icon:Me.icon,labelWrapper:Me.labelWrapper,label:Me.label},T=x.classNames;if(T&&typeof T=="object"&&!Array.isArray(T)){const R=T;w.root=R.root?`${Me.root} ${R.root}`:Me.root,w.body=R.body?`${Me.body} ${R.body}`:Me.body,w.inner=R.inner?`${Me.inner} ${R.inner}`:Me.inner,w.radio=R.radio?`${Me.radio} ${R.radio}`:Me.radio,w.icon=R.icon?`${Me.icon} ${R.icon}`:Me.icon,w.labelWrapper=R.labelWrapper?`${Me.labelWrapper} ${R.labelWrapper}`:Me.labelWrapper,w.label=R.label?`${Me.label} ${R.label}`:Me.label}const C=x.className,I=C?`${Me.root} ${C}`:Me.root;if(s&&i){const R=!!(x.checked??x.defaultChecked),L=i,V=b.jsx(L,{...t,checked:R,label:x.label});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:V}):b.jsx(b.Fragment,{children:V})}const E=b.jsx(pe.Radio,{ref:n,icon:b.jsx(cc,{}),checkedIcon:b.jsx(cc,{className:Me.checked}),className:I,classes:w,disabled:s||a,...y}),N=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:Me.body,children:[E,b.jsxs("div",{className:Me.labelWrapper,children:[b.jsx("label",{className:Me.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),h&&b.jsx("div",{className:Me.description,"data-disabled":s||a?!0:void 0,children:h}),p&&b.jsx("div",{className:Me.error,"data-disabled":s||a?!0:void 0,children:p})]})]})}):E;return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:N}):N});Ra.displayName="Radio";Ra.Group=Pa;const Iy="SegmentedControl-module__root___JFRhg",Ey="SegmentedControl-module__label___mS17q",Oy="SegmentedControl-module__control___znOdQ",yt={root:Iy,label:Ey,control:Oy};function _y(e){const t={root:yt.root,control:yt.control,label:yt.label,indicator:yt.indicator},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${yt.root} ${i.root}`:yt.root,t.control=i.control?`${yt.control} ${i.control}`:yt.control,t.label=i.label?`${yt.label} ${i.label}`:yt.label,t.indicator=i.indicator?`${yt.indicator} ${i.indicator}`:yt.indicator}const o=e.className;return{className:o?`${yt.root} ${o}`:yt.root,classNames:t}}const fp=Q.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:s=[],value:i,onChange:a,...l},c){const u=fe(l,t),d=u;delete d.disabled;const m=_y(d),h=(p,g)=>{g!==null&&a&&a(g)};return b.jsx(pe.ToggleButtonGroup,{ref:c,className:m.className,classes:m.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:i,onChange:h,...u,children:s.map(p=>{const g=typeof p=="string"?p:p.value,f=typeof p=="string"?p:p.label,y=typeof p=="string"?!1:p.disabled;return b.jsx(pe.ToggleButton,{value:g,disabled:y,className:m.classNames.control,children:b.jsx("div",{className:m.classNames.label,children:f})},g)})})});fp.displayName="SegmentedControl";const ky=fp,Py="Slider-module__layoutOverride___zYPun",Ry="Slider-module__sliderContainer___y8I0J",Ny="Slider-module__sliderTrackWrapper___UHpVh",My="Slider-module__iconWrapper___uqHpC",$y="Slider-module__sliderRoot___LI86H",Dy="Slider-module__sliderTrack___oqnlG",Ay="Slider-module__sliderBar___TI4VY",jy="Slider-module__sliderThumb___OFn8p",Ly="Slider-module__sliderMark___1lM2B",Vy="Slider-module__sliderTooltip___J1Aqb",Fy="Slider-module__minMaxGuide___TaGqz",By="Slider-module__rightGuideContainer___8dOT8",zy="Slider-module__currentValue___dGV2T",Wy="Slider-module__inputField___6x578",Uy="Slider-module__readOnlyValue___-ZzMW",$e={layoutOverride:Py,sliderContainer:Ry,sliderTrackWrapper:Ny,iconWrapper:My,sliderRoot:$y,sliderTrack:Dy,sliderBar:Ay,sliderThumb:jy,sliderMark:Ly,sliderTooltip:Vy,minMaxGuide:Fy,rightGuideContainer:By,currentValue:zy,inputField:Wy,readOnlyValue:Uy},Hy=({value:e})=>b.jsx("div",{className:$e.readOnlyValue,children:e}),mp=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,tooltipLabel:h,assistiveText:p,assistiveWithIcon:g,error:f,required:y,withAsterisk:x,id:w,className:T,style:C,disabled:I,readOnly:E,readOnlyComponent:N,emptyValueComponent:R,value:L,defaultValue:V,icon:j,showInput:v=!1,showMinMaxLabels:_=!0,min:O=0,max:P=100,step:k=1,onChange:D,onChangeEnd:$,...z}=t,[A,F]=Q.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:V!==void 0?Array.isArray(V)?V[0]:V:O),W=L!==void 0?Array.isArray(L)?L[0]:L:A,[K,Z]=Q.useState(W.toString());Q.useEffect(()=>{Z(W.toString())},[W]);const Y=(oe,ye)=>{const me=Array.isArray(ye)?ye[0]:ye;L===void 0&&F(me),D==null||D(me)},X=oe=>{const ye=oe.target.value;Z(ye);const me=parseFloat(ye);if(!isNaN(me)){const re=Math.max(O,Math.min(P,me));Y(null,re)}},ne=()=>{Z(W.toString())},q=fe(z,o),B=q;delete B.size,delete B.color,delete B.wrapperProps;const H={root:$e.sliderRoot,rail:$e.sliderTrack,track:$e.sliderBar,thumb:$e.sliderThumb,mark:$e.sliderMark,markLabel:$e.sliderMarkLabel,valueLabel:$e.sliderTooltip},ae=B.classNames;if(ae&&typeof ae=="object"&&!Array.isArray(ae)){const oe=ae;H.root=oe.root?`${$e.sliderRoot} ${oe.root}`:$e.sliderRoot,H.rail=oe.track?`${$e.sliderTrack} ${oe.track}`:$e.sliderTrack,H.track=oe.bar?`${$e.sliderBar} ${oe.bar}`:$e.sliderBar,H.thumb=oe.thumb?`${$e.sliderThumb} ${oe.thumb}`:$e.sliderThumb,H.mark=oe.mark?`${$e.sliderMark} ${oe.mark}`:$e.sliderMark,H.markLabel=oe.markLabel?`${$e.sliderMarkLabel} ${oe.markLabel}`:$e.sliderMarkLabel}const G=T?`${$e.layoutOverride} ${T}`:$e.layoutOverride,de=j?b.jsx("span",{className:$e.iconWrapper,"aria-hidden":!0,children:j}):null;return b.jsx(Bt,{ref:n,className:G,style:C,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:p,assistiveWithIcon:g,error:!!f,required:y,id:w,readOnly:E,readOnlyComponent:N||Hy,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:W,readOnlyNativeProps:{value:W},activeComponent:b.jsxs("div",{className:$e.sliderContainer,"data-form-layout":s,"data-disabled":I?"true":void 0,"data-error":f?"true":void 0,children:[de,_&&b.jsx("span",{className:$e.minMaxGuide,children:O}),b.jsx("div",{className:$e.sliderTrackWrapper,children:b.jsx(pe.Slider,{classes:H,disabled:I,value:W,onChange:Y,onChangeCommitted:$,min:O,max:P,step:k,valueLabelDisplay:h===null?"off":"auto",valueLabelFormat:typeof h=="function"?h:void 0,...q})}),b.jsxs("div",{className:$e.rightGuideContainer,children:[!v&&b.jsx("span",{className:$e.currentValue,children:W}),_&&b.jsx("span",{className:$e.minMaxGuide,children:P})]}),v&&b.jsx("input",{type:"number",className:$e.inputField,value:K,onChange:X,onBlur:ne,min:O,max:P,step:k??void 0,disabled:I,"data-error":f?"true":void 0})]})})});mp.displayName="Slider";const hp=Q.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:s,...i},a){const l=Er(i),c=typeof n=="string"&&n in at?at[n]:n;return b.jsx(pe.Stack,{ref:a,spacing:c,alignItems:o,justifyContent:s,...l,children:t})});hp.displayName="Stack";const qy="Stepper-module__root___jbSYO",Yy="Stepper-module__horizontal___USHT1",Gy="Stepper-module__steps___4HPO6",Ky="Stepper-module__step___s2nqL",Xy="Stepper-module__stepLabel___N6nuy",Qy="Stepper-module__stepDescription___DnDAy",Zy="Stepper-module__separator___pU0No",Jy="Stepper-module__vertical___d4mOs",ev="Stepper-module__large___J18-y",tv="Stepper-module__small___Ub-zb",nv="Stepper-module__stepIcon___YQHNq",ov="Stepper-module__verticalSeparator___frWc1",Ot={root:qy,horizontal:Yy,steps:Gy,step:Ky,stepLabel:Xy,stepDescription:Qy,separator:Zy,vertical:Jy,large:ev,small:tv,stepIcon:nv,verticalSeparator:ov},gp=Q.forwardRef(function(t,n){const{overStyled:o=!1,size:s="large",orientation:i="horizontal",className:a,style:l,...c}=t,u=fe(c,o);return b.jsx("div",{className:`${Ot.root} ${i==="horizontal"?Ot.horizontal:Ot.vertical} ${s==="large"?Ot.large:Ot.small} ${a||""}`,style:l,"data-size":s,"data-orientation":i,children:b.jsx(pe.Stepper,{ref:n,orientation:i,connector:b.jsx(pe.StepConnector,{classes:{root:i==="horizontal"?Ot.separator:Ot.verticalSeparator}}),classes:{root:Ot.steps},...u})})});gp.displayName="Stepper";const rv=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.Step,{ref:n,classes:{root:Ot.step},className:s||"",...fe(i,o)})});rv.displayName="Step";const sv=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepButton,{ref:n,className:s||"",...fe(i,o)})});sv.displayName="StepButton";const iv=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,description:i,...a}=t;return b.jsx(pe.StepLabel,{ref:n,className:s||"",classes:{label:Ot.stepLabel,iconContainer:Ot.stepIcon},optional:i?b.jsx("div",{className:Ot.stepDescription,children:i}):a.optional,...fe(a,o)})});iv.displayName="StepLabel";const av=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepConnector,{ref:n,className:s||"",...fe(i,o)})});av.displayName="StepConnector";const lv="Switch-module__root___Y5Ydi",cv="Switch-module__track___7ObdZ",uv="Switch-module__body___Sw9Wr",dv="Switch-module__thumb___-FTeK",pv="Switch-module__labelWrapper___YSOwx",fv="Switch-module__label___LrH7V",mv="Switch-module__description___CClza",hv="Switch-module__error___OSPrU",gv="Switch-module__groupRoot___-Uepi",Pe={root:lv,track:cv,body:uv,thumb:dv,labelWrapper:pv,label:fv,description:mv,error:hv,groupRoot:gv},bp=Q.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:p,style:g,...f}=t,y=fe(f,o),x=y;delete x.size,delete x.color,delete x.radius,delete x.variant;const w={root:Pe.root,body:Pe.body,track:Pe.track,thumb:Pe.thumb,trackLabel:Pe.trackLabel,labelWrapper:Pe.labelWrapper,label:Pe.label},T=x.classNames;if(T&&typeof T=="object"&&!Array.isArray(T)){const R=T;w.root=R.root?`${Pe.root} ${R.root}`:Pe.root,w.body=R.body?`${Pe.body} ${R.body}`:Pe.body,w.track=R.track?`${Pe.track} ${R.track}`:Pe.track,w.thumb=R.thumb?`${Pe.thumb} ${R.thumb}`:Pe.thumb,w.trackLabel=R.trackLabel?`${Pe.trackLabel} ${R.trackLabel}`:Pe.trackLabel,w.labelWrapper=R.labelWrapper?`${Pe.labelWrapper} ${R.labelWrapper}`:Pe.labelWrapper,w.label=R.label?`${Pe.label} ${R.label}`:Pe.label}const C=x.className,I=C?`${Pe.root} ${C}`:Pe.root;if(s&&i){const R=!!(x.checked??x.defaultChecked),L=i,V=b.jsx(L,{...t,checked:R,label:x.label});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:V}):b.jsx(b.Fragment,{children:V})}const E=b.jsx(pe.Switch,{ref:n,className:m?Pe.inner:`${I} ${Pe.inner}`,classes:w,disabled:s||a,"data-disabled":s||a||void 0,...y}),N=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:Pe.body,children:[E,b.jsxs("div",{className:Pe.labelWrapper,children:[b.jsx("label",{className:Pe.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),h&&b.jsx("div",{className:Pe.description,"data-disabled":s||a?!0:void 0,children:h}),p&&b.jsx("div",{className:Pe.error,"data-disabled":s||a?!0:void 0,children:p})]})]})}):E;return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:N}):N});bp.displayName="Switch";const yp=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:p,error:g,required:f,id:y,className:x,style:w,children:T,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:N,defaultValue:R,onChange:L,...V}=t,j=fe(V,o),v=j;return delete v.size,b.jsx(Bt,{className:x,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:p,error:g,required:f,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:N!==void 0?N:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.FormGroup,{ref:n,...j,className:`${Pe.groupRoot} ${j.className||""}`.trim(),"data-layout":s,children:T})})});yp.displayName="SwitchGroup";const bv="Table-module__root___aMWWS",yv={root:bv},vp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className,a=yv.root,l=i?`${a} ${i}`:a;return b.jsx(pe.Table,{ref:o,className:l,...s})});vp.displayName="Table";const xp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableBody,{ref:o,...s})});xp.displayName="TableBody";const Sp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableCell,{ref:o,...s})});Sp.displayName="TableCell";const Cp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableContainer,{ref:o,...s})});Cp.displayName="TableContainer";const Tp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableHead,{ref:o,...s})});Tp.displayName="TableHead";const wp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableRow,{ref:o,...s})});wp.displayName="TableRow";const Ip=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableFooter,{ref:o,...s})});Ip.displayName="TableFooter";const Ep=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableSortLabel,{ref:o,...s})});Ep.displayName="TableSortLabel";const Mn=vp;Mn.Body=xp;Mn.Cell=Sp;Mn.Container=Cp;Mn.Head=Tp;Mn.Row=wp;Mn.Footer=Ip;Mn.SortLabel=Ep;const vv="Tabs-module__root___-VKVI",xv="Tabs-module__list___qRVME",Sv="Tabs-module__tab___IdDYc",Cv="Tabs-module__panel___08i9c",sr={root:vv,list:xv,tab:Sv,panel:Cv};function to(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}},qr={exports:{}},Re={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var fs;function Dp(){if(fs)return me;fs=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(x){if(typeof x=="object"&&x!==null){var I=x.$$typeof;switch(I){case t:switch(x=x.type,x){case u:case c:case o:case s:case r:case f:return x;default:switch(x=x&&x.$$typeof,x){case a:case p:case y:case d:case i:return x;default:return I}}case n:return I}}}function C(x){return E(x)===c}return me.AsyncMode=u,me.ConcurrentMode=c,me.ContextConsumer=a,me.ContextProvider=i,me.Element=t,me.ForwardRef=p,me.Fragment=o,me.Lazy=y,me.Memo=d,me.Portal=n,me.Profiler=s,me.StrictMode=r,me.Suspense=f,me.isAsyncMode=function(x){return C(x)||E(x)===u},me.isConcurrentMode=C,me.isContextConsumer=function(x){return E(x)===a},me.isContextProvider=function(x){return E(x)===i},me.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},me.isForwardRef=function(x){return E(x)===p},me.isFragment=function(x){return E(x)===o},me.isLazy=function(x){return E(x)===y},me.isMemo=function(x){return E(x)===d},me.isPortal=function(x){return E(x)===n},me.isProfiler=function(x){return E(x)===s},me.isStrictMode=function(x){return E(x)===r},me.isSuspense=function(x){return E(x)===f},me.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===c||x===s||x===r||x===f||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===d||x.$$typeof===i||x.$$typeof===a||x.$$typeof===p||x.$$typeof===v||x.$$typeof===_||x.$$typeof===S||x.$$typeof===m)},me.typeOf=E,me}var he={};/** @license React v16.13.1
8
+ */var uc;function Tv(){if(uc)return Re;uc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function T(I){if(typeof I=="object"&&I!==null){var E=I.$$typeof;switch(E){case t:switch(I=I.type,I){case c:case u:case o:case i:case s:case m:return I;default:switch(I=I&&I.$$typeof,I){case l:case d:case g:case p:case a:return I;default:return E}}case n:return E}}}function C(I){return T(I)===u}return Re.AsyncMode=c,Re.ConcurrentMode=u,Re.ContextConsumer=l,Re.ContextProvider=a,Re.Element=t,Re.ForwardRef=d,Re.Fragment=o,Re.Lazy=g,Re.Memo=p,Re.Portal=n,Re.Profiler=i,Re.StrictMode=s,Re.Suspense=m,Re.isAsyncMode=function(I){return C(I)||T(I)===c},Re.isConcurrentMode=C,Re.isContextConsumer=function(I){return T(I)===l},Re.isContextProvider=function(I){return T(I)===a},Re.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},Re.isForwardRef=function(I){return T(I)===d},Re.isFragment=function(I){return T(I)===o},Re.isLazy=function(I){return T(I)===g},Re.isMemo=function(I){return T(I)===p},Re.isPortal=function(I){return T(I)===n},Re.isProfiler=function(I){return T(I)===i},Re.isStrictMode=function(I){return T(I)===s},Re.isSuspense=function(I){return T(I)===m},Re.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===o||I===u||I===i||I===s||I===m||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===p||I.$$typeof===a||I.$$typeof===l||I.$$typeof===d||I.$$typeof===y||I.$$typeof===x||I.$$typeof===w||I.$$typeof===f)},Re.typeOf=T,Re}var Ne={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var ms;function Vp(){return ms||(ms=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(D){return typeof D=="string"||typeof D=="function"||D===o||D===c||D===s||D===r||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===d||D.$$typeof===i||D.$$typeof===a||D.$$typeof===p||D.$$typeof===v||D.$$typeof===_||D.$$typeof===S||D.$$typeof===m)}function C(D){if(typeof D=="object"&&D!==null){var Ee=D.$$typeof;switch(Ee){case t:var te=D.type;switch(te){case u:case c:case o:case s:case r:case f:return te;default:var Te=te&&te.$$typeof;switch(Te){case a:case p:case y:case d:case i:return Te;default:return Ee}}case n:return Ee}}}var x=u,I=c,w=a,N=i,L=t,F=p,U=o,b=y,R=d,T=n,j=s,V=r,K=f,se=!1;function oe(D){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(D)||C(D)===u}function M(D){return C(D)===c}function z(D){return C(D)===a}function Q(D){return C(D)===i}function re(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ne(D){return C(D)===p}function Y(D){return C(D)===o}function J(D){return C(D)===y}function Z(D){return C(D)===d}function A(D){return C(D)===n}function P(D){return C(D)===s}function W(D){return C(D)===r}function ie(D){return C(D)===f}he.AsyncMode=x,he.ConcurrentMode=I,he.ContextConsumer=w,he.ContextProvider=N,he.Element=L,he.ForwardRef=F,he.Fragment=U,he.Lazy=b,he.Memo=R,he.Portal=T,he.Profiler=j,he.StrictMode=V,he.Suspense=K,he.isAsyncMode=oe,he.isConcurrentMode=M,he.isContextConsumer=z,he.isContextProvider=Q,he.isElement=re,he.isForwardRef=ne,he.isFragment=Y,he.isLazy=J,he.isMemo=Z,he.isPortal=A,he.isProfiler=P,he.isStrictMode=W,he.isSuspense=ie,he.isValidElementType=E,he.typeOf=C})()),he}var hs;function Ca(){return hs||(hs=1,process.env.NODE_ENV==="production"?Pn.exports=Dp():Pn.exports=Vp()),Pn.exports}/*
15
+ */var dc;function wv(){return dc||(dc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function T(G){return typeof G=="string"||typeof G=="function"||G===o||G===u||G===i||G===s||G===m||G===h||typeof G=="object"&&G!==null&&(G.$$typeof===g||G.$$typeof===p||G.$$typeof===a||G.$$typeof===l||G.$$typeof===d||G.$$typeof===y||G.$$typeof===x||G.$$typeof===w||G.$$typeof===f)}function C(G){if(typeof G=="object"&&G!==null){var de=G.$$typeof;switch(de){case t:var oe=G.type;switch(oe){case c:case u:case o:case i:case s:case m:return oe;default:var ye=oe&&oe.$$typeof;switch(ye){case l:case d:case g:case p:case a:return ye;default:return de}}case n:return de}}}var I=c,E=u,N=l,R=a,L=t,V=d,j=o,v=g,_=p,O=n,P=i,k=s,D=m,$=!1;function z(G){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(G)||C(G)===c}function A(G){return C(G)===u}function F(G){return C(G)===l}function W(G){return C(G)===a}function K(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function Z(G){return C(G)===d}function Y(G){return C(G)===o}function X(G){return C(G)===g}function ne(G){return C(G)===p}function q(G){return C(G)===n}function B(G){return C(G)===i}function H(G){return C(G)===s}function ae(G){return C(G)===m}Ne.AsyncMode=I,Ne.ConcurrentMode=E,Ne.ContextConsumer=N,Ne.ContextProvider=R,Ne.Element=L,Ne.ForwardRef=V,Ne.Fragment=j,Ne.Lazy=v,Ne.Memo=_,Ne.Portal=O,Ne.Profiler=P,Ne.StrictMode=k,Ne.Suspense=D,Ne.isAsyncMode=z,Ne.isConcurrentMode=A,Ne.isContextConsumer=F,Ne.isContextProvider=W,Ne.isElement=K,Ne.isForwardRef=Z,Ne.isFragment=Y,Ne.isLazy=X,Ne.isMemo=ne,Ne.isPortal=q,Ne.isProfiler=B,Ne.isStrictMode=H,Ne.isSuspense=ae,Ne.isValidElementType=T,Ne.typeOf=C})()),Ne}var pc;function Op(){return pc||(pc=1,process.env.NODE_ENV==="production"?qr.exports=Tv():qr.exports=wv()),qr.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var $o,gs;function Bp(){if(gs)return $o;gs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $o=r()?Object.assign:function(s,i){for(var a,u=o(s),c,p=1;p<arguments.length;p++){a=Object(arguments[p]);for(var f in a)t.call(a,f)&&(u[f]=a[f]);if(e){c=e(a);for(var h=0;h<c.length;h++)n.call(a,c[h])&&(u[c[h]]=a[c[h]])}}return u},$o}var Ro,ys;function Er(){if(ys)return Ro;ys=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ro=e,Ro}var ko,bs;function Sa(){return bs||(bs=1,ko=Function.call.bind(Object.prototype.hasOwnProperty)),ko}var Mo,vs;function Fp(){if(vs)return Mo;vs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Er(),n={},o=Sa();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(s,i,a,u,c){if(process.env.NODE_ENV!=="production"){for(var p in s)if(o(s,p)){var f;try{if(typeof s[p]!="function"){var h=Error((u||"React class")+": "+a+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[p](i,p,u,a,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+f.message+(d??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Mo=r,Mo}var Po,_s;function zp(){if(_s)return Po;_s=1;var e=Ca(),t=Bp(),n=Er(),o=Sa(),r=Fp(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return Po=function(a,u){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function f(M){var z=M&&(c&&M[c]||M[p]);if(typeof z=="function")return z}var h="<<anonymous>>",d={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:S(),arrayOf:E,element:C(),elementType:x(),instanceOf:I,node:F(),objectOf:N,oneOf:w,oneOfType:L,shape:b,exact:R};function y(M,z){return M===z?M!==0||1/M===1/z:M!==M&&z!==z}function m(M,z){this.message=M,this.data=z&&typeof z=="object"?z:{},this.stack=""}m.prototype=Error.prototype;function v(M){if(process.env.NODE_ENV!=="production")var z={},Q=0;function re(Y,J,Z,A,P,W,ie){if(A=A||h,W=W||Z,ie!==n){if(u){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=A+":"+Z;!z[Ee]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+A+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[Ee]=!0,Q++)}}return J[Z]==null?Y?J[Z]===null?new m("The "+P+" `"+W+"` is marked as required "+("in `"+A+"`, but its value is `null`.")):new m("The "+P+" `"+W+"` is marked as required in "+("`"+A+"`, but its value is `undefined`.")):null:M(J,Z,A,P,W)}var ne=re.bind(null,!1);return ne.isRequired=re.bind(null,!0),ne}function _(M){function z(Q,re,ne,Y,J,Z){var A=Q[re],P=V(A);if(P!==M){var W=K(A);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+W+"` supplied to `"+ne+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return v(z)}function S(){return v(i)}function E(M){function z(Q,re,ne,Y,J){if(typeof M!="function")return new m("Property `"+J+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var Z=Q[re];if(!Array.isArray(Z)){var A=V(Z);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+A+"` supplied to `"+ne+"`, expected an array."))}for(var P=0;P<Z.length;P++){var W=M(Z,P,ne,Y,J+"["+P+"]",n);if(W instanceof Error)return W}return null}return v(z)}function C(){function M(z,Q,re,ne,Y){var J=z[Q];if(!a(J)){var Z=V(J);return new m("Invalid "+ne+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return v(M)}function x(){function M(z,Q,re,ne,Y){var J=z[Q];if(!e.isValidElementType(J)){var Z=V(J);return new m("Invalid "+ne+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return v(M)}function I(M){function z(Q,re,ne,Y,J){if(!(Q[re]instanceof M)){var Z=M.name||h,A=oe(Q[re]);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+A+"` supplied to `"+ne+"`, expected ")+("instance of `"+Z+"`."))}return null}return v(z)}function w(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function z(Q,re,ne,Y,J){for(var Z=Q[re],A=0;A<M.length;A++)if(y(Z,M[A]))return null;var P=JSON.stringify(M,function(ie,D){var Ee=K(D);return Ee==="symbol"?String(D):D});return new m("Invalid "+Y+" `"+J+"` of value `"+String(Z)+"` "+("supplied to `"+ne+"`, expected one of "+P+"."))}return v(z)}function N(M){function z(Q,re,ne,Y,J){if(typeof M!="function")return new m("Property `"+J+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var Z=Q[re],A=V(Z);if(A!=="object")return new m("Invalid "+Y+" `"+J+"` of type "+("`"+A+"` supplied to `"+ne+"`, expected an object."));for(var P in Z)if(o(Z,P)){var W=M(Z,P,ne,Y,J+"."+P,n);if(W instanceof Error)return W}return null}return v(z)}function L(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var z=0;z<M.length;z++){var Q=M[z];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(Q)+" at index "+z+"."),i}function re(ne,Y,J,Z,A){for(var P=[],W=0;W<M.length;W++){var ie=M[W],D=ie(ne,Y,J,Z,A,n);if(D==null)return null;D.data&&o(D.data,"expectedType")&&P.push(D.data.expectedType)}var Ee=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new m("Invalid "+Z+" `"+A+"` supplied to "+("`"+J+"`"+Ee+"."))}return v(re)}function F(){function M(z,Q,re,ne,Y){return T(z[Q])?null:new m("Invalid "+ne+" `"+Y+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return v(M)}function U(M,z,Q,re,ne){return new m((M||"React class")+": "+z+" type `"+Q+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function b(M){function z(Q,re,ne,Y,J){var Z=Q[re],A=V(Z);if(A!=="object")return new m("Invalid "+Y+" `"+J+"` of type `"+A+"` "+("supplied to `"+ne+"`, expected `object`."));for(var P in M){var W=M[P];if(typeof W!="function")return U(ne,Y,J,P,K(W));var ie=W(Z,P,ne,Y,J+"."+P,n);if(ie)return ie}return null}return v(z)}function R(M){function z(Q,re,ne,Y,J){var Z=Q[re],A=V(Z);if(A!=="object")return new m("Invalid "+Y+" `"+J+"` of type `"+A+"` "+("supplied to `"+ne+"`, expected `object`."));var P=t({},Q[re],M);for(var W in P){var ie=M[W];if(o(M,W)&&typeof ie!="function")return U(ne,Y,J,W,K(ie));if(!ie)return new m("Invalid "+Y+" `"+J+"` key `"+W+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(Q[re],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=ie(Z,W,ne,Y,J+"."+W,n);if(D)return D}return null}return v(z)}function T(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(T);if(M===null||a(M))return!0;var z=f(M);if(z){var Q=z.call(M),re;if(z!==M.entries){for(;!(re=Q.next()).done;)if(!T(re.value))return!1}else for(;!(re=Q.next()).done;){var ne=re.value;if(ne&&!T(ne[1]))return!1}}else return!1;return!0;default:return!1}}function j(M,z){return M==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function V(M){var z=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":j(z,M)?"symbol":z}function K(M){if(typeof M>"u"||M===null)return""+M;var z=V(M);if(z==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return z}function se(M){var z=K(M);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function oe(M){return!M.constructor||!M.constructor.name?h:M.constructor.name}return d.checkPropTypes=r,d.resetWarningCache=r.resetWarningCache,d.PropTypes=d,d},Po}var Ao,xs;function Wp(){if(xs)return Ao;xs=1;var e=Er();function t(){}function n(){}return n.resetWarningCache=t,Ao=function(){function o(i,a,u,c,p,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}o.isRequired=o;function r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ao}var Cs;function Up(){if(Cs)return Mn.exports;if(Cs=1,process.env.NODE_ENV!=="production"){var e=Ca(),t=!0;Mn.exports=zp()(e.isElement,t)}else Mn.exports=Wp()();return Mn.exports}var Gp=Up();const l=Lp(Gp);function Ia(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ia(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ue(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ia(e))&&(o&&(o+=" "),o+=t);return o}function Un(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")o[s]={...e[s],...o[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)o[s]=i||{};else if(!i)o[s]=a;else{o[s]={...a};for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)){const c=u;o[s][c]=Un(i[c],a[c],n)}}}else s==="className"&&n&&t.className?o.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[s]===void 0&&(o[s]=e[s])}return o}function We(e,t,n=void 0){const o={};for(const r in e){const s=e[r];let i="",a=!0;for(let u=0;u<s.length;u+=1){const c=s[u];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}o[r]=i}return o}const Ss=e=>e,qp=()=>{let e=Ss;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ss}}},Hp=qp();function Wt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function _e(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Wt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var An={exports:{}},xe={};/**
19
+ */var wi,fc;function Iv(){if(fc)return wi;fc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wi=s()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}return c},wi}var Ii,mc;function Na(){if(mc)return Ii;mc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ii=e,Ii}var Ei,hc;function _p(){return hc||(hc=1,Ei=Function.call.bind(Object.prototype.hasOwnProperty)),Ei}var Oi,gc;function Ev(){if(gc)return Oi;gc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Na(),n={},o=_p();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var m;try{if(typeof i[d]!="function"){var h=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=i[d](a,d,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var p=u?u():"";e("Failed "+l+" type: "+m.message+(p??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Oi=s,Oi}var _i,bc;function Ov(){if(bc)return _i;bc=1;var e=Op(),t=Iv(),n=Na(),o=_p(),s=Ev(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return _i=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(A){var F=A&&(u&&A[u]||A[d]);if(typeof F=="function")return F}var h="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:T,element:C(),elementType:I(),instanceOf:E,node:V(),objectOf:R,oneOf:N,oneOfType:L,shape:v,exact:_};function g(A,F){return A===F?A!==0||1/A===1/F:A!==A&&F!==F}function f(A,F){this.message=A,this.data=F&&typeof F=="object"?F:{},this.stack=""}f.prototype=Error.prototype;function y(A){if(process.env.NODE_ENV!=="production")var F={},W=0;function K(Y,X,ne,q,B,H,ae){if(q=q||h,H=H||ne,ae!==n){if(c){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=q+":"+ne;!F[de]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[de]=!0,W++)}}return X[ne]==null?Y?X[ne]===null?new f("The "+B+" `"+H+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new f("The "+B+" `"+H+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:A(X,ne,q,B,H)}var Z=K.bind(null,!1);return Z.isRequired=K.bind(null,!0),Z}function x(A){function F(W,K,Z,Y,X,ne){var q=W[K],B=k(q);if(B!==A){var H=D(q);return new f("Invalid "+Y+" `"+X+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return y(F)}function w(){return y(a)}function T(A){function F(W,K,Z,Y,X){if(typeof A!="function")return new f("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ne=W[K];if(!Array.isArray(ne)){var q=k(ne);return new f("Invalid "+Y+" `"+X+"` of type "+("`"+q+"` supplied to `"+Z+"`, expected an array."))}for(var B=0;B<ne.length;B++){var H=A(ne,B,Z,Y,X+"["+B+"]",n);if(H instanceof Error)return H}return null}return y(F)}function C(){function A(F,W,K,Z,Y){var X=F[W];if(!l(X)){var ne=k(X);return new f("Invalid "+Z+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return y(A)}function I(){function A(F,W,K,Z,Y){var X=F[W];if(!e.isValidElementType(X)){var ne=k(X);return new f("Invalid "+Z+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return y(A)}function E(A){function F(W,K,Z,Y,X){if(!(W[K]instanceof A)){var ne=A.name||h,q=z(W[K]);return new f("Invalid "+Y+" `"+X+"` of type "+("`"+q+"` supplied to `"+Z+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(F)}function N(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function F(W,K,Z,Y,X){for(var ne=W[K],q=0;q<A.length;q++)if(g(ne,A[q]))return null;var B=JSON.stringify(A,function(ae,G){var de=D(G);return de==="symbol"?String(G):G});return new f("Invalid "+Y+" `"+X+"` of value `"+String(ne)+"` "+("supplied to `"+Z+"`, expected one of "+B+"."))}return y(F)}function R(A){function F(W,K,Z,Y,X){if(typeof A!="function")return new f("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ne=W[K],q=k(ne);if(q!=="object")return new f("Invalid "+Y+" `"+X+"` of type "+("`"+q+"` supplied to `"+Z+"`, expected an object."));for(var B in ne)if(o(ne,B)){var H=A(ne,B,Z,Y,X+"."+B,n);if(H instanceof Error)return H}return null}return y(F)}function L(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var F=0;F<A.length;F++){var W=A[F];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(W)+" at index "+F+"."),a}function K(Z,Y,X,ne,q){for(var B=[],H=0;H<A.length;H++){var ae=A[H],G=ae(Z,Y,X,ne,q,n);if(G==null)return null;G.data&&o(G.data,"expectedType")&&B.push(G.data.expectedType)}var de=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new f("Invalid "+ne+" `"+q+"` supplied to "+("`"+X+"`"+de+"."))}return y(K)}function V(){function A(F,W,K,Z,Y){return O(F[W])?null:new f("Invalid "+Z+" `"+Y+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return y(A)}function j(A,F,W,K,Z){return new f((A||"React class")+": "+F+" type `"+W+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function v(A){function F(W,K,Z,Y,X){var ne=W[K],q=k(ne);if(q!=="object")return new f("Invalid "+Y+" `"+X+"` of type `"+q+"` "+("supplied to `"+Z+"`, expected `object`."));for(var B in A){var H=A[B];if(typeof H!="function")return j(Z,Y,X,B,D(H));var ae=H(ne,B,Z,Y,X+"."+B,n);if(ae)return ae}return null}return y(F)}function _(A){function F(W,K,Z,Y,X){var ne=W[K],q=k(ne);if(q!=="object")return new f("Invalid "+Y+" `"+X+"` of type `"+q+"` "+("supplied to `"+Z+"`, expected `object`."));var B=t({},W[K],A);for(var H in B){var ae=A[H];if(o(A,H)&&typeof ae!="function")return j(Z,Y,X,H,D(ae));if(!ae)return new f("Invalid "+Y+" `"+X+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(W[K],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=ae(ne,H,Z,Y,X+"."+H,n);if(G)return G}return null}return y(F)}function O(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(O);if(A===null||l(A))return!0;var F=m(A);if(F){var W=F.call(A),K;if(F!==A.entries){for(;!(K=W.next()).done;)if(!O(K.value))return!1}else for(;!(K=W.next()).done;){var Z=K.value;if(Z&&!O(Z[1]))return!1}}else return!1;return!0;default:return!1}}function P(A,F){return A==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function k(A){var F=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":P(F,A)?"symbol":F}function D(A){if(typeof A>"u"||A===null)return""+A;var F=k(A);if(F==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return F}function $(A){var F=D(A);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function z(A){return!A.constructor||!A.constructor.name?h:A.constructor.name}return p.checkPropTypes=s,p.resetWarningCache=s.resetWarningCache,p.PropTypes=p,p},_i}var ki,yc;function _v(){if(yc)return ki;yc=1;var e=Na();function t(){}function n(){}return n.resetWarningCache=t,ki=function(){function o(a,l,c,u,d,m){if(m!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}o.isRequired=o;function s(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ki}var vc;function kv(){if(vc)return Hr.exports;if(vc=1,process.env.NODE_ENV!=="production"){var e=Op(),t=!0;Hr.exports=Ov()(e.isElement,t)}else Hr.exports=_v()();return Hr.exports}var Pv=kv();const r=to(Pv);function kp(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=kp(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ce(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=kp(e))&&(o&&(o+=" "),o+=t);return o}function hr(e,t,n=!1){const o={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=hr(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ce(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}function De(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const xc=e=>e,Rv=()=>{let e=xc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xc}}},Nv=Rv();function Qn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function le(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sc(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}var Yr={exports:{}},Le={};/**
21
21
  * @license React
22
22
  * react-is.production.js
23
23
  *
@@ -25,7 +25,7 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=ie(Z,W,ne,Y,J+"."+
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */var Is;function Kp(){if(Is)return xe;Is=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),d=Symbol.for("react.client.reference");function y(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case n:case r:case o:case u:case c:case h:return m;default:switch(m=m&&m.$$typeof,m){case i:case a:case f:case p:return m;case s:return m;default:return v}}case t:return v}}}return xe.ContextConsumer=s,xe.ContextProvider=i,xe.Element=e,xe.ForwardRef=a,xe.Fragment=n,xe.Lazy=f,xe.Memo=p,xe.Portal=t,xe.Profiler=r,xe.StrictMode=o,xe.Suspense=u,xe.SuspenseList=c,xe.isContextConsumer=function(m){return y(m)===s},xe.isContextProvider=function(m){return y(m)===i},xe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},xe.isForwardRef=function(m){return y(m)===a},xe.isFragment=function(m){return y(m)===n},xe.isLazy=function(m){return y(m)===f},xe.isMemo=function(m){return y(m)===p},xe.isPortal=function(m){return y(m)===t},xe.isProfiler=function(m){return y(m)===r},xe.isStrictMode=function(m){return y(m)===o},xe.isSuspense=function(m){return y(m)===u},xe.isSuspenseList=function(m){return y(m)===c},xe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===r||m===o||m===u||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===p||m.$$typeof===i||m.$$typeof===s||m.$$typeof===a||m.$$typeof===d||m.getModuleId!==void 0)},xe.typeOf=y,xe}var Ce={};/**
28
+ */var Cc;function Mv(){if(Cc)return Le;Cc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case n:case s:case o:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case m:case d:return f;case i:return f;default:return y}}case t:return y}}}return Le.ContextConsumer=i,Le.ContextProvider=a,Le.Element=e,Le.ForwardRef=l,Le.Fragment=n,Le.Lazy=m,Le.Memo=d,Le.Portal=t,Le.Profiler=s,Le.StrictMode=o,Le.Suspense=c,Le.SuspenseList=u,Le.isContextConsumer=function(f){return g(f)===i},Le.isContextProvider=function(f){return g(f)===a},Le.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Le.isForwardRef=function(f){return g(f)===l},Le.isFragment=function(f){return g(f)===n},Le.isLazy=function(f){return g(f)===m},Le.isMemo=function(f){return g(f)===d},Le.isPortal=function(f){return g(f)===t},Le.isProfiler=function(f){return g(f)===s},Le.isStrictMode=function(f){return g(f)===o},Le.isSuspense=function(f){return g(f)===c},Le.isSuspenseList=function(f){return g(f)===u},Le.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===p||f.getModuleId!==void 0)},Le.typeOf=g,Le}var Ve={};/**
29
29
  * @license React
30
30
  * react-is.development.js
31
31
  *
@@ -33,23 +33,25 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=ie(Z,W,ne,Y,J+"."+
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var Ts;function Yp(){return Ts||(Ts=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case o:case s:case r:case c:case p:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case u:case h:case f:return m;case i:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=t,Ce.ForwardRef=u,Ce.Fragment=o,Ce.Lazy=h,Ce.Memo=f,Ce.Portal=n,Ce.Profiler=s,Ce.StrictMode=r,Ce.Suspense=c,Ce.SuspenseList=p,Ce.isContextConsumer=function(m){return e(m)===i},Ce.isContextProvider=function(m){return e(m)===a},Ce.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Ce.isForwardRef=function(m){return e(m)===u},Ce.isFragment=function(m){return e(m)===o},Ce.isLazy=function(m){return e(m)===h},Ce.isMemo=function(m){return e(m)===f},Ce.isPortal=function(m){return e(m)===n},Ce.isProfiler=function(m){return e(m)===s},Ce.isStrictMode=function(m){return e(m)===r},Ce.isSuspense=function(m){return e(m)===c},Ce.isSuspenseList=function(m){return e(m)===p},Ce.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===o||m===s||m===r||m===c||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===u||m.$$typeof===y||m.getModuleId!==void 0)},Ce.typeOf=e})()),Ce}var Es;function Xp(){return Es||(Es=1,process.env.NODE_ENV==="production"?An.exports=Kp():An.exports=Yp()),An.exports}var Gn=Xp();function rt(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 Ta(e){if(k.isValidElement(e)||Gn.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ta(e[n])}),t}function ze(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(r=>{k.isValidElement(t[r])||Gn.isValidElementType(t[r])?o[r]=t[r]:rt(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&rt(e[r])?o[r]=ze(e[r],t[r],n):n.clone?o[r]=rt(t[r])?Ta(t[r]):t[r]:o[r]=t[r]}),o}function vn(e,t){return t?ze(e,t,{clone:!1}):e}const Pt=process.env.NODE_ENV!=="production"?l.oneOfType([l.number,l.string,l.object,l.array]):{};function ws(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var i,a;const s=/min-width:\s*([0-9.]+)/;return+(((i=o.match(s))==null?void 0:i[1])||0)-+(((a=r.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((o,r)=>{const s=t[r];return delete o[r],o[r]=s,o},{...t}):t}function Qp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Jp(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
37
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,r]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(s)}function Zp(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 u=t(e.breakpoints.not(...a),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const o={},r=s=>(n(o,s),o);return n(r),{...e,containerQueries:r}}const uo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ns={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${uo[e]}px)`},ef={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:uo[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function vt(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||Ns;return t.reduce((i,a,u)=>(i[s.up(s.keys[u])]=n(t[u]),i),{})}if(typeof t=="object"){const s=o.breakpoints||Ns;return Object.keys(t).reduce((i,a)=>{if(Qp(s.keys,a)){const u=Jp(o.containerQueries?o:ef,a);u&&(i[u]=n(t[a],a))}else if(Object.keys(s.values||uo).includes(a)){const u=s.up(a);i[u]=n(t[a],a)}else{const u=a;i[u]=t[u]}return i},{})}return n(t)}function tf(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const s=e.up(r);return o[s]={},o},{}))||{}}function Os(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function po(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,s)=>r&&r[s]?r[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function qn(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=po(e,n)||o,t&&(r=t(r,o,e)),r}function $e(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,s=i=>{if(i[t]==null)return null;const a=i[t],u=i.theme,c=po(u,o)||{};return vt(i,a,f=>{let h=qn(c,r,f);return f===h&&typeof f=="string"&&(h=qn(c,r,`${t}${f==="default"?"":_e(f)}`,f)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Pt}:{},s.filterProps=[t],s}function nf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const of={m:"margin",p:"padding"},rf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sf=nf(e=>{if(e.length>2)if($s[e])e=$s[e];else return[e];const[t,n]=e.split(""),o=of[t],r=rf[n]||"";return Array.isArray(r)?r.map(s=>o+s):[o+r]}),fo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],af=[...fo,...mo];function Tn(e,t,n,o){const r=po(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${s}.`),typeof r=="string"?r.startsWith("var(")&&s===0?0:r.startsWith("var(")&&s===1?r:`calc(${s} * ${r})`:r*s):Array.isArray(r)?s=>{if(typeof s=="string")return s;const i=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>r.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${i} > ${r.length-1}, you need to add the missing values.`].join(`
36
+ */var Tc;function $v(){return Tc||(Tc=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case t:switch(f=f.type,f){case o:case i:case s:case u:case d:case p:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case m:return f;case a:return f;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ve.ContextConsumer=a,Ve.ContextProvider=l,Ve.Element=t,Ve.ForwardRef=c,Ve.Fragment=o,Ve.Lazy=h,Ve.Memo=m,Ve.Portal=n,Ve.Profiler=i,Ve.StrictMode=s,Ve.Suspense=u,Ve.SuspenseList=d,Ve.isContextConsumer=function(f){return e(f)===a},Ve.isContextProvider=function(f){return e(f)===l},Ve.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ve.isForwardRef=function(f){return e(f)===c},Ve.isFragment=function(f){return e(f)===o},Ve.isLazy=function(f){return e(f)===h},Ve.isMemo=function(f){return e(f)===m},Ve.isPortal=function(f){return e(f)===n},Ve.isProfiler=function(f){return e(f)===i},Ve.isStrictMode=function(f){return e(f)===s},Ve.isSuspense=function(f){return e(f)===u},Ve.isSuspenseList=function(f){return e(f)===d},Ve.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===s||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},Ve.typeOf=e})()),Ve}var wc;function Dv(){return wc||(wc=1,process.env.NODE_ENV==="production"?Yr.exports=Mv():Yr.exports=$v()),Yr.exports}var ms=Dv();function qt(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 Pp(e){if(S.isValidElement(e)||ms.isValidElementType(e)||!qt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Pp(e[n])}),t}function wt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return qt(e)&&qt(t)&&Object.keys(t).forEach(s=>{S.isValidElement(t[s])||ms.isValidElementType(t[s])?o[s]=t[s]:qt(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&qt(e[s])?o[s]=wt(e[s],t[s],n):n.clone?o[s]=qt(t[s])?Pp(t[s]):t[s]:o[s]=t[s]}),o}function ir(e,t){return t?wt(e,t,{clone:!1}):e}const $n=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function Ic(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=s.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,s)=>{const i=t[s];return delete o[s],o[s]=i,o},{...t}):t}function Av(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function jv(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
37
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,s]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(i)}function Lv(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},s=i=>(n(o,i),o);return n(s),{...e,containerQueries:s}}const Ls={xs:0,sm:600,md:900,lg:1200,xl:1536},Ec={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ls[e]}px)`},Vv={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ls[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function pn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Ec;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||Ec;return Object.keys(t).reduce((a,l)=>{if(Av(i.keys,l)){const c=jv(o.containerQueries?o:Vv,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Ls).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function Fv(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const i=e.up(s);return o[i]={},o},{}))||{}}function Oc(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function Vs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function hs(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=Vs(e,n)||o,t&&(s=t(s,o,e)),s}function et(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Vs(c,o)||{};return pn(a,l,m=>{let h=hs(u,s,m);return m===h&&typeof m=="string"&&(h=hs(u,s,`${t}${m==="default"?"":le(m)}`,m)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:$n}:{},i.filterProps=[t],i}function Bv(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zv={m:"margin",p:"padding"},Wv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uv=Bv(e=>{if(e.length>2)if(_c[e])e=_c[e];else return[e];const[t,n]=e.split(""),o=zv[t],s=Wv[n]||"";return Array.isArray(s)?s.map(i=>o+i):[o+s]}),Fs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Hv=[...Fs,...Bs];function Or(e,t,n,o){const s=Vs(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof s=="string"?s.startsWith("var(")&&i===0?0:s.startsWith("var(")&&i===1?s:`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>s.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${a} > ${s.length-1}, you need to add the missing values.`].join(`
38
38
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
39
- `)));const a=r[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
40
- `)),()=>{})}function wr(e){return Tn(e,"spacing",8,"spacing")}function En(e,t){return typeof t=="string"||t==null?t:e(t)}function lf(e,t){return n=>e.reduce((o,r)=>(o[r]=En(t,n),o),{})}function cf(e,t,n,o){if(!t.includes(n))return null;const r=sf(n),s=lf(r,o),i=e[n];return vt(e,i,s)}function Ea(e,t){const n=wr(e.theme);return Object.keys(e).map(o=>cf(e,t,o,n)).reduce(vn,{})}function we(e){return Ea(e,fo)}we.propTypes=process.env.NODE_ENV!=="production"?fo.reduce((e,t)=>(e[t]=Pt,e),{}):{};we.filterProps=fo;function Ne(e){return Ea(e,mo)}Ne.propTypes=process.env.NODE_ENV!=="production"?mo.reduce((e,t)=>(e[t]=Pt,e),{}):{};Ne.filterProps=mo;process.env.NODE_ENV!=="production"&&af.reduce((e,t)=>(e[t]=Pt,e),{});function ho(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(s=>{o[s]=r}),o),{}),n=o=>Object.keys(o).reduce((r,s)=>t[s]?vn(r,t[s](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function He(e){return typeof e!="number"?e:`${e}px solid`}function Xe(e,t){return $e({prop:e,themeKey:"borders",transform:t})}const uf=Xe("border",He),df=Xe("borderTop",He),pf=Xe("borderRight",He),ff=Xe("borderBottom",He),mf=Xe("borderLeft",He),hf=Xe("borderColor"),gf=Xe("borderTopColor"),yf=Xe("borderRightColor"),bf=Xe("borderBottomColor"),vf=Xe("borderLeftColor"),_f=Xe("outline",He),xf=Xe("outlineColor"),go=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tn(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:En(t,o)});return vt(e,e.borderRadius,n)}return null};go.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pt}:{};go.filterProps=["borderRadius"];ho(uf,df,pf,ff,mf,hf,gf,yf,bf,vf,go,_f,xf);const yo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tn(e.theme,"spacing",8,"gap"),n=o=>({gap:En(t,o)});return vt(e,e.gap,n)}return null};yo.propTypes=process.env.NODE_ENV!=="production"?{gap:Pt}:{};yo.filterProps=["gap"];const bo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tn(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:En(t,o)});return vt(e,e.columnGap,n)}return null};bo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pt}:{};bo.filterProps=["columnGap"];const vo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tn(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:En(t,o)});return vt(e,e.rowGap,n)}return null};vo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pt}:{};vo.filterProps=["rowGap"];const Cf=$e({prop:"gridColumn"}),Sf=$e({prop:"gridRow"}),If=$e({prop:"gridAutoFlow"}),Tf=$e({prop:"gridAutoColumns"}),Ef=$e({prop:"gridAutoRows"}),wf=$e({prop:"gridTemplateColumns"}),Nf=$e({prop:"gridTemplateRows"}),Of=$e({prop:"gridTemplateAreas"}),$f=$e({prop:"gridArea"});ho(yo,bo,vo,Cf,Sf,If,Tf,Ef,wf,Nf,Of,$f);function rn(e,t){return t==="grey"?t:e}const Rf=$e({prop:"color",themeKey:"palette",transform:rn}),kf=$e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rn}),Mf=$e({prop:"backgroundColor",themeKey:"palette",transform:rn});ho(Rf,kf,Mf);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const Pf=$e({prop:"width",transform:Fe}),Nr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,s,i,a,u;const o=((i=(s=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:s.values)==null?void 0:i[n])||uo[n];return o?((u=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Fe(n)}};return vt(e,e.maxWidth,t)}return null};Nr.filterProps=["maxWidth"];const Af=$e({prop:"minWidth",transform:Fe}),jf=$e({prop:"height",transform:Fe}),Lf=$e({prop:"maxHeight",transform:Fe}),Df=$e({prop:"minHeight",transform:Fe});$e({prop:"size",cssProperty:"width",transform:Fe});$e({prop:"size",cssProperty:"height",transform:Fe});const Vf=$e({prop:"boxSizing"});ho(Pf,Nr,Af,jf,Lf,Df,Vf);const wn={border:{themeKey:"borders",transform:He},borderTop:{themeKey:"borders",transform:He},borderRight:{themeKey:"borders",transform:He},borderBottom:{themeKey:"borders",transform:He},borderLeft:{themeKey:"borders",transform:He},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:He},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:go},color:{themeKey:"palette",transform:rn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rn},backgroundColor:{themeKey:"palette",transform:rn},p:{style:Ne},pt:{style:Ne},pr:{style:Ne},pb:{style:Ne},pl:{style:Ne},px:{style:Ne},py:{style:Ne},padding:{style:Ne},paddingTop:{style:Ne},paddingRight:{style:Ne},paddingBottom:{style:Ne},paddingLeft:{style:Ne},paddingX:{style:Ne},paddingY:{style:Ne},paddingInline:{style:Ne},paddingInlineStart:{style:Ne},paddingInlineEnd:{style:Ne},paddingBlock:{style:Ne},paddingBlockStart:{style:Ne},paddingBlockEnd:{style:Ne},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},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:yo},rowGap:{style:vo},columnGap:{style:bo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Nr},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},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 Bf(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Ff(e,t){return typeof e=="function"?e(t):e}function zf(){function e(n,o,r,s){const i={[n]:o,theme:r},a=s[n];if(!a)return{[n]:o};const{cssProperty:u=n,themeKey:c,transform:p,style:f}=a;if(o==null)return null;if(c==="typography"&&o==="inherit")return{[n]:o};const h=po(r,c)||{};return f?f(i):vt(i,o,y=>{let m=qn(h,p,y);return y===m&&typeof y=="string"&&(m=qn(h,p,`${n}${y==="default"?"":_e(y)}`,y)),u===!1?m:{[u]:m}})}function t(n){const{sx:o,theme:r={},nested:s}=n||{};if(!o)return null;const i=r.unstable_sxConfig??wn;function a(u){let c=u;if(typeof u=="function")c=u(r);else if(typeof u!="object")return u;if(!c)return null;const p=tf(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(c).forEach(d=>{const y=Ff(c[d],r);if(y!=null)if(typeof y=="object")if(i[d])h=vn(h,e(d,y,r,i));else{const m=vt({theme:r},y,v=>({[d]:v}));Bf(m,y)?h[d]=t({sx:y,theme:r,nested:!0}):h=vn(h,m)}else h=vn(h,e(d,y,r,i))}),!s&&r.modularCssLayers?{"@layer sx":ws(r,Os(f,h))}:ws(r,Os(f,h))}return Array.isArray(o)?o.map(a):a(o)}return t}const un=zf();un.filterProps=["sx"];const Wf=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??wn;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Uf(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=Wf(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return rt(a)?{...o,...a}:o}:s={...o,...t},{...r,sx:s}}function Gf(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qf={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 Hf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kf=/[A-Z]|^ms/g,Yf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wa=function(t){return t.charCodeAt(1)===45},Rs=function(t){return t!=null&&typeof t!="boolean"},jo=Hf(function(e){return wa(e)?e:e.replace(Kf,"-$&").toLowerCase()}),ks=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yf,function(o,r,s){return Ot={name:r,styles:s,next:Ot},r})}return qf[t]!==1&&!wa(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hn(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ot={name:r.name,styles:r.styles,next:Ot},r.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ot={name:i.name,styles:i.styles,next:Ot},i=i.next;var a=s.styles+";";return a}return Xf(e,t,n)}}var u=n;return u}function Xf(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Hn(e,t,n[r])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;Rs(a)&&(o+=jo(s)+":"+ks(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var u=0;u<i.length;u++)Rs(i[u])&&(o+=jo(s)+":"+ks(s,i[u])+";");else{var c=Hn(e,t,i);switch(s){case"animation":case"animationName":{o+=jo(s)+":"+c+";";break}default:o+=s+"{"+c+"}"}}}return o}var Ms=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function Qf(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Ot=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,r+=Hn(n,t,s);else{var i=s;r+=i[0]}for(var a=1;a<e.length;a++)if(r+=Hn(n,t,e[a]),o){var u=s;r+=u[a]}Ms.lastIndex=0;for(var c="",p;(p=Ms.exec(r))!==null;)c+="-"+p[1];var f=Gf(r)+c;return{name:f,styles:r,next:Ot}}/**
39
+ `)));const l=s[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
40
+ `)),()=>{})}function Ma(e){return Or(e,"spacing",8,"spacing")}function _r(e,t){return typeof t=="string"||t==null?t:e(t)}function qv(e,t){return n=>e.reduce((o,s)=>(o[s]=_r(t,n),o),{})}function Yv(e,t,n,o){if(!t.includes(n))return null;const s=Uv(n),i=qv(s,o),a=e[n];return pn(e,a,i)}function Rp(e,t){const n=Ma(e.theme);return Object.keys(e).map(o=>Yv(e,t,o,n)).reduce(ir,{})}function Qe(e){return Rp(e,Fs)}Qe.propTypes=process.env.NODE_ENV!=="production"?Fs.reduce((e,t)=>(e[t]=$n,e),{}):{};Qe.filterProps=Fs;function Ze(e){return Rp(e,Bs)}Ze.propTypes=process.env.NODE_ENV!=="production"?Bs.reduce((e,t)=>(e[t]=$n,e),{}):{};Ze.filterProps=Bs;process.env.NODE_ENV!=="production"&&Hv.reduce((e,t)=>(e[t]=$n,e),{});function zs(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(i=>{o[i]=s}),o),{}),n=o=>Object.keys(o).reduce((s,i)=>t[i]?ir(s,t[i](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function kt(e){return typeof e!="number"?e:`${e}px solid`}function $t(e,t){return et({prop:e,themeKey:"borders",transform:t})}const Gv=$t("border",kt),Kv=$t("borderTop",kt),Xv=$t("borderRight",kt),Qv=$t("borderBottom",kt),Zv=$t("borderLeft",kt),Jv=$t("borderColor"),ex=$t("borderTopColor"),tx=$t("borderRightColor"),nx=$t("borderBottomColor"),ox=$t("borderLeftColor"),rx=$t("outline",kt),sx=$t("outlineColor"),Ws=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Or(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:_r(t,o)});return pn(e,e.borderRadius,n)}return null};Ws.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$n}:{};Ws.filterProps=["borderRadius"];zs(Gv,Kv,Xv,Qv,Zv,Jv,ex,tx,nx,ox,Ws,rx,sx);const Us=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Or(e.theme,"spacing",8,"gap"),n=o=>({gap:_r(t,o)});return pn(e,e.gap,n)}return null};Us.propTypes=process.env.NODE_ENV!=="production"?{gap:$n}:{};Us.filterProps=["gap"];const Hs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Or(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:_r(t,o)});return pn(e,e.columnGap,n)}return null};Hs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$n}:{};Hs.filterProps=["columnGap"];const qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Or(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:_r(t,o)});return pn(e,e.rowGap,n)}return null};qs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$n}:{};qs.filterProps=["rowGap"];const ix=et({prop:"gridColumn"}),ax=et({prop:"gridRow"}),lx=et({prop:"gridAutoFlow"}),cx=et({prop:"gridAutoColumns"}),ux=et({prop:"gridAutoRows"}),dx=et({prop:"gridTemplateColumns"}),px=et({prop:"gridTemplateRows"}),fx=et({prop:"gridTemplateAreas"}),mx=et({prop:"gridArea"});zs(Us,Hs,qs,ix,ax,lx,cx,ux,dx,px,fx,mx);function Co(e,t){return t==="grey"?t:e}const hx=et({prop:"color",themeKey:"palette",transform:Co}),gx=et({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Co}),bx=et({prop:"backgroundColor",themeKey:"palette",transform:Co});zs(hx,gx,bx);function Ct(e){return e<=1&&e!==0?`${e*100}%`:e}const yx=et({prop:"width",transform:Ct}),$a=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,i,a,l,c;const o=((a=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Ls[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ct(n)}};return pn(e,e.maxWidth,t)}return null};$a.filterProps=["maxWidth"];const vx=et({prop:"minWidth",transform:Ct}),xx=et({prop:"height",transform:Ct}),Sx=et({prop:"maxHeight",transform:Ct}),Cx=et({prop:"minHeight",transform:Ct});et({prop:"size",cssProperty:"width",transform:Ct});et({prop:"size",cssProperty:"height",transform:Ct});const Tx=et({prop:"boxSizing"});zs(yx,$a,vx,xx,Sx,Cx,Tx);const kr={border:{themeKey:"borders",transform:kt},borderTop:{themeKey:"borders",transform:kt},borderRight:{themeKey:"borders",transform:kt},borderBottom:{themeKey:"borders",transform:kt},borderLeft:{themeKey:"borders",transform:kt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ws},color:{themeKey:"palette",transform:Co},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Co},backgroundColor:{themeKey:"palette",transform:Co},p:{style:Ze},pt:{style:Ze},pr:{style:Ze},pb:{style:Ze},pl:{style:Ze},px:{style:Ze},py:{style:Ze},padding:{style:Ze},paddingTop:{style:Ze},paddingRight:{style:Ze},paddingBottom:{style:Ze},paddingLeft:{style:Ze},paddingX:{style:Ze},paddingY:{style:Ze},paddingInline:{style:Ze},paddingInlineStart:{style:Ze},paddingInlineEnd:{style:Ze},paddingBlock:{style:Ze},paddingBlockStart:{style:Ze},paddingBlockEnd:{style:Ze},m:{style:Qe},mt:{style:Qe},mr:{style:Qe},mb:{style:Qe},ml:{style:Qe},mx:{style:Qe},my:{style:Qe},margin:{style:Qe},marginTop:{style:Qe},marginRight:{style:Qe},marginBottom:{style:Qe},marginLeft:{style:Qe},marginX:{style:Qe},marginY:{style:Qe},marginInline:{style:Qe},marginInlineStart:{style:Qe},marginInlineEnd:{style:Qe},marginBlock:{style:Qe},marginBlockStart:{style:Qe},marginBlockEnd:{style:Qe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Us},rowGap:{style:qs},columnGap:{style:Hs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ct},maxWidth:{style:$a},minWidth:{transform:Ct},height:{transform:Ct},maxHeight:{transform:Ct},minHeight:{transform:Ct},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 wx(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Ix(e,t){return typeof e=="function"?e(t):e}function Ex(){function e(n,o,s,i){const a={[n]:o,theme:s},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:m}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const h=Vs(s,u)||{};return m?m(a):pn(a,o,g=>{let f=hs(h,d,g);return g===f&&typeof g=="string"&&(f=hs(h,d,`${n}${g==="default"?"":le(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){const{sx:o,theme:s={},nested:i}=n||{};if(!o)return null;const a=s.unstable_sxConfig??kr;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=Fv(s.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(p=>{const g=Ix(u[p],s);if(g!=null)if(typeof g=="object")if(a[p])h=ir(h,e(p,g,s,a));else{const f=pn({theme:s},g,y=>({[p]:y}));wx(f,g)?h[p]=t({sx:g,theme:s,nested:!0}):h=ir(h,f)}else h=ir(h,e(p,g,s,a))}),!i&&s.modularCssLayers?{"@layer sx":Ic(s,Oc(m,h))}:Ic(s,Oc(m,h))}return Array.isArray(o)?o.map(l):l(o)}return t}const Po=Ex();Po.filterProps=["sx"];const Ox=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??kr;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function _x(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=Ox(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return qt(l)?{...o,...l}:o}:i={...o,...t},{...s,sx:i}}function kx(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Px={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 Rx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nx=/[A-Z]|^ms/g,Mx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Np=function(t){return t.charCodeAt(1)===45},kc=function(t){return t!=null&&typeof t!="boolean"},Pi=Rx(function(e){return Np(e)?e:e.replace(Nx,"-$&").toLowerCase()}),Pc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mx,function(o,s,i){return In={name:s,styles:i,next:In},s})}return Px[t]!==1&&!Np(t)&&typeof n=="number"&&n!==0?n+"px":n};function gs(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return In={name:s.name,styles:s.styles,next:In},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)In={name:a.name,styles:a.styles,next:In},a=a.next;var l=i.styles+";";return l}return $x(e,t,n)}}var c=n;return c}function $x(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=gs(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;kc(l)&&(o+=Pi(i)+":"+Pc(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)kc(a[c])&&(o+=Pi(i)+":"+Pc(i,a[c])+";");else{var u=gs(e,t,a);switch(i){case"animation":case"animationName":{o+=Pi(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Rc=/label:\s*([^\s;{]+)\s*(;|$)/g,In;function Dx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";In=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=gs(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=gs(n,t,e[l]),o){var c=i;s+=c[l]}Rc.lastIndex=0;for(var u="",d;(d=Rc.exec(s))!==null;)u+="-"+d[1];var m=kx(s)+u;return{name:m,styles:s,next:In}}/**
41
41
  * @mui/styled-engine v7.3.10
42
42
  *
43
43
  * @license MIT
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */function Jf(e,t){const n=Zl(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
47
- `)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function Zf(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ps=[];function zt(e){return Ps[0]=e,Qf(Ps)}const em=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function tm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,s=em(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function c(h,d){const y=i.indexOf(d);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:d)-o/100}${n})`}function p(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function f(h){const d=i.indexOf(h);return d===0?a(i[1]):d===i.length-1?u(i[d]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:u,between:c,only:p,not:f,unit:n,...r}}const nm={borderRadius:4};function Na(e=8,t=wr({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function om(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Or(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:s={},...i}=e,a=tm(n),u=Na(r);let c=ze({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:u,shape:{...nm,...s}},i);return c=Zp(c),c.applyStyles=om,c=t.reduce((p,f)=>ze(p,f),c),c.unstable_sxConfig={...wn,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(f){return un({sx:f,theme:this})},c}function rm(e){return Object.keys(e).length===0}function sm(e=null){const t=k.useContext(kt.ThemeContext);return!t||rm(t)?e:t}const im=Or();function Oa(e=im){return sm(e)}const am={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 je(e,t,n="Mui"){const o=am[t];return o?`${n}-${o}`:`${Hp.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=je(e,r,n)}),o}function $a(e,t=""){return e.displayName||e.name||t}function As(e,t,n){const o=$a(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function lm(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $a(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Gn.ForwardRef:return As(e,e.render,"ForwardRef");case Gn.Memo:return As(e,e.type,"memo");default:return}}}function Ra(e){const{variants:t,...n}=e,o={variants:t,style:zt(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=zt(r.style))}),o}const cm=Or();function sn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Bt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function um(e){return e?(t,n)=>n[e]:null}function dm(e,t,n){e.theme=hm(e.theme)?n:e.theme[t]||e.theme}function Fn(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>Fn(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?Bt(o.style,n):o.style;else{const{variants:s,...i}=o;r=n?Bt(zt(i),n):i}return ka(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Bt(zt(o.style),n):o.style:n?Bt(zt(o),n):o}function ka(e,t,n=[],o=void 0){var s;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const u in a.props)if(e[u]!==a.props[u]&&((s=e.ownerState)==null?void 0:s[u])!==a.props[u])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?Bt(zt(a.style(r)),o):a.style(r))):n.push(o?Bt(zt(a.style),o):a.style)}return n}function pm(e={}){const{themeId:t,defaultTheme:n=cm,rootShouldForwardProp:o=sn,slotShouldForwardProp:r=sn}=e;function s(a){dm(a,t,n)}return(a,u={})=>{Zf(a,I=>I.filter(w=>w!==un));const{name:c,slot:p,skipVariantsResolver:f,skipSx:h,overridesResolver:d=um(Ma(p)),...y}=u,m=c&&c.startsWith("Mui")||p?"components":"custom",v=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,_=h||!1;let S=sn;p==="Root"||p==="root"?S=o:p?S=r:gm(a)&&(S=void 0);const E=Jf(a,{shouldForwardProp:S,label:mm(c,p),...y}),C=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(N){return Fn(N,I,N.theme.modularCssLayers?m:void 0)};if(rt(I)){const w=Ra(I);return function(L){return w.variants?Fn(L,w,L.theme.modularCssLayers?m:void 0):L.theme.modularCssLayers?Bt(w.style,m):w.style}}return I},x=(...I)=>{const w=[],N=I.map(C),L=[];if(w.push(s),c&&d&&L.push(function(R){var K,se;const j=(se=(K=R.theme.components)==null?void 0:K[c])==null?void 0:se.styleOverrides;if(!j)return null;const V={};for(const oe in j)V[oe]=Fn(R,j[oe],R.theme.modularCssLayers?"theme":void 0);return d(R,V)}),c&&!v&&L.push(function(R){var V,K;const T=R.theme,j=(K=(V=T==null?void 0:T.components)==null?void 0:V[c])==null?void 0:K.variants;return j?ka(R,j,[],R.theme.modularCssLayers?"theme":void 0):null}),_||L.push(un),Array.isArray(N[0])){const b=N.shift(),R=new Array(w.length).fill(""),T=new Array(L.length).fill("");let j;j=[...R,...b,...T],j.raw=[...R,...b.raw,...T],w.unshift(j)}const F=[...w,...N,...L],U=E(...F);return a.muiName&&(U.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(U.displayName=fm(c,p,a)),U};return E.withConfig&&(x.withConfig=E.withConfig),x}}function fm(e,t,n){return e?`${e}${_e(t||"")}`:`Styled(${lm(n)})`}function mm(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Ma(t||"Root")}`),n}function hm(e){for(const t in e)return!1;return!0}function gm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ma(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ym(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Un(t.components[n].defaultProps,o)}function bm({props:e,name:t,defaultTheme:n,themeId:o}){let r=Oa(n);return r=r[o]||r,ym({theme:r,name:t,props:e})}const vm=typeof window<"u"?k.useLayoutEffect:k.useEffect;function _m(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function $r(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),_m(e,t,n)}function xm(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function $t(e){if(e.type)return e;if(e.charAt(0)==="#")return $t(xm(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
48
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Wt(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
49
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Wt(10,r))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:r}}const Cm=e=>{const t=$t(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},mn=(e,t)=>{try{return Cm(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function _o(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,s)=>s<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Pa(e){e=$t(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,s=o*Math.min(r,1-r),i=(c,p=(c+n/30)%12)=>r-s*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",u.push(t[3])),_o({type:a,values:u})}function qo(e){e=$t(e);let t=e.type==="hsl"||e.type==="hsla"?$t(Pa(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 js(e,t){const n=qo(e),o=qo(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Kn(e,t){return e=$t(e),t=$r(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_o(e)}function Lt(e,t,n){try{return Kn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function xo(e,t){if(e=$t(e),t=$r(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 _o(e)}function be(e,t,n){try{return xo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Co(e,t){if(e=$t(e),t=$r(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 _o(e)}function ve(e,t,n){try{return Co(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Sm(e,t=.15){return qo(e)>.5?xo(e,t):Co(e,t)}function jn(e,t,n){try{return Sm(e,t)}catch{return e}}const Im=k.createContext();process.env.NODE_ENV!=="production"&&(l.node,l.bool);const Tm=()=>k.useContext(Im)??!1,Em=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(l.node,l.object);function wm(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?Un(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?Un(r,o,t.components.mergeClassNameAndStyle):o}function Nm({props:e,name:t}){const n=k.useContext(Em);return wm({props:e,name:t,theme:{components:n}})}let Ls=0;function Om(e){const[t,n]=k.useState(e),o=e||t;return k.useEffect(()=>{t==null&&(Ls+=1,n(`mui-${Ls}`))},[t]),o}const $m={...k},Ds=$m.useId;function Rm(e){if(Ds!==void 0){const t=Ds();return e??t}return Om(e)}const Vs={theme:void 0};function km(e){let t,n;return function(r){let s=t;return(s===void 0||r.theme!==n)&&(Vs.theme=r.theme,s=Ra(e(Vs)),t=s,n=r.theme),s}}function Mm(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const Bs=(e,t,n,o=[])=>{let r=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(r)?r[Number(s)]=n:r&&typeof r=="object"&&(r[s]=n):r&&typeof r=="object"&&(r[s]||(r[s]=o.includes(s)?[]:{}),r=r[s])})},Pm=(e,t,n)=>{function o(r,s=[],i=[]){Object.entries(r).forEach(([a,u])=>{(!n||n&&!n([...s,a]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?o(u,[...s,a],Array.isArray(u)?[...i,a]:i):t([...s,a],u,i))})}o(e)},Am=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Lo(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},s={},i={};return Pm(e,(a,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!o||!o(a,u))){const p=`--${n?`${n}-`:""}${a.join("-")}`,f=Am(a,u);Object.assign(r,{[p]:f}),Bs(s,a,`var(${p})`,c),Bs(i,a,`var(${p}, ${f})`,c)}},a=>a[0]==="vars"),{css:r,vars:s,varsWithDefaults:i}}function jm(e,t={}){const{getSelector:n=_,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:u="light",...c}=e,{vars:p,css:f,varsWithDefaults:h}=Lo(c,t);let d=h;const y={},{[u]:m,...v}=i;if(Object.entries(v||{}).forEach(([C,x])=>{const{vars:I,css:w,varsWithDefaults:N}=Lo(x,t);d=ze(d,N),y[C]={css:w,vars:I}}),m){const{css:C,vars:x,varsWithDefaults:I}=Lo(m,t);d=ze(d,I),y[u]={css:C,vars:x}}function _(C,x){var w,N;let I=r;if(r==="class"&&(I=".%s"),r==="data"&&(I="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(I=`[${r}="%s"]`),C){if(I==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((N=(w=i[C])==null?void 0:w.palette)==null?void 0:N.mode)||C})`]:{":root":x}};if(I)return e.defaultColorScheme===C?`:root, ${I.replace("%s",String(C))}`:I.replace("%s",String(C))}return":root"}return{vars:d,generateThemeVars:()=>{let C={...p};return Object.entries(y).forEach(([,{vars:x}])=>{C=ze(C,x)}),C},generateStyleSheets:()=>{var L,F;const C=[],x=e.defaultColorScheme||"light";function I(U,b){Object.keys(b).length&&C.push(typeof U=="string"?{[U]:{...b}}:U)}I(n(void 0,{...f}),f);const{[x]:w,...N}=y;if(w){const{css:U}=w,b=(F=(L=i[x])==null?void 0:L.palette)==null?void 0:F.mode,R=!o&&b?{colorScheme:b,...U}:{...U};I(n(x,{...R}),R)}return Object.entries(N).forEach(([U,{css:b}])=>{var j,V;const R=(V=(j=i[U])==null?void 0:j.palette)==null?void 0:V.mode,T=!o&&R?{colorScheme:R,...b}:{...b};I(n(U,{...T}),T)}),s&&C.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)"}}),C}}}function Lm(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Dm(e,t){var n,o,r;return k.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}const xn={black:"#000",white:"#fff"},Vm={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"},qt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ht={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},fn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Kt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Xt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Aa(){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:xn.white,default:xn.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 ja=Aa();function La(){return{text:{primary:xn.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:xn.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 Ho=La();function Fs(e,t,n,o){const r=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Co(e.main,r):t==="dark"&&(e.dark=xo(e.main,s)))}function zs(e,t,n,o,r){const s=r.light||r,i=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Bm(e="light"){return e==="dark"?{main:Kt[200],light:Kt[50],dark:Kt[400]}:{main:Kt[700],light:Kt[400],dark:Kt[800]}}function Fm(e="light"){return e==="dark"?{main:qt[200],light:qt[50],dark:qt[400]}:{main:qt[500],light:qt[300],dark:qt[700]}}function zm(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function Wm(e="light"){return e==="dark"?{main:Yt[400],light:Yt[300],dark:Yt[700]}:{main:Yt[700],light:Yt[500],dark:Yt[900]}}function Um(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[800],light:Xt[500],dark:Xt[900]}}function Gm(e="light"){return e==="dark"?{main:fn[400],light:fn[300],dark:fn[700]}:{main:"#ed6c02",light:fn[500],dark:fn[900]}}function qm(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Rr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...s}=e,i=e.primary||Bm(t),a=e.secondary||Fm(t),u=e.error||zm(t),c=e.info||Wm(t),p=e.success||Um(t),f=e.warning||Gm(t);function h(v){if(r)return qm(v);const _=js(v,Ho.text.primary)>=n?Ho.text.primary:ja.text.primary;if(process.env.NODE_ENV!=="production"){const S=js(v,_);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${_} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
50
- `))}return _}const d=({color:v,name:_,mainShade:S=500,lightShade:E=300,darkShade:C=700})=>{if(v={...v},!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
51
- The color object needs to have a \`main\` property or a \`${S}\` property.`:Wt(11,_?` (${_})`:"",S));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
52
- \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
46
+ */function Ax(e,t){const n=Vh(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
47
+ `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function jx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Nc=[];function Kn(e){return Nc[0]=e,Dx(Nc)}const Lx=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Vx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,i=Lx(t),a=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function u(h,p){const g=a.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:p)-o/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?u(h,a[a.indexOf(h)+1]):l(h)}function m(h){const p=a.indexOf(h);return p===0?l(a[1]):p===a.length-1?c(a[p]):u(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:m,unit:n,...s}}const Fx={borderRadius:4};function Mp(e=8,t=Ma({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Bx(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Da(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:i={},...a}=e,l=Vx(n),c=Mp(s);let u=wt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...Fx,...i}},a);return u=Lv(u),u.applyStyles=Bx,u=t.reduce((d,m)=>wt(d,m),u),u.unstable_sxConfig={...kr,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(m){return Po({sx:m,theme:this})},u}function zx(e){return Object.keys(e).length===0}function $p(e=null){const t=S.useContext(Nn.ThemeContext);return!t||zx(t)?e:t}const Wx=Da();function Dp(e=Wx){return $p(e)}const Ux={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 _e(e,t,n="Mui"){const o=Ux[t];return o?`${n}-${o}`:`${Nv.generate(e)}-${t}`}function Te(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=_e(e,s,n)}),o}function Ap(e,t=""){return e.displayName||e.name||t}function Mc(e,t,n){const o=Ap(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Hx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ap(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ms.ForwardRef:return Mc(e,e.render,"ForwardRef");case ms.Memo:return Mc(e,e.type,"memo");default:return}}}function jp(e){const{variants:t,...n}=e,o={variants:t,style:Kn(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=Kn(s.style))}),o}const qx=Da();function Ft(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Yn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Yx(e){return e?(t,n)=>n[e]:null}function Gx(e,t,n){e.theme=Zx(e.theme)?n:e.theme[t]||e.theme}function os(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(s=>os(e,s,n));if(Array.isArray(o==null?void 0:o.variants)){let s;if(o.isProcessed)s=n?Yn(o.style,n):o.style;else{const{variants:i,...a}=o;s=n?Yn(Kn(a),n):a}return Lp(e,o.variants,[s],n)}return o!=null&&o.isProcessed?n?Yn(Kn(o.style),n):o.style:n?Yn(Kn(o),n):o}function Lp(e,t,n=[],o=void 0){var i;let s;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(s))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?Yn(Kn(l.style(s)),o):l.style(s))):n.push(o?Yn(Kn(l.style),o):l.style)}return n}function Kx(e={}){const{themeId:t,defaultTheme:n=qx,rootShouldForwardProp:o=Ft,slotShouldForwardProp:s=Ft}=e;function i(l){Gx(l,t,n)}return(l,c={})=>{jx(l,E=>E.filter(N=>N!==Po));const{name:u,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:p=Yx(Vp(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",y=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let w=Ft;d==="Root"||d==="root"?w=o:d?w=s:Jx(l)&&(w=void 0);const T=Ax(l,{shouldForwardProp:w,label:Qx(u,d),...g}),C=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(R){return os(R,E,R.theme.modularCssLayers?f:void 0)};if(qt(E)){const N=jp(E);return function(L){return N.variants?os(L,N,L.theme.modularCssLayers?f:void 0):L.theme.modularCssLayers?Yn(N.style,f):N.style}}return E},I=(...E)=>{const N=[],R=E.map(C),L=[];if(N.push(i),u&&p&&L.push(function(_){var D,$;const P=($=(D=_.theme.components)==null?void 0:D[u])==null?void 0:$.styleOverrides;if(!P)return null;const k={};for(const z in P)k[z]=os(_,P[z],_.theme.modularCssLayers?"theme":void 0);return p(_,k)}),u&&!y&&L.push(function(_){var k,D;const O=_.theme,P=(D=(k=O==null?void 0:O.components)==null?void 0:k[u])==null?void 0:D.variants;return P?Lp(_,P,[],_.theme.modularCssLayers?"theme":void 0):null}),x||L.push(Po),Array.isArray(R[0])){const v=R.shift(),_=new Array(N.length).fill(""),O=new Array(L.length).fill("");let P;P=[..._,...v,...O],P.raw=[..._,...v.raw,...O],N.unshift(P)}const V=[...N,...R,...L],j=T(...V);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=Xx(u,d,l)),j};return T.withConfig&&(I.withConfig=T.withConfig),I}}function Xx(e,t,n){return e?`${e}${le(t||"")}`:`Styled(${Hx(n)})`}function Qx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Vp(t||"Root")}`),n}function Zx(e){for(const t in e)return!1;return!0}function Jx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Vp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Fp(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:hr(t.components[n].defaultProps,o)}function eS({props:e,name:t,defaultTheme:n,themeId:o}){let s=Dp(n);return s=s[o]||s,Fp({theme:s,name:t,props:e})}const kn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function tS(e,t,n,o,s){const[i,a]=S.useState(()=>s&&n?n(e).matches:o?o(e).matches:t);return kn(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const nS={...S},Bp=nS.useSyncExternalStore;function oS(e,t,n,o,s){const i=S.useCallback(()=>t,[t]),a=S.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,s,n]),[l,c]=S.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,m=>(d.addEventListener("change",m),()=>{d.removeEventListener("change",m)})]},[i,n,e]);return Bp(c,l,a)}function zp(e={}){const{themeId:t}=e;return function(o,s={}){let i=$p();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Fp({name:"MuiUseMediaQuery",props:s,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
48
+ `));let m=typeof o=="function"?o(i):o;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(`
49
+ `));const p=(Bp!==void 0?oS:tS)(m,l,c,u,d);return process.env.NODE_ENV!=="production"&&S.useDebugValue({query:m,match:p}),p}}zp();function rS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Aa(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),rS(e,t,n)}function sS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Pn(e){if(e.type)return e;if(e.charAt(0)==="#")return Pn(sS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
50
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Qn(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
51
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qn(10,s))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:s}}const iS=e=>{const t=Pn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},er=(e,t)=>{try{return iS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ys(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Wp(e){e=Pn(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ys({type:l,values:c})}function Ui(e){e=Pn(e);let t=e.type==="hsl"||e.type==="hsla"?Pn(Wp(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 $c(e,t){const n=Ui(e),o=Ui(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function bs(e,t){return e=Pn(e),t=Aa(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ys(e)}function Bn(e,t,n){try{return bs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Gs(e,t){if(e=Pn(e),t=Aa(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 Ys(e)}function Ae(e,t,n){try{return Gs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ks(e,t){if(e=Pn(e),t=Aa(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 Ys(e)}function je(e,t,n){try{return Ks(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function aS(e,t=.15){return Ui(e)>.5?Gs(e,t):Ks(e,t)}function Gr(e,t,n){try{return aS(e,t)}catch{return e}}const lS="exact-prop: ​";function Up(e){return process.env.NODE_ENV==="production"?e:{...e,[lS]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const cS=S.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const Dn=()=>S.useContext(cS)??!1,uS=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function dS(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?hr(s.defaultProps,o,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?hr(s,o,t.components.mergeClassNameAndStyle):o}function pS({props:e,name:t}){const n=S.useContext(uS);return dS({props:e,name:t,theme:{components:n}})}let Dc=0;function fS(e){const[t,n]=S.useState(e),o=e||t;return S.useEffect(()=>{t==null&&(Dc+=1,n(`mui-${Dc}`))},[t]),o}const mS={...S},Ac=mS.useId;function ja(e){if(Ac!==void 0){const t=Ac();return e??t}return fS(e)}const jc={theme:void 0};function hS(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(jc.theme=s.theme,i=jp(e(jc)),t=i,n=s.theme),i}}function gS(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Lc=(e,t,n,o=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=o.includes(i)?[]:{}),s=s[i])})},bS=(e,t,n)=>{function o(s,i=[],a=[]){Object.entries(s).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},yS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ri(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},a={};return bS(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,m=yS(l,c);Object.assign(s,{[d]:m}),Lc(i,l,`var(${d})`,u),Lc(a,l,`var(${d}, ${m})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function vS(e,t={}){const{getSelector:n=x,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=Ri(u,t);let p=h;const g={},{[c]:f,...y}=a;if(Object.entries(y||{}).forEach(([C,I])=>{const{vars:E,css:N,varsWithDefaults:R}=Ri(I,t);p=wt(p,R),g[C]={css:N,vars:E}}),f){const{css:C,vars:I,varsWithDefaults:E}=Ri(f,t);p=wt(p,E),g[c]={css:C,vars:I}}function x(C,I){var N,R;let E=s;if(s==="class"&&(E=".%s"),s==="data"&&(E="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(E=`[${s}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((R=(N=a[C])==null?void 0:N.palette)==null?void 0:R.mode)||C})`]:{":root":I}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:p,generateThemeVars:()=>{let C={...d};return Object.entries(g).forEach(([,{vars:I}])=>{C=wt(C,I)}),C},generateStyleSheets:()=>{var L,V;const C=[],I=e.defaultColorScheme||"light";function E(j,v){Object.keys(v).length&&C.push(typeof j=="string"?{[j]:{...v}}:j)}E(n(void 0,{...m}),m);const{[I]:N,...R}=g;if(N){const{css:j}=N,v=(V=(L=a[I])==null?void 0:L.palette)==null?void 0:V.mode,_=!o&&v?{colorScheme:v,...j}:{...j};E(n(I,{..._}),_)}return Object.entries(R).forEach(([j,{css:v}])=>{var P,k;const _=(k=(P=a[j])==null?void 0:P.palette)==null?void 0:k.mode,O=!o&&_?{colorScheme:_,...v}:{...v};E(n(j,{...O}),O)}),i&&C.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)"}}),C}}}function xS(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function To(e,t){var n,o,s;return S.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}const gr={black:"#000",white:"#fff"},SS={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"},so={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},io={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ho={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ao={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},lo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},co={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Hp(){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:gr.white,default:gr.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 qp=Hp();function Yp(){return{text:{primary:gr.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:gr.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 Hi=Yp();function Vc(e,t,n,o){const s=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ks(e.main,s):t==="dark"&&(e.dark=Gs(e.main,i)))}function Fc(e,t,n,o,s){const i=s.light||s,a=s.dark||s*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function CS(e="light"){return e==="dark"?{main:ao[200],light:ao[50],dark:ao[400]}:{main:ao[700],light:ao[400],dark:ao[800]}}function TS(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function wS(e="light"){return e==="dark"?{main:io[500],light:io[300],dark:io[700]}:{main:io[700],light:io[400],dark:io[800]}}function IS(e="light"){return e==="dark"?{main:lo[400],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[500],dark:lo[900]}}function ES(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[800],light:co[500],dark:co[900]}}function OS(e="light"){return e==="dark"?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:"#ed6c02",light:Ho[500],dark:Ho[900]}}function _S(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function La(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,a=e.primary||CS(t),l=e.secondary||TS(t),c=e.error||wS(t),u=e.info||IS(t),d=e.success||ES(t),m=e.warning||OS(t);function h(y){if(s)return _S(y);const x=$c(y,Hi.text.primary)>=n?Hi.text.primary:qp.text.primary;if(process.env.NODE_ENV!=="production"){const w=$c(y,x);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${x} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
52
+ `))}return x}const p=({color:y,name:x,mainShade:w=500,lightShade:T=300,darkShade:C=700})=>{if(y={...y},!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
53
+ The color object needs to have a \`main\` property or a \`${w}\` property.`:Qn(11,x?` (${x})`:"",w));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
54
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
53
55
 
54
56
  Did you intend to use one of the following approaches?
55
57
 
@@ -61,20 +63,20 @@ const theme1 = createTheme({ palette: {
61
63
 
62
64
  const theme2 = createTheme({ palette: {
63
65
  primary: { main: green[500] },
64
- } });`:Wt(12,_?` (${_})`:"",JSON.stringify(v.main)));return r?(zs(r,v,"light",E,o),zs(r,v,"dark",C,o)):(Fs(v,"light",E,o),Fs(v,"dark",C,o)),v.contrastText||(v.contrastText=h(v.main)),v};let y;return t==="light"?y=Aa():t==="dark"&&(y=La()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ze({common:{...xn},mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:u,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:p,name:"success"}),grey:Vm,contrastThreshold:n,getContrastText:h,augmentColor:d,tonalOffset:o,...y},s)}function Hm(e){const t={};return Object.entries(e).forEach(o=>{const[r,s]=o;typeof s=="object"&&(t[r]=`${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 Km(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ym(e){return Math.round(e*1e5)/1e5}const Ws={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function Xm(e,t){const{fontFamily:n=Us,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:p,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,d=p||(v=>`${v/u*h}rem`),y=(v,_,S,E,C)=>({fontFamily:n,fontWeight:v,fontSize:d(_),lineHeight:S,...n===Us?{letterSpacing:`${Ym(E/_)}em`}:{},...C,...c}),m={h1:y(r,96,1.167,-1.5),h2:y(r,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(i,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(i,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(i,14,1.75,.4,Ws),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Ws),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze({htmlFontSize:u,pxToRem:d,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...m},f,{clone:!1})}const Qm=.2,Jm=.14,Zm=.12;function Ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zm})`].join(",")}const eh=["none",Ie(0,2,1,-1,0,1,1,0,0,1,3,0),Ie(0,3,1,-2,0,2,2,0,0,1,5,0),Ie(0,3,3,-2,0,3,4,0,0,1,8,0),Ie(0,2,4,-1,0,4,5,0,0,1,10,0),Ie(0,3,5,-1,0,5,8,0,0,1,14,0),Ie(0,3,5,-1,0,6,10,0,0,1,18,0),Ie(0,4,5,-2,0,7,10,1,0,2,16,1),Ie(0,5,5,-3,0,8,10,1,0,3,14,2),Ie(0,5,6,-3,0,9,12,1,0,3,16,2),Ie(0,6,6,-3,0,10,14,1,0,4,18,3),Ie(0,6,7,-4,0,11,15,1,0,4,20,3),Ie(0,7,8,-4,0,12,17,2,0,5,22,4),Ie(0,7,8,-4,0,13,19,2,0,5,24,4),Ie(0,7,9,-4,0,14,21,2,0,5,26,4),Ie(0,8,9,-5,0,15,22,2,0,6,28,5),Ie(0,8,10,-5,0,16,24,2,0,6,30,5),Ie(0,8,11,-5,0,17,26,2,0,6,32,5),Ie(0,9,11,-5,0,18,28,2,0,7,34,6),Ie(0,9,12,-6,0,19,29,2,0,7,36,6),Ie(0,10,13,-6,0,20,31,3,0,8,38,7),Ie(0,10,13,-6,0,21,33,3,0,8,40,7),Ie(0,10,14,-6,0,22,35,3,0,8,42,7),Ie(0,11,14,-7,0,23,36,3,0,9,44,8),Ie(0,11,15,-7,0,24,38,3,0,9,46,8)],th={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)"},Da={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gs(e){return`${Math.round(e)}ms`}function nh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function oh(e){const t={...th,...e.easing},n={...Da,...e.duration};return{getAutoHeightDuration:nh,create:(r=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:u=0,...c}=s;if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!p(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!p(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),p(a)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
65
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof i=="string"?i:Gs(i)} ${a} ${typeof u=="string"?u:Gs(u)}`).join(",")},...e,easing:t,duration:n}}const rh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function sh(e){return rt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Va(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let s=0;s<r.length;s++){const[i,a]=r[s];!sh(a)||i.startsWith("unstable_")?delete o[i]:rt(a)&&(o[i]={...a},n(o[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
66
+ } });`:Qn(12,x?` (${x})`:"",JSON.stringify(y.main)));return s?(Fc(s,y,"light",T,o),Fc(s,y,"dark",C,o)):(Vc(y,"light",T,o),Vc(y,"dark",C,o)),y.contrastText||(y.contrastText=h(y.main)),y};let g;return t==="light"?g=Hp():t==="dark"&&(g=Yp()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),wt({common:{...gr},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:d,name:"success"}),grey:SS,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:o,...g},i)}function kS(e){const t={};return Object.entries(e).forEach(o=>{const[s,i]=o;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function PS(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function RS(e){return Math.round(e*1e5)/1e5}const Bc={textTransform:"uppercase"},zc='"Roboto", "Helvetica", "Arial", sans-serif';function NS(e,t){const{fontFamily:n=zc,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,p=d||(y=>`${y/c*h}rem`),g=(y,x,w,T,C)=>({fontFamily:n,fontWeight:y,fontSize:p(x),lineHeight:w,...n===zc?{letterSpacing:`${RS(T/x)}em`}:{},...C,...u}),f={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Bc),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Bc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wt({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...f},m,{clone:!1})}const MS=.2,$S=.14,DS=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${MS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$S})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${DS})`].join(",")}const AS=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],jS={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)"},Gp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wc(e){return`${Math.round(e)}ms`}function LS(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function VS(e){const t={...jS,...e.easing},n={...Gp,...e.duration};return{getAutoHeightDuration:LS,create:(s=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",m=h=>!Number.isNaN(parseFloat(h));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
67
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof a=="string"?a:Wc(a)} ${l} ${typeof c=="string"?c:Wc(c)}`).join(",")},...e,easing:t,duration:n}}const FS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function BS(e){return qt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Kp(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let i=0;i<s.length;i++){const[a,l]=s[i];!BS(l)||a.startsWith("unstable_")?delete o[a]:qt(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
66
68
 
67
69
  const theme = ${JSON.stringify(t,null,2)};
68
70
 
69
71
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
70
72
  theme.transitions = createTransitions(theme.transitions || {});
71
73
 
72
- export default theme;`}function qs(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const ih=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function ah(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Kn(t,ih(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${qs(n)})`:Co(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${qs(n)})`:xo(t,n)}})}function Ko(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:s={},transitions:i={},typography:a={},shape:u,colorSpace:c,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Wt(20));const f=Rr({...s,colorSpace:c}),h=Or(e);let d=ze(h,{mixins:Km(h.breakpoints,o),palette:f,shadows:eh.slice(),typography:Xm(f,a),transitions:oh(i),zIndex:{...rh}});if(d=ze(d,p),d=t.reduce((y,m)=>ze(y,m),d),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(v,_)=>{let S;for(S in v){const E=v[S];if(y.includes(S)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const C=je("",S);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
73
- `))}v[S]={}}}};Object.keys(d.components).forEach(v=>{const _=d.components[v].styleOverrides;_&&v.startsWith("Mui")&&m(_,v)})}return d.unstable_sxConfig={...wn,...p==null?void 0:p.unstable_sxConfig},d.unstable_sx=function(m){return un({sx:m,theme:this})},d.toRuntimeSource=Va,ah(d),d}function Yo(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 lh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ba(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Fa(e){return e==="dark"?lh:[]}function ch(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...s}=e,i=Rr({...t,colorSpace:r});return{palette:i,opacity:{...Ba(i.mode),...n},overlays:o||Fa(i.mode),...s}}function uh(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const dh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ph=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let s=r;if(r==="class"&&(s=".%s"),r==="data"&&(s="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(s=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return dh(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:i}}:s?{[s.replace("%s",t)]:i,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...i}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function fh(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function $(e,t,n){!e[t]&&n&&(e[t]=n)}function hn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Pa(e)}function ut(e,t){`${t}Channel`in e||(e[`${t}Channel`]=mn(hn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
74
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function mh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ot=e=>{try{return e()}catch{}},hh=(e="mui")=>Mm(e);function Do(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const s=r==="dark"?"dark":"light";if(!o){t[r]=ch({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:i,...a}=Ko({...o,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:i,opacity:{...Ba(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Fa(s)},a}function gh(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=uh,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...p}=e,f=Object.keys(n)[0],h=o||(n.light&&f!=="light"?"light":f),d=hh(s),{[h]:y,light:m,dark:v,..._}=n,S={..._};let E=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Wt(21,h));let C;i&&(C="oklch");const x=Do(C,S,E,p,h);m&&!S.light&&Do(C,S,m,void 0,"light"),v&&!S.dark&&Do(C,S,v,void 0,"dark");let I={defaultColorScheme:h,...x,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:c,getCssVar:d,colorSchemes:S,font:{...Hm(x.typography),...x.font},spacing:mh(p.spacing)};Object.keys(I.colorSchemes).forEach(U=>{const b=I.colorSchemes[U].palette,R=j=>{const V=j.split("-"),K=V[1],se=V[2];return d(j,b[K][se])};b.mode==="light"&&($(b.common,"background","#fff"),$(b.common,"onBackground","#000")),b.mode==="dark"&&($(b.common,"background","#000"),$(b.common,"onBackground","#fff"));function T(j,V,K){if(C){let se;return j===Lt&&(se=`transparent ${((1-K)*100).toFixed(0)}%`),j===be&&(se=`#000 ${(K*100).toFixed(0)}%`),j===ve&&(se=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${C}, ${V}, ${se})`}return j(V,K)}if(fh(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){$(b.Alert,"errorColor",T(be,i?d("palette-error-light"):b.error.light,.6)),$(b.Alert,"infoColor",T(be,i?d("palette-info-light"):b.info.light,.6)),$(b.Alert,"successColor",T(be,i?d("palette-success-light"):b.success.light,.6)),$(b.Alert,"warningColor",T(be,i?d("palette-warning-light"):b.warning.light,.6)),$(b.Alert,"errorFilledBg",R("palette-error-main")),$(b.Alert,"infoFilledBg",R("palette-info-main")),$(b.Alert,"successFilledBg",R("palette-success-main")),$(b.Alert,"warningFilledBg",R("palette-warning-main")),$(b.Alert,"errorFilledColor",ot(()=>b.getContrastText(b.error.main))),$(b.Alert,"infoFilledColor",ot(()=>b.getContrastText(b.info.main))),$(b.Alert,"successFilledColor",ot(()=>b.getContrastText(b.success.main))),$(b.Alert,"warningFilledColor",ot(()=>b.getContrastText(b.warning.main))),$(b.Alert,"errorStandardBg",T(ve,i?d("palette-error-light"):b.error.light,.9)),$(b.Alert,"infoStandardBg",T(ve,i?d("palette-info-light"):b.info.light,.9)),$(b.Alert,"successStandardBg",T(ve,i?d("palette-success-light"):b.success.light,.9)),$(b.Alert,"warningStandardBg",T(ve,i?d("palette-warning-light"):b.warning.light,.9)),$(b.Alert,"errorIconColor",R("palette-error-main")),$(b.Alert,"infoIconColor",R("palette-info-main")),$(b.Alert,"successIconColor",R("palette-success-main")),$(b.Alert,"warningIconColor",R("palette-warning-main")),$(b.AppBar,"defaultBg",R("palette-grey-100")),$(b.Avatar,"defaultBg",R("palette-grey-400")),$(b.Button,"inheritContainedBg",R("palette-grey-300")),$(b.Button,"inheritContainedHoverBg",R("palette-grey-A100")),$(b.Chip,"defaultBorder",R("palette-grey-400")),$(b.Chip,"defaultAvatarColor",R("palette-grey-700")),$(b.Chip,"defaultIconColor",R("palette-grey-700")),$(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(b.LinearProgress,"primaryBg",T(ve,i?d("palette-primary-main"):b.primary.main,.62)),$(b.LinearProgress,"secondaryBg",T(ve,i?d("palette-secondary-main"):b.secondary.main,.62)),$(b.LinearProgress,"errorBg",T(ve,i?d("palette-error-main"):b.error.main,.62)),$(b.LinearProgress,"infoBg",T(ve,i?d("palette-info-main"):b.info.main,.62)),$(b.LinearProgress,"successBg",T(ve,i?d("palette-success-main"):b.success.main,.62)),$(b.LinearProgress,"warningBg",T(ve,i?d("palette-warning-light"):b.warning.main,.62)),$(b.Skeleton,"bg",C?T(Lt,i?d("palette-text-primary"):b.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),$(b.Slider,"primaryTrack",T(ve,i?d("palette-primary-main"):b.primary.main,.62)),$(b.Slider,"secondaryTrack",T(ve,i?d("palette-secondary-main"):b.secondary.main,.62)),$(b.Slider,"errorTrack",T(ve,i?d("palette-error-main"):b.error.main,.62)),$(b.Slider,"infoTrack",T(ve,i?d("palette-info-main"):b.info.main,.62)),$(b.Slider,"successTrack",T(ve,i?d("palette-success-main"):b.success.main,.62)),$(b.Slider,"warningTrack",T(ve,i?d("palette-warning-main"):b.warning.main,.62));const j=C?T(be,i?d("palette-background-default"):b.background.default,.6825):jn(b.background.default,.8);$(b.SnackbarContent,"bg",j),$(b.SnackbarContent,"color",ot(()=>C?Ho.text.primary:b.getContrastText(j))),$(b.SpeedDialAction,"fabHoverBg",jn(b.background.paper,.15)),$(b.StepConnector,"border",R("palette-grey-400")),$(b.StepContent,"border",R("palette-grey-400")),$(b.Switch,"defaultColor",R("palette-common-white")),$(b.Switch,"defaultDisabledColor",R("palette-grey-100")),$(b.Switch,"primaryDisabledColor",T(ve,i?d("palette-primary-main"):b.primary.main,.62)),$(b.Switch,"secondaryDisabledColor",T(ve,i?d("palette-secondary-main"):b.secondary.main,.62)),$(b.Switch,"errorDisabledColor",T(ve,i?d("palette-error-main"):b.error.main,.62)),$(b.Switch,"infoDisabledColor",T(ve,i?d("palette-info-main"):b.info.main,.62)),$(b.Switch,"successDisabledColor",T(ve,i?d("palette-success-main"):b.success.main,.62)),$(b.Switch,"warningDisabledColor",T(ve,i?d("palette-warning-main"):b.warning.main,.62)),$(b.TableCell,"border",T(ve,Lt(i?d("palette-divider"):b.divider,1),.88)),$(b.Tooltip,"bg",T(Lt,i?d("palette-grey-700"):b.grey[700],.92))}if(b.mode==="dark"){$(b.Alert,"errorColor",T(ve,i?d("palette-error-light"):b.error.light,.6)),$(b.Alert,"infoColor",T(ve,i?d("palette-info-light"):b.info.light,.6)),$(b.Alert,"successColor",T(ve,i?d("palette-success-light"):b.success.light,.6)),$(b.Alert,"warningColor",T(ve,i?d("palette-warning-light"):b.warning.light,.6)),$(b.Alert,"errorFilledBg",R("palette-error-dark")),$(b.Alert,"infoFilledBg",R("palette-info-dark")),$(b.Alert,"successFilledBg",R("palette-success-dark")),$(b.Alert,"warningFilledBg",R("palette-warning-dark")),$(b.Alert,"errorFilledColor",ot(()=>b.getContrastText(b.error.dark))),$(b.Alert,"infoFilledColor",ot(()=>b.getContrastText(b.info.dark))),$(b.Alert,"successFilledColor",ot(()=>b.getContrastText(b.success.dark))),$(b.Alert,"warningFilledColor",ot(()=>b.getContrastText(b.warning.dark))),$(b.Alert,"errorStandardBg",T(be,i?d("palette-error-light"):b.error.light,.9)),$(b.Alert,"infoStandardBg",T(be,i?d("palette-info-light"):b.info.light,.9)),$(b.Alert,"successStandardBg",T(be,i?d("palette-success-light"):b.success.light,.9)),$(b.Alert,"warningStandardBg",T(be,i?d("palette-warning-light"):b.warning.light,.9)),$(b.Alert,"errorIconColor",R("palette-error-main")),$(b.Alert,"infoIconColor",R("palette-info-main")),$(b.Alert,"successIconColor",R("palette-success-main")),$(b.Alert,"warningIconColor",R("palette-warning-main")),$(b.AppBar,"defaultBg",R("palette-grey-900")),$(b.AppBar,"darkBg",R("palette-background-paper")),$(b.AppBar,"darkColor",R("palette-text-primary")),$(b.Avatar,"defaultBg",R("palette-grey-600")),$(b.Button,"inheritContainedBg",R("palette-grey-800")),$(b.Button,"inheritContainedHoverBg",R("palette-grey-700")),$(b.Chip,"defaultBorder",R("palette-grey-700")),$(b.Chip,"defaultAvatarColor",R("palette-grey-300")),$(b.Chip,"defaultIconColor",R("palette-grey-300")),$(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(b.LinearProgress,"primaryBg",T(be,i?d("palette-primary-main"):b.primary.main,.5)),$(b.LinearProgress,"secondaryBg",T(be,i?d("palette-secondary-main"):b.secondary.main,.5)),$(b.LinearProgress,"errorBg",T(be,i?d("palette-error-main"):b.error.main,.5)),$(b.LinearProgress,"infoBg",T(be,i?d("palette-info-main"):b.info.main,.5)),$(b.LinearProgress,"successBg",T(be,i?d("palette-success-main"):b.success.main,.5)),$(b.LinearProgress,"warningBg",T(be,i?d("palette-warning-main"):b.warning.main,.5)),$(b.Skeleton,"bg",C?T(Lt,i?d("palette-text-primary"):b.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),$(b.Slider,"primaryTrack",T(be,i?d("palette-primary-main"):b.primary.main,.5)),$(b.Slider,"secondaryTrack",T(be,i?d("palette-secondary-main"):b.secondary.main,.5)),$(b.Slider,"errorTrack",T(be,i?d("palette-error-main"):b.error.main,.5)),$(b.Slider,"infoTrack",T(be,i?d("palette-info-main"):b.info.main,.5)),$(b.Slider,"successTrack",T(be,i?d("palette-success-main"):b.success.main,.5)),$(b.Slider,"warningTrack",T(be,i?d("palette-warning-light"):b.warning.main,.5));const j=C?T(ve,i?d("palette-background-default"):b.background.default,.985):jn(b.background.default,.98);$(b.SnackbarContent,"bg",j),$(b.SnackbarContent,"color",ot(()=>C?ja.text.primary:b.getContrastText(j))),$(b.SpeedDialAction,"fabHoverBg",jn(b.background.paper,.15)),$(b.StepConnector,"border",R("palette-grey-600")),$(b.StepContent,"border",R("palette-grey-600")),$(b.Switch,"defaultColor",R("palette-grey-300")),$(b.Switch,"defaultDisabledColor",R("palette-grey-600")),$(b.Switch,"primaryDisabledColor",T(be,i?d("palette-primary-main"):b.primary.main,.55)),$(b.Switch,"secondaryDisabledColor",T(be,i?d("palette-secondary-main"):b.secondary.main,.55)),$(b.Switch,"errorDisabledColor",T(be,i?d("palette-error-main"):b.error.main,.55)),$(b.Switch,"infoDisabledColor",T(be,i?d("palette-info-main"):b.info.main,.55)),$(b.Switch,"successDisabledColor",T(be,i?d("palette-success-main"):b.success.main,.55)),$(b.Switch,"warningDisabledColor",T(be,i?d("palette-warning-light"):b.warning.main,.55)),$(b.TableCell,"border",T(be,Lt(i?d("palette-divider"):b.divider,1),.68)),$(b.Tooltip,"bg",T(Lt,i?d("palette-grey-700"):b.grey[700],.92))}i||(ut(b.background,"default"),ut(b.background,"paper"),ut(b.common,"background"),ut(b.common,"onBackground"),ut(b,"divider")),Object.keys(b).forEach(j=>{const V=b[j];j!=="tonalOffset"&&!i&&V&&typeof V=="object"&&(V.main&&$(b[j],"mainChannel",mn(hn(V.main))),V.light&&$(b[j],"lightChannel",mn(hn(V.light))),V.dark&&$(b[j],"darkChannel",mn(hn(V.dark))),V.contrastText&&$(b[j],"contrastTextChannel",mn(hn(V.contrastText))),j==="text"&&(ut(b[j],"primary"),ut(b[j],"secondary")),j==="action"&&(V.active&&ut(b[j],"active"),V.selected&&ut(b[j],"selected")))})}),I=t.reduce((U,b)=>ze(U,b),I);const w={prefix:s,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:ph(I),enableContrastVars:i},{vars:N,generateThemeVars:L,generateStyleSheets:F}=jm(I,w);return I.vars=N,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([U,b])=>{I[U]=b}),I.generateThemeVars=L,I.generateStyleSheets=F,I.generateSpacing=function(){return Na(p.spacing,wr(this))},I.getColorSchemeSelector=Lm(u),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=a,I.unstable_sxConfig={...wn,...p==null?void 0:p.unstable_sxConfig},I.unstable_sx=function(b){return un({sx:b,theme:this})},I.toRuntimeSource=Va,I}function Hs(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Rr({...n===!0?{}:n.palette,mode:t})})}function yh(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...i}=e,a=s||"light",u=r==null?void 0:r[a],c={...r,...n?{[a]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Ko(e,...t);let p=n;"palette"in e||c[a]&&(c[a]!==!0?p=c[a].palette:a==="dark"&&(p={mode:"dark"}));const f=Ko({...e,palette:p},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},Hs(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},Hs(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),gh({...i,colorSchemes:c,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}const kr=yh(),Mr="$$material";function za(){const e=Oa(kr);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Mr]||e}function bh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pr=e=>bh(e)&&e!=="classes",de=pm({themeId:Mr,defaultTheme:kr,rootShouldForwardProp:Pr});function vh(){return Uf}const et=km;process.env.NODE_ENV!=="production"&&(l.node,l.object.isRequired);function at(e){return Nm(e)}function _h(e){return je("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xh=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${_e(t)}`,`fontSize${_e(n)}`]};return We(r,_h,o)},Ch=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${_e(n.color)}`],t[`fontSize${_e(n.fontSize)}`]]}})(et(({theme:e})=>{var t,n,o,r,s,i,a,u,c,p,f,h,d,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:p.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var v,_;return{props:{color:m},style:{color:(_=(v=(e.vars??e).palette)==null?void 0:v[m])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(y=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Yn=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiSvgIcon"}),{children:r,className:s,color:i="inherit",component:a="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:p=!1,titleAccess:f,viewBox:h="0 0 24 24",...d}=o,y=k.isValidElement(r)&&r.type==="svg",m={...o,color:i,component:a,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:y},v={};p||(v.viewBox=h);const _=xh(m);return g.jsxs(Ch,{as:a,className:ue(_.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...v,...d,...y&&r.props,ownerState:m,children:[y?r.props.children:r,f?g.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Yn.propTypes={children:l.node,classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),l.string]),component:l.elementType,fontSize:l.oneOfType([l.oneOf(["inherit","large","medium","small"]),l.string]),htmlColor:l.string,inheritViewBox:l.bool,shapeRendering:l.string,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),titleAccess:l.string,viewBox:l.string});Yn.muiName="SvgIcon";function lt(e,t){function n(o,r){return g.jsx(Yn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Yn.muiName,k.memo(k.forwardRef(n))}function Sh(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:s}=k.useRef(t!==void 0),[i,a]=k.useState(n),u=s?t:i;if(process.env.NODE_ENV!=="production"){k.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${r} state of ${o} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
75
- `))},[r,o,t]);const{current:p}=k.useRef(n);k.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(p)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
76
- `))},[JSON.stringify(n)])}const c=k.useCallback(p=>{s||a(p)},[]);return[u,c]}function zn(e){const t=k.useRef(e);return vm(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Xn(...e){const t=k.useRef(void 0),n=k.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(o);return typeof a=="function"?a:()=>{i(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s==null?void 0:s())}},e);return k.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function Ih(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Th(e,t){if(!e)return t;function n(i,a){const u={};return Object.keys(a).forEach(c=>{Ih(c,a[c])&&typeof i[c]=="function"&&(u[c]=(...p)=>{i[c](...p),a[c](...p)})}),u}if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,u=typeof e=="function"?e({...i,...a}):e,c=ue(i==null?void 0:i.className,a==null?void 0:a.className,u==null?void 0:u.className),p=n(u,a);return{...a,...u,...p,...!!c&&{className:c},...(a==null?void 0:a.style)&&(u==null?void 0:u.style)&&{style:{...a.style,...u.style}},...(a==null?void 0:a.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const o=t,r=n(e,o),s=ue(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!s&&{className:s},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Wa=l.oneOfType([l.func,l.object]);function So(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Eh(e){const{prototype:t={}}=e;return!!t.isReactComponent}function wh(e,t,n,o,r){const s=e[t],i=r||t;if(s==null||typeof window>"u")return null;let a;return typeof s=="function"&&!Eh(s)&&(a="Did you accidentally provide a plain function component instead?"),s===k.Fragment&&(a="Did you accidentally provide a React.Fragment instead?"),a!==void 0?new Error(`Invalid ${o} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const Ua=So(l.elementType,wh);function Ks(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
77
- `))}return!1}const Ys={};function Ga(e,t){const n=k.useRef(Ys);return n.current===Ys&&(n.current=e(t)),n}class Qn{constructor(){B(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Qn}static use(){const t=Ga(Qn.create).current,[n,o]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=o,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Oh(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function Nh(){return Qn.use()}function Oh(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},q.apply(null,arguments)}function Ut(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Xo(e,t){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Xo(e,t)}function qa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xo(e,t)}const Xs={disabled:!1};var $h=process.env.NODE_ENV!=="production"?l.oneOfType([l.number,l.shape({enter:l.number,exit:l.number,appear:l.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&l.oneOfType([l.string,l.shape({enter:l.string,exit:l.string,active:l.string}),l.shape({enter:l.string,enterDone:l.string,enterActive:l.string,exit:l.string,exitDone:l.string,exitActive:l.string})]);const Jn=O.createContext(null);var Rh=function(t){return t.scrollTop},gn="unmounted",Dt="exited",Vt="entering",nn="entered",Qo="exiting",_t=(function(e){qa(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=r,a=i&&!i.isMounting?o.enter:o.appear,u;return s.appearStatus=null,o.in?a?(u=Dt,s.appearStatus=Vt):u=nn:o.unmountOnExit||o.mountOnEnter?u=gn:u=Dt,s.state={status:u},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var i=r.in;return i&&s.status===gn?{status:Dt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Vt&&i!==nn&&(s=Vt):(i===Vt||i===nn)&&(s=Qo)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,i,a;return s=i=a=r,r!=null&&typeof r!="number"&&(s=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this);i&&Rh(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Dt&&this.setState({status:gn})},n.performEnter=function(r){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:r,u=this.props.nodeRef?[a]:[$n.findDOMNode(this),a],c=u[0],p=u[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!r&&!i||Xs.disabled){this.safeSetState({status:nn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:Vt},function(){s.props.onEntering(c,p),s.onTransitionEnd(h,function(){s.safeSetState({status:nn},function(){s.props.onEntered(c,p)})})})},n.performExit=function(){var r=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:$n.findDOMNode(this);if(!s||Xs.disabled){this.safeSetState({status:Dt},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Qo},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:Dt},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=u[0],p=u[1];this.props.addEndListener(c,p)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===gn)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=Ut(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(Jn.Provider,{value:null},typeof i=="function"?i(r,a):O.cloneElement(O.Children.only(i),a))},t})(O.Component);_t.contextType=Jn;_t.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:l.shape({current:typeof Element>"u"?l.any:function(e,t,n,o,r,s){var i=e[t];return l.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,s)}}),children:l.oneOfType([l.func.isRequired,l.element.isRequired]).isRequired,in:l.bool,mountOnEnter:l.bool,unmountOnExit:l.bool,appear:l.bool,enter:l.bool,exit:l.bool,timeout:function(t){var n=$h;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return n.apply(void 0,[t].concat(r))},addEndListener:l.func,onEnter:l.func,onEntering:l.func,onEntered:l.func,onExit:l.func,onExiting:l.func,onExited:l.func}:{};function Qt(){}_t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qt,onEntering:Qt,onEntered:Qt,onExit:Qt,onExiting:Qt,onExited:Qt};_t.UNMOUNTED=gn;_t.EXITED=Dt;_t.ENTERING=Vt;_t.ENTERED=nn;_t.EXITING=Qo;function kh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e,t){var n=function(s){return t&&O.isValidElement(s)?t(s):s},o=Object.create(null);return e&&O.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Mh(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var i,a={};for(var u in t){if(o[u])for(i=0;i<o[u].length;i++){var c=o[u][i];a[o[u][i]]=n(c)}a[u]=n(u)}for(i=0;i<r.length;i++)a[r[i]]=n(r[i]);return a}function Ft(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Ph(e,t){return Ar(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ft(n,"appear",e),enter:Ft(n,"enter",e),exit:Ft(n,"exit",e)})})}function Ah(e,t,n){var o=Ar(e.children),r=Mh(t,o);return Object.keys(r).forEach(function(s){var i=r[s];if(O.isValidElement(i)){var a=s in t,u=s in o,c=t[s],p=O.isValidElement(c)&&!c.props.in;u&&(!a||p)?r[s]=O.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ft(i,"exit",e),enter:Ft(i,"enter",e)}):!u&&a&&!p?r[s]=O.cloneElement(i,{in:!1}):u&&a&&O.isValidElement(c)&&(r[s]=O.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Ft(i,"exit",e),enter:Ft(i,"enter",e)}))}}),r}var jh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Lh={component:"div",childFactory:function(t){return t}},jr=(function(e){qa(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=s.handleExited.bind(kh(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(r,s){var i=s.children,a=s.handleExited,u=s.firstRender;return{children:u?Ph(r,a):Ah(r,i,a),firstRender:!1}},n.handleExited=function(r,s){var i=Ar(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(a){var u=q({},a.children);return delete u[r.key],{children:u}}))},n.render=function(){var r=this.props,s=r.component,i=r.childFactory,a=Ut(r,["component","childFactory"]),u=this.state.contextValue,c=jh(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?O.createElement(Jn.Provider,{value:u},c):O.createElement(Jn.Provider,{value:u},O.createElement(s,a,c))},t})(O.Component);jr.propTypes=process.env.NODE_ENV!=="production"?{component:l.any,children:l.node,appear:l.bool,enter:l.bool,exit:l.bool,childFactory:l.func}:{};jr.defaultProps=Lh;const Dh=[];function Vh(e){k.useEffect(e,Dh)}class Lr{constructor(){B(this,"currentId",null);B(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});B(this,"disposeEffect",()=>this.clear)}static create(){return new Lr}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ha(){const e=Ga(Lr.create).current;return Vh(e.disposeEffect),e}function Ka(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:s,rippleSize:i,in:a,onExited:u,timeout:c}=e,[p,f]=k.useState(!1),h=ue(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),d={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=ue(n.child,p&&n.childLeaving,o&&n.childPulsate);return!a&&!p&&f(!0),k.useEffect(()=>{if(!a&&u!=null){const m=setTimeout(u,c);return()=>{clearTimeout(m)}}},[u,a,c]),g.jsx("span",{className:h,style:d,children:g.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Ka.propTypes={classes:l.object.isRequired,className:l.string,in:l.bool,onExited:l.func,pulsate:l.bool,rippleSize:l.number,rippleX:l.number,rippleY:l.number,timeout:l.number.isRequired});const qe=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jo=550,Bh=80,Fh=kt.keyframes`
74
+ export default theme;`}function Uc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const zS=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function WS(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:bs(t,zS(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Uc(n)})`:Ks(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Uc(n)})`:Gs(t,n)}})}function qi(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Qn(20));const m=La({...i,colorSpace:u}),h=Da(e);let p=wt(h,{mixins:PS(h.breakpoints,o),palette:m,shadows:AS.slice(),typography:NS(m,l),transitions:VS(a),zIndex:{...FS}});if(p=wt(p,d),p=t.reduce((g,f)=>wt(g,f),p),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(y,x)=>{let w;for(w in y){const T=y[w];if(g.includes(w)&&Object.keys(T).length>0){if(process.env.NODE_ENV!=="production"){const C=_e("",w);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:T}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
75
+ `))}y[w]={}}}};Object.keys(p.components).forEach(y=>{const x=p.components[y].styleOverrides;x&&y.startsWith("Mui")&&f(x,y)})}return p.unstable_sxConfig={...kr,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(f){return Po({sx:f,theme:this})},p.toRuntimeSource=Kp,WS(p),p}function Yi(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 US=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yi(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Xp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Qp(e){return e==="dark"?US:[]}function HS(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:s,...i}=e,a=La({...t,colorSpace:s});return{palette:a,opacity:{...Xp(a.mode),...n},overlays:o||Qp(a.mode),...i}}function qS(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const YS=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],GS=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return YS(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function KS(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ee(e,t,n){!e[t]&&n&&(e[t]=n)}function tr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Wp(e)}function en(e,t){`${t}Channel`in e||(e[`${t}Channel`]=er(tr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
76
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function XS(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ht=e=>{try{return e()}catch{}},QS=(e="mui")=>gS(e);function Ni(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=HS({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=qi({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...Xp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Qp(i)},l}function ZS(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=qS,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(n)[0],h=o||(n.light&&m!=="light"?"light":m),p=QS(i),{[h]:g,light:f,dark:y,...x}=n,w={...x};let T=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Qn(21,h));let C;a&&(C="oklch");const I=Ni(C,w,T,d,h);f&&!w.light&&Ni(C,w,f,void 0,"light"),y&&!w.dark&&Ni(C,w,y,void 0,"dark");let E={defaultColorScheme:h,...I,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:p,colorSchemes:w,font:{...kS(I.typography),...I.font},spacing:XS(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const v=E.colorSchemes[j].palette,_=P=>{const k=P.split("-"),D=k[1],$=k[2];return p(P,v[D][$])};v.mode==="light"&&(ee(v.common,"background","#fff"),ee(v.common,"onBackground","#000")),v.mode==="dark"&&(ee(v.common,"background","#000"),ee(v.common,"onBackground","#fff"));function O(P,k,D){if(C){let $;return P===Bn&&($=`transparent ${((1-D)*100).toFixed(0)}%`),P===Ae&&($=`#000 ${(D*100).toFixed(0)}%`),P===je&&($=`#fff ${(D*100).toFixed(0)}%`),`color-mix(in ${C}, ${k}, ${$})`}return P(k,D)}if(KS(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){ee(v.Alert,"errorColor",O(Ae,a?p("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",O(Ae,a?p("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",O(Ae,a?p("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",O(Ae,a?p("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",_("palette-error-main")),ee(v.Alert,"infoFilledBg",_("palette-info-main")),ee(v.Alert,"successFilledBg",_("palette-success-main")),ee(v.Alert,"warningFilledBg",_("palette-warning-main")),ee(v.Alert,"errorFilledColor",Ht(()=>v.getContrastText(v.error.main))),ee(v.Alert,"infoFilledColor",Ht(()=>v.getContrastText(v.info.main))),ee(v.Alert,"successFilledColor",Ht(()=>v.getContrastText(v.success.main))),ee(v.Alert,"warningFilledColor",Ht(()=>v.getContrastText(v.warning.main))),ee(v.Alert,"errorStandardBg",O(je,a?p("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",O(je,a?p("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",O(je,a?p("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",O(je,a?p("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",_("palette-error-main")),ee(v.Alert,"infoIconColor",_("palette-info-main")),ee(v.Alert,"successIconColor",_("palette-success-main")),ee(v.Alert,"warningIconColor",_("palette-warning-main")),ee(v.AppBar,"defaultBg",_("palette-grey-100")),ee(v.Avatar,"defaultBg",_("palette-grey-400")),ee(v.Button,"inheritContainedBg",_("palette-grey-300")),ee(v.Button,"inheritContainedHoverBg",_("palette-grey-A100")),ee(v.Chip,"defaultBorder",_("palette-grey-400")),ee(v.Chip,"defaultAvatarColor",_("palette-grey-700")),ee(v.Chip,"defaultIconColor",_("palette-grey-700")),ee(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(v.LinearProgress,"primaryBg",O(je,a?p("palette-primary-main"):v.primary.main,.62)),ee(v.LinearProgress,"secondaryBg",O(je,a?p("palette-secondary-main"):v.secondary.main,.62)),ee(v.LinearProgress,"errorBg",O(je,a?p("palette-error-main"):v.error.main,.62)),ee(v.LinearProgress,"infoBg",O(je,a?p("palette-info-main"):v.info.main,.62)),ee(v.LinearProgress,"successBg",O(je,a?p("palette-success-main"):v.success.main,.62)),ee(v.LinearProgress,"warningBg",O(je,a?p("palette-warning-light"):v.warning.main,.62)),ee(v.Skeleton,"bg",C?O(Bn,a?p("palette-text-primary"):v.text.primary,.11):`rgba(${_("palette-text-primaryChannel")} / 0.11)`),ee(v.Slider,"primaryTrack",O(je,a?p("palette-primary-main"):v.primary.main,.62)),ee(v.Slider,"secondaryTrack",O(je,a?p("palette-secondary-main"):v.secondary.main,.62)),ee(v.Slider,"errorTrack",O(je,a?p("palette-error-main"):v.error.main,.62)),ee(v.Slider,"infoTrack",O(je,a?p("palette-info-main"):v.info.main,.62)),ee(v.Slider,"successTrack",O(je,a?p("palette-success-main"):v.success.main,.62)),ee(v.Slider,"warningTrack",O(je,a?p("palette-warning-main"):v.warning.main,.62));const P=C?O(Ae,a?p("palette-background-default"):v.background.default,.6825):Gr(v.background.default,.8);ee(v.SnackbarContent,"bg",P),ee(v.SnackbarContent,"color",Ht(()=>C?Hi.text.primary:v.getContrastText(P))),ee(v.SpeedDialAction,"fabHoverBg",Gr(v.background.paper,.15)),ee(v.StepConnector,"border",_("palette-grey-400")),ee(v.StepContent,"border",_("palette-grey-400")),ee(v.Switch,"defaultColor",_("palette-common-white")),ee(v.Switch,"defaultDisabledColor",_("palette-grey-100")),ee(v.Switch,"primaryDisabledColor",O(je,a?p("palette-primary-main"):v.primary.main,.62)),ee(v.Switch,"secondaryDisabledColor",O(je,a?p("palette-secondary-main"):v.secondary.main,.62)),ee(v.Switch,"errorDisabledColor",O(je,a?p("palette-error-main"):v.error.main,.62)),ee(v.Switch,"infoDisabledColor",O(je,a?p("palette-info-main"):v.info.main,.62)),ee(v.Switch,"successDisabledColor",O(je,a?p("palette-success-main"):v.success.main,.62)),ee(v.Switch,"warningDisabledColor",O(je,a?p("palette-warning-main"):v.warning.main,.62)),ee(v.TableCell,"border",O(je,Bn(a?p("palette-divider"):v.divider,1),.88)),ee(v.Tooltip,"bg",O(Bn,a?p("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){ee(v.Alert,"errorColor",O(je,a?p("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",O(je,a?p("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",O(je,a?p("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",O(je,a?p("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",_("palette-error-dark")),ee(v.Alert,"infoFilledBg",_("palette-info-dark")),ee(v.Alert,"successFilledBg",_("palette-success-dark")),ee(v.Alert,"warningFilledBg",_("palette-warning-dark")),ee(v.Alert,"errorFilledColor",Ht(()=>v.getContrastText(v.error.dark))),ee(v.Alert,"infoFilledColor",Ht(()=>v.getContrastText(v.info.dark))),ee(v.Alert,"successFilledColor",Ht(()=>v.getContrastText(v.success.dark))),ee(v.Alert,"warningFilledColor",Ht(()=>v.getContrastText(v.warning.dark))),ee(v.Alert,"errorStandardBg",O(Ae,a?p("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",O(Ae,a?p("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",O(Ae,a?p("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",O(Ae,a?p("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",_("palette-error-main")),ee(v.Alert,"infoIconColor",_("palette-info-main")),ee(v.Alert,"successIconColor",_("palette-success-main")),ee(v.Alert,"warningIconColor",_("palette-warning-main")),ee(v.AppBar,"defaultBg",_("palette-grey-900")),ee(v.AppBar,"darkBg",_("palette-background-paper")),ee(v.AppBar,"darkColor",_("palette-text-primary")),ee(v.Avatar,"defaultBg",_("palette-grey-600")),ee(v.Button,"inheritContainedBg",_("palette-grey-800")),ee(v.Button,"inheritContainedHoverBg",_("palette-grey-700")),ee(v.Chip,"defaultBorder",_("palette-grey-700")),ee(v.Chip,"defaultAvatarColor",_("palette-grey-300")),ee(v.Chip,"defaultIconColor",_("palette-grey-300")),ee(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(v.LinearProgress,"primaryBg",O(Ae,a?p("palette-primary-main"):v.primary.main,.5)),ee(v.LinearProgress,"secondaryBg",O(Ae,a?p("palette-secondary-main"):v.secondary.main,.5)),ee(v.LinearProgress,"errorBg",O(Ae,a?p("palette-error-main"):v.error.main,.5)),ee(v.LinearProgress,"infoBg",O(Ae,a?p("palette-info-main"):v.info.main,.5)),ee(v.LinearProgress,"successBg",O(Ae,a?p("palette-success-main"):v.success.main,.5)),ee(v.LinearProgress,"warningBg",O(Ae,a?p("palette-warning-main"):v.warning.main,.5)),ee(v.Skeleton,"bg",C?O(Bn,a?p("palette-text-primary"):v.text.primary,.13):`rgba(${_("palette-text-primaryChannel")} / 0.13)`),ee(v.Slider,"primaryTrack",O(Ae,a?p("palette-primary-main"):v.primary.main,.5)),ee(v.Slider,"secondaryTrack",O(Ae,a?p("palette-secondary-main"):v.secondary.main,.5)),ee(v.Slider,"errorTrack",O(Ae,a?p("palette-error-main"):v.error.main,.5)),ee(v.Slider,"infoTrack",O(Ae,a?p("palette-info-main"):v.info.main,.5)),ee(v.Slider,"successTrack",O(Ae,a?p("palette-success-main"):v.success.main,.5)),ee(v.Slider,"warningTrack",O(Ae,a?p("palette-warning-light"):v.warning.main,.5));const P=C?O(je,a?p("palette-background-default"):v.background.default,.985):Gr(v.background.default,.98);ee(v.SnackbarContent,"bg",P),ee(v.SnackbarContent,"color",Ht(()=>C?qp.text.primary:v.getContrastText(P))),ee(v.SpeedDialAction,"fabHoverBg",Gr(v.background.paper,.15)),ee(v.StepConnector,"border",_("palette-grey-600")),ee(v.StepContent,"border",_("palette-grey-600")),ee(v.Switch,"defaultColor",_("palette-grey-300")),ee(v.Switch,"defaultDisabledColor",_("palette-grey-600")),ee(v.Switch,"primaryDisabledColor",O(Ae,a?p("palette-primary-main"):v.primary.main,.55)),ee(v.Switch,"secondaryDisabledColor",O(Ae,a?p("palette-secondary-main"):v.secondary.main,.55)),ee(v.Switch,"errorDisabledColor",O(Ae,a?p("palette-error-main"):v.error.main,.55)),ee(v.Switch,"infoDisabledColor",O(Ae,a?p("palette-info-main"):v.info.main,.55)),ee(v.Switch,"successDisabledColor",O(Ae,a?p("palette-success-main"):v.success.main,.55)),ee(v.Switch,"warningDisabledColor",O(Ae,a?p("palette-warning-light"):v.warning.main,.55)),ee(v.TableCell,"border",O(Ae,Bn(a?p("palette-divider"):v.divider,1),.68)),ee(v.Tooltip,"bg",O(Bn,a?p("palette-grey-700"):v.grey[700],.92))}a||(en(v.background,"default"),en(v.background,"paper"),en(v.common,"background"),en(v.common,"onBackground"),en(v,"divider")),Object.keys(v).forEach(P=>{const k=v[P];P!=="tonalOffset"&&!a&&k&&typeof k=="object"&&(k.main&&ee(v[P],"mainChannel",er(tr(k.main))),k.light&&ee(v[P],"lightChannel",er(tr(k.light))),k.dark&&ee(v[P],"darkChannel",er(tr(k.dark))),k.contrastText&&ee(v[P],"contrastTextChannel",er(tr(k.contrastText))),P==="text"&&(en(v[P],"primary"),en(v[P],"secondary")),P==="action"&&(k.active&&en(v[P],"active"),k.selected&&en(v[P],"selected")))})}),E=t.reduce((j,v)=>wt(j,v),E);const N={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:GS(E),enableContrastVars:a},{vars:R,generateThemeVars:L,generateStyleSheets:V}=vS(E,N);return E.vars=R,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,v])=>{E[j]=v}),E.generateThemeVars=L,E.generateStyleSheets=V,E.generateSpacing=function(){return Mp(d.spacing,Ma(this))},E.getColorSchemeSelector=xS(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...kr,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(v){return Po({sx:v,theme:this})},E.toRuntimeSource=Kp,E}function Hc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:La({...n===!0?{}:n.palette,mode:t})})}function JS(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=s==null?void 0:s[l],u={...s,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return qi(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const m=qi({...e,palette:d},...t);return m.defaultColorScheme=l,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Hc(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Hc(m,"light",u.light)),m}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),ZS({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Va=JS(),Xs="$$material";function Pr(){const e=Dp(Va);return process.env.NODE_ENV!=="production"&&S.useDebugValue(e),e[Xs]||e}function eC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bo=e=>eC(e)&&e!=="classes",te=Kx({themeId:Xs,defaultTheme:Va,rootShouldForwardProp:Bo});function tC(){return _x}const Xe=hS;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function Ue(e){return pS(e)}function nC(e){return _e("MuiSvgIcon",e)}Te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const oC=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return De(s,nC,o)},rC=te("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)}`]]}})(Xe(({theme:e})=>{var t,n,o,s,i,a,l,c,u,d,m,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var y,x;return{props:{color:f},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[f])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ys=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...p}=o,g=S.isValidElement(s)&&s.type==="svg",f={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const x=oC(f);return b.jsxs(rC,{as:l,className:ce(x.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...y,...p,...g&&s.props,ownerState:f,children:[g?s.props.children:s,m?b.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(ys.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});ys.muiName="SvgIcon";function rt(e,t){function n(o,s){return b.jsx(ys,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ys.muiName,S.memo(S.forwardRef(n))}function Gt(e){return e&&e.ownerDocument||document}function br(e){return Gt(e).defaultView||window}function qc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function sC(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function iC(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=S.useRef(t!==void 0),[a,l]=S.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
77
+ `))},[s,o,t]);const{current:d}=S.useRef(n);S.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
78
+ `))},[JSON.stringify(n)])}const u=S.useCallback(d=>{i||l(d)},[]);return[c,u]}function wo(e){const t=S.useRef(e);return kn(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function ut(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function aC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function lC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{aC(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ce(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,s=n(e,o),i=ce(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...s,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Qs=r.oneOfType([r.func,r.object]);function An(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function cC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function uC(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!cC(i)&&(l="Did you accidentally provide a plain function component instead?"),i===S.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const Fa=An(r.elementType,uC);function Yc(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
79
+ `))}return!1}const Gc={};function Zp(e,t){const n=S.useRef(Gc);return n.current===Gc&&(n.current=e(t)),n}class vs{constructor(){U(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new vs}static use(){const t=Zp(vs.create).current,[n,o]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=o,S.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=pC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function dC(){return vs.use()}function pC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},M.apply(null,arguments)}function xe(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Gi(e,t){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Gi(e,t)}function Jp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gi(e,t)}const Kc={disabled:!1};var fC=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]);const xs=Q.createContext(null);var mC=function(t){return t.scrollTop},nr="unmounted",Hn="exited",qn="entering",go="entered",Ki="exiting",zt=(function(e){Jp(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=s,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Hn,i.appearStatus=qn):c=go:o.unmountOnExit||o.mountOnEnter?c=nr:c=Hn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===nr?{status:Hn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==qn&&a!==go&&(i=qn):(a===qn||a===go)&&(i=Ki)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===qn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Jo.findDOMNode(this);a&&mC(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hn&&this.setState({status:nr})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[Jo.findDOMNode(this),l],u=c[0],d=c[1],m=this.getTimeouts(),h=l?m.appear:m.enter;if(!s&&!a||Kc.disabled){this.safeSetState({status:go},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:qn},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:go},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Jo.findDOMNode(this);if(!i||Kc.disabled){this.safeSetState({status:Hn},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ki},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:Hn},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Jo.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===nr)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=xe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.createElement(xs.Provider,{value:null},typeof a=="function"?a(s,l):Q.cloneElement(Q.Children.only(a),l))},t})(Q.Component);zt.contextType=xs;zt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,s,i){var a=e[t];return r.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,s,i)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=fC;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function uo(){}zt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uo,onEntering:uo,onEntered:uo,onExit:uo,onExiting:uo,onExited:uo};zt.UNMOUNTED=nr;zt.EXITED=Hn;zt.ENTERING=qn;zt.ENTERED=go;zt.EXITING=Ki;function hC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ba(e,t){var n=function(i){return t&&Q.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Q.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function gC(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var i in e)i in t?s.length&&(o[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function Gn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function bC(e,t){return Ba(e.children,function(n){return Q.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Gn(n,"appear",e),enter:Gn(n,"enter",e),exit:Gn(n,"exit",e)})})}function yC(e,t,n){var o=Ba(e.children),s=gC(t,o);return Object.keys(s).forEach(function(i){var a=s[i];if(Q.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=Q.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=Q.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Gn(a,"exit",e),enter:Gn(a,"enter",e)}):!c&&l&&!d?s[i]=Q.cloneElement(a,{in:!1}):c&&l&&Q.isValidElement(u)&&(s[i]=Q.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Gn(a,"exit",e),enter:Gn(a,"enter",e)}))}}),s}var vC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xC={component:"div",childFactory:function(t){return t}},za=(function(e){Jp(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=i.handleExited.bind(hC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?bC(s,l):yC(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=Ba(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=M({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=xe(s,["component","childFactory"]),c=this.state.contextValue,u=vC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Q.createElement(xs.Provider,{value:c},u):Q.createElement(xs.Provider,{value:c},Q.createElement(i,l,u))},t})(Q.Component);za.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{};za.defaultProps=xC;const SC=[];function CC(e){S.useEffect(e,SC)}let TC=class ef{constructor(){U(this,"currentId",null);U(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});U(this,"disposeEffect",()=>this.clear)}static create(){return new ef}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Wa(){const e=Zp(TC.create).current;return CC(e.disposeEffect),e}function tf(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,m]=S.useState(!1),h=ce(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},g=ce(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&m(!0),S.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),b.jsx("span",{className:h,style:p,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(tf.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const _t=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xi=550,wC=80,IC=Nn.keyframes`
78
80
  0% {
79
81
  transform: scale(0);
80
82
  opacity: 0.1;
@@ -84,7 +86,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
84
86
  transform: scale(1);
85
87
  opacity: 0.3;
86
88
  }
87
- `,zh=kt.keyframes`
89
+ `,EC=Nn.keyframes`
88
90
  0% {
89
91
  opacity: 1;
90
92
  }
@@ -92,7 +94,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
92
94
  100% {
93
95
  opacity: 0;
94
96
  }
95
- `,Wh=kt.keyframes`
97
+ `,OC=Nn.keyframes`
96
98
  0% {
97
99
  transform: scale(1);
98
100
  }
@@ -104,23 +106,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
104
106
  100% {
105
107
  transform: scale(1);
106
108
  }
107
- `,Uh=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gh=de(Ka,{name:"MuiTouchRipple",slot:"Ripple"})`
109
+ `,_C=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),kC=te(tf,{name:"MuiTouchRipple",slot:"Ripple"})`
108
110
  opacity: 0;
109
111
  position: absolute;
110
112
 
111
- &.${qe.rippleVisible} {
113
+ &.${_t.rippleVisible} {
112
114
  opacity: 0.3;
113
115
  transform: scale(1);
114
- animation-name: ${Fh};
115
- animation-duration: ${Jo}ms;
116
+ animation-name: ${IC};
117
+ animation-duration: ${Xi}ms;
116
118
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
117
119
  }
118
120
 
119
- &.${qe.ripplePulsate} {
121
+ &.${_t.ripplePulsate} {
120
122
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
121
123
  }
122
124
 
123
- & .${qe.child} {
125
+ & .${_t.child} {
124
126
  opacity: 1;
125
127
  display: block;
126
128
  width: 100%;
@@ -129,25 +131,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
129
131
  background-color: currentColor;
130
132
  }
131
133
 
132
- & .${qe.childLeaving} {
134
+ & .${_t.childLeaving} {
133
135
  opacity: 0;
134
- animation-name: ${zh};
135
- animation-duration: ${Jo}ms;
136
+ animation-name: ${EC};
137
+ animation-duration: ${Xi}ms;
136
138
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
137
139
  }
138
140
 
139
- & .${qe.childPulsate} {
141
+ & .${_t.childPulsate} {
140
142
  position: absolute;
141
143
  /* @noflip */
142
144
  left: 0px;
143
145
  top: 0;
144
- animation-name: ${Wh};
146
+ animation-name: ${OC};
145
147
  animation-duration: 2500ms;
146
148
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
147
149
  animation-iteration-count: infinite;
148
150
  animation-delay: 200ms;
149
151
  }
150
- `,Ya=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...a}=o,[u,c]=k.useState([]),p=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const h=k.useRef(!1),d=Ha(),y=k.useRef(null),m=k.useRef(null),v=k.useCallback(C=>{const{pulsate:x,rippleX:I,rippleY:w,rippleSize:N,cb:L}=C;c(F=>[...F,g.jsx(Gh,{classes:{ripple:ue(s.ripple,qe.ripple),rippleVisible:ue(s.rippleVisible,qe.rippleVisible),ripplePulsate:ue(s.ripplePulsate,qe.ripplePulsate),child:ue(s.child,qe.child),childLeaving:ue(s.childLeaving,qe.childLeaving),childPulsate:ue(s.childPulsate,qe.childPulsate)},timeout:Jo,pulsate:x,rippleX:I,rippleY:w,rippleSize:N},p.current)]),p.current+=1,f.current=L},[s]),_=k.useCallback((C={},x={},I=()=>{})=>{const{pulsate:w=!1,center:N=r||x.pulsate,fakeElement:L=!1}=x;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const F=L?null:m.current,U=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let b,R,T;if(N||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)b=Math.round(U.width/2),R=Math.round(U.height/2);else{const{clientX:j,clientY:V}=C.touches&&C.touches.length>0?C.touches[0]:C;b=Math.round(j-U.left),R=Math.round(V-U.top)}if(N)T=Math.sqrt((2*U.width**2+U.height**2)/3),T%2===0&&(T+=1);else{const j=Math.max(Math.abs((F?F.clientWidth:0)-b),b)*2+2,V=Math.max(Math.abs((F?F.clientHeight:0)-R),R)*2+2;T=Math.sqrt(j**2+V**2)}C!=null&&C.touches?y.current===null&&(y.current=()=>{v({pulsate:w,rippleX:b,rippleY:R,rippleSize:T,cb:I})},d.start(Bh,()=>{y.current&&(y.current(),y.current=null)})):v({pulsate:w,rippleX:b,rippleY:R,rippleSize:T,cb:I})},[r,v,d]),S=k.useCallback(()=>{_({},{pulsate:!0})},[_]),E=k.useCallback((C,x)=>{if(d.clear(),(C==null?void 0:C.type)==="touchend"&&y.current){y.current(),y.current=null,d.start(0,()=>{E(C,x)});return}y.current=null,c(I=>I.length>0?I.slice(1):I),f.current=x},[d]);return k.useImperativeHandle(n,()=>({pulsate:S,start:_,stop:E}),[S,_,E]),g.jsx(Uh,{className:ue(qe.root,s.root,i),ref:m,...a,children:g.jsx(jr,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={center:l.bool,classes:l.object,className:l.string});function qh(e){return je("MuiButtonBase",e)}const Hh=Pe("MuiButtonBase",["root","disabled","focusVisible"]),Kh=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=We({root:["root",t&&"disabled",n&&"focusVisible"]},qh,r);return n&&o&&(i.root+=` ${o}`),i},Yh=de("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"},[`&.${Hh.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dr=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:a,component:u="button",disabled:c=!1,disableRipple:p=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:d,LinkComponent:y="a",onBlur:m,onClick:v,onContextMenu:_,onDragLeave:S,onFocus:E,onFocusVisible:C,onKeyDown:x,onKeyUp:I,onMouseDown:w,onMouseLeave:N,onMouseUp:L,onTouchEnd:F,onTouchMove:U,onTouchStart:b,tabIndex:R=0,TouchRippleProps:T,touchRippleRef:j,type:V,...K}=o,se=k.useRef(null),oe=Nh(),M=Xn(oe.ref,j),[z,Q]=k.useState(!1);c&&z&&Q(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{Q(!0),se.current.focus()}}),[]);const re=oe.shouldMount&&!p&&!c;k.useEffect(()=>{z&&h&&!p&&oe.pulsate()},[p,h,z,oe]);const ne=dt(oe,"start",w,f),Y=dt(oe,"stop",_,f),J=dt(oe,"stop",S,f),Z=dt(oe,"stop",L,f),A=dt(oe,"stop",ae=>{z&&ae.preventDefault(),N&&N(ae)},f),P=dt(oe,"start",b,f),W=dt(oe,"stop",F,f),ie=dt(oe,"stop",U,f),D=dt(oe,"stop",ae=>{Ks(ae.target)||Q(!1),m&&m(ae)},!1),Ee=zn(ae=>{se.current||(se.current=ae.currentTarget),Ks(ae.target)&&(Q(!0),C&&C(ae)),E&&E(ae)}),te=()=>{const ae=se.current;return ae?ae.tagName==="BUTTON"?!1:!(ae.tagName==="A"&&ae.href):u&&u!=="button"},Te=zn(ae=>{h&&!ae.repeat&&z&&ae.key===" "&&oe.stop(ae,()=>{oe.start(ae)}),ae.target===ae.currentTarget&&te()&&ae.key===" "&&ae.preventDefault(),x&&x(ae),ae.target===ae.currentTarget&&te()&&ae.key==="Enter"&&!c&&(ae.preventDefault(),v&&v(ae))}),ke=zn(ae=>{h&&ae.key===" "&&z&&!ae.defaultPrevented&&oe.stop(ae,()=>{oe.pulsate(ae)}),I&&I(ae),v&&ae.target===ae.currentTarget&&te()&&ae.key===" "&&!ae.defaultPrevented&&!c&&v(ae)});let Me=u;Me==="button"&&(K.href||K.to)&&(Me=y);const tt={};if(Me==="button"){const ae=!!K.formAction;tt.type=V===void 0&&!ae?"button":V,tt.disabled=c}else!K.href&&!K.to&&(tt.role="button"),c&&(tt["aria-disabled"]=c);const On=Xn(n,se),as={...o,centerRipple:s,component:u,disabled:c,disableRipple:p,disableTouchRipple:f,focusRipple:h,tabIndex:R,focusVisible:z},Xl=Kh(as);return g.jsxs(Yh,{as:Me,className:ue(Xl.root,a),ownerState:as,onBlur:D,onClick:v,onContextMenu:Y,onFocus:Ee,onKeyDown:Te,onKeyUp:ke,onMouseDown:ne,onMouseLeave:A,onMouseUp:Z,onDragLeave:J,onTouchEnd:W,onTouchMove:ie,onTouchStart:P,ref:On,tabIndex:c?-1:R,type:V,...tt,...K,children:[i,re?g.jsx(Ya,{ref:M,center:s,...T}):null]})});function dt(e,t,n,o=!1){return zn(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(Dr.propTypes={action:Wa,centerRipple:l.bool,children:l.node,classes:l.object,className:l.string,component:Ua,disabled:l.bool,disableRipple:l.bool,disableTouchRipple:l.bool,focusRipple:l.bool,focusVisibleClassName:l.string,formAction:l.oneOfType([l.func,l.string]),href:l.any,LinkComponent:l.elementType,onBlur:l.func,onClick:l.func,onContextMenu:l.func,onDragLeave:l.func,onFocus:l.func,onFocusVisible:l.func,onKeyDown:l.func,onKeyUp:l.func,onMouseDown:l.func,onMouseLeave:l.func,onMouseUp:l.func,onTouchEnd:l.func,onTouchMove:l.func,onTouchStart:l.func,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),tabIndex:l.number,TouchRippleProps:l.object,touchRippleRef:l.oneOfType([l.func,l.shape({current:l.shape({pulsate:l.func.isRequired,start:l.func.isRequired,stop:l.func.isRequired})})]),type:l.oneOfType([l.oneOf(["button","reset","submit"]),l.string])});function Xh(e){return typeof e.main=="string"}function Qh(e,t=[]){if(!Xh(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gt(e=[]){return([,t])=>t&&Qh(t,e)}function Jh(e){return je("MuiCircularProgress",e)}Pe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Je=44,Zo=kt.keyframes`
152
+ `,nf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:a,...l}=o,[c,u]=S.useState([]),d=S.useRef(0),m=S.useRef(null);S.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=S.useRef(!1),p=Wa(),g=S.useRef(null),f=S.useRef(null),y=S.useCallback(C=>{const{pulsate:I,rippleX:E,rippleY:N,rippleSize:R,cb:L}=C;u(V=>[...V,b.jsx(kC,{classes:{ripple:ce(i.ripple,_t.ripple),rippleVisible:ce(i.rippleVisible,_t.rippleVisible),ripplePulsate:ce(i.ripplePulsate,_t.ripplePulsate),child:ce(i.child,_t.child),childLeaving:ce(i.childLeaving,_t.childLeaving),childPulsate:ce(i.childPulsate,_t.childPulsate)},timeout:Xi,pulsate:I,rippleX:E,rippleY:N,rippleSize:R},d.current)]),d.current+=1,m.current=L},[i]),x=S.useCallback((C={},I={},E=()=>{})=>{const{pulsate:N=!1,center:R=s||I.pulsate,fakeElement:L=!1}=I;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const V=L?null:f.current,j=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,_,O;if(R||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)v=Math.round(j.width/2),_=Math.round(j.height/2);else{const{clientX:P,clientY:k}=C.touches&&C.touches.length>0?C.touches[0]:C;v=Math.round(P-j.left),_=Math.round(k-j.top)}if(R)O=Math.sqrt((2*j.width**2+j.height**2)/3),O%2===0&&(O+=1);else{const P=Math.max(Math.abs((V?V.clientWidth:0)-v),v)*2+2,k=Math.max(Math.abs((V?V.clientHeight:0)-_),_)*2+2;O=Math.sqrt(P**2+k**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:N,rippleX:v,rippleY:_,rippleSize:O,cb:E})},p.start(wC,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:N,rippleX:v,rippleY:_,rippleSize:O,cb:E})},[s,y,p]),w=S.useCallback(()=>{x({},{pulsate:!0})},[x]),T=S.useCallback((C,I)=>{if(p.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,p.start(0,()=>{T(C,I)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),m.current=I},[p]);return S.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:T}),[w,x,T]),b.jsx(_C,{className:ce(_t.root,i.root,a),ref:f,...l,children:b.jsx(za,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(nf.propTypes={center:r.bool,classes:r.object,className:r.string});function PC(e){return _e("MuiButtonBase",e)}const RC=Te("MuiButtonBase",["root","disabled","focusVisible"]),NC=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,a=De({root:["root",t&&"disabled",n&&"focusVisible"]},PC,s);return n&&o&&(a.root+=` ${o}`),a},MC=te("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"},[`&.${RC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Zn=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:p,LinkComponent:g="a",onBlur:f,onClick:y,onContextMenu:x,onDragLeave:w,onFocus:T,onFocusVisible:C,onKeyDown:I,onKeyUp:E,onMouseDown:N,onMouseLeave:R,onMouseUp:L,onTouchEnd:V,onTouchMove:j,onTouchStart:v,tabIndex:_=0,TouchRippleProps:O,touchRippleRef:P,type:k,...D}=o,$=S.useRef(null),z=dC(),A=ut(z.ref,P),[F,W]=S.useState(!1);u&&F&&W(!1),S.useImperativeHandle(s,()=>({focusVisible:()=>{W(!0),$.current.focus()}}),[]);const K=z.shouldMount&&!d&&!u;S.useEffect(()=>{F&&h&&!d&&z.pulsate()},[d,h,F,z]);const Z=tn(z,"start",N,m),Y=tn(z,"stop",x,m),X=tn(z,"stop",w,m),ne=tn(z,"stop",L,m),q=tn(z,"stop",se=>{F&&se.preventDefault(),R&&R(se)},m),B=tn(z,"start",v,m),H=tn(z,"stop",V,m),ae=tn(z,"stop",j,m),G=tn(z,"stop",se=>{Yc(se.target)||W(!1),f&&f(se)},!1),de=wo(se=>{$.current||($.current=se.currentTarget),Yc(se.target)&&(W(!0),C&&C(se)),T&&T(se)}),oe=()=>{const se=$.current;return se?se.tagName==="BUTTON"?!1:!(se.tagName==="A"&&se.href):c&&c!=="button"},ye=wo(se=>{h&&!se.repeat&&F&&se.key===" "&&z.stop(se,()=>{z.start(se)}),se.target===se.currentTarget&&oe()&&se.key===" "&&se.preventDefault(),I&&I(se),se.target===se.currentTarget&&oe()&&se.key==="Enter"&&!u&&(se.preventDefault(),y&&y(se))}),me=wo(se=>{h&&se.key===" "&&F&&!se.defaultPrevented&&z.stop(se,()=>{z.pulsate(se)}),E&&E(se),y&&se.target===se.currentTarget&&oe()&&se.key===" "&&!se.defaultPrevented&&!u&&y(se)});let re=c;re==="button"&&(D.href||D.to)&&(re=g);const J={};if(re==="button"){const se=!!D.formAction;J.type=k===void 0&&!se?"button":k,J.disabled=u}else!D.href&&!D.to&&(J.role="button"),u&&(J["aria-disabled"]=u);const ge=ut(n,$),ie={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:h,tabIndex:_,focusVisible:F},he=NC(ie);return b.jsxs(MC,{as:re,className:ce(he.root,l),ownerState:ie,onBlur:G,onClick:y,onContextMenu:Y,onFocus:de,onKeyDown:ye,onKeyUp:me,onMouseDown:Z,onMouseLeave:q,onMouseUp:ne,onDragLeave:X,onTouchEnd:H,onTouchMove:ae,onTouchStart:B,ref:ge,tabIndex:u?-1:_,type:k,...J,...D,children:[a,K?b.jsx(nf,{ref:A,center:i,...O}):null]})});function tn(e,t,n,o=!1){return wo(s=>(n&&n(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Zn.propTypes={action:Qs,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:Fa,disabled:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,formAction:r.oneOfType([r.func,r.string]),href:r.any,LinkComponent:r.elementType,onBlur:r.func,onClick:r.func,onContextMenu:r.func,onDragLeave:r.func,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onKeyUp:r.func,onMouseDown:r.func,onMouseLeave:r.func,onMouseUp:r.func,onTouchEnd:r.func,onTouchMove:r.func,onTouchStart:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string])});function $C(e){return typeof e.main=="string"}function DC(e,t=[]){if(!$C(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function mt(e=[]){return([,t])=>t&&DC(t,e)}function AC(e){return _e("MuiCircularProgress",e)}Te("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const jt=44,Qi=Nn.keyframes`
151
153
  0% {
152
154
  transform: rotate(0deg);
153
155
  }
@@ -155,7 +157,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
155
157
  100% {
156
158
  transform: rotate(360deg);
157
159
  }
158
- `,er=kt.keyframes`
160
+ `,Zi=Nn.keyframes`
159
161
  0% {
160
162
  stroke-dasharray: 1px, 200px;
161
163
  stroke-dashoffset: 0;
@@ -170,17 +172,49 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
170
172
  stroke-dasharray: 1px, 200px;
171
173
  stroke-dashoffset: -126px;
172
174
  }
173
- `,Zh=typeof Zo!="string"?kt.css`
174
- animation: ${Zo} 1.4s linear infinite;
175
- `:null,eg=typeof er!="string"?kt.css`
176
- animation: ${er} 1.4s ease-in-out infinite;
177
- `:null,tg=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,`color${_e(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${_e(n)}`,r&&"circleDisableShrink"]};return We(s,Jh,t)},ng=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${_e(n.color)}`]]}})(et(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Zh||{animation:`${Zo} 1.4s linear infinite`}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),og=de("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),rg=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${_e(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(et(({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:eg||{animation:`${er} 1.4s ease-in-out infinite`}}]}))),sg=de("circle",{name:"MuiCircularProgress",slot:"Track"})(et(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Vr=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiCircularProgress"}),{className:r,color:s="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:u=40,style:c,thickness:p=3.6,value:f=0,variant:h="indeterminate",...d}=o,y={...o,color:s,disableShrink:i,size:u,thickness:p,value:f,variant:h,enableTrackSlot:a},m=tg(y),v={},_={},S={};if(h==="determinate"){const E=2*Math.PI*((Je-p)/2);v.strokeDasharray=E.toFixed(3),S["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*E).toFixed(3)}px`,_.transform="rotate(-90deg)"}return g.jsx(ng,{className:ue(m.root,r),style:{width:u,height:u,..._,...c},ownerState:y,ref:n,role:"progressbar",...S,...d,children:g.jsxs(og,{className:m.svg,ownerState:y,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:[a?g.jsx(sg,{className:m.track,ownerState:y,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,g.jsx(rg,{className:m.circle,style:v,ownerState:y,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["inherit","primary","secondary","error","info","success","warning"]),l.string]),disableShrink:So(l.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:l.bool,size:l.oneOfType([l.number,l.string]),style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),thickness:l.number,value:l.number,variant:l.oneOf(["determinate","indeterminate"])});const Xa=k.createContext(null);process.env.NODE_ENV!=="production"&&(Xa.displayName="TabContext");process.env.NODE_ENV!=="production"&&(l.node,l.oneOfType([l.number,l.string]).isRequired);function ig(){return k.useContext(Xa)}function ag(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function lg(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}function cg(e){return typeof e=="string"}function ug(e,t,n){return e===void 0||cg(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dg(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Qs(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 pg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const d=ue(n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),y={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},m={...n,...r,...o};return d.length>0&&(m.className=d),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const i=dg({...r,...o}),a=Qs(o),u=Qs(r),c=t(i),p=ue(c==null?void 0:c.className,n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},h={...c,...n,...u,...a};return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function fg(e,t,n){return typeof e=="function"?e(t,n):e}function Ke(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...u}=t,{component:c,slots:p={[e]:void 0},slotProps:f={[e]:void 0},...h}=s,d=p[e]||o,y=fg(f[e],r),{props:{component:m,...v},internalRef:_}=pg({className:n,...u,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y}),S=Xn(_,y==null?void 0:y.ref,t.ref),E=e==="root"?m||c:m,C=ug(d,{...e==="root"&&!c&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...v,...E&&!a&&{as:E},...E&&a&&{component:E},ref:S},r);return[d,C]}function Io({props:e,name:t}){return bm({props:e,name:t,defaultTheme:kr,themeId:Mr})}function mg(e){return je("MuiTabPanel",e)}Pe("MuiTabPanel",["root","hidden"]);const hg=e=>{const{classes:t,hidden:n}=e;return We({root:["root",n&&"hidden"]},mg,t)},gg=de("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),Qa=k.forwardRef(function(t,n){const o=Io({props:t,name:"MuiTabPanel"}),{children:r,className:s,value:i,keepMounted:a=!1,...u}=o,c={...o},p=hg(c),f=ig();if(f===null)throw new TypeError("No TabContext provided");const h=ag(f,i),d=lg(f,i);return g.jsx(gg,{"aria-labelledby":d,className:ue(p.root,s),hidden:i!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c,...u,children:(a||i===f.value)&&r})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:l.node,classes:l.object,className:l.string,keepMounted:l.bool,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),value:l.oneOfType([l.number,l.string]).isRequired});const Zn=k.createContext({});process.env.NODE_ENV!=="production"&&(Zn.displayName="TimelineContext");function yg(e){return je("MuiTimeline",e)}Pe("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function To(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${_e(e)}`}const bg=e=>{const{position:t,classes:n}=e,o={root:["root",t&&To(t)]};return We(o,yg,n)},vg=de("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[To(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Ja=k.forwardRef(function(t,n){const o=Io({props:t,name:"MuiTimeline"}),{position:r="right",className:s,...i}=o,a={...o,position:r},u=bg(a),c=k.useMemo(()=>({position:r}),[r]);return g.jsx(Zn.Provider,{value:c,children:g.jsx(vg,{className:ue(u.root,s),ownerState:a,ref:n,...i})})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={children:l.node,classes:l.object,className:l.string,position:l.oneOf(["alternate-reverse","alternate","left","right"]),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});function _g(e){return je("MuiTypography",e)}Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xg={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Cg=vh(),Sg=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${_e(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return We(a,_g,i)},Ig=de("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${_e(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(et(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(gt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${_e(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Js={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Za=k.forwardRef(function(t,n){const{color:o,...r}=at({props:t,name:"MuiTypography"}),s=!xg[o],i=Cg({...r,...s&&{color:o}}),{align:a="inherit",className:u,component:c,gutterBottom:p=!1,noWrap:f=!1,paragraph:h=!1,variant:d="body1",variantMapping:y=Js,...m}=i,v={...i,align:a,color:o,className:u,component:c,gutterBottom:p,noWrap:f,paragraph:h,variant:d,variantMapping:y},_=c||(h?"p":y[d]||Js[d])||"span",S=Sg(v);return g.jsx(Ig,{as:_,ref:n,className:ue(S.root,u),...m,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});process.env.NODE_ENV!=="production"&&(Za.propTypes={align:l.oneOf(["center","inherit","justify","left","right"]),children:l.node,classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),l.string]),component:l.elementType,gutterBottom:l.bool,noWrap:l.bool,paragraph:l.bool,style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),variant:l.oneOfType([l.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),l.string]),variantMapping:l.object});const Tg=Pe("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Eg=Pe("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function wg(e){return je("MuiTimelineItem",e)}Pe("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Ng=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,r={root:["root",To(t),!o&&"missingOppositeContent"]};return We(r,wg,n)},Og=de("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[To(n.position)]]}})(({ownerState:e})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...e.position==="left"&&{flexDirection:"row-reverse"},...(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${Tg.root}`]:{textAlign:"right"},[`& .${Eg.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),el=k.forwardRef(function(t,n){const o=Io({props:t,name:"MuiTimelineItem"}),{position:r,className:s,...i}=o,{position:a}=k.useContext(Zn);let u=!1;k.Children.forEach(o.children,h=>{Dm(h,["TimelineOppositeContent"])&&(u=!0)});const c={...o,position:r||a||"right",hasOppositeContent:u},p=Ng(c),f=k.useMemo(()=>({position:c.position}),[c.position]);return g.jsx(Zn.Provider,{value:f,children:g.jsx(Og,{className:ue(p.root,s),ownerState:c,ref:n,...i})})});process.env.NODE_ENV!=="production"&&(el.propTypes={children:l.node,classes:l.object,className:l.string,position:l.oneOf(["alternate-reverse","alternate","left","right"]),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});const tl=O.forwardRef(function(t,n){const{variant:o="default",orientation:r="horizontal",inverted:s=!1,overStyled:i=!1,className:a,...u}=t,c=X(u,i);return g.jsx(H.Tabs,{ref:n,orientation:r,className:`${bn.root} ${a||""}`,"data-variant":o,"data-orientation":r,"data-inverted":s||void 0,classes:{flexContainer:bn.list,indicator:bn.indicator},...c})});tl.displayName="Tabs";const nl=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t,i=X(s,o);return g.jsx(H.Tab,{ref:n,className:`${bn.tab} ${r||""}`,...i})});nl.displayName="Tab";const ol=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t,i=X(s,o);return g.jsx(Qa,{ref:n,className:`${bn.panel} ${r||""}`,...i})});ol.displayName="TabPanel";const Eo=O.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},r){const s=X(o,n),a=s.className,u=a?`${t} ${a}`:t;return g.jsx(H.Typography,{ref:r,className:u,variant:"inherit",...s})});Eo.displayName="Typography";const rl=O.forwardRef(function({variant:t="body",...n},o){const r=`recursica_brand_typography_${t}`;return g.jsx(Eo,{ref:o,typographyClass:r,...n})});rl.displayName="Text";const $g="TextArea-module__layoutOverride___4MCdm",Rg="TextArea-module__root___3dyeu",kg="TextArea-module__input___8l36v",It={layoutOverride:$g,root:Rg,input:kg},sl=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,withAsterisk:m,id:v,className:_,style:S,disabled:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,...L}=t,F=X(L,o),U=F;delete U.size,delete U.variant,delete U.radius;const b={wrapper:It.root,input:It.input},R=U.classNames;if(R&&typeof R=="object"&&!Array.isArray(R)){const j=R;b.wrapper=j.wrapper?`${It.root} ${j.wrapper}`:It.root,b.input=j.input?`${It.input} ${j.input}`:It.input}const T=_?`${It.layoutOverride} ${_}`:It.layoutOverride;return g.jsx(it,{className:T,style:S,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:v,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.TextField,{multiline:!0,inputRef:n,classes:b,disabled:E,value:w,defaultValue:N,label:void 0,error:void 0,required:void 0,...F})})});sl.displayName="TextArea";const Mg="TextField-module__layoutOverride___SNZqc",Pg="TextField-module__root___2ZYkG",Ag="TextField-module__input___RL-My",jg="TextField-module__section___bCIJ0",pt={layoutOverride:Mg,root:Pg,input:Ag,section:jg},il=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,className:v,style:_,disabled:S,readOnly:E,readOnlyComponent:C,emptyValueComponent:x,value:I,defaultValue:w,leftSection:N,rightSection:L,...F}=t,U=X(F,o),b=U;delete b.size,delete b.color;const R={wrapper:pt.root,input:pt.input,section:pt.section},T=b.classes;if(T&&typeof T=="object"&&!Array.isArray(T)){const se=T;R.wrapper=se.root?`${pt.root} ${se.root}`:pt.root,R.input=se.input?`${pt.input} ${se.input}`:pt.input}const j=v?`${pt.layoutOverride} ${v}`:pt.layoutOverride,V=N?g.jsx("div",{className:R.section,"data-position":"left",children:N}):void 0,K=L?g.jsx("div",{className:R.section,"data-position":"right",children:L}):void 0;return g.jsx(it,{className:j,style:_,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,readOnly:E,readOnlyComponent:C,emptyValueComponent:x||void 0,readOnlyType:"text",readOnlyValue:I!==void 0?I:w,readOnlyNativeProps:t,activeComponent:g.jsx(H.InputBase,{inputRef:n,classes:{root:R.wrapper,input:R.input},disabled:S,value:I,defaultValue:w,startAdornment:V,endAdornment:K,"data-disabled":S?"true":void 0,"data-error":d?"true":void 0,"data-with-left-section":N?"true":void 0,"data-with-right-section":L?"true":void 0,...U})})});il.displayName="TextField";const Lg=e=>g.jsx("div",{...e,children:"TimePicker"}),Dg="Timeline-module__root___LwRdZ",Vg="Timeline-module__item___T5xdQ",Bg="Timeline-module__itemBody___XAV-E",Fg="Timeline-module__itemBullet___rPXCy",zg="Timeline-module__itemTitle___GgRRW",Wg="Timeline-module__itemContent___vurs-",Ug="Timeline-module__description___f9sxV",Gg="Timeline-module__timestamp___owiRu",Tt={root:Dg,item:Vg,itemBody:Bg,itemBullet:Fg,itemTitle:zg,itemContent:Wg,description:Ug,timestamp:Gg},Br=O.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:r,children:s,...i},a){const u=X(i,t),c={item:Tt.item,itemBody:Tt.itemBody,itemContent:Tt.itemContent,itemBullet:Tt.itemBullet,itemTitle:Tt.itemTitle},p=u.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const h=p;Object.keys(h).forEach(d=>{c[d]?c[d]=`${c[d]} ${h[d]}`:c[d]=h[d]})}const f=n?g.jsxs(g.Fragment,{children:[s&&g.jsx("div",{className:Tt.description,children:s}),g.jsx("div",{className:Tt.timestamp,children:n})]}):s;return g.jsx(el,{ref:a,classes:c,"data-variant":o,...u,children:f})});Br.displayName="TimelineItem";const al=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s={root:Tt.root},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const a=i;Object.keys(a).forEach(u=>{s[u]?s[u]=`${s[u]} ${a[u]}`:s[u]=a[u]})}return g.jsx(Ja,{ref:o,classes:s,...r})});al.displayName="Timeline";const ll=al;ll.Item=Br;const cl=O.forwardRef(function({order:t=1,component:n,...o},r){const s=`recursica_brand_typography_h${t}`,i=`h${t}`;return g.jsx(Eo,{ref:r,typographyClass:s,component:n||i,...o})});cl.displayName="Title";const qg="Toast-module__root___MUvfI",Hg="Toast-module__icon___VwvE1",Kg="Toast-module__title___-H6R2",Yg="Toast-module__description___-QwfC",Xg="Toast-module__closeButton___vGr7g",Qg="Toast-module__body___VLkXA",Jt={root:qg,icon:Hg,title:Kg,description:Yg,closeButton:Xg,body:Qg},Jg=()=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),ul=O.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:r,icon:s,children:i,onClose:a,className:u,...c},p){const f=X(c,t),h={root:Jt.root,message:Jt.body,icon:Jt.icon,action:Jt.closeButton},d=f.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const m=d;Object.keys(m).forEach(v=>{h[v]?h[v]=`${h[v]} ${m[v]}`:h[v]=m[v]})}const y=()=>{a&&a()};return g.jsxs(H.Alert,{ref:p,icon:s,"data-variant":n,className:`${u||""}`,classes:h,action:o?g.jsx(H.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:y,children:g.jsx(Jg,{})}):void 0,...f,children:[r&&g.jsx(H.AlertTitle,{className:Jt.title,children:r}),g.jsx("div",{className:Jt.description,children:i})]})});ul.displayName="Toast";const Zg="Tooltip-module__tooltip___UA7H9",ey="Tooltip-module__arrow___4zROk",Zs={tooltip:Zg,arrow:ey},dl=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:r,...s}){const{title:i,...a}=s,u=X(a,t),c={tooltip:Zs.tooltip,arrow:Zs.arrow},p=u.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const d=p;Object.keys(d).forEach(y=>{c[y]?c[y]=`${c[y]} ${d[y]}`:c[y]=d[y]})}const f=u.withArrow,h=n??f;return g.jsx(H.Tooltip,{title:o||i||"",open:r,placement:"top",arrow:h,classes:c,...u})};dl.displayName="Tooltip";const ty=dl,ny=e=>g.jsx("div",{...e,children:"TransferList"}),ei={};function pl(e,t){const n=k.useRef(ei);return n.current===ei&&(n.current=e(t)),n}function tr(e,t,n,o){const r=pl(oy).current;return ry(r,e,t,n,o)&&sy(r,[e,t,n,o]),r.callback}function oy(){return{callback:null,cleanup:null,refs:[]}}function ry(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function sy(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(o[r]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=o[r];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}function Ve(e,...t){const n=new URL("https://mui.com/x/production-error");return n.searchParams.set("code",e.toString()),t.forEach(o=>n.searchParams.append("args[]",o)),`MUI X error #${e}; visit ${n} for the full message.`}var iy=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const r={};e(r)===r&&(o=!0)}catch{}if(o){let r;try{throw new Error}catch(s){({stack:r}=s)}console.warn(`The result function returned its own inputs without modification. e.g
175
+ `,jC=typeof Qi!="string"?Nn.css`
176
+ animation: ${Qi} 1.4s linear infinite;
177
+ `:null,LC=typeof Zi!="string"?Nn.css`
178
+ animation: ${Zi} 1.4s ease-in-out infinite;
179
+ `:null,VC=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,i={root:["root",n,`color${le(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${le(n)}`,s&&"circleDisableShrink"]};return De(i,AC,t)},FC=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Xe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:jC||{animation:`${Qi} 1.4s linear infinite`}},...Object.entries(e.palette).filter(mt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),BC=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),zC=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:LC||{animation:`${Zi} 1.4s ease-in-out infinite`}}]}))),WC=te("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Zs=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...p}=o,g={...o,color:i,disableShrink:a,size:c,thickness:d,value:m,variant:h,enableTrackSlot:l},f=VC(g),y={},x={},w={};if(h==="determinate"){const T=2*Math.PI*((jt-d)/2);y.strokeDasharray=T.toFixed(3),w["aria-valuenow"]=Math.round(m),y.strokeDashoffset=`${((100-m)/100*T).toFixed(3)}px`,x.transform="rotate(-90deg)"}return b.jsx(FC,{className:ce(f.root,s),style:{width:c,height:c,...x,...u},ownerState:g,ref:n,role:"progressbar",...w,...p,children:b.jsxs(BC,{className:f.svg,ownerState:g,viewBox:`${jt/2} ${jt/2} ${jt} ${jt}`,children:[l?b.jsx(WC,{className:f.track,ownerState:g,cx:jt,cy:jt,r:(jt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(zC,{className:f.circle,style:y,ownerState:g,cx:jt,cy:jt,r:(jt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.string]),disableShrink:An(r.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:r.bool,size:r.oneOfType([r.number,r.string]),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thickness:r.number,value:r.number,variant:r.oneOf(["determinate","indeterminate"])});function UC(e){return _e("MuiButton",e)}const zn=Te("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),of=S.createContext({});process.env.NODE_ENV!=="production"&&(of.displayName="ButtonGroupContext");const rf=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(rf.displayName="ButtonGroupButtonContext");const HC=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${le(t)}`,`size${le(s)}`,`${i}Size${le(s)}`,`color${le(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${le(l)}`],startIcon:["icon","startIcon",`iconSize${le(s)}`],endIcon:["icon","endIcon",`iconSize${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=De(u,UC,c);return{...c,...d}},sf=[{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}}}],qC=te(Zn,{shouldForwardProp:e=>Bo(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]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${zn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:o})=>o.startIcon||o.loading&&o.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{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]},[`&.${zn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${zn.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)",[`&.${zn.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(mt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zn.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}),[`&.${zn.loading}`]:{color:"transparent"}}}]}})),YC=te("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}},...sf]})),GC=te("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}},...sf]})),KC=te("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}}]})),Xc=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),on=S.forwardRef(function(t,n){const o=S.useContext(of),s=S.useContext(rf),i=hr(o,t),a=Ue({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:f,fullWidth:y=!1,id:x,loading:w=null,loadingIndicator:T,loadingPosition:C="center",size:I="medium",startIcon:E,type:N,variant:R="text",...L}=a,V=ja(x),j=T??b.jsx(Zs,{"aria-labelledby":V,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:p,fullWidth:y,loading:w,loadingIndicator:j,loadingPosition:C,size:I,type:N,variant:R},_=HC(v),O=(E||w&&C==="start")&&b.jsx(YC,{className:_.startIcon,ownerState:v,children:E||b.jsx(Xc,{className:_.loadingIconPlaceholder,ownerState:v})}),P=(g||w&&C==="end")&&b.jsx(GC,{className:_.endIcon,ownerState:v,children:g||b.jsx(Xc,{className:_.loadingIconPlaceholder,ownerState:v})}),k=s||"",D=typeof w=="boolean"?b.jsx("span",{className:_.loadingWrapper,style:{display:"contents"},children:w&&b.jsx(KC,{className:_.loadingIndicator,ownerState:v,children:j})}):null,{root:$,...z}=_;return b.jsxs(qC,{ownerState:v,className:ce(o.className,_.root,d,k),component:u,disabled:m||w,focusRipple:!p,focusVisibleClassName:ce(_.focusVisible,f),ref:n,type:N,id:w?V:x,...L,classes:z,children:[O,C!=="end"&&D,l,C==="end"&&D,P]})});process.env.NODE_ENV!=="production"&&(on.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,id:r.string,loading:r.bool,loadingIndicator:r.node,loadingPosition:r.oneOf(["center","end","start"]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});const af=S.createContext(null);process.env.NODE_ENV!=="production"&&(af.displayName="TabContext");process.env.NODE_ENV!=="production"&&(r.node,r.oneOfType([r.number,r.string]).isRequired);function XC(){return S.useContext(af)}function QC(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function ZC(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}var Kr={exports:{}},Fe={};/**
180
+ * @license React
181
+ * react-is.production.js
182
+ *
183
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
184
+ *
185
+ * This source code is licensed under the MIT license found in the
186
+ * LICENSE file in the root directory of this source tree.
187
+ */var Qc;function JC(){if(Qc)return Fe;Qc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case n:case s:case o:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case m:case d:return f;case i:return f;default:return y}}case t:return y}}}return Fe.ContextConsumer=i,Fe.ContextProvider=a,Fe.Element=e,Fe.ForwardRef=l,Fe.Fragment=n,Fe.Lazy=m,Fe.Memo=d,Fe.Portal=t,Fe.Profiler=s,Fe.StrictMode=o,Fe.Suspense=c,Fe.SuspenseList=u,Fe.isContextConsumer=function(f){return g(f)===i},Fe.isContextProvider=function(f){return g(f)===a},Fe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Fe.isForwardRef=function(f){return g(f)===l},Fe.isFragment=function(f){return g(f)===n},Fe.isLazy=function(f){return g(f)===m},Fe.isMemo=function(f){return g(f)===d},Fe.isPortal=function(f){return g(f)===t},Fe.isProfiler=function(f){return g(f)===s},Fe.isStrictMode=function(f){return g(f)===o},Fe.isSuspense=function(f){return g(f)===c},Fe.isSuspenseList=function(f){return g(f)===u},Fe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===p||f.getModuleId!==void 0)},Fe.typeOf=g,Fe}var Be={};/**
188
+ * @license React
189
+ * react-is.development.js
190
+ *
191
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
192
+ *
193
+ * This source code is licensed under the MIT license found in the
194
+ * LICENSE file in the root directory of this source tree.
195
+ */var Zc;function eT(){return Zc||(Zc=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case t:switch(f=f.type,f){case o:case i:case s:case u:case d:case p:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case m:return f;case a:return f;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Be.ContextConsumer=a,Be.ContextProvider=l,Be.Element=t,Be.ForwardRef=c,Be.Fragment=o,Be.Lazy=h,Be.Memo=m,Be.Portal=n,Be.Profiler=i,Be.StrictMode=s,Be.Suspense=u,Be.SuspenseList=d,Be.isContextConsumer=function(f){return e(f)===a},Be.isContextProvider=function(f){return e(f)===l},Be.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Be.isForwardRef=function(f){return e(f)===c},Be.isFragment=function(f){return e(f)===o},Be.isLazy=function(f){return e(f)===h},Be.isMemo=function(f){return e(f)===m},Be.isPortal=function(f){return e(f)===n},Be.isProfiler=function(f){return e(f)===i},Be.isStrictMode=function(f){return e(f)===s},Be.isSuspense=function(f){return e(f)===u},Be.isSuspenseList=function(f){return e(f)===d},Be.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===s||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},Be.typeOf=e})()),Be}var Jc;function tT(){return Jc||(Jc=1,process.env.NODE_ENV==="production"?Kr.exports=JC():Kr.exports=eT()),Kr.exports}var nT=tT();function Ji(e){return typeof e=="string"}function lf(e,t,n){return e===void 0||Ji(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function cf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function eu(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 uf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=cf({...s,...o}),l=eu(o),c=eu(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function df(e,t,n){return typeof e=="function"?e(t,n):e}function oT(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:df(n,o),{props:l,internalRef:c}=uf({...i,externalSlotProps:a}),u=ut(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return lf(t,{...l,ref:u},o)}function or(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function pf(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function Ge(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=i,p=d[e]||o,g=df(m[e],s),{props:{component:f,...y},internalRef:x}=uf({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),w=ut(x,g==null?void 0:g.ref,t.ref),T=e==="root"?f||u:f,C=lf(p,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...T&&!l&&{as:T},...T&&l&&{component:T},ref:w},s);return[p,C]}function ze({props:e,name:t}){return eS({props:e,name:t,defaultTheme:Va,themeId:Xs})}function rT(e){return _e("MuiTabPanel",e)}Te("MuiTabPanel",["root","hidden"]);const sT=e=>{const{classes:t,hidden:n}=e;return De({root:["root",n&&"hidden"]},rT,t)},iT=te("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),ff=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiTabPanel"}),{children:s,className:i,value:a,keepMounted:l=!1,...c}=o,u={...o},d=sT(u),m=XC();if(m===null)throw new TypeError("No TabContext provided");const h=QC(m,a),p=ZC(m,a);return b.jsx(iT,{"aria-labelledby":p,className:ce(d.root,i),hidden:a!==m.value,id:h,ref:n,role:"tabpanel",ownerState:u,...c,children:(l||a===m.value)&&s})});process.env.NODE_ENV!=="production"&&(ff.propTypes={children:r.node,classes:r.object,className:r.string,keepMounted:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.number,r.string]).isRequired});const Ss=S.createContext({});process.env.NODE_ENV!=="production"&&(Ss.displayName="TimelineContext");function aT(e){return _e("MuiTimeline",e)}Te("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Js(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${le(e)}`}const lT=e=>{const{position:t,classes:n}=e,o={root:["root",t&&Js(t)]};return De(o,aT,n)},cT=te("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[Js(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),mf=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiTimeline"}),{position:s="right",className:i,...a}=o,l={...o,position:s},c=lT(l),u=S.useMemo(()=>({position:s}),[s]);return b.jsx(Ss.Provider,{value:u,children:b.jsx(cT,{className:ce(c.root,i),ownerState:l,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(mf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function uT(e){return _e("MuiTypography",e)}Te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},pT=tC(),fT=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return De(l,uT,a)},mT=te("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]}})(Xe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(mt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${le(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),tu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},no=S.forwardRef(function(t,n){const{color:o,...s}=Ue({props:t,name:"MuiTypography"}),i=!dT[o],a=pT({...s,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=tu,...f}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:p,variantMapping:g},x=u||(h?"p":g[p]||tu[p])||"span",w=fT(y);return b.jsx(mT,{as:x,ref:n,className:ce(w.root,c),...f,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(no.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});const hT=Te("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),gT=Te("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function bT(e){return _e("MuiTimelineItem",e)}Te("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const yT=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,s={root:["root",Js(t),!o&&"missingOppositeContent"]};return De(s,bT,n)},vT=te("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[Js(n.position)]]}})(({ownerState:e})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...e.position==="left"&&{flexDirection:"row-reverse"},...(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${hT.root}`]:{textAlign:"right"},[`& .${gT.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),hf=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiTimelineItem"}),{position:s,className:i,...a}=o,{position:l}=S.useContext(Ss);let c=!1;S.Children.forEach(o.children,h=>{To(h,["TimelineOppositeContent"])&&(c=!0)});const u={...o,position:s||l||"right",hasOppositeContent:c},d=yT(u),m=S.useMemo(()=>({position:u.position}),[u.position]);return b.jsx(Ss.Provider,{value:m,children:b.jsx(vT,{className:ce(d.root,i),ownerState:u,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(hf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function nu(e,t){var o;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(n&&n instanceof ShadowRoot){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode??s.host??null}}return!1}const gf=Q.forwardRef(function(t,n){const{variant:o="default",orientation:s="horizontal",inverted:i=!1,overStyled:a=!1,className:l,...c}=t,u=fe(c,a);return b.jsx(pe.Tabs,{ref:n,orientation:s,className:`${sr.root} ${l||""}`,"data-variant":o,"data-orientation":s,"data-inverted":i||void 0,classes:{flexContainer:sr.list,indicator:sr.indicator},...u})});gf.displayName="Tabs";const bf=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=fe(i,o);return b.jsx(pe.Tab,{ref:n,className:`${sr.tab} ${s||""}`,...a})});bf.displayName="Tab";const yf=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=fe(i,o);return b.jsx(ff,{ref:n,className:`${sr.panel} ${s||""}`,...a})});yf.displayName="TabPanel";const ei=Q.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},s){const i=fe(o,n),l=i.className,c=l?`${t} ${l}`:t;return b.jsx(pe.Typography,{ref:s,className:c,variant:"inherit",...i})});ei.displayName="Typography";const vf=Q.forwardRef(function({variant:t="body",...n},o){const s=`recursica_brand_typography_${t}`;return b.jsx(ei,{ref:o,typographyClass:s,...n})});vf.displayName="Text";const xT="TextArea-module__layoutOverride___4MCdm",ST="TextArea-module__root___3dyeu",CT="TextArea-module__input___8l36v",vn={layoutOverride:xT,root:ST,input:CT},xf=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,withAsterisk:f,id:y,className:x,style:w,disabled:T,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:N,defaultValue:R,...L}=t,V=fe(L,o),j=V;delete j.size,delete j.variant,delete j.radius;const v={wrapper:vn.root,input:vn.input},_=j.classNames;if(_&&typeof _=="object"&&!Array.isArray(_)){const P=_;v.wrapper=P.wrapper?`${vn.root} ${P.wrapper}`:vn.root,v.input=P.input?`${vn.input} ${P.input}`:vn.input}const O=x?`${vn.layoutOverride} ${x}`:vn.layoutOverride;return b.jsx(Bt,{className:O,style:w,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:y,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:N!==void 0?N:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{multiline:!0,inputRef:n,classes:v,disabled:T,value:N,defaultValue:R,label:void 0,error:void 0,required:void 0,...V})})});xf.displayName="TextArea";const TT="TextField-module__layoutOverride___SNZqc",wT="TextField-module__root___2ZYkG",IT="TextField-module__input___RL-My",ET="TextField-module__section___bCIJ0",nn={layoutOverride:TT,root:wT,input:IT,section:ET},Sf=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:f,className:y,style:x,disabled:w,readOnly:T,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:N,leftSection:R,rightSection:L,...V}=t,j=fe(V,o),v=j;delete v.size,delete v.color;const _={wrapper:nn.root,input:nn.input,section:nn.section},O=v.classes;if(O&&typeof O=="object"&&!Array.isArray(O)){const $=O;_.wrapper=$.root?`${nn.root} ${$.root}`:nn.root,_.input=$.input?`${nn.input} ${$.input}`:nn.input}const P=y?`${nn.layoutOverride} ${y}`:nn.layoutOverride,k=R?b.jsx("div",{className:_.section,"data-position":"left",children:R}):void 0,D=L?b.jsx("div",{className:_.section,"data-position":"right",children:L}):void 0;return b.jsx(Bt,{className:P,style:x,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:f,readOnly:T,readOnlyComponent:C,emptyValueComponent:I||void 0,readOnlyType:"text",readOnlyValue:E!==void 0?E:N,readOnlyNativeProps:t,activeComponent:b.jsx(pe.InputBase,{inputRef:n,classes:{root:_.wrapper,input:_.input},disabled:w,value:E,defaultValue:N,startAdornment:k,endAdornment:D,"data-disabled":w?"true":void 0,"data-error":p?"true":void 0,"data-with-left-section":R?"true":void 0,"data-with-right-section":L?"true":void 0,...j})})});Sf.displayName="TextField";function Oe(e,...t){const n=new URL("https://mui.com/x/production-error");return n.searchParams.set("code",e.toString()),t.forEach(o=>n.searchParams.append("args[]",o)),`MUI X error #${e}; visit ${n} for the full message.`}const OT=["localeText"],Cs=S.createContext(null);process.env.NODE_ENV!=="production"&&(Cs.displayName="PickerAdapterContext");const ti=function(t){const{localeText:n}=t,o=xe(t,OT),{adapter:s,localeText:i}=S.useContext(Cs)??{adapter:void 0,localeText:void 0},a=ze({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:h}=a,p=S.useMemo(()=>M({},h,i,n),[h,i,n]),g=S.useMemo(()=>{if(!c)return s||null;const x=new c({locale:m,formats:u,instance:d});if(!x.isMUIAdapter)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`. Using adapters from @date-io directly is not supported. For example, use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`. See https://mui.com/x/react-date-pickers/quickstart/#installation":Oe(143));return x},[c,m,u,d,s]),f=S.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),y=S.useMemo(()=>({adapter:g,defaultDates:f,localeText:p}),[f,g,p]);return b.jsx(Cs.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ti.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ti.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});var rs={exports:{}},_T=rs.exports,ou;function kT(){return ou||(ou=1,(function(e,t){(function(n,o){e.exports=o()})(_T,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",h="quarter",p="year",g="date",f="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var P=["th","st","nd","rd"],k=O%100;return"["+O+(P[(k-20)%10]||P[k]||P[0])+"]"}},T=function(O,P,k){var D=String(O);return!D||D.length>=P?O:""+Array(P+1-D.length).join(k)+O},C={s:T,z:function(O){var P=-O.utcOffset(),k=Math.abs(P),D=Math.floor(k/60),$=k%60;return(P<=0?"+":"-")+T(D,2,"0")+":"+T($,2,"0")},m:function O(P,k){if(P.date()<k.date())return-O(k,P);var D=12*(k.year()-P.year())+(k.month()-P.month()),$=P.clone().add(D,m),z=k-$<0,A=P.clone().add(D+(z?-1:1),m);return+(-(D+(k-$)/(z?$-A:A-$))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:m,y:p,w:d,d:u,D:g,h:c,m:l,s:a,ms:i,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},I="en",E={};E[I]=w;var N="$isDayjsObject",R=function(O){return O instanceof v||!(!O||!O[N])},L=function O(P,k,D){var $;if(!P)return I;if(typeof P=="string"){var z=P.toLowerCase();E[z]&&($=z),k&&(E[z]=k,$=z);var A=P.split("-");if(!$&&A.length>1)return O(A[0])}else{var F=P.name;E[F]=P,$=F}return!D&&$&&(I=$),$||!D&&I},V=function(O,P){if(R(O))return O.clone();var k=typeof P=="object"?P:{};return k.date=O,k.args=arguments,new v(k)},j=C;j.l=L,j.i=R,j.w=function(O,P){return V(O,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var v=(function(){function O(k){this.$L=L(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[N]=!0}var P=O.prototype;return P.parse=function(k){this.$d=(function(D){var $=D.date,z=D.utc;if($===null)return new Date(NaN);if(j.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var A=$.match(y);if(A){var F=A[2]-1||0,W=(A[7]||"0").substring(0,3);return z?new Date(Date.UTC(A[1],F,A[3]||1,A[4]||0,A[5]||0,A[6]||0,W)):new Date(A[1],F,A[3]||1,A[4]||0,A[5]||0,A[6]||0,W)}}return new Date($)})(k),this.init()},P.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},P.$utils=function(){return j},P.isValid=function(){return this.$d.toString()!==f},P.isSame=function(k,D){var $=V(k);return this.startOf(D)<=$&&$<=this.endOf(D)},P.isAfter=function(k,D){return V(k)<this.startOf(D)},P.isBefore=function(k,D){return this.endOf(D)<V(k)},P.$g=function(k,D,$){return j.u(k)?this[D]:this.set($,k)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(k,D){var $=this,z=!!j.u(D)||D,A=j.p(k),F=function(B,H){var ae=j.w($.$u?Date.UTC($.$y,H,B):new Date($.$y,H,B),$);return z?ae:ae.endOf(u)},W=function(B,H){return j.w($.toDate()[B].apply($.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(H)),$)},K=this.$W,Z=this.$M,Y=this.$D,X="set"+(this.$u?"UTC":"");switch(A){case p:return z?F(1,0):F(31,11);case m:return z?F(1,Z):F(0,Z+1);case d:var ne=this.$locale().weekStart||0,q=(K<ne?K+7:K)-ne;return F(z?Y-q:Y+(6-q),Z);case u:case g:return W(X+"Hours",0);case c:return W(X+"Minutes",1);case l:return W(X+"Seconds",2);case a:return W(X+"Milliseconds",3);default:return this.clone()}},P.endOf=function(k){return this.startOf(k,!1)},P.$set=function(k,D){var $,z=j.p(k),A="set"+(this.$u?"UTC":""),F=($={},$[u]=A+"Date",$[g]=A+"Date",$[m]=A+"Month",$[p]=A+"FullYear",$[c]=A+"Hours",$[l]=A+"Minutes",$[a]=A+"Seconds",$[i]=A+"Milliseconds",$)[z],W=z===u?this.$D+(D-this.$W):D;if(z===m||z===p){var K=this.clone().set(g,1);K.$d[F](W),K.init(),this.$d=K.set(g,Math.min(this.$D,K.daysInMonth())).$d}else F&&this.$d[F](W);return this.init(),this},P.set=function(k,D){return this.clone().$set(k,D)},P.get=function(k){return this[j.p(k)]()},P.add=function(k,D){var $,z=this;k=Number(k);var A=j.p(D),F=function(Z){var Y=V(z);return j.w(Y.date(Y.date()+Math.round(Z*k)),z)};if(A===m)return this.set(m,this.$M+k);if(A===p)return this.set(p,this.$y+k);if(A===u)return F(1);if(A===d)return F(7);var W=($={},$[l]=o,$[c]=s,$[a]=n,$)[A]||1,K=this.$d.getTime()+k*W;return j.w(K,this)},P.subtract=function(k,D){return this.add(-1*k,D)},P.format=function(k){var D=this,$=this.$locale();if(!this.isValid())return $.invalidDate||f;var z=k||"YYYY-MM-DDTHH:mm:ssZ",A=j.z(this),F=this.$H,W=this.$m,K=this.$M,Z=$.weekdays,Y=$.months,X=$.meridiem,ne=function(H,ae,G,de){return H&&(H[ae]||H(D,z))||G[ae].slice(0,de)},q=function(H){return j.s(F%12||12,H,"0")},B=X||function(H,ae,G){var de=H<12?"AM":"PM";return G?de.toLowerCase():de};return z.replace(x,(function(H,ae){return ae||(function(G){switch(G){case"YY":return String(D.$y).slice(-2);case"YYYY":return j.s(D.$y,4,"0");case"M":return K+1;case"MM":return j.s(K+1,2,"0");case"MMM":return ne($.monthsShort,K,Y,3);case"MMMM":return ne(Y,K);case"D":return D.$D;case"DD":return j.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ne($.weekdaysMin,D.$W,Z,2);case"ddd":return ne($.weekdaysShort,D.$W,Z,3);case"dddd":return Z[D.$W];case"H":return String(F);case"HH":return j.s(F,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return B(F,W,!0);case"A":return B(F,W,!1);case"m":return String(W);case"mm":return j.s(W,2,"0");case"s":return String(D.$s);case"ss":return j.s(D.$s,2,"0");case"SSS":return j.s(D.$ms,3,"0");case"Z":return A}return null})(H)||A.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(k,D,$){var z,A=this,F=j.p(D),W=V(k),K=(W.utcOffset()-this.utcOffset())*o,Z=this-W,Y=function(){return j.m(A,W)};switch(F){case p:z=Y()/12;break;case m:z=Y();break;case h:z=Y()/3;break;case d:z=(Z-K)/6048e5;break;case u:z=(Z-K)/864e5;break;case c:z=Z/s;break;case l:z=Z/o;break;case a:z=Z/n;break;default:z=Z}return $?z:j.a(z)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return E[this.$L]},P.locale=function(k,D){if(!k)return this.$L;var $=this.clone(),z=L(k,D,!0);return z&&($.$L=z),$},P.clone=function(){return j.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()},O})(),_=v.prototype;return V.prototype=_,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",p],["$D",g]].forEach((function(O){_[O[1]]=function(P){return this.$g(P,O[0],O[1])}})),V.extend=function(O,P){return O.$i||(O(P,v,V),O.$i=!0),V},V.locale=L,V.isDayjs=R,V.unix=function(O){return V(1e3*O)},V.en=E[I],V.Ls=E,V.p={},V}))})(rs)),rs.exports}var PT=kT();const it=to(PT);var ss={exports:{}},RT=ss.exports,ru;function NT(){return ru||(ru=1,(function(e,t){(function(n,o){e.exports=o()})(RT,(function(){var n="week",o="year";return function(s,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),m=a(this).endOf(n);if(d.isBefore(m))return 1}var h=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(ss)),ss.exports}var MT=NT();const $T=to(MT);var is={exports:{}},DT=is.exports,su;function AT(){return su||(su=1,(function(e,t){(function(n,o){e.exports=o()})(DT,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(x){this[y]=+x}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var w=x.match(/([+-]|\d\d)/g),T=60*w[1]+(+w[2]||0);return T===0?0:w[0]==="+"?-T:T})(y)}],h=function(y){var x=c[y];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(y,x){var w,T=c.meridiem;if(T){for(var C=1;C<=24;C+=1)if(y.indexOf(T(C,0,x))>-1){w=C>12;break}}else w=y===(x?"pm":"PM");return w},g={A:[l,function(y){this.afternoon=p(y,!1)}],a:[l,function(y){this.afternoon=p(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var x=c.ordinal,w=y.match(/\d+/);if(this.day=w[0],x)for(var T=1;T<=31;T+=1)x(T).replace(/\[|\]/g,"")===y&&(this.day=T)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var x=h("months"),w=(h("monthsShort")||x.map((function(T){return T.slice(0,3)}))).indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(y){var x=h("months").indexOf(y)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function f(y){var x,w;x=y,w=c&&c.formats;for(var T=(y=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,j,v){var _=v&&v.toUpperCase();return j||w[v]||n[v]||w[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,P,k){return P||k.slice(1)}))}))).match(o),C=T.length,I=0;I<C;I+=1){var E=T[I],N=g[E],R=N&&N[0],L=N&&N[1];T[I]=L?{regex:R,parser:L}:E.replace(/^\[|\]$/g,"")}return function(V){for(var j={},v=0,_=0;v<C;v+=1){var O=T[v];if(typeof O=="string")_+=O.length;else{var P=O.regex,k=O.parser,D=V.slice(_),$=P.exec(D)[0];k.call(j,$),V=V.replace($,"")}}return(function(z){var A=z.afternoon;if(A!==void 0){var F=z.hours;A?F<12&&(z.hours+=12):F===12&&(z.hours=0),delete z.afternoon}})(j),j}}return function(y,x,w){w.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var T=x.prototype,C=T.parse;T.parse=function(I){var E=I.date,N=I.utc,R=I.args;this.$u=N;var L=R[1];if(typeof L=="string"){var V=R[2]===!0,j=R[3]===!0,v=V||j,_=R[2];j&&(_=R[2]),c=this.$locale(),!V&&_&&(c=w.Ls[_]),this.$d=(function(D,$,z,A){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*D);var F=f($)(D),W=F.year,K=F.month,Z=F.day,Y=F.hours,X=F.minutes,ne=F.seconds,q=F.milliseconds,B=F.zone,H=F.week,ae=new Date,G=Z||(W||K?1:ae.getDate()),de=W||ae.getFullYear(),oe=0;W&&!K||(oe=K>0?K-1:ae.getMonth());var ye,me=Y||0,re=X||0,J=ne||0,ge=q||0;return B?new Date(Date.UTC(de,oe,G,me,re,J,ge+60*B.offset*1e3)):z?new Date(Date.UTC(de,oe,G,me,re,J,ge)):(ye=new Date(de,oe,G,me,re,J,ge),H&&(ye=A(ye).week(H).toDate()),ye)}catch{return new Date("")}})(E,L,N,w),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),v&&E!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var O=L.length,P=1;P<=O;P+=1){R[1]=L[P-1];var k=w.apply(this,R);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}P===O&&(this.$d=new Date(""))}else C.call(this,I)}}}))})(is)),is.exports}var jT=AT();const Cf=to(jT);var as={exports:{}},LT=as.exports,iu;function VT(){return iu||(iu=1,(function(e,t){(function(n,o){e.exports=o()})(LT,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,s,i){var a=s.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,g,f){var y=f&&f.toUpperCase();return g||h[f]||n[f]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,w,T){return w||T.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(as)),as.exports}var FT=VT();const BT=to(FT);var ls={exports:{}},zT=ls.exports,au;function WT(){return au||(au=1,(function(e,t){(function(n,o){e.exports=o()})(zT,(function(){return function(n,o,s){o.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(ls)),ls.exports}var UT=WT();const HT=to(UT);var cs={exports:{}},qT=cs.exports,lu;function YT(){return lu||(lu=1,(function(e,t){(function(n,o){e.exports=o()})(qT,(function(){return function(n,o){var s=o.prototype,i=s.format;s.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}}));return i.bind(this)(d)}}}))})(cs)),cs.exports}var GT=YT();const KT=to(GT),cu=new Set;function fn(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
196
+ `):e;cu.has(n)||(cu.add(n),t==="error"?console.error(n):console.warn(n))}it.extend(BT);it.extend($T);it.extend(HT);it.extend(KT);const XT={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"},QT={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};function Mi(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs UTC plugin. UTC and timezone support requires the dayjs UTC plugin to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.":Oe(138))}function uu(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs timezone plugin. Timezone support requires both the dayjs UTC and timezone plugins to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.":Oe(139))}class ZT{constructor({locale:t,formats:n}={}){U(this,"isMUIAdapter",!0);U(this,"isTimezoneCompatible",!0);U(this,"lib","dayjs");U(this,"escapedCharacters",{start:"[",end:"]"});U(this,"formatTokenMap",XT);U(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});U(this,"hasUTCPlugin",()=>typeof it.utc<"u");U(this,"hasTimezonePlugin",()=>typeof it.tz<"u");U(this,"isSame",(t,n,o)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(o)===s.format(o)});U(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return it.tz.guess();default:return t}});U(this,"createSystemDate",t=>this.setLocaleToValue(it(t)));U(this,"createUTCDate",t=>(this.hasUTCPlugin()||Mi(),this.setLocaleToValue(it.utc(t))));U(this,"createTZDate",(t,n)=>{this.hasUTCPlugin()||Mi(),this.hasTimezonePlugin()||uu();const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(it(t).tz(this.cleanTimezone(n),o))});U(this,"getLocaleFormats",()=>{const t=it.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&fn(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});U(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});U(this,"restoreDayOfMonth",(t,n)=>{const o=this.getTimezone(t);if(!this.hasUTCPlugin()||o==="system"||o==="UTC")return t;const s=it.utc(t.format("YYYY-MM-DDTHH:mm:ss.SSS"));if(!s.isValid())return t;const i=Math.min(n.date(),s.daysInMonth());return t.date()===i?t:t.set("date",i)});U(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));U(this,"getInvalidDate",()=>it(new Date("Invalid date")));U(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});U(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC")return this.hasUTCPlugin()||Mi(),t.utc();if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;uu()}return this.setLocaleToValue(it.tz(t,this.cleanTimezone(n)))});U(this,"toJsDate",t=>t.toDate());U(this,"parse",(t,n)=>t===""?null:it(t,n,this.locale,!0));U(this,"getCurrentLocaleCode",()=>this.locale||"en");U(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));U(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});U(this,"isValid",t=>t==null?!1:t.isValid());U(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));U(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));U(this,"formatNumber",t=>t);U(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());U(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));U(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));U(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));U(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));U(this,"isAfter",(t,n)=>t>n);U(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));U(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));U(this,"isBefore",(t,n)=>t<n);U(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));U(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));U(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);U(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));U(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));U(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));U(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));U(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));U(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));U(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));U(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));U(this,"addYears",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"year"),t)));U(this,"addMonths",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"month"),t)));U(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));U(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));U(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));U(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));U(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));U(this,"getYear",t=>t.year());U(this,"getMonth",t=>t.month());U(this,"getDate",t=>t.date());U(this,"getHours",t=>t.hour());U(this,"getMinutes",t=>t.minute());U(this,"getSeconds",t=>t.second());U(this,"getMilliseconds",t=>t.millisecond());U(this,"setYear",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("year",n),t)));U(this,"setMonth",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("month",n),t)));U(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));U(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));U(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));U(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));U(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));U(this,"getDaysInMonth",t=>t.daysInMonth());U(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<o;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a});U(this,"getWeekNumber",t=>t.week());U(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=M({},QT,n),it.extend(Cf)}getDayOfWeek(t){return t.day()+1}}const Tf=zp({themeId:Xs}),gn=r.oneOfType([r.func,r.object]);function Ro(e,t,n){return typeof e=="function"?e(t,n):e}const qo=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),JT=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error(process.env.NODE_ENV!=="production"?'MUI X Date Pickers: The `views` prop must contain at least one view. The date picker needs at least one view to display. Add a valid view to the views array (e.g., ["year", "month", "day"]).':Oe(153));return{views:s,openTo:i}},du=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},ew=(e,t)=>e.isValid(t)?t:null,tw=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),wf=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},Ua=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),En=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},nw=["hours","minutes","seconds"],ow=["hours","minutes","seconds","meridiem"],No=e=>nw.includes(e),If=e=>ow.includes(e),rw=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,yr=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Ef=(e,t,n,o)=>{const s=yr(o.getHours(e),t,n);return o.setHours(e,s)},pu=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Rr=(e,t)=>(n,o)=>e?t.isAfter(n,o):pu(n,t)>pu(o,t),Of=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return qo(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:qo(n,["minutes"])?s.minutes:qo(n,["seconds"])?s.seconds:qo(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:qo(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},Cn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},sw=e=>Math.max(...e.map(t=>Cn[t.type]??1)),Yo=(e,t,n)=>{if(t===Cn.year)return e.startOfYear(n);if(t===Cn.month)return e.startOfMonth(n);if(t===Cn.day)return e.startOfDay(n);let o=n;return t<Cn.minutes&&(o=e.setMinutes(o,0)),t<Cn.seconds&&(o=e.setSeconds(o,0)),t<Cn.milliseconds&&(o=e.setMilliseconds(o,0)),o},iw=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():Yo(t,n,Ua(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Yo(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Yo(t,n,e.maxDate));const a=Rr(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Yo(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:du(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Yo(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:du(t,i,e.maxTime))),i},Ha=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token "${t}" is not supported by the Date and Time Pickers.
197
+ 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.`:Oe(157,t));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},ni=(e,t)=>{const n=[],o=e.date(void 0,"default"),s=e.startOfWeek(o),i=e.endOfWeek(o);let a=s;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},_f=(e,t,n,o)=>{switch(n){case"month":return wf(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return ni(e,o);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(i=>e.formatByString(i,o))}default:return[]}},fu="s",aw=["0","1","2","3","4","5","6","7","8","9"],lw=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),fu)==="0"?aw:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),fu))},Kt=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let s=0;s<e.length;s+=1){o+=e[s];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},qa=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),mu=(e,t)=>{const n=Kt(e,t);return n!==" "&&!Number.isNaN(Number(n))},Ya=(e,t)=>Number(e).toString().padStart(t,"0"),kf=(e,t,n,o,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
198
+ This type of format is only supported for 'day' sections`].join(`
199
+ `));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=Ya(i,s.maxLength)),qa(i,o)},cw=(e,t,n)=>{let o=e.value||e.placeholder;const s=e.hasLeadingZerosInFormat;return e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Kt(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}‎`),o},hu=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Ha(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},uw=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Pf=(e,t,n,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(s,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X:Invalid section type":Oe(158))}},dw=(e,t,n)=>{const o=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),i.push(cw(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},pw=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),fw=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=wf(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:uw(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=ni(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i),d=Number(Kt(e.formatByString(e.startOfDay(o),c),t)),m=Number(Kt(e.formatByString(e.endOfDay(o),c),t));return m!==u?d===0?{minimum:0,maximum:m}:{minimum:1,maximum:d}:d>u?{minimum:1,maximum:d}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let gu=!1;const bu=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!gu){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!n.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),gu=!0)}},mw=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=Ya(s,t.maxLength));const i=ni(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12?"am":"pm";return Ef(o,s,!0,e)}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},yu={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},vu=(e,t,n,o,s)=>[...n].sort((i,a)=>yu[i.type]-yu[a.type]).reduce((i,a)=>!s||a.modified?mw(e,a,t,i):i,o),hw=e=>{const t={};return e.forEach((n,o)=>{const s=o===0?null:o-1,i=o===e.length-1?null:o+1;t[o]={leftIndex:s,rightIndex:i}}),{neighbors:t,startIndex:0,endIndex:e.length-1}},ea=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},gw=["value","referenceDate"],jn={emptyValue:null,getTodayValue:Ua,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=xe(e,gw);return o.adapter.isValid(t)?t:n??iw(o)},cleanValue:ew,areValuesEqual:tw,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},bw={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getHiddenInputValueFromSections:pw,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>M({},t,{value:""}))};function ht(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const mn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ve(e){const t=S.useRef(e);return mn(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function Io(e){return e&&e.ownerDocument||document}function bo(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const yw=e=>{setTimeout(e,0)},Rf=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Rf(t.shadowRoot):t:null},ln=e=>Rf(Io(e)),Ts=e=>Array.from(e.children).indexOf(ln(e)),vw="@media (pointer: fine)";function Nf(e){const t={};for(const n of Object.keys(e))(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return t}const xw=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),Mf={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Sw=Mf;xw(Mf);const $f=()=>{const e=S.useContext(Cs);if(e===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers localization context.\nIt looks like you forgot to wrap your component in LocalizationProvider.\nThis can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package":Oe(149));if(e.adapter===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers adapter from its localization context.\nIt looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.":Oe(150));const t=S.useMemo(()=>M({},Sw,e.localeText),[e.localeText]);return S.useMemo(()=>M({},e,{localeText:t}),[e,t])},nt=()=>$f().adapter,Qt=()=>$f().localeText,ta=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],na=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Df=["minDateTime","maxDateTime"],Cw=[...ta,...na,...Df],Af=e=>Cw.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Tw=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","fieldRef","startFieldRef","endFieldRef","disabled","readOnly","dateSeparator","autoFocus","focused"],ww=(e,t)=>S.useMemo(()=>{const n=M({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return Tw.forEach(s),t==="date"?ta.forEach(s):t==="time"?na.forEach(s):t==="date-time"&&(ta.forEach(s),na.forEach(s),Df.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),Iw=({adapter:e,format:t})=>{let n=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),n-=1,n<0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.":Oe(154));return s},Ew=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:s}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},Ow=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},_w=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:s,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Should not call `commitToken` with an empty token":Oe(155));const c=Ha(e,a),u=Pf(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",m=e.isValid(t);let h=m?e.formatByString(t,a):"",p=null;if(d)if(u)p=h===""?e.formatByString(i,a).length:h.length;else{if(c.maxLength==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`:Oe(156,a));p=c.maxLength,m&&(h=qa(Ya(Kt(h,s),p),s))}return M({},c,{format:a,maxLength:p,value:h,placeholder:Ow(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},kw=e=>{var p;const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((g,f)=>f.length-g.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),m=g=>o.find(f=>f.start<=g&&f.end>=g);let h=0;for(;h<n.length;){const g=m(h),f=g!=null,y=(p=c.exec(n.slice(h)))==null?void 0:p[1];if(!f&&y!=null&&u.test(y)){let x=y;for(;x.length>0;){const w=d.exec(x)[1];x=x.slice(w.length),i.push(_w(M({},e,{now:s,token:w,startSeparator:a}))),a=""}h+=y.length}else{const x=n[h];f&&(g==null?void 0:g.start)===h||(g==null?void 0:g.end)===h||(i.length===0?a+=x:(i[i.length-1].endSeparator+=x,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},Pw=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const s=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),xu=e=>{let t=Iw(e);e.isRtl&&(t=t.split(" ").reverse().join(" "));const n=Ew(M({},e,{expandedFormat:t})),o=kw(M({},e,{expandedFormat:t,escapedParts:n}));return Pw(M({},e,{sections:o}))},oi=S.createContext(null);process.env.NODE_ENV!=="production"&&(oi.displayName="PickerContext");const zo=()=>{const e=S.useContext(oi);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component":Oe(151));return e},Ga=()=>S.useContext(oi),Ka=S.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Ka.displayName="IsValidValueContext");function Rw(){return S.useContext(Ka)}const Xa=S.createContext(null);process.env.NODE_ENV!=="production"&&(Xa.displayName="PickerFieldPrivateContext");function Nw(){return S.useContext(Xa)}const Qa=S.createContext(null);process.env.NODE_ENV!=="production"&&(Qa.displayName="PickerActionsContext");const Za=S.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Za.displayName="PickerPrivateContext");function jf(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(oi.Provider,{value:t,children:b.jsx(Qa.Provider,{value:n,children:b.jsx(Za.Provider,{value:o,children:b.jsx(Xa.Provider,{value:s,children:b.jsx(Ka.Provider,{value:i,children:b.jsx(ti,{localeText:a,children:l})})})})})})}const Mw=()=>{const e=S.useContext(Qa);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component":Oe(148));return e},po=e=>e.saveQuery!=null,$w=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=nt(),c=({keyPressed:m,sectionIndex:h},p,g)=>{const f=m.toLowerCase(),y=n.sections[h];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const w=`${n.characterQuery.value}${f}`,T=p(w,y);if(!po(T))return s({sectionIndex:h,value:w,sectionType:y.type}),T}const x=p(f,y);return po(x)&&!x.saveQuery?(s(null),null):(s({sectionIndex:h,value:f,sectionType:y.type}),po(x)?null:x)},u=m=>{const h=(f,y,x)=>{const w=y.filter(T=>T.toLowerCase().startsWith(x));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},p=(f,y,x,w)=>{const T=C=>_f(l,o,y.type,C);if(y.contentType==="letter")return h(y.format,T(y.format),f);if(x&&w!=null&&Ha(l,x).contentType==="letter"){const C=T(x),I=h(x,C,f);return po(I)?{saveQuery:!1}:M({},I,{sectionValue:w(I.sectionValue,C)})}return{saveQuery:!1}};return c(m,(f,y)=>{switch(y.type){case"month":{const x=w=>hu(l,w,l.formats.month,y.format);return p(f,y,l.formats.month,x)}case"weekDay":{const x=(w,T)=>T.indexOf(w).toString();return p(f,y,l.formats.weekday,x)}case"meridiem":return p(f,y);default:return{saveQuery:!1}}})},d=m=>{const h=({queryValue:g,skipIfBelowMinimum:f,section:y})=>{const x=Kt(g,e),w=Number(x),T=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(w>T.maximum)return{saveQuery:!1};if(f&&w<T.minimum)return{saveQuery:!0};const C=w*10>T.maximum||x.length===T.maximum.toString().length;return{sectionValue:kf(l,w,T,e,y),shouldGoToNextSection:C}};return c(m,(g,f)=>{if(f.contentType==="digit"||f.contentType==="digit-with-letter")return h({queryValue:g,skipIfBelowMinimum:!1,section:f});if(f.type==="month"){Pf(l,"digit","month","MM");const y=h({queryValue:g,skipIfBelowMinimum:!0,section:{type:f.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(po(y))return y;const x=hu(l,y.sectionValue,"MM",f.format);return M({},y,{sectionValue:x})}if(f.type==="weekDay"){const y=h({queryValue:g,skipIfBelowMinimum:!0,section:f});if(po(y))return y;const x=ni(l,f.format)[Number(y.sectionValue)-1];return M({},y,{sectionValue:x})}return{saveQuery:!1}},g=>mu(g,e))};return ve(m=>{const h=n.sections[m.sectionIndex],g=mu(m.keyPressed,e)?d(M({},m,{keyPressed:qa(m.keyPressed,e)})):u(m);if(g==null){i(null);return}a({section:h,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})};function ws(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=S.useRef(t!==void 0),[a,l]=S.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
200
+ `))},[s,o,t]);const{current:d}=S.useRef(n);S.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
201
+ `))},[JSON.stringify(n)])}const u=S.useCallback(d=>{i||l(d)},[]);return[c,u]}const Su={};function Dw(e,t){const n=S.useRef(Su);return n.current===Su&&(n.current=e(t)),n}const Aw=[];function jw(e){S.useEffect(e,Aw)}class Ja{constructor(){U(this,"currentId",null);U(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});U(this,"disposeEffect",()=>this.clear)}static create(){return new Ja}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function us(){const e=Dw(Ja.create).current;return jw(e.disposeEffect),e}const ri=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,m=e.date(void 0,n),h=Rr(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&h(s,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(d&&e.isAfter(t,m)):return"disableFuture";case!!(u&&e.isBefore(t,m)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.getMinutes(t)%a!==0):return"minutesStep";default:return null}};ri.valueManager=jn;function Lf(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,a=nt(),l=S.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);S.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=ve(m=>n({adapter:a,value:m,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Nr=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:s,onChange:i,valueManager:a})=>{const l=nt(),[c,u]=ws({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=S.useMemo(()=>a.getTimezone(l,c),[l,a,c]),m=ve(f=>d==null?f:a.setTimezone(l,d,f)),h=S.useMemo(()=>t||d||(s?l.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,l]),p=S.useMemo(()=>a.setTimezone(l,h,c),[a,l,h,c]),g=ve((f,...y)=>{const x=m(f);u(x),i==null||i(x,...y)});return{value:p,handleValueChange:g,timezone:h}},Lw=5e3,Vw=e=>{var me;const t=nt(),n=Qt(),o=Dn(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:m,onChange:h,format:p,formatDensity:g="dense",selectedSections:f,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:w},forwardedProps:{error:T}}=e,{value:C,handleValueChange:I,timezone:E}=Nr({name:"a field component",timezone:w,value:u,defaultValue:d,referenceDate:m,onChange:h,valueManager:a}),N=S.useRef(C);S.useEffect(()=>{N.current=C},[C]);const{hasValidationError:R}=Lf({props:c,validator:s,timezone:E,value:C,onError:c.onError}),L=S.useMemo(()=>lw(t),[t]),V=S.useMemo(()=>fw(t,L,E),[t,L,E]),j=S.useCallback(re=>l.getSectionsFromValue(re,J=>xu({adapter:t,localeText:n,localizedDigits:L,format:p,date:J,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o})),[l,p,n,L,o,x,t,g]),[v,_]=S.useState(()=>{const re=j(C);bu(re,i);const J={sections:re,lastExternalValue:C,lastSectionsDependencies:{format:p,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ge=sw(re),ie=a.getInitialReferenceValue({referenceDate:m,value:C,adapter:t,props:c,granularity:ge,timezone:E});return M({},J,{referenceValue:ie})}),[O,P]=ws({controlled:f,default:null,name:"useField",state:"selectedSections"}),k=re=>{P(re),y==null||y(re)},D=S.useMemo(()=>ea(O,v.sections),[O,v.sections]),$=D==="all"?0:D,z=S.useMemo(()=>hw(v.sections),[v.sections]),A=S.useMemo(()=>v.sections.every(re=>re.value===""),[v.sections]),F=S.useMemo(()=>{if($!=null)return!1;const re=v.sections.filter(J=>J.value!=="");return re.length>0&&v.sections.length-re.length>0},[v.sections,$]),W=S.useMemo(()=>T!==void 0?T:R||F,[R,F,T]),K=re=>{const J={validationError:s({adapter:t,value:re,timezone:E,props:c})};I(re,J)},Z=(re,J)=>{const ge=[...v.sections];return ge[re]=M({},ge[re],{value:J,modified:!0}),ge},Y=S.useRef(null),X=us(),ne=re=>{$!=null&&(Y.current={sectionIndex:$,value:re},X.start(0,()=>{Y.current=null}))},q=()=>{a.areValuesEqual(t,C,a.emptyValue)?_(re=>M({},re,{sections:re.sections.map(J=>M({},J,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(_(re=>M({},re,{characterQuery:null})),K(a.emptyValue))},B=()=>{if($==null)return;const re=v.sections[$];re.value!==""&&(ne(""),l.getDateFromSection(C,re)===null?_(J=>M({},J,{sections:Z($,""),tempValueStrAndroid:null,characterQuery:null})):(_(J=>M({},J,{characterQuery:null})),K(l.updateDateInValue(C,re,null))))},H=re=>{const J=(ie,he)=>{const se=t.parse(ie,p);if(!t.isValid(se))return null;const Ie=xu({adapter:t,localeText:n,localizedDigits:L,format:p,date:se,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o});return vu(t,se,Ie,he,!1)},ge=l.parseValueStr(re,v.referenceValue,J);K(ge)},ae=us(),G=({section:re,newSectionValue:J,shouldGoToNextSection:ge})=>{X.clear(),ae.clear();const ie=l.getDateFromSection(C,re);ge&&$<v.sections.length-1&&k($+1);const he=Z($,J),se=l.getDateSectionsFromValue(he,re),Ie=dw(t,se,L);if(t.isValid(Ie)){const ke=vu(t,Ie,se,l.getDateFromSection(v.referenceValue,re),!0);return ie==null&&ae.start(0,()=>{N.current===C&&_(gt=>M({},gt,{sections:l.clearDateSections(v.sections,re),tempValueStrAndroid:null}))}),K(l.updateDateInValue(C,re,ke))}return se.every(ke=>ke.value!=="")&&(ie==null||t.isValid(ie))?(ne(J),K(l.updateDateInValue(C,re,Ie))):(ie!=null&&(ne(J),K(l.updateDateInValue(C,re,Ie))),_(ke=>M({},ke,{sections:he,tempValueStrAndroid:null})))},de=re=>_(J=>M({},J,{tempValueStrAndroid:re})),oe=ve(re=>{_(J=>M({},J,{characterQuery:re}))});if(C!==v.lastExternalValue){const re=Y.current!=null&&!t.isValid(l.getDateFromSection(C,v.sections[Y.current.sectionIndex]));let J;re?J=Z(Y.current.sectionIndex,Y.current.value):J=j(C),_(ge=>M({},ge,{lastExternalValue:C,sections:J,sectionsDependencies:{format:p,isRtl:o,locale:t.locale},referenceValue:re?ge.referenceValue:l.updateReferenceValue(t,C,ge.referenceValue),tempValueStrAndroid:null}))}if(o!==v.lastSectionsDependencies.isRtl||p!==v.lastSectionsDependencies.format||t.locale!==v.lastSectionsDependencies.locale){const re=j(C);bu(re,i),_(J=>M({},J,{lastSectionsDependencies:{format:p,isRtl:o,locale:t.locale},sections:re,tempValueStrAndroid:null,characterQuery:null}))}v.characterQuery!=null&&!W&&$==null&&oe(null),v.characterQuery!=null&&((me=v.sections[v.characterQuery.sectionIndex])==null?void 0:me.type)!==v.characterQuery.sectionType&&oe(null),S.useEffect(()=>{Y.current!=null&&(Y.current=null)});const ye=us();return S.useEffect(()=>(v.characterQuery!=null&&ye.start(Lw,()=>oe(null)),()=>{}),[v.characterQuery,oe,ye]),S.useEffect(()=>{v.tempValueStrAndroid!=null&&$!=null&&B()},[v.sections]),{activeSectionIndex:$,areAllSectionsEmpty:A,error:W,localizedDigits:L,parsedSelectedSections:D,sectionOrder:z,sectionsValueBoundaries:V,state:v,timezone:E,value:C,clearValue:q,clearActiveSection:B,setCharacterQuery:oe,setSelectedSections:k,setTempAndroidValueStr:de,updateSectionValue:G,updateValueFromValueStr:H,getSectionsFromValue:j}};function Fw(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=Ga(),i=Nw(),a=ht(n.fieldRef,o?null:i==null?void 0:i.internalFieldRef,o?null:i==null?void 0:i.fieldRef),l=s==null?void 0:s.setValue,c=S.useCallback((d,m)=>l==null?void 0:l(d,{validationError:m.validationError,shouldClose:!1}),[l]),u=S.useMemo(()=>i!=null&&s!=null?M({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,fieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function el(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:s}}=e;if(!n.isReady())return;const i=Io(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(ln(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():s.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function Bw(e){const{manager:{internal_fieldValueManager:t},focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,sectionOrder:d,state:m,value:h,activeSectionIndex:p,localizedDigits:g,timezone:f,clearValue:y,clearActiveSection:x,setCharacterQuery:w,setSelectedSections:T,updateValueFromValueStr:C,updateSectionValue:I},internalPropsWithDefaults:{disabled:E=!1,readOnly:N=!1,minutesStep:R}}=e,L=nt(),V=ve($=>{var z;if(!E)switch(!0){case(($.ctrlKey||$.metaKey)&&(((z=$.key)==null?void 0:z.toUpperCase())==="A"||String.fromCharCode($.keyCode)==="A")&&!$.shiftKey&&!$.altKey):{$.preventDefault(),T("all");break}case $.key==="ArrowRight":{if($.preventDefault(),c==null)T(d.startIndex);else if(c==="all")T(d.endIndex);else{const A=d.neighbors[c].rightIndex;A!==null&&T(A)}break}case $.key==="ArrowLeft":{if($.preventDefault(),c==null)T(d.endIndex);else if(c==="all")T(d.startIndex);else{const A=d.neighbors[c].leftIndex;A!==null&&T(A)}break}case $.key==="Delete":{if($.preventDefault(),N)break;c==null||c==="all"?y():x();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes($.key):{if($.preventDefault(),N||p==null)break;c==="all"&&T(p);const A=m.sections[p],F=Uw(L,f,A,$.key,u,g,t.getDateFromSection(h,A),{minutesStep:R});I({section:A,newSectionValue:F,shouldGoToNextSection:!1});break}}}),j=us(),v=ve(()=>{if(!(E||!s.isReady())){if(c==="all"){o(!0),j.start(0,()=>{const $=document.getSelection();if(!$||$.rangeCount===0){T(d.startIndex);return}const z=$.getRangeAt(0).startOffset;if(z===0){T(d.startIndex);return}let A=0,F=0;for(;F<z&&A<m.sections.length;){const W=m.sections[A];A+=1,F+=`${W.startSeparator}${W.value||W.placeholder}${W.endSeparator}`.length}T(A-1)});return}n||(o(!0),c==null&&T(d.startIndex))}}),_=ve($=>{if(E||!s.isReady()||c==="all"||$.button!==0)return;const z=$.target,A=s.getRoot();if(!A.contains(z))return;const F=z.closest("[data-sectionindex]"),W=F?Number(F.dataset.sectionindex):zw(A,$.clientX);W==null||!Number.isInteger(W)||($.preventDefault(),o(!0),T(W))}),O=ve($=>{if(!s.isReady()||c!=="all")return;const A=$.target.textContent??"";s.getRoot().innerHTML=m.sections.map(F=>`${F.startSeparator}${F.value||F.placeholder}${F.endSeparator}`).join(""),el({focused:n,domGetters:s,stateResponse:i}),A.length===0||A.charCodeAt(0)===10?(y(),T("all")):A.length>1?C(A):(c==="all"&&T(0),a({keyPressed:A,sectionIndex:0}))}),P=ve($=>{if(N||c!=="all"){$.preventDefault();return}const z=$.clipboardData.getData("text");$.preventDefault(),w(null),C(z)}),k=ve(()=>{if(n||E||!s.isReady())return;const $=ln(s.getRoot());o(!0),s.getSectionIndexFromDOMElement($)!=null||T(d.startIndex)}),D=ve(()=>{setTimeout(()=>{if(!s.isReady())return;const $=ln(s.getRoot());!s.getRoot().contains($)&&(o(!1),T(null))})});return{onKeyDown:V,onBlur:D,onFocus:k,onClick:v,onMouseDown:_,onPaste:P,onInput:O,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function zw(e,t){const n=e.querySelectorAll('[role="spinbutton"]');if(n.length===0)return null;let o=0,s=1/0;for(let i=0;i<n.length;i+=1){const a=n[i].getBoundingClientRect(),l=(a.left+a.right)/2,c=Math.abs(t-l);c<s&&(s=c,o=i)}return o}function Ww(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function Uw(e,t,n,o,s,i,a,l){const c=Ww(o),u=o==="Home",d=o==="End",m=n.value===""||u||d,h=()=>{const g=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),f=w=>kf(e,w,g,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let x;if(m){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=g.minimum:x=g.maximum}else x=parseInt(Kt(n.value,i),10)+c*y;return x%y!==0&&((c<0||u)&&(x+=y-(y+x)%y),(c>0||d)&&(x-=x%y)),x>g.maximum?f(g.minimum+(x-g.maximum-1)%(g.maximum-g.minimum+1)):x<g.minimum?f(g.maximum-(g.minimum-x-1)%(g.maximum-g.minimum+1)):f(x)},p=()=>{const g=_f(e,t,n.type,n.format);if(g.length===0)return n.value;if(m)return c>0||u?g[0]:g[g.length-1];const x=((g.indexOf(n.value)+c)%g.length+g.length)%g.length;return g[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():p()}function Hw(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=ve(l=>{s(l.target.value)});return{value:S.useMemo(()=>n?"":t.getHiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function qw(e){const{stateResponse:{parsedSelectedSections:t,setSelectedSections:n},internalPropsWithDefaults:{disabled:o=!1}}=e,s=ve(i=>{if(o||i.isDefaultPrevented())return;const a=Number(i.currentTarget.dataset.sectionindex);Number.isInteger(a)&&t!==a&&n(a)});return S.useCallback(i=>({"data-sectionindex":i,onClick:s}),[s])}function Yw(e){const t=nt(),n=Qt(),{focused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:m,localizedDigits:h,clearActiveSection:p,setCharacterQuery:g,setSelectedSections:f,updateSectionValue:y,updateValueFromValueStr:x},internalPropsWithDefaults:{disabled:w=!1,readOnly:T=!1}}=e,C=c==="all",I=!C&&!w&&!T,E=ve(v=>{if(!s.isReady())return;const _=d.sections[v];s.getSectionContent(v).innerHTML=_.value||_.placeholder,el({focused:o,domGetters:s,stateResponse:i})}),N=ve(v=>{if(!s.isReady())return;const _=v.target,O=_.textContent??"",P=s.getSectionIndexFromDOMElement(_),k=d.sections[P];if(T){E(P);return}if(O.length===0){if(k.value===""){E(P);return}const D=v.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){E(P);return}E(P),p();return}a({keyPressed:O,sectionIndex:P}),E(P)}),R=ve(v=>{v.preventDefault()}),L=ve(v=>{if(v.preventDefault(),T||w||typeof c!="number")return;const _=d.sections[c],O=v.clipboardData.getData("text"),P=/^[a-zA-Z]+$/.test(O),k=/^[0-9]+$/.test(O),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(O);_.contentType==="letter"&&P||_.contentType==="digit"&&k||_.contentType==="digit-with-letter"&&D?(g(null),y({section:_,newSectionValue:O,shouldGoToNextSection:!0})):!P&&!k&&(g(null),x(O))}),V=ve(v=>{v.preventDefault(),v.dataTransfer.dropEffect="none"}),j=S.useCallback(v=>()=>{w||f(v)},[w,f]);return S.useCallback((v,_)=>{const O=u[v.type]({currentDate:l.getDateFromSection(m,v),contentType:v.contentType,format:v.format});return{onInput:N,onPaste:L,onMouseUp:R,onDragOver:V,onFocus:j(_),"aria-readonly":T,"aria-valuenow":Kw(v,t,h),"aria-valuemin":O.minimum,"aria-valuemax":O.maximum,"aria-valuetext":v.value?Gw(v,t,h):n.empty,"aria-label":n[v.type],"aria-disabled":w,tabIndex:!I||C||_>0?-1:0,contentEditable:!C&&!w&&!T,role:"spinbutton","data-range-position":v.dateName||void 0,spellCheck:I?!1:void 0,autoCapitalize:I?"none":void 0,autoCorrect:I?"off":void 0,children:v.value||v.placeholder,inputMode:v.contentType==="letter"?"text":"numeric"}},[u,C,w,T,I,n,t,h,N,L,R,V,j,l,m])}function Gw(e,t,n){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const s=t.setMonth(t.date(),Number(Kt(e.value,n))-1);return t.isValid(s)?t.format(s,"month"):""}const o=t.parse(e.value,e.format);return o&&t.isValid(o)?t.format(o,"month"):void 0}case"day":if(e.contentType==="digit"){const o=t.setDate(t.startOfYear(t.date()),Number(Kt(e.value,n)));return t.isValid(o)?t.format(o,"dayOfMonth"):""}return e.value;case"weekDay":return;default:return}}function Kw(e,t,n){if(!e.value)return;const o=Kt(e.value,n);switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(o);case"meridiem":{const s=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return s?t.getHours(s)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(o,10):Number(o);case"month":{if(e.contentType==="digit")return Number(o);const s=t.parse(e.value,e.format);return s?t.getMonth(s)+1:void 0}default:return e.contentType!=="letter"?Number(o):void 0}}const Xw=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=ww(t,s);process.env.NODE_ENV!=="production"&&l.enableAccessibleFieldDOMStructure!=null&&fn(["MUI X: The `enableAccessibleFieldDOMStructure` prop has been removed.","The accessible DOM structure is now the default and only option.","You can safely remove the prop from your code.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v8/)."]);const c=Fw({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:m,onMouseDown:h,onFocus:p,onInput:g,onPaste:f,onKeyDown:y,onClear:x,clearable:w}=l,{disabled:T=!1,readOnly:C=!1,autoFocus:I=!1,focused:E,fieldRef:N}=c,R=S.useRef(null),L=ht(u,R),V=S.useMemo(()=>({isReady:()=>R.current!=null,getRoot:()=>R.current.getRoot(),getSectionContainer:J=>R.current.getSectionContainer(J),getSectionContent:J=>R.current.getSectionContent(J),getSectionIndexFromDOMElement:J=>R.current.getSectionIndexFromDOMElement(J)}),[R]),j=Vw({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:v,error:_,parsedSelectedSections:O,sectionOrder:P,state:k,value:D,clearValue:$,setSelectedSections:z}=j,A=$w({stateResponse:j}),F=i(D),[W,K]=S.useState(!1);function Z(J=0){if(T||!R.current||Cu(R)!=null)return;const ge=ea(J,k.sections);K(!0),R.current.getSectionContent(ge).focus()}const Y=Bw({manager:n,internalPropsWithDefaults:c,stateResponse:j,applyCharacterEditing:A,focused:W,setFocused:K,domGetters:V}),X=Hw({manager:n,stateResponse:j}),ne=qw({stateResponse:j,internalPropsWithDefaults:c}),q=Yw({manager:n,stateResponse:j,applyCharacterEditing:A,internalPropsWithDefaults:c,domGetters:V,focused:W}),B=ve(J=>{y==null||y(J),Y.onKeyDown(J)}),H=ve(J=>{Y.onBlur(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||d==null||d(J)}),ae=ve(J=>{Y.onFocus(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||p==null||p(J)}),G=ve(J=>{J.isDefaultPrevented()||(m==null||m(J),Y.onClick(J))}),de=ve(J=>{J.isDefaultPrevented()||(h==null||h(J),Y.onMouseDown(J))}),oe=ve(J=>{f==null||f(J),Y.onPaste(J)}),ye=ve(J=>{g==null||g(J),Y.onInput(J)}),me=ve((J,...ge)=>{J.preventDefault(),x==null||x(J,...ge),$(),Tu(R)?z(P.startIndex):Z(0)}),re=S.useMemo(()=>k.sections.map((J,ge)=>{const ie=q(J,ge);return{container:ne(ge),content:ie,before:{children:J.startSeparator},after:{children:J.endSeparator,"data-range-position":J.isEndFormatSeparator?ie["data-range-position"]:void 0}}}),[k.sections,ne,q]);return S.useEffect(()=>{if(R.current==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\nYou probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\n\nLearn 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":Oe(249));I&&!T&&R.current.getSectionContent(P.startIndex).focus()},[]),mn(()=>{if(!(!W||!R.current)){if(O==="all")R.current.getRoot().focus();else if(typeof O=="number"){const J=R.current.getSectionContent(O);J&&J.focus()}}},[O,W]),mn(()=>{el({focused:W,domGetters:V,stateResponse:j})}),S.useImperativeHandle(N,()=>({getSections:()=>k.sections,getActiveSectionIndex:()=>Cu(R),setSelectedSections:J=>{if(T||!R.current)return;const ge=ea(J,k.sections);K((ge==="all"?0:ge)!==null),z(J)},focusField:Z,isFieldFocused:()=>Tu(R),clearValue:$})),M({},l,Y,{onBlur:H,onClick:G,onMouseDown:de,onFocus:ae,onInput:ye,onPaste:oe,onKeyDown:B,onClear:me},X,{error:_,clearable:!!(w&&!v&&!C&&!T),focused:E??W,sectionListRef:L,elements:re,areAllSectionsEmpty:v,disabled:T,readOnly:C,autoFocus:I,openPickerAriaLabel:F})};function Cu(e){var n;const t=ln((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function Tu(e){var n;const t=ln((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const tl=e=>{const t=nt(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Qw(e={}){const{ampm:t}=e;return S.useMemo(()=>({valueType:"time",validator:ri,internal_valueManager:jn,internal_fieldValueManager:bw,internal_useApplyDefaultValuesToFieldInternalProps:Jw,internal_useOpenPickerButtonAriaLabel:Zw(t)}),[t])}function Zw(e){return function(n){const o=nt(),s=Qt();return S.useMemo(()=>{const i=e??o.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=o.isValid(n)?o.format(n,i):null;return s.openTimePickerDialogue(a)},[n,s,o])}}function Jw(e){const t=nt(),n=Vf(e),o=S.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return S.useMemo(()=>M({},e,n,{format:e.format??(o?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,o,t])}function Vf(e){return S.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}const e0=e=>{const t=Qw(e);return Xw({manager:t,props:e})};function t0(e){return _e("MuiIconButton",e)}const wu=Te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),n0=e=>{const{classes:t,disabled:n,color:o,edge:s,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${le(o)}`,s&&`edge${le(s)}`,`size${le(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return De(l,t0,t)},o0=te(Zn,{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)}`]]}})(Xe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(mt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(mt()).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)}}],[`&.${wu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${wu.loading}`]:{color:"transparent"}}))),r0=te("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"}}]})),Jn=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:p,...g}=o,f=ja(m),y=p??b.jsx(Zs,{"aria-labelledby":f,color:"inherit",size:16}),x={...o,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:y,size:d},w=n0(x);return b.jsxs(o0,{id:h?f:m,className:ce(w.root,a),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...g,ownerState:x,children:[typeof h=="boolean"&&b.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:b.jsx(r0,{className:w.loadingIndicator,ownerState:x,children:h&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Jn.propTypes={children:An(r.node,e=>S.Children.toArray(e.children).some(n=>S.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
202
+ `)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),id:r.string,loading:r.bool,loadingIndicator:r.node,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const si=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(si.displayName="FormControlContext");function oo(){return S.useContext(si)}function s0(e){return _e("MuiInputAdornment",e)}const Iu=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Eu;const i0=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},a0=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${le(s)}`,a,o&&"hiddenLabel",i&&`size${le(i)}`]};return De(l,s0,t)},l0=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:i0})(Xe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Iu.positionStart}&:not(.${Iu.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Ff=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...m}=o,h=oo()||{};let p=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!p&&(p=h.variant);const g={...o,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:p},f=a0(g);return b.jsx(si.Provider,{value:null,children:b.jsx(l0,{as:a,ownerState:g,className:ce(f.root,i),ref:n,...m,children:typeof s=="string"&&!c?b.jsx(no,{color:"textSecondary",children:s}):b.jsxs(S.Fragment,{children:[u==="start"?Eu||(Eu=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(Ff.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function c0(e){return typeof e=="string"}function u0(e,t,n){return e===void 0||c0(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function d0(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function p0(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))d0(n,e[n])&&(t[n]=e[n]);return t}function Ou(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 f0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=p0({...s,...o}),l=Ou(o),c=Ou(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function We(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Ro(n,o),{props:l,internalRef:c}=f0({...i,externalSlotProps:a}),u=ht(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return u0(t,{...l,ref:u},o)}const dt=()=>S.useContext(Za);function nl(e){const{ownerState:t}=dt(),n=Dn();return S.useMemo(()=>M({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}rt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const m0=rt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),h0=rt(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");rt(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");const g0=rt(b.jsxs(S.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");rt(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");rt(b.jsxs(S.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const b0=rt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function tt(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}let _u=0;function y0(e){const[t,n]=S.useState(e),o=e||t;return S.useEffect(()=>{t==null&&(_u+=1,n(`mui-${_u}`))},[t]),o}const v0={...S},ku=v0.useId;function ol(e){if(ku!==void 0){const t=ku();return e??t}return y0(e)}function rl({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}function x0(e){return _e("MuiFormLabel",e)}const ar=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),S0=e=>{const{classes:t,color:n,focused:o,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${le(n)}`,s&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return De(c,x0,t)},C0=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(mt()).map(([t])=>({props:{color:t},style:{[`&.${ar.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ar.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ar.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),T0=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${ar.error}`]:{color:(e.vars||e).palette.error.main}}))),Bf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:m,required:h,...p}=o,g=oo(),f=rl({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=S0(y);return b.jsxs(C0,{as:l,ownerState:y,className:ce(x.root,i),ref:n,...p,children:[s,f.required&&b.jsxs(T0,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Bf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function w0(e){return _e("MuiInputLabel",e)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const I0=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",o&&o!=="medium"&&`size${le(o)}`,a],asterisk:[l&&"asterisk"]},u=De(c,w0,t);return{...t,...u}},E0=te(Bf,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ar.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Xe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),zf=S.forwardRef(function(t,n){const o=Ue({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=oo();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=rl({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),p={...o,disableAnimation:s,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=I0(p);return b.jsx(E0,{"data-shrink":m,ref:n,className:ce(g.root,c),...u,ownerState:p,classes:g})});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function O0(e){return _e("MuiFormHelperText",e)}const Pu=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ru;const _0=e=>{const{classes:t,contained:n,size:o,disabled:s,error:i,filled:a,focused:l,required:c}=e,u={root:["root",s&&"disabled",i&&"error",o&&`size${le(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return De(u,O0,t)},k0=te("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]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Pu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pu.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}}]}))),Wf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:m,required:h,variant:p,...g}=o,f=oo(),y=rl({props:o,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const w=_0(x);return b.jsx(k0,{as:a,className:ce(w.root,i),ref:n,...g,ownerState:x,children:s===" "?Ru||(Ru=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(Wf.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function Nu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mu(e,t=!1){return e&&(Nu(e.value)&&e.value!==""||t&&Nu(e.defaultValue)&&e.defaultValue!=="")}function P0(e){return e.startAdornment}function R0(e){return _e("MuiFormControl",e)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const N0=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${le(n)}`,o&&"fullWidth"]};return De(s,R0,t)},M0=te("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%"}}]}),Uf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:p="none",required:g=!1,size:f="medium",variant:y="outlined",...x}=o,w={...o,color:a,component:l,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:p,required:g,size:f,variant:y},T=N0(w),[C,I]=S.useState(()=>{let k=!1;return s&&S.Children.forEach(s,D=>{if(!To(D,["Input","Select"]))return;const $=To(D,["Select"])?D.props.input:D;$&&P0($.props)&&(k=!0)}),k}),[E,N]=S.useState(()=>{let k=!1;return s&&S.Children.forEach(s,D=>{To(D,["Input","Select"])&&(Mu(D.props,!0)||Mu(D.props.inputProps,!0))&&(k=!0)}),k}),[R,L]=S.useState(!1);c&&R&&L(!1);const V=d!==void 0&&!c?d:R;let j;const v=S.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(v.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
203
+ `)),v.current=!0,()=>{v.current=!1}));const _=S.useCallback(()=>{N(!0)},[]),O=S.useCallback(()=>{N(!1)},[]),P=S.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:a,disabled:c,error:u,filled:E,focused:V,fullWidth:m,hiddenLabel:h,size:f,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:O,onFilled:_,registerEffect:j,required:g,variant:y}),[C,a,c,u,E,V,m,h,j,O,_,g,f,y]);return b.jsx(si.Provider,{value:P,children:b.jsx(M0,{as:l,ownerState:w,className:ce(T.root,i),ref:n,...x,children:s})})});process.env.NODE_ENV!=="production"&&(Uf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});const $u=e=>e,$0=()=>{let e=$u;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$u}}},D0=$0(),A0={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 ot(e,t,n="Mui"){const o=A0[t];return o?`${n}-${o}`:`${D0.generate(e)}-${t}`}function st(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=ot(e,s,n)}),o}function j0(e){return ot("MuiPickersTextField",e)}st("MuiPickersTextField",["root","focused","disabled","error","required"]);function L0(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function V0(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":L0(7));return e.charAt(0).toUpperCase()+e.slice(1)}const F0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function B0(e){return ot("MuiPickersInputBase",e)}const On=st("MuiPickersInputBase",["root","focused","disabled","readOnly","error","notchedOutline","sectionsContainer","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function z0(e){return ot("MuiPickersSectionList",e)}const yo=st("MuiPickersSectionList",["root","section","sectionContent"]),W0=["slots","slotProps","elements","sectionListRef","classes"],Hf=te("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),qf=te("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Yf=te("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Gf=te("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),U0=e=>tt({root:["root"],section:["section"],sectionContent:["sectionContent"]},z0,e);function Kf(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=dt(),a=(t==null?void 0:t.section)??qf,l=We({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??Gf,u=We({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??Yf,m=We({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:M({},i,{separatorPosition:"before"})}),h=We({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:M({},i,{separatorPosition:"after"})}),p=S.useRef(null),g=ht(u.ref,p),f=y=>{const x=y.relatedTarget,w=y.currentTarget.closest(`.${yo.root}`);if(w&&x instanceof Node&&w.contains(x)){y.stopPropagation();return}};return b.jsxs(a,M({},l,{children:[b.jsx(d,M({},m)),b.jsx(c,M({},u,{ref:g,onBlur:f})),b.jsx(d,M({},h))]}))}process.env.NODE_ENV!=="production"&&(Kf.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const sl=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=xe(o,W0),d=U0(c),{ownerState:m}=dt(),h=S.useRef(null),p=ht(n,h),g=x=>{if(!h.current)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`:Oe(145,x));return h.current};S.useImperativeHandle(l,()=>({getRoot(){return g("getRoot")},getSectionContainer(x){return g("getSectionContainer").querySelector(`.${yo.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return g("getSectionContent").querySelector(`.${yo.section}[data-sectionindex="${x}"] .${yo.sectionContent}`)},getSectionIndexFromDOMElement(x){const w=g("getSectionIndexFromDOMElement");if(x==null||!w.contains(x))return null;let T=null;return x.classList.contains(yo.section)?T=x:x.classList.contains(yo.sectionContent)&&(T=x.parentElement),T==null?null:Number(T.dataset.sectionindex)}}));const f=(s==null?void 0:s.root)??Hf,y=We({elementType:f,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:d.root,ownerState:m});return b.jsx(f,M({},y,{children:y.contentEditable?a.map(({content:x,before:w,after:T})=>`${w.children}${x.children}${T.children}`).join(""):b.jsx(S.Fragment,{children:a.map((x,w)=>b.jsx(Kf,{slots:s,slotProps:i,element:x,classes:d},w))})}))});process.env.NODE_ENV!=="production"&&(sl.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(sl.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const il=S.createContext(null);process.env.NODE_ENV!=="production"&&(il.displayName="PickerTextFieldOwnerStateContext");const ii=()=>{const e=S.useContext(il);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component":Oe(146));return e},H0=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],q0=["ref"];function Y0(e,t){return n=>{const o=Ro(e,n)??{};return M({},o,{className:ce(t,o.className)})}}const G0=e=>Math.round(e*1e5)/1e5,ai=te("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>M({},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:`${G0(.15/16)}em`,[`&.${On.disabled}`]:{color:(e.vars||e).palette.action.disabled,cursor:"default"},variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),al=te(Hf,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0,hasStartAdornment:!1,inputHasLabel:!0,isLabelShrunk:!1},style:{opacity:0}}]})),K0=te(qf,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),X0=te(Gf,{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","@supports (-webkit-app-region: drag)":{[`.${On.root}:not(:focus-within) &`]:{WebkitUserModify:"read-only",userSelect:"none"}}})),Q0=te(Yf,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Z0=te("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(M({},F0)),J0=te("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),eI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,m={root:["root",n&&!o&&"focused",o&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${V0(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return tt(m,B0,e)};function Du(e,t,n,o){var s;if(e.content["data-range-position"]!==void 0){const i=(s=t.current)==null?void 0:s.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function tI(e,t){var s,i,a,l,c;let n=0;if(((s=t.current)==null?void 0:s.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Du(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Du(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const Mr=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:m,slots:h,slotProps:p,contentEditable:g,tabIndex:f,onInput:y,onPaste:x,onKeyDown:w,name:T,readOnly:C,inputRef:I,sectionListRef:E,onFocus:N,onBlur:R,classes:L,ownerState:V}=o,j=xe(o,H0),v=ii(),_=S.useRef(null),O=S.useRef(null),P=S.useRef([]),k=ht(n,_),D=oo();if(!D)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: PickersInputBase should always be used inside a PickersTextField component":Oe(152));const $=V??v,z=de=>{var oe;(oe=D.onFocus)==null||oe.call(D,de),N==null||N(de)},A=de=>{z(de)},F=de=>{var oe,ye;if(w==null||w(de),de.key==="Enter"&&!de.defaultMuiPrevented){if((oe=_.current)!=null&&oe.dataset.multiInput)return;const me=(ye=_.current)==null?void 0:ye.closest("form"),re=me==null?void 0:me.querySelector('[type="submit"]');if(!me||!re)return;de.preventDefault(),me.requestSubmit(re)}},W=de=>{var oe;(oe=D.onBlur)==null||oe.call(D,de),R==null||R(de)};S.useEffect(()=>{D&&D.setAdornedStart(!!d)},[D,d]),S.useEffect(()=>{D&&(i?D.onEmpty():D.onFilled())},[D,i]);const K=eI(L,$),Z=(h==null?void 0:h.root)||ai,Y=We({elementType:Z,externalSlotProps:p==null?void 0:p.root,externalForwardedProps:j,additionalProps:{"aria-invalid":D.error,ref:k},className:K.root,ownerState:$}),X=(h==null?void 0:h.input)||al,ne=(h==null?void 0:h.htmlInput)||Z0,q=We({elementType:ne,externalSlotProps:p==null?void 0:p.htmlInput,ownerState:$}),{ref:B}=q,H=xe(q,q0),ae=ht(B,I),G=s.some(de=>de.content["data-range-position"]!==void 0);return S.useEffect(()=>{if(!G||!$.isPickerOpen)return;const{activeBarWidth:de,sectionOffsets:oe}=tI(s,_);P.current=[oe[0],oe[1]],O.current&&(O.current.style.width=`${de}px`)},[s,G,$.isPickerOpen]),b.jsxs(Z,M({},Y,{children:[d,b.jsx(sl,{sectionListRef:E,elements:s,contentEditable:g,tabIndex:f,className:K.sectionsContainer,onFocus:z,onBlur:W,onInput:y,onPaste:x,onKeyDown:F,slots:{root:X,section:K0,sectionContent:X0,sectionSeparator:Q0},slotProps:{root:M({},p==null?void 0:p.input,{ownerState:$}),sectionContent:Y0(p==null?void 0:p.sectionContent,On.sectionContent),sectionSeparator:({separatorPosition:de})=>({className:de==="before"?On.sectionBefore:On.sectionAfter})}}),u,m?m(M({},D)):null,b.jsx(ne,M({name:T,className:K.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:D.required,disabled:D.disabled,onFocus:A},H,{ref:ae})),G&&b.jsx(J0,{className:K.activeBar,ref:O,ownerState:{sectionOffsets:P.current}})]}))});process.env.NODE_ENV!=="production"&&(Mr.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Mr.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function nI(e){return ot("MuiPickersOutlinedInput",e)}const Lt=M({},On,st("MuiPickersOutlinedInput",["root","notchedOutline","input"])),oI=["children","className","label","notched","shrink"],rI=te("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}}),Au=te("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),sI=te("legend",{slot:"internal",shouldForwardProp:e=>Ft(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function iI(e){const{className:t,label:n,notched:o}=e,s=xe(e,oI),i=ii();return b.jsx(rI,M({"aria-hidden":!0,className:t},s,{ownerState:i,children:b.jsx(sI,{ownerState:i,notched:o,children:n?b.jsx(Au,{children:n}):b.jsx(Au,{className:"notranslate",children:"​"})})}))}const aI=["label","autoFocus","ownerState","classes","notched","slots","slotProps"],lI=te(ai,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Lt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Lt.focused} .${Lt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Lt.error} .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Lt.disabled}`]:{[`& .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${Lt.focused}:not(.${Lt.error}) .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),cI=te(al,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),uI=e=>{const n=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nI,e);return M({},e,n)},li=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a,slots:l,slotProps:c}=o,u=xe(o,aI),d=oo(),m=uI(i);return b.jsx(Mr,M({},u,{slots:M({root:lI,input:cI},l),slotProps:c,renderSuffix:h=>{const p=typeof a<"u"?a:!!(h.adornedStart||h.focused||h.filled);return b.jsx(iI,{shrink:p,notched:p,className:m.notchedOutline,label:s!=null&&s!==""&&(d!=null&&d.required)?b.jsxs(S.Fragment,{children:[s," ","*"]}):s})},label:s,classes:m,ref:n}))});process.env.NODE_ENV!=="production"&&(li.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(li.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});li.muiName="Input";function dI(e){return ot("MuiPickersFilledInput",e)}const Wn=M({},On,st("MuiPickersFilledInput",["root","underline","input"])),pI=["label","autoFocus","disableUnderline","hiddenLabel","classes","slots","slotProps"],fI=te(ai,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Wn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Wn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?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(.${Wn.disabled}, .${Wn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),mI=te(al,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ft(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),hI=(e,t)=>{const{inputHasUnderline:n}=t,s=tt({root:["root",n&&"underline"],input:["input"]},dI,e);return M({},e,s)},ci=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l,slots:c,slotProps:u}=o,d=xe(o,pI),m=ii(),h=M({},m,{inputHasUnderline:!i}),p=hI(l,h);return b.jsx(Mr,M({},d,{slots:M({root:fI,input:mI},c),slotProps:M({},u,{root:M({disableUnderline:i},u==null?void 0:u.root),input:M({hiddenLabel:a},u==null?void 0:u.input)}),label:s,classes:p,ref:n,ownerState:h}))});process.env.NODE_ENV!=="production"&&(ci.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(ci.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});ci.muiName="Input";function gI(e){return ot("MuiPickersFilledInput",e)}const Go=M({},On,st("MuiPickersInput",["root","underline","input"])),bI=["label","autoFocus","disableUnderline","ownerState","classes","slots","slotProps"],yI=te(ai,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Go.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Go.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(.${Go.disabled}, .${Go.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Go.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),vI=(e,t)=>{const{inputHasUnderline:n}=t,s=tt({root:["root",!n&&"underline"],input:["input"]},gI,e);return M({},e,s)},ui=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a,slots:l,slotProps:c}=o,u=xe(o,bI),d=ii(),m=M({},d,{inputHasUnderline:!i}),h=vI(a,m);return b.jsx(Mr,M({},u,{slots:M({root:yI},l),slotProps:M({},c,{root:M({disableUnderline:i},c==null?void 0:c.root)}),ownerState:m,label:s,classes:h,ref:n}))});process.env.NODE_ENV!=="production"&&(ui.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(ui.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});ui.muiName="Input";const xI=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onMouseDown","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","label","slots","slotProps","data-active-range-position"],SI={standard:ui,filled:ci,outlined:li},CI=te(Uf,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),TI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return tt({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},j0,e)},di=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersTextField"});if(process.env.NODE_ENV!=="production"){const ie=t;(ie.InputProps||ie.inputProps||ie.InputLabelProps||ie.FormHelperTextProps)&&fn(["MUI X: `PickersTextField` no longer supports the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They are silently dropped, which can hide configuration bugs in JavaScript codebases that do not benefit from TypeScript checks.","Use `slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel` and `slotProps.formHelperText` instead.","You can run the `migrate-text-field-props` codemod to migrate automatically."])}const{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:m="outlined",required:h=!1,hiddenLabel:p=!1,inputRef:g,sectionListRef:f,elements:y,areAllSectionsEmpty:x,onClick:w,onMouseDown:T,onKeyDown:C,onKeyUp:I,onPaste:E,onInput:N,endAdornment:R,startAdornment:L,tabIndex:V,contentEditable:j,focused:v,value:_,onChange:O,fullWidth:P,id:k,name:D,helperText:$,label:z,slots:A,slotProps:F,"data-active-range-position":W}=o,K=xe(o,xI),Z=S.useRef(null),Y=ht(n,Z),X=ol(k),ne=$&&X?`${X}-helper-text`:void 0,q=z&&X?`${X}-label`:void 0,B=F==null?void 0:F.input,H=F==null?void 0:F.inputLabel,ae=nl({disabled:o.disabled,required:o.required,readOnly:B==null?void 0:B.readOnly}),G=S.useMemo(()=>M({},ae,{isFieldValueEmpty:x,isFieldFocused:v??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:P??!1,hasStartAdornment:!!(L??(B==null?void 0:B.startAdornment)),hasEndAdornment:!!(R??(B==null?void 0:B.endAdornment)),inputHasLabel:!!z,isLabelShrunk:!!(H!=null&&H.shrink)}),[ae,x,v,d,o.size,c,P,L,R,B==null?void 0:B.startAdornment,B==null?void 0:B.endAdornment,z,H==null?void 0:H.shrink]),de=TI(l,G),oe=(A==null?void 0:A.input)??SI[m],ye=(A==null?void 0:A.root)??CI,me=(A==null?void 0:A.inputLabel)??zf,re=(A==null?void 0:A.formHelperText)??Wf,J={};m==="outlined"?(H&&typeof H.shrink<"u"&&(J.notched=H.shrink),J.label=z):m==="filled"&&(J.hiddenLabel=p);const ge=We({elementType:ye,externalSlotProps:F==null?void 0:F.root,externalForwardedProps:M({},K,{className:a}),additionalProps:{ref:Y,focused:v,disabled:u,variant:m,error:d,color:c,fullWidth:P,required:h},className:de.root,ownerState:G});return b.jsx(il.Provider,{value:G,children:b.jsxs(ye,M({},ge,{children:[z!=null&&z!==""&&b.jsx(me,M({htmlFor:X,id:q},H,{children:z})),b.jsx(oe,M({elements:y,areAllSectionsEmpty:x,onClick:w,onMouseDown:T,onKeyDown:C,onKeyUp:I,onInput:N,onPaste:E,onFocus:s,onBlur:i,endAdornment:R,startAdornment:L,tabIndex:V,contentEditable:j,value:_,onChange:O,id:X,fullWidth:P,inputRef:g,sectionListRef:f,label:z,name:D,role:"group","aria-labelledby":q,"aria-describedby":ne,"aria-live":ne?"polite":void 0,"data-active-range-position":W},J,B,{slots:M({},B==null?void 0:B.slots,(A==null?void 0:A.htmlInput)!==void 0&&{htmlInput:A.htmlInput}),slotProps:M({},B==null?void 0:B.slotProps,(F==null?void 0:F.htmlInput)!==void 0&&{htmlInput:F.htmlInput})})),$&&b.jsx(re,M({id:ne},F==null?void 0:F.formHelperText,{children:$}))]}))})});process.env.NODE_ENV!=="production"&&(di.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(di.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const wI=["readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel","InputProps","inputProps","InputLabelProps","FormHelperTextProps"],II=["ownerState"],EI=["ownerState"],OI=["ownerState"],_I=["ownerState"],kI=["InputProps","inputProps","InputLabelProps","FormHelperTextProps"],PI=e=>{var p;const t=e,{readOnly:n,onClear:o,clearable:s,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=t,h=xe(t,wI);return process.env.NODE_ENV!=="production"&&(c||u||d||m)&&fn(["MUI X: The `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props are no longer supported on Picker / Field components.","They have been silently dropped because they would otherwise be forwarded as unknown attributes on the underlying form control.","Use the `slotProps` shape instead (`slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel`, `slotProps.formHelperText`).","See https://mui.com/x/migration/migration-pickers-v8/#textfield-props for migration details."]),{clearable:s,onClear:o,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,textFieldProps:M({},h,{slotProps:M({},h==null?void 0:h.slotProps,{input:M({},(p=h==null?void 0:h.slotProps)==null?void 0:p.input,{readOnly:n})})})}},pi=S.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(pi.displayName="PickerFieldUIContext");function RI(e){var A;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=Qt(),s=Ga(),i=S.useContext(pi),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:m="end"}=PI(t),h=nl(a),p=ve(F=>{F.preventDefault(),s==null||s.setOpen(!0)}),g=s?s.triggerStatus:"hidden",f=c?d:null,y=g!=="hidden"?m:null,x=i.slots.textField??di,w=i.slots.inputAdornment??Ff,T=We({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:M({},h,{position:"start"})}),C=xe(T,II),I=We({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:M({},h,{position:"end"})}),E=xe(I,EI),N=i.slots.openPickerButton??Jn,R=We({elementType:N,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:g==="disabled",onClick:p,"aria-label":u,"data-mui-picker-open-button":"true",edge:a.variant!=="standard"?y:!1},ownerState:h}),L=xe(R,OI),V=i.slots.openPickerIcon??n,j=We({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:h}),v=i.slots.clearButton??Jn,_=We({elementType:v,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&f!==y?f:!1},ownerState:h}),O=xe(_,_I),P=i.slots.clearIcon??b0,k=We({elementType:P,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});a.ref=ht(a.ref,s==null?void 0:s.rootRef);const D=(A=a.slotProps)==null?void 0:A.input,$={},z=ht(D==null?void 0:D.ref,s==null?void 0:s.triggerRef);return s&&($.ref=z),!(D!=null&&D.startAdornment)&&(f==="start"||y==="start")&&($.startAdornment=b.jsxs(w,M({},C,{children:[y==="start"&&b.jsx(N,M({},L,{children:b.jsx(V,M({},j))})),f==="start"&&b.jsx(v,M({},O,{children:b.jsx(P,M({},k))}))]}))),!(D!=null&&D.endAdornment)&&(f==="end"||y==="end")&&($.endAdornment=b.jsxs(w,M({},E,{children:[f==="end"&&b.jsx(v,M({},O,{children:b.jsx(P,M({},k))})),y==="end"&&b.jsx(N,M({},L,{children:b.jsx(V,M({},j))}))]}))),!$.endAdornment&&!$.startAdornment&&i.slots.inputAdornment&&($.endAdornment=b.jsx(w,M({},E))),f!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]),a.slotProps=M({},a.slotProps,{input:M({},D,$)}),b.jsx(x,M({},a))}function NI(e,t){return e?t?n=>M({},Ro(t,n),Ro(e,n)):e:t}function MI(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=S.useContext(pi),i=Ga(),a=nl(n),l=n??{},{InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=l,h=xe(l,kI);process.env.NODE_ENV!=="production"&&(c||u||d||m)&&fn(["MUI X: Field components no longer accept the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They have been dropped to avoid leaking unknown attributes onto the underlying form control.","Use the nested `slotProps.textField.slotProps.{input,htmlInput,inputLabel,formHelperText}` shape instead."]);const p=We({elementType:di,externalSlotProps:NI(s.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:h,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:s.inputRef},ownerState:a});if(i&&i.keepOpenDuringFieldFocus&&i.triggerStatus==="enabled"&&!i.open&&!i.readOnly&&!i.disabled){const g=p.onFocus,f=p.onMouseDown,y=x=>{var I;const w=x.nativeEvent??x,T=(I=w==null?void 0:w.composedPath)==null?void 0:I.call(w);if(Array.isArray(T)){for(const E of T)if(E&&E.getAttribute&&E.getAttribute("data-mui-picker-open-button")==="true")return!0}const C=x.target;return C&&C.closest?!!C.closest('[data-mui-picker-open-button="true"]'):!1};p.onFocus=x=>{g==null||g(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)},p.onMouseDown=x=>{f==null||f(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)}}return p}function $I(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=S.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(pi.Provider,{value:i,children:s})}const DI=["slots","slotProps"],fi=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=o,a=xe(o,DI),l=MI({slotProps:i,ref:n,externalForwardedProps:a}),c=e0(l);return b.jsx($I,{slots:s,slotProps:i,inputRef:a.inputRef,children:b.jsx(RI,{fieldResponse:c,defaultOpenPickerIcon:g0})})});process.env.NODE_ENV!=="production"&&(fi.displayName="TimeField");process.env.NODE_ENV!=="production"&&(fi.propTypes={ampm:r.bool,areAllSectionsEmpty:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,endAdornment:r.node,error:r.bool,fieldRef:r.oneOfType([r.func,r.object]),focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onClick:r.func,onError:r.func,onFocus:r.func,onInput:r.func,onKeyDown:r.func,onMouseDown:r.func,onPaste:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function AI(e){return ot("MuiPickersToolbarText",e)}st("MuiPickersToolbarText",["root"]);const jI=["className","classes","selected","value"],LI=e=>tt({root:["root"]},AI,e),VI=te(no,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),ll=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=o,c=xe(o,jI),u=LI(i);return b.jsx(VI,M({ref:n,className:ce(u.root,s),component:"span",ownerState:o},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(ll.displayName="PickersToolbarText");function Xf(e){return ot("MuiPickersToolbar",e)}st("MuiPickersToolbar",["root","title","content"]);const FI=["align","className","classes","selected","typographyClassName","value","variant","width"],BI=e=>tt({root:["root"]},Xf,e),zI=te(on,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),vo=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:m}=o,h=xe(o,FI),p=BI(a);return b.jsx(zI,M({variant:"text",ref:n,className:ce(p.root,i),ownerState:o},m?{sx:{width:m}}:{},h,{children:b.jsx(ll,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(vo.displayName="PickersToolbarButton");function Qf(){const{ownerState:e}=dt(),t=Dn();return S.useMemo(()=>M({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const WI=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],UI=e=>tt({root:["root"],title:["title"],content:["content"]},Xf,e),HI=te("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),qI=te("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Ft(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Zf=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,m=xe(o,WI),h=Qf(),p=UI(a);return c?null:b.jsxs(HI,M({ref:n,className:ce(p.root,i),ownerState:h},m,{children:[b.jsx(no,{variant:"overline",id:u,className:p.title,sx:{color:"text.secondary"},children:l}),b.jsx(qI,{className:p.content,ownerState:h,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(Zf.displayName="PickersToolbar");function cl(e,t,n,o){const s=nt(),i=S.useMemo(()=>s.isValid(e)?e:null,[s,e]),a=rw(i,s),l=S.useCallback(c=>{const u=i==null?null:Ef(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:a,handleMeridiemChange:l}}function YI(e){return ot("MuiTimePickerToolbar",e)}const lr=st("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),GI=["ampm","ampmInClock","className","classes"],KI=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return tt({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},YI,e)},XI=te(Zf,{name:"MuiTimePickerToolbar",slot:"Root"})({}),QI=te(ll,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),ZI=te("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${lr.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${lr.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),JI=te("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${lr.ampmLabel}`]:t.ampmLabel},{[`&.${lr.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${lr.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function Jf(e){const t=ze({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,className:s,classes:i}=t,a=xe(t,GI),l=nt(),c=Qt(),u=Qf(),d=KI(i,u),{value:m,setValue:h,disabled:p,readOnly:g,view:f,setView:y,views:x}=zo(),w=!!(n&&!o&&x.includes("hours")),{meridiemMode:T,handleMeridiemChange:C}=cl(m,n,N=>h(N,{changeImportance:"set",source:"view"})),I=N=>l.isValid(m)?l.format(m,N):"--",E=b.jsx(QI,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return b.jsxs(XI,M({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:ce(d.root,s)},a,{children:[b.jsxs(ZI,{className:d.hourMinuteLabel,ownerState:u,children:[bo(x,"hours")&&b.jsx(vo,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:f==="hours",value:I(n?"hours12h":"hours24h")}),bo(x,["hours","minutes"])&&E,bo(x,"minutes")&&b.jsx(vo,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:f==="minutes",value:I("minutes")}),bo(x,["minutes","seconds"])&&E,bo(x,"seconds")&&b.jsx(vo,{variant:"h3",onClick:()=>y("seconds"),selected:f==="seconds",value:I("seconds")})]}),w&&b.jsxs(JI,{className:d.ampmSelection,ownerState:u,children:[b.jsx(vo,{disableRipple:!0,variant:"subtitle2",selected:T==="am",typographyClassName:d.ampmLabel,value:En(l,"am"),onClick:g?void 0:()=>C("am"),disabled:p}),b.jsx(vo,{disableRipple:!0,variant:"subtitle2",selected:T==="pm",typographyClassName:d.ampmLabel,value:En(l,"pm"),onClick:g?void 0:()=>C("pm"),disabled:p})]})]}))}process.env.NODE_ENV!=="production"&&(Jf.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node});function em(e,t){var l;const n=nt(),o=ze({props:e,name:t}),s=Vf(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=S.useMemo(()=>{var c;return((c=o.localeText)==null?void 0:c.toolbarTitle)==null?o.localeText:M({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return M({},o,s,{ampm:i,localeText:a},JT({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:M({toolbar:Jf},o.slots),slotProps:M({},o.slotProps,{toolbar:M({ampm:i,ampmInClock:o.ampmInClock},(l=o.slotProps)==null?void 0:l.toolbar)})})}function eE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function tm(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!eE(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const $r=An(r.element,tm);$r.isRequired=An(r.element.isRequired,tm);function mi(e){var t;return parseInt(S.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const nm=e=>e.scrollTop;function lt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function om(e,t,n,o,s,i){const a=e==="exited"&&!t?o:n[e]||n.exited;return s||i?{...a,...s,...i}:a}function Mo(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function cr(e){return`scale(${e}, ${e**2})`}const tE={entering:{opacity:1,transform:cr(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:cr(.75)},exited:{opacity:0,transform:cr(.75)}},nE={opacity:0,transform:cr(.75),visibility:"hidden"},Is=S.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:p,style:g,timeout:f="auto",...y}=t,x=Wa(),w=S.useRef(),T=Pr(),C=S.useRef(null),I=ut(C,mi(i),n),E=lt(C,d),N=lt(C,(_,O)=>{nm(_);const{duration:P,delay:k,easing:D}=Mo({style:g,timeout:f,easing:a},{mode:"enter"});let $;f==="auto"?($=T.transitions.getAutoHeightDuration(_.clientHeight),w.current=$):$=P,_.style.transition=[T.transitions.create("opacity",{duration:$,delay:k}),T.transitions.create("transform",{duration:$*.666,delay:k,easing:D})].join(","),c&&c(_,O)}),R=lt(C,u),L=lt(C,p),V=lt(C,_=>{const{duration:O,delay:P,easing:k}=Mo({style:g,timeout:f,easing:a},{mode:"exit"});let D;f==="auto"?(D=T.transitions.getAutoHeightDuration(_.clientHeight),w.current=D):D=O,_.style.transition=[T.transitions.create("opacity",{duration:D,delay:P}),T.transitions.create("transform",{duration:D*.666,delay:P||D*.333,easing:k})].join(","),_.style.opacity=0,_.style.transform=cr(.75),m&&m(_)}),j=lt(C,_=>{_.style.transition="",h&&h(_)}),v=_=>{f==="auto"&&x.start(w.current||0,_),o&&o(C.current,_)};return b.jsx(zt,{appear:s,in:l,nodeRef:C,onEnter:N,onEntered:R,onEntering:E,onExit:V,onExited:j,onExiting:L,addEndListener:v,timeout:f==="auto"?null:f,...y,children:(_,{ownerState:O,...P})=>{const k=om(_,l,tE,nE,g,i.props.style);return S.cloneElement(i,{style:k,ref:I,...P})}})});process.env.NODE_ENV!=="production"&&(Is.propTypes={addEndListener:r.func,appear:r.bool,children:$r.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});Is&&(Is.muiSupportAuto=!0);const oE={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},rE={opacity:0,visibility:"hidden"},$o=S.forwardRef(function(t,n){const o=Pr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:p,onExited:g,onExiting:f,style:y,timeout:x=s,...w}=t,T=S.useRef(null),C=ut(T,mi(l),n),I=lt(T,h),E=lt(T,(v,_)=>{nm(v);const O=Mo({style:y,timeout:x,easing:c},{mode:"enter"});v.style.transition=o.transitions.create("opacity",O),d&&d(v,_)}),N=lt(T,m),R=lt(T,f),L=lt(T,v=>{const _=Mo({style:y,timeout:x,easing:c},{mode:"exit"});v.style.transition=o.transitions.create("opacity",_),p&&p(v)}),V=lt(T,v=>{v.style.transition="",g&&g(v)}),j=v=>{i&&i(T.current,v)};return b.jsx(zt,{appear:a,in:u,nodeRef:T,onEnter:E,onEntered:N,onEntering:I,onExit:L,onExited:V,onExiting:R,addEndListener:j,timeout:x,...w,children:(v,{ownerState:_,...O})=>{const P=om(v,u,oE,rE,y,l.props.style);return S.cloneElement(l,{style:P,ref:C,...O})}})});process.env.NODE_ENV!=="production"&&($o.propTypes={addEndListener:r.func,appear:r.bool,children:$r.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function sE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function rm(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=sE(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function sm(e,t,n,o){return e[t]===void 0?null:rm(e,t,n,o)}function oa(){return null}sm.isRequired=rm;oa.isRequired=oa;const iE=process.env.NODE_ENV==="production"?oa:sm;function aE(e){return _e("MuiPaper",e)}Te("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lE=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return De(i,aE,s)},cE=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Xe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Dr=S.forwardRef(function(t,n){var p;const o=Ue({props:t,name:"MuiPaper"}),s=Pr(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,m={...o,component:a,elevation:l,square:c,variant:u},h=lE(m);return process.env.NODE_ENV!=="production"&&s.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
204
+ `)),b.jsx(cE,{as:a,ownerState:m,className:ce(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":(p=s.vars.overlays)==null?void 0:p[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${bs("#fff",Yi(l))}, ${bs("#fff",Yi(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:An(iE,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});function Do(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var vt="top",Nt="bottom",Mt="right",xt="left",ul="auto",Ar=[vt,Nt,Mt,xt],Ao="start",vr="end",uE="clippingParents",im="viewport",Ko="popper",dE="reference",ju=Ar.reduce(function(e,t){return e.concat([t+"-"+Ao,t+"-"+vr])},[]),am=[].concat(Ar,[ul]).reduce(function(e,t){return e.concat([t,t+"-"+Ao,t+"-"+vr])},[]),pE="beforeRead",fE="read",mE="afterRead",hE="beforeMain",gE="main",bE="afterMain",yE="beforeWrite",vE="write",xE="afterWrite",SE=[pE,fE,mE,hE,gE,bE,yE,vE,xE];function Xt(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eo(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Pt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function dl(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CE(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Pt(i)||!Xt(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function TE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Pt(s)||!Xt(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const wE={name:"applyStyles",enabled:!0,phase:"write",fn:CE,effect:TE,requires:["computeStyles"]};function Yt(e){return e.split("-")[0]}var Xn=Math.max,Es=Math.min,jo=Math.round;function ra(){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 lm(){return!/^((?!chrome|android).)*safari/i.test(ra())}function Lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&Pt(e)&&(s=e.offsetWidth>0&&jo(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&jo(o.height)/e.offsetHeight||1);var a=eo(e)?It(e):window,l=a.visualViewport,c=!lm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/s,d=(o.top+(c&&l?l.offsetTop:0))/i,m=o.width/s,h=o.height/i;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function pl(e){var t=Lo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function cm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dl(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function hn(e){return It(e).getComputedStyle(e)}function IE(e){return["table","td","th"].indexOf(Xt(e))>=0}function Ln(e){return((eo(e)?e.ownerDocument:e.document)||window.document).documentElement}function hi(e){return Xt(e)==="html"?e:e.assignedSlot||e.parentNode||(dl(e)?e.host:null)||Ln(e)}function Lu(e){return!Pt(e)||hn(e).position==="fixed"?null:e.offsetParent}function EE(e){var t=/firefox/i.test(ra()),n=/Trident/i.test(ra());if(n&&Pt(e)){var o=hn(e);if(o.position==="fixed")return null}var s=hi(e);for(dl(s)&&(s=s.host);Pt(s)&&["html","body"].indexOf(Xt(s))<0;){var i=hn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function jr(e){for(var t=It(e),n=Lu(e);n&&IE(n)&&hn(n).position==="static";)n=Lu(n);return n&&(Xt(n)==="html"||Xt(n)==="body"&&hn(n).position==="static")?t:n||EE(e)||t}function fl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ur(e,t,n){return Xn(e,Es(t,n))}function OE(e,t,n){var o=ur(e,t,n);return o>n?n:o}function um(){return{top:0,right:0,bottom:0,left:0}}function dm(e){return Object.assign({},um(),e)}function pm(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var _E=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,dm(typeof t!="number"?t:pm(t,Ar))};function kE(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Yt(n.placement),c=fl(l),u=[xt,Mt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var m=_E(s.padding,n),h=pl(i),p=c==="y"?vt:xt,g=c==="y"?Nt:Mt,f=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=jr(i),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,T=f/2-y/2,C=m[p],I=w-h[d]-m[g],E=w/2-h[d]/2+T,N=ur(C,E,I),R=c;n.modifiersData[o]=(t={},t[R]=N,t.centerOffset=N-E,t)}}function PE(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||cm(t.elements.popper,s)&&(t.elements.arrow=s))}const RE={name:"arrow",enabled:!0,phase:"main",fn:kE,effect:PE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vo(e){return e.split("-")[1]}var NE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ME(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:jo(n*s)/s||0,y:jo(o*s)/s||0}}function Vu(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=a.x,p=h===void 0?0:h,g=a.y,f=g===void 0?0:g,y=typeof d=="function"?d({x:p,y:f}):{x:p,y:f};p=y.x,f=y.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),T=xt,C=vt,I=window;if(u){var E=jr(n),N="clientHeight",R="clientWidth";if(E===It(n)&&(E=Ln(n),hn(E).position!=="static"&&l==="absolute"&&(N="scrollHeight",R="scrollWidth")),E=E,s===vt||(s===xt||s===Mt)&&i===vr){C=Nt;var L=m&&E===I&&I.visualViewport?I.visualViewport.height:E[N];f-=L-o.height,f*=c?1:-1}if(s===xt||(s===vt||s===Nt)&&i===vr){T=Mt;var V=m&&E===I&&I.visualViewport?I.visualViewport.width:E[R];p-=V-o.width,p*=c?1:-1}}var j=Object.assign({position:l},u&&NE),v=d===!0?ME({x:p,y:f},It(n)):{x:p,y:f};if(p=v.x,f=v.y,c){var _;return Object.assign({},j,(_={},_[C]=w?"0":"",_[T]=x?"0":"",_.transform=(I.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",_))}return Object.assign({},j,(t={},t[C]=w?f+"px":"",t[T]=x?p+"px":"",t.transform="",t))}function $E(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Yt(t.placement),variation:Vo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$E,data:{}};var Xr={passive:!0};function AE(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,a=o.resize,l=a===void 0?!0:a,c=It(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Xr)}),l&&c.addEventListener("resize",n.update,Xr),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Xr)}),l&&c.removeEventListener("resize",n.update,Xr)}}const jE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AE,data:{}};var LE={left:"right",right:"left",bottom:"top",top:"bottom"};function ds(e){return e.replace(/left|right|bottom|top/g,function(t){return LE[t]})}var VE={start:"end",end:"start"};function Fu(e){return e.replace(/start|end/g,function(t){return VE[t]})}function ml(e){var t=It(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function hl(e){return Lo(Ln(e)).left+ml(e).scrollLeft}function FE(e,t){var n=It(e),o=Ln(e),s=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=lm();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+hl(e),y:c}}function BE(e){var t,n=Ln(e),o=ml(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Xn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Xn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+hl(e),c=-o.scrollTop;return hn(s||n).direction==="rtl"&&(l+=Xn(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function gl(e){var t=hn(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function fm(e){return["html","body","#document"].indexOf(Xt(e))>=0?e.ownerDocument.body:Pt(e)&&gl(e)?e:fm(hi(e))}function dr(e,t){var n;t===void 0&&(t=[]);var o=fm(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=It(o),a=s?[i].concat(i.visualViewport||[],gl(o)?o:[]):o,l=t.concat(a);return s?l:l.concat(dr(hi(a)))}function sa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zE(e,t){var n=Lo(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 Bu(e,t,n){return t===im?sa(FE(e,n)):eo(t)?zE(t,n):sa(BE(Ln(e)))}function WE(e){var t=dr(hi(e)),n=["absolute","fixed"].indexOf(hn(e).position)>=0,o=n&&Pt(e)?jr(e):e;return eo(o)?t.filter(function(s){return eo(s)&&cm(s,o)&&Xt(s)!=="body"}):[]}function UE(e,t,n,o){var s=t==="clippingParents"?WE(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=Bu(e,u,o);return c.top=Xn(d.top,c.top),c.right=Es(d.right,c.right),c.bottom=Es(d.bottom,c.bottom),c.left=Xn(d.left,c.left),c},Bu(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mm(e){var t=e.reference,n=e.element,o=e.placement,s=o?Yt(o):null,i=o?Vo(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case vt:c={x:a,y:t.y-n.height};break;case Nt:c={x:a,y:t.y+t.height};break;case Mt:c={x:t.x+t.width,y:l};break;case xt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?fl(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ao:c[u]=c[u]-(t[d]/2-n[d]/2);break;case vr:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function xr(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?uE:l,u=n.rootBoundary,d=u===void 0?im:u,m=n.elementContext,h=m===void 0?Ko:m,p=n.altBoundary,g=p===void 0?!1:p,f=n.padding,y=f===void 0?0:f,x=dm(typeof y!="number"?y:pm(y,Ar)),w=h===Ko?dE:Ko,T=e.rects.popper,C=e.elements[g?w:h],I=UE(eo(C)?C:C.contextElement||Ln(e.elements.popper),c,d,a),E=Lo(e.elements.reference),N=mm({reference:E,element:T,placement:s}),R=sa(Object.assign({},T,N)),L=h===Ko?R:E,V={top:I.top-L.top+x.top,bottom:L.bottom-I.bottom+x.bottom,left:I.left-L.left+x.left,right:L.right-I.right+x.right},j=e.modifiersData.offset;if(h===Ko&&j){var v=j[s];Object.keys(V).forEach(function(_){var O=[Mt,Nt].indexOf(_)>=0?1:-1,P=[vt,Nt].indexOf(_)>=0?"y":"x";V[_]+=v[P]*O})}return V}function HE(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?am:c,d=Vo(o),m=d?l?ju:ju.filter(function(g){return Vo(g)===d}):Ar,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var p=h.reduce(function(g,f){return g[f]=xr(e,{placement:f,boundary:s,rootBoundary:i,padding:a})[Yt(f)],g},{});return Object.keys(p).sort(function(g,f){return p[g]-p[f]})}function qE(e){if(Yt(e)===ul)return[];var t=ds(e);return[Fu(e),t,Fu(t)]}function YE(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,m=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,f=n.allowedAutoPlacements,y=t.options.placement,x=Yt(y),w=x===y,T=c||(w||!g?[ds(y)]:qE(y)),C=[y].concat(T).reduce(function(Z,Y){return Z.concat(Yt(Y)===ul?HE(t,{placement:Y,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:f}):Y)},[]),I=t.rects.reference,E=t.rects.popper,N=new Map,R=!0,L=C[0],V=0;V<C.length;V++){var j=C[V],v=Yt(j),_=Vo(j)===Ao,O=[vt,Nt].indexOf(v)>=0,P=O?"width":"height",k=xr(t,{placement:j,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),D=O?_?Mt:xt:_?Nt:vt;I[P]>E[P]&&(D=ds(D));var $=ds(D),z=[];if(i&&z.push(k[v]<=0),l&&z.push(k[D]<=0,k[$]<=0),z.every(function(Z){return Z})){L=j,R=!1;break}N.set(j,z)}if(R)for(var A=g?3:1,F=function(Y){var X=C.find(function(ne){var q=N.get(ne);if(q)return q.slice(0,Y).every(function(B){return B})});if(X)return L=X,"break"},W=A;W>0;W--){var K=F(W);if(K==="break")break}t.placement!==L&&(t.modifiersData[o]._skip=!0,t.placement=L,t.reset=!0)}}const GE={name:"flip",enabled:!0,phase:"main",fn:YE,requiresIfExists:["offset"],data:{_skip:!1}};function zu(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 Wu(e){return[vt,Mt,Nt,xt].some(function(t){return e[t]>=0})}function KE(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=xr(t,{elementContext:"reference"}),l=xr(t,{altBoundary:!0}),c=zu(a,o),u=zu(l,s,i),d=Wu(c),m=Wu(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const XE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KE};function QE(e,t,n){var o=Yt(e),s=[xt,vt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[xt,Mt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function ZE(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=am.reduce(function(d,m){return d[m]=QE(m,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const JE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZE};function eO(e){var t=e.state,n=e.name;t.modifiersData[n]=mm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const tO={name:"popperOffsets",enabled:!0,phase:"read",fn:eO,data:{}};function nO(e){return e==="x"?"y":"x"}function oO(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,m=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,f=g===void 0?0:g,y=xr(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),x=Yt(t.placement),w=Vo(t.placement),T=!w,C=fl(x),I=nO(C),E=t.modifiersData.popperOffsets,N=t.rects.reference,R=t.rects.popper,L=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,V=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(E){if(i){var _,O=C==="y"?vt:xt,P=C==="y"?Nt:Mt,k=C==="y"?"height":"width",D=E[C],$=D+y[O],z=D-y[P],A=p?-R[k]/2:0,F=w===Ao?N[k]:R[k],W=w===Ao?-R[k]:-N[k],K=t.elements.arrow,Z=p&&K?pl(K):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:um(),X=Y[O],ne=Y[P],q=ur(0,N[k],Z[k]),B=T?N[k]/2-A-q-X-V.mainAxis:F-q-X-V.mainAxis,H=T?-N[k]/2+A+q+ne+V.mainAxis:W+q+ne+V.mainAxis,ae=t.elements.arrow&&jr(t.elements.arrow),G=ae?C==="y"?ae.clientTop||0:ae.clientLeft||0:0,de=(_=j==null?void 0:j[C])!=null?_:0,oe=D+B-de-G,ye=D+H-de,me=ur(p?Es($,oe):$,D,p?Xn(z,ye):z);E[C]=me,v[C]=me-D}if(l){var re,J=C==="x"?vt:xt,ge=C==="x"?Nt:Mt,ie=E[I],he=I==="y"?"height":"width",se=ie+y[J],Ie=ie-y[ge],ke=[vt,xt].indexOf(x)!==-1,gt=(re=j==null?void 0:j[I])!=null?re:0,He=ke?se:ie-N[he]-R[he]-gt+V.altAxis,ct=ke?ie+N[he]+R[he]-gt-V.altAxis:Ie,Wt=p&&ke?OE(He,ie,ct):ur(p?He:se,ie,p?ct:Ie);E[I]=Wt,v[I]=Wt-ie}t.modifiersData[o]=v}}const rO={name:"preventOverflow",enabled:!0,phase:"main",fn:oO,requiresIfExists:["offset"]};function sO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iO(e){return e===It(e)||!Pt(e)?ml(e):sO(e)}function aO(e){var t=e.getBoundingClientRect(),n=jo(t.width)/e.offsetWidth||1,o=jo(t.height)/e.offsetHeight||1;return n!==1||o!==1}function lO(e,t,n){n===void 0&&(n=!1);var o=Pt(t),s=Pt(t)&&aO(t),i=Ln(t),a=Lo(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Xt(t)!=="body"||gl(i))&&(l=iO(t)),Pt(t)?(c=Lo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=hl(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function cO(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function uO(e){var t=cO(e);return SE.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function dO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pO(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Uu={placement:"bottom",modifiers:[],strategy:"absolute"};function Hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function fO(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Uu:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uu,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],h=!1,p={state:d,setOptions:function(x){var w=typeof x=="function"?x(d.options):x;f(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:eo(l)?dr(l):l.contextElement?dr(l.contextElement):[],popper:dr(c)};var T=uO(pO([].concat(o,d.options.modifiers)));return d.orderedModifiers=T.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!h){var x=d.elements,w=x.reference,T=x.popper;if(Hu(w,T)){d.rects={reference:lO(w,jr(T),d.options.strategy==="fixed"),popper:pl(T)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var I=d.orderedModifiers[C],E=I.fn,N=I.options,R=N===void 0?{}:N,L=I.name;typeof E=="function"&&(d=E({state:d,options:R,name:L,instance:p})||d)}}}},update:dO(function(){return new Promise(function(y){p.forceUpdate(),y(d)})}),destroy:function(){f(),h=!0}};if(!Hu(l,c))return p;p.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var x=y.name,w=y.options,T=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var I=C({state:d,name:x,instance:p,options:T}),E=function(){};m.push(I||E)}})}function f(){m.forEach(function(y){return y()}),m=[]}return p}}var mO=[jE,tO,DE,wE,JE,GE,rO,RE,XE],hO=fO({defaultModifiers:mO});function gO(e){return typeof e=="function"?e():e}const Sr=S.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[a,l]=S.useState(null),c=ut(S.isValidElement(o)?mi(o):null,n);if(kn(()=>{i||l(gO(s)||document.body)},[s,i]),kn(()=>{if(a&&!i)return qc(n,a),()=>{qc(n,null)}},[n,a,i]),i){if(S.isValidElement(o)){const u={ref:c};return S.cloneElement(o,u)}return o}return a&&Fh.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Sr.propTypes={children:r.node,container:r.oneOfType([Do,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(Sr.propTypes=Up(Sr.propTypes));function bO(e){return _e("MuiPopper",e)}Te("MuiPopper",["root"]);function yO(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 Os(e){return typeof e=="function"?e():e}function gi(e){return e.nodeType!==void 0}function vO(e){return!gi(e)}const xO=e=>{const{classes:t}=e;return De({root:["root"]},bO,t)},SO={},CO=S.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:p={},TransitionProps:g,ownerState:f,...y}=t,x=S.useRef(null),w=ut(x,n),T=S.useRef(null),C=ut(T,m),I=S.useRef(C);kn(()=>{I.current=C},[C]),S.useImperativeHandle(m,()=>T.current,[]);const E=yO(u,i),[N,R]=S.useState(E),[L,V]=S.useState(Os(o));S.useEffect(()=>{T.current&&T.current.forceUpdate()}),S.useEffect(()=>{o&&V(Os(o))},[o]),kn(()=>{if(!L||!c)return;const P=z=>{R(z.placement)};if(process.env.NODE_ENV!=="production"&&L&&gi(L)&&L.nodeType===1){const z=L.getBoundingClientRect();pf()&&z.top===0&&z.left===0&&z.right===0&&z.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
205
+ `))}let k=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{P(z)}}];l!=null&&(k=k.concat(l)),d&&d.modifiers!=null&&(k=k.concat(d.modifiers));const D=hO(L,x.current,{placement:E,...d,modifiers:k});I.current(D);const $=x.current;return()=>{if($){const{style:z}=$,A=z.position,F=z.top,W=z.left,K=z.transform;D.destroy(),z.position=A,z.top=F,z.left=W,z.transform=K}else D.destroy();I.current(null)}},[L,a,l,c,d,E]);const j={placement:N};g!==null&&(j.TransitionProps=g);const v=xO(t),_=p.root??"div",O=oT({elementType:_,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:v.root});return b.jsx(_,{...O,children:typeof s=="function"?s(j):s})}),hm=S.forwardRef(function(t,n){const{anchorEl:o,children:s,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:h=SO,popperRef:p,style:g,transition:f=!1,slotProps:y={},slots:x={},...w}=t,[T,C]=S.useState(!0),I=()=>{C(!1)},E=()=>{C(!0)};if(!c&&!d&&(!f||T))return null;let N;if(i)N=i;else if(o){const V=Os(o);N=V&&gi(V)?Gt(V).body:Gt(null).body}const R=!d&&c&&(!f||T)?"none":void 0,L=f?{in:d,onEnter:I,onExited:E}:void 0;return b.jsx(Sr,{disablePortal:l,container:N,children:b.jsx(CO,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:f?!T:d,placement:m,popperOptions:h,popperRef:p,slotProps:y,slots:x,...w,style:{position:"fixed",top:0,left:0,display:R,...g},TransitionProps:L,children:s})})});process.env.NODE_ENV!=="production"&&(hm.propTypes={anchorEl:An(r.oneOfType([Do,r.object,r.func]),e=>{if(e.open){const t=Os(e.anchorEl);if(t&&gi(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&pf()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
206
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||vO(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
207
+ `))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([Do,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:Qs,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});const TO=te(hm,{name:"MuiPopper",slot:"Root"})({}),gm=S.forwardRef(function(t,n){const o=Dn(),s=Ue({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:p,placement:g,popperOptions:f,popperRef:y,transition:x,slots:w,slotProps:T,...C}=s,I=(w==null?void 0:w.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:p,placement:g,popperOptions:f,popperRef:y,transition:x,...C};return b.jsx(TO,{as:a,direction:o?"rtl":"ltr",slots:{root:I},slotProps:T??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(gm.propTypes={anchorEl:r.oneOfType([Do,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Do,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:Qs,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});const ia="data-mui-focusable";function wO(e){return e?e.hasAttribute(ia)?e:e.querySelector(`[${ia}]`):null}const IO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EO(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 OO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function _O(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||OO(e))}function kO(e){const t=[],n=[];return Array.from(e.querySelectorAll(IO)).forEach((o,s)=>{const i=EO(o);i===-1||!_O(o)||(i===0?t.push(o):n.push({documentOrder:s,tabIndex:i,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function PO(){return!0}function Cr(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:i=kO,isEnabled:a=PO,open:l}=e,c=S.useRef(!1),u=S.useRef(null),d=S.useRef(null),m=S.useRef(null),h=S.useRef(null),p=S.useRef(!1),g=S.useRef(null),f=ut(mi(t),g),y=S.useRef(null);S.useEffect(()=>{!l||!g.current||(p.current=!n)},[n,l]),S.useEffect(()=>{if(c.current=!1,!l||!g.current)return;const T=Gt(g.current),C=or(T),I=wO(g.current)??g.current;return nu(g.current,C)||(I.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
208
+ `)),I.setAttribute("tabIndex","-1")),p.current&&I.focus()),()=>{s||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),S.useEffect(()=>{if(!l||!g.current)return;const T=Gt(g.current),C=N=>{if(y.current=N,o||!a()||N.key!=="Tab")return;or(T)===g.current&&N.shiftKey&&(c.current=!0,d.current&&d.current.focus())},I=()=>{var V,j;const N=g.current;if(N===null)return;const R=or(T);if(!T.hasFocus()||!a()||c.current){c.current=!1;return}if(nu(N,R)||o&&R!==u.current&&R!==d.current)return;if(R!==h.current)h.current=null;else if(h.current!==null)return;if(!p.current)return;let L=[];if((R===u.current||R===d.current)&&(L=i(g.current)),L.length>0){const v=!!((V=y.current)!=null&&V.shiftKey&&((j=y.current)==null?void 0:j.key)==="Tab"),_=L[0],O=L[L.length-1];typeof _!="string"&&typeof O!="string"&&(v?O.focus():_.focus())}else N.focus()};T.addEventListener("focusin",I),T.addEventListener("keydown",C,!0);const E=setInterval(()=>{const N=or(T);N&&N.tagName==="BODY"&&I()},50);return()=>{clearInterval(E),T.removeEventListener("focusin",I),T.removeEventListener("keydown",C,!0)}},[n,o,s,a,l,i]);const x=T=>{m.current===null&&(m.current=T.relatedTarget),p.current=!0,h.current=T.target;const C=t.props.onFocus;C&&C(T)},w=T=>{m.current===null&&(m.current=T.relatedTarget),p.current=!0};return b.jsxs(S.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:f,onFocus:x}),b.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Cr.propTypes={children:$r,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired});process.env.NODE_ENV!=="production"&&(Cr.propTypes=Up(Cr.propTypes));const RO=e=>e.type==="hidden";function NO(e){const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!RO(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)}function MO(e){return ot("MuiPickerPopper",e)}st("MuiPickerPopper",["root","paper"]);const $O=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],DO=e=>tt({root:["root"],paper:["paper"]},MO,e),AO=te(gm,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),jO=te(Dr,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function LO(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function VO(e,t){const n=S.useRef(!1),o=S.useRef(!1),s=S.useRef(null),i=S.useRef(!1);S.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=ve(c=>{if(!i.current){o.current=!1;return}const u=o.current;o.current=!1;const d=Io(s.current);if(!s.current||"clientX"in c&&LO(c,d))return;if(n.current){n.current=!1;return}let m;c.composedPath?m=c.composedPath().indexOf(s.current)>-1:m=!d.documentElement.contains(c.target)||s.current.contains(c.target),!m&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return S.useEffect(()=>{if(e){const c=Io(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),S.useEffect(()=>{if(e){const c=Io(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[s,l,l]}const bm=S.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=xe(e,$O),d=We({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,M({},u,d,{onClick:m=>{var h;l(m),(h=d.onClick)==null||h.call(d,m)},onTouchStart:m=>{var h;c(m),(h=d.onTouchStart)==null||h.call(d,m)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(bm.displayName="PickerPopperPaperWrapper");const FO=e=>{const t=e instanceof HTMLElement?e:null;return t?NO(t):!1};function BO(e){const t=ze({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u,keepOpenDuringFieldFocus:d}=zo(),{ownerState:m,rootRefObject:h}=dt(),{dismissViews:p,getCurrentViewMode:g,onPopperExited:f,triggerElement:y,viewContainerRole:x}=dt();S.useEffect(()=>{function $(z){l&&z.key==="Escape"&&p()}return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[p,l]);const w=S.useRef(null);S.useEffect(()=>{x==="tooltip"||g()==="field"||(l?w.current=ln(h.current):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[l,x,g,h]);const T=DO(a),C=ve($=>{d&&y&&$&&"target"in $&&y.contains($.target)||(x==="tooltip"?yw(()=>{var z,A;(z=h.current)!=null&&z.contains(ln(h.current))||(A=c.current)!=null&&A.contains(ln(c.current))||p()}):($.composedPath().some(FO)&&(w.current=null),p()))}),[I,E,N]=VO(l,C),R=S.useRef(null),L=ht(R,c),V=ht(L,I),j=$=>{$.key==="Escape"&&($.stopPropagation(),p())},v=(s==null?void 0:s.desktopTransition)??u?$o:Is,_=(s==null?void 0:s.desktopTrapFocus)??Cr,O=(s==null?void 0:s.desktopPaper)??jO,P=(s==null?void 0:s.popper)??AO,k=We({elementType:P,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:x??void 0,open:l,placement:o,anchorEl:y,onKeyDown:j},className:T.root,ownerState:m}),D=S.useMemo(()=>M({},m,{popperPlacement:k.placement}),[m,k.placement]);return b.jsx(P,M({},k,{children:({TransitionProps:$})=>b.jsx(_,M({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip"},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(v,M({},$,i==null?void 0:i.desktopTransition,{onExited:z=>{var A,F,W;f==null||f(),(F=(A=i==null?void 0:i.desktopTransition)==null?void 0:A.onExited)==null||F.call(A,z),(W=$==null?void 0:$.onExited)==null||W.call($)},children:b.jsx(bm,{PaperComponent:O,ownerState:D,ref:V,onPaperClick:E,onPaperTouchStart:N,paperClasses:T.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const zO="@media (prefers-reduced-motion: reduce)",Eo=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),qu=Eo&&Eo[1]?parseInt(Eo[1],10):null,Yu=Eo&&Eo[2]?parseInt(Eo[2],10):null,WO=qu&&qu<10||Yu&&Yu<13||!1;function UO(e){const t=Tf(zO,{defaultMatches:!1});return e??(t||WO)}const ym={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function HO(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return ym;const i=t.findIndex(l=>n(s.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(M({},s,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(m=>n(l,m)),d=t.find(m=>n(c,m));return u===d}}}}let $i=!1;function bi({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&($i||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),$i=!0),o==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),$i=!0)));const u=S.useRef(n),d=S.useRef(s),m=S.useRef(s.includes(n)?n:s[0]),[h,p]=ws({name:"useViews",state:"view",controlled:o,default:m.current}),g=S.useRef(i?h:null),[f,y]=ws({name:"useViews",state:"focusedView",controlled:a,default:g.current}),x=c?c({setView:p,view:h,defaultView:m.current,views:s}):ym;S.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(L=>!s.includes(L)))&&(p(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,p,h,s]);const w=s.indexOf(h),T=s[w-1]??null,C=s[w+1]??null,I=ve((L,V)=>{y(V?L:j=>L===j?null:j),l==null||l(L,V)}),E=ve(L=>{I(L,!0),L!==h&&(p(L),t&&t(L))}),N=ve(()=>{C&&E(C)}),R=ve((L,V,j)=>{const v=V==="finish",_=j?s.indexOf(j)<s.length-1:!!C;e(L,v&&_?"partial":V,j);let P=null;if(j!=null&&j!==h?P=j:v&&(P=h),P==null)return;const k=s[s.indexOf(P)+1];k==null||!x.areViewsInSameStep(P,k)||E(k)});return M({},x,{view:h,setView:E,focusedView:f,setFocusedView:I,nextView:C,previousView:T,defaultView:s.includes(n)?n:s[0],goToNextView:N,setValueAndGoToNextView:R})}function Gu(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function qO(e,t){const[n,o]=S.useState(Gu);return mn(()=>{const s=()=>{o(Gu())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),bo(e,["hours","minutes","seconds"])?"portrait":t??n}function YO(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:m,onOpen:h,onClose:p}=t,{current:g}=S.useRef(i),{current:f}=S.useRef(s!==void 0),{current:y}=S.useRef(m!==void 0),x=nt();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&fn(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(S.useEffect(()=>{f!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${f?"":"un"}controlled value of a Picker to be ${f?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
209
+ `))},[s]),S.useEffect(()=>{!f&&g!==i&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
210
+ `))},[JSON.stringify(g)]));const{timezone:w,value:T,handleValueChange:C}=Nr({name:"a picker component",timezone:c,value:s,defaultValue:g,referenceDate:l,onChange:a,valueManager:n}),[I,E]=S.useState(()=>({open:!1,lastExternalValue:T,clockShallowValue:void 0,lastCommittedValue:T,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:N}=Lf({props:t,validator:o,timezone:w,value:T,onError:t.onError}),R=ve(v=>{const _=typeof v=="function"?v(I.open):v;y||E(O=>M({},O,{open:_})),_&&h&&h(),_||p==null||p()}),L=ve((v,_)=>{const{changeImportance:O="accept",skipPublicationIfPristine:P=!1,validationError:k,shortcut:D,source:$,shouldClose:z=O==="accept"}=_??{};let A,F;!P&&!f&&!I.hasBeenModifiedSinceMount?(A=!0,F=O==="accept"):(A=!n.areValuesEqual(x,v,T),F=O==="accept"&&!n.areValuesEqual(x,v,I.lastCommittedValue)),E(Z=>M({},Z,{clockShallowValue:A?void 0:Z.clockShallowValue,lastCommittedValue:F?v:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const K=()=>{if(!W){let Z;$?Z=$:D?Z="view":Z="unknown",W={validationError:k??N(v),source:Z},D&&(W.shortcut=D)}return W};A&&C(v,K()),F&&u&&u(v,K()),z&&R(!1)});T!==I.lastExternalValue&&E(v=>M({},v,{lastExternalValue:T,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=ve((v,_="partial")=>{if(_==="shallow"){E(O=>M({},O,{clockShallowValue:v,hasBeenModifiedSinceMount:!0}));return}L(v,{changeImportance:_==="finish"&&d?"accept":"set",source:"view"})});S.useEffect(()=>{if(y){if(m===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must not mix controlling and uncontrolled mode for `open` prop":Oe(160));E(v=>M({},v,{open:m}))}},[y,m]);const j=S.useMemo(()=>n.cleanValue(x,I.clockShallowValue===void 0?T:I.clockShallowValue),[x,n,I.clockShallowValue,T]);return{timezone:w,state:I,setValue:L,setValueFromView:V,setOpen:R,value:T,viewValue:j}}const GO=["className","sx"],vm=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:m})=>{const{views:h,view:p,openTo:g,onViewChange:f,viewRenderers:y,reduceAnimations:x,orientation:w,disableOpenPicker:T,closeOnSelect:C,disabled:I,readOnly:E,formatDensity:N,selectedSections:R,onSelectedSectionsChange:L,format:V,label:j,autoFocus:v,name:_,keepOpenDuringFieldFocus:O}=t,{className:P,sx:k}=t,D=xe(t,GO),$=ol(),z=nt(),A=UO(x),F=qO(h,w),{current:W}=S.useRef(g??null),[K,Z]=S.useState(null),Y=S.useRef(null),X=S.useRef(null),ne=S.useRef(null),q=ht(e,ne),{timezone:B,state:H,setOpen:ae,setValue:G,setValueFromView:de,value:oe,viewValue:ye}=YO({props:t,valueManager:n,validator:i}),{view:me,setView:re,defaultView:J,focusedView:ge,setFocusedView:ie,setValueAndGoToNextView:he,goToNextStep:se,hasNextStep:Ie,hasSeveralSteps:ke}=bi({view:p,views:h,openTo:g,onChange:de,onViewChange:f,autoFocus:l,getStepNavigation:m}),gt=ve(()=>{var Ke;oe===null&&((Ke=X.current)!=null&&Ke.clearValue)&&X.current.clearValue(),G(n.emptyValue,{source:"view"})}),He=ve(()=>G(n.getTodayValue(z,B,o),{source:"view"})),ct=ve(()=>G(oe,{source:"view"})),Wt=ve(()=>G(H.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Vr=ve(()=>{G(oe,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Fr,viewModeLookup:Br,timeViewsCount:Jl}=S.useMemo(()=>h.reduce((Ke,Dt)=>{const rc=y[Dt]==null?"field":"UI";return Ke.viewModeLookup[Dt]=rc,rc==="UI"&&(Ke.hasUIView=!0,No(Dt)&&(Ke.timeViewsCount+=1)),Ke},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,h]),zr=Br[me],ec=ve(()=>zr),[Zt,Mh]=S.useState(zr==="UI"?me:null);Zt!==me&&Br[me]==="UI"&&Mh(me),mn(()=>{zr==="field"&&H.open&&(ae(!1),setTimeout(()=>{var Ke,Dt;(Ke=X==null?void 0:X.current)==null||Ke.setSelectedSections(me),(Dt=X==null?void 0:X.current)==null||Dt.focusField(me)}))},[me]),mn(()=>{if(!H.open)return;let Ke=me;zr==="field"&&Zt!=null&&(Ke=Zt),Ke!==J&&Br[Ke]==="UI"&&Br[J]==="UI"&&(Ke=J),Ke!==me&&re(Ke),ie(Ke,!0)},[H.open]);const xi=S.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(z,oe,n.emptyValue),isPickerOpen:H.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:F,pickerVariant:s}),[z,n,oe,H.open,F,s,t.disabled,t.readOnly]),tc=S.useMemo(()=>T||!Fr?"hidden":I||E?"disabled":"enabled",[T,Fr,I,E]),nc=ve(se),oc=S.useMemo(()=>C&&!ke?[]:["cancel","nextOrAccept"],[C,ke]),Si=S.useMemo(()=>({setValue:G,setOpen:ae,clearValue:gt,setValueToToday:He,acceptValueChanges:ct,cancelValueChanges:Wt,setView:re,goToNextStep:nc}),[G,ae,gt,He,ct,Wt,re,nc]),$h=S.useMemo(()=>M({},Si,{value:oe,timezone:B,open:H.open,views:h,view:Zt,initialView:W,disabled:I??!1,readOnly:E??!1,autoFocus:v??!1,variant:s,orientation:F,popupRef:Y,reduceAnimations:A,triggerRef:Z,triggerStatus:tc,keepOpenDuringFieldFocus:!!O,hasNextStep:Ie,fieldFormat:V??"",name:_,label:j,rootSx:k,rootRef:q,rootClassName:P}),[Si,oe,q,s,F,A,I,E,V,P,_,j,k,tc,O,Ie,B,H.open,Zt,h,W,v]),Dh=S.useMemo(()=>({dismissViews:Vr,ownerState:xi,hasUIView:Fr,getCurrentViewMode:ec,rootRefObject:ne,labelId:$,triggerElement:K,viewContainerRole:d,defaultActionBarActions:oc,onPopperExited:a}),[Vr,xi,Fr,ec,$,K,d,oc,a]),Ah=S.useMemo(()=>({formatDensity:N,selectedSections:R,onSelectedSectionsChange:L,internalFieldRef:X}),[N,R,L,X]);return{providerProps:{localeText:u,contextValue:$h,privateContextValue:Dh,actionsContextValue:Si,fieldPrivateContextValue:Ah,isValidContextValue:Ke=>{const Dt=i({adapter:z,value:Ke,timezone:B,props:t});return!n.hasError(Dt)}},renderCurrentView:()=>{if(Zt==null)return null;const Ke=y[Zt];if(Ke==null)return null;const Dt=M({},D,{views:h,timezone:B,value:ye,onChange:he,view:Zt,onViewChange:re,showViewSwitcher:Jl>1,timeViewsCount:Jl},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ge,onFocusedViewChange:ie});return c?b.jsx(c,{viewRenderers:y,popperView:Zt,rendererProps:Dt}):Ke(Dt)},ownerState:xi}};function xm(e){return ot("MuiPickersLayout",e)}const Un=st("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function KO(e){return _e("MuiDialogActions",e)}Te("MuiDialogActions",["root","spacing"]);const XO=e=>{const{classes:t,disableSpacing:n}=e;return De({root:["root",!n&&"spacing"]},KO,t)},QO=te("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}}}]}),Sm=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=XO(l);return b.jsx(QO,{className:ce(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Sm.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const ZO=["actions"],JO=te(Sm,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Cm(e){const{actions:t}=e,n=xe(e,ZO),o=Qt(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=zo();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(m=>{switch(m){case"clear":return b.jsx(on,{onClick:s,children:o.clearButtonLabel},m);case"cancel":return b.jsx(on,{onClick:l,children:o.cancelButtonLabel},m);case"accept":return b.jsx(on,{onClick:a,children:o.okButtonLabel},m);case"today":return b.jsx(on,{onClick:i,children:o.todayButtonLabel},m);case"next":return b.jsx(on,{onClick:c,children:o.nextStepButtonLabel},m);case"nextOrAccept":return u?b.jsx(on,{onClick:c,children:o.nextStepButtonLabel},m):b.jsx(on,{onClick:a,children:o.okButtonLabel},m);default:return null}});return b.jsx(JO,M({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Cm.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Tm=S.memo(Cm);process.env.NODE_ENV!=="production"&&(Tm.displayName="PickersActionBar");const _n=S.createContext({});process.env.NODE_ENV!=="production"&&(_n.displayName="ListContext");function e_(e){return _e("MuiList",e)}Te("MuiList",["root","padding","dense","subheader"]);const t_=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return De({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},e_,t)},n_=te("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}}]}),bl=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,m=S.useMemo(()=>({dense:l}),[l]),h={...o,component:a,dense:l,disablePadding:c},p=t_(h);return b.jsx(_n.Provider,{value:m,children:b.jsxs(n_,{as:a,className:ce(p.root,i),ref:n,ownerState:h,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(bl.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function o_(e){return _e("MuiListItem",e)}Te("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const r_=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function s_(e){return _e("MuiListItemSecondaryAction",e)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const i_=e=>{const{disableGutters:t,classes:n}=e;return De({root:["root",t&&"disableGutters"]},s_,n)},a_=te("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}}]}),yl=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,a=S.useContext(_n),l={...o,disableGutters:a.disableGutters},c=i_(l);return b.jsx(a_,{className:ce(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(yl.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});yl.muiName="ListItemSecondaryAction";const l_=(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]},c_=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return De({root:["root",o&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},o_,n)},u_=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:l_})(Xe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${r_.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),d_=te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),wm=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:m,...h}={},dense:p=!1,disableGutters:g=!1,disablePadding:f=!1,divider:y=!1,secondaryAction:x,slotProps:w={},slots:T={},...C}=o,I=S.useContext(_n),E=S.useMemo(()=>({dense:p||I.dense||!1,alignItems:s,disableGutters:g}),[s,I.dense,p,g]),N=S.useRef(null),R=S.Children.toArray(i),L=R.length&&To(R[R.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:s,dense:E.dense,disableGutters:g,disablePadding:f,divider:y,hasSecondaryAction:L},j=c_(V),v=ut(N,n),_={slots:T,slotProps:w},[O,P]=Ge("secondaryAction",{elementType:yl,externalForwardedProps:_,ownerState:V,className:j.secondaryAction}),k=T.root||c.Root||u_,D=w.root||u.root||{},$={className:ce(j.root,D.className,a),...C};let z=l||"li";return L?(z=!$.component&&!l?"div":z,d==="li"&&(z==="li"?z="div":$.component==="li"&&($.component="div")),b.jsx(_n.Provider,{value:E,children:b.jsxs(d_,{as:d,className:ce(j.container,m),ref:v,ownerState:V,...h,children:[b.jsx(k,{...D,...!Ji(k)&&{as:z,ownerState:{...V,...D.ownerState}},...$,children:R}),R.pop()]})})):b.jsx(_n.Provider,{value:E,children:b.jsxs(k,{...D,as:z,ref:v,...!Ji(k)&&{ownerState:{...V,...D.ownerState}},...$,children:[R,x&&b.jsx(O,{...P,children:x})]})})});process.env.NODE_ENV!=="production"&&(wm.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:An(r.node,e=>{const t=S.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if(To(s,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:Fa,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object,secondaryAction:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,secondaryAction:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const p_=rt(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function f_(e){return _e("MuiChip",e)}const we=Te("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),m_=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${le(o)}`,`color${le(s)}`,l&&"clickable",l&&`clickableColor${le(s)}`,a&&"deletable",a&&`deletableColor${le(s)}`,`${c}${le(s)}`],label:["label",`label${le(o)}`],avatar:["avatar",`avatar${le(o)}`,`avatarColor${le(s)}`],icon:["icon",`icon${le(o)}`,`iconColor${le(i)}`],deleteIcon:["deleteIcon",`deleteIcon${le(o)}`,`deleteIconColor${le(s)}`,`deleteIcon${le(c)}Color${le(s)}`]};return De(u,f_,t)},h_=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${we.avatar}`]:t.avatar},{[`& .${we.avatar}`]:t[`avatar${le(l)}`]},{[`& .${we.avatar}`]:t[`avatarColor${le(o)}`]},{[`& .${we.icon}`]:t.icon},{[`& .${we.icon}`]:t[`icon${le(l)}`]},{[`& .${we.icon}`]:t[`iconColor${le(s)}`]},{[`& .${we.deleteIcon}`]:t.deleteIcon},{[`& .${we.deleteIcon}`]:t[`deleteIcon${le(l)}`]},{[`& .${we.deleteIcon}`]:t[`deleteIconColor${le(o)}`]},{[`& .${we.deleteIcon}`]:t[`deleteIcon${le(c)}Color${le(o)}`]},t.root,t[`size${le(l)}`],t[`color${le(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${le(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${le(o)}`],t[c],t[`${c}${le(o)}`]]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${we.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${we.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${we.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${we.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${we.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${we.icon}`]:{marginLeft:5,marginRight:-6},[`& .${we.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,[`& .${we.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${we.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(mt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${we.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:{[`& .${we.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${we.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${we.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(mt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${we.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}`)},[`&.${we.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(mt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${we.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]}`,[`&.${we.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${we.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${we.avatar}`]:{marginLeft:4},[`& .${we.avatarSmall}`]:{marginLeft:2},[`& .${we.icon}`]:{marginLeft:4},[`& .${we.iconSmall}`]:{marginLeft:2},[`& .${we.deleteIcon}`]:{marginRight:5},[`& .${we.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(mt()).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)}`,[`&.${we.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${we.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${we.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),g_=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${le(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Ku(e){return e.key==="Backspace"||e.key==="Delete"}const Im=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:p,onDelete:g,onKeyDown:f,onKeyUp:y,size:x="medium",variant:w="filled",tabIndex:T,skipFocusWhenDisabled:C=!1,slots:I={},slotProps:E={},...N}=o,R=S.useRef(null),L=ut(R,n),V=X=>{X.stopPropagation(),g(X)},j=X=>{X.currentTarget===X.target&&Ku(X)&&X.preventDefault(),f&&f(X)},v=X=>{X.currentTarget===X.target&&g&&Ku(X)&&g(X),y&&y(X)},_=a!==!1&&p?!0:a,O=_||g?Zn:c||"div",P={...o,component:O,disabled:d,size:x,color:l,iconColor:S.isValidElement(m)&&m.props.color||l,onDelete:!!g,clickable:_,variant:w},k=m_(P),D=O===Zn?{component:c||"div",focusVisibleClassName:k.focusVisible,...g&&{disableRipple:!0}}:{};let $=null;g&&($=u&&S.isValidElement(u)?S.cloneElement(u,{className:ce(u.props.className,k.deleteIcon),onClick:V}):b.jsx(p_,{className:k.deleteIcon,onClick:V}));let z=null;s&&S.isValidElement(s)&&(z=S.cloneElement(s,{className:ce(k.avatar,s.props.className)}));let A=null;m&&S.isValidElement(m)&&(A=S.cloneElement(m,{className:ce(k.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&z&&A&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const F={slots:I,slotProps:E},[W,K]=Ge("root",{elementType:h_,externalForwardedProps:{...F,...N},ownerState:P,shouldForwardComponentProp:!0,ref:L,className:ce(k.root,i),additionalProps:{disabled:_&&d?!0:void 0,tabIndex:C&&d?-1:T,...D},getSlotProps:X=>({...X,onClick:ne=>{var q;(q=X.onClick)==null||q.call(X,ne),p==null||p(ne)},onKeyDown:ne=>{var q;(q=X.onKeyDown)==null||q.call(X,ne),j(ne)},onKeyUp:ne=>{var q;(q=X.onKeyUp)==null||q.call(X,ne),v(ne)}})}),[Z,Y]=Ge("label",{elementType:g_,externalForwardedProps:F,ownerState:P,className:k.label});return b.jsxs(W,{as:O,...K,children:[z||A,b.jsx(Z,{...Y,children:h}),$]})});process.env.NODE_ENV!=="production"&&(Im.propTypes={avatar:r.element,children:sC,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,slotProps:r.shape({label:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({label:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const Em=320,Om=336,_m=232,b_=48,y_=["items","changeImportance"],v_=["getValue"],x_=te(bl,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function km(e){const{items:t,changeImportance:n="accept"}=e,o=xe(e,y_),{setValue:s}=Mw(),i=Rw();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=xe(l,v_);const d=c({isValid:i});return M({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(x_,M({dense:!0,sx:[{maxHeight:Om,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(wm,{children:b.jsx(Im,M({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(km.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const S_=["ownerState"];function C_(e){return e.view!==null}const T_=(e,t)=>{const{pickerOrientation:n}=t;return tt({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},xm,e)},w_=e=>{const{ownerState:t,defaultActionBarActions:n}=dt(),{view:o}=zo(),s=Dn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=S.useMemo(()=>M({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=T_(c,u),m=(a==null?void 0:a.actionBar)??Tm,h=We({elementType:m,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),p=xe(h,S_),g=b.jsx(m,M({},p)),f=a==null?void 0:a.toolbar,y=We({elementType:f,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),x=C_(y)&&f?b.jsx(f,M({},y)):null,w=i,T=a==null?void 0:a.tabs,C=o&&T?b.jsx(T,M({className:d.tabs},l==null?void 0:l.tabs)):null,I=(a==null?void 0:a.shortcuts)??km,E=We({elementType:I,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),N=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,R=o&&I?b.jsx(I,M({},E)):null;return{toolbar:x,content:w,tabs:C,actionBar:g,shortcuts:R,ownerState:M({},u,{hasShortcuts:N})}},I_=["sx","className","classes","children","slots","slotProps"],E_=(e,t)=>{const{pickerOrientation:n}=t;return tt({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},xm,e)},O_=te("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Un.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Un.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Un.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Un.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Un.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Un.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Un.shortcuts}`]:{gridColumn:4}}}]}),__=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),yi=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=w_(o),{orientation:d,variant:m}=zo(),{sx:h,className:p,classes:g}=o,f=xe(o,I_),y=E_(g,u);return b.jsxs(O_,M({ref:n,sx:h,className:ce(y.root,p),ownerState:u},f,{children:[d==="landscape"?c:s,d==="landscape"?s:c,b.jsx(__,{className:y.contentWrapper,ownerState:u,children:m==="desktop"?b.jsxs(S.Fragment,{children:[i,a]}):b.jsxs(S.Fragment,{children:[a,i]})}),l]}))});process.env.NODE_ENV!=="production"&&(yi.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(yi.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Pm(e){const{steps:t}=e;return HO({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:s,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const k_=["props","steps"],P_=["ownerState"],R_=e=>{var E;let{props:t,steps:n}=e,o=xe(e,k_);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Pm({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=vm(M({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),p=d.privateContextValue.labelId,g=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,f=s.field,y=We({elementType:f,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Nf(t),additionalProps:M({},g&&{id:p}),ownerState:h}),x=xe(y,P_),w=s.layout??yi;let T=p;g&&(a?T=`${p}-label`:T=void 0);const C=M({},i,{toolbar:M({},i==null?void 0:i.toolbar,{titleId:p}),popper:M({"aria-labelledby":T},i==null?void 0:i.popper)}),I=()=>b.jsxs(jf,M({},d,{children:[b.jsx(f,M({},x,{slots:M({},s,x.slots),slotProps:M({},C,x.slotProps),inputRef:l})),b.jsx(BO,{slots:s,slotProps:C,children:b.jsx(w,M({},C==null?void 0:C.layout,{slots:s,slotProps:C,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}};function N_(e){return ot("MuiPickersArrowSwitcher",e)}st("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const M_=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],$_=["ownerState"],D_=["ownerState"],A_=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),j_=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Xu=te(Jn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),L_=e=>tt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},N_,e),Rm=S.forwardRef(function(t,n){const o=Dn(),s=ze({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:m,nextLabel:h,isPreviousDisabled:p,isPreviousHidden:g,onGoToPrevious:f,previousLabel:y,labelId:x,classes:w}=s,T=xe(s,M_),{ownerState:C}=dt(),I=L_(w),E={isDisabled:u,isHidden:d,goTo:m,label:h},N={isDisabled:p,isHidden:g,goTo:f,label:y},R=(l==null?void 0:l.previousIconButton)??Xu,L=We({elementType:R,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:N.label,"aria-label":N.label,disabled:N.isDisabled,edge:"end",onClick:N.goTo},ownerState:M({},C,{isButtonHidden:N.isHidden??!1}),className:ce(I.button,I.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Xu,j=We({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:M({},C,{isButtonHidden:E.isHidden??!1}),className:ce(I.button,I.nextIconButton)}),v=(l==null?void 0:l.leftArrowIcon)??m0,_=We({elementType:v,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:I.leftArrowIcon}),O=xe(_,$_),P=(l==null?void 0:l.rightArrowIcon)??h0,k=We({elementType:P,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:I.rightArrowIcon}),D=xe(k,D_);return b.jsxs(A_,M({ref:n,className:ce(I.root,a),ownerState:C},T,{children:[b.jsx(R,M({},L,{children:o?b.jsx(P,M({},D)):b.jsx(v,M({},O))})),i?b.jsx(no,{variant:"subtitle1",component:"span",id:x,children:i}):b.jsx(j_,{className:I.spacer,ownerState:C}),b.jsx(V,M({},j,{children:o?b.jsx(v,M({},O)):b.jsx(P,M({},D))}))]}))});process.env.NODE_ENV!=="production"&&(Rm.displayName="PickersArrowSwitcher");const vl=te("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Em,maxHeight:Om,display:"flex",flexDirection:"column",margin:"0 auto"});function V_(e){return ot("MuiTimeClock",e)}st("MuiTimeClock",["root","arrowSwitcher"]);const Fo=220,cn=36,Tr={x:Fo/2,y:Fo/2},Nm={x:Tr.x,y:0},F_=Nm.x-Tr.x,B_=Nm.y-Tr.y,z_=e=>e*(180/Math.PI),Mm=(e,t,n)=>{const o=t-Tr.x,s=n-Tr.y,i=Math.atan2(F_,B_)-Math.atan2(o,s);let a=z_(i);a=Math.round(a/e)*e,a%=360;const l=Math.floor(a/e)||0,c=o**2+s**2,u=Math.sqrt(c);return{value:l,distance:u}},W_=(e,t,n=1)=>{const o=n*6;let{value:s}=Mm(o,e,t);return s=s*n%60,s},U_=(e,t,n)=>{const{value:o,distance:s}=Mm(30,e,t);let i=o||12;return n?i%=12:s<Fo/2-cn&&(i+=12,i%=24),i};function H_(e){return ot("MuiClockPointer",e)}st("MuiClockPointer",["root","thumb"]);const q_=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],Y_=e=>tt({root:["root"],thumb:["thumb"]},H_,e),G_=te("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),K_=te("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${cn/2}px)`,border:`${(cn-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function X_(e){const t=ze({props:e,name:"MuiClockPointer"}),{className:n,classes:o,isBetweenTwoClockValues:s,isInner:i,type:a,viewValue:l}=t,c=xe(t,q_),u=S.useRef(a);S.useEffect(()=>{u.current=a},[a]);const{ownerState:d}=dt(),m=M({},d,{isClockPointerAnimated:u.current!==a,isClockPointerBetweenTwoValues:s}),h=Y_(o),p=()=>{let f=360/(a==="hours"?12:60)*l;return a==="hours"&&l>12&&(f-=360),{height:Math.round((i?.26:.4)*Fo),transform:`rotateZ(${f}deg)`}};return b.jsx(G_,M({style:p(),className:ce(h.root,n),ownerState:m},c,{children:b.jsx(K_,{ownerState:m,className:h.thumb})}))}function Q_(e){return ot("MuiClock",e)}st("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const Z_=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return tt(n,Q_,e)},J_=te("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ek=te("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),tk=te("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),nk=te("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),ok=te("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),$m=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:cn,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),rk=te(Jn,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>M({},$m(e,"am"),{position:"absolute",left:8})),sk=te(Jn,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>M({},$m(e,"pm"),{position:"absolute",right:8})),Qu=te(no,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function ik(e){const t=ze({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:s,children:i,value:a,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:m,selectedId:h,type:p,viewValue:g,viewRange:[f,y],disabled:x=!1,readOnly:w,className:T,classes:C}=t,I=nt(),E=Qt(),{ownerState:N}=dt(),R=M({},N,{isClockDisabled:x,clockMeridiemMode:u}),L=S.useRef(!1),V=S.useRef(null),j=S.useRef(null),v=S.useRef(void 0),_=Z_(C,R),O=c(g,p),P=!n&&p==="hours"&&(g<1||g>12),k=(B,H)=>{x||w||c(B,p)||m(B,H)},D=(B,H)=>{const ae=j.current;if(!ae)return;const G=ae.getBoundingClientRect(),de=B.clientX-G.left,oe=B.clientY-G.top,ye=p==="seconds"||p==="minutes"?W_(de,oe,d):U_(de,oe,!!n);k(ye,H)},$=()=>{var B;L.current=!1,V.current=null,(B=v.current)==null||B.call(v)},z=ve(B=>{B.pointerId===V.current&&(B.preventDefault(),D(B,"shallow"))}),A=ve(B=>{B.pointerId===V.current&&($(),D(B,"finish"))}),F=ve(B=>{B.pointerId===V.current&&$()}),W=B=>{if(B.button>0||B.isPrimary===!1||x||w)return;$(),L.current=!0,V.current=B.pointerId;const H=Io(j.current);H.addEventListener("pointermove",z),H.addEventListener("pointerup",A),H.addEventListener("pointercancel",F),v.current=()=>{H.removeEventListener("pointermove",z),H.removeEventListener("pointerup",A),H.removeEventListener("pointercancel",F),v.current=void 0},D(B.nativeEvent,"shallow")},K=p==="hours"?!1:g%5!==0,Z=p==="minutes"?d:1,Y=S.useRef(null);mn(()=>{s&&Y.current.focus()},[s]),S.useEffect(()=>()=>{var B;return(B=v.current)==null?void 0:B.call(v)},[]);const X=B=>Math.max(f,Math.min(y,B)),ne=B=>(B+(y+1))%(y+1),q=B=>{if(!L.current)switch(B.key){case"Home":k(f,"partial"),B.preventDefault();break;case"End":k(y,"partial"),B.preventDefault();break;case"ArrowUp":k(ne(g+Z),"partial"),B.preventDefault();break;case"ArrowDown":k(ne(g-Z),"partial"),B.preventDefault();break;case"PageUp":k(X(g+5),"partial"),B.preventDefault();break;case"PageDown":k(X(g-5),"partial"),B.preventDefault();break;case"Enter":case" ":k(g,"finish"),B.preventDefault();break}};return b.jsxs(J_,{className:ce(_.root,T),children:[b.jsxs(ek,{className:_.clock,children:[b.jsx(nk,{ref:j,onPointerDown:W,ownerState:R,className:_.squareMask}),!O&&b.jsxs(S.Fragment,{children:[b.jsx(ok,{className:_.pin}),a!=null&&b.jsx(X_,{type:p,viewValue:g,isInner:P,isBetweenTwoClockValues:K})]}),b.jsx(tk,{"aria-activedescendant":h,"aria-label":E.clockLabelText(p,a==null?null:I.format(a,n?"fullTime12h":"fullTime24h")),ref:Y,role:"listbox",onKeyDown:q,tabIndex:0,className:_.wrapper,children:i})]}),n&&o&&b.jsxs(S.Fragment,{children:[b.jsx(rk,{onClick:w?void 0:()=>l("am"),disabled:x||u===null,ownerState:R,className:_.amButton,title:En(I,"am"),children:b.jsx(Qu,{variant:"caption",className:_.meridiemText,children:En(I,"am")})}),b.jsx(sk,{disabled:x||u===null,onClick:w?void 0:()=>l("pm"),ownerState:R,className:_.pmButton,title:En(I,"pm"),children:b.jsx(Qu,{variant:"caption",className:_.meridiemText,children:En(I,"pm")})})]})]})}function ak(e){return ot("MuiClockNumber",e)}const Qr=st("MuiClockNumber",["root","selected","disabled"]),lk=["className","classes","disabled","index","inner","label","selected"],ck=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return tt(n,ak,e)},uk=te("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Qr.disabled}`]:t.disabled},{[`&.${Qr.selected}`]:t.selected}]})(({theme:e})=>({height:cn,width:cn,position:"absolute",left:`calc((100% - ${cn}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Qr.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Qr.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Dm(e){const t=ze({props:e,name:"MuiClockNumber"}),{className:n,classes:o,disabled:s,index:i,inner:a,label:l,selected:c}=t,u=xe(t,lk),{ownerState:d}=dt(),m=M({},d,{isClockNumberInInnerRing:a,isClockNumberSelected:c,isClockNumberDisabled:s}),h=ck(o,m),p=i%12/12*Math.PI*2-Math.PI/2,g=(Fo-cn-2)/2*(a?.65:1),f=Math.round(Math.cos(p)*g),y=Math.round(Math.sin(p)*g);return b.jsx(uk,M({className:ce(h.root,n),"aria-disabled":s?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${f}px, ${y+(Fo-cn)/2}px`},ownerState:m},u,{children:l}))}const dk=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:s,adapter:i})=>{const a=t?i.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=m=>a===null?!1:e?m===12?a===12||a===0:a===m||a-12===m:a===m;for(let m=c;m<=u;m+=1){let h=m.toString();m===0&&(h="00");const p=!e&&(m===0||m>12);h=i.formatNumber(h);const g=d(m);l.push(b.jsx(Dm,{id:g?s:void 0,index:m,inner:p,selected:g,disabled:o(m),label:h,"aria-label":n(h)},m))}return l},Zu=({adapter:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:s})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,l],c)=>{const u=a===t;return b.jsx(Dm,{label:l,id:u?s:void 0,index:c+1,inner:!1,disabled:n(a),selected:u,"aria-label":o(l)},a)})},xl=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=S.useMemo(()=>jn.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:Cn.day,timezone:s,getTodayDate:()=>Ua(n,s,"date")}),[t,s]);return e??i},pk=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],fk=e=>tt({root:["root"],arrowSwitcher:["arrowSwitcher"]},V_,e),mk=te(vl,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),hk=te(Rm,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),gk=["hours","minutes"],Sl=S.forwardRef(function(t,n){const o=nt(),s=ze({props:t,name:"MuiTimeClock"}),{ampm:i=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:m,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:g,minTime:f,disableFuture:y,disablePast:x,minutesStep:w=1,shouldDisableTime:T,showViewSwitcher:C,onChange:I,view:E,views:N=gk,openTo:R,onViewChange:L,focusedView:V,onFocusedViewChange:j,className:v,classes:_,disabled:O,readOnly:P,timezone:k}=s,D=xe(s,pk),{value:$,handleValueChange:z,timezone:A}=Nr({name:"TimeClock",timezone:k,value:d,defaultValue:m,referenceDate:h,onChange:I,valueManager:jn}),F=xl({value:$,referenceDate:h,adapter:o,props:s,timezone:A}),W=Qt(),K=tl(A),Z=ol(),{ownerState:Y}=dt(),{view:X,setView:ne,previousView:q,nextView:B,setValueAndGoToNextView:H}=bi({view:E,views:N,openTo:R,onViewChange:L,onChange:z,focusedView:V,onFocusedViewChange:j}),{meridiemMode:ae,handleMeridiemChange:G}=cl(F,i,H),de=S.useCallback((me,re)=>{const J=Rr(p,o),ge=re==="hours"||re==="minutes"&&N.includes("seconds"),ie=({start:se,end:Ie})=>!(f&&J(f,Ie)||g&&J(se,g)||y&&J(se,K)||x&&J(K,ge?Ie:se)),he=(se,Ie=1)=>{if(se%Ie!==0)return!1;if(T)switch(re){case"hours":return!T(o.setHours(F,se),"hours");case"minutes":return!T(o.setMinutes(F,se),"minutes");case"seconds":return!T(o.setSeconds(F,se),"seconds");default:return!1}return!0};switch(re){case"hours":{const se=yr(me,ae,i),Ie=o.setHours(F,se);if(o.getHours(Ie)!==se)return!0;const ke=o.setSeconds(o.setMinutes(Ie,0),0),gt=o.setSeconds(o.setMinutes(Ie,59),59);return!ie({start:ke,end:gt})||!he(se)}case"minutes":{const se=o.setMinutes(F,me),Ie=o.setSeconds(se,0),ke=o.setSeconds(se,59);return!ie({start:Ie,end:ke})||!he(me,w)}case"seconds":{const se=o.setSeconds(F,me);return!ie({start:se,end:se})||!he(me)}default:throw new Error("not supported")}},[i,F,p,g,ae,f,w,T,o,y,x,K,N]),oe=S.useMemo(()=>{switch(X){case"hours":{const me=(ge,ie)=>{const he=yr(ge,ae,i);H(o.setHours(F,he),ie,"hours")},re=o.getHours(F);let J;return i?re>12?J=[12,23]:J=[0,11]:J=[0,23],{onChange:me,viewValue:re,children:dk({value:$,adapter:o,ampm:i,getClockNumberText:W.hoursClockNumberText,isDisabled:ge=>O||de(ge,"hours"),selectedId:Z}),viewRange:J}}case"minutes":{const me=o.getMinutes(F);return{viewValue:me,onChange:(J,ge)=>{H(o.setMinutes(F,J),ge,"minutes")},children:Zu({adapter:o,value:me,getClockNumberText:W.minutesClockNumberText,isDisabled:J=>O||de(J,"minutes"),selectedId:Z}),viewRange:[0,59]}}case"seconds":{const me=o.getSeconds(F);return{viewValue:me,onChange:(J,ge)=>{H(o.setSeconds(F,J),ge,"seconds")},children:Zu({adapter:o,value:me,getClockNumberText:W.secondsClockNumberText,isDisabled:J=>O||de(J,"seconds"),selectedId:Z}),viewRange:[0,59]}}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must provide the type for ClockView":Oe(147))}},[X,o,$,i,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,ae,H,F,de,Z,O]),ye=fk(_);return b.jsxs(mk,M({ref:n,className:ce(ye.root,v),ownerState:Y},D,{children:[b.jsx(ik,M({autoFocus:l??!!V,ampmInClock:a&&N.includes("hours"),value:$,type:X,ampm:i,minutesStep:w,isTimeDisabled:de,meridiemMode:ae,handleMeridiemChange:G,selectedId:Z,disabled:O,readOnly:P},oe)),C&&b.jsx(hk,{className:ye.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>ne(q),isPreviousDisabled:!q,previousLabel:W.openPreviousView,onGoToNext:()=>ne(B),isNextDisabled:!B,nextLabel:W.openNextView,ownerState:Y})]}))});process.env.NODE_ENV!=="production"&&(Sl.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(Sl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,showViewSwitcher:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Ju=Te("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ed=Te("MuiListItemIcon",["root","alignItemsFlexStart"]),td=Te("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function bk(e){return _e("MuiMenuItem",e)}const Xo=Te("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function Am(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Di(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jm(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 Qo(e,t,n,o,s,i){let a=!1,l=s(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!jm(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const Cl=S.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,p=S.useRef(null),g=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kn(()=>{s&&p.current.focus()},[s]),S.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const I=!p.current.style.width;if(T.clientHeight<p.current.clientHeight&&I){const E=`${Am(br(T))}px`;p.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,p.current.style.width=`calc(100% + ${E})`}return p.current}}),[]);const f=T=>{const C=p.current,I=T.key;if(T.ctrlKey||T.metaKey||T.altKey){d&&d(T);return}const N=or(Gt(C));if(I==="ArrowDown")T.preventDefault(),Qo(C,N,u,c,Di);else if(I==="ArrowUp")T.preventDefault(),Qo(C,N,u,c,nd);else if(I==="Home")T.preventDefault(),Qo(C,null,u,c,Di);else if(I==="End")T.preventDefault(),Qo(C,null,u,c,nd);else if(I.length===1){const R=g.current,L=I.toLowerCase(),V=performance.now();R.keys.length>0&&(V-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&L!==R.keys[0]&&(R.repeating=!1)),R.lastTime=V,R.keys.push(L);const j=N&&!R.repeating&&jm(N,R);R.previousKeyMatched&&(j||Qo(C,N,!1,c,Di,R))?T.preventDefault():R.previousKeyMatched=!1}d&&d(T)},y=ut(p,n);let x=-1;S.Children.forEach(a,(T,C)=>{if(!S.isValidElement(T)){x===C&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&nT.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
211
+ `)),T.props.disabled||(m==="selectedMenu"&&T.props.selected||x===-1)&&(x=C),x===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const w=S.Children.map(a,(T,C)=>{if(C===x){const I={};return i&&(I.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&(I.tabIndex=0),S.cloneElement(T,I)}return T});return b.jsx(bl,{role:"menu",ref:y,className:l,onKeyDown:f,tabIndex:s?0:-1,...h,children:w})});process.env.NODE_ENV!=="production"&&(Cl.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});function yk(e){const t=Gt(e);return t.body===e?br(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function od(e){return parseFloat(br(e).getComputedStyle(e).paddingRight)||0}function vk(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function rd(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!vk(a);l&&c&&pr(a,s)})}function Ai(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function xk(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(yk(o)){const a=Am(br(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${od(o)+a}px`;const l=Gt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${od(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Gt(o).body;else{const a=o.parentElement,l=br(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function Sk(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ck{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&pr(t.modalRef,!1);const s=Sk(n);rd(n,t.mount,t.modalRef,s,!0);const i=Ai(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=Ai(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=xk(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=Ai(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&pr(t.modalRef,n),rd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&pr(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Tk(e){return _e("MuiBackdrop",e)}Te("MuiBackdrop",["root","invisible"]);const wk=e=>{const{classes:t,invisible:n}=e;return De({root:["root",n&&"invisible"]},Tk,t)},Ik=te("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"}}]}),Tl=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:p,transitionDuration:g,...f}=o,y={...o,component:a,invisible:l},x=wk(y),w={transition:p,root:u.Root,...h},T={...d,...m},C={component:a,slots:w,slotProps:T},[I,E]=Ge("root",{elementType:Ik,externalForwardedProps:C,className:ce(x.root,i),ownerState:y}),[N,R]=Ge("transition",{elementType:$o,externalForwardedProps:C,ownerState:y});return b.jsx(N,{in:c,timeout:g,...f,...R,children:b.jsx(I,{"aria-hidden":!0,...E,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(Tl.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function Ek(e){return typeof e=="function"?e():e}function Ok(e){return e?e.props.hasOwnProperty("in"):!1}const sd=()=>{},Zr=new Ck;function _k(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,m=S.useRef({}),h=S.useRef(null),p=S.useRef(null),g=ut(p,d),[f,y]=S.useState(!u),x=Ok(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const T=()=>Gt(h.current),C=()=>(m.current.modalRef=p.current,m.current.mount=h.current,m.current),I=()=>{Zr.mount(C(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},E=wo(()=>{const P=Ek(t)||T().body;Zr.add(C(),P),p.current&&I()}),N=()=>Zr.isTopModal(C()),R=wo(P=>{h.current=P,P&&(u&&N()?I():p.current&&pr(p.current,w))}),L=S.useCallback(()=>{Zr.remove(C(),w)},[w]);S.useEffect(()=>()=>{L()},[L]),S.useEffect(()=>{u?E():(!x||!s)&&L()},[u,L,x,s,E]);const V=P=>k=>{var D;(D=P.onKeyDown)==null||D.call(P,k),!(k.key!=="Escape"||k.which===229||!N())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},j=P=>k=>{var D;(D=P.onClick)==null||D.call(P,k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(P={})=>{const k=cf(e);delete k.onTransitionEnter,delete k.onTransitionExited;const D={...k,...P};return{role:"presentation",...D,onKeyDown:V(D),ref:g}},getBackdropProps:(P={})=>{const k=P;return{"aria-hidden":!0,...k,onClick:j(k),open:u}},getTransitionProps:()=>{const P=()=>{y(!1),i&&i()},k=()=>{y(!0),a&&a(),s&&L()};return{onEnter:Sc(P,(l==null?void 0:l.props.onEnter)??sd),onExited:Sc(k,(l==null?void 0:l.props.onExited)??sd)}},rootRef:g,portalRef:R,isTopModal:N,exited:f,hasTransition:x}}function kk(e){return _e("MuiModal",e)}Te("MuiModal",["root","hidden","backdrop"]);const Pk=e=>{const{open:t,exited:n,classes:o}=e;return De({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kk,o)},Rk=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Nk=te(Tl,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Lm=S.forwardRef(function(t,n){const o=Ue({name:"MuiModal",props:t}),{BackdropComponent:s=Nk,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:p={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:w=!1,disableScrollLock:T=!1,hideBackdrop:C=!1,keepMounted:I=!1,onClose:E,onTransitionEnter:N,onTransitionExited:R,open:L,slotProps:V={},slots:j={},theme:v,..._}=o,O={...o,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:w,disableScrollLock:T,hideBackdrop:C,keepMounted:I},{getRootProps:P,getBackdropProps:k,getTransitionProps:D,portalRef:$,isTopModal:z,exited:A,hasTransition:F}=_k({...O,rootRef:n}),W={...O,exited:A},K=Pk(W),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),F){const{onEnter:H,onExited:ae}=D();Z.onEnter=H,Z.onExited=ae}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...j},slotProps:{...p,...V}},[X,ne]=Ge("root",{ref:n,elementType:Rk,externalForwardedProps:{...Y,..._,component:m},getSlotProps:P,ownerState:W,className:ce(l,K==null?void 0:K.root,!W.open&&W.exited&&(K==null?void 0:K.hidden))}),[q,B]=Ge("backdrop",{ref:i==null?void 0:i.ref,elementType:s,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:H=>k({...H,onClick:ae=>{H!=null&&H.onClick&&H.onClick(ae)}}),className:ce(i==null?void 0:i.className,K==null?void 0:K.backdrop),ownerState:W});return!I&&!L&&(!F||A)?null:b.jsx(Sr,{ref:$,container:d,disablePortal:x,children:b.jsxs(X,{...ne,children:[!C&&s?b.jsx(q,{...B}):null,b.jsx(Cr,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:z,open:L,children:S.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(Lm.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:$r.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Do,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const wl=S.createContext(null);process.env.NODE_ENV!=="production"&&(wl.displayName="SelectFocusSourceContext");function Mk(){return S.useContext(wl)}wl.Provider;function $k(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}const Dk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Ak=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:i,classes:a}=e,c=De({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},bk,a);return{...a,...c}},jk=te(Zn,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Dk})(Xe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Xo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Xo.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Xo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ju.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ju.inset}`]:{marginLeft:52},[`& .${td.root}`]:{marginTop:0,marginBottom:0},[`& .${td.inset}`]:{paddingLeft:36},[`& .${ed.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${ed.root} svg`]:{fontSize:"1.25rem"}}}]}))),Il=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...p}=o,g=Mk(),f=S.useContext(_n),y=S.useMemo(()=>({dense:a||f.dense||!1,disableGutters:c}),[f.dense,a,c]),x=S.useRef(null);kn(()=>{s&&(x.current?$k(x.current,g):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const w={...o,dense:y.dense,divider:l,disableGutters:c},T=Ak(o),C=ut(x,n),{root:I,...E}=T;let N;return o.disabled||(N=m!==void 0?m:-1),b.jsx(_n.Provider,{value:y,children:b.jsx(jk,{ref:C,role:d,tabIndex:N,component:i,focusVisibleClassName:ce(T.focusVisible,u),className:ce(T.root,h),...p,ownerState:w,classes:E})})});process.env.NODE_ENV!=="production"&&(Il.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function Lk(e){return ot("MuiDigitalClock",e)}st("MuiDigitalClock",["root","list","item"]);const Vk=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],Fk=e=>tt({root:["root"],list:["list"],item:["item"]},Lk,e),Bk=te(vl,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:_m,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),zk=te(Cl,{name:"MuiDigitalClock",slot:"List"})({padding:0}),Wk=te(Il,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),El=S.forwardRef(function(t,n){const o=nt(),s=S.useRef(null),i=ht(n,s),a=S.useRef(null),l=S.useRef(null),c=ze({props:t,name:"MuiDigitalClock"}),{ampm:u=o.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:m,slots:h,slotProps:p,value:g,defaultValue:f,referenceDate:y,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:w,minTime:T,disableFuture:C,disablePast:I,minutesStep:E=1,shouldDisableTime:N,onChange:R,view:L,openTo:V,onViewChange:j,focusedView:v,onFocusedViewChange:_,className:O,classes:P,disabled:k,readOnly:D,views:$=["hours"],skipDisabled:z=!1,timezone:A}=c,F=xe(c,Vk),{value:W,handleValueChange:K,timezone:Z}=Nr({name:"DigitalClock",timezone:A,value:g,defaultValue:f,referenceDate:y,onChange:R,valueManager:jn}),Y=Qt(),X=tl(Z),{ownerState:ne}=dt(),q=M({},ne,{hasDigitalClockAlreadyBeenRendered:!!s.current}),B=Fk(P),H=(h==null?void 0:h.digitalClockItem)??Wk,ae=We({elementType:H,externalSlotProps:p==null?void 0:p.digitalClockItem,ownerState:q,className:B.item}),G=xl({value:W,referenceDate:y,adapter:o,props:c,timezone:Z}),de=ve(ie=>K(ie,"finish","hours")),{setValueAndGoToNextView:oe}=bi({view:L,views:$,openTo:V,onViewChange:j,onChange:de,focusedView:v,onFocusedViewChange:_}),ye=ve(ie=>{oe(ie,"finish")});mn(()=>{if(s.current===null)return;const ie=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const he=ie.offsetTop;(m||v)&&ie!==l.current&&(l.current=ie,ie.focus()),s.current.scrollTop=he-4});const me=S.useCallback(ie=>{const he=Rr(x,o),se=()=>!(T&&he(T,ie)||w&&he(ie,w)||C&&he(ie,X)||I&&he(X,ie)),Ie=()=>o.getMinutes(ie)%E!==0?!1:N?!N(ie,"hours"):!0;return!se()||!Ie()},[x,o,T,w,C,X,I,E,N]),re=S.useMemo(()=>{const ie=[];let se=o.startOfDay(G);for(;o.isSameDay(G,se);)ie.push(se),se=o.addMinutes(se,d);return ie},[G,d,o]),J=re.findIndex(ie=>o.isEqual(ie,G)),ge=ie=>{switch(ie.key){case"PageUp":{const he=Ts(a.current)-5,se=a.current.children,Ie=Math.max(0,he),ke=se[Ie];ke&&ke.focus(),ie.preventDefault();break}case"PageDown":{const he=Ts(a.current)+5,se=a.current.children,Ie=Math.min(se.length-1,he),ke=se[Ie];ke&&ke.focus(),ie.preventDefault();break}}};return b.jsx(Bk,M({ref:i,className:ce(B.root,O),ownerState:q},F,{children:b.jsx(zk,{ref:a,role:"listbox","aria-label":Y.timePickerToolbarTitle,className:B.list,onKeyDown:ge,children:re.map((ie,he)=>{const se=me(ie);if(z&&se)return null;const Ie=o.isEqual(ie,W),ke=o.format(ie,u?"fullTime12h":"fullTime24h"),He=J===he||J===-1&&he===0?0:-1;return b.jsx(H,M({onClick:()=>!D&&ye(ie),selected:Ie,disabled:k||se,disableRipple:D,role:"option","aria-disabled":D,"aria-selected":Ie,tabIndex:He,itemValue:ie,formattedValue:ke},ae,{children:ke}),`${ie.valueOf()}-${ke}`)})})}))});process.env.NODE_ENV!=="production"&&(El.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(El.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function Uk(e){return ot("MuiMultiSectionDigitalClock",e)}st("MuiMultiSectionDigitalClock",["root"]);function Hk(e){return ot("MuiMultiSectionDigitalClockSection",e)}st("MuiMultiSectionDigitalClockSection",["root","item"]);const qk=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Yk=e=>tt({root:["root"],item:["item"]},Hk,e),Gk=te(Cl,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:_m,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),Kk=te(Il,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:b_,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),Vm=S.forwardRef(function(t,n){const o=S.useRef(null),s=ht(n,o),i=S.useRef(null),a=S.useRef(!1),l=ze({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:u,className:d,classes:m,disabled:h,readOnly:p,items:g,active:f,slots:y,slotProps:x,skipDisabled:w}=l,T=xe(l,qk),{ownerState:C}=dt(),I=M({},C,{hasDigitalClockAlreadyBeenRendered:!!o.current}),E=Yk(m),N=(y==null?void 0:y.digitalClockSectionItem)??Kk;mn(()=>{if(o.current===null)return;const j=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(!j)return;const v=document.activeElement,_=i.current===j,O=!!v&&o.current.contains(v),P=_&&a.current;if(f&&c&&(!_||P)&&(i.current==null||a.current||O)&&(i.current=j,a.current=!1,j.focus()),_)return;const k=j.offsetTop,D=j.offsetHeight,$=o.current.clientHeight,z=o.current.scrollHeight,A=k-$/2+D/2,F=z-$,W=Math.min(A,F);o.current.scrollTop=Math.max(0,W)});const R=ve(j=>{const v=j.relatedTarget,_=v==null?void 0:v.parentElement,O=v==null?void 0:v.getAttribute("role"),P=(_==null?void 0:_.nodeName)==="UL"&&_!==o.current||O==="gridcell";a.current=P,i.current&&(_==null?void 0:_.nodeName)==="UL"&&_!==o.current&&(i.current=null)});S.useEffect(()=>{f||(i.current=null)},[f]);const L=g.findIndex(j=>j.isFocused(j.value)),V=ve(j=>{switch(j.key){case"Tab":{a.current=!0;break}case"PageUp":{const v=Ts(o.current)-5,_=o.current.children,O=Math.max(0,v),P=_[O];P&&P.focus(),j.preventDefault();break}case"PageDown":{const v=Ts(o.current)+5,_=o.current.children,O=Math.min(_.length-1,v),P=_[O];P&&P.focus(),j.preventDefault();break}}});return b.jsx(Gk,M({ref:s,className:ce(E.root,d),ownerState:I,role:"listbox",onKeyDown:V,onBlur:R},T,{children:g.map((j,v)=>{var D;const _=(D=j.isDisabled)==null?void 0:D.call(j,j.value),O=h||_;if(w&&O)return null;const P=j.isSelected(j.value),k=L===v||L===-1&&v===0?0:-1;return b.jsx(N,M({onClick:()=>!p&&u(j.value),selected:P,disabled:O,disableRipple:p,role:"option","aria-disabled":p||O||void 0,"aria-label":j.ariaLabel,"aria-selected":P,tabIndex:k,className:E.item},x==null?void 0:x.digitalClockSectionItem,{children:j.label}),j.label)})}))});process.env.NODE_ENV!=="production"&&(Vm.displayName="MultiSectionDigitalClockSection");const Xk=({now:e,value:t,adapter:n,ampm:o,isDisabled:s,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(g,f)=>{const y=f??c;return y===null?!1:o?g===12?y===12||y===0:y===g||y-12===g:y===g},m=g=>d(g,n.getHours(l)),h=n.setDate(n.setMonth(n.startOfDay(e),0),15),p=o?11:23;for(let g=0;g<=p;g+=a){let f=n.format(n.setHours(h,g),o?"hours12h":"hours24h");const y=i(parseInt(f,10).toString());f=n.formatNumber(f),u.push({value:g,label:f,isSelected:d,isDisabled:s,isFocused:m,ariaLabel:y})}return u},id=({value:e,adapter:t,isDisabled:n,timeStep:o,resolveLabel:s,resolveAriaLabel:i,hasValue:a=!0})=>{const l=u=>e===null?!1:a&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const m=o*d;return{value:m,label:t.formatNumber(s(m)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:i(m.toString())}})]},Qk=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],Zk=e=>tt({root:["root"]},Uk,e),Jk=te(vl,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Ol=S.forwardRef(function(t,n){const o=nt(),s=Dn(),i=ze({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:m,defaultValue:h,referenceDate:p,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:f,minTime:y,disableFuture:x,disablePast:w,minutesStep:T=1,shouldDisableTime:C,onChange:I,view:E,views:N=["hours","minutes"],openTo:R,onViewChange:L,focusedView:V,onFocusedViewChange:j,className:v,classes:_,disabled:O,readOnly:P,skipDisabled:k=!1,timezone:D}=i,$=xe(i,Qk),{value:z,handleValueChange:A,timezone:F}=Nr({name:"MultiSectionDigitalClock",timezone:D,value:m,defaultValue:h,referenceDate:p,onChange:I,valueManager:jn}),W=Qt(),K=tl(F),Z=S.useMemo(()=>M({hours:1,minutes:5,seconds:5},l),[l]),Y=xl({value:z,referenceDate:p,adapter:o,props:i,timezone:F}),X=ve((ie,he,se)=>A(ie,he,se)),ne=S.useMemo(()=>!a||!N.includes("hours")||N.includes("meridiem")?N:[...N,"meridiem"],[a,N]),{view:q,setValueAndGoToNextView:B,focusedView:H}=bi({view:E,views:ne,openTo:R,onViewChange:L,onChange:X,focusedView:V,onFocusedViewChange:j}),ae=ve(ie=>{B(ie,"finish","meridiem")}),{meridiemMode:G,handleMeridiemChange:de}=cl(Y,a,ae,"finish"),oe=S.useCallback((ie,he)=>{const se=Rr(g,o),Ie=he==="hours"||he==="minutes"&&ne.includes("seconds"),ke=({start:He,end:ct})=>!(y&&se(y,ct)||f&&se(He,f)||x&&se(He,K)||w&&se(K,Ie?ct:He)),gt=(He,ct=1)=>{if(He%ct!==0)return!1;if(C)switch(he){case"hours":return!C(o.setHours(Y,He),"hours");case"minutes":return!C(o.setMinutes(Y,He),"minutes");case"seconds":return!C(o.setSeconds(Y,He),"seconds");default:return!1}return!0};switch(he){case"hours":{const He=yr(ie,G,a),ct=o.setHours(Y,He);if(o.getHours(ct)!==He)return!0;const Wt=o.setSeconds(o.setMinutes(ct,0),0),Vr=o.setSeconds(o.setMinutes(ct,59),59);return!ke({start:Wt,end:Vr})||!gt(He)}case"minutes":{const He=o.setMinutes(Y,ie),ct=o.setSeconds(He,0),Wt=o.setSeconds(He,59);return!ke({start:ct,end:Wt})||!gt(ie,T)}case"seconds":{const He=o.setSeconds(Y,ie);return!ke({start:He,end:He})||!gt(ie)}default:throw new Error("not supported")}},[a,Y,g,f,G,y,T,C,o,x,w,K,ne]),ye=S.useCallback(ie=>{switch(ie){case"hours":return{onChange:he=>{const se=yr(he,G,a);B(o.setHours(Y,se),"finish","hours")},items:Xk({now:K,value:z,ampm:a,adapter:o,isDisabled:he=>oe(he,"hours"),timeStep:Z.hours,resolveAriaLabel:W.hoursClockNumberText,valueOrReferenceDate:Y})};case"minutes":return{onChange:he=>{B(o.setMinutes(Y,he),"finish","minutes")},items:id({value:o.getMinutes(Y),adapter:o,isDisabled:he=>oe(he,"minutes"),resolveLabel:he=>o.format(o.setMinutes(K,he),"minutes"),timeStep:Z.minutes,hasValue:!!z,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:he=>{B(o.setSeconds(Y,he),"finish","seconds")},items:id({value:o.getSeconds(Y),adapter:o,isDisabled:he=>oe(he,"seconds"),resolveLabel:he=>o.format(o.setSeconds(K,he),"seconds"),timeStep:Z.seconds,hasValue:!!z,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const he=En(o,"am"),se=En(o,"pm");return{onChange:de,items:[{value:"am",label:he,isSelected:()=>!!z&&G==="am",isFocused:()=>!!Y&&G==="am",ariaLabel:he},{value:"pm",label:se,isSelected:()=>!!z&&G==="pm",isFocused:()=>!!Y&&G==="pm",ariaLabel:se}]}}default:throw new Error(process.env.NODE_ENV!=="production"?`MUI X Date Pickers: Unknown view "${ie}" found in MultiSectionDigitalClock. This view is not supported by the component. Use valid view values: "hours", "minutes", "seconds", or "meridiem".`:Oe(144,ie))}},[K,z,a,o,Z.hours,Z.minutes,Z.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,G,B,Y,oe,de]),me=S.useMemo(()=>{if(!s)return ne;const ie=ne.filter(he=>he!=="meridiem");return ie.reverse(),ne.includes("meridiem")&&ie.push("meridiem"),ie},[s,ne]),re=S.useMemo(()=>ne.reduce((ie,he)=>M({},ie,{[he]:ye(he)}),{}),[ne,ye]),{ownerState:J}=dt(),ge=Zk(_);return b.jsx(Jk,M({ref:n,className:ce(ge.root,v),ownerState:J,role:"group"},$,{children:me.map(ie=>b.jsx(Vm,{items:re[ie].items,onChange:re[ie].onChange,active:q===ie,autoFocus:c||H===ie,disabled:O,readOnly:P,slots:u,slotProps:d,skipDisabled:k,"aria-label":W.selectViewText(ie)},ie))}))});process.env.NODE_ENV!=="production"&&(Ol.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(Ol.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const ps=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:y,ampm:x,ampmInClock:w,slots:T,slotProps:C,readOnly:I,disabled:E,sx:N,autoFocus:R,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:j})=>b.jsx(Sl,{view:e,onViewChange:t,focusedView:n&&No(n)?n:null,onFocusedViewChange:o,views:s.filter(No),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:y,ampm:x,ampmInClock:w,slots:T,slotProps:C,readOnly:I,disabled:E,sx:N,autoFocus:R,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:j});process.env.NODE_ENV!=="production"&&(ps.displayName="renderTimeViewClock");const Fm=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:y,ampm:x,slots:w,slotProps:T,readOnly:C,disabled:I,sx:E,autoFocus:N,disableIgnoringDatePartForTimeValidation:R,timeSteps:L,skipDisabled:V,timezone:j})=>b.jsx(El,{view:e,onViewChange:t,focusedView:n&&No(n)?n:null,onFocusedViewChange:o,views:s.filter(No),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:y,ampm:x,slots:w,slotProps:T,readOnly:C,disabled:I,sx:E,autoFocus:N,disableIgnoringDatePartForTimeValidation:R,timeStep:L==null?void 0:L.minutes,skipDisabled:V,timezone:j});process.env.NODE_ENV!=="production"&&(Fm.displayName="renderDigitalClockTimeView");const aa=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:y,ampm:x,slots:w,slotProps:T,readOnly:C,disabled:I,sx:E,autoFocus:N,disableIgnoringDatePartForTimeValidation:R,timeSteps:L,skipDisabled:V,timezone:j})=>b.jsx(Ol,{view:e,onViewChange:t,focusedView:n&&If(n)?n:null,onFocusedViewChange:o,views:s.filter(No),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:y,ampm:x,slots:w,slotProps:T,readOnly:C,disabled:I,sx:E,autoFocus:N,disableIgnoringDatePartForTimeValidation:R,timeSteps:L,skipDisabled:V,timezone:j});process.env.NODE_ENV!=="production"&&(aa.displayName="renderMultiSectionDigitalClockTimeView");const eP=(e,t,n)=>n?t.filter(o=>!If(o)||o==="hours"):e?[...t,"meridiem"]:t,tP=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function nP({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=M({hours:1,minutes:5,seconds:5},n),a=tP(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:eP(t,o,a)}}const _l=S.forwardRef(function(t,n){var f,y;const o=nt(),s=em(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:l}=nP(s),c=i?Fm:aa,u=M({hours:c,minutes:c,seconds:c,meridiem:c},s.viewRenderers),d=s.ampmInClock??!0,h=((f=u.hours)==null?void 0:f.name)===aa.name?a:a.filter(x=>x!=="meridiem"),p=M({},s,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:Of(o,s),views:i?["hours"]:h,slots:M({field:fi},s.slots),slotProps:M({},s.slotProps,{field:x=>{var w;return M({},Ro((w=s.slotProps)==null?void 0:w.field,x),Af(s))},toolbar:M({hidden:!0,ampmInClock:d},(y=s.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:g}=R_({ref:n,props:p,valueManager:jn,valueType:"time",validator:ri,steps:null});return g()});process.env.NODE_ENV!=="production"&&(_l.displayName="DesktopTimePicker");process.env.NODE_ENV!=="production"&&(_l.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:gn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});function oP(e){return _e("MuiDialogContent",e)}Te("MuiDialogContent",["root","dividers"]);const rP=Te("MuiDialogTitle",["root"]),sP=e=>{const{classes:t,dividers:n}=e;return De({root:["root",n&&"dividers"]},oP,t)},iP=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${rP.root} + &`]:{paddingTop:0}}}]}))),Bm=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=o,l={...o,dividers:i},c=sP(l);return b.jsx(iP,{className:ce(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Bm.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function aP(e){return _e("MuiDialog",e)}const fr=Te("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),zm=S.createContext({});process.env.NODE_ENV!=="production"&&(zm.displayName="DialogContext");const lP=te(Tl,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),cP=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(o))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return De(a,aP,t)},uP=te(Lm,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),dP=te("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"}}}]}),pP=te(Dr,{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]}})(Xe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${fr.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}`,[`&.${fr.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,[`&.${fr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Wm=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiDialog"}),s=Pr(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:m,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:y="sm",onClick:x,onClose:w,open:T,PaperComponent:C=Dr,PaperProps:I={},role:E="dialog",scroll:N="paper",slots:R={},slotProps:L={},TransitionComponent:V=$o,transitionDuration:j=i,TransitionProps:v,..._}=o,O={...o,disableEscapeKeyDown:p,fullScreen:g,fullWidth:f,maxWidth:y,scroll:N},P=cP(O),k=S.useRef(),D=oe=>{k.current=oe.target===oe.currentTarget},$=oe=>{x&&x(oe),k.current&&(k.current=null,w&&w(oe,"backdropClick"))},z=ja(l),A=S.useMemo(()=>({titleId:z}),[z]),F={transition:V,...R},W={transition:v,paper:I,backdrop:d,...L},K={slots:F,slotProps:W},[Z,Y]=Ge("root",{elementType:uP,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:O,className:ce(P.root,h),ref:n}),[X,ne]=Ge("backdrop",{elementType:lP,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:O,className:P.backdrop}),[q,B]=Ge("paper",{elementType:pP,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:O,className:P.paper,additionalProps:{elevation:24,role:E,"aria-describedby":a,"aria-labelledby":z,"aria-modal":c,tabIndex:-1,[ia]:""}}),[H,ae]=Ge("container",{elementType:dP,externalForwardedProps:K,ownerState:O,className:P.container}),[G,de]=Ge("transition",{elementType:$o,externalForwardedProps:K,ownerState:O,additionalProps:{appear:!0,in:T,timeout:j,role:"presentation"}});return b.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:j,as:u,...ne}},disableEscapeKeyDown:p,onClose:w,open:T,onClick:$,...Y,..._,children:b.jsx(G,{...de,children:b.jsx(H,{onMouseDown:D,...ae,children:b.jsx(q,{as:C,...B,children:b.jsx(zm.Provider,{value:A,children:m})})})})})});process.env.NODE_ENV!=="production"&&(Wm.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,role:r.oneOf(["alertdialog","dialog"]),scroll:r.oneOf(["body","paper"]),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),container:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,container:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const fP=te(Wm,{slot:"internal"})({[`& .${fr.container}`]:{outline:0},[`& .${fr.paper}`]:{outline:0,minWidth:Em}}),mP=te(Bm,{slot:"internal"})({"&:first-of-type":{padding:0}});function hP(e){var c,u;const{children:t,slots:n,slotProps:o}=e,{open:s}=zo(),{dismissViews:i,onPopperExited:a}=dt(),l=(n==null?void 0:n.dialog)??fP;return b.jsx(l,M({open:s,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{PaperComponent:n==null?void 0:n.mobilePaper,slots:M({transition:(n==null?void 0:n.mobileTransition)??$o},(c=o==null?void 0:o.dialog)==null?void 0:c.slots),slotProps:M({transition:o==null?void 0:o.mobileTransition,paper:o==null?void 0:o.mobilePaper},(u=o==null?void 0:o.dialog)==null?void 0:u.slotProps),children:b.jsx(mP,{children:t})}))}const gP=["props","steps"],bP=["ownerState"],yP=e=>{var E;let{props:t,steps:n}=e,o=xe(e,gP);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Pm({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=vm(M({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),p=d.privateContextValue.labelId,g=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,f=s.field,y=We({elementType:f,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Nf(t),additionalProps:M({},g&&{id:p}),ownerState:h}),x=xe(y,bP),w=s.layout??yi;let T=p;g&&(a?T=`${p}-label`:T=void 0);const C=M({},i,{toolbar:M({},i==null?void 0:i.toolbar,{titleId:p}),mobilePaper:M({"aria-labelledby":T},i==null?void 0:i.mobilePaper)}),I=()=>b.jsxs(jf,M({},d,{children:[b.jsx(f,M({},x,{slots:M({},s,x.slots),slotProps:M({},C,x.slotProps),inputRef:l})),b.jsx(hP,{slots:s,slotProps:C,children:b.jsx(w,M({},C==null?void 0:C.layout,{slots:s,slotProps:C,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}},kl=S.forwardRef(function(t,n){var u;const o=nt(),s=em(t,"MuiMobileTimePicker"),i=M({hours:ps,minutes:ps,seconds:ps},s.viewRenderers),a=s.ampmInClock??!1,l=M({},s,{ampmInClock:a,viewRenderers:i,format:Of(o,s),slots:M({field:fi},s.slots),slotProps:M({},s.slotProps,{field:d=>{var m;return M({},Ro((m=s.slotProps)==null?void 0:m.field,d),Af(s))},toolbar:M({hidden:!1,ampmInClock:a},(u=s.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=yP({ref:n,props:l,valueManager:jn,valueType:"time",validator:ri,steps:null});return c()});process.env.NODE_ENV!=="production"&&(kl.displayName="MobileTimePicker");process.env.NODE_ENV!=="production"&&(kl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:gn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const vP=["desktopModeMediaQuery"],Pl=S.forwardRef(function(t,n){const o=ze({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s=vw}=o,i=xe(o,vP);return Tf(s,{defaultMatches:!0})?b.jsx(_l,M({ref:n},i)):b.jsx(kl,M({ref:n},i))});process.env.NODE_ENV!=="production"&&(Pl.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(Pl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:gn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Um=Q.forwardRef(function(t,n){const{overStyled:o=!1,disabled:s,data:i,onChange:a,className:l,value:c,defaultValue:u,error:d,...m}=t,h=fe(m,o),p=h;delete p.size,delete p.variant,delete p.className;const g=l?`${ft.root} ${l}`:ft.root,f=c??u,y=()=>i.map((x,w)=>typeof x=="string"?b.jsx(pe.MenuItem,{value:x,className:ft.option,"data-selected":x===f?"true":void 0,children:x},`${x}-${w}`):b.jsx(pe.MenuItem,{value:x.value,disabled:x.disabled,className:ft.option,"data-selected":x.value===f?"true":void 0,children:x.label},`${x.value}-${w}`));return b.jsx(pe.Select,{ref:n,disabled:s,value:c,defaultValue:u,onChange:x=>a==null?void 0:a(x.target.value??null),displayEmpty:!0,error:!!d,className:g,classes:{select:ft.input,icon:ft.icon},MenuProps:{classes:{paper:ft.dropdown}},"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,inputProps:{"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,...p.inputProps},...h,children:y()})});Um.displayName="BareDropdown";const xP="TimePicker-module__layoutOverride___zKo4Q",SP="TimePicker-module__root___BcvRu",CP="TimePicker-module__field___lOxtw",TP="TimePicker-module__amPmSelect___mSdvt",Zo={layoutOverride:xP,root:SP,field:CP,amPmSelect:TP};it.extend(Cf);const Hm="HH:mm:ss",qm="HH:mm",wP=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function xo(e){if(!e)return;const t=e.length>5?Hm:qm;return it(e,t)}function IP(e){const t=xo(e);return t?t.format(e&&e.length>5?"h:mm:ss A":"h:mm A"):e}const Ym=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:f,className:y,style:x,disabled:w,readOnly:T,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:N,onChange:R,withSeconds:L,minTime:V,maxTime:j,...v}=t,_=fe(v,o),[O,P]=Q.useState(()=>xo(E)??xo(N)??null);Q.useEffect(()=>{E!==void 0&&P(xo(E)??null)},[E]);const k=O?O.hour()>=12:!1,D=y?`${Zo.layoutOverride} ${y}`:Zo.layoutOverride,$=F=>{P(F),R==null||R(F?F.format(L?Hm:qm):null)},z=F=>{$(F)},A=F=>{if(!O||!F)return;const W=F==="PM",K=O.hour(),Z=K>=12;if(W===Z)return;const Y=W?K+12:K-12;$(O.hour(Y))};return b.jsx(Bt,{ref:n,className:D,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:p,required:g,id:f,readOnly:T,readOnlyComponent:C,emptyValueComponent:I||void 0,readOnlyType:"text",readOnlyValue:IP(E!==void 0?E:N),readOnlyNativeProps:t,activeComponent:b.jsxs("div",{className:Zo.root,"data-error":p?"true":void 0,children:[b.jsx(ti,{dateAdapter:ZT,children:b.jsx(Pl,{value:O,onChange:z,disabled:w,format:`hh:${L?"mm:ss":"mm"}`,views:L?["hours","minutes","seconds"]:["hours","minutes"],minTime:xo(V),maxTime:xo(j),slots:{openPickerButton:()=>null},slotProps:{field:{className:Zo.field}},..._})}),b.jsx(Um,{overStyled:!0,className:Zo.amPmSelect,style:{width:"fit-content"},data:wP,value:k?"PM":"AM",onChange:A,disabled:w,error:!!p,"aria-label":"AM or PM"})]})})});Ym.displayName="TimePicker";const EP="Timeline-module__root___LwRdZ",OP="Timeline-module__item___T5xdQ",_P="Timeline-module__itemBody___XAV-E",kP="Timeline-module__itemBullet___rPXCy",PP="Timeline-module__itemTitle___GgRRW",RP="Timeline-module__itemContent___vurs-",NP="Timeline-module__description___f9sxV",MP="Timeline-module__timestamp___owiRu",xn={root:EP,item:OP,itemBody:_P,itemBullet:kP,itemTitle:PP,itemContent:RP,description:NP,timestamp:MP},Rl=Q.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:s,children:i,...a},l){const c=fe(a,t),u={item:xn.item,itemBody:xn.itemBody,itemContent:xn.itemContent,itemBullet:xn.itemBullet,itemTitle:xn.itemTitle},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;Object.keys(h).forEach(p=>{u[p]?u[p]=`${u[p]} ${h[p]}`:u[p]=h[p]})}const m=n?b.jsxs(b.Fragment,{children:[i&&b.jsx("div",{className:xn.description,children:i}),b.jsx("div",{className:xn.timestamp,children:n})]}):i;return b.jsx(hf,{ref:l,classes:u,"data-variant":o,...c,children:m})});Rl.displayName="TimelineItem";const Gm=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i={root:xn.root},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const l=a;Object.keys(l).forEach(c=>{i[c]?i[c]=`${i[c]} ${l[c]}`:i[c]=l[c]})}return b.jsx(mf,{ref:o,classes:i,...s})});Gm.displayName="Timeline";const Km=Gm;Km.Item=Rl;const Xm=Q.forwardRef(function({order:t=1,component:n,...o},s){const i=`recursica_brand_typography_h${t}`,a=`h${t}`;return b.jsx(ei,{ref:s,typographyClass:i,component:n||a,...o})});Xm.displayName="Title";const $P="Toast-module__root___MUvfI",DP="Toast-module__icon___VwvE1",AP="Toast-module__title___-H6R2",jP="Toast-module__description___-QwfC",LP="Toast-module__closeButton___vGr7g",VP="Toast-module__body___VLkXA",fo={root:$P,icon:DP,title:AP,description:jP,closeButton:LP,body:VP},FP=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),Qm=Q.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:s,icon:i,children:a,onClose:l,className:c,...u},d){const m=fe(u,t),h={root:fo.root,message:fo.body,icon:fo.icon,action:fo.closeButton},p=m.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const f=p;Object.keys(f).forEach(y=>{h[y]?h[y]=`${h[y]} ${f[y]}`:h[y]=f[y]})}const g=()=>{l&&l()};return b.jsxs(pe.Alert,{ref:d,icon:i,"data-variant":n,className:`${c||""}`,classes:h,action:o?b.jsx(pe.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:g,children:b.jsx(FP,{})}):void 0,...m,children:[s&&b.jsx(pe.AlertTitle,{className:fo.title,children:s}),b.jsx("div",{className:fo.description,children:a})]})});Qm.displayName="Toast";const BP="Tooltip-module__tooltip___UA7H9",zP="Tooltip-module__arrow___4zROk",ad={tooltip:BP,arrow:zP},Zm=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:s,...i}){const{title:a,...l}=i,c=fe(l,t),u={tooltip:ad.tooltip,arrow:ad.arrow},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const p=d;Object.keys(p).forEach(g=>{u[g]?u[g]=`${u[g]} ${p[g]}`:u[g]=p[g]})}const m=c.withArrow,h=n??m;return b.jsx(pe.Tooltip,{title:o||a||"",open:s,placement:"top",arrow:h,classes:u,...c})};Zm.displayName="Tooltip";const WP=Zm,UP=e=>b.jsx("div",{...e,children:"TransferList"}),ld={};function Jm(e,t){const n=S.useRef(ld);return n.current===ld&&(n.current=e(t)),n}function la(e,t,n,o){const s=Jm(HP).current;return qP(s,e,t,n,o)&&YP(s,[e,t,n,o]),s.callback}function HP(){return{callback:null,cleanup:null,refs:[]}}function qP(e,t,n,o,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==s}function YP(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(o[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=o[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}var GP=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const s={};e(s)===s&&(o=!0)}catch{}if(o){let s;try{throw new Error}catch(i){({stack:s}=i)}console.warn(`The result function returned its own inputs without modification. e.g
178
212
  \`createSelector([state => state.todos], todos => todos)\`
179
213
  This could lead to inefficient memoization and unnecessary re-renders.
180
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:r})}}},ay=(e,t,n)=>{const{memoize:o,memoizeOptions:r}=t,{inputSelectorResults:s,inputSelectorResultsCopy:i}=e,a=o(()=>({}),...r);if(!(a.apply(null,s)===a.apply(null,i))){let c;try{throw new Error}catch(p){({stack:c}=p)}console.warn(`An input selector returned a different result when passed same arguments.
214
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},KP=(e,t,n)=>{const{memoize:o,memoizeOptions:s}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=o(()=>({}),...s);if(!(l.apply(null,i)===l.apply(null,a))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
181
215
  This means your output selector will likely run more frequently than intended.
182
216
  Avoid returning a new reference inside your input selector, e.g.
183
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:i,stack:c})}},ly={inputStabilityCheck:"once",identityFunctionCheck:"once"},eo=Symbol("NOT_FOUND");function cy(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function uy(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var ti=e=>Array.isArray(e)?e:[e];function dy(e){const t=Array.isArray(e[0])?e[0]:e;return uy(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ni(e,t){const n=[],{length:o}=e;for(let r=0;r<o;r++)n.push(e[r].apply(null,t));return n}var py=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:o}={...ly,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:iy},inputStabilityCheck:{shouldRun:o==="always"||o==="once"&&e,run:ay}}};function fy(e){let t;return{get(n){return t&&e(t.key,n)?t.value:eo},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function my(e,t){let n=[];function o(a){const u=n.findIndex(c=>t(a,c.key));if(u>-1){const c=n[u];return u>0&&(n.splice(u,1),n.unshift(c)),c.value}return eo}function r(a,u){o(a)===eo&&(n.unshift({key:a,value:u}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:o,put:r,getEntries:s,clear:i}}var hy=(e,t)=>e===t;function gy(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:r}=n;for(let s=0;s<r;s++)if(!e(n[s],o[s]))return!1;return!0}}function yy(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=hy,maxSize:r=1,resultEqualityCheck:s}=n,i=gy(o);let a=0;const u=r<=1?fy(i):my(r,i);function c(){let p=u.get(arguments);if(p===eo){if(p=e.apply(null,arguments),a++,s){const h=u.getEntries().find(d=>s(d.value,p));h&&(p=h.value,a!==0&&a--)}u.put(arguments,p)}return p}return c.clearCache=()=>{u.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var by=class{constructor(e){this.value=e}deref(){return this.value}},vy=()=>typeof WeakRef>"u"?by:WeakRef,fl=vy(),_y=0,oi=1;function Ln(){return{s:_y,v:void 0,o:null,p:null}}function xy(e){return e instanceof fl?e.deref():e}function Cy(e,t={}){let n=Ln();const{resultEqualityCheck:o}=t;let r,s=0;function i(){let a=n;const{length:u}=arguments;for(let f=0,h=u;f<h;f++){const d=arguments[f];if(typeof d=="function"||typeof d=="object"&&d!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const m=y.get(d);m===void 0?(a=Ln(),y.set(d,a)):a=m}else{let y=a.p;y===null&&(a.p=y=new Map);const m=y.get(d);m===void 0?(a=Ln(),y.set(d,a)):a=m}}const c=a;let p;if(a.s===oi)p=a.v;else if(p=e.apply(null,arguments),s++,o){const f=xy(r);f!=null&&o(f,p)&&(p=f,s!==0&&s--),r=typeof p=="object"&&p!==null||typeof p=="function"?new fl(p):p}return c.s=oi,c.v=p,p}return i.clearCache=()=>{n=Ln(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function Sy(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...r)=>{let s=0,i=0,a,u={},c=r.pop();typeof c=="object"&&(u=c,c=r.pop()),cy(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const p={...n,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=Cy,argsMemoizeOptions:y=[]}=p,m=ti(h),v=ti(y),_=dy(r),S=f(function(){return s++,c.apply(null,arguments)},...m);let E=!0;const C=d(function(){i++;const I=ni(_,arguments);if(a=S.apply(null,I),process.env.NODE_ENV!=="production"){const{devModeChecks:w={}}=p,{identityFunctionCheck:N,inputStabilityCheck:L}=py(E,w);if(N.shouldRun&&N.run(c,I,a),L.shouldRun){const F=ni(_,arguments);L.run({inputSelectorResults:I,inputSelectorResultsCopy:F},{memoize:f,memoizeOptions:m},arguments)}E&&(E=!1)}return a},...v);return Object.assign(C,{resultFunc:c,memoizedResultFunc:S,dependencies:_,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:d})};return Object.assign(o,{withTypes:()=>o}),o}const Iy=Sy({memoize:yy,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),ce=(e,t,n,o,r,s,i,a,...u)=>{if(u.length>0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of selectors. The createSelector function supports up to 8 input selectors. Consider combining selectors or restructuring your selector logic.":Ve(179));let c;if(e&&t&&n&&o)c=(p,f,h,d)=>{const y=e(p,f,h,d),m=t(p,f,h,d),v=n(p,f,h,d);return o(y,m,v,f,h,d)};else if(e&&t&&n)c=(p,f,h,d)=>{const y=e(p,f,h,d),m=t(p,f,h,d);return n(y,m,f,h,d)};else if(e&&t)c=(p,f,h,d)=>{const y=e(p,f,h,d);return t(y,f,h,d)};else if(e)c=e;else throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Missing arguments for createSelector. At least one selector function is required. Provide one or more selector functions as arguments.":Ve(180));return c},Ty=e=>(...t)=>{const n=new WeakMap;let o=1;const r=t[t.length-1],s=t.length-1||1,i=Math.max(r.length-s,0);if(i>3)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector combiner. The combiner function supports up to 3 additional arguments beyond the selector outputs. Consider restructuring your selector to use fewer arguments.":Ve(181));return(u,c,p,f)=>{let h=u.__cacheKey__;h||(h={id:o},u.__cacheKey__=h,o+=1);let d=n.get(h);if(!d){const y=t.length===1?[_=>_,r]:t;let m=t;const v=[void 0,void 0,void 0];switch(i){case 0:break;case 1:{m=[...y.slice(0,-1),()=>v[0],r];break}case 2:{m=[...y.slice(0,-1),()=>v[0],()=>v[1],r];break}case 3:{m=[...y.slice(0,-1),()=>v[0],()=>v[1],()=>v[2],r];break}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector. The memoized selector supports up to 3 additional arguments. Consider restructuring your selector to use fewer arguments.":Ve(182))}d=Iy(...m),d.selectorArgs=v,n.set(h,d)}switch(i){case 3:d.selectorArgs[2]=f;case 2:d.selectorArgs[1]=p;case 1:d.selectorArgs[0]=c}switch(i){case 0:return d(u);case 1:return d(u,c);case 2:return d(u,c,p);case 3:return d(u,c,p,f);default:throw new Error("unreachable")}}},Nn=Ty();var Dn={exports:{}},Vo={};/**
217
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},XP={inputStabilityCheck:"once",identityFunctionCheck:"once"},_s=Symbol("NOT_FOUND");function QP(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ZP(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var cd=e=>Array.isArray(e)?e:[e];function JP(e){const t=Array.isArray(e[0])?e[0]:e;return ZP(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ud(e,t){const n=[],{length:o}=e;for(let s=0;s<o;s++)n.push(e[s].apply(null,t));return n}var e1=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:o}={...XP,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:GP},inputStabilityCheck:{shouldRun:o==="always"||o==="once"&&e,run:KP}}};function t1(e){let t;return{get(n){return t&&e(t.key,n)?t.value:_s},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function n1(e,t){let n=[];function o(l){const c=n.findIndex(u=>t(l,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return _s}function s(l,c){o(l)===_s&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:o,put:s,getEntries:i,clear:a}}var o1=(e,t)=>e===t;function r1(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:s}=n;for(let i=0;i<s;i++)if(!e(n[i],o[i]))return!1;return!0}}function s1(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=o1,maxSize:s=1,resultEqualityCheck:i}=n,a=r1(o);let l=0;const c=s<=1?t1(a):n1(s,a);function u(){let d=c.get(arguments);if(d===_s){if(d=e.apply(null,arguments),l++,i){const h=c.getEntries().find(p=>i(p.value,d));h&&(d=h.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var i1=class{constructor(e){this.value=e}deref(){return this.value}},a1=()=>typeof WeakRef>"u"?i1:WeakRef,eh=a1(),l1=0,dd=1;function Jr(){return{s:l1,v:void 0,o:null,p:null}}function c1(e){return e instanceof eh?e.deref():e}function u1(e,t={}){let n=Jr();const{resultEqualityCheck:o}=t;let s,i=0;function a(){let l=n;const{length:c}=arguments;for(let m=0,h=c;m<h;m++){const p=arguments[m];if(typeof p=="function"||typeof p=="object"&&p!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(p);f===void 0?(l=Jr(),g.set(p,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(p);f===void 0?(l=Jr(),g.set(p,l)):l=f}}const u=l;let d;if(l.s===dd)d=l.v;else if(d=e.apply(null,arguments),i++,o){const m=c1(s);m!=null&&o(m,d)&&(d=m,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new eh(d):d}return u.s=dd,u.v=d,d}return a.clearCache=()=>{n=Jr(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function d1(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...s)=>{let i=0,a=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),QP(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:m,memoizeOptions:h=[],argsMemoize:p=u1,argsMemoizeOptions:g=[]}=d,f=cd(h),y=cd(g),x=JP(s),w=m(function(){return i++,u.apply(null,arguments)},...f);let T=!0;const C=p(function(){a++;const E=ud(x,arguments);if(l=w.apply(null,E),process.env.NODE_ENV!=="production"){const{devModeChecks:N={}}=d,{identityFunctionCheck:R,inputStabilityCheck:L}=e1(T,N);if(R.shouldRun&&R.run(u,E,l),L.shouldRun){const V=ud(x,arguments);L.run({inputSelectorResults:E,inputSelectorResultsCopy:V},{memoize:m,memoizeOptions:f},arguments)}T&&(T=!1)}return l},...y);return Object.assign(C,{resultFunc:u,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:m,argsMemoize:p})};return Object.assign(o,{withTypes:()=>o}),o}const p1=d1({memoize:s1,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Ce=(e,t,n,o,s,i,a,l,...c)=>{if(c.length>0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of selectors. The createSelector function supports up to 8 input selectors. Consider combining selectors or restructuring your selector logic.":Oe(179));let u;if(e&&t&&n&&o)u=(d,m,h,p)=>{const g=e(d,m,h,p),f=t(d,m,h,p),y=n(d,m,h,p);return o(g,f,y,m,h,p)};else if(e&&t&&n)u=(d,m,h,p)=>{const g=e(d,m,h,p),f=t(d,m,h,p);return n(g,f,m,h,p)};else if(e&&t)u=(d,m,h,p)=>{const g=e(d,m,h,p);return t(g,m,h,p)};else if(e)u=e;else throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Missing arguments for createSelector. At least one selector function is required. Provide one or more selector functions as arguments.":Oe(180));return u},f1=e=>(...t)=>{const n=new WeakMap;let o=1;const s=t[t.length-1],i=t.length-1||1,a=Math.max(s.length-i,0);if(a>3)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector combiner. The combiner function supports up to 3 additional arguments beyond the selector outputs. Consider restructuring your selector to use fewer arguments.":Oe(181));return(c,u,d,m)=>{let h=c.__cacheKey__;h||(h={id:o},c.__cacheKey__=h,o+=1);let p=n.get(h);if(!p){const g=t.length===1?[x=>x,s]:t;let f=t;const y=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{f=[...g.slice(0,-1),()=>y[0],s];break}case 2:{f=[...g.slice(0,-1),()=>y[0],()=>y[1],s];break}case 3:{f=[...g.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],s];break}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector. The memoized selector supports up to 3 additional arguments. Consider restructuring your selector to use fewer arguments.":Oe(182))}p=p1(...f),p.selectorArgs=y,n.set(h,p)}switch(a){case 3:p.selectorArgs[2]=m;case 2:p.selectorArgs[1]=d;case 1:p.selectorArgs[0]=u}switch(a){case 0:return p(c);case 1:return p(c,u);case 2:return p(c,u,d);case 3:return p(c,u,d,m);default:throw new Error("unreachable")}}},Lr=f1();var es={exports:{}},ji={};/**
184
218
  * @license React
185
219
  * use-sync-external-store-shim.production.js
186
220
  *
@@ -188,7 +222,7 @@ Avoid returning a new reference inside your input selector, e.g.
188
222
  *
189
223
  * This source code is licensed under the MIT license found in the
190
224
  * LICENSE file in the root directory of this source tree.
191
- */var ri;function Ey(){if(ri)return Vo;ri=1;var e=O;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(f,h){var d=h(),y=o({inst:{value:d,getSnapshot:h}}),m=y[0].inst,v=y[1];return s(function(){m.value=d,m.getSnapshot=h,u(m)&&v({inst:m})},[f,d,h]),r(function(){return u(m)&&v({inst:m}),f(function(){u(m)&&v({inst:m})})},[f]),i(d),d}function u(f){var h=f.getSnapshot;f=f.value;try{var d=h();return!n(f,d)}catch{return!0}}function c(f,h){return h()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Vo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Vo}var Bo={};/**
225
+ */var pd;function m1(){if(pd)return ji;pd=1;var e=Q;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,s=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(m,h){var p=h(),g=o({inst:{value:p,getSnapshot:h}}),f=g[0].inst,y=g[1];return i(function(){f.value=p,f.getSnapshot=h,c(f)&&y({inst:f})},[m,p,h]),s(function(){return c(f)&&y({inst:f}),m(function(){c(f)&&y({inst:f})})},[m]),a(p),p}function c(m){var h=m.getSnapshot;m=m.value;try{var p=h();return!n(m,p)}catch{return!0}}function u(m,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return ji.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ji}var Li={};/**
192
226
  * @license React
193
227
  * use-sync-external-store-shim.development.js
194
228
  *
@@ -196,7 +230,7 @@ Avoid returning a new reference inside your input selector, e.g.
196
230
  *
197
231
  * This source code is licensed under the MIT license found in the
198
232
  * LICENSE file in the root directory of this source tree.
199
- */var si;function wy(){return si||(si=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}function t(d,y){p||r.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=y();if(!f){var v=y();s(m,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=i({inst:{value:m,getSnapshot:y}});var _=v[0].inst,S=v[1];return u(function(){_.value=m,_.getSnapshot=y,n(_)&&S({inst:_})},[d,m,y]),a(function(){return n(_)&&S({inst:_}),d(function(){n(_)&&S({inst:_})})},[d]),c(m),m}function n(d){var y=d.getSnapshot;d=d.value;try{var m=y();return!s(d,m)}catch{return!0}}function o(d,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=O,s=typeof Object.is=="function"?Object.is:e,i=r.useState,a=r.useEffect,u=r.useLayoutEffect,c=r.useDebugValue,p=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;Bo.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Bo}var ii;function Fr(){return ii||(ii=1,process.env.NODE_ENV==="production"?Dn.exports=Ey():Dn.exports=wy()),Dn.exports}var Ny=Fr(),Vn={exports:{}},Fo={};/**
233
+ */var fd;function h1(){return fd||(fd=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=g();if(!m){var y=g();i(f,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}y=a({inst:{value:f,getSnapshot:g}});var x=y[0].inst,w=y[1];return c(function(){x.value=f,x.getSnapshot=g,n(x)&&w({inst:x})},[p,f,g]),l(function(){return n(x)&&w({inst:x}),p(function(){n(x)&&w({inst:x})})},[p]),u(f),f}function n(p){var g=p.getSnapshot;p=p.value;try{var f=g();return!i(p,f)}catch{return!0}}function o(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Q,i=typeof Object.is=="function"?Object.is:e,a=s.useState,l=s.useEffect,c=s.useLayoutEffect,u=s.useDebugValue,d=!1,m=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;Li.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Li}var md;function Nl(){return md||(md=1,process.env.NODE_ENV==="production"?es.exports=m1():es.exports=h1()),es.exports}var g1=Nl(),ts={exports:{}},Vi={};/**
200
234
  * @license React
201
235
  * use-sync-external-store-shim/with-selector.production.js
202
236
  *
@@ -204,7 +238,7 @@ Avoid returning a new reference inside your input selector, e.g.
204
238
  *
205
239
  * This source code is licensed under the MIT license found in the
206
240
  * LICENSE file in the root directory of this source tree.
207
- */var ai;function Oy(){if(ai)return Fo;ai=1;var e=O,t=Fr();function n(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var o=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,a=e.useMemo,u=e.useDebugValue;return Fo.useSyncExternalStoreWithSelector=function(c,p,f,h,d){var y=s(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=a(function(){function _(I){if(!S){if(S=!0,E=I,I=h(I),d!==void 0&&m.hasValue){var w=m.value;if(d(w,I))return C=w}return C=I}if(w=C,o(E,I))return w;var N=h(I);return d!==void 0&&d(w,N)?(E=I,w):(E=I,C=N)}var S=!1,E,C,x=f===void 0?null:f;return[function(){return _(p())},x===null?void 0:function(){return _(x())}]},[p,f,h,d]);var v=r(c,y[0],y[1]);return i(function(){m.hasValue=!0,m.value=v},[v]),u(v),v},Fo}var zo={};/**
241
+ */var hd;function b1(){if(hd)return Vi;hd=1;var e=Q,t=Nl();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return Vi.useSyncExternalStoreWithSelector=function(u,d,m,h,p){var g=i(null);if(g.current===null){var f={hasValue:!1,value:null};g.current=f}else f=g.current;g=l(function(){function x(E){if(!w){if(w=!0,T=E,E=h(E),p!==void 0&&f.hasValue){var N=f.value;if(p(N,E))return C=N}return C=E}if(N=C,o(T,E))return N;var R=h(E);return p!==void 0&&p(N,R)?(T=E,N):(T=E,C=R)}var w=!1,T,C,I=m===void 0?null:m;return[function(){return x(d())},I===null?void 0:function(){return x(I())}]},[d,m,h,p]);var y=s(u,g[0],g[1]);return a(function(){f.hasValue=!0,f.value=y},[y]),c(y),y},Vi}var Fi={};/**
208
242
  * @license React
209
243
  * use-sync-external-store-shim/with-selector.development.js
210
244
  *
@@ -212,15 +246,12 @@ Avoid returning a new reference inside your input selector, e.g.
212
246
  *
213
247
  * This source code is licensed under the MIT license found in the
214
248
  * LICENSE file in the root directory of this source tree.
215
- */var li;function $y(){return li||(li=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=O,n=Fr(),o=typeof Object.is=="function"?Object.is:e,r=n.useSyncExternalStore,s=t.useRef,i=t.useEffect,a=t.useMemo,u=t.useDebugValue;zo.useSyncExternalStoreWithSelector=function(c,p,f,h,d){var y=s(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=a(function(){function _(I){if(!S){if(S=!0,E=I,I=h(I),d!==void 0&&m.hasValue){var w=m.value;if(d(w,I))return C=w}return C=I}if(w=C,o(E,I))return w;var N=h(I);return d!==void 0&&d(w,N)?(E=I,w):(E=I,C=N)}var S=!1,E,C,x=f===void 0?null:f;return[function(){return _(p())},x===null?void 0:function(){return _(x())}]},[p,f,h,d]);var v=r(c,y[0],y[1]);return i(function(){m.hasValue=!0,m.value=v},[v]),u(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zo}var ci;function Ry(){return ci||(ci=1,process.env.NODE_ENV==="production"?Vn.exports=Oy():Vn.exports=$y()),Vn.exports}var ky=Ry();const My=parseInt(k.version,10),Py=My>=19,Ay=Py?jy:Ly;function pe(e,t,n,o,r){return Ay(e,t,n,o,r)}function jy(e,t,n,o,r){const s=k.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return Ny.useSyncExternalStore(e.subscribe,s,s)}function Ly(e,t,n,o,r){return ky.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class zr{constructor(t){B(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));B(this,"getSnapshot",()=>this.state);B(this,"use",(t,n,o,r)=>pe(this,t,n,o,r));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new zr(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let r;for(;r=o.next(),!r.done;){if(n!==this.updateTick)return;const s=r.value;s(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(q({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(q({},this.state,{[t]:n}))}}function Dy(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ml(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const s=Dy(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function hl(e,t,n,o){return e[t]===void 0?null:ml(e,t,n,o)}function nr(){return null}hl.isRequired=ml;nr.isRequired=nr;const Vy=process.env.NODE_ENV==="production"?nr:hl;function By(e){return je("MuiPaper",e)}Pe("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 Fy=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return We(s,By,r)},zy=de("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}`]]}})(et(({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)"}}]}))),gl=k.forwardRef(function(t,n){var d;const o=at({props:t,name:"MuiPaper"}),r=za(),{className:s,component:i="div",elevation:a=1,square:u=!1,variant:c="elevation",...p}=o,f={...o,component:i,elevation:a,square:u,variant:c},h=Fy(f);return process.env.NODE_ENV!=="production"&&r.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
216
- `)),g.jsx(zy,{as:i,ownerState:f,className:ue(h.root,s),ref:n,...p,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":(d=r.vars.overlays)==null?void 0:d[a]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Kn("#fff",Yo(a))}, ${Kn("#fff",Yo(a))})`}},...p.style}})});process.env.NODE_ENV!=="production"&&(gl.propTypes={children:l.node,classes:l.object,className:l.string,component:l.elementType,elevation:So(Vy,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:l.bool,style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),variant:l.oneOfType([l.oneOf(["elevation","outlined"]),l.string])});function Wy(e){return je("MuiAlert",e)}const ui=Pe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Uy(e){return je("MuiIconButton",e)}const di=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Gy=e=>{const{classes:t,disabled:n,color:o,edge:r,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",o!=="default"&&`color${_e(o)}`,r&&`edge${_e(r)}`,`size${_e(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return We(a,Uy,t)},qy=de(Dr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${_e(n.color)}`],n.edge&&t[`edge${_e(n.edge)}`],t[`size${_e(n.size)}`]]}})(et(({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}}]})),et(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(gt()).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)}}],[`&.${di.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${di.loading}`]:{color:"transparent"}}))),Hy=de("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"}}]})),yl=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiIconButton"}),{edge:r=!1,children:s,className:i,color:a="default",disabled:u=!1,disableFocusRipple:c=!1,size:p="medium",id:f,loading:h=null,loadingIndicator:d,...y}=o,m=Rm(f),v=d??g.jsx(Vr,{"aria-labelledby":m,color:"inherit",size:16}),_={...o,edge:r,color:a,disabled:u,disableFocusRipple:c,loading:h,loadingIndicator:v,size:p},S=Gy(_);return g.jsxs(qy,{id:h?m:f,className:ue(S.root,i),centerRipple:!0,focusRipple:!c,disabled:u||h,ref:n,...y,ownerState:_,children:[typeof h=="boolean"&&g.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:g.jsx(Hy,{className:S.loadingIndicator,ownerState:_,children:h&&v})}),s]})});process.env.NODE_ENV!=="production"&&(yl.propTypes={children:So(l.node,e=>k.Children.toArray(e.children).some(n=>k.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
217
- `)):null),classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),l.string]),disabled:l.bool,disableFocusRipple:l.bool,disableRipple:l.bool,edge:l.oneOf(["end","start",!1]),id:l.string,loading:l.bool,loadingIndicator:l.node,size:l.oneOfType([l.oneOf(["small","medium","large"]),l.string]),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});const Ky=lt(g.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Yy=lt(g.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Xy=lt(g.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),Qy=lt(g.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Jy=lt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Zy=e=>{const{variant:t,color:n,severity:o,classes:r}=e,s={root:["root",`color${_e(n||o)}`,`${t}${_e(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return We(s,Wy,r)},eb=de(gl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_e(n.color||n.severity)}`]]}})(et(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(gt(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${ui.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gt(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${ui.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gt(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),tb=de("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),nb=de("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),ob=de("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),pi={success:g.jsx(Ky,{fontSize:"inherit"}),warning:g.jsx(Yy,{fontSize:"inherit"}),error:g.jsx(Xy,{fontSize:"inherit"}),info:g.jsx(Qy,{fontSize:"inherit"})},bl=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiAlert"}),{action:r,children:s,className:i,closeText:a="Close",color:u,components:c={},componentsProps:p={},icon:f,iconMapping:h=pi,onClose:d,role:y="alert",severity:m="success",slotProps:v={},slots:_={},variant:S="standard",...E}=o,C={...o,color:u,severity:m,variant:S,colorSeverity:u||m},x=Zy(C),I={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,..._},slotProps:{...p,...v}},[w,N]=Ke("root",{ref:n,shouldForwardComponentProp:!0,className:ue(x.root,i),elementType:eb,externalForwardedProps:{...I,...E},ownerState:C,additionalProps:{role:y,elevation:0}}),[L,F]=Ke("icon",{className:x.icon,elementType:tb,externalForwardedProps:I,ownerState:C}),[U,b]=Ke("message",{className:x.message,elementType:nb,externalForwardedProps:I,ownerState:C}),[R,T]=Ke("action",{className:x.action,elementType:ob,externalForwardedProps:I,ownerState:C}),[j,V]=Ke("closeButton",{elementType:yl,externalForwardedProps:I,ownerState:C}),[K,se]=Ke("closeIcon",{elementType:Jy,externalForwardedProps:I,ownerState:C});return g.jsxs(w,{...N,children:[f!==!1?g.jsx(L,{...F,children:f||h[m]||pi[m]}):null,g.jsx(U,{...b,children:s}),r!=null?g.jsx(R,{...T,children:r}):null,r==null&&d?g.jsx(R,{...T,children:g.jsx(j,{size:"small","aria-label":a,title:a,color:"inherit",onClick:d,...V,children:g.jsx(K,{fontSize:"small",...se})})}):null]})});process.env.NODE_ENV!=="production"&&(bl.propTypes={action:l.node,children:l.node,classes:l.object,className:l.string,closeText:l.string,color:l.oneOfType([l.oneOf(["error","info","success","warning"]),l.string]),components:l.shape({CloseButton:l.elementType,CloseIcon:l.elementType}),componentsProps:l.shape({closeButton:l.object,closeIcon:l.object}),icon:l.node,iconMapping:l.shape({error:l.node,info:l.node,success:l.node,warning:l.node}),onClose:l.func,role:l.string,severity:l.oneOfType([l.oneOf(["error","info","success","warning"]),l.string]),slotProps:l.shape({action:l.oneOfType([l.func,l.object]),closeButton:l.oneOfType([l.func,l.object]),closeIcon:l.oneOfType([l.func,l.object]),icon:l.oneOfType([l.func,l.object]),message:l.oneOfType([l.func,l.object]),root:l.oneOfType([l.func,l.object])}),slots:l.shape({action:l.elementType,closeButton:l.elementType,closeIcon:l.elementType,icon:l.elementType,message:l.elementType,root:l.elementType}),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),variant:l.oneOfType([l.oneOf(["filled","outlined","standard"]),l.string])});function vl(e,t,n=void 0){const o={};for(const r in e){const s=e[r];let i="",a=!0;for(let u=0;u<s.length;u+=1){const c=s[u];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}o[r]=i}return o}const fi=new Set;function or(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
218
- `):e;fi.has(n)||(fi.add(n),t==="error"?console.error(n):console.warn(n))}const mi=e=>e,rb=()=>{let e=mi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mi}}},sb=rb(),ib={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 Wr(e,t,n="Mui"){const o=ib[t];return o?`${n}-${o}`:`${sb.generate(e)}-${t}`}function _l(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Wr(e,r,n)}),o}function ab(e){return Wr("MuiRichTreeView",e)}_l("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function xl(e){return Io}const Ur=Object.freeze([]),an=Object.freeze({}),Gr=k.createContext(null);process.env.NODE_ENV!=="production"&&(Gr.displayName="TreeViewContext");const At=()=>{const e=k.useContext(Gr);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Could not find the Tree View context. This happens when a component is rendered outside of a SimpleTreeView or RichTreeView parent component. Ensure your component is a child of a Tree View component. This can also happen if you are bundling multiple versions of the Tree View.":Ve(190));return e},qr=k.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(qr.displayName="TreeViewStyleContext");const Hr=()=>k.useContext(qr),lb=e=>{const{store:t,apiRef:n,rootRef:o}=e,r=pl(()=>t.buildPublicAPI()).current;cb(r,n);const s=k.useCallback(a=>{let u=null,c=null;const p=[],f={};t.itemPluginManager.listPlugins().forEach(y=>{const m=y({props:a,rootRef:u,contentRef:c});m!=null&&m.rootRef&&(u=m.rootRef),m!=null&&m.contentRef&&(c=m.contentRef),m!=null&&m.propsEnhancers&&(p.push(m.propsEnhancers),Object.keys(m.propsEnhancers).forEach(v=>{f[v]=!0}))});const h=y=>m=>{const v={};return p.forEach(_=>{const S=_[y];S!=null&&Object.assign(v,S(m))}),v},d=Object.fromEntries(Object.keys(f).map(y=>[y,h(y)]));return{contentRef:c,rootRef:u,propsEnhancers:d}},[t]),i=k.useCallback(({itemId:a,children:u,idAttribute:c})=>{let p=u;const f=t.itemPluginManager.listWrappers();for(let h=f.length-1;h>=0;h-=1){const d=f[h];p=d({store:t,itemId:a,children:p,idAttribute:c})}return p},[t]);return k.useMemo(()=>({runItemPlugins:s,wrapItem:i,publicAPI:r,store:t,rootRef:o}),[s,i,r,t,o])};function cb(e,t){t!=null&&t.current!==e&&(t.current=e)}function ub(e){const{store:t,apiRef:n,rootRef:o,classes:r=an,slots:s=an,slotProps:i=an,children:a}=e,u=lb({store:t,apiRef:n,rootRef:o}),c=k.useMemo(()=>({classes:r,slots:{collapseIcon:s.collapseIcon,expandIcon:s.expandIcon,endIcon:s.endIcon},slotProps:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon}}),[r,s.collapseIcon,s.expandIcon,s.endIcon,i.collapseIcon,i.expandIcon,i.endIcon]);return g.jsx(Gr.Provider,{value:u,children:g.jsx(qr.Provider,{value:c,children:a})})}function db(...e){const t=k.useRef(void 0),n=k.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(o);return typeof a=="function"?a:()=>{i(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s==null?void 0:s())}},e);return k.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function pb(e){return typeof e=="string"}function fb(e,t,n){return e===void 0||pb(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function mb(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ue(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))mb(n,e[n])&&(t[n]=e[n]);return t}function hi(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 hb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const d=ue(n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),y={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},m={...n,...r,...o};return d.length>0&&(m.className=d),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const i=Ue({...r,...o}),a=hi(o),u=hi(r),c=t(i),p=ue(c==null?void 0:c.className,n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},h={...c,...n,...u,...a};return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function rr(e,t,n){return typeof e=="function"?e(t,n):e}function Be(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...s}=e,i=r?{}:rr(n,o),{props:a,internalRef:u}=hb({...s,externalSlotProps:i}),c=db(u,i==null?void 0:i.ref,(f=e.additionalProps)==null?void 0:f.ref);return fb(t,{...a,ref:c},o)}const gb=Object.is;function yb(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const r in e)if(n+=1,!gb(e[r],t[r])||!(r in t))return!1;for(const r in t)o+=1;return n===o}function bb(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const s=r||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function Zt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function gi(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function vb(e){return je("MuiCollapse",e)}Pe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _b=e=>{const{orientation:t,classes:n}=e;return We({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},vb,n)},xb=de("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(et(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Cb=de("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Sb=de("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),to=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiCollapse"}),{addEndListener:r,children:s,className:i,collapsedSize:a="0px",component:u,easing:c,in:p,onEnter:f,onEntered:h,onEntering:d,onExit:y,onExited:m,onExiting:v,orientation:_="vertical",slots:S={},slotProps:E={},style:C,timeout:x=Da.standard,TransitionComponent:I=_t,...w}=o,N={...o,orientation:_,collapsedSize:a},L=_b(N),F=za(),U=Ha(),b=k.useRef(null),R=k.useRef(),T=typeof a=="number"?`${a}px`:a,j=_==="horizontal",V=j?"width":"height",K=k.useRef(null),se=Xn(n,K),oe=()=>b.current?b.current[j?"clientWidth":"clientHeight"]:0,M=Zt(K,(te,Te)=>{b.current&&j&&(b.current.style.position="absolute"),te.style[V]=T,f&&f(te,Te)}),z=Zt(K,(te,Te)=>{const ke=oe();b.current&&j&&(b.current.style.position="");const{duration:Me,easing:tt}=gi({style:C,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const On=F.transitions.getAutoHeightDuration(ke);te.style.transitionDuration=`${On}ms`,R.current=On}else te.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;te.style[V]=`${ke}px`,te.style.transitionTimingFunction=tt,d&&d(te,Te)}),Q=Zt(K,(te,Te)=>{te.style[V]="auto",h&&h(te,Te)}),re=Zt(K,te=>{te.style[V]=`${oe()}px`,y&&y(te)}),ne=Zt(K,m),Y=Zt(K,te=>{const Te=oe(),{duration:ke,easing:Me}=gi({style:C,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const tt=F.transitions.getAutoHeightDuration(Te);te.style.transitionDuration=`${tt}ms`,R.current=tt}else te.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;te.style[V]=T,te.style.transitionTimingFunction=Me,v&&v(te)}),J=te=>{x==="auto"&&U.start(R.current||0,te),r&&r(K.current,te)},Z={slots:S,slotProps:E,component:u},[A,P]=Ke("root",{ref:se,className:ue(L.root,i),elementType:xb,externalForwardedProps:Z,ownerState:N,additionalProps:{style:{[j?"minWidth":"minHeight"]:T,...C}}}),[W,ie]=Ke("wrapper",{ref:b,className:L.wrapper,elementType:Cb,externalForwardedProps:Z,ownerState:N}),[D,Ee]=Ke("wrapperInner",{className:L.wrapperInner,elementType:Sb,externalForwardedProps:Z,ownerState:N});return g.jsx(I,{in:p,onEnter:M,onEntered:Q,onEntering:z,onExit:re,onExited:ne,onExiting:Y,addEndListener:J,nodeRef:K,timeout:x==="auto"?null:x,...w,children:(te,{ownerState:Te,...ke})=>{const Me={...N,state:te};return g.jsx(A,{...P,className:ue(P.className,{entered:L.entered,exited:!p&&T==="0px"&&L.hidden}[te]),ownerState:Me,...ke,children:g.jsx(W,{...ie,ownerState:Me,children:g.jsx(D,{...Ee,ownerState:Me,children:s})})})}})});process.env.NODE_ENV!=="production"&&(to.propTypes={addEndListener:l.func,children:l.node,classes:l.object,className:l.string,collapsedSize:l.oneOfType([l.number,l.string]),component:Ua,easing:l.oneOfType([l.shape({enter:l.string,exit:l.string}),l.string]),in:l.bool,onEnter:l.func,onEntered:l.func,onEntering:l.func,onExit:l.func,onExited:l.func,onExiting:l.func,orientation:l.oneOf(["horizontal","vertical"]),slotProps:l.shape({root:l.oneOfType([l.func,l.object]),wrapper:l.oneOfType([l.func,l.object]),wrapperInner:l.oneOfType([l.func,l.object])}),slots:l.shape({root:l.elementType,wrapper:l.elementType,wrapperInner:l.elementType}),style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),timeout:l.oneOfType([l.oneOf(["auto"]),l.number,l.shape({appear:l.number,enter:l.number,exit:l.number})])});to&&(to.muiSupportAuto=!0);const Cl=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cl.displayName="FormControlContext");function Ib(){return k.useContext(Cl)}function Tb(e){return je("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Eb=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,s={root:["root",n&&"checked",o&&"disabled",r&&`edge${_e(r)}`],input:["input"]};return We(s,Tb,t)},wb=de(Dr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Nb=de("input",{name:"MuiSwitchBase",shouldForwardProp:Pr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Sl=k.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:s,defaultChecked:i,disabled:a,disableFocusRipple:u=!1,edge:c=!1,icon:p,id:f,inputProps:h,inputRef:d,name:y,onBlur:m,onChange:v,onFocus:_,readOnly:S,required:E=!1,tabIndex:C,type:x,value:I,slots:w={},slotProps:N={},...L}=t,[F,U]=Sh({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),b=Ib(),R=Y=>{_&&_(Y),b&&b.onFocus&&b.onFocus(Y)},T=Y=>{m&&m(Y),b&&b.onBlur&&b.onBlur(Y)},j=Y=>{if(Y.nativeEvent.defaultPrevented||S)return;const J=Y.target.checked;U(J),v&&v(Y,J)};let V=a;b&&typeof V>"u"&&(V=b.disabled);const K=x==="checkbox"||x==="radio",se={...t,checked:F,disabled:V,disableFocusRipple:u,edge:c},oe=Eb(se),M={slots:w,slotProps:{input:h,...N}},[z,Q]=Ke("root",{ref:n,elementType:wb,className:oe.root,shouldForwardComponentProp:!0,externalForwardedProps:{...M,component:"span",...L},getSlotProps:Y=>({...Y,onFocus:J=>{var Z;(Z=Y.onFocus)==null||Z.call(Y,J),R(J)},onBlur:J=>{var Z;(Z=Y.onBlur)==null||Z.call(Y,J),T(J)}}),ownerState:se,additionalProps:{centerRipple:!0,focusRipple:!u,role:void 0,tabIndex:null}}),[re,ne]=Ke("input",{ref:d,elementType:Nb,className:oe.input,externalForwardedProps:M,getSlotProps:Y=>({...Y,onChange:J=>{var Z;(Z=Y.onChange)==null||Z.call(Y,J),j(J)}}),ownerState:se,additionalProps:{autoFocus:o,checked:r,defaultChecked:i,disabled:V,id:K?f:void 0,name:y,readOnly:S,required:E,tabIndex:C,type:x,...x==="checkbox"&&I===void 0?{}:{value:I}}});return g.jsxs(z,{...Q,children:[g.jsx(re,{...ne}),F?s:p]})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={autoFocus:l.bool,checked:l.bool,checkedIcon:l.node.isRequired,classes:l.object,className:l.string,defaultChecked:l.bool,disabled:l.bool,disableFocusRipple:l.bool,edge:l.oneOf(["end","start",!1]),icon:l.node.isRequired,id:l.string,inputProps:l.object,inputRef:Wa,name:l.string,onBlur:l.func,onChange:l.func,onFocus:l.func,readOnly:l.bool,required:l.bool,slotProps:l.shape({input:l.oneOfType([l.func,l.object]),root:l.oneOfType([l.func,l.object])}),slots:l.shape({input:l.elementType,root:l.elementType}),sx:l.object,tabIndex:l.oneOfType([l.number,l.string]),type:l.string.isRequired,value:l.any});const Ob=lt(g.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$b=lt(g.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Rb=lt(g.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function kb(e){return je("MuiCheckbox",e)}const Wo=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Mb=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,s={root:["root",n&&"indeterminate",`color${_e(o)}`,`size${_e(r)}`]},i=We(s,kb,t);return{...t,...i}},Pb=de(Sl,{shouldForwardProp:e=>Pr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${_e(n.size)}`],n.color!=="default"&&t[`color${_e(n.color)}`]]}})(et(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{[`&.${Wo.checked}, &.${Wo.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Ab=g.jsx($b,{}),jb=g.jsx(Ob,{}),Lb=g.jsx(Rb,{}),Il=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiCheckbox"}),{checkedIcon:r=Ab,color:s="primary",icon:i=jb,indeterminate:a=!1,indeterminateIcon:u=Lb,inputProps:c,size:p="medium",disableRipple:f=!1,className:h,slots:d={},slotProps:y={},...m}=o,v=a?u:i,_=a?u:r,S={...o,disableRipple:f,color:s,indeterminate:a,size:p},E=Mb(S),C=y.input??c,[x,I]=Ke("root",{ref:n,elementType:Pb,className:ue(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:y,...m},ownerState:S,additionalProps:{type:"checkbox",icon:k.cloneElement(v,{fontSize:v.props.fontSize??p}),checkedIcon:k.cloneElement(_,{fontSize:_.props.fontSize??p}),disableRipple:f,slots:d,slotProps:{input:Th(typeof C=="function"?C(S):C,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return g.jsx(x,{...I,classes:E})});process.env.NODE_ENV!=="production"&&(Il.propTypes={checked:l.bool,checkedIcon:l.node,classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["default","primary","secondary","error","info","success","warning"]),l.string]),defaultChecked:l.bool,disabled:l.bool,disableRipple:l.bool,icon:l.node,id:l.string,indeterminate:l.bool,indeterminateIcon:l.node,inputProps:l.object,onChange:l.func,required:l.bool,size:l.oneOfType([l.oneOf(["medium","small"]),l.string]),slotProps:l.shape({input:l.oneOfType([l.func,l.object]),root:l.oneOfType([l.func,l.object])}),slots:l.shape({input:l.elementType,root:l.elementType}),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),value:l.any});const Ye="__TREE_VIEW_ROOT_PARENT_ID__",Tl=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},no=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function El(e){const{storeParameters:t,items:n,parentId:o,depth:r,isItemExpandable:s,otherItemsMetaLookup:i}=e,a={},u={},c=[],p=[],f=h=>{const d=t.getItemId?t.getItemId(h):h.id;Db({id:d,parentId:o,item:h,itemMetaLookup:i,siblingsMetaLookup:a});const y=t.getItemLabel?t.getItemLabel(h):h.label;if(y==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a \`label\` property. You can use the \`getItemLabel\` prop to specify a custom label for each item. An item was provided without a label: ${JSON.stringify(h)}`:Ve(192,JSON.stringify(h)));const m=(t.getItemChildren?t.getItemChildren(h):h.children)||[];p.push({id:d,children:m}),u[d]=h,a[d]={id:d,label:y,parentId:o,idAttribute:void 0,expandable:s(h,m),disabled:t.isItemDisabled?t.isItemDisabled(h):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(h):!0,depth:r},c.push(d)};for(const h of n)f(h);return{metaLookup:a,modelLookup:u,orderedChildrenIds:c,childrenIndexes:Tl(c),itemsChildren:p}}function yi(e){const{storeParameters:t,items:n,parentId:o,depth:r,isItemExpandable:s,existingItemMetaLookup:i}=e,a={},u={},c={},p={},f=q({},i),h=(d,y,m)=>{const v=El({storeParameters:t,items:d,parentId:y,depth:m,isItemExpandable:s,otherItemsMetaLookup:f});Object.assign(a,v.metaLookup),Object.assign(f,v.metaLookup),Object.assign(u,v.modelLookup),c[y??Ye]=v.orderedChildrenIds,p[y??Ye]=v.childrenIndexes;for(const _ of v.itemsChildren)h(_.children,_.id,m+1)};return h(n,o,r),{itemMetaLookup:a,itemModelLookup:u,itemOrderedChildrenIdsLookup:c,itemChildrenIndexesLookup:p}}function Db({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:r}){if(e==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. You can use the \`getItemId\` prop to specify a custom id for each item. An item was provided without an id: ${JSON.stringify(n)}`:Ve(193,JSON.stringify(n)));if(r[e]!=null||o[e]!=null&&o[e].parentId!==t)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${e}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Ve(194,e))}const Vb=[],G={domStructure:ce(e=>e.domStructure),disabledItemFocusable:ce(e=>e.disabledItemsFocusable),itemMetaLookup:ce(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:ce(e=>e.itemOrderedChildrenIdsLookup),itemMeta:ce((e,t)=>e.itemMetaLookup[t??Ye]??null),itemOrderedChildrenIds:ce((e,t)=>e.itemOrderedChildrenIdsLookup[t??Ye]??Vb),itemModel:ce((e,t)=>e.itemModelLookup[t]),isItemDisabled:ce((e,t)=>no(e.itemMetaLookup,t)),itemIndex:ce((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Ye][n.id]}),itemParentId:ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:ce((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!no(e.itemMetaLookup,t)),itemChildrenIndentation:ce(e=>e.itemChildrenIndentation),itemHeight:ce(e=>e.itemHeight)},bi=ce(e=>e.providedTreeId??e.treeId),wo={treeId:bi,treeItemIdAttribute:ce(bi,(e,t,n)=>n??`${e??""}-${t}`)};class ln{constructor(t){B(this,"getItem",t=>G.itemModel(this.store.state,t));B(this,"getItemTree",()=>{const t=n=>{const o=G.itemModel(this.store.state,n),r=q({},o),s=G.itemOrderedChildrenIds(this.store.state,n);return s.length>0?r.children=s.map(t):delete r.children,r};return G.itemOrderedChildrenIds(this.store.state,null).map(t)});B(this,"getItemOrderedChildrenIds",t=>G.itemOrderedChildrenIds(this.store.state,t));B(this,"getParentId",t=>{const n=G.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});B(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=q({},this.store.state.itemMetaLookup);o[t]=q({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});B(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&G.itemMeta(this.store.state,n)==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items to the parent with id "${n}" because it is not present in the tree. Pass the id of an existing item, or \`null\` to add the items at the root level.`:Ve(295,n));const r=n==null?-1:G.itemDepth(this.store.state,n),s=this.store.parameters.dataSource,i=(_,S)=>S!=null&&S.length>0?!0:s==null?!1:s.getChildrenCount(_)!==0,{itemMetaLookup:a,itemModelLookup:u,itemOrderedChildrenIdsLookup:c,itemChildrenIndexesLookup:p}=yi({storeParameters:this.store.parameters,items:t,parentId:n,depth:r+1,isItemExpandable:i,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const _ of Object.keys(a))if(this.store.state.itemMetaLookup[_]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${_}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Ve(194,_));const f=n??Ye,h=G.itemOrderedChildrenIds(this.store.state,n),d=o??h.length;if(d<0||d>h.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${d}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${h.length}).`:Ve(296,d,h.length));const y=c[f],m=[...h];m.splice(d,0,...y),c[f]=m,p[f]=Tl(m);const v=q({},this.store.state.itemMetaLookup,a);n!=null&&!v[n].expandable&&(v[n]=q({},v[n],{expandable:!0})),this.store.update({itemMetaLookup:v,itemModelLookup:q({},this.store.state.itemModelLookup,u),itemOrderedChildrenIdsLookup:q({},this.store.state.itemOrderedChildrenIdsLookup,c),itemChildrenIndexesLookup:q({},this.store.state.itemChildrenIndexesLookup,p)}),this.store.selection.propagateSelectionToNewItems(n,y)});B(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));B(this,"getItemDOMElement",t=>{const n=G.itemMeta(this.store.state,t);if(n==null)return null;const o=wo.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});B(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const r=n??Ye,s=n==null?-1:G.itemDepth(this.store.state,n),{metaLookup:i,modelLookup:a,orderedChildrenIds:u,childrenIndexes:c}=El({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:o?p=>o(p)!==0:()=>!1,otherItemsMetaLookup:G.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:q({},this.store.state.itemModelLookup,a),itemMetaLookup:q({},this.store.state.itemMetaLookup,i),itemOrderedChildrenIdsLookup:q({},this.store.state.itemOrderedChildrenIdsLookup,{[r]:u}),itemChildrenIndexesLookup:q({},this.store.state.itemChildrenIndexesLookup,{[r]:c})})});B(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((a,u)=>{const c=n[u];return c.parentId===t?a:q({},a,{[c.id]:c})},{}),r=q({},this.store.state.itemOrderedChildrenIdsLookup),s=q({},this.store.state.itemChildrenIndexesLookup),i=t??Ye;delete s[i],delete r[i],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:r,itemChildrenIndexesLookup:s})});B(this,"handleItemClick",(t,n)=>{var o,r;(r=(o=this.store.parameters).onItemClick)==null||r.call(o,t,n)});this.store=t}}B(ln,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const r=o;return t[r]!==n[r]})),B(ln,"buildItemsStateIfNeeded",t=>yi({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const Uo=Nn(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Oe={expandedItemsRaw:ce(e=>e.expandedItems),expandedItemsMap:Uo,flatList:Nn(G.itemOrderedChildrenIdsLookup,Uo,(e,t)=>{function n(o){if(!t.has(o))return[o];const r=[o],s=e[o]||[];for(const i of s)r.push(...n(i));return r}return(e[Ye]??[]).flatMap(n)}),triggerSlot:ce(e=>e.expansionTrigger),isItemExpanded:ce(Uo,(e,t)=>e.has(t)),isItemExpandable:ce(G.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},wl=Nn(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),Nl=Nn(wl,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),sr=ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),ir=ce(Nl,(e,t)=>e.has(t)),Ol=ce(G.isItemDisabled,sr,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),$l=ce(e=>e.selectionPropagation),vi=ce((e,t)=>{if(ir(e,t))return"selected";if(G.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const r=i=>{i!==t&&Ol(e,i)&&(ir(e,i)?n=!0:o=!0),G.itemOrderedChildrenIds(e,i).forEach(r)};return r(t),$l(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),le={selectedItemsRaw:ce(e=>e.selectedItems),selectedItems:wl,selectedItemsMap:Nl,enabled:ce(e=>!e.disableSelection),isMultiSelectEnabled:ce(e=>e.multiSelect),isCheckboxSelectionEnabled:ce(e=>e.checkboxSelection),propagationRules:$l,isItemSelected:ir,itemSelectionStatus:vi,isItemIndeterminate:ce(vi,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:ce(sr,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:Ol,isItemSelectable:sr},_i=Nn(le.selectedItems,Oe.expandedItemsMap,G.itemMetaLookup,G.disabledItemFocusable,e=>G.itemOrderedChildrenIds(e,null),(e,t,n,o,r)=>{const s=e.find(a=>{if(!o&&no(n,a))return!1;const u=n[a];return u&&(u.parentId==null||t.has(u.parentId))});if(s!=null)return s;const i=r.find(a=>o||!no(n,a));return i??null}),on={defaultFocusableItemId:_i,isItemTheDefaultFocusableItem:ce(_i,(e,t)=>e===t),focusedItemId:ce(e=>e.focusedItemId),isItemFocused:ce((e,t)=>e.focusedItemId===t)},oo={isEmpty:ce(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:ce((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??Ye])??!1}),itemHasError:ce((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??Ye])}),itemError:ce((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??Ye]})},ht={isItemEditable:ce(e=>e.isItemEditable,G.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:ce((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:ce(e=>!!e.editedItemId)},Rl=e=>Array.isArray(e)?e.length>0&&e.some(Rl):!!e,Bb=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=At(),r=pe(n,Oe.isItemExpandable,e),s=pe(n,oo.isItemLoading,e),i=pe(n,oo.itemHasError,e),a=Rl(t)||r,u=pe(n,Oe.isItemExpanded,e),c=pe(n,on.isItemFocused,e),p=pe(n,le.isItemSelected,e),f=pe(n,le.isItemIndeterminate,e),h=pe(n,G.isItemDisabled,e),d=pe(n,ht.isItemBeingEdited,e),y=pe(n,ht.isItemEditable,e),m={expandable:a,expanded:u,focused:c,selected:p,indeterminate:f,disabled:h,editing:d,editable:y,loading:s,error:i},v=w=>{if(m.disabled)return;m.focused||n.focus.focusItem(w,e);const N=le.isMultiSelectEnabled(n.state)&&(w.shiftKey||w.ctrlKey||w.metaKey);m.expandable&&!(N&&Oe.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:w,itemId:e})},_=w=>{if(!le.canItemBeSelected(n.state,e))return;!m.focused&&!m.editing&&n.focus.focusItem(w,e),le.isMultiSelectEnabled(n.state)&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?n.selection.expandSelectionRange(w,e):n.selection.setItemSelection({event:w,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:w,itemId:e,shouldBeSelected:!0})},S=w=>{const N=w.nativeEvent.shiftKey,L=le.isMultiSelectEnabled(n.state);L&&N?n.selection.expandSelectionRange(w,e):n.selection.setItemSelection({event:w,itemId:e,keepExistingSelection:L,shouldBeSelected:w.target.checked})},E=()=>{n.labelEditing&&(d?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:v,handleSelection:_,handleCheckboxSelection:S,toggleItemEditing:E,handleSaveItemLabel:(w,N)=>{n.labelEditing&&ht.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,N),E(),n.focus.focusItem(w,e))},handleCancelItemLabelEditing:w=>{n.labelEditing&&ht.isItemBeingEdited(n.state,e)&&(E(),n.focus.focusItem(w,e))}},status:m,publicAPI:o}},Kr=k.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Kr.displayName="TreeViewItemDepthContext");const ar=(e,t)=>{let n=t.length-1;for(;n>=0&&!G.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},Yr=(e,t)=>{const n=G.itemMeta(e,t);if(!n)return null;const o=G.itemOrderedChildrenIds(e,n.parentId),r=G.itemIndex(e,t);if(r===0)return n.parentId;let s=r-1;for(;!G.canItemBeFocused(e,o[s])&&s>=0;)s-=1;if(s===-1)return n.parentId==null?null:Yr(e,n.parentId);let i=o[s],a=ar(e,G.itemOrderedChildrenIds(e,i));for(;Oe.isItemExpanded(e,i)&&a!=null;)i=a,a=ar(e,G.itemOrderedChildrenIds(e,i));return i},_n=(e,t)=>{if(Oe.isItemExpanded(e,t)){const o=G.itemOrderedChildrenIds(e,t).find(r=>G.canItemBeFocused(e,r));if(o!=null)return o}let n=G.itemMeta(e,t);for(;n!=null;){const o=G.itemOrderedChildrenIds(e,n.parentId),r=G.itemIndex(e,n.id);if(r<o.length-1){let s=r+1;for(;!G.canItemBeFocused(e,o[s])&&s<o.length-1;)s+=1;if(G.canItemBeFocused(e,o[s]))return o[s]}n=G.itemMeta(e,n.parentId)}return null},kl=e=>{let t=null;for(;t==null||Oe.isItemExpanded(e,t);){const n=G.itemOrderedChildrenIds(e,t),o=ar(e,n);if(o==null)return t;t=o}return t},Cn=e=>G.itemOrderedChildrenIds(e,null).find(t=>G.canItemBeFocused(e,t)),Ml=(e,t,n)=>{if(t===n)return[t,n];const o=G.itemMeta(e,t),r=G.itemMeta(e,n);if(!o||!r)return[t,n];if(o.parentId===r.id||r.parentId===o.id)return r.parentId===o.id?[o.id,r.id]:[r.id,o.id];const s=[o.id],i=[r.id];let a=o.parentId,u=r.parentId,c=i.indexOf(a)!==-1,p=s.indexOf(u)!==-1,f=!0,h=!0;for(;!p&&!c;)f&&(s.push(a),c=i.indexOf(a)!==-1,f=a!==null,!c&&f&&(a=G.itemParentId(e,a))),h&&!c&&(i.push(u),p=s.indexOf(u)!==-1,h=u!==null,!p&&h&&(u=G.itemParentId(e,u)));const d=c?a:u,y=G.itemOrderedChildrenIds(e,d),m=s[s.indexOf(d)-1],v=i[i.indexOf(d)-1];return y.indexOf(m)<y.indexOf(v)?[t,n]:[n,t]},Fb=(e,t,n)=>{const o=u=>{if(Oe.isItemExpandable(e,u)&&Oe.isItemExpanded(e,u))return G.itemOrderedChildrenIds(e,u)[0];let c=G.itemMeta(e,u);for(;c!=null;){const p=G.itemOrderedChildrenIds(e,c.parentId),f=G.itemIndex(e,c.id);if(f<p.length-1)return p[f+1];c=c.parentId?G.itemMeta(e,c.parentId):null}throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Invalid range - unable to find a path between the two items. This may occur if the items are not in the same tree or the tree structure is invalid. Verify that both items exist in the tree.":Ve(191))},[r,s]=Ml(e,t,n),i=[r];let a=r;for(;a!==s;)a=o(a),G.isItemDisabled(e,a)||i.push(a);return i},zb=e=>{let t=Cn(e);const n=[];for(;t!=null;)n.push(t),t=_n(e,t);return n},lr=(e,t)=>t!==e.closest('*[role="treeitem"]');class Wb{constructor(t){B(this,"setExpandedItems",(t,n)=>{var o,r;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(r=(o=this.store.parameters).onExpandedItemsChange)==null||r.call(o,t,n)});B(this,"isItemExpanded",t=>Oe.isItemExpanded(this.store.state,t));B(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));B(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const r=Oe.isItemExpanded(this.store.state,t),s=o??!r;if(r===s)return;const i={isExpansionPrevented:!1,shouldBeExpanded:s,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",i,n),!i.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:s})});B(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var i,a;const r=Oe.expandedItemsRaw(this.store.state);let s;o?s=[t].concat(r):s=r.filter(u=>u!==t),(a=(i=this.store.parameters).onItemExpansionToggle)==null||a.call(i,n,t,o),this.setExpandedItems(n,s)});B(this,"expandAllSiblings",(t,n)=>{const o=G.itemMeta(this.store.state,n);if(o==null)return;const s=G.itemOrderedChildrenIds(this.store.state,o.parentId).filter(a=>Oe.isItemExpandable(this.store.state,a)&&!Oe.isItemExpanded(this.store.state,a)),i=Oe.expandedItemsRaw(this.store.state).concat(s);s.length>0&&(this.store.parameters.onItemExpansionToggle&&s.forEach(a=>{this.store.parameters.onItemExpansionToggle(t,a,!0)}),this.setExpandedItems(t,i))});B(this,"addExpandableItems",t=>{const n=q({},this.store.state.itemMetaLookup);for(const o of t)n[o]=q({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class Ub{constructor(t){B(this,"setFocusedItemId",t=>{on.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});B(this,"applyItemFocus",(t,n)=>{var o,r,s;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(s=(r=this.store.parameters).onItemFocus)==null||s.call(r,t,n)});B(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));B(this,"focusItem",(t,n)=>{const o=G.itemMeta(this.store.state,n);o&&(o.parentId==null||Oe.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});B(this,"removeFocusedItem",()=>{const t=on.focusedItemId(this.store.state);if(t==null)return;if(G.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});B(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=on.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});B(this,"handleRootBlur",t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)});this.store=t;let n=t.state;this.store.disposables.defer(this.store.subscribe(o=>{if(o.itemMetaLookup===n.itemMetaLookup){n=o;return}const r=on.focusedItemId(o);if(r==null||G.itemMeta(o,r)){n=o;return}const s=a=>a==null||!G.itemMeta(o,a)?null:a,i=s(_n(n,r))??s(Yr(n,r))??Cn(o);i==null?this.setFocusedItemId(null):this.applyItemFocus(null,i),n=o}))}}const Gb=({props:e})=>{const{itemId:t}=e,{store:n}=At(),o=pe(n,le.isCheckboxSelectionEnabled),r=pe(n,le.isFeatureEnabledForItem,t),s=pe(n,le.canItemBeSelected,t),i=pe(n,G.isItemDisabled,t),a=pe(n,le.isItemSelectable,t),u=pe(n,le.itemSelectionStatus,t),c=i||!a;return{propsEnhancers:{root:()=>{let p;return c?p=void 0:u==="selected"?p=!0:u==="indeterminate"?p="mixed":s?p=!1:p=void 0,{"aria-checked":p}},checkbox:({externalEventHandlers:p,interactions:f})=>({tabIndex:-1,onChange:d=>{var y;(y=p.onChange)==null||y.call(p,d),!d.defaultMuiPrevented&&le.canItemBeSelected(n.state,t)&&f.handleCheckboxSelection(d)},visible:o&&r,disabled:!s,checked:u==="selected",indeterminate:u==="indeterminate"})}}};class qb{constructor(t){B(this,"lastSelectedItem",null);B(this,"lastSelectedRange",{});B(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:r=an,selectedItems:s,onItemSelectionToggle:i,onSelectedItemsChange:a}=this.store.parameters,u=le.selectedItemsRaw(this.store.state);let c;const p=le.isMultiSelectEnabled(this.store.state);if(p&&(r.descendants||r.parents)?c=Hb({store:this.store,selectionPropagation:r,newModel:n,oldModel:u,additionalItemsToPropagate:o}):c=n,s===void 0&&this.store.set("selectedItems",c),i)if(p){const f=Pl({newModel:c,oldModel:u});i&&(f.added.forEach(h=>{i(t,h,!0)}),f.removed.forEach(h=>{i(t,h,!1)}))}else c!==u&&(u!=null&&i(t,u,!1),c!=null&&i(t,c,!0));a==null||a(t,c)});B(this,"selectRange",(t,[n,o])=>{if(!le.isMultiSelectEnabled(this.store.state))return;let s=le.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(s=s.filter(c=>!this.lastSelectedRange[c]));const i=Wn(s),a=Fb(this.store.state,n,o).filter(c=>le.isItemSelectable(this.store.state,c)),u=a.filter(c=>!i[c]);s=s.concat(u),this.setSelectedItems(t,s),this.lastSelectedRange=Wn(a)});B(this,"getItemSelection",t=>le.itemSelectionStatus(this.store.state,t));B(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));B(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=an}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!le.isMultiSelectEnabled(this.store.state)||!le.isItemSelected(this.store.state,t))return;const r=le.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,r,n)});B(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:r})=>{if(!le.enabled(this.store.state))return;let s;const i=le.isMultiSelectEnabled(this.store.state);if(o&&i){const a=le.selectedItems(this.store.state),u=le.isItemSelected(this.store.state,t);u&&(r===!1||r==null)?s=a.filter(c=>c!==t):!u&&(r===!0||r==null)?s=[t].concat(a):s=a}else r===!1||r==null&&le.isItemSelected(this.store.state,t)?s=i?[]:null:s=i?[t]:t;this.setSelectedItems(n,s,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});B(this,"selectAllNavigableItems",t=>{if(!le.isMultiSelectEnabled(this.store.state))return;const o=zb(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=Wn(o)});B(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,r]=Ml(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,r])}});B(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[Cn(this.store.state),n])});B(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,kl(this.store.state)])});B(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!le.isMultiSelectEnabled(this.store.state))return;let s=le.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(le.isItemSelected(this.store.state,o)||s.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(s=s.filter(i=>i!==n),delete this.lastSelectedRange[n]):(le.isItemSelected(this.store.state,o)||s.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,s)});this.store=t,t.itemPluginManager.register(Gb,null)}}function Hb({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:r}){if(!t.descendants&&!t.parents)return n;let s=!1;const i=Wn(n),a=Pl({newModel:n,oldModel:o});return r==null||r.forEach(u=>{i[u]?a.added.includes(u)||a.added.push(u):a.removed.includes(u)||a.removed.push(u)}),a.added.forEach(u=>{if(t.descendants){const c=p=>{p!==u&&le.canItemBeSelected(e.state,p)&&(s=!0,i[p]=!0),G.itemOrderedChildrenIds(e.state,p).forEach(c)};c(u)}if(t.parents){const c=f=>le.canItemBeSelected(e.state,f)?i[f]?G.itemOrderedChildrenIds(e.state,f).every(c):!1:G.itemOrderedChildrenIds(e.state,f).every(c),p=f=>{const h=G.itemParentId(e.state,f);if(h==null)return;G.itemOrderedChildrenIds(e.state,h).every(c)&&(le.canItemBeSelected(e.state,h)&&(s=!0,i[h]=!0),p(h))};p(u)}}),a.removed.forEach(u=>{if(t.parents){let c=G.itemParentId(e.state,u);for(;c!=null;)i[c]&&(s=!0,delete i[c]),c=G.itemParentId(e.state,c)}if(t.descendants){const c=p=>{p!==u&&(s=!0,delete i[p]),G.itemOrderedChildrenIds(e.state,p).forEach(c)};c(u)}}),s?Object.keys(i):n}function Pl({oldModel:e,newModel:t}){const n=new Map;t.forEach(r=>{n.set(r,!0)});const o=new Map;return e.forEach(r=>{o.set(r,!0)}),{added:t.filter(r=>!o.has(r)),removed:e.filter(r=>!n.has(r))}}function Wn(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const Kb=(e,t,n)=>typeof n=="function"?n(e,t):n,Al=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=At(),r=k.useContext(Kr),s=pe(o,Kb,e.itemId,r),{id:i,itemId:a,label:u,children:c,rootRef:p}=e,{rootRef:f,contentRef:h,propsEnhancers:d}=t(e),{interactions:y,status:m}=Bb({itemId:a,children:c}),v=k.useRef(null),_=k.useRef(null),S=tr(p,f,v),E=tr(h,_),C=k.useRef(null),x=pe(o,le.isCheckboxSelectionEnabled),I=pe(o,wo.treeItemIdAttribute,a,i),w=pe(o,on.isItemTheDefaultFocusableItem,a),N=pe(o,G.itemHeight),L={rootRefObject:v,contentRefObject:_,interactions:y},F=A=>P=>{var W;(W=A.onFocus)==null||W.call(A,P),!P.defaultMuiPrevented&&!m.focused&&G.canItemBeFocused(o.state,a)&&P.currentTarget===P.target&&o.focus.focusItem(P,a)},U=A=>P=>{var ie,D,Ee,te,Te;if((ie=A.onBlur)==null||ie.call(A,P),P.defaultMuiPrevented)return;const W=o.items.getItemDOMElement(a);m.editing||P.relatedTarget&&lr(P.relatedTarget,W)&&(P.target&&((Ee=(D=P.target)==null?void 0:D.dataset)==null?void 0:Ee.element)==="labelInput"&&lr(P.target,W)||((Te=(te=P.relatedTarget)==null?void 0:te.dataset)==null?void 0:Te.element)==="labelInput")||o.focus.removeFocusedItem()},b=A=>P=>{var W,ie,D;(W=A.onKeyDown)==null||W.call(A,P),!(P.defaultMuiPrevented||((D=(ie=P.target)==null?void 0:ie.dataset)==null?void 0:D.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(P,a)},R=A=>P=>{var W;(W=A.onDoubleClick)==null||W.call(A,P),!P.defaultMuiPrevented&&y.toggleItemEditing()},T=A=>P=>{var W,ie;(W=A.onClick)==null||W.call(A,P),o.items.handleItemClick(P,a),!(P.defaultMuiPrevented||(ie=C.current)!=null&&ie.contains(P.target))&&(Oe.triggerSlot(o.state)==="content"&&y.handleExpansion(P),x||y.handleSelection(P))},j=A=>P=>{var W;(W=A.onMouseDown)==null||W.call(A,P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||m.disabled)&&P.preventDefault()},V=A=>P=>{var W;(W=A.onClick)==null||W.call(A,P),!P.defaultMuiPrevented&&Oe.triggerSlot(o.state)==="iconContainer"&&y.handleExpansion(P)};return{getContextProviderProps:()=>({itemId:a,id:i}),getRootProps:(A={})=>{var D;const P=q({},Ue(e),Ue(A)),W=q({},P,{ref:S,role:"treeitem",tabIndex:w?0:-1,id:I,"aria-expanded":m.expandable?m.expanded:void 0,"aria-disabled":m.disabled||void 0},A,{style:q({},A.style??{},{"--TreeView-itemDepth":s},N==null?{}:{"--TreeView-itemHeight":`${N}px`}),onFocus:F(P),onBlur:U(P),onKeyDown:b(P)}),ie=((D=d.root)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},W,ie)},getContentProps:(A={})=>{var D;const P=Ue(A),W=q({},P,A,{ref:E,onClick:T(P),onMouseDown:j(P)});["expanded","selected","focused","disabled","editing","editable"].forEach(Ee=>{m[Ee]&&(W[`data-${Ee}`]="")});const ie=((D=d.content)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},W,ie)},getGroupTransitionProps:(A={})=>{const P=Ue(A);return q({},P,{unmountOnExit:!0,component:"ul",role:"group",in:m.expanded,children:c},A)},getIconContainerProps:(A={})=>{const P=Ue(A);return q({},P,A,{onClick:V(P)})},getCheckboxProps:(A={})=>{var D;const P=Ue(A),W=q({},P,{ref:C,"aria-hidden":!0},A),ie=((D=d.checkbox)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},W,ie)},getLabelProps:(A={})=>{var D;const P=q({},Ue(A)),W=q({},P,{children:u},A,{onDoubleClick:R(P)}),ie=((D=d.label)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},ie,W)},getLabelInputProps:(A={})=>{var ie;const P=Ue(A),W=((ie=d.labelInput)==null?void 0:ie.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},A,W)},getDragAndDropOverlayProps:(A={})=>{var ie;const P=Ue(A),W=((ie=d.dragAndDropOverlay)==null?void 0:ie.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},A,W)},getErrorContainerProps:(A={})=>{const P=Ue(A);return q({},P,A)},getLoadingContainerProps:(A={})=>{const P=Ue(A);return q({size:"12px",thickness:6},P,A)},rootRef:S,status:m,publicAPI:n}};function Yb(e){return Wr("MuiTreeItem",e)}_l("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const Xb=lt(g.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),Qb=lt(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),Jb=["ownerState"];function Go(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Xr(e){const{slots:t,slotProps:n,status:o}=e,{slots:r,slotProps:s}=Hr(),i={collapseIcon:Go(t==null?void 0:t.collapseIcon,r.collapseIcon,Qb),expandIcon:Go(t==null?void 0:t.expandIcon,r.expandIcon,Xb),endIcon:Go(t==null?void 0:t.endIcon,r.endIcon),icon:t==null?void 0:t.icon};let a;i!=null&&i.icon?a="icon":o.expandable?o.expanded?a="collapseIcon":a="expandIcon":a="endIcon";const u=i[a],c=Be({elementType:u,externalSlotProps:f=>q({},rr(s[a],f),rr(n==null?void 0:n[a],f)),ownerState:{}}),p=Ut(c,Jb);return u?g.jsx(u,q({},p)):null}process.env.NODE_ENV!=="production"&&(Xr.propTypes={slotProps:l.object,slots:l.object,status:l.shape({disabled:l.bool.isRequired,editable:l.bool.isRequired,editing:l.bool.isRequired,error:l.bool.isRequired,expandable:l.bool.isRequired,expanded:l.bool.isRequired,focused:l.bool.isRequired,indeterminate:l.bool,loading:l.bool.isRequired,selected:l.bool.isRequired}).isRequired});const Zb=de("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>sn(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.alpha((e.vars||e).palette.primary.dark,(e.vars||e).palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function jl(e){return e.action==null?null:g.jsx(Zb,q({},e))}process.env.NODE_ENV!=="production"&&(jl.propTypes={action:l.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:l.object});function Qr(e){const{children:t,itemId:n,id:o}=e,{wrapItem:r,store:s}=At(),i=pe(s,wo.treeItemIdAttribute,n,o);return g.jsx(k.Fragment,{children:r({children:t,itemId:n,store:s,idAttribute:i})})}process.env.NODE_ENV!=="production"&&(Qr.propTypes={children:l.node,id:l.string,itemId:l.string.isRequired});const ev=de("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>q({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),tv=["visible"],nv=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],ov=xl(),Ll=de("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Dl=de("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>sn(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",height:"var(--TreeView-itemHeight, unset)",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}})),Vl=de("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>sn(e)&&e!=="editable"})(({theme:e})=>q({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Bl=de("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),Fl=de(to,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),rv=de("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),sv=de(Vr,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),zl=de(k.forwardRef((e,t)=>{const{visible:n}=e,o=Ut(e,tv);return n?g.jsx(Il,q({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(zl.displayName="TreeItemCheckbox");const iv=e=>{const{classes:t}=Hr(),n=q({},e,{root:ue(e==null?void 0:e.root,t.root),content:ue(e==null?void 0:e.content,t.itemContent),iconContainer:ue(e==null?void 0:e.iconContainer,t.itemIconContainer),checkbox:ue(e==null?void 0:e.checkbox,t.itemCheckbox),label:ue(e==null?void 0:e.label,t.itemLabel),groupTransition:ue(e==null?void 0:e.groupTransition,t.itemGroupTransition),labelInput:ue(e==null?void 0:e.labelInput,t.itemLabelInput),dragAndDropOverlay:ue(e==null?void 0:e.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ue(e==null?void 0:e.errorIcon,t.itemErrorIcon),loadingIcon:ue(e==null?void 0:e.loadingIcon,t.itemLoadingIcon)});return vl({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},Yb,n)},Jr=k.forwardRef(function(t,n){const o=ov({props:t,name:"MuiTreeItem"}),{id:r,itemId:s,label:i,disabled:a,disableSelection:u,children:c,slots:p={},slotProps:f={},classes:h}=o,d=Ut(o,nv),{getContextProviderProps:y,getRootProps:m,getContentProps:v,getIconContainerProps:_,getCheckboxProps:S,getLabelProps:E,getGroupTransitionProps:C,getLabelInputProps:x,getDragAndDropOverlayProps:I,getErrorContainerProps:w,getLoadingContainerProps:N,status:L}=Al({id:r,itemId:s,children:c,label:i,disabled:a,disableSelection:u}),F=iv(h),U=p.root??Ll,b=Be({elementType:U,getSlotProps:m,externalForwardedProps:d,externalSlotProps:f.root,additionalProps:{ref:n},ownerState:{},className:F.root}),R=p.content??Dl,T=Be({elementType:R,getSlotProps:v,externalSlotProps:f.content,ownerState:{},className:F.content}),j=p.iconContainer??Bl,V=Be({elementType:j,getSlotProps:_,externalSlotProps:f.iconContainer,ownerState:{},className:F.iconContainer}),K=p.label??Vl,se=Be({elementType:K,getSlotProps:E,externalSlotProps:f.label,ownerState:{},className:F.label}),oe=p.checkbox??zl,M=Be({elementType:oe,getSlotProps:S,externalSlotProps:f.checkbox,ownerState:{},className:F.checkbox}),z=p.groupTransition??void 0,Q=Be({elementType:z,getSlotProps:C,externalSlotProps:f.groupTransition,ownerState:{},className:F.groupTransition}),re=p.labelInput??ev,ne=Be({elementType:re,getSlotProps:x,externalSlotProps:f.labelInput,ownerState:{},className:F.labelInput}),Y=p.dragAndDropOverlay??jl,J=Be({elementType:Y,getSlotProps:I,externalSlotProps:f.dragAndDropOverlay,ownerState:{},className:F.dragAndDropOverlay}),Z=p.errorIcon??rv,A=Be({elementType:Z,getSlotProps:w,externalSlotProps:f.errorIcon,ownerState:{},className:F.errorIcon}),P=p.loadingIcon??sv,W=Be({elementType:P,getSlotProps:N,externalSlotProps:f.loadingIcon,ownerState:{},className:F.loadingIcon});return g.jsx(Qr,q({},y(),{children:g.jsxs(U,q({},b,{children:[g.jsxs(R,q({},T,{children:[g.jsxs(j,q({},V,{children:[L.error&&g.jsx(Z,q({},A)),L.loading?g.jsx(P,q({},W)):g.jsx(Xr,{status:L,slots:p,slotProps:f})]})),g.jsx(oe,q({},M)),L.editing?g.jsx(re,q({},ne)):g.jsx(K,q({},se)),g.jsx(Y,q({},J))]})),c&&g.jsx(Fl,q({as:z},Q))]}))}))});process.env.NODE_ENV!=="production"&&(Jr.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(Jr.propTypes={children:l.any,classes:l.object,className:l.string,disabled:l.bool,disableSelection:l.bool,id:l.string,itemId:l.string.isRequired,label:l.node,onBlur:l.func,onFocus:bb,onKeyDown:l.func,slotProps:l.object,slots:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});function av(e,t,n){const o=pe(e,wo.treeId),r=pe(e,G.itemChildrenIndentation),s=pe(e,le.isMultiSelectEnabled);return i=>q({ref:n,role:"tree",id:o,"aria-multiselectable":s},t,i,{style:q({},t.style,{"--TreeView-itemChildrenIndentation":typeof r=="number"?`${r}px`:r}),onFocus:a=>{var u;(u=i.onFocus)==null||u.call(i,a),e.focus.handleRootFocus(a)},onBlur:a=>{var u;(u=i.onBlur)==null||u.call(i,a),e.focus.handleRootBlur(a)}})}const lv=["ownerState"],Zr=k.createContext(null);process.env.NODE_ENV!=="production"&&(Zr.displayName="RichTreeViewItemsContext");const cv=()=>Ur,uv=e=>G.itemOrderedChildrenIds(e,null),Wl=k.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:r}){const s=k.useContext(Zr),{store:i}=At(),a=pe(i,G.itemMeta,o),u=pe(i,r?cv:G.itemOrderedChildrenIds,o),c=t??Jr,p=Be({elementType:c,externalSlotProps:n,additionalProps:{label:a==null?void 0:a.label,id:a==null?void 0:a.idAttribute,itemId:o},ownerState:{itemId:o,label:a==null?void 0:a.label}}),f=Ut(p,lv);return g.jsx(c,q({},f,{children:s?u==null?void 0:u.map(s):null}))},yb);process.env.NODE_ENV!=="production"&&(Wl.displayName="RichTreeViewItem");function dv(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:r,rootRef:s}=e,{store:i}=At(),{classes:a}=Hr(),u=t==null?void 0:t.item,c=n==null?void 0:n.item,p=pe(i,G.domStructure),f=pe(i,p==="flat"?Oe.flatList:uv),h=av(i,r,s),d=t.root,y=Be({elementType:d,externalSlotProps:n==null?void 0:n.root,className:a.root,getSlotProps:h,ownerState:o}),m=p==="flat",v=k.useCallback(_=>g.jsx(Wl,{itemSlot:u,itemSlotProps:c,itemId:_,skipChildren:m},_),[u,c,m]);return g.jsx(Zr.Provider,{value:v,children:g.jsx(d,q({},y,{children:f.map(v)}))})}const pv=["apiRef","slots","slotProps","disabledItemsFocusable","items","isItemDisabled","isItemSelectionDisabled","getItemLabel","getItemChildren","getItemId","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus","itemHeight","onItemLabelChange","isItemEditable","domStructure"];function fv(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:r,items:s,isItemDisabled:i,isItemSelectionDisabled:a,getItemLabel:u,getItemChildren:c,getItemId:p,onItemClick:f,itemChildrenIndentation:h,id:d,expandedItems:y,defaultExpandedItems:m,onExpandedItemsChange:v,onItemExpansionToggle:_,expansionTrigger:S,disableSelection:E,selectedItems:C,defaultSelectedItems:x,multiSelect:I,checkboxSelection:w,selectionPropagation:N,onSelectedItemsChange:L,onItemSelectionToggle:F,onItemFocus:U,itemHeight:b,onItemLabelChange:R,isItemEditable:T,domStructure:j}=e,V=Ut(e,pv),K=k.useMemo(()=>({disabledItemsFocusable:r,items:s,isItemDisabled:i,isItemSelectionDisabled:a,getItemLabel:u,getItemChildren:c,getItemId:p,onItemClick:f,itemChildrenIndentation:h,id:d,expandedItems:y,defaultExpandedItems:m,onExpandedItemsChange:v,onItemExpansionToggle:_,expansionTrigger:S,disableSelection:E,selectedItems:C,defaultSelectedItems:x,multiSelect:I,checkboxSelection:w,selectionPropagation:N,onSelectedItemsChange:L,onItemSelectionToggle:F,onItemFocus:U,itemHeight:b,onItemLabelChange:R,isItemEditable:T,domStructure:j}),[r,s,i,a,u,c,p,f,h,d,y,m,v,_,S,E,C,x,I,w,N,L,F,U,b,R,T,j]);return{apiRef:t,slots:n,slotProps:o,parameters:K,forwardedProps:V}}const mv=()=>{},hv=typeof document<"u"?k.useLayoutEffect:mv;function es(e){k.useEffect(e,Ur)}const gv={...k},Sn=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),xi=typeof SuppressedError=="function"?SuppressedError:void 0;function yv(e,t){if(xi)return new xi(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function Bn(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class ts{constructor(){B(this,"stack",[]);B(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if(Bn(this.isDisposed),t!=null){const n=t[Sn];if(typeof n!="function")throw new TypeError("MUI X: The value is not disposable.");this.stack.push(()=>n.call(t))}return t}adopt(t,n){return Bn(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){Bn(this.isDisposed),this.stack.push(t)}move(){Bn(this.isDisposed);const t=new ts;return t.stack=this.stack,this.stack=[],this.isDisposed=!0,t}dispose(){if(this.isDisposed)return;this.isDisposed=!0;let t=!1,n;for(let o=this.stack.length-1;o>=0;o-=1)try{this.stack[o]()}catch(r){n=t?yv(r,n):r,t=!0}if(this.stack=[],t)throw n}[Sn](){this.dispose()}}const bv=globalThis.DisposableStack??ts;function vv(e){const t=[];let n=e;for(;typeof n=="object"&&n!==null&&"error"in n&&"suppressed"in n;)t.push(n.error),n=n.suppressed;return t.push(n),t}const _v=16,Ci=gv,en=Ci.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function xv(){var e,t,n;try{const o=((t=(e=en==null?void 0:en.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=en==null?void 0:en.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&_v)!==0}catch{return!1}}const ro=Symbol("useDisposable.mount"),Cv=Symbol("useDisposable.devState"),cn=Symbol();function Sv(e){const t=k.useRef(cn);if(t.current===cn){const n=e(),o=()=>{n[Sn](),t.current=cn};n[ro]=()=>o,t.current=n}return es(t.current[ro]),t.current}function Iv(e){const t=k.useRef(cn);if(t.current===cn){const n=e(),o={detectedStrict:xv(),mountCount:0,disposed:!1};n[Cv]=o,n[ro]=()=>{if(o.mountCount+=1,o.mountCount>1&&o.disposed)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: useDisposable failed to detect React StrictMode.
249
+ */var gd;function y1(){return gd||(gd=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Q,n=Nl(),o=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Fi.useSyncExternalStoreWithSelector=function(u,d,m,h,p){var g=i(null);if(g.current===null){var f={hasValue:!1,value:null};g.current=f}else f=g.current;g=l(function(){function x(E){if(!w){if(w=!0,T=E,E=h(E),p!==void 0&&f.hasValue){var N=f.value;if(p(N,E))return C=N}return C=E}if(N=C,o(T,E))return N;var R=h(E);return p!==void 0&&p(N,R)?(T=E,N):(T=E,C=R)}var w=!1,T,C,I=m===void 0?null:m;return[function(){return x(d())},I===null?void 0:function(){return x(I())}]},[d,m,h,p]);var y=s(u,g[0],g[1]);return a(function(){f.hasValue=!0,f.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Fi}var bd;function v1(){return bd||(bd=1,process.env.NODE_ENV==="production"?ts.exports=b1():ts.exports=y1()),ts.exports}var x1=v1();const S1=parseInt(S.version,10),C1=S1>=19,T1=C1?w1:I1;function Ee(e,t,n,o,s){return T1(e,t,n,o,s)}function w1(e,t,n,o,s){const i=S.useCallback(()=>t(e.getSnapshot(),n,o,s),[e,t,n,o,s]);return g1.useSyncExternalStore(e.subscribe,i,i)}function I1(e,t,n,o,s){return x1.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,s))}class Ml{constructor(t){U(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));U(this,"getSnapshot",()=>this.state);U(this,"use",(t,n,o,s)=>Ee(this,t,n,o,s));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new Ml(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let s;for(;s=o.next(),!s.done;){if(n!==this.updateTick)return;const i=s.value;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(M({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(M({},this.state,{[t]:n}))}}function E1(e){return _e("MuiAlert",e)}const yd=Te("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),O1=rt(b.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),_1=rt(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),k1=rt(b.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),P1=rt(b.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),R1=rt(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),N1=e=>{const{variant:t,color:n,severity:o,classes:s}=e,i={root:["root",`color${le(n||o)}`,`${t}${le(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return De(i,E1,s)},M1=te(Dr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(mt(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${yd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(mt(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${yd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(mt(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),$1=te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),D1=te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),A1=te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vd={success:b.jsx(O1,{fontSize:"inherit"}),warning:b.jsx(_1,{fontSize:"inherit"}),error:b.jsx(k1,{fontSize:"inherit"}),info:b.jsx(P1,{fontSize:"inherit"})},th=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:m,iconMapping:h=vd,onClose:p,role:g="alert",severity:f="success",slotProps:y={},slots:x={},variant:w="standard",...T}=o,C={...o,color:c,severity:f,variant:w,colorSeverity:c||f},I=N1(C),E={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...y}},[N,R]=Ge("root",{ref:n,shouldForwardComponentProp:!0,className:ce(I.root,a),elementType:M1,externalForwardedProps:{...E,...T},ownerState:C,additionalProps:{role:g,elevation:0}}),[L,V]=Ge("icon",{className:I.icon,elementType:$1,externalForwardedProps:E,ownerState:C}),[j,v]=Ge("message",{className:I.message,elementType:D1,externalForwardedProps:E,ownerState:C}),[_,O]=Ge("action",{className:I.action,elementType:A1,externalForwardedProps:E,ownerState:C}),[P,k]=Ge("closeButton",{elementType:Jn,externalForwardedProps:E,ownerState:C}),[D,$]=Ge("closeIcon",{elementType:R1,externalForwardedProps:E,ownerState:C});return b.jsxs(N,{...R,children:[m!==!1?b.jsx(L,{...V,children:m||h[f]||vd[f]}):null,b.jsx(j,{...v,children:i}),s!=null?b.jsx(_,{...O,children:s}):null,s==null&&p?b.jsx(_,{...O,children:b.jsx(P,{size:"small","aria-label":l,title:l,color:"inherit",onClick:p,...k,children:b.jsx(D,{fontSize:"small",...$})})}):null]})});process.env.NODE_ENV!=="production"&&(th.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function nh(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const xd=e=>e,j1=()=>{let e=xd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xd}}},L1=j1(),V1={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 $l(e,t,n="Mui"){const o=V1[t];return o?`${n}-${o}`:`${L1.generate(e)}-${t}`}function oh(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=$l(e,s,n)}),o}function F1(e){return $l("MuiRichTreeView",e)}oh("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function rh(e){return ze}const Dl=Object.freeze([]),Oo=Object.freeze({}),Al=S.createContext(null);process.env.NODE_ENV!=="production"&&(Al.displayName="TreeViewContext");const Vn=()=>{const e=S.useContext(Al);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Could not find the Tree View context. This happens when a component is rendered outside of a SimpleTreeView or RichTreeView parent component. Ensure your component is a child of a Tree View component. This can also happen if you are bundling multiple versions of the Tree View.":Oe(190));return e},jl=S.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(jl.displayName="TreeViewStyleContext");const Ll=()=>S.useContext(jl),B1=e=>{const{store:t,apiRef:n,rootRef:o}=e,s=Jm(()=>t.buildPublicAPI()).current;z1(s,n);const i=S.useCallback(l=>{let c=null,u=null;const d=[],m={};t.itemPluginManager.listPlugins().forEach(g=>{const f=g({props:l,rootRef:c,contentRef:u});f!=null&&f.rootRef&&(c=f.rootRef),f!=null&&f.contentRef&&(u=f.contentRef),f!=null&&f.propsEnhancers&&(d.push(f.propsEnhancers),Object.keys(f.propsEnhancers).forEach(y=>{m[y]=!0}))});const h=g=>f=>{const y={};return d.forEach(x=>{const w=x[g];w!=null&&Object.assign(y,w(f))}),y},p=Object.fromEntries(Object.keys(m).map(g=>[g,h(g)]));return{contentRef:u,rootRef:c,propsEnhancers:p}},[t]),a=S.useCallback(({itemId:l,children:c,idAttribute:u})=>{let d=c;const m=t.itemPluginManager.listWrappers();for(let h=m.length-1;h>=0;h-=1){const p=m[h];d=p({store:t,itemId:l,children:d,idAttribute:u})}return d},[t]);return S.useMemo(()=>({runItemPlugins:i,wrapItem:a,publicAPI:s,store:t,rootRef:o}),[i,a,s,t,o])};function z1(e,t){t!=null&&t.current!==e&&(t.current=e)}function W1(e){const{store:t,apiRef:n,rootRef:o,classes:s=Oo,slots:i=Oo,slotProps:a=Oo,children:l}=e,c=B1({store:t,apiRef:n,rootRef:o}),u=S.useMemo(()=>({classes:s,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:a.collapseIcon,expandIcon:a.expandIcon,endIcon:a.endIcon}}),[s,i.collapseIcon,i.expandIcon,i.endIcon,a.collapseIcon,a.expandIcon,a.endIcon]);return b.jsx(Al.Provider,{value:c,children:b.jsx(jl.Provider,{value:u,children:l})})}function U1(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function H1(e){return typeof e=="string"}function q1(e,t,n){return e===void 0||H1(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Y1(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Et(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))Y1(n,e[n])&&(t[n]=e[n]);return t}function Sd(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 G1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Et({...s,...o}),l=Sd(o),c=Sd(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function ca(e,t,n){return typeof e=="function"?e(t,n):e}function St(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:ca(n,o),{props:l,internalRef:c}=G1({...i,externalSlotProps:a}),u=U1(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return q1(t,{...l,ref:u},o)}const K1=Object.is;function X1(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const s in e)if(n+=1,!K1(e[s],t[s])||!(s in t))return!1;for(const s in t)o+=1;return n===o}function Q1(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Z1(e){return _e("MuiCollapse",e)}Te("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const J1=e=>{const{orientation:t,classes:n}=e;return De({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},Z1,n)},eR=te("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Xe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),tR=te("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),nR=te("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ks=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:m,onEntered:h,onEntering:p,onExit:g,onExited:f,onExiting:y,orientation:x="vertical",slots:w={},slotProps:T={},style:C,timeout:I=Gp.standard,TransitionComponent:E=zt,...N}=o,R={...o,orientation:x,collapsedSize:l},L=J1(R),V=Pr(),j=Wa(),v=S.useRef(null),_=S.useRef(),O=typeof l=="number"?`${l}px`:l,P=x==="horizontal",k=P?"width":"height",D=S.useRef(null),$=ut(n,D),z=()=>v.current?v.current[P?"clientWidth":"clientHeight"]:0,A=lt(D,(oe,ye)=>{v.current&&P&&(v.current.style.position="absolute"),oe.style[k]=O,m&&m(oe,ye)}),F=lt(D,(oe,ye)=>{const me=z();v.current&&P&&(v.current.style.position="");const{duration:re,easing:J}=Mo({style:C,timeout:I,easing:u},{mode:"enter"});if(I==="auto"){const ge=V.transitions.getAutoHeightDuration(me);oe.style.transitionDuration=`${ge}ms`,_.current=ge}else oe.style.transitionDuration=typeof re=="string"?re:`${re}ms`;oe.style[k]=`${me}px`,oe.style.transitionTimingFunction=J,p&&p(oe,ye)}),W=lt(D,(oe,ye)=>{oe.style[k]="auto",h&&h(oe,ye)}),K=lt(D,oe=>{oe.style[k]=`${z()}px`,g&&g(oe)}),Z=lt(D,f),Y=lt(D,oe=>{const ye=z(),{duration:me,easing:re}=Mo({style:C,timeout:I,easing:u},{mode:"exit"});if(I==="auto"){const J=V.transitions.getAutoHeightDuration(ye);oe.style.transitionDuration=`${J}ms`,_.current=J}else oe.style.transitionDuration=typeof me=="string"?me:`${me}ms`;oe.style[k]=O,oe.style.transitionTimingFunction=re,y&&y(oe)}),X=oe=>{I==="auto"&&j.start(_.current||0,oe),s&&s(D.current,oe)},ne={slots:w,slotProps:T,component:c},[q,B]=Ge("root",{ref:$,className:ce(L.root,a),elementType:eR,externalForwardedProps:ne,ownerState:R,additionalProps:{style:{[P?"minWidth":"minHeight"]:O,...C}}}),[H,ae]=Ge("wrapper",{ref:v,className:L.wrapper,elementType:tR,externalForwardedProps:ne,ownerState:R}),[G,de]=Ge("wrapperInner",{className:L.wrapperInner,elementType:nR,externalForwardedProps:ne,ownerState:R});return b.jsx(E,{in:d,onEnter:A,onEntered:W,onEntering:F,onExit:K,onExited:Z,onExiting:Y,addEndListener:X,nodeRef:D,timeout:I==="auto"?null:I,...N,children:(oe,{ownerState:ye,...me})=>{const re={...R,state:oe};return b.jsx(q,{...B,className:ce(B.className,{entered:L.entered,exited:!d&&O==="0px"&&L.hidden}[oe]),ownerState:re,...me,children:b.jsx(H,{...ae,ownerState:re,children:b.jsx(G,{...de,ownerState:re,children:i})})})}})});process.env.NODE_ENV!=="production"&&(ks.propTypes={addEndListener:r.func,children:r.node,classes:r.object,className:r.string,collapsedSize:r.oneOfType([r.number,r.string]),component:Fa,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,orientation:r.oneOf(["horizontal","vertical"]),slotProps:r.shape({root:r.oneOfType([r.func,r.object]),wrapper:r.oneOfType([r.func,r.object]),wrapperInner:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,wrapper:r.elementType,wrapperInner:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});ks&&(ks.muiSupportAuto=!0);function oR(e){return _e("PrivateSwitchBase",e)}Te("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rR=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,i={root:["root",n&&"checked",o&&"disabled",s&&`edge${le(s)}`],input:["input"]};return De(i,oR,t)},sR=te(Zn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),iR=te("input",{name:"MuiSwitchBase",shouldForwardProp:Bo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sh=S.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:p,name:g,onBlur:f,onChange:y,onFocus:x,readOnly:w,required:T=!1,tabIndex:C,type:I,value:E,slots:N={},slotProps:R={},...L}=t,[V,j]=iC({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),v=oo(),_=Y=>{x&&x(Y),v&&v.onFocus&&v.onFocus(Y)},O=Y=>{f&&f(Y),v&&v.onBlur&&v.onBlur(Y)},P=Y=>{if(Y.nativeEvent.defaultPrevented||w)return;const X=Y.target.checked;j(X),y&&y(Y,X)};let k=l;v&&typeof k>"u"&&(k=v.disabled);const D=I==="checkbox"||I==="radio",$={...t,checked:V,disabled:k,disableFocusRipple:c,edge:u},z=rR($),A={slots:N,slotProps:{input:h,...R}},[F,W]=Ge("root",{ref:n,elementType:sR,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...A,component:"span",...L},getSlotProps:Y=>({...Y,onFocus:X=>{var ne;(ne=Y.onFocus)==null||ne.call(Y,X),_(X)},onBlur:X=>{var ne;(ne=Y.onBlur)==null||ne.call(Y,X),O(X)}}),ownerState:$,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[K,Z]=Ge("input",{ref:p,elementType:iR,className:z.input,externalForwardedProps:A,getSlotProps:Y=>({...Y,onChange:X=>{var ne;(ne=Y.onChange)==null||ne.call(Y,X),P(X)}}),ownerState:$,additionalProps:{autoFocus:o,checked:s,defaultChecked:a,disabled:k,id:D?m:void 0,name:g,readOnly:w,required:T,tabIndex:C,type:I,...I==="checkbox"&&E===void 0?{}:{value:E}}});return b.jsxs(F,{...W,children:[b.jsx(K,{...Z}),V?i:d]})});process.env.NODE_ENV!=="production"&&(sh.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:Qs,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const aR=rt(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),lR=rt(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),cR=rt(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function uR(e){return _e("MuiCheckbox",e)}const Bi=Te("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dR=e=>{const{classes:t,indeterminate:n,color:o,size:s}=e,i={root:["root",n&&"indeterminate",`color${le(o)}`,`size${le(s)}`]},a=De(i,uR,t);return{...t,...a}},pR=te(sh,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${le(n.size)}`],n.color!=="default"&&t[`color${le(n.color)}`]]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(mt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(mt()).map(([t])=>({props:{color:t},style:{[`&.${Bi.checked}, &.${Bi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Bi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),fR=b.jsx(lR,{}),mR=b.jsx(aR,{}),hR=b.jsx(cR,{}),ih=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiCheckbox"}),{checkedIcon:s=fR,color:i="primary",icon:a=mR,indeterminate:l=!1,indeterminateIcon:c=hR,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:p={},slotProps:g={},...f}=o,y=l?c:a,x=l?c:s,w={...o,disableRipple:m,color:i,indeterminate:l,size:d},T=dR(w),C=g.input??u,[I,E]=Ge("root",{ref:n,elementType:pR,className:ce(T.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:S.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:S.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:m,slots:p,slotProps:{input:lC(typeof C=="function"?C(w):C,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return b.jsx(I,{...E,classes:T})});process.env.NODE_ENV!=="production"&&(ih.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const Rt="__TREE_VIEW_ROOT_PARENT_ID__",ah=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},Ps=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function lh(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],m=h=>{const p=t.getItemId?t.getItemId(h):h.id;gR({id:p,parentId:o,item:h,itemMetaLookup:a,siblingsMetaLookup:l});const g=t.getItemLabel?t.getItemLabel(h):h.label;if(g==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a \`label\` property. You can use the \`getItemLabel\` prop to specify a custom label for each item. An item was provided without a label: ${JSON.stringify(h)}`:Oe(192,JSON.stringify(h)));const f=(t.getItemChildren?t.getItemChildren(h):h.children)||[];d.push({id:p,children:f}),c[p]=h,l[p]={id:p,label:g,parentId:o,idAttribute:void 0,expandable:i(h,f),disabled:t.isItemDisabled?t.isItemDisabled(h):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(h):!0,depth:s},u.push(p)};for(const h of n)m(h);return{metaLookup:l,modelLookup:c,orderedChildrenIds:u,childrenIndexes:ah(u),itemsChildren:d}}function Cd(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,existingItemMetaLookup:a}=e,l={},c={},u={},d={},m=M({},a),h=(p,g,f)=>{const y=lh({storeParameters:t,items:p,parentId:g,depth:f,isItemExpandable:i,otherItemsMetaLookup:m});Object.assign(l,y.metaLookup),Object.assign(m,y.metaLookup),Object.assign(c,y.modelLookup),u[g??Rt]=y.orderedChildrenIds,d[g??Rt]=y.childrenIndexes;for(const x of y.itemsChildren)h(x.children,x.id,f+1)};return h(n,o,s),{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}}function gR({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:s}){if(e==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. You can use the \`getItemId\` prop to specify a custom id for each item. An item was provided without an id: ${JSON.stringify(n)}`:Oe(193,JSON.stringify(n)));if(s[e]!=null||o[e]!=null&&o[e].parentId!==t)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${e}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Oe(194,e))}const bR=[],ue={domStructure:Ce(e=>e.domStructure),disabledItemFocusable:Ce(e=>e.disabledItemsFocusable),itemMetaLookup:Ce(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:Ce(e=>e.itemOrderedChildrenIdsLookup),itemMeta:Ce((e,t)=>e.itemMetaLookup[t??Rt]??null),itemOrderedChildrenIds:Ce((e,t)=>e.itemOrderedChildrenIdsLookup[t??Rt]??bR),itemModel:Ce((e,t)=>e.itemModelLookup[t]),isItemDisabled:Ce((e,t)=>Ps(e.itemMetaLookup,t)),itemIndex:Ce((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Rt][n.id]}),itemParentId:Ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:Ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:Ce((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!Ps(e.itemMetaLookup,t)),itemChildrenIndentation:Ce(e=>e.itemChildrenIndentation),itemHeight:Ce(e=>e.itemHeight)},Td=Ce(e=>e.providedTreeId??e.treeId),vi={treeId:Td,treeItemIdAttribute:Ce(Td,(e,t,n)=>n??`${e??""}-${t}`)};class _o{constructor(t){U(this,"getItem",t=>ue.itemModel(this.store.state,t));U(this,"getItemTree",()=>{const t=n=>{const o=ue.itemModel(this.store.state,n),s=M({},o),i=ue.itemOrderedChildrenIds(this.store.state,n);return i.length>0?s.children=i.map(t):delete s.children,s};return ue.itemOrderedChildrenIds(this.store.state,null).map(t)});U(this,"getItemOrderedChildrenIds",t=>ue.itemOrderedChildrenIds(this.store.state,t));U(this,"getParentId",t=>{const n=ue.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});U(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=M({},this.store.state.itemMetaLookup);o[t]=M({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});U(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&ue.itemMeta(this.store.state,n)==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items to the parent with id "${n}" because it is not present in the tree. Pass the id of an existing item, or \`null\` to add the items at the root level.`:Oe(295,n));const s=n==null?-1:ue.itemDepth(this.store.state,n),i=this.store.parameters.dataSource,a=(x,w)=>w!=null&&w.length>0?!0:i==null?!1:i.getChildrenCount(x)!==0,{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}=Cd({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:a,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const x of Object.keys(l))if(this.store.state.itemMetaLookup[x]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${x}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Oe(194,x));const m=n??Rt,h=ue.itemOrderedChildrenIds(this.store.state,n),p=o??h.length;if(p<0||p>h.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${p}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${h.length}).`:Oe(296,p,h.length));const g=u[m],f=[...h];f.splice(p,0,...g),u[m]=f,d[m]=ah(f);const y=M({},this.store.state.itemMetaLookup,l);n!=null&&!y[n].expandable&&(y[n]=M({},y[n],{expandable:!0})),this.store.update({itemMetaLookup:y,itemModelLookup:M({},this.store.state.itemModelLookup,c),itemOrderedChildrenIdsLookup:M({},this.store.state.itemOrderedChildrenIdsLookup,u),itemChildrenIndexesLookup:M({},this.store.state.itemChildrenIndexesLookup,d)}),this.store.selection.propagateSelectionToNewItems(n,g)});U(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));U(this,"getItemDOMElement",t=>{const n=ue.itemMeta(this.store.state,t);if(n==null)return null;const o=vi.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});U(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const s=n??Rt,i=n==null?-1:ue.itemDepth(this.store.state,n),{metaLookup:a,modelLookup:l,orderedChildrenIds:c,childrenIndexes:u}=lh({storeParameters:this.store.parameters,items:t,parentId:n,depth:i+1,isItemExpandable:o?d=>o(d)!==0:()=>!1,otherItemsMetaLookup:ue.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:M({},this.store.state.itemModelLookup,l),itemMetaLookup:M({},this.store.state.itemMetaLookup,a),itemOrderedChildrenIdsLookup:M({},this.store.state.itemOrderedChildrenIdsLookup,{[s]:c}),itemChildrenIndexesLookup:M({},this.store.state.itemChildrenIndexesLookup,{[s]:u})})});U(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((l,c)=>{const u=n[c];return u.parentId===t?l:M({},l,{[u.id]:u})},{}),s=M({},this.store.state.itemOrderedChildrenIdsLookup),i=M({},this.store.state.itemChildrenIndexesLookup),a=t??Rt;delete i[a],delete s[a],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i})});U(this,"handleItemClick",(t,n)=>{var o,s;(s=(o=this.store.parameters).onItemClick)==null||s.call(o,t,n)});this.store=t}}U(_o,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const s=o;return t[s]!==n[s]})),U(_o,"buildItemsStateIfNeeded",t=>Cd({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const zi=Lr(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Je={expandedItemsRaw:Ce(e=>e.expandedItems),expandedItemsMap:zi,flatList:Lr(ue.itemOrderedChildrenIdsLookup,zi,(e,t)=>{function n(o){if(!t.has(o))return[o];const s=[o],i=e[o]||[];for(const a of i)s.push(...n(a));return s}return(e[Rt]??[]).flatMap(n)}),triggerSlot:Ce(e=>e.expansionTrigger),isItemExpanded:Ce(zi,(e,t)=>e.has(t)),isItemExpandable:Ce(ue.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},ch=Lr(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),uh=Lr(ch,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),ua=Ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),da=Ce(uh,(e,t)=>e.has(t)),dh=Ce(ue.isItemDisabled,ua,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),ph=Ce(e=>e.selectionPropagation),wd=Ce((e,t)=>{if(da(e,t))return"selected";if(ue.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const s=a=>{a!==t&&dh(e,a)&&(da(e,a)?n=!0:o=!0),ue.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),ph(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),Se={selectedItemsRaw:Ce(e=>e.selectedItems),selectedItems:ch,selectedItemsMap:uh,enabled:Ce(e=>!e.disableSelection),isMultiSelectEnabled:Ce(e=>e.multiSelect),isCheckboxSelectionEnabled:Ce(e=>e.checkboxSelection),propagationRules:ph,isItemSelected:da,itemSelectionStatus:wd,isItemIndeterminate:Ce(wd,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:Ce(ua,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:dh,isItemSelectable:ua},Id=Lr(Se.selectedItems,Je.expandedItemsMap,ue.itemMetaLookup,ue.disabledItemFocusable,e=>ue.itemOrderedChildrenIds(e,null),(e,t,n,o,s)=>{const i=e.find(l=>{if(!o&&Ps(n,l))return!1;const c=n[l];return c&&(c.parentId==null||t.has(c.parentId))});if(i!=null)return i;const a=s.find(l=>o||!Ps(n,l));return a??null}),So={defaultFocusableItemId:Id,isItemTheDefaultFocusableItem:Ce(Id,(e,t)=>e===t),focusedItemId:Ce(e=>e.focusedItemId),isItemFocused:Ce((e,t)=>e.focusedItemId===t)},Rs={isEmpty:Ce(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:Ce((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??Rt])??!1}),itemHasError:Ce((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??Rt])}),itemError:Ce((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??Rt]})},an={isItemEditable:Ce(e=>e.isItemEditable,ue.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:Ce((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:Ce(e=>!!e.editedItemId)},fh=e=>Array.isArray(e)?e.length>0&&e.some(fh):!!e,mh=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=Vn(),s=Ee(n,Je.isItemExpandable,e),i=Ee(n,Rs.isItemLoading,e),a=Ee(n,Rs.itemHasError,e),l=fh(t)||s,c=Ee(n,Je.isItemExpanded,e),u=Ee(n,So.isItemFocused,e),d=Ee(n,Se.isItemSelected,e),m=Ee(n,Se.isItemIndeterminate,e),h=Ee(n,ue.isItemDisabled,e),p=Ee(n,an.isItemBeingEdited,e),g=Ee(n,an.isItemEditable,e),f={expandable:l,expanded:c,focused:u,selected:d,indeterminate:m,disabled:h,editing:p,editable:g,loading:i,error:a},y=N=>{if(f.disabled)return;f.focused||n.focus.focusItem(N,e);const R=Se.isMultiSelectEnabled(n.state)&&(N.shiftKey||N.ctrlKey||N.metaKey);f.expandable&&!(R&&Je.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:N,itemId:e})},x=N=>{if(!Se.canItemBeSelected(n.state,e))return;!f.focused&&!f.editing&&n.focus.focusItem(N,e),Se.isMultiSelectEnabled(n.state)&&(N.shiftKey||N.ctrlKey||N.metaKey)?N.shiftKey?n.selection.expandSelectionRange(N,e):n.selection.setItemSelection({event:N,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:N,itemId:e,shouldBeSelected:!0})},w=N=>{const R=N.nativeEvent.shiftKey,L=Se.isMultiSelectEnabled(n.state);L&&R?n.selection.expandSelectionRange(N,e):n.selection.setItemSelection({event:N,itemId:e,keepExistingSelection:L,shouldBeSelected:N.target.checked})},T=()=>{n.labelEditing&&(p?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:y,handleSelection:x,handleCheckboxSelection:w,toggleItemEditing:T,handleSaveItemLabel:(N,R)=>{n.labelEditing&&an.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,R),T(),n.focus.focusItem(N,e))},handleCancelItemLabelEditing:N=>{n.labelEditing&&an.isItemBeingEdited(n.state,e)&&(T(),n.focus.focusItem(N,e))}},status:f,publicAPI:o}},Vl=S.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Vl.displayName="TreeViewItemDepthContext");const pa=(e,t)=>{let n=t.length-1;for(;n>=0&&!ue.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},Fl=(e,t)=>{const n=ue.itemMeta(e,t);if(!n)return null;const o=ue.itemOrderedChildrenIds(e,n.parentId),s=ue.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!ue.canItemBeFocused(e,o[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:Fl(e,n.parentId);let a=o[i],l=pa(e,ue.itemOrderedChildrenIds(e,a));for(;Je.isItemExpanded(e,a)&&l!=null;)a=l,l=pa(e,ue.itemOrderedChildrenIds(e,a));return a},mr=(e,t)=>{if(Je.isItemExpanded(e,t)){const o=ue.itemOrderedChildrenIds(e,t).find(s=>ue.canItemBeFocused(e,s));if(o!=null)return o}let n=ue.itemMeta(e,t);for(;n!=null;){const o=ue.itemOrderedChildrenIds(e,n.parentId),s=ue.itemIndex(e,n.id);if(s<o.length-1){let i=s+1;for(;!ue.canItemBeFocused(e,o[i])&&i<o.length-1;)i+=1;if(ue.canItemBeFocused(e,o[i]))return o[i]}n=ue.itemMeta(e,n.parentId)}return null},hh=e=>{let t=null;for(;t==null||Je.isItemExpanded(e,t);){const n=ue.itemOrderedChildrenIds(e,t),o=pa(e,n);if(o==null)return t;t=o}return t},wr=e=>ue.itemOrderedChildrenIds(e,null).find(t=>ue.canItemBeFocused(e,t)),gh=(e,t,n)=>{if(t===n)return[t,n];const o=ue.itemMeta(e,t),s=ue.itemMeta(e,n);if(!o||!s)return[t,n];if(o.parentId===s.id||s.parentId===o.id)return s.parentId===o.id?[o.id,s.id]:[s.id,o.id];const i=[o.id],a=[s.id];let l=o.parentId,c=s.parentId,u=a.indexOf(l)!==-1,d=i.indexOf(c)!==-1,m=!0,h=!0;for(;!d&&!u;)m&&(i.push(l),u=a.indexOf(l)!==-1,m=l!==null,!u&&m&&(l=ue.itemParentId(e,l))),h&&!u&&(a.push(c),d=i.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=ue.itemParentId(e,c)));const p=u?l:c,g=ue.itemOrderedChildrenIds(e,p),f=i[i.indexOf(p)-1],y=a[a.indexOf(p)-1];return g.indexOf(f)<g.indexOf(y)?[t,n]:[n,t]},yR=(e,t,n)=>{const o=c=>{if(Je.isItemExpandable(e,c)&&Je.isItemExpanded(e,c))return ue.itemOrderedChildrenIds(e,c)[0];let u=ue.itemMeta(e,c);for(;u!=null;){const d=ue.itemOrderedChildrenIds(e,u.parentId),m=ue.itemIndex(e,u.id);if(m<d.length-1)return d[m+1];u=u.parentId?ue.itemMeta(e,u.parentId):null}throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Invalid range - unable to find a path between the two items. This may occur if the items are not in the same tree or the tree structure is invalid. Verify that both items exist in the tree.":Oe(191))},[s,i]=gh(e,t,n),a=[s];let l=s;for(;l!==i;)l=o(l),ue.isItemDisabled(e,l)||a.push(l);return a},vR=e=>{let t=wr(e);const n=[];for(;t!=null;)n.push(t),t=mr(e,t);return n},fa=(e,t)=>t!==e.closest('*[role="treeitem"]');class xR{constructor(t){U(this,"setExpandedItems",(t,n)=>{var o,s;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(s=(o=this.store.parameters).onExpandedItemsChange)==null||s.call(o,t,n)});U(this,"isItemExpanded",t=>Je.isItemExpanded(this.store.state,t));U(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));U(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const s=Je.isItemExpanded(this.store.state,t),i=o??!s;if(s===i)return;const a={isExpansionPrevented:!1,shouldBeExpanded:i,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",a,n),!a.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:i})});U(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var a,l;const s=Je.expandedItemsRaw(this.store.state);let i;o?i=[t].concat(s):i=s.filter(c=>c!==t),(l=(a=this.store.parameters).onItemExpansionToggle)==null||l.call(a,n,t,o),this.setExpandedItems(n,i)});U(this,"expandAllSiblings",(t,n)=>{const o=ue.itemMeta(this.store.state,n);if(o==null)return;const i=ue.itemOrderedChildrenIds(this.store.state,o.parentId).filter(l=>Je.isItemExpandable(this.store.state,l)&&!Je.isItemExpanded(this.store.state,l)),a=Je.expandedItemsRaw(this.store.state).concat(i);i.length>0&&(this.store.parameters.onItemExpansionToggle&&i.forEach(l=>{this.store.parameters.onItemExpansionToggle(t,l,!0)}),this.setExpandedItems(t,a))});U(this,"addExpandableItems",t=>{const n=M({},this.store.state.itemMetaLookup);for(const o of t)n[o]=M({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class SR{constructor(t){U(this,"setFocusedItemId",t=>{So.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});U(this,"applyItemFocus",(t,n)=>{var o,s,i;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(i=(s=this.store.parameters).onItemFocus)==null||i.call(s,t,n)});U(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));U(this,"focusItem",(t,n)=>{const o=ue.itemMeta(this.store.state,n);o&&(o.parentId==null||Je.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});U(this,"removeFocusedItem",()=>{const t=So.focusedItemId(this.store.state);if(t==null)return;if(ue.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});U(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=So.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});U(this,"handleRootBlur",t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)});this.store=t;let n=t.state;this.store.disposables.defer(this.store.subscribe(o=>{if(o.itemMetaLookup===n.itemMetaLookup){n=o;return}const s=So.focusedItemId(o);if(s==null||ue.itemMeta(o,s)){n=o;return}const i=l=>l==null||!ue.itemMeta(o,l)?null:l,a=i(mr(n,s))??i(Fl(n,s))??wr(o);a==null?this.setFocusedItemId(null):this.applyItemFocus(null,a),n=o}))}}const CR=({props:e})=>{const{itemId:t}=e,{store:n}=Vn(),o=Ee(n,Se.isCheckboxSelectionEnabled),s=Ee(n,Se.isFeatureEnabledForItem,t),i=Ee(n,Se.canItemBeSelected,t),a=Ee(n,ue.isItemDisabled,t),l=Ee(n,Se.isItemSelectable,t),c=Ee(n,Se.itemSelectionStatus,t),u=a||!l;return{propsEnhancers:{root:()=>{let d;return u?d=void 0:c==="selected"?d=!0:c==="indeterminate"?d="mixed":i?d=!1:d=void 0,{"aria-checked":d}},checkbox:({externalEventHandlers:d,interactions:m})=>({tabIndex:-1,onChange:p=>{var g;(g=d.onChange)==null||g.call(d,p),!p.defaultMuiPrevented&&Se.canItemBeSelected(n.state,t)&&m.handleCheckboxSelection(p)},visible:o&&s,disabled:!i,checked:c==="selected",indeterminate:c==="indeterminate"})}}};class TR{constructor(t){U(this,"lastSelectedItem",null);U(this,"lastSelectedRange",{});U(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:s=Oo,selectedItems:i,onItemSelectionToggle:a,onSelectedItemsChange:l}=this.store.parameters,c=Se.selectedItemsRaw(this.store.state);let u;const d=Se.isMultiSelectEnabled(this.store.state);if(d&&(s.descendants||s.parents)?u=wR({store:this.store,selectionPropagation:s,newModel:n,oldModel:c,additionalItemsToPropagate:o}):u=n,i===void 0&&this.store.set("selectedItems",u),a)if(d){const m=bh({newModel:u,oldModel:c});a&&(m.added.forEach(h=>{a(t,h,!0)}),m.removed.forEach(h=>{a(t,h,!1)}))}else u!==c&&(c!=null&&a(t,c,!1),u!=null&&a(t,u,!0));l==null||l(t,u)});U(this,"selectRange",(t,[n,o])=>{if(!Se.isMultiSelectEnabled(this.store.state))return;let i=Se.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(i=i.filter(u=>!this.lastSelectedRange[u]));const a=fs(i),l=yR(this.store.state,n,o).filter(u=>Se.isItemSelectable(this.store.state,u)),c=l.filter(u=>!a[u]);i=i.concat(c),this.setSelectedItems(t,i),this.lastSelectedRange=fs(l)});U(this,"getItemSelection",t=>Se.itemSelectionStatus(this.store.state,t));U(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));U(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=Oo}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!Se.isMultiSelectEnabled(this.store.state)||!Se.isItemSelected(this.store.state,t))return;const s=Se.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,s,n)});U(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:s})=>{if(!Se.enabled(this.store.state))return;let i;const a=Se.isMultiSelectEnabled(this.store.state);if(o&&a){const l=Se.selectedItems(this.store.state),c=Se.isItemSelected(this.store.state,t);c&&(s===!1||s==null)?i=l.filter(u=>u!==t):!c&&(s===!0||s==null)?i=[t].concat(l):i=l}else s===!1||s==null&&Se.isItemSelected(this.store.state,t)?i=a?[]:null:i=a?[t]:t;this.setSelectedItems(n,i,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});U(this,"selectAllNavigableItems",t=>{if(!Se.isMultiSelectEnabled(this.store.state))return;const o=vR(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=fs(o)});U(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,s]=gh(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,s])}});U(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[wr(this.store.state),n])});U(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,hh(this.store.state)])});U(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!Se.isMultiSelectEnabled(this.store.state))return;let i=Se.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(Se.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(i=i.filter(a=>a!==n),delete this.lastSelectedRange[n]):(Se.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,i)});this.store=t,t.itemPluginManager.register(CR,null)}}function wR({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:s}){if(!t.descendants&&!t.parents)return n;let i=!1;const a=fs(n),l=bh({newModel:n,oldModel:o});return s==null||s.forEach(c=>{a[c]?l.added.includes(c)||l.added.push(c):l.removed.includes(c)||l.removed.push(c)}),l.added.forEach(c=>{if(t.descendants){const u=d=>{d!==c&&Se.canItemBeSelected(e.state,d)&&(i=!0,a[d]=!0),ue.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=m=>Se.canItemBeSelected(e.state,m)?a[m]?ue.itemOrderedChildrenIds(e.state,m).every(u):!1:ue.itemOrderedChildrenIds(e.state,m).every(u),d=m=>{const h=ue.itemParentId(e.state,m);if(h==null)return;ue.itemOrderedChildrenIds(e.state,h).every(u)&&(Se.canItemBeSelected(e.state,h)&&(i=!0,a[h]=!0),d(h))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=ue.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=ue.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),ue.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n}function bh({oldModel:e,newModel:t}){const n=new Map;t.forEach(s=>{n.set(s,!0)});const o=new Map;return e.forEach(s=>{o.set(s,!0)}),{added:t.filter(s=>!o.has(s)),removed:e.filter(s=>!n.has(s))}}function fs(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const IR=(e,t,n)=>typeof n=="function"?n(e,t):n,yh=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=Vn(),s=S.useContext(Vl),i=Ee(o,IR,e.itemId,s),{id:a,itemId:l,label:c,children:u,rootRef:d}=e,{rootRef:m,contentRef:h,propsEnhancers:p}=t(e),{interactions:g,status:f}=mh({itemId:l,children:u}),y=S.useRef(null),x=S.useRef(null),w=la(d,m,y),T=la(h,x),C=S.useRef(null),I=Ee(o,Se.isCheckboxSelectionEnabled),E=Ee(o,vi.treeItemIdAttribute,l,a),N=Ee(o,So.isItemTheDefaultFocusableItem,l),R=Ee(o,ue.itemHeight),L={rootRefObject:y,contentRefObject:x,interactions:g},V=q=>B=>{var H;(H=q.onFocus)==null||H.call(q,B),!B.defaultMuiPrevented&&!f.focused&&ue.canItemBeFocused(o.state,l)&&B.currentTarget===B.target&&o.focus.focusItem(B,l)},j=q=>B=>{var ae,G,de,oe,ye;if((ae=q.onBlur)==null||ae.call(q,B),B.defaultMuiPrevented)return;const H=o.items.getItemDOMElement(l);f.editing||B.relatedTarget&&fa(B.relatedTarget,H)&&(B.target&&((de=(G=B.target)==null?void 0:G.dataset)==null?void 0:de.element)==="labelInput"&&fa(B.target,H)||((ye=(oe=B.relatedTarget)==null?void 0:oe.dataset)==null?void 0:ye.element)==="labelInput")||o.focus.removeFocusedItem()},v=q=>B=>{var H,ae,G;(H=q.onKeyDown)==null||H.call(q,B),!(B.defaultMuiPrevented||((G=(ae=B.target)==null?void 0:ae.dataset)==null?void 0:G.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(B,l)},_=q=>B=>{var H;(H=q.onDoubleClick)==null||H.call(q,B),!B.defaultMuiPrevented&&g.toggleItemEditing()},O=q=>B=>{var H,ae;(H=q.onClick)==null||H.call(q,B),o.items.handleItemClick(B,l),!(B.defaultMuiPrevented||(ae=C.current)!=null&&ae.contains(B.target))&&(Je.triggerSlot(o.state)==="content"&&g.handleExpansion(B),I||g.handleSelection(B))},P=q=>B=>{var H;(H=q.onMouseDown)==null||H.call(q,B),!B.defaultMuiPrevented&&(B.shiftKey||B.ctrlKey||B.metaKey||f.disabled)&&B.preventDefault()},k=q=>B=>{var H;(H=q.onClick)==null||H.call(q,B),!B.defaultMuiPrevented&&Je.triggerSlot(o.state)==="iconContainer"&&g.handleExpansion(B)};return{getContextProviderProps:()=>({itemId:l,id:a}),getRootProps:(q={})=>{var G;const B=M({},Et(e),Et(q)),H=M({},B,{ref:w,role:"treeitem",tabIndex:N?0:-1,id:E,"aria-expanded":f.expandable?f.expanded:void 0,"aria-disabled":f.disabled||void 0},q,{style:M({},q.style??{},{"--TreeView-itemDepth":i},R==null?{}:{"--TreeView-itemHeight":`${R}px`}),onFocus:V(B),onBlur:j(B),onKeyDown:v(B)}),ae=((G=p.root)==null?void 0:G.call(p,M({},L,{externalEventHandlers:B})))??{};return M({},H,ae)},getContentProps:(q={})=>{var G;const B=Et(q),H=M({},B,q,{ref:T,onClick:O(B),onMouseDown:P(B)});["expanded","selected","focused","disabled","editing","editable"].forEach(de=>{f[de]&&(H[`data-${de}`]="")});const ae=((G=p.content)==null?void 0:G.call(p,M({},L,{externalEventHandlers:B})))??{};return M({},H,ae)},getGroupTransitionProps:(q={})=>{const B=Et(q);return M({},B,{unmountOnExit:!0,component:"ul",role:"group",in:f.expanded,children:u},q)},getIconContainerProps:(q={})=>{const B=Et(q);return M({},B,q,{onClick:k(B)})},getCheckboxProps:(q={})=>{var G;const B=Et(q),H=M({},B,{ref:C,"aria-hidden":!0},q),ae=((G=p.checkbox)==null?void 0:G.call(p,M({},L,{externalEventHandlers:B})))??{};return M({},H,ae)},getLabelProps:(q={})=>{var G;const B=M({},Et(q)),H=M({},B,{children:c},q,{onDoubleClick:_(B)}),ae=((G=p.label)==null?void 0:G.call(p,M({},L,{externalEventHandlers:B})))??{};return M({},ae,H)},getLabelInputProps:(q={})=>{var ae;const B=Et(q),H=((ae=p.labelInput)==null?void 0:ae.call(p,M({},L,{externalEventHandlers:B})))??{};return M({},q,H)},getDragAndDropOverlayProps:(q={})=>{var ae;const B=Et(q),H=((ae=p.dragAndDropOverlay)==null?void 0:ae.call(p,M({},L,{externalEventHandlers:B})))??{};return M({},q,H)},getErrorContainerProps:(q={})=>{const B=Et(q);return M({},B,q)},getLoadingContainerProps:(q={})=>{const B=Et(q);return M({size:"12px",thickness:6},B,q)},rootRef:w,status:f,publicAPI:n}};function ER(e){return $l("MuiTreeItem",e)}oh("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const OR=rt(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),_R=rt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),kR=["ownerState"];function Wi(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Bl(e){const{slots:t,slotProps:n,status:o}=e,{slots:s,slotProps:i}=Ll(),a={collapseIcon:Wi(t==null?void 0:t.collapseIcon,s.collapseIcon,_R),expandIcon:Wi(t==null?void 0:t.expandIcon,s.expandIcon,OR),endIcon:Wi(t==null?void 0:t.endIcon,s.endIcon),icon:t==null?void 0:t.icon};let l;a!=null&&a.icon?l="icon":o.expandable?o.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const c=a[l],u=St({elementType:c,externalSlotProps:m=>M({},ca(i[l],m),ca(n==null?void 0:n[l],m)),ownerState:{}}),d=xe(u,kR);return c?b.jsx(c,M({},d)):null}process.env.NODE_ENV!=="production"&&(Bl.propTypes={slotProps:r.object,slots:r.object,status:r.shape({disabled:r.bool.isRequired,editable:r.bool.isRequired,editing:r.bool.isRequired,error:r.bool.isRequired,expandable:r.bool.isRequired,expanded:r.bool.isRequired,focused:r.bool.isRequired,indeterminate:r.bool,loading:r.bool.isRequired,selected:r.bool.isRequired}).isRequired});const PR=te("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.alpha((e.vars||e).palette.primary.dark,(e.vars||e).palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function vh(e){return e.action==null?null:b.jsx(PR,M({},e))}process.env.NODE_ENV!=="production"&&(vh.propTypes={action:r.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:r.object});function zl(e){const{children:t,itemId:n,id:o}=e,{wrapItem:s,store:i}=Vn(),a=Ee(i,vi.treeItemIdAttribute,n,o);return b.jsx(S.Fragment,{children:s({children:t,itemId:n,store:i,idAttribute:a})})}process.env.NODE_ENV!=="production"&&(zl.propTypes={children:r.node,id:r.string,itemId:r.string.isRequired});const RR=te("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>M({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),NR=["visible"],MR=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],$R=rh(),xh=te("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Sh=te("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>Ft(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",height:"var(--TreeView-itemHeight, unset)",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}})),Ch=te("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>Ft(e)&&e!=="editable"})(({theme:e})=>M({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Th=te("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),wh=te(ks,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),DR=te("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),AR=te(Zs,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),Ih=te(S.forwardRef((e,t)=>{const{visible:n}=e,o=xe(e,NR);return n?b.jsx(ih,M({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(Ih.displayName="TreeItemCheckbox");const jR=e=>{const{classes:t}=Ll(),n=M({},e,{root:ce(e==null?void 0:e.root,t.root),content:ce(e==null?void 0:e.content,t.itemContent),iconContainer:ce(e==null?void 0:e.iconContainer,t.itemIconContainer),checkbox:ce(e==null?void 0:e.checkbox,t.itemCheckbox),label:ce(e==null?void 0:e.label,t.itemLabel),groupTransition:ce(e==null?void 0:e.groupTransition,t.itemGroupTransition),labelInput:ce(e==null?void 0:e.labelInput,t.itemLabelInput),dragAndDropOverlay:ce(e==null?void 0:e.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ce(e==null?void 0:e.errorIcon,t.itemErrorIcon),loadingIcon:ce(e==null?void 0:e.loadingIcon,t.itemLoadingIcon)});return nh({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},ER,n)},Wl=S.forwardRef(function(t,n){const o=$R({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:m={},classes:h}=o,p=xe(o,MR),{getContextProviderProps:g,getRootProps:f,getContentProps:y,getIconContainerProps:x,getCheckboxProps:w,getLabelProps:T,getGroupTransitionProps:C,getLabelInputProps:I,getDragAndDropOverlayProps:E,getErrorContainerProps:N,getLoadingContainerProps:R,status:L}=yh({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),V=jR(h),j=d.root??xh,v=St({elementType:j,getSlotProps:f,externalForwardedProps:p,externalSlotProps:m.root,additionalProps:{ref:n},ownerState:{},className:V.root}),_=d.content??Sh,O=St({elementType:_,getSlotProps:y,externalSlotProps:m.content,ownerState:{},className:V.content}),P=d.iconContainer??Th,k=St({elementType:P,getSlotProps:x,externalSlotProps:m.iconContainer,ownerState:{},className:V.iconContainer}),D=d.label??Ch,$=St({elementType:D,getSlotProps:T,externalSlotProps:m.label,ownerState:{},className:V.label}),z=d.checkbox??Ih,A=St({elementType:z,getSlotProps:w,externalSlotProps:m.checkbox,ownerState:{},className:V.checkbox}),F=d.groupTransition??void 0,W=St({elementType:F,getSlotProps:C,externalSlotProps:m.groupTransition,ownerState:{},className:V.groupTransition}),K=d.labelInput??RR,Z=St({elementType:K,getSlotProps:I,externalSlotProps:m.labelInput,ownerState:{},className:V.labelInput}),Y=d.dragAndDropOverlay??vh,X=St({elementType:Y,getSlotProps:E,externalSlotProps:m.dragAndDropOverlay,ownerState:{},className:V.dragAndDropOverlay}),ne=d.errorIcon??DR,q=St({elementType:ne,getSlotProps:N,externalSlotProps:m.errorIcon,ownerState:{},className:V.errorIcon}),B=d.loadingIcon??AR,H=St({elementType:B,getSlotProps:R,externalSlotProps:m.loadingIcon,ownerState:{},className:V.loadingIcon});return b.jsx(zl,M({},g(),{children:b.jsxs(j,M({},v,{children:[b.jsxs(_,M({},O,{children:[b.jsxs(P,M({},k,{children:[L.error&&b.jsx(ne,M({},q)),L.loading?b.jsx(B,M({},H)):b.jsx(Bl,{status:L,slots:d,slotProps:m})]})),b.jsx(z,M({},A)),L.editing?b.jsx(K,M({},Z)):b.jsx(D,M({},$)),b.jsx(Y,M({},X))]})),u&&b.jsx(wh,M({as:F},W))]}))}))});process.env.NODE_ENV!=="production"&&(Wl.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(Wl.propTypes={children:r.any,classes:r.object,className:r.string,disabled:r.bool,disableSelection:r.bool,id:r.string,itemId:r.string.isRequired,label:r.node,onBlur:r.func,onFocus:Q1,onKeyDown:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function LR(e,t,n){const o=Ee(e,vi.treeId),s=Ee(e,ue.itemChildrenIndentation),i=Ee(e,Se.isMultiSelectEnabled);return a=>M({ref:n,role:"tree",id:o,"aria-multiselectable":i},t,a,{style:M({},t.style,{"--TreeView-itemChildrenIndentation":typeof s=="number"?`${s}px`:s}),onFocus:l=>{var c;(c=a.onFocus)==null||c.call(a,l),e.focus.handleRootFocus(l)},onBlur:l=>{var c;(c=a.onBlur)==null||c.call(a,l),e.focus.handleRootBlur(l)}})}const VR=["ownerState"],Ul=S.createContext(null);process.env.NODE_ENV!=="production"&&(Ul.displayName="RichTreeViewItemsContext");const FR=()=>Dl,BR=e=>ue.itemOrderedChildrenIds(e,null),Eh=S.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:s}){const i=S.useContext(Ul),{store:a}=Vn(),l=Ee(a,ue.itemMeta,o),c=Ee(a,s?FR:ue.itemOrderedChildrenIds,o),u=t??Wl,d=St({elementType:u,externalSlotProps:n,additionalProps:{label:l==null?void 0:l.label,id:l==null?void 0:l.idAttribute,itemId:o},ownerState:{itemId:o,label:l==null?void 0:l.label}}),m=xe(d,VR);return b.jsx(u,M({},m,{children:i?c==null?void 0:c.map(i):null}))},X1);process.env.NODE_ENV!=="production"&&(Eh.displayName="RichTreeViewItem");function zR(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:s,rootRef:i}=e,{store:a}=Vn(),{classes:l}=Ll(),c=t==null?void 0:t.item,u=n==null?void 0:n.item,d=Ee(a,ue.domStructure),m=Ee(a,d==="flat"?Je.flatList:BR),h=LR(a,s,i),p=t.root,g=St({elementType:p,externalSlotProps:n==null?void 0:n.root,className:l.root,getSlotProps:h,ownerState:o}),f=d==="flat",y=S.useCallback(x=>b.jsx(Eh,{itemSlot:c,itemSlotProps:u,itemId:x,skipChildren:f},x),[c,u,f]);return b.jsx(Ul.Provider,{value:y,children:b.jsx(p,M({},g,{children:m.map(y)}))})}const WR=["apiRef","slots","slotProps","disabledItemsFocusable","items","isItemDisabled","isItemSelectionDisabled","getItemLabel","getItemChildren","getItemId","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus","itemHeight","onItemLabelChange","isItemEditable","domStructure"];function UR(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:p,expandedItems:g,defaultExpandedItems:f,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:w,disableSelection:T,selectedItems:C,defaultSelectedItems:I,multiSelect:E,checkboxSelection:N,selectionPropagation:R,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:j,itemHeight:v,onItemLabelChange:_,isItemEditable:O,domStructure:P}=e,k=xe(e,WR),D=S.useMemo(()=>({disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:p,expandedItems:g,defaultExpandedItems:f,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:w,disableSelection:T,selectedItems:C,defaultSelectedItems:I,multiSelect:E,checkboxSelection:N,selectionPropagation:R,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:j,itemHeight:v,onItemLabelChange:_,isItemEditable:O,domStructure:P}),[s,i,a,l,c,u,d,m,h,p,g,f,y,x,w,T,C,I,E,N,R,L,V,j,v,_,O,P]);return{apiRef:t,slots:n,slotProps:o,parameters:D,forwardedProps:k}}const HR=()=>{},qR=typeof document<"u"?S.useLayoutEffect:HR;function Hl(e){S.useEffect(e,Dl)}const YR={...S},Ir=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),Ed=typeof SuppressedError=="function"?SuppressedError:void 0;function GR(e,t){if(Ed)return new Ed(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function ns(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class ql{constructor(){U(this,"stack",[]);U(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if(ns(this.isDisposed),t!=null){const n=t[Ir];if(typeof n!="function")throw new TypeError("MUI X: The value is not disposable.");this.stack.push(()=>n.call(t))}return t}adopt(t,n){return ns(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){ns(this.isDisposed),this.stack.push(t)}move(){ns(this.isDisposed);const t=new ql;return t.stack=this.stack,this.stack=[],this.isDisposed=!0,t}dispose(){if(this.isDisposed)return;this.isDisposed=!0;let t=!1,n;for(let o=this.stack.length-1;o>=0;o-=1)try{this.stack[o]()}catch(s){n=t?GR(s,n):s,t=!0}if(this.stack=[],t)throw n}[Ir](){this.dispose()}}const KR=globalThis.DisposableStack??ql;function XR(e){const t=[];let n=e;for(;typeof n=="object"&&n!==null&&"error"in n&&"suppressed"in n;)t.push(n.error),n=n.suppressed;return t.push(n),t}const QR=16,Od=YR,mo=Od.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Od.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ZR(){var e,t,n;try{const o=((t=(e=mo==null?void 0:mo.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=mo==null?void 0:mo.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&QR)!==0}catch{return!1}}const Ns=Symbol("useDisposable.mount"),JR=Symbol("useDisposable.devState"),ko=Symbol();function eN(e){const t=S.useRef(ko);if(t.current===ko){const n=e(),o=()=>{n[Ir](),t.current=ko};n[Ns]=()=>o,t.current=n}return Hl(t.current[Ns]),t.current}function tN(e){const t=S.useRef(ko);if(t.current===ko){const n=e(),o={detectedStrict:ZR(),mountCount:0,disposed:!1};n[JR]=o,n[Ns]=()=>{if(o.mountCount+=1,o.mountCount>1&&o.disposed)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: useDisposable failed to detect React StrictMode.
219
250
  The instance was disposed on StrictMode's simulated unmount and is about to be reused while torn down.
220
- This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:Ve(288));return()=>{o.detectedStrict&&o.mountCount<2||(o.disposed=!0,n[Sn](),t.current=cn)}},t.current=n}return es(t.current[ro]),t.current}const Tv=process.env.NODE_ENV==="production"?Sv:Iv;function Ev(e,t){const n=Tm(),o=Tv(()=>new e(q({},t,{isRtl:n})));return hv(()=>o.updateStateFromParameters(q({},t,{isRtl:n})),[o,n,t]),es(o.mountEffect),o}class wv{constructor(){B(this,"maxListeners",20);B(this,"warnOnce",!1);B(this,"events",{})}on(t,n,o={}){let r=this.events[t];if(r||(r={highPriority:new Map,regular:new Map},this.events[t]=r),o.isFirst?r.highPriority.set(n,!0):r.regular.set(n,!0),process.env.NODE_ENV!=="production"){const s=r.highPriority.size+r.regular.size;s>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${s} ${t} listeners added.`].join(`
221
- `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const r=Array.from(o.highPriority.keys()),s=Array.from(o.regular.keys());for(let i=r.length-1;i>=0;i-=1){const a=r[i];o.highPriority.has(a)&&a.apply(this,n)}for(let i=0;i<s.length;i+=1){const a=s[i];o.regular.has(a)&&a.apply(this,n)}}once(t,n){const o=this;this.on(t,function r(...s){o.removeListener(t,r),n.apply(o,s)})}}const Nv=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function Ul(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:Nv({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??an,itemHeight:e.itemHeight??null}}function Si(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Ov(e){return q({treeId:void 0,focusedItemId:null},Ul(e),ln.buildItemsStateIfNeeded(e),{expandedItems:Si(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:Si(e.selectedItems,e.defaultSelectedItems,e.multiSelect?Ur:null)})}let Ii=0;const $v=()=>(Ii+=1,`mui-tree-view-${Ii}`);class Rv{constructor(){B(this,"timeoutIds",new Map);B(this,"intervalIds",new Map);B(this,"startTimeout",(t,n,o)=>{this.clearTimeout(t);const r=setTimeout(()=>{this.timeoutIds.delete(t),o()},n);this.timeoutIds.set(t,r)});B(this,"startInterval",(t,n,o)=>{this.clearInterval(t);const r=setInterval(o,n);this.intervalIds.set(t,r)});B(this,"clearTimeout",t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))});B(this,"clearInterval",t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))});B(this,"clearAll",()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()})}}const kv=({props:e})=>{const{store:t}=At(),{label:n,itemId:o}=e,[r,s]=k.useState(n),i=pe(t,ht.isItemEditable,o);return!pe(t,ht.isItemBeingEdited,o)&&r!==n&&s(n),{propsEnhancers:{label:()=>({editable:i}),labelInput:({externalEventHandlers:u,interactions:c})=>i?{value:r??"","data-element":"labelInput",onChange:d=>{var y;(y=u.onChange)==null||y.call(u,d),s(d.target.value)},onKeyDown:d=>{var m;if((m=u.onKeyDown)==null||m.call(u,d),d.defaultMuiPrevented)return;const y=d.target;d.key==="Enter"&&y.value?c.handleSaveItemLabel(d,y.value):d.key==="Escape"&&c.handleCancelItemLabelEditing(d)},onBlur:d=>{var y;(y=u.onBlur)==null||y.call(u,d),!d.defaultMuiPrevented&&d.target.value&&c.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}};class Mv{constructor(t){B(this,"buildPublicAPI",()=>({setEditedItem:this.setEditedItem,updateItemLabel:this.updateItemLabel}));B(this,"setEditedItem",t=>{t!==null&&!ht.isItemEditable(this.store.state,t)||this.store.set("editedItemId",t)});B(this,"updateItemLabel",(t,n)=>{if(!n)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The Tree View component requires all items to have a \`label\` property.
251
+ This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:Oe(288));return()=>{o.detectedStrict&&o.mountCount<2||(o.disposed=!0,n[Ir](),t.current=ko)}},t.current=n}return Hl(t.current[Ns]),t.current}const nN=process.env.NODE_ENV==="production"?eN:tN;function oN(e,t){const n=Dn(),o=nN(()=>new e(M({},t,{isRtl:n})));return qR(()=>o.updateStateFromParameters(M({},t,{isRtl:n})),[o,n,t]),Hl(o.mountEffect),o}class rN{constructor(){U(this,"maxListeners",20);U(this,"warnOnce",!1);U(this,"events",{})}on(t,n,o={}){let s=this.events[t];if(s||(s={highPriority:new Map,regular:new Map},this.events[t]=s),o.isFirst?s.highPriority.set(n,!0):s.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=s.highPriority.size+s.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
252
+ `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const s=Array.from(o.highPriority.keys()),i=Array.from(o.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];o.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];o.regular.has(l)&&l.apply(this,n)}}once(t,n){const o=this;this.on(t,function s(...i){o.removeListener(t,s),n.apply(o,i)})}}const sN=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function Oh(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:sN({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??Oo,itemHeight:e.itemHeight??null}}function _d(e,t,n){return e!==void 0?e:t!==void 0?t:n}function iN(e){return M({treeId:void 0,focusedItemId:null},Oh(e),_o.buildItemsStateIfNeeded(e),{expandedItems:_d(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:_d(e.selectedItems,e.defaultSelectedItems,e.multiSelect?Dl:null)})}let kd=0;const aN=()=>(kd+=1,`mui-tree-view-${kd}`);class lN{constructor(){U(this,"timeoutIds",new Map);U(this,"intervalIds",new Map);U(this,"startTimeout",(t,n,o)=>{this.clearTimeout(t);const s=setTimeout(()=>{this.timeoutIds.delete(t),o()},n);this.timeoutIds.set(t,s)});U(this,"startInterval",(t,n,o)=>{this.clearInterval(t);const s=setInterval(o,n);this.intervalIds.set(t,s)});U(this,"clearTimeout",t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))});U(this,"clearInterval",t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))});U(this,"clearAll",()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()})}}const cN=({props:e})=>{const{store:t}=Vn(),{label:n,itemId:o}=e,[s,i]=S.useState(n),a=Ee(t,an.isItemEditable,o);return!Ee(t,an.isItemBeingEdited,o)&&s!==n&&i(n),{propsEnhancers:{label:()=>({editable:a}),labelInput:({externalEventHandlers:c,interactions:u})=>a?{value:s??"","data-element":"labelInput",onChange:p=>{var g;(g=c.onChange)==null||g.call(c,p),i(p.target.value)},onKeyDown:p=>{var f;if((f=c.onKeyDown)==null||f.call(c,p),p.defaultMuiPrevented)return;const g=p.target;p.key==="Enter"&&g.value?u.handleSaveItemLabel(p,g.value):p.key==="Escape"&&u.handleCancelItemLabelEditing(p)},onBlur:p=>{var g;(g=c.onBlur)==null||g.call(c,p),!p.defaultMuiPrevented&&p.target.value&&u.handleSaveItemLabel(p,p.target.value)},autoFocus:!0,type:"text"}:{}}}};class uN{constructor(t){U(this,"buildPublicAPI",()=>({setEditedItem:this.setEditedItem,updateItemLabel:this.updateItemLabel}));U(this,"setEditedItem",t=>{t!==null&&!an.isItemEditable(this.store.state,t)||this.store.set("editedItemId",t)});U(this,"updateItemLabel",(t,n)=>{if(!n)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The Tree View component requires all items to have a \`label\` property.
222
253
  The label of an item cannot be empty.
223
- Item ID: ${t}`:Ve(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",q({},this.store.state.itemMetaLookup,{[t]:q({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(kv,null)}}const Pv=500;class Av{constructor(t){B(this,"typeaheadQuery","");B(this,"canToggleItemSelection",t=>le.canItemBeSelected(this.store.state,t));B(this,"canToggleItemExpansion",t=>!G.isItemDisabled(this.store.state,t)&&Oe.isItemExpandable(this.store.state,t));B(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=c=>{const p=_n(this.store.state,c);return p===null?Cn(this.store.state):p},r=c=>{let p=null;const f={};let h=c.length>1?t:o(t);for(;p==null&&!f[h];){const d=this.labelMap[h];d!=null&&d.startsWith(c)?p=h:(f[h]=!0,h=o(h))}return p},s=n.toLowerCase(),i=`${this.typeaheadQuery}${s}`,a=r(i);if(a!=null)return this.typeaheadQuery=i,a;const u=r(s);return u!=null?(this.typeaheadQuery=s,u):(this.typeaheadQuery="",null)});B(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});B(this,"handleItemKeyDown",async(t,n)=>{var i;if(t.defaultMuiPrevented||t.altKey||lr(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,r=t.key,s=le.isMultiSelectEnabled(this.store.state);switch(!0){case(r===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),s&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:s,shouldBeSelected:void 0});break}case r==="Enter":{(i=this.store.labelEditing)!=null&&i.setEditedItem&&ht.isItemEditable(this.store.state,n)&&!ht.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(s?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):le.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case r==="ArrowDown":{const a=_n(this.store.state,n);a&&(t.preventDefault(),this.store.focus.focusItem(t,a),s&&t.shiftKey&&this.canToggleItemSelection(a)&&this.store.selection.selectItemFromArrowNavigation(t,n,a));break}case r==="ArrowUp":{const a=Yr(this.store.state,n);a&&(t.preventDefault(),this.store.focus.focusItem(t,a),s&&t.shiftKey&&this.canToggleItemSelection(a)&&this.store.selection.selectItemFromArrowNavigation(t,n,a));break}case(r==="ArrowRight"&&!this.store.parameters.isRtl||r==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(Oe.isItemExpanded(this.store.state,n)){const a=_n(this.store.state,n);a&&(this.store.focus.focusItem(t,a),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(r==="ArrowLeft"&&!this.store.parameters.isRtl||r==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&Oe.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const a=G.itemParentId(this.store.state,n);a&&(this.store.focus.focusItem(t,a),t.preventDefault())}break}case r==="Home":{this.canToggleItemSelection(n)&&s&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,Cn(this.store.state)),t.preventDefault();break}case r==="End":{this.canToggleItemSelection(n)&&s&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,kl(this.store.state)),t.preventDefault();break}case r==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&s&&le.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&jv(r)):{this.store.timeoutManager.clearTimeout("typeahead");const a=this.getFirstItemMatchingTypeaheadQuery(n,r);a!=null?(this.store.focus.focusItem(t,a),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",Pv,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Ti(G.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(G.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Ti(o))})}}function jv(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Ti(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class Lv{constructor(){B(this,"itemPlugins",[]);B(this,"itemWrappers",[]);B(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});B(this,"listPlugins",()=>this.itemPlugins);B(this,"listWrappers",()=>this.itemWrappers)}}class Dv extends zr{constructor(n,o,r){const s=Ov(n),i=r.getInitialState(s,n);super(i);B(this,"initialParameters",null);B(this,"disposables",new bv);B(this,"eventManager",this.disposables.adopt(new wv,n=>n.removeAllListeners()));B(this,"timeoutManager",this.disposables.adopt(new Rv,n=>n.clearAll()));B(this,"itemPluginManager",new Lv);B(this,"mountEffect",()=>{});B(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));B(this,"registerStoreEffect",(n,o)=>{let r=n(this.state);this.disposables.defer(this.subscribe(s=>{const i=n(s);i!==r&&(o(r,i),r=i)}))});B(this,"publishEvent",(n,o,r)=>{Vv(r)&&r.isPropagationStopped()||this.eventManager.emit(n,o,r)});B(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=r,this.items=new ln(this),this.focus=new Ub(this),this.expansion=new Wb(this),this.selection=new qb(this),this.keyboardNavigation=new Av(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return q({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(i,a,u)=>{var c,p;if(n[a]!==void 0&&(i[a]=n[a]),process.env.NODE_ENV!=="production"){const f=n[u],h=n[a]!==void 0,d=(c=this.initialParameters)==null?void 0:c[u],y=((p=this.initialParameters)==null?void 0:p[a])!==void 0;y!==h?or([`MUI X Tree View: A component is changing the ${y?"":"un"}controlled ${a} state of ${this.instanceName} to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"],"error"):JSON.stringify(d)!==JSON.stringify(f)&&or([`MUI X Tree View: A component is changing the default ${a} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},r=Ul(n);o(r,"expandedItems","defaultExpandedItems"),o(r,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(r.treeId=$v()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&ln.shouldRebuildItemsState(n,this.parameters)&&Object.assign(r,ln.buildItemsStateIfNeeded(n));const s=this.mapper.updateStateFromParameters(r,n,o);this.update(s),this.parameters=n}[Sn](){if(!this.disposables.disposed)try{this.disposables.dispose()}catch(n){process.env.NODE_ENV!=="production"&&console.error("MUI X Tree View: error while disposing the store.",...vv(n))}}}function Vv(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Ei=e=>({isItemEditable:e.isItemEditable??!1}),Gl={getInitialState:(e,t)=>q({},e,Ei(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>q({},e,Ei(t)),shouldIgnoreItemsStateUpdate:()=>!1};class ql extends Dv{constructor(){super(...arguments);B(this,"labelEditing",new Mv(this))}buildPublicAPI(){return q({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}B(ql,"rawMapper",Gl);class Bv extends ql{constructor(t){super(t,"RichTreeView",Gl)}}const Fv=xl(),zv=e=>{const{classes:t}=e;return k.useMemo(()=>vl({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},ab,t),[t])},Wv=de("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),ns=k.forwardRef(function(t,n){const o=Fv({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&or(["MUI X: The Rich Tree View component does not support JSX children.","If you want to add items, you need to use the `items` prop.","Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);const{slots:r,slotProps:s,apiRef:i,parameters:a,forwardedProps:u}=fv(o),c=Ev(Bv,a),p=k.useRef(null),f=tr(n,p),h=pe(c,oo.isItemLoading,null),d=pe(c,oo.itemError,null),y=zv(o),m=k.useMemo(()=>q({root:Wv},r),[r]);return h?g.jsx(Za,{children:"Loading…"}):d?g.jsx(bl,{severity:"error",children:d.message}):g.jsx(ub,{store:c,classes:y,slots:m,slotProps:s,apiRef:i,rootRef:p,children:g.jsx(Kr.Provider,{value:G.itemDepth,children:g.jsx(dv,{slots:m,slotProps:s,forwardedProps:u,ownerState:o,rootRef:f})})})});process.env.NODE_ENV!=="production"&&(ns.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(ns.propTypes={apiRef:l.shape({current:l.shape({addItems:l.func,focusItem:l.func,getItem:l.func,getItemDOMElement:l.func,getItemOrderedChildrenIds:l.func,getItemSelection:l.func,getItemTree:l.func,getParentId:l.func,isItemExpanded:l.func,setEditedItem:l.func,setIsItemDisabled:l.func,setItemExpansion:l.func,setItemSelection:l.func,updateItemLabel:l.func})}),checkboxSelection:l.bool,classes:l.object,className:l.string,defaultExpandedItems:l.arrayOf(l.string),defaultSelectedItems:l.any,disabledItemsFocusable:l.bool,disableSelection:l.bool,domStructure:l.oneOf(["flat","nested"]),expandedItems:l.arrayOf(l.string),expansionTrigger:l.oneOf(["content","iconContainer"]),getItemChildren:l.func,getItemId:l.func,getItemLabel:l.func,id:l.string,isItemDisabled:l.func,isItemEditable:l.oneOfType([l.func,l.bool]),isItemSelectionDisabled:l.func,itemChildrenIndentation:l.oneOfType([l.number,l.string]),itemHeight:l.number,items:l.array.isRequired,multiSelect:l.bool,onExpandedItemsChange:l.func,onItemClick:l.func,onItemExpansionToggle:l.func,onItemFocus:l.func,onItemLabelChange:l.func,onItemSelectionToggle:l.func,onSelectedItemsChange:l.func,selectedItems:l.any,selectionPropagation:l.shape({descendants:l.bool,parents:l.bool}),slotProps:l.object,slots:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});const Uv=e=>{const{store:t}=At();return pe(t,G.itemModel,e)},Gv="Tree-module__root___ANcH3",qv="Tree-module__subtree___KoLT8",Hv="Tree-module__node___Hvnjg",Kv="Tree-module__row___sq5ff",Yv="Tree-module__iconContainer___vq55M",Xv="Tree-module__chevron___umezQ",Qv="Tree-module__chevronExpanded___QYVrI",Jv="Tree-module__label___zJDit",st={root:Gv,subtree:qv,node:Hv,row:Kv,iconContainer:Yv,chevron:Xv,chevronExpanded:Qv,label:Jv};function Zv(e){const t=[],n=o=>{o.forEach(r=>{t.push(r.value),r.children&&n(r.children)})};return n(e),t}function e_(){return g.jsx("svg",{className:st.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:g.jsx("path",{d:"M5 3l5 5-5 5"})})}function t_(){return g.jsx("svg",{className:`${st.chevron} ${st.chevronExpanded}`,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:g.jsx("path",{d:"M5 3l5 5-5 5"})})}function n_(){return g.jsx("span",{"aria-hidden":"true"})}const o_=O.forwardRef(function({id:t,itemId:n,label:o,disabled:r,children:s,className:i,...a},u){const{getContextProviderProps:c,getRootProps:p,getContentProps:f,getIconContainerProps:h,getLabelProps:d,getGroupTransitionProps:y,status:m}=Al({id:t,itemId:n,children:s,label:o,disabled:r,rootRef:u}),v=Uv(n);return g.jsx(Qr,{...c(),children:g.jsxs(Ll,{...p({...a,className:`${st.node} ${i??""}`}),children:[g.jsxs(Dl,{...f({className:st.row}),status:m,children:[g.jsx(Bl,{...h({className:st.iconContainer}),children:g.jsx(Xr,{status:m})}),g.jsx(Vl,{...d({className:st.label}),children:(v==null?void 0:v.label)??o})]}),s&&g.jsx(Fl,{...y({className:st.subtree})})]})})}),Hl=O.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:r,multiple:s=!1,expandOnClick:i=!0,selectOnClick:a=!0,onNodeExpand:u,onNodeCollapse:c,onSelectedChange:p,...f},h){const d=X(f,t),y=o==="*"?Zv(n):o,m=d.className,v=m?`${st.root} ${m}`:st.root;return g.jsx(ns,{ref:h,items:n,getItemId:_=>_.value,getItemLabel:_=>typeof _.label=="string"?_.label:_.value,defaultExpandedItems:y,defaultSelectedItems:s?r??[]:r==null?void 0:r[0],multiSelect:s,expansionTrigger:i?"content":"iconContainer",disableSelection:!a,onItemExpansionToggle:(_,S,E)=>{E?u==null||u(S):c==null||c(S)},onSelectedItemsChange:(_,S)=>{p==null||p(Array.isArray(S)?S:S?[S]:[])},slots:{expandIcon:e_,collapseIcon:t_,endIcon:n_,item:o_},classes:{root:v},...d})});Hl.displayName="Tree";const r_="_root_1qhn7_3",s_="_contents_1qhn7_18",tn={root:r_,contents:s_},os=O.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:r,...s},i){const a=t?o?`${tn.root} ${tn.contents} ${o}`:`${tn.root} ${tn.contents}`:o?`${tn.root} ${o}`:tn.root;return g.jsx("div",{ref:i,className:a,style:r,...t?{}:{"data-recursica-layer":String(e)},...s,children:n})});os.displayName="Layer";const rs=({emptyText:e="N/A"})=>g.jsx(O.Fragment,{children:e});rs.displayName="EmptyValueRenderer";rs.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const i_={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},Rt=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:No&&No.tagName.toUpperCase()==="SCRIPT"&&No.src||new URL("mui-adapter.cjs",document.baseURI).href}&&i_)return!0}catch{}if(typeof window<"u"){const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")}return!1})(),cr=new Set;let wt=!1;function Kl(e){if(!Rt)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(wt=e!==void 0?e:!wt,typeof document<"u"){const t=document.documentElement,n=wt?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${wt?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return cr.forEach(t=>t()),wt}function a_(){return Rt&&wt}function Yl(){const[e,t]=O.useState(wt);return O.useEffect(()=>{if(!Rt)return;ss(),is();const n=()=>t(wt);return cr.add(n),()=>{cr.delete(n)}},[]),Rt&&e}function ss(){if(!Rt)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const e="recursica-over-styled-styles";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`
254
+ Item ID: ${t}`:Oe(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",M({},this.store.state.itemMetaLookup,{[t]:M({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(cN,null)}}const dN=500;class pN{constructor(t){U(this,"typeaheadQuery","");U(this,"canToggleItemSelection",t=>Se.canItemBeSelected(this.store.state,t));U(this,"canToggleItemExpansion",t=>!ue.isItemDisabled(this.store.state,t)&&Je.isItemExpandable(this.store.state,t));U(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=u=>{const d=mr(this.store.state,u);return d===null?wr(this.store.state):d},s=u=>{let d=null;const m={};let h=u.length>1?t:o(t);for(;d==null&&!m[h];){const p=this.labelMap[h];p!=null&&p.startsWith(u)?d=h:(m[h]=!0,h=o(h))}return d},i=n.toLowerCase(),a=`${this.typeaheadQuery}${i}`,l=s(a);if(l!=null)return this.typeaheadQuery=a,l;const c=s(i);return c!=null?(this.typeaheadQuery=i,c):(this.typeaheadQuery="",null)});U(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});U(this,"handleItemKeyDown",async(t,n)=>{var a;if(t.defaultMuiPrevented||t.altKey||fa(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,s=t.key,i=Se.isMultiSelectEnabled(this.store.state);switch(!0){case(s===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),i&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:i,shouldBeSelected:void 0});break}case s==="Enter":{(a=this.store.labelEditing)!=null&&a.setEditedItem&&an.isItemEditable(this.store.state,n)&&!an.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(i?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):Se.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case s==="ArrowDown":{const l=mr(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case s==="ArrowUp":{const l=Fl(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case(s==="ArrowRight"&&!this.store.parameters.isRtl||s==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(Je.isItemExpanded(this.store.state,n)){const l=mr(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(s==="ArrowLeft"&&!this.store.parameters.isRtl||s==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&Je.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const l=ue.itemParentId(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}break}case s==="Home":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,wr(this.store.state)),t.preventDefault();break}case s==="End":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,hh(this.store.state)),t.preventDefault();break}case s==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&i&&Se.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&fN(s)):{this.store.timeoutManager.clearTimeout("typeahead");const l=this.getFirstItemMatchingTypeaheadQuery(n,s);l!=null?(this.store.focus.focusItem(t,l),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",dN,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Pd(ue.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(ue.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Pd(o))})}}function fN(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Pd(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class mN{constructor(){U(this,"itemPlugins",[]);U(this,"itemWrappers",[]);U(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});U(this,"listPlugins",()=>this.itemPlugins);U(this,"listWrappers",()=>this.itemWrappers)}}class hN extends Ml{constructor(n,o,s){const i=iN(n),a=s.getInitialState(i,n);super(a);U(this,"initialParameters",null);U(this,"disposables",new KR);U(this,"eventManager",this.disposables.adopt(new rN,n=>n.removeAllListeners()));U(this,"timeoutManager",this.disposables.adopt(new lN,n=>n.clearAll()));U(this,"itemPluginManager",new mN);U(this,"mountEffect",()=>{});U(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));U(this,"registerStoreEffect",(n,o)=>{let s=n(this.state);this.disposables.defer(this.subscribe(i=>{const a=n(i);a!==s&&(o(s,a),s=a)}))});U(this,"publishEvent",(n,o,s)=>{gN(s)&&s.isPropagationStopped()||this.eventManager.emit(n,o,s)});U(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=s,this.items=new _o(this),this.focus=new SR(this),this.expansion=new xR(this),this.selection=new TR(this),this.keyboardNavigation=new pN(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return M({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(a,l,c)=>{var u,d;if(n[l]!==void 0&&(a[l]=n[l]),process.env.NODE_ENV!=="production"){const m=n[c],h=n[l]!==void 0,p=(u=this.initialParameters)==null?void 0:u[c],g=((d=this.initialParameters)==null?void 0:d[l])!==void 0;g!==h?fn([`MUI X Tree View: A component is changing the ${g?"":"un"}controlled ${l} state of ${this.instanceName} to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${l} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"],"error"):JSON.stringify(p)!==JSON.stringify(m)&&fn([`MUI X Tree View: A component is changing the default ${l} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},s=Oh(n);o(s,"expandedItems","defaultExpandedItems"),o(s,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(s.treeId=aN()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&_o.shouldRebuildItemsState(n,this.parameters)&&Object.assign(s,_o.buildItemsStateIfNeeded(n));const i=this.mapper.updateStateFromParameters(s,n,o);this.update(i),this.parameters=n}[Ir](){if(!this.disposables.disposed)try{this.disposables.dispose()}catch(n){process.env.NODE_ENV!=="production"&&console.error("MUI X Tree View: error while disposing the store.",...XR(n))}}}function gN(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Rd=e=>({isItemEditable:e.isItemEditable??!1}),_h={getInitialState:(e,t)=>M({},e,Rd(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>M({},e,Rd(t)),shouldIgnoreItemsStateUpdate:()=>!1};class kh extends hN{constructor(){super(...arguments);U(this,"labelEditing",new uN(this))}buildPublicAPI(){return M({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}U(kh,"rawMapper",_h);class bN extends kh{constructor(t){super(t,"RichTreeView",_h)}}const yN=rh(),vN=e=>{const{classes:t}=e;return S.useMemo(()=>nh({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},F1,t),[t])},xN=te("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Yl=S.forwardRef(function(t,n){const o=yN({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&fn(["MUI X: The Rich Tree View component does not support JSX children.","If you want to add items, you need to use the `items` prop.","Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);const{slots:s,slotProps:i,apiRef:a,parameters:l,forwardedProps:c}=UR(o),u=oN(bN,l),d=S.useRef(null),m=la(n,d),h=Ee(u,Rs.isItemLoading,null),p=Ee(u,Rs.itemError,null),g=vN(o),f=S.useMemo(()=>M({root:xN},s),[s]);return h?b.jsx(no,{children:"Loading…"}):p?b.jsx(th,{severity:"error",children:p.message}):b.jsx(W1,{store:u,classes:g,slots:f,slotProps:i,apiRef:a,rootRef:d,children:b.jsx(Vl.Provider,{value:ue.itemDepth,children:b.jsx(zR,{slots:f,slotProps:i,forwardedProps:c,ownerState:o,rootRef:m})})})});process.env.NODE_ENV!=="production"&&(Yl.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(Yl.propTypes={apiRef:r.shape({current:r.shape({addItems:r.func,focusItem:r.func,getItem:r.func,getItemDOMElement:r.func,getItemOrderedChildrenIds:r.func,getItemSelection:r.func,getItemTree:r.func,getParentId:r.func,isItemExpanded:r.func,setEditedItem:r.func,setIsItemDisabled:r.func,setItemExpansion:r.func,setItemSelection:r.func,updateItemLabel:r.func})}),checkboxSelection:r.bool,classes:r.object,className:r.string,defaultExpandedItems:r.arrayOf(r.string),defaultSelectedItems:r.any,disabledItemsFocusable:r.bool,disableSelection:r.bool,domStructure:r.oneOf(["flat","nested"]),expandedItems:r.arrayOf(r.string),expansionTrigger:r.oneOf(["content","iconContainer"]),getItemChildren:r.func,getItemId:r.func,getItemLabel:r.func,id:r.string,isItemDisabled:r.func,isItemEditable:r.oneOfType([r.func,r.bool]),isItemSelectionDisabled:r.func,itemChildrenIndentation:r.oneOfType([r.number,r.string]),itemHeight:r.number,items:r.array.isRequired,multiSelect:r.bool,onExpandedItemsChange:r.func,onItemClick:r.func,onItemExpansionToggle:r.func,onItemFocus:r.func,onItemLabelChange:r.func,onItemSelectionToggle:r.func,onSelectedItemsChange:r.func,selectedItems:r.any,selectionPropagation:r.shape({descendants:r.bool,parents:r.bool}),slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const SN=e=>{const{store:t}=Vn();return Ee(t,ue.itemModel,e)},CN="Tree-module__root___ANcH3",TN="Tree-module__subtree___KoLT8",wN="Tree-module__node___Hvnjg",IN="Tree-module__row___sq5ff",EN="Tree-module__label___zJDit",ON="Tree-module__iconContainer___vq55M",_N="Tree-module__expandButton___W0WTT",kN="Tree-module__expandButtonHidden___Xopam",PN="Tree-module__chevron___umezQ",RN="Tree-module__chevronExpanded___QYVrI",Tt={root:CN,subtree:TN,node:wN,row:IN,label:EN,iconContainer:ON,expandButton:_N,expandButtonHidden:kN,chevron:PN,chevronExpanded:RN};function NN(e){const t=[],n=o=>{o.forEach(s=>{t.push(s.value),s.children&&n(s.children)})};return n(e),t}function MN({rotated:e}){return b.jsx("svg",{className:e?`${Tt.chevron} ${Tt.chevronExpanded}`:Tt.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:b.jsx("path",{d:"M5 3l5 5-5 5"})})}function Gl({rotated:e,hidden:t}){return b.jsx(Sa,{overStyled:!0,variant:"text",size:"small",icon:b.jsx(MN,{rotated:e}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:t?`${Tt.expandButton} ${Tt.expandButtonHidden}`:Tt.expandButton})}function $N(){return b.jsx(Gl,{})}function DN(){return b.jsx(Gl,{rotated:!0})}function AN(){return b.jsx(Gl,{hidden:!0})}const jN=Q.forwardRef(function({id:t,itemId:n,label:o,disabled:s,children:i,className:a,...l},c){const{getContextProviderProps:u,getRootProps:d,getContentProps:m,getIconContainerProps:h,getLabelProps:p,getGroupTransitionProps:g,status:f}=yh({id:t,itemId:n,children:i,label:o,disabled:s,rootRef:c}),{interactions:y}=mh({itemId:n,children:i}),x=SN(n),w=h({className:Tt.iconContainer}),T=C=>{C.key==="Enter"&&(C.preventDefault(),C.defaultMuiPrevented=!0,y.handleSelection(C))};return b.jsx(zl,{...u(),children:b.jsxs(xh,{...d({...l,className:`${Tt.node} ${a??""}`,onKeyDown:T}),children:[b.jsxs(Sh,{...m({className:Tt.row}),status:f,children:[b.jsx(Th,{...w,onClick:C=>{C.stopPropagation(),w.onClick(C)},children:b.jsx(Bl,{status:f})}),b.jsx(Ch,{...p({className:Tt.label}),children:(x==null?void 0:x.label)??o})]}),i&&b.jsx(wh,{...g({className:Tt.subtree})})]})})}),Ph=Q.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:s,multiple:i=!1,disabled:a=!1,onNodeExpand:l,onNodeCollapse:c,onSelectedChange:u,...d},m){const h=fe(d,t),p=o==="*"?NN(n):o,g=h.className,f=g?`${Tt.root} ${g}`:Tt.root;return b.jsx(Yl,{ref:m,items:n,getItemId:y=>y.value,getItemLabel:y=>typeof y.label=="string"?y.label:y.value,defaultExpandedItems:p,defaultSelectedItems:i?s??[]:s==null?void 0:s[0],multiSelect:i,isItemDisabled:a?()=>!0:void 0,expansionTrigger:"iconContainer",onItemExpansionToggle:(y,x,w)=>{w?l==null||l(x):c==null||c(x)},onSelectedItemsChange:(y,x)=>{u==null||u(Array.isArray(x)?x:x?[x]:[])},slots:{expandIcon:$N,collapseIcon:DN,endIcon:AN,item:jN},classes:{root:f},...h})});Ph.displayName="Tree";const LN="_root_1qhn7_3",VN="_contents_1qhn7_18",ho={root:LN,contents:VN},Kl=Q.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:s,...i},a){const l=t?o?`${ho.root} ${ho.contents} ${o}`:`${ho.root} ${ho.contents}`:o?`${ho.root} ${o}`:ho.root;return b.jsx("div",{ref:a,className:l,style:s,...t?{}:{"data-recursica-layer":String(e)},...i,children:n})});Kl.displayName="Layer";const Xl=({emptyText:e="N/A"})=>b.jsx(Q.Fragment,{children:e});Xl.displayName="EmptyValueRenderer";Xl.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const FN={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},Rn=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Ci&&Ci.tagName.toUpperCase()==="SCRIPT"&&Ci.src||new URL("mui-adapter.cjs",document.baseURI).href}&&FN)return!0}catch{}if(typeof window<"u"){const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")}return!1})(),ma=new Set;let Tn=!1;function Rh(e){if(!Rn)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Tn=e!==void 0?e:!Tn,typeof document<"u"){const t=document.documentElement,n=Tn?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${Tn?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return ma.forEach(t=>t()),Tn}function BN(){return Rn&&Tn}function Nh(){const[e,t]=Q.useState(Tn);return Q.useEffect(()=>{if(!Rn)return;Ql(),Zl();const n=()=>t(Tn);return ma.add(n),()=>{ma.delete(n)}},[]),Rn&&e}function Ql(){if(!Rn)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const e="recursica-over-styled-styles";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`
224
255
  :root {
225
256
  --recursica-over-styled-shadow: none;
226
257
  }
@@ -230,5 +261,5 @@ Item ID: ${t}`:Ve(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n
230
261
  .recursica-over-styled > * {
231
262
  box-shadow: var(--recursica-over-styled-shadow) !important;
232
263
  }
233
- `,document.head.appendChild(t))}function is(){if(!Rt)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const e=t=>{try{t.recursica=t.recursica||{},t.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Kl()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const wi="data-recursica-theme";function l_({children:e,theme:t="light",initLayer0:n=!0}){return O.useEffect(()=>{const o=document.documentElement;return o.setAttribute(wi,t),()=>{o.removeAttribute(wi)}},[t]),O.useEffect(()=>{ss(),is()},[]),n?g.jsx(os,{layer:0,children:e}):g.jsx(g.Fragment,{children:e})}const c_=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],u_=(e,t)=>{const n=document.activeElement;return new Promise((o,r)=>{if(t&&t.current){const s=document.createElement("textarea");s.readOnly=!0,s.defaultValue=e,t.current.appendChild(s),s.select();const i=document.execCommand("copy");t.current.removeChild(s),n&&n.focus(),i?o():r(new Error("Failed to copy"))}else r(new Error("Copy area reference is not defined"))})};function ee(e){if(!Rt||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=O.forwardRef((o,r)=>{const{overStyled:s}=o,i=Yl(),a=O.createElement(e,{...o,ref:r});return s&&i?g.jsx("div",{className:"recursica-over-styled",children:a}):a});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const r=e[o];(typeof r=="function"||r&&r.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=ee(r):t[o]=r}return t}const d_=Uc,p_=Ui,f_=Hi,m_=vr,h_=Ki,g_=ua,y_=zi,b_=Eo,v_=ku,__=Mu,x_=ee(ao),C_=ee(dr),S_=ee(so),I_=ee(io),T_=ee(pr),E_=ee(Oi),w_=ee(Fc),N_=ee(Wc),O_=ee(ki),$_=ee(Mi),R_=ee(ou),k_=ee(yr),M_=ee(gr),P_=ee(Fi),A_=ee(Eu),j_=ee(Wi),L_=ee(yt),D_=ee(Nt),V_=ee(_r),B_=ee(fr),F_=ee(Ji),z_=ee(hr),W_=ee(Zi),U_=ee(ea),G_=ee(ta),q_=ee(co),H_=ee(ra),K_=ee(xd),Y_=ee(aa),X_=ee(Sr),Q_=ee(Tr),J_=ee(Ir),Z_=ee(mr),ex=ee(Wd),tx=ee(ca),nx=ee(da),ox=ee(pa),rx=ee(fa),sx=ee(Mt),ix=ee(nl),ax=ee(ol),lx=ee(tl),cx=ee(rl),ux=ee(sl),dx=ee(il),px=ee(Lg),fx=ee(ll),mx=ee(Br),hx=ee(cl),gx=ee(ul),yx=ee(ty),bx=ee(ny),vx=ee(Hl);exports.Accordion=x_;exports.AccordionControl=S_;exports.AccordionItem=C_;exports.AccordionPanel=I_;exports.AssistiveElement=T_;exports.Autocomplete=E_;exports.Avatar=w_;exports.Badge=N_;exports.Box=d_;exports.Breadcrumb=O_;exports.Button=$_;exports.Card=R_;exports.Checkbox=k_;exports.CheckboxGroup=M_;exports.Chip=P_;exports.Container=y_;exports.DatePicker=A_;exports.Dropdown=j_;exports.EmptyValueRenderer=rs;exports.FileInput=v_;exports.FileUpload=__;exports.Flex=p_;exports.FormControlLayout=L_;exports.FormControlWrapper=D_;exports.Grid=f_;exports.GridCol=m_;exports.Group=h_;exports.HoverCard=V_;exports.IS_DEV=Rt;exports.Label=B_;exports.Layer=os;exports.Link=F_;exports.Loader=z_;exports.Menu=W_;exports.MenuDivider=G_;exports.MenuItem=U_;exports.Modal=q_;exports.NumberInput=H_;exports.Pagination=K_;exports.Panel=Y_;exports.PanelFooter=X_;exports.RECURSICA_COMPONENTS=c_;exports.Radio=Q_;exports.RadioGroup=J_;exports.ReadOnlyField=Z_;exports.RecursicaThemeProvider=l_;exports.SegmentedControl=ex;exports.Slider=tx;exports.Stack=g_;exports.Stepper=nx;exports.Switch=ox;exports.SwitchGroup=rx;exports.Tab=ix;exports.TabPanel=ax;exports.Table=sx;exports.Tabs=lx;exports.Text=cx;exports.TextArea=ux;exports.TextField=dx;exports.TimePicker=px;exports.Timeline=fx;exports.TimelineItem=mx;exports.Title=hx;exports.Toast=gx;exports.Tooltip=yx;exports.TransferList=bx;exports.Tree=vx;exports.Typography=b_;exports.copyToClipboard=u_;exports.injectOverStyledStyles=ss;exports.isGlobalOverStyledActive=a_;exports.registerOverStyledConsoleCommand=is;exports.toggleGlobalOverStyled=Kl;exports.useGlobalOverStyled=Yl;exports.wrapComponent=ee;
264
+ `,document.head.appendChild(t))}function Zl(){if(!Rn)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const e=t=>{try{t.recursica=t.recursica||{},t.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Rh()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const Nd="data-recursica-theme";function zN({children:e,theme:t="light",initLayer0:n=!0}){return Q.useEffect(()=>{const o=document.documentElement;return o.setAttribute(Nd,t),()=>{o.removeAttribute(Nd)}},[t]),Q.useEffect(()=>{Ql(),Zl()},[]),n?b.jsx(Kl,{layer:0,children:e}):b.jsx(b.Fragment,{children:e})}const WN=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],UN=(e,t)=>{const n=document.activeElement;return new Promise((o,s)=>{if(t&&t.current){const i=document.createElement("textarea");i.readOnly=!0,i.defaultValue=e,t.current.appendChild(i),i.select();const a=document.execCommand("copy");t.current.removeChild(i),n&&n.focus(),a?o():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function be(e){if(!Rn||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=Q.forwardRef((o,s)=>{const{overStyled:i}=o,a=Nh(),l=Q.createElement(e,{...o,ref:s});return i&&a?b.jsx("div",{className:"recursica-over-styled",children:l}):l});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const s=e[o];(typeof s=="function"||s&&s.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=be(s):t[o]=s}return t}const HN=Pg,qN=Kd,YN=Zd,GN=Ia,KN=Jd,XN=hp,QN=Yd,ZN=ei,JN=yb,eM=vb,tM=be(Ds),nM=be(ga),oM=be(Ms),rM=be($s),sM=be(ba),iM=be(Dd),aM=be(Og),lM=be(kg),cM=be(Ld),uM=be(Sa),dM=be(Wg),pM=be(Ta),fM=be(Ca),mM=be(qd),hM=be(pb),gM=be(Gd),bM=be(un),yM=be(wn),vM=be(Ea),xM=be(ya),SM=be(op),CM=be(xa),TM=be(rp),wM=be(sp),IM=be(ip),EM=be(js),OM=be(cp),_M=be(ay),kM=be(pp),PM=be(ka),RM=be(Ra),NM=be(Pa),MM=be(va),$M=be(ky),DM=be(mp),AM=be(gp),jM=be(bp),LM=be(yp),VM=be(Mn),FM=be(bf),BM=be(yf),zM=be(gf),WM=be(vf),UM=be(xf),HM=be(Sf),qM=be(Ym),YM=be(Km),GM=be(Rl),KM=be(Xm),XM=be(Qm),QM=be(WP),ZM=be(UP),JM=be(Ph);exports.Accordion=tM;exports.AccordionControl=oM;exports.AccordionItem=nM;exports.AccordionPanel=rM;exports.AssistiveElement=sM;exports.Autocomplete=iM;exports.Avatar=aM;exports.Badge=lM;exports.Box=HN;exports.Breadcrumb=cM;exports.Button=uM;exports.Card=dM;exports.Checkbox=pM;exports.CheckboxGroup=fM;exports.Chip=mM;exports.Container=QN;exports.DatePicker=hM;exports.Dropdown=gM;exports.EmptyValueRenderer=Xl;exports.FileInput=JN;exports.FileUpload=eM;exports.Flex=qN;exports.FormControlLayout=bM;exports.FormControlWrapper=yM;exports.Grid=YN;exports.GridCol=GN;exports.Group=KN;exports.HoverCard=vM;exports.IS_DEV=Rn;exports.Label=xM;exports.Layer=Kl;exports.Link=SM;exports.Loader=CM;exports.Menu=TM;exports.MenuDivider=IM;exports.MenuItem=wM;exports.Modal=EM;exports.NumberInput=OM;exports.Pagination=_M;exports.Panel=kM;exports.PanelFooter=PM;exports.RECURSICA_COMPONENTS=WN;exports.Radio=RM;exports.RadioGroup=NM;exports.ReadOnlyField=MM;exports.RecursicaThemeProvider=zN;exports.SegmentedControl=$M;exports.Slider=DM;exports.Stack=XN;exports.Stepper=AM;exports.Switch=jM;exports.SwitchGroup=LM;exports.Tab=FM;exports.TabPanel=BM;exports.Table=VM;exports.Tabs=zM;exports.Text=WM;exports.TextArea=UM;exports.TextField=HM;exports.TimePicker=qM;exports.Timeline=YM;exports.TimelineItem=GM;exports.Title=KM;exports.Toast=XM;exports.Tooltip=QM;exports.TransferList=ZM;exports.Tree=JM;exports.Typography=ZN;exports.copyToClipboard=UN;exports.injectOverStyledStyles=Ql;exports.isGlobalOverStyledActive=BN;exports.registerOverStyledConsoleCommand=Zl;exports.toggleGlobalOverStyled=Rh;exports.useGlobalOverStyled=Nh;exports.wrapComponent=be;
234
265
  //# sourceMappingURL=mui-adapter.cjs.map