identity-admin-ui 1.12.34 → 1.12.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/esm/index.js +1 -1
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -119,7 +119,7 @@ function Xt(e,t){const n=a(e,t);return"production"!==process.env.NODE_ENV?(...t)
|
|
|
119
119
|
*
|
|
120
120
|
* This source code is licensed under the MIT license found in the
|
|
121
121
|
* LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/"production"===process.env.NODE_ENV?wp.exports=function(){if(bp)return jp;bp=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),jp.ContextConsumer=s,jp.ContextProvider=a,jp.Element=t,jp.ForwardRef=c,jp.Fragment=r,jp.Lazy=f,jp.Memo=p,jp.Portal=n,jp.Profiler=i,jp.StrictMode=o,jp.Suspense=u,jp.SuspenseList=d,jp.isAsyncMode=function(){return!1},jp.isConcurrentMode=function(){return!1},jp.isContextConsumer=function(e){return h(e)===s},jp.isContextProvider=function(e){return h(e)===a},jp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jp.isForwardRef=function(e){return h(e)===c},jp.isFragment=function(e){return h(e)===r},jp.isLazy=function(e){return h(e)===f},jp.isMemo=function(e){return h(e)===p},jp.isPortal=function(e){return h(e)===n},jp.isProfiler=function(e){return h(e)===i},jp.isStrictMode=function(e){return h(e)===o},jp.isSuspense=function(e){return h(e)===u},jp.isSuspenseList=function(e){return h(e)===d},jp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},jp.typeOf=h,jp}():wp.exports=(Cp||(Cp=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case i:case o:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case l:case s:case c:case f:case p:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=s,v=a,A=t,y=c,b=r,x=f,w=p,j=n,C=i,M=o,O=u,z=d,T=!1,D=!1;Mp.ContextConsumer=g,Mp.ContextProvider=v,Mp.Element=A,Mp.ForwardRef=y,Mp.Fragment=b,Mp.Lazy=x,Mp.Memo=w,Mp.Portal=j,Mp.Profiler=C,Mp.StrictMode=M,Mp.Suspense=O,Mp.SuspenseList=z,Mp.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Mp.isConcurrentMode=function(e){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Mp.isContextConsumer=function(e){return h(e)===s},Mp.isContextProvider=function(e){return h(e)===a},Mp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mp.isForwardRef=function(e){return h(e)===c},Mp.isFragment=function(e){return h(e)===r},Mp.isLazy=function(e){return h(e)===f},Mp.isMemo=function(e){return h(e)===p},Mp.isPortal=function(e){return h(e)===n},Mp.isProfiler=function(e){return h(e)===i},Mp.isStrictMode=function(e){return h(e)===o},Mp.isSuspense=function(e){return h(e)===u},Mp.isSuspenseList=function(e){return h(e)===d},Mp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Mp.typeOf=h}()),Mp);var Op=wp.exports;const zp=S.createContext({});"production"!==process.env.NODE_ENV&&(zp.displayName="ListContext");var Tp=zp;function Dp(e){return Rt("MuiList",e)}Wt("MuiList",["root","padding","dense","subheader"]);const Pp=["children","className","component","dense","disablePadding","subheader"],Np=xo("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]}})((({ownerState:e})=>ae({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ep=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Yt(n,Pp),u=S.useMemo((()=>({dense:a})),[a]),d=ae({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Lt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dp,t)})(d);return U.jsx(Tp.Provider,{value:u,children:U.jsxs(Np,ae({as:i,className:or(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));"production"!==process.env.NODE_ENV&&(Ep.propTypes={children:Le.node,classes:Le.object,className:Le.string,component:Le.elementType,dense:Le.bool,disablePadding:Le.bool,subheader:Le.node,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object])});var Bp=Ep;const kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ip(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Sp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hp(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Sp(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Rp=S.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Yt(e,kp),p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st((()=>{r&&p.current.focus()}),[r]),S.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ct(rt(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=mt(p,t);let h=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?("production"!==process.env.NODE_ENV&&Op.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return U.jsx(Bp,ae({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=rt(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hp(t,r,l,s,Lp);else if("ArrowUp"===n)e.preventDefault(),Hp(t,r,l,s,Ip);else if("Home"===n)e.preventDefault(),Hp(t,null,l,s,Lp);else if("End"===n)e.preventDefault(),Hp(t,null,l,s,Ip);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Sp(r,o);o.previousKeyMatched&&(l||Hp(t,r,!1,s,Lp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));"production"!==process.env.NODE_ENV&&(Rp.propTypes={autoFocus:Le.bool,autoFocusItem:Le.bool,children:Le.node,className:Le.string,disabledItemsFocusable:Le.bool,disableListWrap:Le.bool,onKeyDown:Le.func,variant:Le.oneOf(["menu","selectedMenu"])});var Wp=Rp;function Fp(e){return Rt("MuiPopover",e)}Wt("MuiPopover",["root","paper"]);const Vp=["onEntering"],Qp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],Xp=["slotProps"];function Yp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Gp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Up(e){return"function"==typeof e?e():e}const qp=xo(Li,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kp=xo($i,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Jp=S.forwardRef((function(e,t){var n,r,o;const i=Ao({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:A,slotProps:y,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:x=vc,transitionDuration:w="auto",TransitionProps:{onEntering:j}={}}=i,C=Yt(i.TransitionProps,Vp),M=Yt(i,Qp),O=null!=(n=null==y?void 0:y.paper)?n:v,z=S.useRef(),T=mt(z,O.ref),D=ae({},i,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:x,transitionDuration:w,TransitionProps:C}),P=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"]},Fp,t)})(D),N=S.useCallback((()=>{if("anchorPosition"===u)return"production"!==process.env.NODE_ENV&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const e=Up(s),t=e&&1===e.nodeType?e:rt(z.current).body,n=t.getBoundingClientRect();if("production"!==process.env.NODE_ENV){const e=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&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("\n"))}return{top:n.top+Yp(n,l.vertical),left:n.left+Gp(n,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),E=S.useCallback((e=>({vertical:Yp(e,b.vertical),horizontal:Gp(e,b.horizontal)})),[b.horizontal,b.vertical]),B=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===u)return{top:null,left:null,transformOrigin:Zp(n)};const r=N();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=ot(Up(s)),d=c.innerHeight-h,p=c.innerWidth-h;if(o<h){const e=o-h;o-=e,n.vertical+=e}else if(a>d){const e=a-d;o-=e,n.vertical+=e}if("production"!==process.env.NODE_ENV&&t.height>d&&t.height&&d&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${t.height-d}px).`,"Please consider adding a `max-height` to improve the user-experience."].join("\n")),i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zp(n)}}),[s,u,N,E,h]),[k,L]=S.useState(g),I=S.useCallback((()=>{const e=z.current;if(!e)return;const t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,L(!0)}),[B]);S.useEffect((()=>{g&&I()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{I()}}:null),[g,I]),S.useEffect((()=>{if(!g)return;const e=tt((()=>{I()})),t=ot(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,I]);let H=w;"auto"!==w||x.muiSupportAuto||(H=void 0);const R=f||(s?rt(Up(s)).body:void 0),W=null!=(r=null==A?void 0:A.root)?r:qp,F=null!=(o=null==A?void 0:A.paper)?o:Kp,V=Ro({elementType:F,externalSlotProps:ae({},O,{style:k?O.style:ae({},O.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:D,className:or(P.paper,null==O?void 0:O.className)}),Q=Ro({elementType:W,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:R,open:g},ownerState:D,className:or(P.root,p)}),{slotProps:X}=Q,Y=Yt(Q,Xp);return U.jsx(W,ae({},Y,!Po(W)&&{slotProps:X},{children:U.jsx(x,ae({appear:!0,in:g,onEntering:(e,t)=>{j&&j(e,t),I()},onExited:()=>{L(!1)},timeout:H},C,{children:U.jsx(F,ae({},V,{children:d}))}))}))}));"production"!==process.env.NODE_ENV&&(Jp.propTypes={action:_e,anchorEl:ie(Le.oneOfType([Je,Le.func]),(e=>{if(e.open&&(!e.anchorReference||"anchorEl"===e.anchorReference)){const t=Up(e.anchorEl);if(!t||1!==t.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join("\n"));{const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)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("\n"))}}return null})),anchorOrigin:Le.shape({horizontal:Le.oneOfType([Le.oneOf(["center","left","right"]),Le.number]).isRequired,vertical:Le.oneOfType([Le.oneOf(["bottom","center","top"]),Le.number]).isRequired}),anchorPosition:Le.shape({left:Le.number.isRequired,top:Le.number.isRequired}),anchorReference:Le.oneOf(["anchorEl","anchorPosition","none"]),children:Le.node,classes:Le.object,className:Le.string,container:Le.oneOfType([Je,Le.func]),elevation:Bt,marginThreshold:Le.number,onClose:Le.func,open:Le.bool.isRequired,PaperProps:Le.shape({component:Re}),slotProps:Le.shape({paper:Le.oneOfType([Le.func,Le.object]),root:Le.oneOfType([Le.func,Le.object])}),slots:Le.shape({paper:Le.elementType,root:Le.elementType}),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),transformOrigin:Le.shape({horizontal:Le.oneOfType([Le.oneOf(["center","left","right"]),Le.number]).isRequired,vertical:Le.oneOfType([Le.oneOf(["bottom","center","top"]),Le.number]).isRequired}),TransitionComponent:Le.elementType,transitionDuration:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.shape({appear:Le.number,enter:Le.number,exit:Le.number})]),TransitionProps:Le.object});var _p=Jp;function $p(e){return Rt("MuiMenu",e)}Wt("MuiMenu",["root","paper","list"]);const ef=["onEntering"],tf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nf={vertical:"top",horizontal:"right"},rf={vertical:"top",horizontal:"left"},of=xo(_p,{shouldForwardProp:e=>yo(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),af=xo(Kp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sf=xo(Wp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lf=S.forwardRef((function(e,t){var n,r;const o=Ao({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:A={}}=o,y=Yt(o.TransitionProps,ef),b=Yt(o,tf),x=vo(),w="rtl"===x.direction,j=ae({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"],list:["list"]},$p,t)})(j),M=i&&!l&&d,O=S.useRef(null);let z=-1;S.Children.map(a,((e,t)=>{S.isValidElement(e)&&("production"!==process.env.NODE_ENV&&Op.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===z)&&(z=t))}));const T=null!=(n=v.paper)?n:af,D=null!=(r=A.paper)?r:p,P=Ro({elementType:v.root,externalSlotProps:A.root,ownerState:j,className:[C.root,s]}),N=Ro({elementType:T,externalSlotProps:D,ownerState:j,className:C.paper});return U.jsx(of,ae({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?nf:rf,slots:{paper:T,root:v.root},slotProps:{root:P,paper:N},open:d,ref:t,transitionDuration:m,TransitionProps:ae({onEntering:(e,t)=>{O.current&&O.current.adjustStyleForScrollbar(e,x),h&&h(e,t)}},y),ownerState:j},b,{classes:f,children:U.jsx(sf,ae({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:O,autoFocus:i&&(-1===z||l),autoFocusItem:M,variant:g},c,{className:or(C.list,c.className),children:a}))}))}));"production"!==process.env.NODE_ENV&&(lf.propTypes={anchorEl:Le.oneOfType([Je,Le.func]),autoFocus:Le.bool,children:Le.node,classes:Le.object,className:Le.string,disableAutoFocusItem:Le.bool,MenuListProps:Le.object,onClose:Le.func,open:Le.bool.isRequired,PaperProps:Le.object,PopoverClasses:Le.object,slotProps:Le.shape({paper:Le.oneOfType([Le.func,Le.object]),root:Le.oneOfType([Le.func,Le.object])}),slots:Le.shape({paper:Le.elementType,root:Le.elementType}),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),transitionDuration:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.shape({appear:Le.number,enter:Le.number,exit:Le.number})]),TransitionProps:Le.object,variant:Le.oneOf(["menu","selectedMenu"])});var cf=lf;function uf(e){return Rt("MuiNativeSelect",e)}var df=Wt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const pf=["className","disabled","error","IconComponent","inputRef","variant"],ff=({ownerState:e,theme:t})=>ae({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ae({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${df.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),mf=xo("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${df.multiple}`]:t.multiple}]}})(ff),hf=({ownerState:e,theme:t})=>ae({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${df.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),gf=xo("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$e(n.variant)}`],n.open&&t.iconOpen]}})(hf),vf=S.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Yt(e,pf),c=ae({},e,{disabled:r,variant:s,error:o}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Lt({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${$e(n)}`,i&&"iconOpen",r&&"disabled"]},uf,t)})(c);return U.jsxs(S.Fragment,{children:[U.jsx(mf,ae({ownerState:c,className:or(u.select,n),disabled:r,ref:a||t},l)),e.multiple?null:U.jsx(gf,{as:i,ownerState:c,className:u.icon})]})}));"production"!==process.env.NODE_ENV&&(vf.propTypes={children:Le.node,classes:Le.object,className:Le.string,disabled:Le.bool,error:Le.bool,IconComponent:Le.elementType.isRequired,inputRef:_e,multiple:Le.bool,name:Le.string,onChange:Le.func,value:Le.any,variant:Le.oneOf(["standard","outlined","filled"])});var Af=vf;function yf(e){return Rt("MuiSelect",e)}var bf,xf=Wt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const wf=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],jf=xo("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${xf.select}`]:t.select},{[`&.${xf.select}`]:t[n.variant]},{[`&.${xf.error}`]:t.error},{[`&.${xf.multiple}`]:t.multiple}]}})(ff,{[`&.${xf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cf=xo("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$e(n.variant)}`],n.open&&t.iconOpen]}})(hf),Mf=xo("input",{shouldForwardProp:e=>bo(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Of(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function zf(e){return null==e||"string"==typeof e&&!e.trim()}const Tf=S.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:c,disabled:u,displayEmpty:d,error:p=!1,IconComponent:f,inputRef:m,labelId:h,MenuProps:g={},multiple:v,name:A,onBlur:y,onChange:b,onClose:x,onFocus:w,onOpen:j,open:C,readOnly:M,renderValue:O,SelectDisplayProps:z={},tabIndex:T,value:D,variant:P="standard"}=e,N=Yt(e,wf),[E,B]=pt({controlled:D,default:c,name:"Select"}),[k,L]=pt({controlled:C,default:l,name:"Select"}),I=S.useRef(null),H=S.useRef(null),[R,W]=S.useState(null),{current:F}=S.useRef(null!=C),[V,Q]=S.useState(),X=mt(t,m),Y=S.useCallback((e=>{H.current=e,e&&W(e)}),[]),G=null==R?void 0:R.parentNode;S.useImperativeHandle(X,(()=>({focus:()=>{H.current.focus()},node:I.current,value:E})),[E]),S.useEffect((()=>{l&&k&&R&&!F&&(Q(i?null:G.clientWidth),H.current.focus())}),[R,i]),S.useEffect((()=>{o&&H.current.focus()}),[o]),S.useEffect((()=>{if(!h)return;const e=rt(H.current).getElementById(h);if(e){const t=()=>{getSelection().isCollapsed&&H.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[h]);const Z=(e,t)=>{e?j&&j(t):x&&x(t),F||(Q(i?null:G.clientWidth),L(e))},q=S.Children.toArray(a),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(E)?E.slice():[];const t=E.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),E!==n&&(B(n),b)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:A}}),b(o,e)}v||Z(!1,t)}},J=null!==R&&k;let _,$;delete N["aria-invalid"];const ee=[];let te=!1,ne=!1;(fd({value:E})||d)&&(O?_=O(E):te=!0);const re=q.map((e=>{if(!S.isValidElement(e))return null;let t;if("production"!==process.env.NODE_ENV&&Op.isFragment(e)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),v){if(!Array.isArray(E))throw new Error("production"!==process.env.NODE_ENV?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Fe(2));t=E.some((t=>Of(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Of(E,e.props.value),t&&te&&($=e.props.children);return t&&(ne=!0),S.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));"production"!==process.env.NODE_ENV&&S.useEffect((()=>{if(!ne&&!v&&""!==E){const e=q.map((e=>e.props.value));console.warn([`MUI: You have provided an out-of-range value \`${E}\` for the select ${A?`(name="${A}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${e.filter((e=>null!=e)).map((e=>`\`${e}\``)).join(", ")||'""'}.`].join("\n"))}}),[ne,q,v,A,E]),te&&(_=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):$);let oe,ie=V;!i&&F&&R&&(ie=G.clientWidth),oe=void 0!==T?T:u?null:0;const se=z.id||(A?`mui-component-select-${A}`:void 0),le=ae({},e,{variant:P,value:E,open:J,error:p}),ce=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Lt({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${$e(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},yf,t)})(le);return U.jsxs(S.Fragment,{children:[U.jsx(jf,ae({ref:Y,tabIndex:oe,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[h,se].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))}},onMouseDown:u||M?null:e=>{0===e.button&&(e.preventDefault(),H.current.focus(),Z(!0,e))},onBlur:e=>{!J&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:E,name:A}}),y(e))},onFocus:w},z,{ownerState:le,className:or(z.className,ce.select,s),id:se,children:zf(_)?bf||(bf=U.jsx("span",{className:"notranslate",children:""})):_})),U.jsx(Mf,ae({"aria-invalid":p,value:Array.isArray(E)?E.join(","):E,name:A,ref:I,"aria-hidden":!0,onChange:e=>{const t=q.find((t=>t.props.value===e.target.value));void 0!==t&&(B(t.props.value),b&&b(e,t))},tabIndex:-1,disabled:u,className:ce.nativeInput,autoFocus:o,ownerState:le},N)),U.jsx(Cf,{as:f,className:ce.icon,ownerState:le}),U.jsx(cf,ae({id:`menu-${A||""}`,anchorEl:G,open:J,onClose:e=>{Z(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:ae({"aria-labelledby":h,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:ae({},g.PaperProps,{style:ae({minWidth:ie},null!=g.PaperProps?g.PaperProps.style:null)}),children:re}))]})}));"production"!==process.env.NODE_ENV&&(Tf.propTypes={"aria-describedby":Le.string,"aria-label":Le.string,autoFocus:Le.bool,autoWidth:Le.bool,children:Le.node,classes:Le.object,className:Le.string,defaultOpen:Le.bool,defaultValue:Le.any,disabled:Le.bool,displayEmpty:Le.bool,error:Le.bool,IconComponent:Le.elementType.isRequired,inputRef:_e,labelId:Le.string,MenuProps:Le.object,multiple:Le.bool,name:Le.string,onBlur:Le.func,onChange:Le.func,onClose:Le.func,onFocus:Le.func,onOpen:Le.func,open:Le.bool,readOnly:Le.bool,renderValue:Le.func,SelectDisplayProps:Le.object,tabIndex:Le.oneOfType([Le.number,Le.string]),type:Le.any,value:Le.any,variant:Le.oneOf(["standard","outlined","filled"])});var Df=Tf,Pf=Fi(U.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Nf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ef={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yo(e)&&"variant"!==e,slot:"Root"},Bf=xo(Pd,Ef)(""),kf=xo(Kd,Ef)(""),Lf=xo(Hd,Ef)(""),If=S.forwardRef((function(e,t){const n=Ao({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=Pf,id:u,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:A,onOpen:y,open:b,renderValue:x,SelectDisplayProps:w,variant:j="outlined"}=n,C=Yt(n,Nf),M=v?Af:Df,O=sd({props:n,muiFormControl:ud(),states:["variant","error"]}),z=O.variant||j,T=ae({},n,{variant:z,classes:i}),D=(e=>{const{classes:t}=e;return t})(T),P=d||{standard:U.jsx(Bf,{ownerState:T}),outlined:U.jsx(kf,{label:f,ownerState:T}),filled:U.jsx(Lf,{ownerState:T})}[z],N=mt(t,P.ref);return U.jsx(S.Fragment,{children:S.cloneElement(P,ae({inputComponent:M,inputProps:ae({children:o,error:O.error,IconComponent:c,variant:z,type:void 0,multiple:g},v?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:A,onOpen:y,open:b,renderValue:x,SelectDisplayProps:ae({id:u},w)},p,{classes:p?ce(D,p.classes):D},d?d.props.inputProps:{})},g&&v&&"outlined"===z?{notched:!0}:{},{ref:N,className:or(P.props.className,a)},!d&&{variant:z},C))})}));"production"!==process.env.NODE_ENV&&(If.propTypes={autoWidth:Le.bool,children:Le.node,classes:Le.object,className:Le.string,defaultOpen:Le.bool,defaultValue:Le.any,displayEmpty:Le.bool,IconComponent:Le.elementType,id:Le.string,input:Le.element,inputProps:Le.object,label:Le.node,labelId:Le.string,MenuProps:Le.object,multiple:Le.bool,native:Le.bool,onChange:Le.func,onClose:Le.func,onOpen:Le.func,open:Le.bool,renderValue:Le.func,SelectDisplayProps:Le.object,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),value:Le.oneOfType([Le.oneOf([""]),Le.any]),variant:Le.oneOf(["filled","outlined","standard"])}),If.muiName="Select";var Sf=If;function Hf(e){return Rt("MuiTextField",e)}Wt("MuiTextField",["root"]);const Rf=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Wf={standard:Pd,filled:Hd,outlined:Kd},Ff=xo(fp,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vf=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:g,InputProps:v,inputRef:A,label:y,maxRows:b,minRows:x,multiline:w=!1,name:j,onBlur:C,onChange:M,onClick:O,onFocus:z,placeholder:T,required:D=!1,rows:P,select:N=!1,SelectProps:E,type:B,value:k,variant:L="outlined"}=n,I=Yt(n,Rf),S=ae({},n,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:w,required:D,select:N,variant:L}),H=(e=>{const{classes:t}=e;return Lt({root:["root"]},Hf,t)})(S);"production"!==process.env.NODE_ENV&&N&&!i&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const R={};"outlined"===L&&(h&&void 0!==h.shrink&&(R.notched=h.shrink),R.label=y),N&&(E&&E.native||(R.id=void 0),R["aria-describedby"]=void 0);const W=e=>{!c&&O&&(e.stopPropagation(),O(e))},F=ut(m),V=f&&F?`${F}-helper-text`:void 0,Q=y&&F?`${F}-label`:void 0,X=Wf[L],Y=U.jsx(X,ae({"aria-describedby":V,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:w,name:j,rows:P,maxRows:b,minRows:x,type:B,value:k,id:F,inputRef:A,onBlur:C,onChange:M,onFocus:z,onClick:W,placeholder:T,inputProps:g},R,v));return U.jsxs(Ff,ae({className:or(H.root,a),disabled:c,error:u,fullWidth:p,ref:t,required:D,color:s,variant:L,ownerState:S,onClick:W},I,{children:[null!=y&&""!==y&&U.jsx(lp,ae({htmlFor:F,id:Q},h,{children:y})),N?U.jsx(Sf,ae({"aria-describedby":V,id:F,labelId:Q,value:k,input:Y},E,{children:i})):Y,f&&U.jsx(xp,ae({id:V},d,{children:f}))]}))}));"production"!==process.env.NODE_ENV&&(Vf.propTypes={autoComplete:Le.string,autoFocus:Le.bool,children:Le.node,classes:Le.object,className:Le.string,color:Le.oneOfType([Le.oneOf(["primary","secondary","error","info","success","warning"]),Le.string]),defaultValue:Le.any,disabled:Le.bool,error:Le.bool,FormHelperTextProps:Le.object,fullWidth:Le.bool,helperText:Le.node,id:Le.string,InputLabelProps:Le.object,inputProps:Le.object,InputProps:Le.object,inputRef:_e,label:Le.node,margin:Le.oneOf(["dense","none","normal"]),maxRows:Le.oneOfType([Le.number,Le.string]),minRows:Le.oneOfType([Le.number,Le.string]),multiline:Le.bool,name:Le.string,onBlur:Le.func,onChange:Le.func,onClick:Le.func,onFocus:Le.func,placeholder:Le.string,required:Le.bool,rows:Le.oneOfType([Le.number,Le.string]),select:Le.bool,SelectProps:Le.object,size:Le.oneOfType([Le.oneOf(["medium","small"]),Le.string]),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),type:Le.string,value:Le.any,variant:Le.oneOf(["filled","outlined","standard"])});var Qf=Vf;function Xf(e){return Rt("MuiListSubheader",e)}Wt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Yf=["className","color","component","disableGutters","disableSticky","inset"],Gf=xo("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${$e(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>ae({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),Zf=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1}=n,c=Yt(n,Yf),u=ae({},n,{color:o,component:i,disableGutters:a,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return Lt({root:["root","default"!==n&&`color${$e(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},Xf,t)})(u);return U.jsx(Gf,ae({as:i,className:or(d.root,r),ref:t,ownerState:u},c))}));Zf.muiSkipListHighlight=!0,"production"!==process.env.NODE_ENV&&(Zf.propTypes={children:Le.node,classes:Le.object,className:Le.string,color:Le.oneOf(["default","inherit","primary"]),component:Le.elementType,disableGutters:Le.bool,disableSticky:Le.bool,inset:Le.bool,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object])});var Uf=Zf,qf=Fi(U.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 Kf(e){return Rt("MuiChip",e)}var Jf=Wt("MuiChip",["root","sizeSmall","sizeMedium","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"]);const _f=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],$f=xo("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Jf.avatar}`]:t.avatar},{[`& .${Jf.avatar}`]:t[`avatar${$e(s)}`]},{[`& .${Jf.avatar}`]:t[`avatarColor${$e(r)}`]},{[`& .${Jf.icon}`]:t.icon},{[`& .${Jf.icon}`]:t[`icon${$e(s)}`]},{[`& .${Jf.icon}`]:t[`iconColor${$e(o)}`]},{[`& .${Jf.deleteIcon}`]:t.deleteIcon},{[`& .${Jf.deleteIcon}`]:t[`deleteIcon${$e(s)}`]},{[`& .${Jf.deleteIcon}`]:t[`deleteIconColor${$e(r)}`]},{[`& .${Jf.deleteIcon}`]:t[`deleteIcon${$e(l)}Color${$e(r)}`]},t.root,t[`size${$e(s)}`],t[`color${$e(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${$e(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${$e(r)}`],t[l],t[`${l}${$e(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return ae({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Jf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jf.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jf.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jf.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jf.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jf.icon}`]:ae({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&ae({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${Jf.deleteIcon}`]:ae({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Cr(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Cr(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Cr(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Jf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>ae({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>ae({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Jf.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jf.avatar}`]:{marginLeft:4},[`& .${Jf.avatarSmall}`]:{marginLeft:2},[`& .${Jf.icon}`]:{marginLeft:4},[`& .${Jf.iconSmall}`]:{marginLeft:2},[`& .${Jf.deleteIcon}`]:{marginRight:5},[`& .${Jf.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Cr(e.palette[t.color].main,.7)}`,[`&.${Jf.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cr(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Cr(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jf.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Cr(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),em=xo("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${$e(r)}`]]}})((({ownerState:e})=>ae({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function tm(e){return"Backspace"===e.key||"Delete"===e.key}const nm=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:a="default",component:s,deleteIcon:l,disabled:c=!1,icon:u,label:d,onClick:p,onDelete:f,onKeyDown:m,onKeyUp:h,size:g="medium",variant:v="filled",tabIndex:A,skipFocusWhenDisabled:y=!1}=n,b=Yt(n,_f),x=S.useRef(null),w=mt(x,t),j=e=>{e.stopPropagation(),f&&f(e)},C=!(!1===i||!p)||i,M=C||f?eu:s||"div",O=ae({},n,{component:M,disabled:c,size:g,color:a,iconColor:S.isValidElement(u)&&u.props.color||a,onDelete:!!f,clickable:C,variant:v}),z=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e;return Lt({root:["root",l,n&&"disabled",`size${$e(r)}`,`color${$e(o)}`,s&&"clickable",s&&`clickableColor${$e(o)}`,a&&"deletable",a&&`deletableColor${$e(o)}`,`${l}${$e(o)}`],label:["label",`label${$e(r)}`],avatar:["avatar",`avatar${$e(r)}`,`avatarColor${$e(o)}`],icon:["icon",`icon${$e(r)}`,`iconColor${$e(i)}`],deleteIcon:["deleteIcon",`deleteIcon${$e(r)}`,`deleteIconColor${$e(o)}`,`deleteIcon${$e(l)}Color${$e(o)}`]},Kf,t)})(O),T=M===eu?ae({component:s||"div",focusVisibleClassName:z.focusVisible},f&&{disableRipple:!0}):{};let D=null;f&&(D=l&&S.isValidElement(l)?S.cloneElement(l,{className:or(l.props.className,z.deleteIcon),onClick:j}):U.jsx(qf,{className:or(z.deleteIcon),onClick:j}));let P=null;r&&S.isValidElement(r)&&(P=S.cloneElement(r,{className:or(z.avatar,r.props.className)}));let N=null;return u&&S.isValidElement(u)&&(N=S.cloneElement(u,{className:or(z.icon,u.props.className)})),"production"!==process.env.NODE_ENV&&P&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),U.jsxs($f,ae({as:M,className:or(z.root,o),disabled:!(!C||!c)||void 0,onClick:p,onKeyDown:e=>{e.currentTarget===e.target&&tm(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&tm(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),h&&h(e)},ref:w,tabIndex:y&&c?-1:A,ownerState:O},T,b,{children:[P||N,U.jsx(em,{className:or(z.label),ownerState:O,children:d}),D]}))}));"production"!==process.env.NODE_ENV&&(nm.propTypes={avatar:Le.element,children:dt,classes:Le.object,className:Le.string,clickable:Le.bool,color:Le.oneOfType([Le.oneOf(["default","primary","secondary","error","info","success","warning"]),Le.string]),component:Le.elementType,deleteIcon:Le.element,disabled:Le.bool,icon:Le.element,label:Le.node,onClick:Le.func,onDelete:Le.func,onKeyDown:Le.func,onKeyUp:Le.func,size:Le.oneOfType([Le.oneOf(["medium","small"]),Le.string]),skipFocusWhenDisabled:Le.bool,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),tabIndex:Le.number,variant:Le.oneOfType([Le.oneOf(["filled","outlined"]),Le.string])});var rm=nm,om=Fi(U.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");function im(e){return Rt("MuiAutocomplete",e)}var am,sm,lm=Wt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);const cm=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],um=["ref"],dm=xo("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${lm.tag}`]:t.tag},{[`& .${lm.tag}`]:t[`tagSize${$e(s)}`]},{[`& .${lm.inputRoot}`]:t.inputRoot},{[`& .${lm.input}`]:t.input},{[`& .${lm.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((({ownerState:e})=>ae({[`&.${lm.focused} .${lm.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${lm.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${lm.tag}`]:ae({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${lm.inputRoot}`]:{flexWrap:"wrap",[`.${lm.hasPopupIcon}&, .${lm.hasClearIcon}&`]:{paddingRight:30},[`.${lm.hasPopupIcon}.${lm.hasClearIcon}&`]:{paddingRight:56},[`& .${lm.input}`]:{width:0,minWidth:30}},[`& .${Md.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Md.root}.${hd.sizeSmall}`]:{[`& .${Md.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Xd.root}`]:{padding:9,[`.${lm.hasPopupIcon}&, .${lm.hasClearIcon}&`]:{paddingRight:39},[`.${lm.hasPopupIcon}.${lm.hasClearIcon}&`]:{paddingRight:65},[`& .${lm.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${lm.endAdornment}`]:{right:9}},[`& .${Xd.root}.${hd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${lm.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ed.root}`]:{paddingTop:19,paddingLeft:8,[`.${lm.hasPopupIcon}&, .${lm.hasClearIcon}&`]:{paddingRight:39},[`.${lm.hasPopupIcon}.${lm.hasClearIcon}&`]:{paddingRight:65},[`& .${Ed.input}`]:{padding:"7px 4px"},[`& .${lm.endAdornment}`]:{right:9}},[`& .${Ed.root}.${hd.sizeSmall}`]:{paddingBottom:1,[`& .${Ed.input}`]:{padding:"2.5px 4px"}},[`& .${hd.hiddenLabel}`]:{paddingTop:8},[`& .${Ed.root}.${hd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${lm.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ed.root}.${hd.hiddenLabel}.${hd.sizeSmall}`]:{[`& .${lm.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${lm.input}`]:ae({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),pm=xo("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),fm=xo(au,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),mm=xo(au,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>ae({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>ae({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),hm=xo(xc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lm.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>ae({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),gm=xo($i,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>ae({},e.typography.body1,{overflow:"auto"}))),vm=xo("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Am=xo("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),ym=xo("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${lm.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${lm.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${lm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lm.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${lm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),bm=xo(Uf,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),xm=xo("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${lm.option}`]:{paddingLeft:24}}),wm=S.forwardRef((function(e,t){var n,r,o,i;const a=Ao({props:e,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:l=!1,autoSelect:c=!1,blurOnSelect:u=!1,ChipProps:d,className:p,clearIcon:f=am||(am=U.jsx(om,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:h=!1,clearText:g="Clear",closeText:v="Close",componentsProps:A={},defaultValue:y=(a.multiple?[]:null),disableClearable:b=!1,disableCloseOnSelect:x=!1,disabled:w=!1,disabledItemsFocusable:j=!1,disableListWrap:C=!1,disablePortal:M=!1,filterSelectedOptions:O=!1,forcePopupIcon:z="auto",freeSolo:T=!1,fullWidth:D=!1,getLimitTagsText:P=(e=>`+${e}`),getOptionLabel:N,groupBy:E,handleHomeEndKeys:B=!a.freeSolo,includeInputInList:k=!1,limitTags:L=-1,ListboxComponent:I="ul",ListboxProps:H,loading:R=!1,loadingText:W="Loading…",multiple:F=!1,noOptionsText:V="No options",openOnFocus:Q=!1,openText:X="Open",PaperComponent:Y=$i,PopperComponent:G=xc,popupIcon:Z=sm||(sm=U.jsx(Pf,{})),readOnly:q=!1,renderGroup:K,renderInput:J,renderOption:_,renderTags:$,selectOnFocus:ee=!a.freeSolo,size:te="medium",slotProps:ne={}}=a,re=Yt(a,cm),{getRootProps:oe,getInputProps:ie,getInputLabelProps:se,getPopupIndicatorProps:le,getClearProps:ce,getTagProps:ue,getListboxProps:de,getOptionProps:pe,value:fe,dirty:me,expanded:he,id:ge,popupOpen:ve,focused:Ae,focusedTag:ye,anchorEl:be,setAnchorEl:xe,inputValue:we,groupedOptions:je}=dc(ae({},a,{componentName:"Autocomplete"})),Ce=!b&&!w&&me&&!q,Me=(!T||!0===z)&&!1!==z,{onMouseDown:Oe}=ie(),{ref:ze}=null!=H?H:{},Te=de(),{ref:De}=Te,Pe=Yt(Te,um),Ne=mt(De,ze),Ee=N||(e=>{var t;return null!=(t=e.label)?t:e}),Be=ae({},a,{disablePortal:M,expanded:he,focused:Ae,fullWidth:D,getOptionLabel:Ee,hasClearIcon:Ce,hasPopupIcon:Me,inputFocused:-1===ye,popupOpen:ve,size:te}),ke=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e;return Lt({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${$e(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},im,t)})(Be);let Le;if(F&&fe.length>0){const e=e=>ae({className:ke.tag,disabled:w},ue(e));Le=$?$(fe,e,Be):fe.map(((t,n)=>U.jsx(rm,ae({label:Ee(t),size:te},e({index:n}),d))))}if(L>-1&&Array.isArray(Le)){const e=Le.length-L;!Ae&&e>0&&(Le=Le.splice(0,L),Le.push(U.jsx("span",{className:ke.tag,children:P(e)},Le.length)))}const Ie=K||(e=>U.jsxs("li",{children:[U.jsx(bm,{className:ke.groupLabel,ownerState:Be,component:"div",children:e.group}),U.jsx(xm,{className:ke.groupUl,ownerState:Be,children:e.children})]},e.key)),Se=_||((e,t)=>U.jsx("li",ae({},e,{children:Ee(t)}))),He=(e,t)=>{const n=pe({option:e,index:t});return Se(ae({},n,{className:ke.option}),e,{selected:n["aria-selected"],index:t,inputValue:we},Be)},Re=null!=(n=ne.clearIndicator)?n:A.clearIndicator,We=null!=(r=ne.paper)?r:A.paper,Fe=null!=(o=ne.popper)?o:A.popper,Ve=null!=(i=ne.popupIndicator)?i:A.popupIndicator;return U.jsxs(S.Fragment,{children:[U.jsx(dm,ae({ref:t,className:or(ke.root,p),ownerState:Be},oe(re),{children:J({id:ge,disabled:w,fullWidth:!0,size:"small"===te?"small":void 0,InputLabelProps:se(),InputProps:ae({ref:xe,className:ke.inputRoot,startAdornment:Le,onClick:e=>{e.target===e.currentTarget&&Oe(e)}},(Ce||Me)&&{endAdornment:U.jsxs(pm,{className:ke.endAdornment,ownerState:Be,children:[Ce?U.jsx(fm,ae({},ce(),{"aria-label":g,title:g,ownerState:Be},Re,{className:or(ke.clearIndicator,null==Re?void 0:Re.className),children:f})):null,Me?U.jsx(mm,ae({},le(),{disabled:w,"aria-label":ve?v:X,title:ve?v:X,ownerState:Be},Ve,{className:or(ke.popupIndicator,null==Ve?void 0:Ve.className),children:Z})):null]})}),inputProps:ae({className:ke.input,disabled:w,readOnly:q},ie())})})),be?U.jsx(hm,ae({as:G,disablePortal:M,style:{width:be?be.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:be,open:ve},Fe,{className:or(ke.popper,null==Fe?void 0:Fe.className),children:U.jsxs(gm,ae({ownerState:Be,as:Y},We,{className:or(ke.paper,null==We?void 0:We.className),children:[R&&0===je.length?U.jsx(vm,{className:ke.loading,ownerState:Be,children:W}):null,0!==je.length||T||R?null:U.jsx(Am,{className:ke.noOptions,ownerState:Be,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),je.length>0?U.jsx(ym,ae({as:I,className:ke.listbox,ownerState:Be},Pe,H,{ref:Ne,children:je.map(((e,t)=>E?Ie({key:e.key,group:e.group,children:e.options.map(((t,n)=>He(t,e.index+n)))}):He(e,t)))})):null]}))})):null]})}));"production"!==process.env.NODE_ENV&&(wm.propTypes={autoComplete:Le.bool,autoHighlight:Le.bool,autoSelect:Le.bool,blurOnSelect:Le.oneOfType([Le.oneOf(["mouse","touch"]),Le.bool]),ChipProps:Le.object,classes:Le.object,className:Le.string,clearIcon:Le.node,clearOnBlur:Le.bool,clearOnEscape:Le.bool,clearText:Le.string,closeText:Le.string,componentsProps:Le.shape({clearIndicator:Le.object,paper:Le.object,popper:Le.object,popupIndicator:Le.object}),defaultValue:ie(Le.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:Le.bool,disableCloseOnSelect:Le.bool,disabled:Le.bool,disabledItemsFocusable:Le.bool,disableListWrap:Le.bool,disablePortal:Le.bool,filterOptions:Le.func,filterSelectedOptions:Le.bool,forcePopupIcon:Le.oneOfType([Le.oneOf(["auto"]),Le.bool]),freeSolo:Le.bool,fullWidth:Le.bool,getLimitTagsText:Le.func,getOptionDisabled:Le.func,getOptionLabel:Le.func,groupBy:Le.func,handleHomeEndKeys:Le.bool,id:Le.string,includeInputInList:Le.bool,inputValue:Le.string,isOptionEqualToValue:Le.func,limitTags:Bt,ListboxComponent:Le.elementType,ListboxProps:Le.object,loading:Le.bool,loadingText:Le.node,multiple:Le.bool,noOptionsText:Le.node,onChange:Le.func,onClose:Le.func,onHighlightChange:Le.func,onInputChange:Le.func,onOpen:Le.func,open:Le.bool,openOnFocus:Le.bool,openText:Le.string,options:Le.array.isRequired,PaperComponent:Le.elementType,PopperComponent:Le.elementType,popupIcon:Le.node,readOnly:Le.bool,renderGroup:Le.func,renderInput:Le.func.isRequired,renderOption:Le.func,renderTags:Le.func,selectOnFocus:Le.bool,size:Le.oneOfType([Le.oneOf(["small","medium"]),Le.string]),slotProps:Le.shape({clearIndicator:Le.object,paper:Le.object,popper:Le.object,popupIndicator:Le.object}),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),value:ie(Le.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null))});var jm=wm;const Cm=S.createContext();"production"!==process.env.NODE_ENV&&(Cm.displayName="GridContext");var Mm=Cm;function Om(e){return Rt("MuiGrid",e)}const zm=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Tm=Wt("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...zm.map((e=>`grid-xs-${e}`)),...zm.map((e=>`grid-sm-${e}`)),...zm.map((e=>`grid-md-${e}`)),...zm.map((e=>`grid-lg-${e}`)),...zm.map((e=>`grid-xl-${e}`))]),Dm=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Pm(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Nm({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const Em=xo("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>ae({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return $t({theme:e},nn({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Tm.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=nn({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Nm({breakpoints:e.breakpoints.values,values:t})),o=$t({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${Pm(i)}`,[`& > .${Tm.item}`]:{paddingTop:Pm(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Tm.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=nn({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Nm({breakpoints:e.breakpoints.values,values:t})),o=$t({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${Pm(i)})`,marginLeft:`-${Pm(i)}`,[`& > .${Tm.item}`]:{paddingLeft:Pm(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Tm.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=nn({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${Pm(n)})`;c={flexBasis:e,maxWidth:e}}}i=ae({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const Bm=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Lt({root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},Om,t)},km=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiGrid"}),{breakpoints:r}=vo(),o=nr(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:m="wrap",zeroMinWidth:h=!1}=o,g=Yt(o,Dm),v=p||f,A=s||f,y=S.useContext(Mm),b=c?a||12:y,x={},w=ae({},g);r.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete w[e])}));const j=ae({},o,{columns:b,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:A,wrap:m,zeroMinWidth:h,spacing:f},x,{breakpoints:r.keys}),C=Bm(j);return U.jsx(Mm.Provider,{value:b,children:U.jsx(Em,ae({ownerState:j,className:or(C.root,i),as:l,ref:t},w))})}));if("production"!==process.env.NODE_ENV&&(km.propTypes={children:Le.node,classes:Le.object,className:Le.string,columns:Le.oneOfType([Le.arrayOf(Le.number),Le.number,Le.object]),columnSpacing:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.number,Le.string])),Le.number,Le.object,Le.string]),component:Le.elementType,container:Le.bool,direction:Le.oneOfType([Le.oneOf(["column-reverse","column","row-reverse","row"]),Le.arrayOf(Le.oneOf(["column-reverse","column","row-reverse","row"])),Le.object]),item:Le.bool,lg:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),md:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),rowSpacing:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.number,Le.string])),Le.number,Le.object,Le.string]),sm:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),spacing:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.number,Le.string])),Le.number,Le.object,Le.string]),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),wrap:Le.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),xs:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),zeroMinWidth:Le.bool}),"production"!==process.env.NODE_ENV){const e=it("Grid",km);km.propTypes=ae({},km.propTypes,{direction:e("container"),lg:e("item"),md:e("item"),sm:e("item"),spacing:e("container"),wrap:e("container"),xs:e("item"),zeroMinWidth:e("item")})}var Lm=km;function Im(e){return Rt("MuiTypography",e)}Wt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sm=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hm=xo("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${$e(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ae({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Rm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wm={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fm=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiTypography"}),r=(e=>Wm[e]||e)(n.color),o=nr(ae({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Rm}=o,f=Yt(o,Sm),m=ae({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||Rm[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Lt({root:["root",i,"inherit"!==e.align&&`align${$e(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Im,a)})(m);return U.jsx(Hm,ae({as:h,ref:t,ownerState:m,className:or(g.root,a)},f))}));"production"!==process.env.NODE_ENV&&(Fm.propTypes={align:Le.oneOf(["center","inherit","justify","left","right"]),children:Le.node,classes:Le.object,className:Le.string,component:Le.elementType,gutterBottom:Le.bool,noWrap:Le.bool,paragraph:Le.bool,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),variant:Le.oneOfType([Le.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Le.string]),variantMapping:Le.object});var Vm,Qm,Xm=Fm,Ym={exports:{}};Ym.exports=(Vm={705:e=>{e.exports=function(e,t){const n=[];return 0===t.length?n.push({text:e,highlight:!1}):t[0][0]>0&&n.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((r,o)=>{const i=r[0],a=r[1];n.push({text:e.slice(i,a),highlight:!0}),o===t.length-1?a<e.length&&n.push({text:e.slice(a,e.length),highlight:!1}):a<t[o+1][0]&&n.push({text:e.slice(a,t[o+1][0]),highlight:!1})})),n}}},Qm={},function e(t){var n=Qm[t];if(void 0!==n)return n.exports;var r=Qm[t]={exports:{}};return Vm[t](r,r.exports,e),r.exports}(705));var Gm=F(Ym.exports);var Zm=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Um="object"==typeof globalThis&&globalThis&&W.Object===Object&&globalThis,qm="object"==typeof self&&self&&self.Object===Object&&self,Km=Um||qm||Function("return this")(),Jm=Km,_m=function(){return Jm.Date.now()},$m=/\s/;var eh=function(e){for(var t=e.length;t--&&$m.test(e.charAt(t)););return t},th=/^\s+/;var nh=function(e){return e?e.slice(0,eh(e)+1).replace(th,""):e},rh=Km.Symbol,oh=rh,ih=Object.prototype,ah=ih.hasOwnProperty,sh=ih.toString,lh=oh?oh.toStringTag:void 0;var ch=function(e){var t=ah.call(e,lh),n=e[lh];try{e[lh]=void 0;var r=!0}catch(e){}var o=sh.call(e);return r&&(t?e[lh]=n:delete e[lh]),o},uh=Object.prototype.toString;var dh=ch,ph=function(e){return uh.call(e)},fh=rh?rh.toStringTag:void 0;var mh=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fh&&fh in Object(e)?dh(e):ph(e)},hh=function(e){return null!=e&&"object"==typeof e};var gh=nh,vh=Zm,Ah=function(e){return"symbol"==typeof e||hh(e)&&"[object Symbol]"==mh(e)},yh=/^[-+]0x[0-9a-f]+$/i,bh=/^0b[01]+$/i,xh=/^0o[0-7]+$/i,wh=parseInt;var jh=Zm,Ch=_m,Mh=function(e){if("number"==typeof e)return e;if(Ah(e))return NaN;if(vh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=gh(e);var n=bh.test(e);return n||xh.test(e)?wh(e.slice(2),n?2:8):yh.test(e)?NaN:+e},Oh=Math.max,zh=Math.min;var Th=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=Ch();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?zh(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=Ch(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=Mh(t)||0,jh(n)&&(u=!!n.leading,i=(d="maxWait"in n)?Oh(Mh(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Ch())},v},Dh=Th,Ph=Zm;var Nh,Eh=F((function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ph(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Dh(e,t,{leading:r,maxWait:t,trailing:o})})),Bh=A.create({withCredentials:!0});exports.RequestState=void 0,(Nh=exports.RequestState||(exports.RequestState={})).IDLE="idle",Nh.LOADING="loading",Nh.SUCCEEDED="succeeded",Nh.FAILED="failed",Nh.UPLOADED="uploaded";var kh=function(){function e(e,t,n,r){this.data=e,this.state=t,this.error=n,this.uploadResult=r}return e.idle=function(t){var n=new e(t,exports.RequestState.IDLE);return q({},n)},e.loading=function(t){var n=new e(t,exports.RequestState.LOADING);return q({},n)},e.succeeded=function(t){var n=new e(t,exports.RequestState.SUCCEEDED);return q({},n)},e.error=function(t,n){var r=new e(n,exports.RequestState.FAILED,t);return q({},r)},e.uploaded=function(t,n){var r=new e(t.data,exports.RequestState.UPLOADED,null,n);return q({},r)},e}();function Lh(e,t){return e.filter((function(e){return!t.includes(e)}))}var Ih=e.createContext({statusCode:null,dashbaordUrlPrefix:""});var Sh,Hh=function(){function e(){}return e.optimizeImage=function(e,t){return new Promise((function(n,r){var o,i,a=null!==(o=t.maxWidth)&&void 0!==o?o:1e3,s=null!==(i=t.maxHeight)&&void 0!==i?i:1e3,l=document.createElement("canvas"),c=l.getContext("2d");if(!c)return e;var u=document.createElement("img");u.src=URL.createObjectURL(e);var d=e.name.split(".").slice(0,-1).join(".");u.onload=function(){var e=u.width,t=u.height;if(e>a||t>s){var r=e/t;e>t&&e>a?t=(e=a)/r:t>s&&(e=(t=s)*r)}l.width=e,l.height=t,c.imageSmoothingEnabled=!0,c.imageSmoothingQuality="high",c.drawImage(u,0,0,e,t),l.toBlob((function(e){var t=new File([e],"".concat(d,".webp"),{type:"image/webp"});n(t)}),"image/webp",1)},u.onerror=function(e){r(e)}}))},e}(),Rh=function(e,t,n,r){return J(void 0,void 0,void 0,(function(){return _(this,(function(o){switch(o.label){case 0:return t&&n===exports.ImageOptimizingCategories.NORMAL?[3,1]:[3,3];case 1:return[4,Hh.optimizeImage(e,{maxWidth:1e3,maxHeight:1e3})];case 2:return e=o.sent(),[3,3];case 3:return[2,new Promise((function(t){new b(e,{quality:.6,success:function(e){try{var n=Fh(e.name);y.Storage.put(n,e,{contentType:e.type}).then((function(e){r&&r(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}t(!0)},error:function(e){console.log(e.message)}})}))]}}))}))},Wh=function(e,t,n){return J(void 0,void 0,void 0,(function(){return _(this,(function(r){return[2,Promise.all(e.map((function(e){return Ms(e.name,t)===exports.FileTypes.IMAGE?new Promise((function(t){new b(e,{quality:.6,convertSize:1/0,success:function(e){try{var r=Fh(e.name);y.Storage.put(r,e,{contentType:e.type}).then((function(e){n&&n(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}},error:function(e){console.log(e.message)}})})):new Promise((function(t){var r=[];try{var o=Fh(e.name);y.Storage.put(o,e,{contentType:e.type}).then((function(e){n&&n(e.key),r.push(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}}))})))]}))}))};function Fh(e){var t=Date.now(),n=e.split(".").pop(),r=e.split(".").slice(0,-1).join(".");return"".concat(r,"_").concat(t,".").concat(n)}!function(e){e.LOGIN="LOGIN",e.LOGOUT="LOGOUT"}(Sh||(Sh={}));var Vh=function(e,t){switch(t.type){case Sh.LOGIN:return q(q({},e),{user:t.payload,isAuthenticated:!0});case Sh.LOGOUT:return q(q({},e),{user:null,isAuthenticated:!1});default:return e}},Qh=function(e){var t=localStorage.getItem(e);if(!t)return null;try{var n=JSON.parse(t);return n||null}catch(e){return null}},Xh=e.createContext(q(q({},{user:null,isAuthenticated:!1}),{login:function(){},logout:function(){}})),Yh=function(){return e.useContext(Xh)};function Gh(t){void 0===t&&(t=kh.idle());var n=e.useState(t),r=n[0],o=n[1],i=e.useContext(Ih).dashbaordUrlPrefix,a=Yh().logout,s=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.get("".concat(i,"/").concat(e.url),q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]),l=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.post("".concat(i,"/").concat(e.url),e.body,q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]),c=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.patch("".concat(i,"/").concat(e.url),e.body,q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]),u=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.delete("".concat(i,"/").concat(e.url),q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]);return{requestState:r,get:s,post:l,patch:c,remove:u,revertToIdle:function(){o(kh.idle())},revertToInitialState:function(){o(t)},uploadToS3:function(e){var t=e.body;o((function(e){return kh.loading(e.data)})),Promise.all(t.map((function(e){return new Promise((function(t){Wh(e.files,e.fileType).then((function(n){var r;return t(((r={})[e.key]=1===n.length?n[0]:n,r))}))}))}))).then((function(t){var n=t.reduce((function(e,t){return q(q({},e),t)}),{});o(kh.uploaded(r,n)),e.onSuccess&&e.onSuccess(n)})).catch((function(e){var t,n;try{var r=JSON.parse(null!==(n=null!==(t=e.message)&&void 0!==t?t:e)&&void 0!==n?n:"{}");o((function(e){return kh.error(r,e.data)}))}catch(t){o((function(t){return kh.error(e,t.data)}))}}))}}}function Zh(){return x.configure({showSpinner:!1}),e.useMemo((function(){x.start()}),[]),e.useEffect((function(){x.done()}),[]),null}var Uh=xo("div")((function(e){return{right:0,bottom:0,zIndex:99999,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.theme.palette.background.default}}));function qh(e){var t=e.isDashboard,r=e.loadingLogo,o=e.logoSxProps,i=K(e,["isDashboard","loadingLogo","logoSxProps"]),a=Bg(),s=a.loadingLoago,l=a.loadingLogoSxProps;return U.jsxs(U.Fragment,{children:[U.jsx(Zh,{}),!t&&U.jsxs(Uh,q({},i,{children:[U.jsx(p.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:U.jsx(n.Box,{sx:q(q({width:200},o),l),children:U.jsx(Ua,{visibleByDefault:!0,disabledEffect:!0,src:null!=r?r:s,alt:"logo"})})}),U.jsx(n.Box,{component:p.m.div,animate:{scale:[1.2,1,1,1.2,1.2],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,borderRadius:"25%",position:"absolute",border:function(e){return"solid 3px ".concat(Cr(e.palette.primary.dark,.24))}}}),U.jsx(n.Box,{component:p.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,borderRadius:"25%",position:"absolute",border:function(e){return"solid 8px ".concat(Cr(e.palette.primary.dark,.24))}}})]}))]})}var Kh=e.createContext({resources:null,getResources:function(){},state:exports.RequestState.IDLE,clearResources:function(){}}),Jh=e.createContext({paths:{},root:"",home:""});function _h(e,t){return"".concat(e).concat(t)}function $h(){var t=e.useContext(Kh).resources,n=e.useContext(Jh).paths;if(!t)return[];var r=t.modelParents;return e.useMemo((function(){var e=[];for(var o in r){for(var i=[],a=r[o],s=t[a[0]].properties.parent,l=s.icon,c={title:s.value,icon:ku(l),children:i},u=0;u<a.length;u++){var d=t[a[u]];i.push({title:d.properties.name,path:n[a[u]]?n[a[u]].list:""})}c.children=i,e.push(c)}return[{subheader:"",items:e||[]}]}),[t])}function eg(e,t){return"linear-gradient(to bottom, ".concat(e,", ").concat(t,")")}var tg={lighter:"#416973",light:"#416973",main:"#416973",dark:"#416973",darker:"#416973"},ng={lighter:"#D2E1FE",light:"#799DF9",main:"#2352ED",dark:"#112DAA",darker:"#061571"},rg={lighter:"#E9F8D2",light:"#A3D974",main:"#3F821D",dark:"#1F5D0E",darker:"#0A3E05"},og={lighter:"#FEF5CC",light:"#F9D866",main:"#EDAB04",dark:"#AA7102",darker:"#714400"},ig={lighter:"#FBDFD0",light:"#E78571",main:"#B21A1A",dark:"#800D21",darker:"#550420"},ag={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24",5008:Cr("#919EAB",.08),50012:Cr("#919EAB",.12),50016:Cr("#919EAB",.16),50024:Cr("#919EAB",.24),50032:Cr("#919EAB",.32),50048:Cr("#919EAB",.48),50056:Cr("#919EAB",.56),50080:Cr("#919EAB",.8)},sg={primary:eg(tg.light,tg.main),info:eg(ng.light,ng.main),success:eg(rg.light,rg.main),warning:eg(og.light,og.main),error:eg(ig.light,ig.main)},lg={common:{black:"#000",white:"#fff"},primary:q(q({},tg),{contrastText:"#fff"}),secondary:q(q({},{lighter:"#D6E4FF",light:"#84A9FF",main:"#F23C3C",dark:"#E23C3C",darker:"#D23C3C"}),{contrastText:"#fff"}),info:q(q({},ng),{contrastText:"#fff"}),success:q(q({},rg),{contrastText:ag[800]}),warning:q(q({},og),{contrastText:ag[800]}),error:q(q({},ig),{contrastText:"#fff"}),grey:ag,gradients:sg,chart:{violet:["#826AF9","#9E86FF","#D0AEFF","#F7D2FF"],blue:["#2D99FF","#83CFFF","#A5F3FF","#CCFAFF"],green:["#2CD9C5","#60F1C8","#A4F7CC","#C0F2DC"],yellow:["#FFE700","#FFEF5A","#FFF7AE","#FFF3D6"],red:["#FF6C40","#FF8F6D","#FFBD98","#FFF2D4"]},divider:ag[50024],action:{hover:ag[5008],selected:ag[50016],disabled:ag[50080],disabledBackground:ag[50024],focus:ag[50024],hoverOpacity:.08,disabledOpacity:.48}},cg={light:q(q({},lg),{mode:"light",text:{primary:ag[800],secondary:ag[600],disabled:ag[500]},background:{paper:"#fff",default:"#fff",neutral:ag[200]},action:q({active:ag[600]},lg.action)}),dark:q(q({},lg),{mode:"dark",text:{primary:"#fff",secondary:ag[500],disabled:ag[600]},background:{paper:ag[800],default:ag[900],neutral:ag[50016]},action:q({active:ag[500]},lg.action)})},ug=e.createContext({textFieldSize:"small",themeLayout:"vertical",defaultRowsPerPage:50,themeStretch:!0,loadingLoago:"",navBarLogo:"",miniNavBarLogo:"",loginWeclomeImage:"",loginLogo:"",loginLoginMessage:"",palette:cg.light}),dg=e.createContext({identityPoolId:"",region:"",userPoolId:"",userPoolWebClientId:"",bucket:"",googleApiKey:"",bucketUrl:""}),pg=e.createContext({setAlert:function(e,t,n,r){},setErrorAlert:function(e,t,n){},setSuccessAlert:function(e,t,n){}});var fg=e.createContext({openDialog:function(e,t){}});var mg=e.createContext({notifications:[],getNotifications:function(){},state:exports.RequestState.IDLE,clearNotifications:function(){}}),hg=e.createContext({collapseClick:!1,collapseHover:!1,onToggleCollapse:function(){},onHoverEnter:function(){},onHoverLeave:function(){}});var gg=[q({name:"default"},cg.light.primary),{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#fff"},{name:"cyan",lighter:"#D1FFFC",light:"#76F2FF",main:"#1CCAFF",dark:"#0E77B7",darker:"#053D7A",contrastText:cg.light.grey[800]},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#fff"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:cg.light.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#fff"}],vg=gg[0],Ag=gg[1],yg=gg[2],bg=gg[3],xg=gg[4],wg=gg[5];var jg,Cg;!function(e){e.ENGLISH="en",e.ARABIC="ar",e.FRENCH="fr",e.GERMAN="de",e.SPANISH="es",e.DANISH="da",e.NORWEGIAN="nb",e.SWEDISH="sv"}(jg||(jg={})),function(e){e.ENGLISH_FLAG="https://pngimg.com/uploads/flags/flags_PNG14592.png",e.ARABIC_FLAG="/assets/icons/flags/ic_flag_sa.svg",e.FRENCH_FLAG="/assets/icons/flags/ic_flag_fr.svg",e.GERMAN_FLAG="/assets/icons/flags/ic_flag_de.svg",e.SPANISH_FLAG="/assets/icons/flags/ic_flag_es.svg",e.DANISH_FLAG="/assets/icons/flags/ic_flag_da.svg",e.NORWEGIAN_FLAG="/assets/icons/flags/ic_flag_no.svg",e.SWEDISH_FLAG="/assets/icons/flags/ic_flag_se.svg"}(Cg||(Cg={}));var Mg={MOBILE_HEIGHT:64,MAIN_DESKTOP_HEIGHT:88,DASHBOARD_DESKTOP_HEIGHT:50,DASHBOARD_DESKTOP_OFFSET_HEIGHT:60},Og={BASE_WIDTH:260,DASHBOARD_WIDTH:280,DASHBOARD_COLLAPSE_WIDTH:88,DASHBOARD_ITEM_ROOT_HEIGHT:48,DASHBOARD_ITEM_SUB_HEIGHT:40,DASHBOARD_ITEM_HORIZONTAL_HEIGHT:32},zg=22,Tg=20,Dg=[{label:"English",value:jg.ENGLISH,index:"1",systemValue:{},icon:Cg.ENGLISH_FLAG},{label:"Arabic",value:jg.ARABIC,index:"2",systemValue:{components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"انتقل إلى الصفحة الأولى":"last"===e?"انتقل إلى الصفحة الأخيرة":"next"===e?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${-1!==n?n:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${1!==e?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا يوجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"انتقل إلى "} صفحة ${t}`:"first"===e?"انتقل إلى الصفحة الأولى":"last"===e?"انتقل الي الصفحة الأخيرة":"next"===e?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة"}}}},icon:Cg.ARABIC_FLAG}],Pg=Dg[0],Ng=q(q({},{themeMode:"light",themeDirection:"ltr",themeContrast:"default",themeLayout:"horizontal",themeColorPresets:"default",themeStretch:!1}),{onToggleMode:function(){},onChangeMode:function(){console.log("hagsga")},onToggleDirection:function(){},onChangeDirection:function(){},onChangeDirectionByLang:function(){},onToggleLayout:function(){},onChangeLayout:function(){},onToggleContrast:function(){},onChangeContrast:function(){},onChangeColor:function(){},setColor:vg,colorOption:[],onToggleStretch:function(){},onResetSetting:function(){},presetsOption:[],onChangeColorPresets:function(e){throw new Error("Function not implemented.")}}),Eg=e.createContext(Ng);var Bg=function(){return e.useContext(ug)},kg=function(){return e.useContext(Kh)},Lg=function(){return e.useContext(dg)},Ig=function(){return e.useContext(pg)},Sg=function(){return e.useContext(Jh)},Hg=function(){return e.useContext(fg)},Rg=function(){return e.useContext(mg)},Wg=function(){return e.useContext(hg)},Fg=function(){return e.useContext(Eg)};function Vg(){var e=w.useTranslation(),t=e.i18n,n=e.t,r=Fg().onChangeDirectionByLang,o=localStorage.getItem("i18nextLng");return{onChangeLang:function(e){localStorage.setItem("i18nextLng",e),t.changeLanguage(e),r(e)},translate:function(e,t){return n(e,t)},currentLang:Dg.find((function(e){return e.value===o}))||Pg,allLangs:Dg}}var Qg={current:null},Xg={current:null};function Yg(t){var n=t.name,r=t.address,o=t.placeholder,i=t.setLocation,a=t.selectLocation,s=K(t,["name","address","placeholder","setLocation","selectLocation"]),l=c.useFormContext().control,u=e.useState(null),d=u[0],p=u[1],f=e.useState(""),m=f[0],h=f[1],g=e.useState([]),v=g[0],A=g[1],y=e.useRef(!1),b=Lg().googleApiKey,x=null!=b?b:null===process||void 0===process?void 0:process.env.REACT_APP_GOOGLE_MAP_KEY;"undefined"==typeof window||y.current||(document.querySelector("#google-maps")||function(e,t,n){if(t){var r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",n),r.src=e,t.appendChild(r)}}("https://maps.googleapis.com/maps/api/js?key=".concat(x,"&libraries=places"),document.querySelector("head"),"google-maps"),y.current=!0);var w=S.useMemo((function(){return Eh((function(e,t){Qg.current.getPlacePredictions(e,t)}),200)}),[]);S.useEffect((function(){var e=!0;if(!Qg.current&&window.google&&window.google.maps&&window.google.maps.places&&(Qg.current=new window.google.maps.places.AutocompleteService),Qg.current){if(!Xg.current&&window.google&&window.google.maps&&window.google.maps.places&&(Xg.current=new window.google.maps.places.PlacesService(new window.google.maps.Map(document.getElementById("google-maps")))),""!==m)return w({input:m},(function(t){if(e){var n=[];d&&(n=[d]),t&&(n=$($([],n,!0),t,!0)),A(n)}})),function(){e=!1};A(d?[d]:[])}}),[d,m,w]);return U.jsx(c.Controller,{name:"".concat(n,".description"),control:l,render:function(t){var l=t.field,c=t.fieldState.error;return U.jsx(jm,{id:"".concat(n,".description"),sx:{"& .MuiAutocomplete-endAdornment":{display:"none"}},getOptionLabel:function(e){return"string"==typeof e?e:e.description},filterOptions:function(e){return e},options:v,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:null!=r?r:l.value,onChange:function(e,t){A(t?$([t],v,!0):v),p(t),l.onChange(null==t?void 0:t.description),function(e){Xg.current&&e&&e.place_id&&Xg.current.getDetails({placeId:null==e?void 0:e.place_id},(function(t,r){if(r===window.google.maps.places.PlacesServiceStatus.OK){var o=function(e){var n;return null===(n=t.address_components.find((function(t){return t.types.includes(e)})))||void 0===n?void 0:n.long_name},s=o("neighborhood")||o("sublocality"),l=o("locality"),c={placeId:null==e?void 0:e.place_id,description:null==e?void 0:e.description,location:{type:"Point",coordinates:[t.geometry.location.lng(),t.geometry.location.lat()]},city:l,neighborhood:s};i&&i(c),a&&a(n,c)}}))}(t)},onInputChange:function(e,t){h(t)},renderInput:function(e){var t,n,r,i;return U.jsx(Qf,q({},e,s,{placeholder:o,fullWidth:!0,error:!!c,helperText:null!==(i=null!==(t=null==c?void 0:c.message)&&void 0!==t?t:null===(r=null===(n=Object(c))||void 0===n?void 0:n.id)||void 0===r?void 0:r.message)&&void 0!==i?i:""}))},renderOption:function(t,n){var r=n.structured_formatting.main_text_matched_substrings,o=[];return r&&(o=Gm(n.structured_formatting.main_text,r.map((function(e){return[e.offset,e.offset+e.length]})))),e.createElement("li",q({},t,{key:n.description}),U.jsxs(Lm,{container:!0,alignItems:"center",children:[U.jsx(Lm,{item:!0,children:U.jsx(zo,{sx:{color:"text.secondary",mr:2}})}),U.jsxs(Lm,{item:!0,xs:!0,children:[o.map((function(e,t){return U.jsx("span",{style:{fontWeight:e.highlight?700:400},children:e.text},t)})),U.jsx(Xm,{variant:"body2",color:"text.secondary",children:n.structured_formatting.secondary_text})]})]}))}})}})}var Gg=sc();var Zg=[{title:"The Shawshank Redemption",year:1994},{title:"The Godfather",year:1972},{title:"The Godfather: Part II",year:1974},{title:"The Dark Knight",year:2008},{title:"12 Angry Men",year:1957},{title:"Schindler's List",year:1993},{title:"Pulp Fiction",year:1994},{title:"The Lord of the Rings: The Return of the King",year:2003},{title:"The Good, the Bad and the Ugly",year:1966},{title:"Fight Club",year:1999},{title:"The Lord of the Rings: The Fellowship of the Ring",year:2001},{title:"Star Wars: Episode V - The Empire Strikes Back",year:1980},{title:"Forrest Gump",year:1994},{title:"Inception",year:2010},{title:"The Lord of the Rings: The Two Towers",year:2002},{title:"One Flew Over the Cuckoo's Nest",year:1975},{title:"Goodfellas",year:1990},{title:"The Matrix",year:1999},{title:"Seven Samurai",year:1954},{title:"Star Wars: Episode IV - A New Hope",year:1977},{title:"City of God",year:2002},{title:"Se7en",year:1995},{title:"The Silence of the Lambs",year:1991},{title:"It's a Wonderful Life",year:1946},{title:"Life Is Beautiful",year:1997},{title:"The Usual Suspects",year:1995},{title:"Léon: The Professional",year:1994},{title:"Spirited Away",year:2001},{title:"Saving Private Ryan",year:1998},{title:"Once Upon a Time in the West",year:1968},{title:"American History X",year:1998},{title:"Interstellar",year:2014},{title:"Casablanca",year:1942},{title:"City Lights",year:1931},{title:"Psycho",year:1960},{title:"The Green Mile",year:1999},{title:"The Intouchables",year:2011},{title:"Modern Times",year:1936},{title:"Raiders of the Lost Ark",year:1981},{title:"Rear Window",year:1954},{title:"The Pianist",year:2002},{title:"The Departed",year:2006},{title:"Terminator 2: Judgment Day",year:1991},{title:"Back to the Future",year:1985},{title:"Whiplash",year:2014},{title:"Gladiator",year:2e3},{title:"Memento",year:2e3},{title:"The Prestige",year:2006},{title:"The Lion King",year:1994},{title:"Apocalypse Now",year:1979},{title:"Alien",year:1979},{title:"Sunset Boulevard",year:1950},{title:"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb",year:1964},{title:"The Great Dictator",year:1940},{title:"Cinema Paradiso",year:1988},{title:"The Lives of Others",year:2006},{title:"Grave of the Fireflies",year:1988},{title:"Paths of Glory",year:1957},{title:"Django Unchained",year:2012},{title:"The Shining",year:1980},{title:"WALL·E",year:2008},{title:"American Beauty",year:1999},{title:"The Dark Knight Rises",year:2012},{title:"Princess Mononoke",year:1997},{title:"Aliens",year:1986},{title:"Oldboy",year:2003},{title:"Once Upon a Time in America",year:1984},{title:"Witness for the Prosecution",year:1957},{title:"Das Boot",year:1981},{title:"Citizen Kane",year:1941},{title:"North by Northwest",year:1959},{title:"Vertigo",year:1958},{title:"Star Wars: Episode VI - Return of the Jedi",year:1983},{title:"Reservoir Dogs",year:1992},{title:"Braveheart",year:1995},{title:"M",year:1931},{title:"Requiem for a Dream",year:2e3},{title:"Amélie",year:2001},{title:"A Clockwork Orange",year:1971},{title:"Like Stars on Earth",year:2007},{title:"Taxi Driver",year:1976},{title:"Lawrence of Arabia",year:1962},{title:"Double Indemnity",year:1944},{title:"Eternal Sunshine of the Spotless Mind",year:2004},{title:"Amadeus",year:1984},{title:"To Kill a Mockingbird",year:1962},{title:"Toy Story 3",year:2010},{title:"Logan",year:2017},{title:"Full Metal Jacket",year:1987},{title:"Dangal",year:2016},{title:"The Sting",year:1973},{title:"2001: A Space Odyssey",year:1968},{title:"Singin' in the Rain",year:1952},{title:"Toy Story",year:1995},{title:"Bicycle Thieves",year:1948},{title:"The Kid",year:1921},{title:"Inglourious Basterds",year:2009},{title:"Snatch",year:2e3},{title:"3 Idiots",year:2009},{title:"Monty Python and the Holy Grail",year:1975}];function Ug(e){var t=e.name,r=e.options,o=K(e,["name","options"]),i=c.useFormContext().control;return U.jsx(c.Controller,{name:t,control:i,render:function(e){var t=e.field,i=e.fieldState.error;return U.jsxs("div",{children:[U.jsx(n.RadioGroup,q({},t,{row:!0},o,{children:r.map((function(e){return U.jsx(n.FormControlLabel,{value:e.value,control:U.jsx(n.Radio,{}),label:e.label},e.value)}))})),!!i&&U.jsx(n.FormHelperText,{error:!0,sx:{px:2},children:i.message})]})}})}var qg={},Kg=xa;Object.defineProperty(qg,"__esModule",{value:!0});var Jg=qg.default=void 0,_g=Kg(Ca()),$g=U,ev=(0,_g.default)((0,$g.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"}),"Circle");Jg=qg.default=ev;var tv={},nv=xa;Object.defineProperty(tv,"__esModule",{value:!0});var rv,ov,iv,av=tv.default=void 0,sv=nv(Ca()),lv=U,cv=(0,sv.default)((0,lv.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");function uv(e,t,n,r,o){var i;switch(n[t]=void 0,e.type){case exports.FieldTypes.STRING:case exports.FieldTypes.PHONENUMBER:case exports.FieldTypes.LOCALIZEDString:case exports.FieldTypes.OBJECTID:n[t]=r&&r.get(t)?r.get(t):"",i=H.string().nullable();break;case exports.FieldTypes.BOOLEAN:n[t]=!r||!1!==r.get(t)&&!0!==r.get(t)?void 0:r.get(t),i=H.boolean().nullable();break;case exports.FieldTypes.REFERENCE:n[t]=r&&r.get(t+"-name")?{_id:r.get(t+"-id"),title:r.get(t+"-name")}:void 0,i=H.object().nullable();break;case exports.FieldTypes.DATE:case exports.FieldTypes.NUMBER:n[t]={from:"",to:""},n[t].from=r.get(t+"-from")?r.get(t+"-from"):"",n[t].to=r.get(t+"-to")?r.get(t+"-to"):"",i=H.object().nullable();break;case exports.FieldTypes.ENUM:n[t]=r&&r.get(t)?r.get(t):void 0,i=H.string().nullable()}return i}av=tv.default=cv,exports.ActionNames=void 0,(rv=exports.ActionNames||(exports.ActionNames={})).SHOW="SHOW",rv.LIST="LIST",rv.NEW="NEW",rv.EDIT="EDIT",exports.ActionTypes=void 0,(ov=exports.ActionTypes||(exports.ActionTypes={})).RECORD="RECORD",ov.Resource="RESOUCRE",exports.FieldTypes=void 0,function(e){e.STRING="String",e.NUMBER="Number",e.ENUM="enum",e.REFERENCE="ref",e.DATE="Date",e.PASSWORD="password",e.BOOLEAN="Boolean",e.OBJECTID="ObjectID",e.NESTEDSCHEMA="nestedSchema",e.ARRAY="Array",e.IMAGE="image",e.LOCALIZEDString="localizedString",e.PHONENUMBER="phoneNumber",e.COLOR="color",e.TIMEPICKER="timePicker",e.FILE="File",e.LOCATION="LOCATION",e.RICH_TEXT_I="RICH_TEXT_I",e.RICH_TEXT_II="RICH_TEXT_II",e.JSON_RICH_TEXT="JSON_RICH_TEXT",e.EXTERNAL_LINK="EXTERNAL_LINK",e.MULTIPLE_TEXT="MULTIPLE_TEXT"}(exports.FieldTypes||(exports.FieldTypes={})),exports.HandlerStrategy=void 0,(iv=exports.HandlerStrategy||(exports.HandlerStrategy={})).NORMAL="NORMAL",iv.FILE_DOWNLOAD="FILE_DOWNLOAD",iv.CUSTOM_COMPONENT="CUSTOM_COMPONENT";var dv=xo("div")((function(){return{flexGrow:1,height:"100%",overflow:"hidden"}})),pv=xo(j)((function(e){return{maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:Cr(e.theme.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}}})),fv=e.forwardRef((function(e,t){var n=e.children,r=e.sx,o=K(e,["children","sx"]),i="undefined"==typeof navigator?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i)?U.jsx(zo,q({ref:t,sx:q({overflow:"auto"},r)},o,{children:n})):U.jsx(dv,{children:U.jsx(pv,q({scrollableNodeProps:{ref:t},clickOnTrack:!1,sx:r},o,{children:n}))})})),mv=e.memo(fv),hv=function(){function e(){}return e.isEnglish=function(){switch(localStorage.getItem("i18nextLng")){case jg.ENGLISH:return!0;case jg.ARABIC:return!1;default:return!0}},e.getLocale=function(){return this.isEnglish()?jg.ENGLISH:jg.ARABIC},e.getLocalizedString=function(e){for(var t=this.getLocale(),n=e[0].value,r=0;r<e.length;r++){var o=e[r];if(o.key===t)return o.value?o.value:n}return n},e}(),gv=function(){function e(){}return e.get=function(e,t){if(!e||!e.properties)return"-";var n=e.properties.title,r=e.properties.model[n].type;return t[n]?r===exports.FieldTypes.LOCALIZEDString?hv.getLocalizedString(t[n]):t[n]:this.getReferenceValue(t)},e.getReferenceValue=function(e){return e.name?e.name:e.firstName?e.firstName:e.lastName?e.lastName:e.email?e.email:e.title?e.title:e.phoneNumber?e.phoneNumber:e.phone?e.phone:e.number?e.number:e.key?e.key:e._id?e._id:"-"},e}();function vv(e,t,n,r,o){return r?0===o?e.set(t,n):e.append(t,n):e.has(t)?e.set(t,n):e.append(t,n),e}function Av(e,t,n,r,o,i,a,s){Object.keys(e).map((function(t){if(e[t]&&n[t].type===exports.FieldTypes.DATE){if(e[t].from&&""!==e[t].from)try{e[t].from=e[t].from.toISOString().split("T")[0]}catch(e){}if(e[t].to&&""!==e[t].to)try{e[t].to=e[t].to.toISOString().split("T")[0]}catch(e){}}}));var l="";return Object.keys(e).map((function(t){var o,c,u;if((!i||!a||"all"===a||i!==t)&&e[t]&&""!==e[t]&&n[t].type)if(n[t].type===exports.FieldTypes.NUMBER||n[t].type===exports.FieldTypes.DATE)!e[t].from&&!e[t].to||""===e[t].from&&""===e[t].to?e[t]=void 0:(e[t].from&&""!==e[t].from&&(r=vv(r,t+"-from",e[t].from)),e[t].to&&""!==e[t].to&&(r=vv(r,t+"-to",e[t].to)),l=l+t+":from="+e[t].from+",to="+e[t].to+";;"+n[t].type+"^^");else if(n[t].type===exports.FieldTypes.REFERENCE){if(n[t].multipleInFilter)e[t].forEach((function(e,o){var i,a,l,c=s?s[null===(i=n[t])||void 0===i?void 0:i.path]:void 0,u=c?gv.get(c,e):null!==(l=null!==(a=e.title)&&void 0!==a?a:e.name)&&void 0!==l?l:e._id;r=vv(r,t+"-name",u,!0,o),r=vv(r,t+"-id",e._id,!0,o)})),e[t].length>0&&(l=l+t+"="+e[t].map((function(e){return e._id}))+";;"+n[t].type+"^^");else if(e[t]._id){var d=s?s[null===(o=n[t])||void 0===o?void 0:o.path]:void 0,p=d?gv.get(d,e[t]):null!==(u=null!==(c=e[t].title)&&void 0!==c?c:e[t].name)&&void 0!==u?u:e[t]._id;r=vv(r,t+"-name",p),r=vv(r,t+"-id",e[t]._id),l=l+t+"="+e[t]._id+";;"+n[t].type+"^^"}}else r=vv(r,t,e[t]),l=l+t+"="+e[t]+";;"+n[t].type+"^^"})),t(),o(r),l}var yv={exports:{}};
|
|
122
|
+
*/"production"===process.env.NODE_ENV?wp.exports=function(){if(bp)return jp;bp=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),jp.ContextConsumer=s,jp.ContextProvider=a,jp.Element=t,jp.ForwardRef=c,jp.Fragment=r,jp.Lazy=f,jp.Memo=p,jp.Portal=n,jp.Profiler=i,jp.StrictMode=o,jp.Suspense=u,jp.SuspenseList=d,jp.isAsyncMode=function(){return!1},jp.isConcurrentMode=function(){return!1},jp.isContextConsumer=function(e){return h(e)===s},jp.isContextProvider=function(e){return h(e)===a},jp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jp.isForwardRef=function(e){return h(e)===c},jp.isFragment=function(e){return h(e)===r},jp.isLazy=function(e){return h(e)===f},jp.isMemo=function(e){return h(e)===p},jp.isPortal=function(e){return h(e)===n},jp.isProfiler=function(e){return h(e)===i},jp.isStrictMode=function(e){return h(e)===o},jp.isSuspense=function(e){return h(e)===u},jp.isSuspenseList=function(e){return h(e)===d},jp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},jp.typeOf=h,jp}():wp.exports=(Cp||(Cp=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case i:case o:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case l:case s:case c:case f:case p:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=s,v=a,A=t,y=c,b=r,x=f,w=p,j=n,C=i,M=o,O=u,z=d,T=!1,D=!1;Mp.ContextConsumer=g,Mp.ContextProvider=v,Mp.Element=A,Mp.ForwardRef=y,Mp.Fragment=b,Mp.Lazy=x,Mp.Memo=w,Mp.Portal=j,Mp.Profiler=C,Mp.StrictMode=M,Mp.Suspense=O,Mp.SuspenseList=z,Mp.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Mp.isConcurrentMode=function(e){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Mp.isContextConsumer=function(e){return h(e)===s},Mp.isContextProvider=function(e){return h(e)===a},Mp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mp.isForwardRef=function(e){return h(e)===c},Mp.isFragment=function(e){return h(e)===r},Mp.isLazy=function(e){return h(e)===f},Mp.isMemo=function(e){return h(e)===p},Mp.isPortal=function(e){return h(e)===n},Mp.isProfiler=function(e){return h(e)===i},Mp.isStrictMode=function(e){return h(e)===o},Mp.isSuspense=function(e){return h(e)===u},Mp.isSuspenseList=function(e){return h(e)===d},Mp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Mp.typeOf=h}()),Mp);var Op=wp.exports;const zp=S.createContext({});"production"!==process.env.NODE_ENV&&(zp.displayName="ListContext");var Tp=zp;function Dp(e){return Rt("MuiList",e)}Wt("MuiList",["root","padding","dense","subheader"]);const Pp=["children","className","component","dense","disablePadding","subheader"],Np=xo("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]}})((({ownerState:e})=>ae({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ep=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Yt(n,Pp),u=S.useMemo((()=>({dense:a})),[a]),d=ae({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Lt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dp,t)})(d);return U.jsx(Tp.Provider,{value:u,children:U.jsxs(Np,ae({as:i,className:or(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));"production"!==process.env.NODE_ENV&&(Ep.propTypes={children:Le.node,classes:Le.object,className:Le.string,component:Le.elementType,dense:Le.bool,disablePadding:Le.bool,subheader:Le.node,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object])});var Bp=Ep;const kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ip(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Sp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hp(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Sp(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Rp=S.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Yt(e,kp),p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st((()=>{r&&p.current.focus()}),[r]),S.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ct(rt(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=mt(p,t);let h=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?("production"!==process.env.NODE_ENV&&Op.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return U.jsx(Bp,ae({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=rt(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hp(t,r,l,s,Lp);else if("ArrowUp"===n)e.preventDefault(),Hp(t,r,l,s,Ip);else if("Home"===n)e.preventDefault(),Hp(t,null,l,s,Lp);else if("End"===n)e.preventDefault(),Hp(t,null,l,s,Ip);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Sp(r,o);o.previousKeyMatched&&(l||Hp(t,r,!1,s,Lp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));"production"!==process.env.NODE_ENV&&(Rp.propTypes={autoFocus:Le.bool,autoFocusItem:Le.bool,children:Le.node,className:Le.string,disabledItemsFocusable:Le.bool,disableListWrap:Le.bool,onKeyDown:Le.func,variant:Le.oneOf(["menu","selectedMenu"])});var Wp=Rp;function Fp(e){return Rt("MuiPopover",e)}Wt("MuiPopover",["root","paper"]);const Vp=["onEntering"],Qp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],Xp=["slotProps"];function Yp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Gp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Up(e){return"function"==typeof e?e():e}const qp=xo(Li,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kp=xo($i,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Jp=S.forwardRef((function(e,t){var n,r,o;const i=Ao({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:A,slotProps:y,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:x=vc,transitionDuration:w="auto",TransitionProps:{onEntering:j}={}}=i,C=Yt(i.TransitionProps,Vp),M=Yt(i,Qp),O=null!=(n=null==y?void 0:y.paper)?n:v,z=S.useRef(),T=mt(z,O.ref),D=ae({},i,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:x,transitionDuration:w,TransitionProps:C}),P=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"]},Fp,t)})(D),N=S.useCallback((()=>{if("anchorPosition"===u)return"production"!==process.env.NODE_ENV&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const e=Up(s),t=e&&1===e.nodeType?e:rt(z.current).body,n=t.getBoundingClientRect();if("production"!==process.env.NODE_ENV){const e=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&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("\n"))}return{top:n.top+Yp(n,l.vertical),left:n.left+Gp(n,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),E=S.useCallback((e=>({vertical:Yp(e,b.vertical),horizontal:Gp(e,b.horizontal)})),[b.horizontal,b.vertical]),B=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===u)return{top:null,left:null,transformOrigin:Zp(n)};const r=N();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=ot(Up(s)),d=c.innerHeight-h,p=c.innerWidth-h;if(o<h){const e=o-h;o-=e,n.vertical+=e}else if(a>d){const e=a-d;o-=e,n.vertical+=e}if("production"!==process.env.NODE_ENV&&t.height>d&&t.height&&d&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${t.height-d}px).`,"Please consider adding a `max-height` to improve the user-experience."].join("\n")),i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Zp(n)}}),[s,u,N,E,h]),[k,L]=S.useState(g),I=S.useCallback((()=>{const e=z.current;if(!e)return;const t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,L(!0)}),[B]);S.useEffect((()=>{g&&I()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{I()}}:null),[g,I]),S.useEffect((()=>{if(!g)return;const e=tt((()=>{I()})),t=ot(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,I]);let H=w;"auto"!==w||x.muiSupportAuto||(H=void 0);const R=f||(s?rt(Up(s)).body:void 0),W=null!=(r=null==A?void 0:A.root)?r:qp,F=null!=(o=null==A?void 0:A.paper)?o:Kp,V=Ro({elementType:F,externalSlotProps:ae({},O,{style:k?O.style:ae({},O.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:D,className:or(P.paper,null==O?void 0:O.className)}),Q=Ro({elementType:W,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:R,open:g},ownerState:D,className:or(P.root,p)}),{slotProps:X}=Q,Y=Yt(Q,Xp);return U.jsx(W,ae({},Y,!Po(W)&&{slotProps:X},{children:U.jsx(x,ae({appear:!0,in:g,onEntering:(e,t)=>{j&&j(e,t),I()},onExited:()=>{L(!1)},timeout:H},C,{children:U.jsx(F,ae({},V,{children:d}))}))}))}));"production"!==process.env.NODE_ENV&&(Jp.propTypes={action:_e,anchorEl:ie(Le.oneOfType([Je,Le.func]),(e=>{if(e.open&&(!e.anchorReference||"anchorEl"===e.anchorReference)){const t=Up(e.anchorEl);if(!t||1!==t.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join("\n"));{const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)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("\n"))}}return null})),anchorOrigin:Le.shape({horizontal:Le.oneOfType([Le.oneOf(["center","left","right"]),Le.number]).isRequired,vertical:Le.oneOfType([Le.oneOf(["bottom","center","top"]),Le.number]).isRequired}),anchorPosition:Le.shape({left:Le.number.isRequired,top:Le.number.isRequired}),anchorReference:Le.oneOf(["anchorEl","anchorPosition","none"]),children:Le.node,classes:Le.object,className:Le.string,container:Le.oneOfType([Je,Le.func]),elevation:Bt,marginThreshold:Le.number,onClose:Le.func,open:Le.bool.isRequired,PaperProps:Le.shape({component:Re}),slotProps:Le.shape({paper:Le.oneOfType([Le.func,Le.object]),root:Le.oneOfType([Le.func,Le.object])}),slots:Le.shape({paper:Le.elementType,root:Le.elementType}),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),transformOrigin:Le.shape({horizontal:Le.oneOfType([Le.oneOf(["center","left","right"]),Le.number]).isRequired,vertical:Le.oneOfType([Le.oneOf(["bottom","center","top"]),Le.number]).isRequired}),TransitionComponent:Le.elementType,transitionDuration:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.shape({appear:Le.number,enter:Le.number,exit:Le.number})]),TransitionProps:Le.object});var _p=Jp;function $p(e){return Rt("MuiMenu",e)}Wt("MuiMenu",["root","paper","list"]);const ef=["onEntering"],tf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nf={vertical:"top",horizontal:"right"},rf={vertical:"top",horizontal:"left"},of=xo(_p,{shouldForwardProp:e=>yo(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),af=xo(Kp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sf=xo(Wp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lf=S.forwardRef((function(e,t){var n,r;const o=Ao({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:A={}}=o,y=Yt(o.TransitionProps,ef),b=Yt(o,tf),x=vo(),w="rtl"===x.direction,j=ae({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"],list:["list"]},$p,t)})(j),M=i&&!l&&d,O=S.useRef(null);let z=-1;S.Children.map(a,((e,t)=>{S.isValidElement(e)&&("production"!==process.env.NODE_ENV&&Op.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===z)&&(z=t))}));const T=null!=(n=v.paper)?n:af,D=null!=(r=A.paper)?r:p,P=Ro({elementType:v.root,externalSlotProps:A.root,ownerState:j,className:[C.root,s]}),N=Ro({elementType:T,externalSlotProps:D,ownerState:j,className:C.paper});return U.jsx(of,ae({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?nf:rf,slots:{paper:T,root:v.root},slotProps:{root:P,paper:N},open:d,ref:t,transitionDuration:m,TransitionProps:ae({onEntering:(e,t)=>{O.current&&O.current.adjustStyleForScrollbar(e,x),h&&h(e,t)}},y),ownerState:j},b,{classes:f,children:U.jsx(sf,ae({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:O,autoFocus:i&&(-1===z||l),autoFocusItem:M,variant:g},c,{className:or(C.list,c.className),children:a}))}))}));"production"!==process.env.NODE_ENV&&(lf.propTypes={anchorEl:Le.oneOfType([Je,Le.func]),autoFocus:Le.bool,children:Le.node,classes:Le.object,className:Le.string,disableAutoFocusItem:Le.bool,MenuListProps:Le.object,onClose:Le.func,open:Le.bool.isRequired,PaperProps:Le.object,PopoverClasses:Le.object,slotProps:Le.shape({paper:Le.oneOfType([Le.func,Le.object]),root:Le.oneOfType([Le.func,Le.object])}),slots:Le.shape({paper:Le.elementType,root:Le.elementType}),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),transitionDuration:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.shape({appear:Le.number,enter:Le.number,exit:Le.number})]),TransitionProps:Le.object,variant:Le.oneOf(["menu","selectedMenu"])});var cf=lf;function uf(e){return Rt("MuiNativeSelect",e)}var df=Wt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const pf=["className","disabled","error","IconComponent","inputRef","variant"],ff=({ownerState:e,theme:t})=>ae({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ae({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${df.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),mf=xo("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${df.multiple}`]:t.multiple}]}})(ff),hf=({ownerState:e,theme:t})=>ae({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${df.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),gf=xo("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$e(n.variant)}`],n.open&&t.iconOpen]}})(hf),vf=S.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Yt(e,pf),c=ae({},e,{disabled:r,variant:s,error:o}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Lt({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${$e(n)}`,i&&"iconOpen",r&&"disabled"]},uf,t)})(c);return U.jsxs(S.Fragment,{children:[U.jsx(mf,ae({ownerState:c,className:or(u.select,n),disabled:r,ref:a||t},l)),e.multiple?null:U.jsx(gf,{as:i,ownerState:c,className:u.icon})]})}));"production"!==process.env.NODE_ENV&&(vf.propTypes={children:Le.node,classes:Le.object,className:Le.string,disabled:Le.bool,error:Le.bool,IconComponent:Le.elementType.isRequired,inputRef:_e,multiple:Le.bool,name:Le.string,onChange:Le.func,value:Le.any,variant:Le.oneOf(["standard","outlined","filled"])});var Af=vf;function yf(e){return Rt("MuiSelect",e)}var bf,xf=Wt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const wf=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],jf=xo("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${xf.select}`]:t.select},{[`&.${xf.select}`]:t[n.variant]},{[`&.${xf.error}`]:t.error},{[`&.${xf.multiple}`]:t.multiple}]}})(ff,{[`&.${xf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cf=xo("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$e(n.variant)}`],n.open&&t.iconOpen]}})(hf),Mf=xo("input",{shouldForwardProp:e=>bo(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Of(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function zf(e){return null==e||"string"==typeof e&&!e.trim()}const Tf=S.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:c,disabled:u,displayEmpty:d,error:p=!1,IconComponent:f,inputRef:m,labelId:h,MenuProps:g={},multiple:v,name:A,onBlur:y,onChange:b,onClose:x,onFocus:w,onOpen:j,open:C,readOnly:M,renderValue:O,SelectDisplayProps:z={},tabIndex:T,value:D,variant:P="standard"}=e,N=Yt(e,wf),[E,B]=pt({controlled:D,default:c,name:"Select"}),[k,L]=pt({controlled:C,default:l,name:"Select"}),I=S.useRef(null),H=S.useRef(null),[R,W]=S.useState(null),{current:F}=S.useRef(null!=C),[V,Q]=S.useState(),X=mt(t,m),Y=S.useCallback((e=>{H.current=e,e&&W(e)}),[]),G=null==R?void 0:R.parentNode;S.useImperativeHandle(X,(()=>({focus:()=>{H.current.focus()},node:I.current,value:E})),[E]),S.useEffect((()=>{l&&k&&R&&!F&&(Q(i?null:G.clientWidth),H.current.focus())}),[R,i]),S.useEffect((()=>{o&&H.current.focus()}),[o]),S.useEffect((()=>{if(!h)return;const e=rt(H.current).getElementById(h);if(e){const t=()=>{getSelection().isCollapsed&&H.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[h]);const Z=(e,t)=>{e?j&&j(t):x&&x(t),F||(Q(i?null:G.clientWidth),L(e))},q=S.Children.toArray(a),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(E)?E.slice():[];const t=E.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),E!==n&&(B(n),b)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:A}}),b(o,e)}v||Z(!1,t)}},J=null!==R&&k;let _,$;delete N["aria-invalid"];const ee=[];let te=!1,ne=!1;(fd({value:E})||d)&&(O?_=O(E):te=!0);const re=q.map((e=>{if(!S.isValidElement(e))return null;let t;if("production"!==process.env.NODE_ENV&&Op.isFragment(e)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),v){if(!Array.isArray(E))throw new Error("production"!==process.env.NODE_ENV?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Fe(2));t=E.some((t=>Of(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Of(E,e.props.value),t&&te&&($=e.props.children);return t&&(ne=!0),S.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));"production"!==process.env.NODE_ENV&&S.useEffect((()=>{if(!ne&&!v&&""!==E){const e=q.map((e=>e.props.value));console.warn([`MUI: You have provided an out-of-range value \`${E}\` for the select ${A?`(name="${A}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${e.filter((e=>null!=e)).map((e=>`\`${e}\``)).join(", ")||'""'}.`].join("\n"))}}),[ne,q,v,A,E]),te&&(_=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):$);let oe,ie=V;!i&&F&&R&&(ie=G.clientWidth),oe=void 0!==T?T:u?null:0;const se=z.id||(A?`mui-component-select-${A}`:void 0),le=ae({},e,{variant:P,value:E,open:J,error:p}),ce=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Lt({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${$e(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},yf,t)})(le);return U.jsxs(S.Fragment,{children:[U.jsx(jf,ae({ref:Y,tabIndex:oe,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[h,se].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))}},onMouseDown:u||M?null:e=>{0===e.button&&(e.preventDefault(),H.current.focus(),Z(!0,e))},onBlur:e=>{!J&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:E,name:A}}),y(e))},onFocus:w},z,{ownerState:le,className:or(z.className,ce.select,s),id:se,children:zf(_)?bf||(bf=U.jsx("span",{className:"notranslate",children:""})):_})),U.jsx(Mf,ae({"aria-invalid":p,value:Array.isArray(E)?E.join(","):E,name:A,ref:I,"aria-hidden":!0,onChange:e=>{const t=q.find((t=>t.props.value===e.target.value));void 0!==t&&(B(t.props.value),b&&b(e,t))},tabIndex:-1,disabled:u,className:ce.nativeInput,autoFocus:o,ownerState:le},N)),U.jsx(Cf,{as:f,className:ce.icon,ownerState:le}),U.jsx(cf,ae({id:`menu-${A||""}`,anchorEl:G,open:J,onClose:e=>{Z(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:ae({"aria-labelledby":h,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:ae({},g.PaperProps,{style:ae({minWidth:ie},null!=g.PaperProps?g.PaperProps.style:null)}),children:re}))]})}));"production"!==process.env.NODE_ENV&&(Tf.propTypes={"aria-describedby":Le.string,"aria-label":Le.string,autoFocus:Le.bool,autoWidth:Le.bool,children:Le.node,classes:Le.object,className:Le.string,defaultOpen:Le.bool,defaultValue:Le.any,disabled:Le.bool,displayEmpty:Le.bool,error:Le.bool,IconComponent:Le.elementType.isRequired,inputRef:_e,labelId:Le.string,MenuProps:Le.object,multiple:Le.bool,name:Le.string,onBlur:Le.func,onChange:Le.func,onClose:Le.func,onFocus:Le.func,onOpen:Le.func,open:Le.bool,readOnly:Le.bool,renderValue:Le.func,SelectDisplayProps:Le.object,tabIndex:Le.oneOfType([Le.number,Le.string]),type:Le.any,value:Le.any,variant:Le.oneOf(["standard","outlined","filled"])});var Df=Tf,Pf=Fi(U.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Nf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ef={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yo(e)&&"variant"!==e,slot:"Root"},Bf=xo(Pd,Ef)(""),kf=xo(Kd,Ef)(""),Lf=xo(Hd,Ef)(""),If=S.forwardRef((function(e,t){const n=Ao({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=Pf,id:u,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:A,onOpen:y,open:b,renderValue:x,SelectDisplayProps:w,variant:j="outlined"}=n,C=Yt(n,Nf),M=v?Af:Df,O=sd({props:n,muiFormControl:ud(),states:["variant","error"]}),z=O.variant||j,T=ae({},n,{variant:z,classes:i}),D=(e=>{const{classes:t}=e;return t})(T),P=d||{standard:U.jsx(Bf,{ownerState:T}),outlined:U.jsx(kf,{label:f,ownerState:T}),filled:U.jsx(Lf,{ownerState:T})}[z],N=mt(t,P.ref);return U.jsx(S.Fragment,{children:S.cloneElement(P,ae({inputComponent:M,inputProps:ae({children:o,error:O.error,IconComponent:c,variant:z,type:void 0,multiple:g},v?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:A,onOpen:y,open:b,renderValue:x,SelectDisplayProps:ae({id:u},w)},p,{classes:p?ce(D,p.classes):D},d?d.props.inputProps:{})},g&&v&&"outlined"===z?{notched:!0}:{},{ref:N,className:or(P.props.className,a)},!d&&{variant:z},C))})}));"production"!==process.env.NODE_ENV&&(If.propTypes={autoWidth:Le.bool,children:Le.node,classes:Le.object,className:Le.string,defaultOpen:Le.bool,defaultValue:Le.any,displayEmpty:Le.bool,IconComponent:Le.elementType,id:Le.string,input:Le.element,inputProps:Le.object,label:Le.node,labelId:Le.string,MenuProps:Le.object,multiple:Le.bool,native:Le.bool,onChange:Le.func,onClose:Le.func,onOpen:Le.func,open:Le.bool,renderValue:Le.func,SelectDisplayProps:Le.object,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),value:Le.oneOfType([Le.oneOf([""]),Le.any]),variant:Le.oneOf(["filled","outlined","standard"])}),If.muiName="Select";var Sf=If;function Hf(e){return Rt("MuiTextField",e)}Wt("MuiTextField",["root"]);const Rf=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Wf={standard:Pd,filled:Hd,outlined:Kd},Ff=xo(fp,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vf=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:g,InputProps:v,inputRef:A,label:y,maxRows:b,minRows:x,multiline:w=!1,name:j,onBlur:C,onChange:M,onClick:O,onFocus:z,placeholder:T,required:D=!1,rows:P,select:N=!1,SelectProps:E,type:B,value:k,variant:L="outlined"}=n,I=Yt(n,Rf),S=ae({},n,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:w,required:D,select:N,variant:L}),H=(e=>{const{classes:t}=e;return Lt({root:["root"]},Hf,t)})(S);"production"!==process.env.NODE_ENV&&N&&!i&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const R={};"outlined"===L&&(h&&void 0!==h.shrink&&(R.notched=h.shrink),R.label=y),N&&(E&&E.native||(R.id=void 0),R["aria-describedby"]=void 0);const W=e=>{!c&&O&&(e.stopPropagation(),O(e))},F=ut(m),V=f&&F?`${F}-helper-text`:void 0,Q=y&&F?`${F}-label`:void 0,X=Wf[L],Y=U.jsx(X,ae({"aria-describedby":V,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:w,name:j,rows:P,maxRows:b,minRows:x,type:B,value:k,id:F,inputRef:A,onBlur:C,onChange:M,onFocus:z,onClick:W,placeholder:T,inputProps:g},R,v));return U.jsxs(Ff,ae({className:or(H.root,a),disabled:c,error:u,fullWidth:p,ref:t,required:D,color:s,variant:L,ownerState:S,onClick:W},I,{children:[null!=y&&""!==y&&U.jsx(lp,ae({htmlFor:F,id:Q},h,{children:y})),N?U.jsx(Sf,ae({"aria-describedby":V,id:F,labelId:Q,value:k,input:Y},E,{children:i})):Y,f&&U.jsx(xp,ae({id:V},d,{children:f}))]}))}));"production"!==process.env.NODE_ENV&&(Vf.propTypes={autoComplete:Le.string,autoFocus:Le.bool,children:Le.node,classes:Le.object,className:Le.string,color:Le.oneOfType([Le.oneOf(["primary","secondary","error","info","success","warning"]),Le.string]),defaultValue:Le.any,disabled:Le.bool,error:Le.bool,FormHelperTextProps:Le.object,fullWidth:Le.bool,helperText:Le.node,id:Le.string,InputLabelProps:Le.object,inputProps:Le.object,InputProps:Le.object,inputRef:_e,label:Le.node,margin:Le.oneOf(["dense","none","normal"]),maxRows:Le.oneOfType([Le.number,Le.string]),minRows:Le.oneOfType([Le.number,Le.string]),multiline:Le.bool,name:Le.string,onBlur:Le.func,onChange:Le.func,onClick:Le.func,onFocus:Le.func,placeholder:Le.string,required:Le.bool,rows:Le.oneOfType([Le.number,Le.string]),select:Le.bool,SelectProps:Le.object,size:Le.oneOfType([Le.oneOf(["medium","small"]),Le.string]),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),type:Le.string,value:Le.any,variant:Le.oneOf(["filled","outlined","standard"])});var Qf=Vf;function Xf(e){return Rt("MuiListSubheader",e)}Wt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Yf=["className","color","component","disableGutters","disableSticky","inset"],Gf=xo("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${$e(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>ae({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),Zf=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1}=n,c=Yt(n,Yf),u=ae({},n,{color:o,component:i,disableGutters:a,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return Lt({root:["root","default"!==n&&`color${$e(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},Xf,t)})(u);return U.jsx(Gf,ae({as:i,className:or(d.root,r),ref:t,ownerState:u},c))}));Zf.muiSkipListHighlight=!0,"production"!==process.env.NODE_ENV&&(Zf.propTypes={children:Le.node,classes:Le.object,className:Le.string,color:Le.oneOf(["default","inherit","primary"]),component:Le.elementType,disableGutters:Le.bool,disableSticky:Le.bool,inset:Le.bool,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object])});var Uf=Zf,qf=Fi(U.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 Kf(e){return Rt("MuiChip",e)}var Jf=Wt("MuiChip",["root","sizeSmall","sizeMedium","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"]);const _f=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],$f=xo("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Jf.avatar}`]:t.avatar},{[`& .${Jf.avatar}`]:t[`avatar${$e(s)}`]},{[`& .${Jf.avatar}`]:t[`avatarColor${$e(r)}`]},{[`& .${Jf.icon}`]:t.icon},{[`& .${Jf.icon}`]:t[`icon${$e(s)}`]},{[`& .${Jf.icon}`]:t[`iconColor${$e(o)}`]},{[`& .${Jf.deleteIcon}`]:t.deleteIcon},{[`& .${Jf.deleteIcon}`]:t[`deleteIcon${$e(s)}`]},{[`& .${Jf.deleteIcon}`]:t[`deleteIconColor${$e(r)}`]},{[`& .${Jf.deleteIcon}`]:t[`deleteIcon${$e(l)}Color${$e(r)}`]},t.root,t[`size${$e(s)}`],t[`color${$e(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${$e(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${$e(r)}`],t[l],t[`${l}${$e(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return ae({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Jf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jf.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jf.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jf.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jf.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jf.icon}`]:ae({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&ae({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${Jf.deleteIcon}`]:ae({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Cr(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Cr(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Cr(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Jf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>ae({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>ae({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Jf.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jf.avatar}`]:{marginLeft:4},[`& .${Jf.avatarSmall}`]:{marginLeft:2},[`& .${Jf.icon}`]:{marginLeft:4},[`& .${Jf.iconSmall}`]:{marginLeft:2},[`& .${Jf.deleteIcon}`]:{marginRight:5},[`& .${Jf.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Cr(e.palette[t.color].main,.7)}`,[`&.${Jf.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cr(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Cr(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jf.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Cr(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),em=xo("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${$e(r)}`]]}})((({ownerState:e})=>ae({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function tm(e){return"Backspace"===e.key||"Delete"===e.key}const nm=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:a="default",component:s,deleteIcon:l,disabled:c=!1,icon:u,label:d,onClick:p,onDelete:f,onKeyDown:m,onKeyUp:h,size:g="medium",variant:v="filled",tabIndex:A,skipFocusWhenDisabled:y=!1}=n,b=Yt(n,_f),x=S.useRef(null),w=mt(x,t),j=e=>{e.stopPropagation(),f&&f(e)},C=!(!1===i||!p)||i,M=C||f?eu:s||"div",O=ae({},n,{component:M,disabled:c,size:g,color:a,iconColor:S.isValidElement(u)&&u.props.color||a,onDelete:!!f,clickable:C,variant:v}),z=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e;return Lt({root:["root",l,n&&"disabled",`size${$e(r)}`,`color${$e(o)}`,s&&"clickable",s&&`clickableColor${$e(o)}`,a&&"deletable",a&&`deletableColor${$e(o)}`,`${l}${$e(o)}`],label:["label",`label${$e(r)}`],avatar:["avatar",`avatar${$e(r)}`,`avatarColor${$e(o)}`],icon:["icon",`icon${$e(r)}`,`iconColor${$e(i)}`],deleteIcon:["deleteIcon",`deleteIcon${$e(r)}`,`deleteIconColor${$e(o)}`,`deleteIcon${$e(l)}Color${$e(o)}`]},Kf,t)})(O),T=M===eu?ae({component:s||"div",focusVisibleClassName:z.focusVisible},f&&{disableRipple:!0}):{};let D=null;f&&(D=l&&S.isValidElement(l)?S.cloneElement(l,{className:or(l.props.className,z.deleteIcon),onClick:j}):U.jsx(qf,{className:or(z.deleteIcon),onClick:j}));let P=null;r&&S.isValidElement(r)&&(P=S.cloneElement(r,{className:or(z.avatar,r.props.className)}));let N=null;return u&&S.isValidElement(u)&&(N=S.cloneElement(u,{className:or(z.icon,u.props.className)})),"production"!==process.env.NODE_ENV&&P&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),U.jsxs($f,ae({as:M,className:or(z.root,o),disabled:!(!C||!c)||void 0,onClick:p,onKeyDown:e=>{e.currentTarget===e.target&&tm(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&tm(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),h&&h(e)},ref:w,tabIndex:y&&c?-1:A,ownerState:O},T,b,{children:[P||N,U.jsx(em,{className:or(z.label),ownerState:O,children:d}),D]}))}));"production"!==process.env.NODE_ENV&&(nm.propTypes={avatar:Le.element,children:dt,classes:Le.object,className:Le.string,clickable:Le.bool,color:Le.oneOfType([Le.oneOf(["default","primary","secondary","error","info","success","warning"]),Le.string]),component:Le.elementType,deleteIcon:Le.element,disabled:Le.bool,icon:Le.element,label:Le.node,onClick:Le.func,onDelete:Le.func,onKeyDown:Le.func,onKeyUp:Le.func,size:Le.oneOfType([Le.oneOf(["medium","small"]),Le.string]),skipFocusWhenDisabled:Le.bool,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),tabIndex:Le.number,variant:Le.oneOfType([Le.oneOf(["filled","outlined"]),Le.string])});var rm=nm,om=Fi(U.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");function im(e){return Rt("MuiAutocomplete",e)}var am,sm,lm=Wt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);const cm=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],um=["ref"],dm=xo("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${lm.tag}`]:t.tag},{[`& .${lm.tag}`]:t[`tagSize${$e(s)}`]},{[`& .${lm.inputRoot}`]:t.inputRoot},{[`& .${lm.input}`]:t.input},{[`& .${lm.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((({ownerState:e})=>ae({[`&.${lm.focused} .${lm.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${lm.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${lm.tag}`]:ae({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${lm.inputRoot}`]:{flexWrap:"wrap",[`.${lm.hasPopupIcon}&, .${lm.hasClearIcon}&`]:{paddingRight:30},[`.${lm.hasPopupIcon}.${lm.hasClearIcon}&`]:{paddingRight:56},[`& .${lm.input}`]:{width:0,minWidth:30}},[`& .${Md.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Md.root}.${hd.sizeSmall}`]:{[`& .${Md.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Xd.root}`]:{padding:9,[`.${lm.hasPopupIcon}&, .${lm.hasClearIcon}&`]:{paddingRight:39},[`.${lm.hasPopupIcon}.${lm.hasClearIcon}&`]:{paddingRight:65},[`& .${lm.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${lm.endAdornment}`]:{right:9}},[`& .${Xd.root}.${hd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${lm.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ed.root}`]:{paddingTop:19,paddingLeft:8,[`.${lm.hasPopupIcon}&, .${lm.hasClearIcon}&`]:{paddingRight:39},[`.${lm.hasPopupIcon}.${lm.hasClearIcon}&`]:{paddingRight:65},[`& .${Ed.input}`]:{padding:"7px 4px"},[`& .${lm.endAdornment}`]:{right:9}},[`& .${Ed.root}.${hd.sizeSmall}`]:{paddingBottom:1,[`& .${Ed.input}`]:{padding:"2.5px 4px"}},[`& .${hd.hiddenLabel}`]:{paddingTop:8},[`& .${Ed.root}.${hd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${lm.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ed.root}.${hd.hiddenLabel}.${hd.sizeSmall}`]:{[`& .${lm.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${lm.input}`]:ae({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),pm=xo("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),fm=xo(au,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),mm=xo(au,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>ae({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>ae({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),hm=xo(xc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lm.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>ae({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),gm=xo($i,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>ae({},e.typography.body1,{overflow:"auto"}))),vm=xo("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Am=xo("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),ym=xo("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${lm.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${lm.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${lm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lm.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${lm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),bm=xo(Uf,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),xm=xo("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${lm.option}`]:{paddingLeft:24}}),wm=S.forwardRef((function(e,t){var n,r,o,i;const a=Ao({props:e,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:l=!1,autoSelect:c=!1,blurOnSelect:u=!1,ChipProps:d,className:p,clearIcon:f=am||(am=U.jsx(om,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:h=!1,clearText:g="Clear",closeText:v="Close",componentsProps:A={},defaultValue:y=(a.multiple?[]:null),disableClearable:b=!1,disableCloseOnSelect:x=!1,disabled:w=!1,disabledItemsFocusable:j=!1,disableListWrap:C=!1,disablePortal:M=!1,filterSelectedOptions:O=!1,forcePopupIcon:z="auto",freeSolo:T=!1,fullWidth:D=!1,getLimitTagsText:P=(e=>`+${e}`),getOptionLabel:N,groupBy:E,handleHomeEndKeys:B=!a.freeSolo,includeInputInList:k=!1,limitTags:L=-1,ListboxComponent:I="ul",ListboxProps:H,loading:R=!1,loadingText:W="Loading…",multiple:F=!1,noOptionsText:V="No options",openOnFocus:Q=!1,openText:X="Open",PaperComponent:Y=$i,PopperComponent:G=xc,popupIcon:Z=sm||(sm=U.jsx(Pf,{})),readOnly:q=!1,renderGroup:K,renderInput:J,renderOption:_,renderTags:$,selectOnFocus:ee=!a.freeSolo,size:te="medium",slotProps:ne={}}=a,re=Yt(a,cm),{getRootProps:oe,getInputProps:ie,getInputLabelProps:se,getPopupIndicatorProps:le,getClearProps:ce,getTagProps:ue,getListboxProps:de,getOptionProps:pe,value:fe,dirty:me,expanded:he,id:ge,popupOpen:ve,focused:Ae,focusedTag:ye,anchorEl:be,setAnchorEl:xe,inputValue:we,groupedOptions:je}=dc(ae({},a,{componentName:"Autocomplete"})),Ce=!b&&!w&&me&&!q,Me=(!T||!0===z)&&!1!==z,{onMouseDown:Oe}=ie(),{ref:ze}=null!=H?H:{},Te=de(),{ref:De}=Te,Pe=Yt(Te,um),Ne=mt(De,ze),Ee=N||(e=>{var t;return null!=(t=e.label)?t:e}),Be=ae({},a,{disablePortal:M,expanded:he,focused:Ae,fullWidth:D,getOptionLabel:Ee,hasClearIcon:Ce,hasPopupIcon:Me,inputFocused:-1===ye,popupOpen:ve,size:te}),ke=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e;return Lt({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${$e(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},im,t)})(Be);let Le;if(F&&fe.length>0){const e=e=>ae({className:ke.tag,disabled:w},ue(e));Le=$?$(fe,e,Be):fe.map(((t,n)=>U.jsx(rm,ae({label:Ee(t),size:te},e({index:n}),d))))}if(L>-1&&Array.isArray(Le)){const e=Le.length-L;!Ae&&e>0&&(Le=Le.splice(0,L),Le.push(U.jsx("span",{className:ke.tag,children:P(e)},Le.length)))}const Ie=K||(e=>U.jsxs("li",{children:[U.jsx(bm,{className:ke.groupLabel,ownerState:Be,component:"div",children:e.group}),U.jsx(xm,{className:ke.groupUl,ownerState:Be,children:e.children})]},e.key)),Se=_||((e,t)=>U.jsx("li",ae({},e,{children:Ee(t)}))),He=(e,t)=>{const n=pe({option:e,index:t});return Se(ae({},n,{className:ke.option}),e,{selected:n["aria-selected"],index:t,inputValue:we},Be)},Re=null!=(n=ne.clearIndicator)?n:A.clearIndicator,We=null!=(r=ne.paper)?r:A.paper,Fe=null!=(o=ne.popper)?o:A.popper,Ve=null!=(i=ne.popupIndicator)?i:A.popupIndicator;return U.jsxs(S.Fragment,{children:[U.jsx(dm,ae({ref:t,className:or(ke.root,p),ownerState:Be},oe(re),{children:J({id:ge,disabled:w,fullWidth:!0,size:"small"===te?"small":void 0,InputLabelProps:se(),InputProps:ae({ref:xe,className:ke.inputRoot,startAdornment:Le,onClick:e=>{e.target===e.currentTarget&&Oe(e)}},(Ce||Me)&&{endAdornment:U.jsxs(pm,{className:ke.endAdornment,ownerState:Be,children:[Ce?U.jsx(fm,ae({},ce(),{"aria-label":g,title:g,ownerState:Be},Re,{className:or(ke.clearIndicator,null==Re?void 0:Re.className),children:f})):null,Me?U.jsx(mm,ae({},le(),{disabled:w,"aria-label":ve?v:X,title:ve?v:X,ownerState:Be},Ve,{className:or(ke.popupIndicator,null==Ve?void 0:Ve.className),children:Z})):null]})}),inputProps:ae({className:ke.input,disabled:w,readOnly:q},ie())})})),be?U.jsx(hm,ae({as:G,disablePortal:M,style:{width:be?be.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:be,open:ve},Fe,{className:or(ke.popper,null==Fe?void 0:Fe.className),children:U.jsxs(gm,ae({ownerState:Be,as:Y},We,{className:or(ke.paper,null==We?void 0:We.className),children:[R&&0===je.length?U.jsx(vm,{className:ke.loading,ownerState:Be,children:W}):null,0!==je.length||T||R?null:U.jsx(Am,{className:ke.noOptions,ownerState:Be,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),je.length>0?U.jsx(ym,ae({as:I,className:ke.listbox,ownerState:Be},Pe,H,{ref:Ne,children:je.map(((e,t)=>E?Ie({key:e.key,group:e.group,children:e.options.map(((t,n)=>He(t,e.index+n)))}):He(e,t)))})):null]}))})):null]})}));"production"!==process.env.NODE_ENV&&(wm.propTypes={autoComplete:Le.bool,autoHighlight:Le.bool,autoSelect:Le.bool,blurOnSelect:Le.oneOfType([Le.oneOf(["mouse","touch"]),Le.bool]),ChipProps:Le.object,classes:Le.object,className:Le.string,clearIcon:Le.node,clearOnBlur:Le.bool,clearOnEscape:Le.bool,clearText:Le.string,closeText:Le.string,componentsProps:Le.shape({clearIndicator:Le.object,paper:Le.object,popper:Le.object,popupIndicator:Le.object}),defaultValue:ie(Le.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:Le.bool,disableCloseOnSelect:Le.bool,disabled:Le.bool,disabledItemsFocusable:Le.bool,disableListWrap:Le.bool,disablePortal:Le.bool,filterOptions:Le.func,filterSelectedOptions:Le.bool,forcePopupIcon:Le.oneOfType([Le.oneOf(["auto"]),Le.bool]),freeSolo:Le.bool,fullWidth:Le.bool,getLimitTagsText:Le.func,getOptionDisabled:Le.func,getOptionLabel:Le.func,groupBy:Le.func,handleHomeEndKeys:Le.bool,id:Le.string,includeInputInList:Le.bool,inputValue:Le.string,isOptionEqualToValue:Le.func,limitTags:Bt,ListboxComponent:Le.elementType,ListboxProps:Le.object,loading:Le.bool,loadingText:Le.node,multiple:Le.bool,noOptionsText:Le.node,onChange:Le.func,onClose:Le.func,onHighlightChange:Le.func,onInputChange:Le.func,onOpen:Le.func,open:Le.bool,openOnFocus:Le.bool,openText:Le.string,options:Le.array.isRequired,PaperComponent:Le.elementType,PopperComponent:Le.elementType,popupIcon:Le.node,readOnly:Le.bool,renderGroup:Le.func,renderInput:Le.func.isRequired,renderOption:Le.func,renderTags:Le.func,selectOnFocus:Le.bool,size:Le.oneOfType([Le.oneOf(["small","medium"]),Le.string]),slotProps:Le.shape({clearIndicator:Le.object,paper:Le.object,popper:Le.object,popupIndicator:Le.object}),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),value:ie(Le.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null))});var jm=wm;const Cm=S.createContext();"production"!==process.env.NODE_ENV&&(Cm.displayName="GridContext");var Mm=Cm;function Om(e){return Rt("MuiGrid",e)}const zm=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Tm=Wt("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...zm.map((e=>`grid-xs-${e}`)),...zm.map((e=>`grid-sm-${e}`)),...zm.map((e=>`grid-md-${e}`)),...zm.map((e=>`grid-lg-${e}`)),...zm.map((e=>`grid-xl-${e}`))]),Dm=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Pm(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Nm({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const Em=xo("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>ae({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return $t({theme:e},nn({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Tm.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=nn({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Nm({breakpoints:e.breakpoints.values,values:t})),o=$t({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${Pm(i)}`,[`& > .${Tm.item}`]:{paddingTop:Pm(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Tm.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=nn({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Nm({breakpoints:e.breakpoints.values,values:t})),o=$t({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${Pm(i)})`,marginLeft:`-${Pm(i)}`,[`& > .${Tm.item}`]:{paddingLeft:Pm(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Tm.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=nn({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${Pm(n)})`;c={flexBasis:e,maxWidth:e}}}i=ae({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const Bm=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Lt({root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},Om,t)},km=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiGrid"}),{breakpoints:r}=vo(),o=nr(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:m="wrap",zeroMinWidth:h=!1}=o,g=Yt(o,Dm),v=p||f,A=s||f,y=S.useContext(Mm),b=c?a||12:y,x={},w=ae({},g);r.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete w[e])}));const j=ae({},o,{columns:b,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:A,wrap:m,zeroMinWidth:h,spacing:f},x,{breakpoints:r.keys}),C=Bm(j);return U.jsx(Mm.Provider,{value:b,children:U.jsx(Em,ae({ownerState:j,className:or(C.root,i),as:l,ref:t},w))})}));if("production"!==process.env.NODE_ENV&&(km.propTypes={children:Le.node,classes:Le.object,className:Le.string,columns:Le.oneOfType([Le.arrayOf(Le.number),Le.number,Le.object]),columnSpacing:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.number,Le.string])),Le.number,Le.object,Le.string]),component:Le.elementType,container:Le.bool,direction:Le.oneOfType([Le.oneOf(["column-reverse","column","row-reverse","row"]),Le.arrayOf(Le.oneOf(["column-reverse","column","row-reverse","row"])),Le.object]),item:Le.bool,lg:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),md:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),rowSpacing:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.number,Le.string])),Le.number,Le.object,Le.string]),sm:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),spacing:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.number,Le.string])),Le.number,Le.object,Le.string]),sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),wrap:Le.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),xs:Le.oneOfType([Le.oneOf(["auto"]),Le.number,Le.bool]),zeroMinWidth:Le.bool}),"production"!==process.env.NODE_ENV){const e=it("Grid",km);km.propTypes=ae({},km.propTypes,{direction:e("container"),lg:e("item"),md:e("item"),sm:e("item"),spacing:e("container"),wrap:e("container"),xs:e("item"),zeroMinWidth:e("item")})}var Lm=km;function Im(e){return Rt("MuiTypography",e)}Wt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sm=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hm=xo("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${$e(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ae({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Rm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wm={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fm=S.forwardRef((function(e,t){const n=Ao({props:e,name:"MuiTypography"}),r=(e=>Wm[e]||e)(n.color),o=nr(ae({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Rm}=o,f=Yt(o,Sm),m=ae({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||Rm[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Lt({root:["root",i,"inherit"!==e.align&&`align${$e(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Im,a)})(m);return U.jsx(Hm,ae({as:h,ref:t,ownerState:m,className:or(g.root,a)},f))}));"production"!==process.env.NODE_ENV&&(Fm.propTypes={align:Le.oneOf(["center","inherit","justify","left","right"]),children:Le.node,classes:Le.object,className:Le.string,component:Le.elementType,gutterBottom:Le.bool,noWrap:Le.bool,paragraph:Le.bool,sx:Le.oneOfType([Le.arrayOf(Le.oneOfType([Le.func,Le.object,Le.bool])),Le.func,Le.object]),variant:Le.oneOfType([Le.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Le.string]),variantMapping:Le.object});var Vm,Qm,Xm=Fm,Ym={exports:{}};Ym.exports=(Vm={705:e=>{e.exports=function(e,t){const n=[];return 0===t.length?n.push({text:e,highlight:!1}):t[0][0]>0&&n.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((r,o)=>{const i=r[0],a=r[1];n.push({text:e.slice(i,a),highlight:!0}),o===t.length-1?a<e.length&&n.push({text:e.slice(a,e.length),highlight:!1}):a<t[o+1][0]&&n.push({text:e.slice(a,t[o+1][0]),highlight:!1})})),n}}},Qm={},function e(t){var n=Qm[t];if(void 0!==n)return n.exports;var r=Qm[t]={exports:{}};return Vm[t](r,r.exports,e),r.exports}(705));var Gm=F(Ym.exports);var Zm=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Um="object"==typeof globalThis&&globalThis&&W.Object===Object&&globalThis,qm="object"==typeof self&&self&&self.Object===Object&&self,Km=Um||qm||Function("return this")(),Jm=Km,_m=function(){return Jm.Date.now()},$m=/\s/;var eh=function(e){for(var t=e.length;t--&&$m.test(e.charAt(t)););return t},th=/^\s+/;var nh=function(e){return e?e.slice(0,eh(e)+1).replace(th,""):e},rh=Km.Symbol,oh=rh,ih=Object.prototype,ah=ih.hasOwnProperty,sh=ih.toString,lh=oh?oh.toStringTag:void 0;var ch=function(e){var t=ah.call(e,lh),n=e[lh];try{e[lh]=void 0;var r=!0}catch(e){}var o=sh.call(e);return r&&(t?e[lh]=n:delete e[lh]),o},uh=Object.prototype.toString;var dh=ch,ph=function(e){return uh.call(e)},fh=rh?rh.toStringTag:void 0;var mh=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fh&&fh in Object(e)?dh(e):ph(e)},hh=function(e){return null!=e&&"object"==typeof e};var gh=nh,vh=Zm,Ah=function(e){return"symbol"==typeof e||hh(e)&&"[object Symbol]"==mh(e)},yh=/^[-+]0x[0-9a-f]+$/i,bh=/^0b[01]+$/i,xh=/^0o[0-7]+$/i,wh=parseInt;var jh=Zm,Ch=_m,Mh=function(e){if("number"==typeof e)return e;if(Ah(e))return NaN;if(vh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=gh(e);var n=bh.test(e);return n||xh.test(e)?wh(e.slice(2),n?2:8):yh.test(e)?NaN:+e},Oh=Math.max,zh=Math.min;var Th=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=Ch();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?zh(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=Ch(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=Mh(t)||0,jh(n)&&(u=!!n.leading,i=(d="maxWait"in n)?Oh(Mh(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Ch())},v},Dh=Th,Ph=Zm;var Nh,Eh=F((function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ph(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Dh(e,t,{leading:r,maxWait:t,trailing:o})})),Bh=A.create({withCredentials:!0});exports.RequestState=void 0,(Nh=exports.RequestState||(exports.RequestState={})).IDLE="idle",Nh.LOADING="loading",Nh.SUCCEEDED="succeeded",Nh.FAILED="failed",Nh.UPLOADED="uploaded";var kh=function(){function e(e,t,n,r){this.data=e,this.state=t,this.error=n,this.uploadResult=r}return e.idle=function(t){var n=new e(t,exports.RequestState.IDLE);return q({},n)},e.loading=function(t){var n=new e(t,exports.RequestState.LOADING);return q({},n)},e.succeeded=function(t){var n=new e(t,exports.RequestState.SUCCEEDED);return q({},n)},e.error=function(t,n){var r=new e(n,exports.RequestState.FAILED,t);return q({},r)},e.uploaded=function(t,n){var r=new e(t.data,exports.RequestState.UPLOADED,null,n);return q({},r)},e}();function Lh(e,t){return e.filter((function(e){return!t.includes(e)}))}var Ih=e.createContext({statusCode:null,dashbaordUrlPrefix:""});var Sh,Hh=function(){function e(){}return e.optimizeImage=function(e,t){return new Promise((function(n,r){var o,i,a=null!==(o=t.maxWidth)&&void 0!==o?o:1e3,s=null!==(i=t.maxHeight)&&void 0!==i?i:1e3,l=document.createElement("canvas"),c=l.getContext("2d");if(!c)return e;var u=document.createElement("img");u.src=URL.createObjectURL(e);var d=e.name.split(".").slice(0,-1).join(".");u.onload=function(){var e=u.width,t=u.height;if(e>a||t>s){var r=e/t;e>t&&e>a?t=(e=a)/r:t>s&&(e=(t=s)*r)}l.width=e,l.height=t,c.imageSmoothingEnabled=!0,c.imageSmoothingQuality="high",c.drawImage(u,0,0,e,t),l.toBlob((function(e){var t=new File([e],"".concat(d,".webp"),{type:"image/webp"});n(t)}),"image/webp",1)},u.onerror=function(e){r(e)}}))},e}(),Rh=function(e,t,n,r){return J(void 0,void 0,void 0,(function(){return _(this,(function(o){switch(o.label){case 0:return t&&n===exports.ImageOptimizingCategories.NORMAL?[3,1]:[3,3];case 1:return[4,Hh.optimizeImage(e,{maxWidth:1e3,maxHeight:1e3})];case 2:return e=o.sent(),[3,3];case 3:return[2,new Promise((function(t){new b(e,{quality:.6,success:function(e){try{var n=Fh(e.name);y.Storage.put(n,e,{contentType:e.type}).then((function(e){r&&r(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}t(!0)},error:function(e){console.log(e.message)}})}))]}}))}))},Wh=function(e,t,n){return J(void 0,void 0,void 0,(function(){return _(this,(function(r){return[2,Promise.all(e.map((function(e){return Ms(e.name,t)===exports.FileTypes.IMAGE?new Promise((function(t){new b(e,{quality:.6,convertSize:1/0,success:function(e){try{var r=Fh(e.name);y.Storage.put(r,e,{contentType:e.type}).then((function(e){n&&n(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}},error:function(e){console.log(e.message)}})})):new Promise((function(t){var r=[];try{var o=Fh(e.name);y.Storage.put(o,e,{contentType:e.type}).then((function(e){n&&n(e.key),r.push(e.key),t(e.key)}))}catch(e){console.log("Error uploading file: ",e)}}))})))]}))}))};function Fh(e){var t=Date.now(),n=e.split(".").pop(),r=e.split(".").slice(0,-1).join(".");return"".concat(r,"_").concat(t,".").concat(n)}!function(e){e.LOGIN="LOGIN",e.LOGOUT="LOGOUT"}(Sh||(Sh={}));var Vh=function(e,t){switch(t.type){case Sh.LOGIN:return q(q({},e),{user:t.payload,isAuthenticated:!0});case Sh.LOGOUT:return q(q({},e),{user:null,isAuthenticated:!1});default:return e}},Qh=function(e){var t=localStorage.getItem(e);if(!t)return null;try{var n=JSON.parse(t);return n||null}catch(e){return null}},Xh=e.createContext(q(q({},{user:null,isAuthenticated:!1}),{login:function(){},logout:function(){}})),Yh=function(){return e.useContext(Xh)};function Gh(t){void 0===t&&(t=kh.idle());var n=e.useState(t),r=n[0],o=n[1],i=e.useContext(Ih).dashbaordUrlPrefix,a=Yh().logout,s=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.get("".concat(i,"/").concat(e.url),q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]),l=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.post("".concat(i,"/").concat(e.url),e.body,q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]),c=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.patch("".concat(i,"/").concat(e.url),e.body,q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]),u=e.useCallback((function(e){o((function(e){return kh.loading(e.data)})),Bh.delete("".concat(i,"/").concat(e.url),q(q({},e.axiosRequestConfig),{params:e.query})).then((function(t){var n=e.rowResponse?t.data:t.data.data;e.onSuccess&&e.onSuccess(n),o(kh.succeeded(n))})).catch((function(t){var n,r,i;e.onError&&e.onError(t);try{var s=JSON.parse(null!==(r=null!==(n=t.message)&&void 0!==n?n:t)&&void 0!==r?r:"{}");o((function(e){return kh.error(s,e.data)})),401===(null===(i=JSON.parse(null!=t?t:"{}").meta)||void 0===i?void 0:i.status)&&a()}catch(e){o((function(e){return kh.error(t,e.data)}))}}))}),[]);return{requestState:r,get:s,post:l,patch:c,remove:u,revertToIdle:function(){o(kh.idle())},revertToInitialState:function(){o(t)},uploadToS3:function(e){var t=e.body;o((function(e){return kh.loading(e.data)})),Promise.all(t.map((function(e){return new Promise((function(t){Wh(e.files,e.fileType).then((function(n){var r;return t(((r={})[e.key]=1===n.length?n[0]:n,r))}))}))}))).then((function(t){var n=t.reduce((function(e,t){return q(q({},e),t)}),{});o(kh.uploaded(r,n)),e.onSuccess&&e.onSuccess(n)})).catch((function(e){var t,n;try{var r=JSON.parse(null!==(n=null!==(t=e.message)&&void 0!==t?t:e)&&void 0!==n?n:"{}");o((function(e){return kh.error(r,e.data)}))}catch(t){o((function(t){return kh.error(e,t.data)}))}}))}}}function Zh(){return x.configure({showSpinner:!1}),e.useMemo((function(){x.start()}),[]),e.useEffect((function(){x.done()}),[]),null}var Uh=xo("div")((function(e){return{right:0,bottom:0,zIndex:99999,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.theme.palette.background.default}}));function qh(e){var t=e.isDashboard,r=e.loadingLogo,o=e.logoSxProps,i=K(e,["isDashboard","loadingLogo","logoSxProps"]),a=Bg(),s=a.loadingLoago,l=a.loadingLogoSxProps;return U.jsxs(U.Fragment,{children:[U.jsx(Zh,{}),!t&&U.jsxs(Uh,q({},i,{children:[U.jsx(p.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:U.jsx(n.Box,{sx:q(q({width:200},o),l),children:U.jsx(Ua,{visibleByDefault:!0,disabledEffect:!0,src:null!=r?r:s,alt:"logo"})})}),U.jsx(n.Box,{component:p.m.div,animate:{scale:[1.2,1,1,1.2,1.2],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,borderRadius:"25%",position:"absolute",border:function(e){return"solid 3px ".concat(Cr(e.palette.primary.dark,.24))}}}),U.jsx(n.Box,{component:p.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,borderRadius:"25%",position:"absolute",border:function(e){return"solid 8px ".concat(Cr(e.palette.primary.dark,.24))}}})]}))]})}var Kh=e.createContext({resources:null,getResources:function(){},state:exports.RequestState.IDLE,clearResources:function(){}}),Jh=e.createContext({paths:{},root:"",home:""});function _h(e,t){return"".concat(e).concat(t)}function $h(){var t=e.useContext(Kh).resources,n=e.useContext(Jh).paths;if(!t)return[];var r=t.modelParents;return e.useMemo((function(){var e=[];for(var o in r){for(var i=[],a=r[o],s=t[a[0]].properties.parent,l=s.icon,c={title:s.value,icon:ku(l),children:i},u=0;u<a.length;u++){var d=t[a[u]];i.push({title:d.properties.name,path:n[a[u]]?n[a[u]].list:""})}c.children=i,e.push(c)}return[{subheader:"",items:e||[]}]}),[t])}function eg(e,t){return"linear-gradient(to bottom, ".concat(e,", ").concat(t,")")}var tg={lighter:"#416973",light:"#416973",main:"#416973",dark:"#416973",darker:"#416973"},ng={lighter:"#D2E1FE",light:"#799DF9",main:"#2352ED",dark:"#112DAA",darker:"#061571"},rg={lighter:"#E9F8D2",light:"#A3D974",main:"#3F821D",dark:"#1F5D0E",darker:"#0A3E05"},og={lighter:"#FEF5CC",light:"#F9D866",main:"#EDAB04",dark:"#AA7102",darker:"#714400"},ig={lighter:"#FBDFD0",light:"#E78571",main:"#B21A1A",dark:"#800D21",darker:"#550420"},ag={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24",5008:Cr("#919EAB",.08),50012:Cr("#919EAB",.12),50016:Cr("#919EAB",.16),50024:Cr("#919EAB",.24),50032:Cr("#919EAB",.32),50048:Cr("#919EAB",.48),50056:Cr("#919EAB",.56),50080:Cr("#919EAB",.8)},sg={primary:eg(tg.light,tg.main),info:eg(ng.light,ng.main),success:eg(rg.light,rg.main),warning:eg(og.light,og.main),error:eg(ig.light,ig.main)},lg={common:{black:"#000",white:"#fff"},primary:q(q({},tg),{contrastText:"#fff"}),secondary:q(q({},{lighter:"#D6E4FF",light:"#84A9FF",main:"#F23C3C",dark:"#E23C3C",darker:"#D23C3C"}),{contrastText:"#fff"}),info:q(q({},ng),{contrastText:"#fff"}),success:q(q({},rg),{contrastText:ag[800]}),warning:q(q({},og),{contrastText:ag[800]}),error:q(q({},ig),{contrastText:"#fff"}),grey:ag,gradients:sg,chart:{violet:["#826AF9","#9E86FF","#D0AEFF","#F7D2FF"],blue:["#2D99FF","#83CFFF","#A5F3FF","#CCFAFF"],green:["#2CD9C5","#60F1C8","#A4F7CC","#C0F2DC"],yellow:["#FFE700","#FFEF5A","#FFF7AE","#FFF3D6"],red:["#FF6C40","#FF8F6D","#FFBD98","#FFF2D4"]},divider:ag[50024],action:{hover:ag[5008],selected:ag[50016],disabled:ag[50080],disabledBackground:ag[50024],focus:ag[50024],hoverOpacity:.08,disabledOpacity:.48}},cg={light:q(q({},lg),{mode:"light",text:{primary:ag[800],secondary:ag[600],disabled:ag[500]},background:{paper:"#fff",default:"#fff",neutral:ag[200]},action:q({active:ag[600]},lg.action)}),dark:q(q({},lg),{mode:"dark",text:{primary:"#fff",secondary:ag[500],disabled:ag[600]},background:{paper:ag[800],default:ag[900],neutral:ag[50016]},action:q({active:ag[500]},lg.action)})},ug=e.createContext({textFieldSize:"small",themeLayout:"vertical",defaultRowsPerPage:50,themeStretch:!0,loadingLoago:"",navBarLogo:"",miniNavBarLogo:"",loginWeclomeImage:"",loginLogo:"",loginLoginMessage:"",palette:cg.light}),dg=e.createContext({identityPoolId:"",region:"",userPoolId:"",userPoolWebClientId:"",bucket:"",googleApiKey:"",bucketUrl:""}),pg=e.createContext({setAlert:function(e,t,n,r){},setErrorAlert:function(e,t,n){},setSuccessAlert:function(e,t,n){}});var fg=e.createContext({openDialog:function(e,t){}});var mg=e.createContext({notifications:[],getNotifications:function(){},state:exports.RequestState.IDLE,clearNotifications:function(){}}),hg=e.createContext({collapseClick:!1,collapseHover:!1,onToggleCollapse:function(){},onHoverEnter:function(){},onHoverLeave:function(){}});var gg=[q({name:"default"},cg.light.primary),{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#fff"},{name:"cyan",lighter:"#D1FFFC",light:"#76F2FF",main:"#1CCAFF",dark:"#0E77B7",darker:"#053D7A",contrastText:cg.light.grey[800]},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#fff"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:cg.light.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#fff"}],vg=gg[0],Ag=gg[1],yg=gg[2],bg=gg[3],xg=gg[4],wg=gg[5];var jg,Cg;!function(e){e.ENGLISH="en",e.ARABIC="ar",e.FRENCH="fr",e.GERMAN="de",e.SPANISH="es",e.DANISH="da",e.NORWEGIAN="nb",e.SWEDISH="sv"}(jg||(jg={})),function(e){e.ENGLISH_FLAG="https://pngimg.com/uploads/flags/flags_PNG14592.png",e.ARABIC_FLAG="/assets/icons/flags/ic_flag_sa.svg",e.FRENCH_FLAG="/assets/icons/flags/ic_flag_fr.svg",e.GERMAN_FLAG="/assets/icons/flags/ic_flag_de.svg",e.SPANISH_FLAG="/assets/icons/flags/ic_flag_es.svg",e.DANISH_FLAG="/assets/icons/flags/ic_flag_da.svg",e.NORWEGIAN_FLAG="/assets/icons/flags/ic_flag_no.svg",e.SWEDISH_FLAG="/assets/icons/flags/ic_flag_se.svg"}(Cg||(Cg={}));var Mg={MOBILE_HEIGHT:64,MAIN_DESKTOP_HEIGHT:88,DASHBOARD_DESKTOP_HEIGHT:92,DASHBOARD_DESKTOP_OFFSET_HEIGHT:60},Og={BASE_WIDTH:260,DASHBOARD_WIDTH:280,DASHBOARD_COLLAPSE_WIDTH:88,DASHBOARD_ITEM_ROOT_HEIGHT:48,DASHBOARD_ITEM_SUB_HEIGHT:40,DASHBOARD_ITEM_HORIZONTAL_HEIGHT:32},zg=22,Tg=20,Dg=[{label:"English",value:jg.ENGLISH,index:"1",systemValue:{},icon:Cg.ENGLISH_FLAG},{label:"Arabic",value:jg.ARABIC,index:"2",systemValue:{components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"انتقل إلى الصفحة الأولى":"last"===e?"انتقل إلى الصفحة الأخيرة":"next"===e?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${-1!==n?n:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${1!==e?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا يوجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,n)=>"page"===e?`${n?"":"انتقل إلى "} صفحة ${t}`:"first"===e?"انتقل إلى الصفحة الأولى":"last"===e?"انتقل الي الصفحة الأخيرة":"next"===e?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة"}}}},icon:Cg.ARABIC_FLAG}],Pg=Dg[0],Ng=q(q({},{themeMode:"light",themeDirection:"ltr",themeContrast:"default",themeLayout:"horizontal",themeColorPresets:"default",themeStretch:!1}),{onToggleMode:function(){},onChangeMode:function(){console.log("hagsga")},onToggleDirection:function(){},onChangeDirection:function(){},onChangeDirectionByLang:function(){},onToggleLayout:function(){},onChangeLayout:function(){},onToggleContrast:function(){},onChangeContrast:function(){},onChangeColor:function(){},setColor:vg,colorOption:[],onToggleStretch:function(){},onResetSetting:function(){},presetsOption:[],onChangeColorPresets:function(e){throw new Error("Function not implemented.")}}),Eg=e.createContext(Ng);var Bg=function(){return e.useContext(ug)},kg=function(){return e.useContext(Kh)},Lg=function(){return e.useContext(dg)},Ig=function(){return e.useContext(pg)},Sg=function(){return e.useContext(Jh)},Hg=function(){return e.useContext(fg)},Rg=function(){return e.useContext(mg)},Wg=function(){return e.useContext(hg)},Fg=function(){return e.useContext(Eg)};function Vg(){var e=w.useTranslation(),t=e.i18n,n=e.t,r=Fg().onChangeDirectionByLang,o=localStorage.getItem("i18nextLng");return{onChangeLang:function(e){localStorage.setItem("i18nextLng",e),t.changeLanguage(e),r(e)},translate:function(e,t){return n(e,t)},currentLang:Dg.find((function(e){return e.value===o}))||Pg,allLangs:Dg}}var Qg={current:null},Xg={current:null};function Yg(t){var n=t.name,r=t.address,o=t.placeholder,i=t.setLocation,a=t.selectLocation,s=K(t,["name","address","placeholder","setLocation","selectLocation"]),l=c.useFormContext().control,u=e.useState(null),d=u[0],p=u[1],f=e.useState(""),m=f[0],h=f[1],g=e.useState([]),v=g[0],A=g[1],y=e.useRef(!1),b=Lg().googleApiKey,x=null!=b?b:null===process||void 0===process?void 0:process.env.REACT_APP_GOOGLE_MAP_KEY;"undefined"==typeof window||y.current||(document.querySelector("#google-maps")||function(e,t,n){if(t){var r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",n),r.src=e,t.appendChild(r)}}("https://maps.googleapis.com/maps/api/js?key=".concat(x,"&libraries=places"),document.querySelector("head"),"google-maps"),y.current=!0);var w=S.useMemo((function(){return Eh((function(e,t){Qg.current.getPlacePredictions(e,t)}),200)}),[]);S.useEffect((function(){var e=!0;if(!Qg.current&&window.google&&window.google.maps&&window.google.maps.places&&(Qg.current=new window.google.maps.places.AutocompleteService),Qg.current){if(!Xg.current&&window.google&&window.google.maps&&window.google.maps.places&&(Xg.current=new window.google.maps.places.PlacesService(new window.google.maps.Map(document.getElementById("google-maps")))),""!==m)return w({input:m},(function(t){if(e){var n=[];d&&(n=[d]),t&&(n=$($([],n,!0),t,!0)),A(n)}})),function(){e=!1};A(d?[d]:[])}}),[d,m,w]);return U.jsx(c.Controller,{name:"".concat(n,".description"),control:l,render:function(t){var l=t.field,c=t.fieldState.error;return U.jsx(jm,{id:"".concat(n,".description"),sx:{"& .MuiAutocomplete-endAdornment":{display:"none"}},getOptionLabel:function(e){return"string"==typeof e?e:e.description},filterOptions:function(e){return e},options:v,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:null!=r?r:l.value,onChange:function(e,t){A(t?$([t],v,!0):v),p(t),l.onChange(null==t?void 0:t.description),function(e){Xg.current&&e&&e.place_id&&Xg.current.getDetails({placeId:null==e?void 0:e.place_id},(function(t,r){if(r===window.google.maps.places.PlacesServiceStatus.OK){var o=function(e){var n;return null===(n=t.address_components.find((function(t){return t.types.includes(e)})))||void 0===n?void 0:n.long_name},s=o("neighborhood")||o("sublocality"),l=o("locality"),c={placeId:null==e?void 0:e.place_id,description:null==e?void 0:e.description,location:{type:"Point",coordinates:[t.geometry.location.lng(),t.geometry.location.lat()]},city:l,neighborhood:s};i&&i(c),a&&a(n,c)}}))}(t)},onInputChange:function(e,t){h(t)},renderInput:function(e){var t,n,r,i;return U.jsx(Qf,q({},e,s,{placeholder:o,fullWidth:!0,error:!!c,helperText:null!==(i=null!==(t=null==c?void 0:c.message)&&void 0!==t?t:null===(r=null===(n=Object(c))||void 0===n?void 0:n.id)||void 0===r?void 0:r.message)&&void 0!==i?i:""}))},renderOption:function(t,n){var r=n.structured_formatting.main_text_matched_substrings,o=[];return r&&(o=Gm(n.structured_formatting.main_text,r.map((function(e){return[e.offset,e.offset+e.length]})))),e.createElement("li",q({},t,{key:n.description}),U.jsxs(Lm,{container:!0,alignItems:"center",children:[U.jsx(Lm,{item:!0,children:U.jsx(zo,{sx:{color:"text.secondary",mr:2}})}),U.jsxs(Lm,{item:!0,xs:!0,children:[o.map((function(e,t){return U.jsx("span",{style:{fontWeight:e.highlight?700:400},children:e.text},t)})),U.jsx(Xm,{variant:"body2",color:"text.secondary",children:n.structured_formatting.secondary_text})]})]}))}})}})}var Gg=sc();var Zg=[{title:"The Shawshank Redemption",year:1994},{title:"The Godfather",year:1972},{title:"The Godfather: Part II",year:1974},{title:"The Dark Knight",year:2008},{title:"12 Angry Men",year:1957},{title:"Schindler's List",year:1993},{title:"Pulp Fiction",year:1994},{title:"The Lord of the Rings: The Return of the King",year:2003},{title:"The Good, the Bad and the Ugly",year:1966},{title:"Fight Club",year:1999},{title:"The Lord of the Rings: The Fellowship of the Ring",year:2001},{title:"Star Wars: Episode V - The Empire Strikes Back",year:1980},{title:"Forrest Gump",year:1994},{title:"Inception",year:2010},{title:"The Lord of the Rings: The Two Towers",year:2002},{title:"One Flew Over the Cuckoo's Nest",year:1975},{title:"Goodfellas",year:1990},{title:"The Matrix",year:1999},{title:"Seven Samurai",year:1954},{title:"Star Wars: Episode IV - A New Hope",year:1977},{title:"City of God",year:2002},{title:"Se7en",year:1995},{title:"The Silence of the Lambs",year:1991},{title:"It's a Wonderful Life",year:1946},{title:"Life Is Beautiful",year:1997},{title:"The Usual Suspects",year:1995},{title:"Léon: The Professional",year:1994},{title:"Spirited Away",year:2001},{title:"Saving Private Ryan",year:1998},{title:"Once Upon a Time in the West",year:1968},{title:"American History X",year:1998},{title:"Interstellar",year:2014},{title:"Casablanca",year:1942},{title:"City Lights",year:1931},{title:"Psycho",year:1960},{title:"The Green Mile",year:1999},{title:"The Intouchables",year:2011},{title:"Modern Times",year:1936},{title:"Raiders of the Lost Ark",year:1981},{title:"Rear Window",year:1954},{title:"The Pianist",year:2002},{title:"The Departed",year:2006},{title:"Terminator 2: Judgment Day",year:1991},{title:"Back to the Future",year:1985},{title:"Whiplash",year:2014},{title:"Gladiator",year:2e3},{title:"Memento",year:2e3},{title:"The Prestige",year:2006},{title:"The Lion King",year:1994},{title:"Apocalypse Now",year:1979},{title:"Alien",year:1979},{title:"Sunset Boulevard",year:1950},{title:"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb",year:1964},{title:"The Great Dictator",year:1940},{title:"Cinema Paradiso",year:1988},{title:"The Lives of Others",year:2006},{title:"Grave of the Fireflies",year:1988},{title:"Paths of Glory",year:1957},{title:"Django Unchained",year:2012},{title:"The Shining",year:1980},{title:"WALL·E",year:2008},{title:"American Beauty",year:1999},{title:"The Dark Knight Rises",year:2012},{title:"Princess Mononoke",year:1997},{title:"Aliens",year:1986},{title:"Oldboy",year:2003},{title:"Once Upon a Time in America",year:1984},{title:"Witness for the Prosecution",year:1957},{title:"Das Boot",year:1981},{title:"Citizen Kane",year:1941},{title:"North by Northwest",year:1959},{title:"Vertigo",year:1958},{title:"Star Wars: Episode VI - Return of the Jedi",year:1983},{title:"Reservoir Dogs",year:1992},{title:"Braveheart",year:1995},{title:"M",year:1931},{title:"Requiem for a Dream",year:2e3},{title:"Amélie",year:2001},{title:"A Clockwork Orange",year:1971},{title:"Like Stars on Earth",year:2007},{title:"Taxi Driver",year:1976},{title:"Lawrence of Arabia",year:1962},{title:"Double Indemnity",year:1944},{title:"Eternal Sunshine of the Spotless Mind",year:2004},{title:"Amadeus",year:1984},{title:"To Kill a Mockingbird",year:1962},{title:"Toy Story 3",year:2010},{title:"Logan",year:2017},{title:"Full Metal Jacket",year:1987},{title:"Dangal",year:2016},{title:"The Sting",year:1973},{title:"2001: A Space Odyssey",year:1968},{title:"Singin' in the Rain",year:1952},{title:"Toy Story",year:1995},{title:"Bicycle Thieves",year:1948},{title:"The Kid",year:1921},{title:"Inglourious Basterds",year:2009},{title:"Snatch",year:2e3},{title:"3 Idiots",year:2009},{title:"Monty Python and the Holy Grail",year:1975}];function Ug(e){var t=e.name,r=e.options,o=K(e,["name","options"]),i=c.useFormContext().control;return U.jsx(c.Controller,{name:t,control:i,render:function(e){var t=e.field,i=e.fieldState.error;return U.jsxs("div",{children:[U.jsx(n.RadioGroup,q({},t,{row:!0},o,{children:r.map((function(e){return U.jsx(n.FormControlLabel,{value:e.value,control:U.jsx(n.Radio,{}),label:e.label},e.value)}))})),!!i&&U.jsx(n.FormHelperText,{error:!0,sx:{px:2},children:i.message})]})}})}var qg={},Kg=xa;Object.defineProperty(qg,"__esModule",{value:!0});var Jg=qg.default=void 0,_g=Kg(Ca()),$g=U,ev=(0,_g.default)((0,$g.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"}),"Circle");Jg=qg.default=ev;var tv={},nv=xa;Object.defineProperty(tv,"__esModule",{value:!0});var rv,ov,iv,av=tv.default=void 0,sv=nv(Ca()),lv=U,cv=(0,sv.default)((0,lv.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");function uv(e,t,n,r,o){var i;switch(n[t]=void 0,e.type){case exports.FieldTypes.STRING:case exports.FieldTypes.PHONENUMBER:case exports.FieldTypes.LOCALIZEDString:case exports.FieldTypes.OBJECTID:n[t]=r&&r.get(t)?r.get(t):"",i=H.string().nullable();break;case exports.FieldTypes.BOOLEAN:n[t]=!r||!1!==r.get(t)&&!0!==r.get(t)?void 0:r.get(t),i=H.boolean().nullable();break;case exports.FieldTypes.REFERENCE:n[t]=r&&r.get(t+"-name")?{_id:r.get(t+"-id"),title:r.get(t+"-name")}:void 0,i=H.object().nullable();break;case exports.FieldTypes.DATE:case exports.FieldTypes.NUMBER:n[t]={from:"",to:""},n[t].from=r.get(t+"-from")?r.get(t+"-from"):"",n[t].to=r.get(t+"-to")?r.get(t+"-to"):"",i=H.object().nullable();break;case exports.FieldTypes.ENUM:n[t]=r&&r.get(t)?r.get(t):void 0,i=H.string().nullable()}return i}av=tv.default=cv,exports.ActionNames=void 0,(rv=exports.ActionNames||(exports.ActionNames={})).SHOW="SHOW",rv.LIST="LIST",rv.NEW="NEW",rv.EDIT="EDIT",exports.ActionTypes=void 0,(ov=exports.ActionTypes||(exports.ActionTypes={})).RECORD="RECORD",ov.Resource="RESOUCRE",exports.FieldTypes=void 0,function(e){e.STRING="String",e.NUMBER="Number",e.ENUM="enum",e.REFERENCE="ref",e.DATE="Date",e.PASSWORD="password",e.BOOLEAN="Boolean",e.OBJECTID="ObjectID",e.NESTEDSCHEMA="nestedSchema",e.ARRAY="Array",e.IMAGE="image",e.LOCALIZEDString="localizedString",e.PHONENUMBER="phoneNumber",e.COLOR="color",e.TIMEPICKER="timePicker",e.FILE="File",e.LOCATION="LOCATION",e.RICH_TEXT_I="RICH_TEXT_I",e.RICH_TEXT_II="RICH_TEXT_II",e.JSON_RICH_TEXT="JSON_RICH_TEXT",e.EXTERNAL_LINK="EXTERNAL_LINK",e.MULTIPLE_TEXT="MULTIPLE_TEXT"}(exports.FieldTypes||(exports.FieldTypes={})),exports.HandlerStrategy=void 0,(iv=exports.HandlerStrategy||(exports.HandlerStrategy={})).NORMAL="NORMAL",iv.FILE_DOWNLOAD="FILE_DOWNLOAD",iv.CUSTOM_COMPONENT="CUSTOM_COMPONENT";var dv=xo("div")((function(){return{flexGrow:1,height:"100%",overflow:"hidden"}})),pv=xo(j)((function(e){return{maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:Cr(e.theme.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}}})),fv=e.forwardRef((function(e,t){var n=e.children,r=e.sx,o=K(e,["children","sx"]),i="undefined"==typeof navigator?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i)?U.jsx(zo,q({ref:t,sx:q({overflow:"auto"},r)},o,{children:n})):U.jsx(dv,{children:U.jsx(pv,q({scrollableNodeProps:{ref:t},clickOnTrack:!1,sx:r},o,{children:n}))})})),mv=e.memo(fv),hv=function(){function e(){}return e.isEnglish=function(){switch(localStorage.getItem("i18nextLng")){case jg.ENGLISH:return!0;case jg.ARABIC:return!1;default:return!0}},e.getLocale=function(){return this.isEnglish()?jg.ENGLISH:jg.ARABIC},e.getLocalizedString=function(e){for(var t=this.getLocale(),n=e[0].value,r=0;r<e.length;r++){var o=e[r];if(o.key===t)return o.value?o.value:n}return n},e}(),gv=function(){function e(){}return e.get=function(e,t){if(!e||!e.properties)return"-";var n=e.properties.title,r=e.properties.model[n].type;return t[n]?r===exports.FieldTypes.LOCALIZEDString?hv.getLocalizedString(t[n]):t[n]:this.getReferenceValue(t)},e.getReferenceValue=function(e){return e.name?e.name:e.firstName?e.firstName:e.lastName?e.lastName:e.email?e.email:e.title?e.title:e.phoneNumber?e.phoneNumber:e.phone?e.phone:e.number?e.number:e.key?e.key:e._id?e._id:"-"},e}();function vv(e,t,n,r,o){return r?0===o?e.set(t,n):e.append(t,n):e.has(t)?e.set(t,n):e.append(t,n),e}function Av(e,t,n,r,o,i,a,s){Object.keys(e).map((function(t){if(e[t]&&n[t].type===exports.FieldTypes.DATE){if(e[t].from&&""!==e[t].from)try{e[t].from=e[t].from.toISOString().split("T")[0]}catch(e){}if(e[t].to&&""!==e[t].to)try{e[t].to=e[t].to.toISOString().split("T")[0]}catch(e){}}}));var l="";return Object.keys(e).map((function(t){var o,c,u;if((!i||!a||"all"===a||i!==t)&&e[t]&&""!==e[t]&&n[t].type)if(n[t].type===exports.FieldTypes.NUMBER||n[t].type===exports.FieldTypes.DATE)!e[t].from&&!e[t].to||""===e[t].from&&""===e[t].to?e[t]=void 0:(e[t].from&&""!==e[t].from&&(r=vv(r,t+"-from",e[t].from)),e[t].to&&""!==e[t].to&&(r=vv(r,t+"-to",e[t].to)),l=l+t+":from="+e[t].from+",to="+e[t].to+";;"+n[t].type+"^^");else if(n[t].type===exports.FieldTypes.REFERENCE){if(n[t].multipleInFilter)e[t].forEach((function(e,o){var i,a,l,c=s?s[null===(i=n[t])||void 0===i?void 0:i.path]:void 0,u=c?gv.get(c,e):null!==(l=null!==(a=e.title)&&void 0!==a?a:e.name)&&void 0!==l?l:e._id;r=vv(r,t+"-name",u,!0,o),r=vv(r,t+"-id",e._id,!0,o)})),e[t].length>0&&(l=l+t+"="+e[t].map((function(e){return e._id}))+";;"+n[t].type+"^^");else if(e[t]._id){var d=s?s[null===(o=n[t])||void 0===o?void 0:o.path]:void 0,p=d?gv.get(d,e[t]):null!==(u=null!==(c=e[t].title)&&void 0!==c?c:e[t].name)&&void 0!==u?u:e[t]._id;r=vv(r,t+"-name",p),r=vv(r,t+"-id",e[t]._id),l=l+t+"="+e[t]._id+";;"+n[t].type+"^^"}}else r=vv(r,t,e[t]),l=l+t+"="+e[t]+";;"+n[t].type+"^^"})),t(),o(r),l}var yv={exports:{}};
|
|
123
123
|
/**
|
|
124
124
|
* @license
|
|
125
125
|
* Lodash <https://lodash.com/>
|