@dishopsaas/design-system 0.0.47 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -140,7 +140,7 @@ Use unitless line heights instead.`:it(6));Oi(f)||(f=parseFloat(d(f,"rem"))/pars
140
140
  animation: ${da} 1.4s linear infinite;
141
141
  `:null,Om=typeof ca!="string"?Ct.css`
142
142
  animation: ${ca} 1.4s ease-in-out infinite;
143
- `:null,Vm=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${J(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${J(n)}`,a&&"circleDisableShrink"]};return ue(i,Em,t)},km=B("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${J(n.color)}`]]}})(le(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Mm||{animation:`${da} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),qm=B("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),zm=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${J(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(le(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Om||{animation:`${ca} 1.4s ease-in-out infinite`}}]}))),wm=B("circle",{name:"MuiCircularProgress",slot:"Track"})(le(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),nr=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:d=40,style:u,thickness:p=3.6,value:m=0,variant:h="indeterminate",...y}=r,g={...r,color:i,disableShrink:s,size:d,thickness:p,value:m,variant:h,enableTrackSlot:l},f=Vm(g),v={},A={},S={};if(h==="determinate"){const x=2*Math.PI*((ot-p)/2);v.strokeDasharray=x.toFixed(3),S["aria-valuenow"]=Math.round(m),v.strokeDashoffset=`${((100-m)/100*x).toFixed(3)}px`,A.transform="rotate(-90deg)"}return c.jsx(km,{className:ne(f.root,a),style:{width:d,height:d,...A,...u},ownerState:g,ref:n,role:"progressbar",...S,...y,children:c.jsxs(qm,{className:f.svg,ownerState:g,viewBox:`${ot/2} ${ot/2} ${ot} ${ot}`,children:[l?c.jsx(wm,{className:f.track,ownerState:g,cx:ot,cy:ot,r:(ot-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,c.jsx(zm,{className:f.circle,style:v,ownerState:g,cx:ot,cy:ot,r:(ot-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(nr.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Dt(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function Wm(e){return de("MuiButton",e)}const Ft=ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ed=R.createContext({});process.env.NODE_ENV!=="production"&&(ed.displayName="ButtonGroupContext");const td=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(td.displayName="ButtonGroupButtonContext");const jm=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,loading:s,loadingPosition:l,classes:d}=e,u={root:["root",s&&"loading",i,`${i}${J(t)}`,`size${J(a)}`,`${i}Size${J(a)}`,`color${J(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${J(l)}`],startIcon:["icon","startIcon",`iconSize${J(a)}`],endIcon:["icon","endIcon",`iconSize${J(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=ue(u,Wm,d);return{...d,...p}},nd=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Zm=B(tr,{shouldForwardProp:e=>Pe(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${J(n.color)}`],t[`size${J(n.size)}`],t[`${n.variant}Size${J(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ft.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ft.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ue()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ft.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ft.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ft.loading}`]:{color:"transparent"}}}]}})),Fm=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...nd]})),Im=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...nd]})),Um=B("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ji=B("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),rd=R.forwardRef(function(t,n){const r=R.useContext(ed),a=R.useContext(td),i=Dn(r,t),s=fe({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:p,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:v=!1,id:A,loading:S=null,loadingIndicator:x,loadingPosition:C="center",size:T="medium",startIcon:E,type:z,variant:k="text",...Z}=s,F=po(A),I=x??c.jsx(nr,{"aria-labelledby":F,color:"inherit",size:16}),b={...s,color:d,component:u,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:v,loading:S,loadingIndicator:I,loadingPosition:C,size:T,type:z,variant:k},V=jm(b),O=(E||S&&C==="start")&&c.jsx(Fm,{className:V.startIcon,ownerState:b,children:E||c.jsx(ji,{className:V.loadingIconPlaceholder,ownerState:b})}),q=(g||S&&C==="end")&&c.jsx(Im,{className:V.endIcon,ownerState:b,children:g||c.jsx(ji,{className:V.loadingIconPlaceholder,ownerState:b})}),w=a||"",G=typeof S=="boolean"?c.jsx("span",{className:V.loadingWrapper,style:{display:"contents"},children:S&&c.jsx(Um,{className:V.loadingIndicator,ownerState:b,children:I})}):null;return c.jsxs(Zm,{ownerState:b,className:ne(r.className,V.root,p,w),component:u,disabled:m||S,focusRipple:!y,focusVisibleClassName:ne(V.focusVisible,f),ref:n,type:z,id:S?F:A,...Z,classes:V,children:[O,C!=="end"&&G,l,C==="end"&&G,q]})});process.env.NODE_ENV!=="production"&&(rd.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});const hr={Small:"small",Medium:"medium",Large:"large"},Zi=e=>!(e==null||e===""||typeof e=="string"&&e.trim()===""||typeof e=="number"&&isNaN(e)),Ym=e=>{switch(e){case pe.Primary:return"primary";case pe.Secondary:return"secondary";case pe.Tertiary:return"tertiary";case pe.Transparent:return"transparent";case pe.SecondaryColor:return"secondaryColor";case pe.Error:return"destructive";default:return"primary"}},Fr=({label:e,colorType:t="primary",borderRadius:n=8,price:r,Discount:a,RightIcon:i=!1,disabled:s,sx:l,onClick:d,fontSize:u,leftIcon:p,height:m,state:h,size:y=hr.Medium,withoutHover:g=!1,...f})=>{const v=K0(t),A=Ym(t),S={[hr.Small]:{height:m||32,paddingX:1.5,paddingY:1.5,fontSize:u||12,fontWeight:400,gap:1,iconPadding:.5},[hr.Medium]:{height:m||40,paddingX:2,paddingY:1.25,fontSize:u||14,gap:1.25,iconPadding:.75,fontWeight:620},[hr.Large]:{height:m||48,paddingX:2.5,paddingY:1.5,fontSize:u||16,fontWeight:620,gap:1.5,iconPadding:1}}[y],x={color:"currentColor"},C=p?Ne(p,x):void 0,T=i?Ne("ChevronDown",x):void 0,E={borderRadius:`${n}px !important`,textTransform:"uppercase",fontWeight:S.fontWeight,px:S.paddingX,py:S.paddingY,minWidth:100,gap:S.gap,height:S.height,fontSize:S.fontSize,boxShadow:"none !important",transition:"all 0.2s ease-in-out","& .MuiButton-startIcon, & .MuiButton-endIcon":{margin:0,paddingLeft:S.iconPadding,paddingRight:S.iconPadding},...i?{}:{pr:S.paddingX+S.iconPadding},"&:hover":{boxShadow:"none !important",transform:"translateY(-1px)"},"&:active":{transform:"translateY(0)"}},z=N.useTheme(),k=Nf(z.palette.secondaryColor.main),Z=k[A].default,F=k[A].hover,I=k[A].disabled;h==="hover"?Object.assign(E,{backgroundColor:F.bg,color:F.text,border:`1px solid ${F.border}`,"&:hover":{backgroundColor:F.bg,color:F.text,border:`1px solid ${F.border}`,transform:"none"}}):s?Object.assign(E,{backgroundColor:I.bg,color:I.text,border:`1px solid ${I.border}`,"&:hover":{backgroundColor:I.bg,color:I.text,border:`1px solid ${I.border}`,transform:"none"}}):Object.assign(E,{backgroundColor:Z.bg,color:Z.text,border:`1px solid ${Z.border}`,"&:hover":{backgroundColor:!g&&F.bg,color:!g&&F.text,border:!g&&`1px solid ${F.border}`,transform:!g&&"translateY(-1px)"}});const b=Array.isArray(l)?[E,...l]:[E,l].filter(Boolean);return c.jsx(rd,{color:v,disabled:s,startIcon:C,endIcon:T,sx:b,onClick:d,...f,children:c.jsx(N.Stack,{direction:"row",alignItems:"center",justifyContent:"center",sx:{gap:S.gap,width:"100%",flex:1},children:c.jsxs(N.Stack,{direction:"row",alignItems:"center",sx:{gap:.75,mr:!i&&C?"5px":0,margin:0,padding:0},children:[c.jsx(N.Typography,{fontWeight:S.fontWeight,variant:"button",fontSize:S.fontSize,sx:{color:"inherit",lineHeight:1},children:e}),Zi(r)&&c.jsxs(N.Typography,{variant:"button",fontSize:S.fontSize,sx:{lineHeight:1},children:[r,"€"]}),Zi(a)&&c.jsxs(N.Typography,{variant:"button",sx:{textDecoration:"line-through",opacity:.6,fontWeight:600,lineHeight:1},fontSize:S.fontSize,children:[a,"€"]})]})})})};function Pm(e){return de("MuiTypography",e)}const Fi=ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Bm={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Gm=Q0(),Lm=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${J(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return ue(l,Pm,s)},Km=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${J(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(le(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${J(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ii={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tt=R.forwardRef(function(t,n){const{color:r,...a}=fe({props:t,name:"MuiTypography"}),i=!Bm[r],s=Gm({...a,...i&&{color:r}}),{align:l="inherit",className:d,component:u,gutterBottom:p=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=Ii,...f}=s,v={...s,align:l,color:r,className:d,component:u,gutterBottom:p,noWrap:m,paragraph:h,variant:y,variantMapping:g},A=u||(h?"p":g[y]||Ii[y])||"span",S=Lm(v);return c.jsx(Km,{as:A,ref:n,className:ne(S.root,d),...f,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(tt.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function Xm(e){return de("MuiLink",e)}const Dm=ce("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Jm=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const i=pt(e,`palette.${n}.main`)||pt(e,`palette.${n}`)||t.color;return e.alpha(i,.4)}const r=pt(e,`palette.${n}.main`,!1)||pt(e,`palette.${n}`,!1)||t.color,a=pt(e,`palette.${n}.mainChannel`)||pt(e,`palette.${n}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:Jn(r,.4)},Ui={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Qm=e=>{const{classes:t,component:n,focusVisible:r,underline:a}=e,i={root:["root",`underline${J(a)}`,n==="button"&&"button",r&&"focusVisible"]};return ue(i,Xm,t)},Hm=B(tt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${J(n.underline)}`],n.component==="button"&&t.button]}})(le(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Dm.focusVisible}`]:{outline:"auto"}}}]}))),od=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiLink"}),a=rt(),{className:i,color:s="primary",component:l="a",onBlur:d,onFocus:u,TypographyClasses:p,underline:m="always",variant:h="inherit",sx:y,...g}=r,[f,v]=R.useState(!1),A=T=>{Wr(T.target)||v(!1),d&&d(T)},S=T=>{Wr(T.target)&&v(!0),u&&u(T)},x={...r,color:s,component:l,focusVisible:f,underline:m,variant:h},C=Qm(x);return c.jsx(Hm,{color:s,className:ne(C.root,i),classes:p,component:l,onBlur:A,onFocus:S,ref:n,ownerState:x,variant:h,...g,sx:[...Ui[s]===void 0?[{color:s}]:[],...Array.isArray(y)?y:[y]],style:{...g.style,...m==="always"&&s!=="inherit"&&!Ui[s]&&{"--Link-underlineColor":Jm({theme:a,ownerState:x})}}})});process.env.NODE_ENV!=="production"&&(od.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:fo,onBlur:o.func,onFocus:o.func,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TypographyClasses:o.object,underline:o.oneOf(["always","hover","none"]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string])});const ad=Fp({createStyledComponent:B("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>fe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(ad.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});const $m=B(od)(({colorValue:e,weight:t})=>({display:"inline-flex",alignItems:"center",gap:4,textDecoration:"none",cursor:"pointer",fontWeight:t,lineHeight:1.25,color:e,"&:hover":{textDecoration:"underline"},"&[aria-disabled='true']":{pointerEvents:"none",opacity:.5,textDecoration:"none",cursor:"default"}})),mo=K.forwardRef(({label:e,color:t="text",weight:n=600,rightIcon:r,leftIcon:a,withArrow:i=!1,external:s=!1,loading:l=!1,disabled:d=!1,target:u,rel:p,...m},h)=>{const y=rt(),g=l||d,f=y.palette[t],v=t==="text"||t==="inherit"?"inherit":typeof f=="object"&&"main"in f?f.main:y.palette.text.primary,A=s?u??"_blank":u,S=s?p??"noopener noreferrer":p;return c.jsx($m,{ref:h,colorValue:v,weight:n,"aria-disabled":g?"true":void 0,target:A,rel:S,...m,children:c.jsx(ad,{direction:"row",alignItems:"center",gap:.5,sx:{opacity:l?.85:1},children:l?c.jsx(nr,{size:14}):c.jsxs(c.Fragment,{children:[r&&Ne(r,{size:16}),c.jsx(tt,{component:"span",variant:"h5",children:e}),a&&Ne(a,{size:16}),s&&c.jsx(Ie.ExternalLink,{size:16}),i&&c.jsx(Ie.ChevronRight,{size:18})]})})})}),_m=({severity:e,title:t,message:n="",messageSx:r,component:a,iconName:i,imageName:s,hideIcon:l=!1,actions:d=[],iconsEnd:u=[],onClose:p,width:m,customColor:h,noShadow:y=!1})=>{const g=N.useTheme(),f=h||(e?g.palette.banner[e].color:g.palette.background.paper),v=e?g.palette.banner[e].contrast:g.palette.black,A=l?!1:a??(s?gn(s,{sx:{width:60,height:60}}):i?Ne(i,{size:20,color:v}):void 0),S={color:e?g.palette.black:g.palette.text.primary,fontFamily:Y0.rightGrotesk,fontSize:g.typography.body2.fontSize},x=d.length>0&&c.jsx(N.Box,{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",justifyContent:{xs:"flex-start",sm:"flex-end"},mt:{xs:1,sm:0},width:{xs:"100%",sm:"auto"},children:d.map((T,E)=>T.useLink?c.jsx(mo,{label:T.label,href:T.href??"#",color:T.color,rightIcon:T.rightIcon,withArrow:!0},`${T.label}-${E}`):c.jsx(Fr,{label:T.label,onClick:T.onClick,colorType:T.color,variant:T.variant??"contained",size:"small",borderRadius:16},`${T.label}-${E}`))}),C=u.length>0&&c.jsx(N.Box,{display:"flex",gap:1,ml:{xs:0,sm:2},mt:{xs:1,sm:0},children:u.map((T,E)=>c.jsx(N.Box,{children:T},E))});return c.jsxs(N.Alert,{onClose:p??void 0,slotProps:{closeButton:{id:"close-id","aria-label":"Fermer",sx:{fontSize:g.typography.caption.fontSize,color:g.palette.mediumGray}}},severity:e,icon:A,sx:{width:m,borderRadius:1,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},backgroundColor:f,color:g.palette.text.primary,boxShadow:y?"none":g.shadows[1],px:4,py:2,"& .MuiAlert-message":{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},width:"100%",justifyContent:"flex-start",gap:g.spacing(1)},"& .MuiAlert-icon":{mt:0,mr:4}},children:[c.jsxs(N.Box,{display:"flex",flexDirection:"column",flex:"1",pr:{xs:0,sm:2},width:"100%",children:[t&&c.jsx(N.AlertTitle,{sx:{...S,fontWeight:g.typography.h5.fontWeight,mb:.5},children:t}),n&&c.jsx(N.Typography,{component:"span",sx:{...S,...r},children:n})]}),x,C]})},eh={xs:24,sm:32,md:40,lg:48,xl:64},th={circle:"50%",rounded:"12px",square:0},nh="#00FF66",Yi="#111",rh=({src:e,alt:t="",icon:n,size:r="md",shape:a="circle",withBorder:i=!1,borderColor:s=Yi,borderWidth:l=2,sx:d,...u})=>{const[p,m]=R.useState(!1),h=eh[r],y=th[a];return R.useEffect(()=>m(!1),[e]),c.jsx(N.Avatar,{src:p?void 0:e,alt:t,onError:()=>m(!0),sx:{width:h,height:h,borderRadius:y,bgcolor:nh,color:Yi,display:"flex",alignItems:"center",justifyContent:"center",border:i?`${l}px solid ${s}`:void 0,...d},...u,children:(!e||p)&&n})};function id(e){const t=R.useRef({});return R.useEffect(()=>{t.current=e}),t.current}function oh(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:a=!1}=e,i=id({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!a&&(s=!0);const{badgeContent:l,max:d=r}=s?i:e,u=l&&Number(l)>d?`${d}+`:l;return{badgeContent:l,invisible:s,max:d,displayValue:u}}function ah(e){return de("MuiBadge",e)}const Nt=ce("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function Ir(e){return typeof e=="string"}function sd(e,t,n){return e===void 0||Ir(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ld(e,t,n){return typeof e=="function"?e(t,n):e}function dd(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Pi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function cd(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const y=ne(n?.className,i,a?.className,r?.className),g={...n?.style,...a?.style,...r?.style},f={...n,...a,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const s=dd({...a,...r}),l=Pi(r),d=Pi(a),u=t(s),p=ne(u?.className,n?.className,i,a?.className,r?.className),m={...u?.style,...n?.style,...a?.style,...r?.style},h={...u,...n,...d,...l};return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function he(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...d}=t,{component:u,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...h}=i,y=p[e]||r,g=ld(m[e],a),{props:{component:f,...v},internalRef:A}=cd({className:n,...d,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),S=De(A,g?.ref,t.ref),x=e==="root"?f||u:f,C=sd(y,{...e==="root"&&!u&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...v,...x&&!l&&{as:x},...x&&l&&{component:x},ref:S},a);return[y,C]}const Io=10,Uo=4,ih=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:a,variant:i,classes:s={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}${J(a)}`,`overlap${J(a)}`,t!=="default"&&`color${J(t)}`]};return ue(l,ah,s)},sh=B("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),lh=B("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}${J(n.overlap)}`],n.color!=="default"&&t[`color${J(n.color)}`],n.invisible&&t.invisible]}})(le(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Io*2,lineHeight:1,padding:"0 6px",height:Io*2,borderRadius:Io,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ue(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Uo,height:Uo*2,minWidth:Uo*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Bi(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const ud=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiBadge"}),{anchorOrigin:a,className:i,classes:s,component:l,components:d={},componentsProps:u={},children:p,overlap:m="rectangular",color:h="default",invisible:y=!1,max:g=99,badgeContent:f,slots:v,slotProps:A,showZero:S=!1,variant:x="standard",...C}=r,{badgeContent:T,invisible:E,max:z,displayValue:k}=oh({max:g,invisible:y,badgeContent:f,showZero:S}),Z=id({anchorOrigin:Bi(a),color:h,overlap:m,variant:x,badgeContent:f}),F=E||T==null&&x!=="dot",{color:I=h,overlap:b=m,anchorOrigin:V,variant:O=x}=F?Z:r,q=Bi(V),w=O!=="dot"?k:void 0,G={...r,badgeContent:T,invisible:F,max:z,displayValue:w,showZero:S,anchorOrigin:q,color:I,overlap:b,variant:O},_=ih(G),U={slots:{root:v?.root??d.Root,badge:v?.badge??d.Badge},slotProps:{root:A?.root??u.root,badge:A?.badge??u.badge}},[W,M]=he("root",{elementType:sh,externalForwardedProps:{...U,...C},ownerState:G,className:ne(_.root,i),ref:n,additionalProps:{as:l}}),[P,Y]=he("badge",{elementType:lh,externalForwardedProps:U,ownerState:G,className:_.badge});return c.jsxs(W,{...M,children:[p,c.jsx(P,{...Y,children:w})]})});process.env.NODE_ENV!=="production"&&(ud.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});const dh=Tt(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ch(e){return de("MuiAvatar",e)}ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const uh=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ue({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ch,t)},ph=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(le(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),fh=B("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),mh=B(dh,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function hh({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,i]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),a}const pd=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiAvatar"}),{alt:a,children:i,className:s,component:l="div",slots:d={},slotProps:u={},imgProps:p,sizes:m,src:h,srcSet:y,variant:g="circular",...f}=r;let v=null;const A={...r,component:l,variant:g},S=hh({...p,...typeof u.img=="function"?u.img(A):u.img,src:h,srcSet:y}),x=h||y,C=x&&S!=="error";A.colorDefault=!C,delete A.ownerState;const T=uh(A),[E,z]=he("root",{ref:n,className:ne(T.root,s),elementType:ph,externalForwardedProps:{slots:d,slotProps:u,component:l,...f},ownerState:A}),[k,Z]=he("img",{className:T.img,elementType:fh,externalForwardedProps:{slots:d,slotProps:{img:{...p,...u.img}}},additionalProps:{alt:a,src:h,srcSet:y,sizes:m},ownerState:A}),[F,I]=he("fallback",{className:T.fallback,elementType:mh,externalForwardedProps:{slots:d,slotProps:u},shouldForwardComponentProp:!0,ownerState:A});return C?v=c.jsx(k,{...Z}):i||i===0?v=i:x&&a?v=a[0]:v=c.jsx(F,{...I}),c.jsx(E,{...z,children:v})});process.env.NODE_ENV!=="production"&&(pd.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function bh({children:e,content:t,dot:n=!1,showZero:r=!1,max:a=99,color:i="primary",variant:s="standard",overlap:l="circular",anchorOrigin:d={vertical:"top",horizontal:"right"},badgeProps:u,sx:p}){return c.jsx(N.Box,{sx:p,children:c.jsx(ud,{badgeContent:n?void 0:t,variant:n?"dot":s,showZero:r,max:a,color:i,overlap:l,anchorOrigin:d,...u,children:e})})}function gh({icon:e=c.jsx(Ie.ShoppingBag,{fontSize:"small"}),label:t,size:n=32,bgcolor:r="background.paper",color:a="text.primary",...i}){return c.jsx(pd,{sx:{width:n,height:n,bgcolor:r,color:a},...i,children:t??e})}const yh={CounterBadge:bh,Placeholder:gh},za=({value:e,state:t="default",icon:n,onClick:r})=>{const a=N.useTheme(),i=()=>{const p=a.palette.counter||{};switch(t){case"selected":return{border:`1px solid ${p.selected||a.palette.success.main}`,background:p.selectedGradient||p.selected||a.palette.success.main,color:a.palette.success.main,checkIcon:Ne("check",{color:a.palette.success.main})};case"error":return{border:`1px solid ${p.errorGradient||p.error||a.palette.error.main}`,background:p.errorGradient||p.error||a.palette.error.main,color:a.palette.error.main,checkIcon:null};default:return{border:`1px solid ${a.palette.grey[200]}`,background:a.palette.background.paper,color:a.palette.text.primary,checkIcon:null}}},{border:s,background:l,color:d,checkIcon:u}=i();return c.jsx(N.Box,{sx:{width:34,height:34,borderRadius:"50%",border:s,background:l,cursor:r?"pointer":"default",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},onClick:r,children:t==="selected"&&u?c.jsx(N.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:u}):n?c.jsx(N.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:Ne(n,{size:15,color:t==="selected"?a.palette.success.main:d})}):c.jsx(N.Typography,{variant:"body2",sx:{color:d,fontSize:"14px",fontWeight:600,lineHeight:"32px",textAlign:"center",width:"100%",height:"100%",display:"block",margin:0,padding:0},children:e})})},Xt=({children:e,orientation:t="horizontal",variant:n="fullWidth",...r})=>c.jsx(N.Divider,{orientation:t,variant:n,...r,children:e}),vh={sm:2,md:3,lg:4},xh={sm:56,md:72,lg:96};function Ah({title:e,description:t,actionLabel:n,onAction:r,secondaryAction:a,icon:i,imageName:s,size:l="md",align:d="center",fullHeight:u=!1,sx:p,children:m}){const h=d==="center",y=xh[l];return c.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:u?"center":"flex-start",alignItems:h?"center":"flex-start",height:u?"100%":"auto",textAlign:d,px:2,maxWidth:360,...p},children:c.jsxs(N.Stack,{spacing:vh[l],alignItems:h?"center":"flex-start",children:[s?c.jsx(N.Box,{component:"img",src:Oa(s),alt:"",sx:{width:y,height:y}}):i&&c.jsx(N.Box,{sx:{fontSize:y},children:i}),c.jsx(N.Typography,{variant:"h1",children:e}),t&&c.jsx(N.Typography,{variant:"caption",color:"text.secondary",sx:{...un(),textAlign:d},children:t}),(n||a)&&c.jsxs(N.Stack,{direction:"row",spacing:1,children:[n&&r&&c.jsx(mo,{label:n,onClick:r,withArrow:!0,color:"success"}),a&&c.jsx(N.Box,{children:a})]}),m]})})}const Ch=K.memo(({spacing:e=2,direction:t="row",rowSpacing:n,columnSpacing:r,justifyContent:a,alignItems:i,children:s,itemProps:l={xs:12,sm:6,md:4},numItems:d,...u})=>{const p=Array.isArray(l),m=K.Children.toArray(s).slice(0,d);return c.jsx(N.Grid,{container:!0,spacing:e,direction:t,rowSpacing:n,columnSpacing:r,justifyContent:a,alignItems:i,...u,children:m.map((h,y)=>{if(!K.isValidElement(h))return null;const g=p?l[y]||{}:l;return c.jsx(N.Grid,{item:!0,component:"div",...g,children:h},y)})})}),Th=({title:e,description:t,leftElement:n,centerElement:r,status:a,counterValue:i=1,rightIcon:s,rightElement:l,showStatus:d=!0,statusIcon:u,tagElement:p,withBorderBottom:m=!1,deletable:h,onDelete:y,withCustomStyle:g=!1})=>{const f=N.useTheme(),[v,A]=K.useState(!0),S=E=>{E.stopPropagation(),A(!1),y?.()};if(!v)return null;const x=()=>{switch(a){case"obligatoire":return"error";case"facultatif":return"default";case"selectionne":return"selected";default:return"default"}},T=(()=>{if(!a||!d)return null;switch(a){case"obligatoire":return{label:"Obligatoire",color:f.palette.error.main,icon:u??c.jsx(qr,{size:16})};case"facultatif":return{label:"Facultatif",color:f.palette.text.secondary,icon:u??c.jsx(qr,{size:16})};case"selectionne":return{label:"Sélectionné",color:f.palette.success.main,icon:u??c.jsx(Yl,{size:16})};default:return null}})();return c.jsxs(c.Fragment,{children:[c.jsxs(N.Stack,{direction:{xs:"column",sm:"row"},spacing:{xs:1.5,sm:2},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",px:{xs:1.5,sm:2},py:{xs:1,sm:1.5},sx:{backgroundColor:"transparent",flexWrap:"wrap",rowGap:1},children:[c.jsxs(N.Stack,{direction:"row",spacing:1,alignItems:"center",flexShrink:1,children:[n??(a&&c.jsx(za,{value:i,state:x()})),e&&c.jsx(N.ListItemText,{primary:c.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(N.Typography,{variant:"h4",color:"text.primary",sx:{lineHeight:1.2},children:e}),p]}),secondary:t&&c.jsx(N.Typography,{variant:"caption",sx:{lineHeight:1.6},children:t}),sx:{display:"flex",flexDirection:"column",justifyContent:"center",m:0,pl:4}})]}),r&&c.jsx(N.Box,{sx:{width:{xs:"100%",sm:"auto"},my:{xs:1,sm:0}},children:r}),c.jsxs(N.Stack,{direction:"row",spacing:1,alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",sx:{width:{xs:"100%",sm:"auto"}},children:[T&&c.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:.5,color:T.color,minWidth:"fit-content"},children:[T.icon,c.jsx(N.Typography,{variant:"body2",sx:{fontSize:{xs:"0.85rem",sm:"0.9rem"}},children:T.label})]}),s&&c.jsx(N.Box,{children:s}),l&&c.jsx(N.Stack,{direction:"row",spacing:1,alignItems:"center",children:l}),h&&c.jsx(N.IconButton,{size:"small",onClick:S,sx:{"&:hover":{backgroundColor:"secondaryColor.main",borderRadius:16}},children:Ne("close")})]})]}),m&&c.jsx(Xt,{sx:{borderColor:f.palette.divider,mt:g?"-2%":1}})]})};var br={exports:{}},gr={exports:{}};function mt(e){return getComputedStyle(e)}function Je(e,t){for(var n in t){var r=t[n];typeof r=="number"&&(r=r+"px"),e.style[n]=r}return e}function yr(e){var t=document.createElement("div");return t.className=e,t}var Gi=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Et(e,t){if(!Gi)throw new Error("No element matching method supported");return Gi.call(e,t)}function pn(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Li(e,t){return Array.prototype.filter.call(e.children,function(n){return Et(n,t)})}var ze={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},fd={x:null,y:null};function md(e,t){var n=e.element.classList,r=ze.state.scrolling(t);n.contains(r)?clearTimeout(fd[t]):n.add(r)}function hd(e,t){fd[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(ze.state.scrolling(t))},e.settings.scrollingThreshold)}function Sh(e,t){md(e,t),hd(e,t)}var rr=function(t){this.element=t,this.handlers={}},bd={isEmpty:{configurable:!0}};rr.prototype.bind=function(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)};rr.prototype.unbind=function(t,n){var r=this;this.handlers[t]=this.handlers[t].filter(function(a){return n&&a!==n?!0:(r.element.removeEventListener(t,a,!1),!1)})};rr.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)};bd.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})};Object.defineProperties(rr.prototype,bd);var Sn=function(){this.eventElements=[]};Sn.prototype.eventElement=function(t){var n=this.eventElements.filter(function(r){return r.element===t})[0];return n||(n=new rr(t),this.eventElements.push(n)),n};Sn.prototype.bind=function(t,n,r){this.eventElement(t).bind(n,r)};Sn.prototype.unbind=function(t,n,r){var a=this.eventElement(t);a.unbind(n,r),a.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(a),1)};Sn.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]};Sn.prototype.once=function(t,n,r){var a=this.eventElement(t),i=function(s){a.unbind(n,i),r(s)};a.bind(n,i)};function vr(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Ur(e,t,n,r,a){r===void 0&&(r=!0),a===void 0&&(a=!1);var i;if(t==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Nh(e,n,i,r,a)}function Nh(e,t,n,r,a){var i=n[0],s=n[1],l=n[2],d=n[3],u=n[4],p=n[5];r===void 0&&(r=!0),a===void 0&&(a=!1);var m=e.element;e.reach[d]=null,m[l]<1&&(e.reach[d]="start"),m[l]>e[i]-e[s]-1&&(e.reach[d]="end"),t&&(m.dispatchEvent(vr("ps-scroll-"+d)),t<0?m.dispatchEvent(vr("ps-scroll-"+u)):t>0&&m.dispatchEvent(vr("ps-scroll-"+p)),r&&Sh(e,d)),e.reach[d]&&(t||a)&&m.dispatchEvent(vr("ps-"+d+"-reach-"+e.reach[d]))}function Ee(e){return parseInt(e,10)||0}function Rh(e){return Et(e,"input,[contenteditable]")||Et(e,"select,[contenteditable]")||Et(e,"textarea,[contenteditable]")||Et(e,"button,[contenteditable]")}function Eh(e){var t=mt(e);return Ee(t.width)+Ee(t.paddingLeft)+Ee(t.paddingRight)+Ee(t.borderLeftWidth)+Ee(t.borderRightWidth)}var ln={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function At(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.floor(r.width),e.containerHeight=Math.floor(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Li(t,ze.element.rail("x")).forEach(function(a){return pn(a)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(Li(t,ze.element.rail("y")).forEach(function(a){return pn(a)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=Ki(e,Ee(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=Ee((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=Ki(e,Ee(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=Ee(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),Mh(t,e),e.scrollbarXActive?t.classList.add(ze.state.active("x")):(t.classList.remove(ze.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(ze.state.active("y")):(t.classList.remove(ze.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Ki(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Mh(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,Je(t.scrollbarXRail,n);var a={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?a.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:a.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?a.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:a.left=t.scrollbarYLeft+e.scrollLeft,Je(t.scrollbarYRail,a),Je(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Je(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Oh(e){e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,r=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=r*e.containerHeight,At(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,r=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=r*e.containerWidth,At(e),t.stopPropagation()})}var xr=null;function Vh(e){Xi(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Xi(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function Xi(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],s=t[4],l=t[5],d=t[6],u=t[7],p=t[8],m=e.element,h=null,y=null,g=null;function f(S){S.touches&&S.touches[0]&&(S[a]=S.touches[0]["page"+u.toUpperCase()]),xr===s&&(m[d]=h+g*(S[a]-y),md(e,u),At(e),S.stopPropagation(),S.preventDefault())}function v(){hd(e,u),e[p].classList.remove(ze.state.clicking),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",f),document.removeEventListener("touchend",v),xr=null}function A(S){xr===null&&(xr=s,h=m[d],S.touches&&(S[a]=S.touches[0]["page"+u.toUpperCase()]),y=S[a],g=(e[r]-e[n])/(e[i]-e[l]),S.touches?(document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",v)):(document.addEventListener("mousemove",f),document.addEventListener("mouseup",v)),e[p].classList.add(ze.state.clicking)),S.stopPropagation(),S.cancelable&&S.preventDefault()}e[s].addEventListener("mousedown",A),e[s].addEventListener("touchstart",A)}function kh(e){var t=e.element,n=function(){return Et(t,":hover")},r=function(){return Et(e.scrollbarX,":focus")||Et(e.scrollbarY,":focus")};function a(i,s){var l=Math.floor(t.scrollTop);if(i===0){if(!e.scrollbarYActive)return!1;if(l===0&&s>0||l>=e.contentHeight-e.containerHeight&&s<0)return!e.settings.wheelPropagation}var d=t.scrollLeft;if(s===0){if(!e.scrollbarXActive)return!1;if(d===0&&i<0||d>=e.contentWidth-e.containerWidth&&i>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&!(!n()&&!r())){var s=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(s){if(s.tagName==="IFRAME")s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(Rh(s))return}var l=0,d=0;switch(i.which){case 37:i.metaKey?l=-e.contentWidth:i.altKey?l=-e.containerWidth:l=-30;break;case 38:i.metaKey?d=e.contentHeight:i.altKey?d=e.containerHeight:d=30;break;case 39:i.metaKey?l=e.contentWidth:i.altKey?l=e.containerWidth:l=30;break;case 40:i.metaKey?d=-e.contentHeight:i.altKey?d=-e.containerHeight:d=-30;break;case 32:i.shiftKey?d=e.containerHeight:d=-e.containerHeight;break;case 33:d=e.containerHeight;break;case 34:d=-e.containerHeight;break;case 36:d=e.contentHeight;break;case 35:d=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&l!==0||e.settings.suppressScrollY&&d!==0||(t.scrollTop-=d,t.scrollLeft+=l,At(e),a(l,d)&&i.preventDefault())}})}function qh(e){var t=e.element;function n(s,l){var d=Math.floor(t.scrollTop),u=t.scrollTop===0,p=d+t.offsetHeight===t.scrollHeight,m=t.scrollLeft===0,h=t.scrollLeft+t.offsetWidth===t.scrollWidth,y;return Math.abs(l)>Math.abs(s)?y=u||p:y=m||h,y?!e.settings.wheelPropagation:!0}function r(s){var l=s.deltaX,d=-1*s.deltaY;return(typeof l>"u"||typeof d>"u")&&(l=-1*s.wheelDeltaX/6,d=s.wheelDeltaY/6),s.deltaMode&&s.deltaMode===1&&(l*=10,d*=10),l!==l&&d!==d&&(l=0,d=s.wheelDelta),s.shiftKey?[-d,-l]:[l,d]}function a(s,l,d){if(!ln.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(s))return!1;for(var u=s;u&&u!==t;){if(u.classList.contains(ze.element.consuming))return!0;var p=mt(u);if(d&&p.overflowY.match(/(scroll|auto)/)){var m=u.scrollHeight-u.clientHeight;if(m>0&&(u.scrollTop>0&&d<0||u.scrollTop<m&&d>0))return!0}if(l&&p.overflowX.match(/(scroll|auto)/)){var h=u.scrollWidth-u.clientWidth;if(h>0&&(u.scrollLeft>0&&l<0||u.scrollLeft<h&&l>0))return!0}u=u.parentNode}return!1}function i(s){var l=r(s),d=l[0],u=l[1];if(!a(s.target,d,u)){var p=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(u?t.scrollTop-=u*e.settings.wheelSpeed:t.scrollTop+=d*e.settings.wheelSpeed,p=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(d?t.scrollLeft+=d*e.settings.wheelSpeed:t.scrollLeft-=u*e.settings.wheelSpeed,p=!0):(t.scrollTop-=u*e.settings.wheelSpeed,t.scrollLeft+=d*e.settings.wheelSpeed),At(e),p=p||n(d,u),p&&!s.ctrlKey&&(s.stopPropagation(),s.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",i):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",i)}function zh(e){if(!ln.supportsTouch&&!ln.supportsIePointer)return;var t=e.element,n={startOffset:{},startTime:0,speed:{},easingLoop:null};function r(m,h){var y=Math.floor(t.scrollTop),g=t.scrollLeft,f=Math.abs(m),v=Math.abs(h);if(v>f){if(h<0&&y===e.contentHeight-e.containerHeight||h>0&&y===0)return window.scrollY===0&&h>0&&ln.isChrome}else if(f>v&&(m<0&&g===e.contentWidth-e.containerWidth||m>0&&g===0))return!0;return!0}function a(m,h){t.scrollTop-=h,t.scrollLeft-=m,At(e)}function i(m){return m.targetTouches?m.targetTouches[0]:m}function s(m){return m.target===e.scrollbarX||m.target===e.scrollbarY||m.pointerType&&m.pointerType==="pen"&&m.buttons===0?!1:!!(m.targetTouches&&m.targetTouches.length===1||m.pointerType&&m.pointerType!=="mouse"&&m.pointerType!==m.MSPOINTER_TYPE_MOUSE)}function l(m){if(s(m)){var h=i(m);n.startOffset.pageX=h.pageX,n.startOffset.pageY=h.pageY,n.startTime=new Date().getTime(),n.easingLoop!==null&&clearInterval(n.easingLoop)}}function d(m,h,y){if(!t.contains(m))return!1;for(var g=m;g&&g!==t;){if(g.classList.contains(ze.element.consuming))return!0;var f=mt(g);if(y&&f.overflowY.match(/(scroll|auto)/)){var v=g.scrollHeight-g.clientHeight;if(v>0&&(g.scrollTop>0&&y<0||g.scrollTop<v&&y>0))return!0}if(h&&f.overflowX.match(/(scroll|auto)/)){var A=g.scrollWidth-g.clientWidth;if(A>0&&(g.scrollLeft>0&&h<0||g.scrollLeft<A&&h>0))return!0}g=g.parentNode}return!1}function u(m){if(s(m)){var h=i(m),y={pageX:h.pageX,pageY:h.pageY},g=y.pageX-n.startOffset.pageX,f=y.pageY-n.startOffset.pageY;if(d(m.target,g,f))return;a(g,f),n.startOffset=y;var v=new Date().getTime(),A=v-n.startTime;A>0&&(n.speed.x=g/A,n.speed.y=f/A,n.startTime=v),r(g,f)&&m.cancelable&&m.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(n.easingLoop),n.easingLoop=setInterval(function(){if(e.isInitialized){clearInterval(n.easingLoop);return}if(!n.speed.x&&!n.speed.y){clearInterval(n.easingLoop);return}if(Math.abs(n.speed.x)<.01&&Math.abs(n.speed.y)<.01){clearInterval(n.easingLoop);return}a(n.speed.x*30,n.speed.y*30),n.speed.x*=.8,n.speed.y*=.8},10))}ln.supportsTouch?(e.event.bind(t,"touchstart",l),e.event.bind(t,"touchmove",u),e.event.bind(t,"touchend",p)):ln.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",l),e.event.bind(t,"pointermove",u),e.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",l),e.event.bind(t,"MSPointerMove",u),e.event.bind(t,"MSPointerUp",p)))}var wh=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},Wh={"click-rail":Oh,"drag-thumb":Vh,keyboard:kh,wheel:qh,touch:zh},or=function(t,n){var r=this;if(n===void 0&&(n={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(ze.main),this.settings=wh();for(var a in n)this.settings[a]=n[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return t.classList.add(ze.state.focus)},s=function(){return t.classList.remove(ze.state.focus)};this.isRtl=mt(t).direction==="rtl",this.isRtl===!0&&t.classList.add(ze.rtl),this.isNegativeScroll=(function(){var u=t.scrollLeft,p=null;return t.scrollLeft=-1,p=t.scrollLeft<0,t.scrollLeft=u,p})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Sn,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=yr(ze.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=yr(ze.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=mt(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ee(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ee(l.borderLeftWidth)+Ee(l.borderRightWidth),Je(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ee(l.marginLeft)+Ee(l.marginRight),Je(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=yr(ze.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=yr(ze.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=mt(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ee(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Eh(this.scrollbarY):null,this.railBorderYWidth=Ee(d.borderTopWidth)+Ee(d.borderBottomWidth),Je(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ee(d.marginTop)+Ee(d.marginBottom),Je(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(u){return Wh[u](r)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(u){return r.onScroll(u)}),At(this)};or.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Je(this.scrollbarXRail,{display:"block"}),Je(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ee(mt(this.scrollbarXRail).marginLeft)+Ee(mt(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ee(mt(this.scrollbarYRail).marginTop)+Ee(mt(this.scrollbarYRail).marginBottom),Je(this.scrollbarXRail,{display:"none"}),Je(this.scrollbarYRail,{display:"none"}),At(this),Ur(this,"top",0,!1,!0),Ur(this,"left",0,!1,!0),Je(this.scrollbarXRail,{display:""}),Je(this.scrollbarYRail,{display:""}))};or.prototype.onScroll=function(t){this.isAlive&&(At(this),Ur(this,"top",this.element.scrollTop-this.lastScrollTop),Ur(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};or.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),pn(this.scrollbarX),pn(this.scrollbarY),pn(this.scrollbarXRail),pn(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};or.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const jh=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),Zh=Vc(jh);var Di;function Fh(){return Di||(Di=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(v){for(var A=1;A<arguments.length;A++){var S=arguments[A];for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(v[x]=S[x])}return v},r=(function(){function v(A,S){for(var x=0;x<S.length;x++){var C=S[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,S,x){return S&&v(A.prototype,S),x&&v(A,x),A}})(),a=K,i=u(a),s=ml(),l=Zh,d=u(l);function u(v){return v&&v.__esModule?v:{default:v}}function p(v,A){var S={};for(var x in v)A.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(v,x)&&(S[x]=v[x]);return S}function m(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}function h(v,A){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:v}function y(v,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);v.prototype=Object.create(A&&A.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(v,A):v.__proto__=A)}var g={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(g);var f=(function(v){y(A,v);function A(S){m(this,A);var x=h(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S));return x.handleRef=x.handleRef.bind(x),x._handlerByEvent={},x}return r(A,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new d.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(x){this._updateEventHook(x),this.updateScroll(),x.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var x=this;Object.keys(this._handlerByEvent).forEach(function(C){var T=x._handlerByEvent[C];T&&x._container.removeEventListener(C,T,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var x=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(g).forEach(function(T){var E=x.props[g[T]],z=C[g[T]];if(E!==z){if(z){var k=x._handlerByEvent[T];x._container.removeEventListener(T,k,!1),x._handlerByEvent[T]=null}if(E){var Z=function(){return E(x._container)};x._container.addEventListener(T,Z,!1),x._handlerByEvent[T]=Z}}})}},{key:"_updateClassName",value:function(){var x=this.props.className,C=this._container.className.split(" ").filter(function(T){return T.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container"+(x?" "+x:"")+(C?" "+C:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(x){this._container=x,this.props.containerRef(x)}},{key:"render",value:function(){var x=this.props;x.className;var C=x.style;x.option,x.options,x.containerRef,x.onScrollY,x.onScrollX,x.onScrollUp,x.onScrollDown,x.onScrollLeft,x.onScrollRight,x.onYReachStart,x.onYReachEnd,x.onXReachStart,x.onXReachEnd;var T=x.component;x.onSync;var E=x.children,z=p(x,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),k=T;return i.default.createElement(k,n({style:C,ref:this.handleRef},z),E)}}]),A})(a.Component);t.default=f,f.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(A){return A.update()},component:"div"},f.propTypes={children:s.PropTypes.node.isRequired,className:s.PropTypes.string,style:s.PropTypes.object,option:s.PropTypes.object,options:s.PropTypes.object,containerRef:s.PropTypes.func,onScrollY:s.PropTypes.func,onScrollX:s.PropTypes.func,onScrollUp:s.PropTypes.func,onScrollDown:s.PropTypes.func,onScrollLeft:s.PropTypes.func,onScrollRight:s.PropTypes.func,onYReachStart:s.PropTypes.func,onYReachEnd:s.PropTypes.func,onXReachStart:s.PropTypes.func,onXReachEnd:s.PropTypes.func,onSync:s.PropTypes.func,component:s.PropTypes.string},e.exports=t.default})(gr,gr.exports)),gr.exports}var Ji;function Ih(){return Ji||(Ji=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Fh(),r=a(n);function a(i){return i&&i.__esModule?i:{default:i}}t.default=r.default,e.exports=t.default})(br,br.exports)),br.exports}var Uh=Ih();const Yh=cl(Uh),Ph=N.styled(N.Tabs)(({orientation:e,theme:t})=>({minHeight:"auto",backgroundColor:"transparent",...e==="horizontal"&&{"& .MuiTabs-scrollButtons":{display:"flex",color:t.palette.text.primary,"&.Mui-disabled":{opacity:.3}}},"& .MuiTabs-indicator":{display:"none"},...e==="vertical"&&{"& .MuiTabs-flexContainerVertical":{alignItems:"flex-start",gap:t.spacing(2)},"& .MuiTabs-scrollButtons":{display:"none"}}})),Bh=N.styled(N.Tab)(({theme:e})=>({minHeight:e.spacing(5),minWidth:"auto",padding:`${e.spacing(1)} ${e.spacing(2)}`,borderRadius:e.borderRadius.xxxl,transition:"all 0.2s ease-in-out",textTransform:"none",width:"auto",justifyContent:"flex-start",border:"1px solid transparent",backgroundColor:"transparent","&:hover":{backgroundColor:e.palette.grey[100],transform:"none"},"&.Mui-selected":{backgroundColor:"transparent",color:e.palette.text.primary,fontWeight:e.typography.h4.fontWeight,borderColor:"transparent",boxShadow:"none","&:hover":{backgroundColor:e.palette.grey[100]}},"&.Mui-disabled":{opacity:.3,pointerEvents:"none"},"& .MuiTab-icon":{marginRight:e.spacing(1)}})),Gh=({items:e=[],orientation:t="horizontal",value:n,onChange:r,selectedSection:a=0,onSectionSelect:i,onSectionClick:s,scrollToIndex:l,topOffset:d=50,variant:u="scrollable",scrollButtons:p=!1,allowScrollButtonsMobile:m=!1,centered:h=!1,tabSx:y,tabsSx:g,showScrollbar:f=!1,className:v="hide-scroll",sx:A})=>{const S=N.useTheme(),x=b=>b.image,C=b=>!!b.hidden,T=b=>!!b.disabled,[E,z]=K.useState(n||e[0]?.key||"0"),k=K.useRef(null),Z=K.useRef({});K.useEffect(()=>{e.forEach(b=>{const V=b.key;Z.current[V]||(Z.current[V]=K.createRef())})},[e]);const F=K.useCallback((b,V)=>{if(z(b),r?.(b),i?.(b.toString(),V),s?.(b.toString()),t==="vertical"){const O=Z.current[b];k.current&&O?.current&&(k.current.scrollTop=O.current.offsetTop-d)}},[r,i,s,t,d]);K.useEffect(()=>{if(l!==void 0&&e[l]){const b=e[l]?.key;F(b,l)}},[l,e,F]),K.useEffect(()=>{if(e[a]){const b=e[a].key;z(b)}},[a,e]),K.useEffect(()=>{n!==void 0&&z(n)},[n]);const I=(b,V)=>{const O=b.key,q=b.name,w=x(b),G=E===O,_=T(b);return c.jsxs(N.Box,{ref:Z.current[O],onClick:()=>!_&&F(O,V),sx:{display:"flex",alignItems:"center",gap:S.spacing(3),borderRadius:S.borderRadius.xxxl,cursor:_?"default":"pointer",transition:"all 0.2s ease-in-out",border:"1px solid transparent",backgroundColor:"transparent",opacity:_?.3:1,width:"max-content",alignSelf:"flex-start",marginLeft:0,"&:hover":_?{}:{backgroundColor:S.palette.grey[100]},...y},children:[w&&c.jsx(N.Box,{sx:{width:S.spacing(6),height:S.spacing(6),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,fontSize:S.typography.caption.fontSize},children:typeof w=="string"?w.startsWith("http")?c.jsx(N.Box,{component:"img",src:w,alt:q,sx:{width:"100%",height:"100%",objectFit:"cover"},onError:U=>{const W=U.target;W.style.display="none"}}):c.jsx(N.Box,{sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:S.typography.caption.fontSize},children:w}):w}),c.jsx(N.Typography,{variant:"h4",sx:{whiteSpace:"nowrap",fontWeight:G?S.typography.h4.fontWeight:S.typography.h5.fontWeight},children:q})]},O)};if(t==="horizontal"){const b=e.filter(V=>!C(V));return c.jsx(N.Box,{sx:{backgroundColor:"transparent",...A},children:c.jsx(Ph,{value:E,onChange:(V,O)=>{const q=b.findIndex(w=>w.key===O);q!==-1&&F(O,q)},orientation:"horizontal",variant:u,scrollButtons:p,allowScrollButtonsMobile:m,centered:h,sx:{gap:S.spacing(2),padding:S.spacing(1.5),"& .MuiTabs-scroller":{...!f&&{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}},...g},children:b.map(V=>c.jsx(Bh,{value:V.key,label:I(V,b.indexOf(V)),disabled:T(V),sx:{flex:"0 0 auto",minWidth:"auto",...y}},V.key))})})}if(t==="vertical"){const b=e.filter(V=>V&&!C(V));return c.jsx(Yh,{options:{wheelPropagation:!1},containerRef:V=>{V&&(k.current=V)},className:v,style:A,children:c.jsx(N.Box,{sx:{padding:S.spacing(2)},children:b.map(I)})})}return null},ar=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(ar.displayName="FormControlContext");function bt(){return R.useContext(ar)}function Lh(e){return de("PrivateSwitchBase",e)}ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kh=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&`edge${J(a)}`],input:["input"]};return ue(i,Lh,t)},Xh=B(tr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Dh=B("input",{name:"MuiSwitchBase",shouldForwardProp:Pe})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ho=R.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:m,inputProps:h,inputRef:y,name:g,onBlur:f,onChange:v,onFocus:A,readOnly:S,required:x=!1,tabIndex:C,type:T,value:E,slots:z={},slotProps:k={},...Z}=t,[F,I]=oa({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),b=bt(),V=D=>{A&&A(D),b&&b.onFocus&&b.onFocus(D)},O=D=>{f&&f(D),b&&b.onBlur&&b.onBlur(D)},q=D=>{if(D.nativeEvent.defaultPrevented)return;const $=D.target.checked;I($),v&&v(D,$)};let w=l;b&&typeof w>"u"&&(w=b.disabled);const G=T==="checkbox"||T==="radio",_={...t,checked:F,disabled:w,disableFocusRipple:d,edge:u},U=Kh(_),W={slots:z,slotProps:{input:h,...k}},[M,P]=he("root",{ref:n,elementType:Xh,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...W,component:"span",...Z},getSlotProps:D=>({...D,onFocus:$=>{D.onFocus?.($),V($)},onBlur:$=>{D.onBlur?.($),O($)}}),ownerState:_,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:w,role:void 0,tabIndex:null}}),[Y,X]=he("input",{ref:y,elementType:Dh,className:U.input,externalForwardedProps:W,getSlotProps:D=>({...D,onChange:$=>{D.onChange?.($),q($)}}),ownerState:_,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:w,id:G?m:void 0,name:g,readOnly:S,required:x,tabIndex:C,type:T,...T==="checkbox"&&E===void 0?{}:{value:E}}});return c.jsxs(M,{...P,children:[c.jsx(Y,{...X}),F?i:p]})});process.env.NODE_ENV!=="production"&&(ho.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:$e,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const Jh=Tt(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Qh=Tt(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Hh=Tt(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $h(e){return de("MuiCheckbox",e)}const Yo=ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_h=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${J(r)}`,`size${J(a)}`]},s=ue(i,$h,t);return{...t,...s}},e2=B(ho,{shouldForwardProp:e=>Pe(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${J(n.size)}`],n.color!=="default"&&t[`color${J(n.color)}`]]}})(le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t},style:{[`&.${Yo.checked}, &.${Yo.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Yo.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),t2=c.jsx(Qh,{}),n2=c.jsx(Jh,{}),r2=c.jsx(Hh,{}),ua=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCheckbox"}),{checkedIcon:a=t2,color:i="primary",icon:s=n2,indeterminate:l=!1,indeterminateIcon:d=r2,inputProps:u,size:p="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...f}=r,v=l?d:s,A=l?d:a,S={...r,disableRipple:m,color:i,indeterminate:l,size:p},x=_h(S),C=g.input??u,[T,E]=he("root",{ref:n,elementType:e2,className:ne(x.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:S,additionalProps:{type:"checkbox",icon:R.cloneElement(v,{fontSize:v.props.fontSize??p}),checkedIcon:R.cloneElement(A,{fontSize:A.props.fontSize??p}),disableRipple:m,slots:y,slotProps:{input:Xl(typeof C=="function"?C(S):C,{"data-indeterminate":l})}}});return c.jsx(T,{...E,classes:x})});process.env.NODE_ENV!=="production"&&(ua.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const o2=Tt(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),a2=Tt(c.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),i2=B("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Pe})({position:"relative",display:"flex"}),s2=B(o2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),l2=B(a2,{name:"MuiRadioButtonIcon"})(le(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function wa(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a={...e,checked:t};return c.jsxs(i2,{className:n.root,ownerState:a,children:[c.jsx(s2,{fontSize:r,className:n.background,ownerState:a}),c.jsx(l2,{fontSize:r,className:n.dot,ownerState:a})]})}process.env.NODE_ENV!=="production"&&(wa.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const gd=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(gd.displayName="RadioGroupContext");function d2(){return R.useContext(gd)}function c2(e){return de("MuiRadio",e)}const Qi=ce("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),u2=e=>{const{classes:t,color:n,size:r}=e,a={root:["root",`color${J(n)}`,r!=="medium"&&`size${J(r)}`]};return{...t,...ue(a,c2,t)}},p2=B(ho,{shouldForwardProp:e=>Pe(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${J(n.size)}`],t[`color${J(n.color)}`]]}})(le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Qi.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function f2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const m2=c.jsx(wa,{checked:!0}),h2=c.jsx(wa,{}),pa=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:i=m2,color:s="primary",icon:l=h2,name:d,onChange:u,size:p="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:v,...A}=r,S=bt();let x=h;S&&typeof x>"u"&&(x=S.disabled),x??=!1;const C={...r,disabled:x,disableRipple:y,color:s,size:p},T=u2(C),E=d2();let z=a;const k=ra(u,E&&E.onChange);let Z=d;E&&(typeof z>"u"&&(z=f2(E.value,r.value)),typeof Z>"u"&&(Z=E.name));const F=f.input??v,[I,b]=he("root",{ref:n,elementType:p2,className:ne(T.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...A},getSlotProps:V=>({...V,onChange:(O,...q)=>{V.onChange?.(O,...q),k(O,...q)}}),ownerState:C,additionalProps:{type:"radio",icon:R.cloneElement(l,{fontSize:l.props.fontSize??p}),checkedIcon:R.cloneElement(i,{fontSize:i.props.fontSize??p}),disabled:x,name:Z,checked:z,slots:g,slotProps:{input:typeof F=="function"?F(C):F}}});return c.jsx(I,{...b,classes:T})});process.env.NODE_ENV!=="production"&&(pa.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:$e,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Hi(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Yr(e,t=!1){return e&&(Hi(e.value)&&e.value!==""||t&&Hi(e.defaultValue)&&e.defaultValue!=="")}function b2(e){return e.startAdornment}function g2(e){return de("MuiFormControl",e)}ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const y2=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${J(n)}`,r&&"fullWidth"]};return ue(a,g2,t)},v2=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${J(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),yd=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormControl"}),{children:a,className:i,color:s="primary",component:l="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:f="medium",variant:v="outlined",...A}=r,S={...r,color:s,component:l,disabled:d,error:u,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:f,variant:v},x=y2(S),[C,T]=R.useState(()=>{let w=!1;return a&&R.Children.forEach(a,G=>{if(!Zo(G,["Input","Select"]))return;const _=Zo(G,["Select"])?G.props.input:G;_&&b2(_.props)&&(w=!0)}),w}),[E,z]=R.useState(()=>{let w=!1;return a&&R.Children.forEach(a,G=>{Zo(G,["Input","Select"])&&(Yr(G.props,!0)||Yr(G.props.inputProps,!0))&&(w=!0)}),w}),[k,Z]=R.useState(!1);d&&k&&Z(!1);const F=p!==void 0&&!d?p:k;let I;const b=R.useRef(!1);process.env.NODE_ENV!=="production"&&(I=()=>(b.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
143
+ `:null,Vm=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${J(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${J(n)}`,a&&"circleDisableShrink"]};return ue(i,Em,t)},km=B("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${J(n.color)}`]]}})(le(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Mm||{animation:`${da} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),qm=B("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),zm=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${J(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(le(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Om||{animation:`${ca} 1.4s ease-in-out infinite`}}]}))),wm=B("circle",{name:"MuiCircularProgress",slot:"Track"})(le(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),nr=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:d=40,style:u,thickness:p=3.6,value:m=0,variant:h="indeterminate",...y}=r,g={...r,color:i,disableShrink:s,size:d,thickness:p,value:m,variant:h,enableTrackSlot:l},f=Vm(g),v={},A={},S={};if(h==="determinate"){const x=2*Math.PI*((ot-p)/2);v.strokeDasharray=x.toFixed(3),S["aria-valuenow"]=Math.round(m),v.strokeDashoffset=`${((100-m)/100*x).toFixed(3)}px`,A.transform="rotate(-90deg)"}return c.jsx(km,{className:ne(f.root,a),style:{width:d,height:d,...A,...u},ownerState:g,ref:n,role:"progressbar",...S,...y,children:c.jsxs(qm,{className:f.svg,ownerState:g,viewBox:`${ot/2} ${ot/2} ${ot} ${ot}`,children:[l?c.jsx(wm,{className:f.track,ownerState:g,cx:ot,cy:ot,r:(ot-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,c.jsx(zm,{className:f.circle,style:v,ownerState:g,cx:ot,cy:ot,r:(ot-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(nr.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Dt(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function Wm(e){return de("MuiButton",e)}const Ft=ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ed=R.createContext({});process.env.NODE_ENV!=="production"&&(ed.displayName="ButtonGroupContext");const td=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(td.displayName="ButtonGroupButtonContext");const jm=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,loading:s,loadingPosition:l,classes:d}=e,u={root:["root",s&&"loading",i,`${i}${J(t)}`,`size${J(a)}`,`${i}Size${J(a)}`,`color${J(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${J(l)}`],startIcon:["icon","startIcon",`iconSize${J(a)}`],endIcon:["icon","endIcon",`iconSize${J(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=ue(u,Wm,d);return{...d,...p}},nd=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Zm=B(tr,{shouldForwardProp:e=>Pe(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${J(n.color)}`],t[`size${J(n.size)}`],t[`${n.variant}Size${J(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ft.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ft.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ue()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ft.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ft.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ft.loading}`]:{color:"transparent"}}}]}})),Fm=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...nd]})),Im=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...nd]})),Um=B("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ji=B("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),rd=R.forwardRef(function(t,n){const r=R.useContext(ed),a=R.useContext(td),i=Dn(r,t),s=fe({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:p,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:v=!1,id:A,loading:S=null,loadingIndicator:x,loadingPosition:C="center",size:T="medium",startIcon:E,type:z,variant:k="text",...Z}=s,F=po(A),I=x??c.jsx(nr,{"aria-labelledby":F,color:"inherit",size:16}),b={...s,color:d,component:u,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:v,loading:S,loadingIndicator:I,loadingPosition:C,size:T,type:z,variant:k},V=jm(b),O=(E||S&&C==="start")&&c.jsx(Fm,{className:V.startIcon,ownerState:b,children:E||c.jsx(ji,{className:V.loadingIconPlaceholder,ownerState:b})}),q=(g||S&&C==="end")&&c.jsx(Im,{className:V.endIcon,ownerState:b,children:g||c.jsx(ji,{className:V.loadingIconPlaceholder,ownerState:b})}),w=a||"",G=typeof S=="boolean"?c.jsx("span",{className:V.loadingWrapper,style:{display:"contents"},children:S&&c.jsx(Um,{className:V.loadingIndicator,ownerState:b,children:I})}):null;return c.jsxs(Zm,{ownerState:b,className:ne(r.className,V.root,p,w),component:u,disabled:m||S,focusRipple:!y,focusVisibleClassName:ne(V.focusVisible,f),ref:n,type:z,id:S?F:A,...Z,classes:V,children:[O,C!=="end"&&G,l,C==="end"&&G,q]})});process.env.NODE_ENV!=="production"&&(rd.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});const hr={Small:"small",Medium:"medium",Large:"large"},Zi=e=>!(e==null||e===""||typeof e=="string"&&e.trim()===""||typeof e=="number"&&isNaN(e)),Ym=e=>{switch(e){case pe.Primary:return"primary";case pe.Secondary:return"secondary";case pe.Tertiary:return"tertiary";case pe.Transparent:return"transparent";case pe.SecondaryColor:return"secondaryColor";case pe.Error:return"destructive";default:return"primary"}},Fr=({label:e,colorType:t="primary",borderRadius:n=8,price:r,Discount:a,RightIcon:i=!1,disabled:s,sx:l,onClick:d,fontSize:u,leftIcon:p,height:m,state:h,size:y=hr.Medium,withoutHover:g=!1,...f})=>{const v=K0(t),A=Ym(t),S={[hr.Small]:{height:m||32,paddingX:1.5,paddingY:1.5,fontSize:u||12,fontWeight:400,gap:1,iconPadding:.5},[hr.Medium]:{height:m||40,paddingX:2,paddingY:1.25,fontSize:u||14,gap:1.25,iconPadding:.75,fontWeight:620},[hr.Large]:{height:m||48,paddingX:2.5,paddingY:1.5,fontSize:u||16,fontWeight:620,gap:1.5,iconPadding:1}}[y],x={color:"currentColor"},C=p?Ne(p,x):void 0,T=i?Ne("ChevronDown",x):void 0,E={borderRadius:`${n}px !important`,textTransform:"uppercase",fontWeight:S.fontWeight,px:S.paddingX,py:S.paddingY,minWidth:100,gap:S.gap,height:S.height,fontSize:S.fontSize,boxShadow:"none !important",transition:"all 0.2s ease-in-out","& .MuiButton-startIcon, & .MuiButton-endIcon":{margin:0,paddingLeft:S.iconPadding,paddingRight:S.iconPadding},...i?{}:{pr:S.paddingX+S.iconPadding},"&:hover":{boxShadow:"none !important",transform:"translateY(-1px)"},"&:active":{transform:"translateY(0)"}},z=N.useTheme(),k=Nf(z.palette.secondaryColor.main),Z=k[A].default,F=k[A].hover,I=k[A].disabled;h==="hover"?Object.assign(E,{backgroundColor:F.bg,color:F.text,border:`1px solid ${F.border}`,"&:hover":{backgroundColor:F.bg,color:F.text,border:`1px solid ${F.border}`,transform:"none"}}):s?Object.assign(E,{backgroundColor:I.bg,color:I.text,border:`1px solid ${I.border}`,"&:hover":{backgroundColor:I.bg,color:I.text,border:`1px solid ${I.border}`,transform:"none"}}):Object.assign(E,{backgroundColor:Z.bg,color:Z.text,border:`1px solid ${Z.border}`,"&:hover":{backgroundColor:!g&&F.bg,color:!g&&F.text,border:!g&&`1px solid ${F.border}`,transform:!g&&"translateY(-1px)"}});const b=Array.isArray(l)?[E,...l]:[E,l].filter(Boolean);return c.jsx(rd,{color:v,disabled:s,startIcon:C,endIcon:T,sx:b,onClick:d,...f,children:c.jsx(N.Stack,{direction:"row",alignItems:"center",justifyContent:"center",sx:{gap:S.gap,width:"100%",flex:1},children:c.jsxs(N.Stack,{direction:"row",alignItems:"center",sx:{gap:.75,mr:!i&&C?"5px":0,margin:0,padding:0},children:[c.jsx(N.Typography,{fontWeight:S.fontWeight,variant:"button",fontSize:S.fontSize,sx:{color:"inherit",lineHeight:1},children:e}),Zi(r)&&c.jsxs(N.Typography,{variant:"button",fontSize:S.fontSize,sx:{lineHeight:1},children:[r,"€"]}),Zi(a)&&c.jsxs(N.Typography,{variant:"button",sx:{textDecoration:"line-through",opacity:.6,fontWeight:600,lineHeight:1},fontSize:S.fontSize,children:[a,"€"]})]})})})};function Pm(e){return de("MuiTypography",e)}const Fi=ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Bm={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Gm=Q0(),Lm=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${J(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return ue(l,Pm,s)},Km=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${J(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(le(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${J(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ii={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tt=R.forwardRef(function(t,n){const{color:r,...a}=fe({props:t,name:"MuiTypography"}),i=!Bm[r],s=Gm({...a,...i&&{color:r}}),{align:l="inherit",className:d,component:u,gutterBottom:p=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=Ii,...f}=s,v={...s,align:l,color:r,className:d,component:u,gutterBottom:p,noWrap:m,paragraph:h,variant:y,variantMapping:g},A=u||(h?"p":g[y]||Ii[y])||"span",S=Lm(v);return c.jsx(Km,{as:A,ref:n,className:ne(S.root,d),...f,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(tt.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function Xm(e){return de("MuiLink",e)}const Dm=ce("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Jm=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const i=pt(e,`palette.${n}.main`)||pt(e,`palette.${n}`)||t.color;return e.alpha(i,.4)}const r=pt(e,`palette.${n}.main`,!1)||pt(e,`palette.${n}`,!1)||t.color,a=pt(e,`palette.${n}.mainChannel`)||pt(e,`palette.${n}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:Jn(r,.4)},Ui={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Qm=e=>{const{classes:t,component:n,focusVisible:r,underline:a}=e,i={root:["root",`underline${J(a)}`,n==="button"&&"button",r&&"focusVisible"]};return ue(i,Xm,t)},Hm=B(tt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${J(n.underline)}`],n.component==="button"&&t.button]}})(le(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Dm.focusVisible}`]:{outline:"auto"}}}]}))),od=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiLink"}),a=rt(),{className:i,color:s="primary",component:l="a",onBlur:d,onFocus:u,TypographyClasses:p,underline:m="always",variant:h="inherit",sx:y,...g}=r,[f,v]=R.useState(!1),A=T=>{Wr(T.target)||v(!1),d&&d(T)},S=T=>{Wr(T.target)&&v(!0),u&&u(T)},x={...r,color:s,component:l,focusVisible:f,underline:m,variant:h},C=Qm(x);return c.jsx(Hm,{color:s,className:ne(C.root,i),classes:p,component:l,onBlur:A,onFocus:S,ref:n,ownerState:x,variant:h,...g,sx:[...Ui[s]===void 0?[{color:s}]:[],...Array.isArray(y)?y:[y]],style:{...g.style,...m==="always"&&s!=="inherit"&&!Ui[s]&&{"--Link-underlineColor":Jm({theme:a,ownerState:x})}}})});process.env.NODE_ENV!=="production"&&(od.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:fo,onBlur:o.func,onFocus:o.func,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TypographyClasses:o.object,underline:o.oneOf(["always","hover","none"]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string])});const ad=Fp({createStyledComponent:B("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>fe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(ad.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});const $m=B(od)(({colorValue:e,weight:t})=>({display:"inline-flex",alignItems:"center",gap:4,textDecoration:"none",cursor:"pointer",fontWeight:t,lineHeight:1.25,color:e,"&:hover":{textDecoration:"underline"},"&[aria-disabled='true']":{pointerEvents:"none",opacity:.5,textDecoration:"none",cursor:"default"}})),mo=K.forwardRef(({label:e,color:t="text",weight:n=600,rightIcon:r,leftIcon:a,withArrow:i=!1,external:s=!1,loading:l=!1,disabled:d=!1,target:u,rel:p,...m},h)=>{const y=rt(),g=l||d,f=y.palette[t],v=t==="text"||t==="inherit"?"inherit":typeof f=="object"&&"main"in f?f.main:y.palette.text.primary,A=s?u??"_blank":u,S=s?p??"noopener noreferrer":p;return c.jsx($m,{ref:h,colorValue:v,weight:n,"aria-disabled":g?"true":void 0,target:A,rel:S,...m,children:c.jsx(ad,{direction:"row",alignItems:"center",gap:.5,sx:{opacity:l?.85:1},children:l?c.jsx(nr,{size:14}):c.jsxs(c.Fragment,{children:[r&&Ne(r,{size:16}),c.jsx(tt,{component:"span",variant:"h5",children:e}),a&&Ne(a,{size:16}),s&&c.jsx(Ie.ExternalLink,{size:16}),i&&c.jsx(Ie.ChevronRight,{size:18})]})})})}),_m=({severity:e,title:t,message:n="",messageSx:r,component:a,iconName:i,imageName:s,hideIcon:l=!1,actions:d=[],iconsEnd:u=[],onClose:p,width:m,customColor:h,noShadow:y=!1})=>{const g=N.useTheme(),f=h||(e?g.palette.banner[e].color:g.palette.background.paper),v=e?g.palette.banner[e].contrast:g.palette.black,A=l?!1:a??(s?gn(s,{sx:{width:60,height:60}}):i?Ne(i,{size:20,color:v}):void 0),S={color:e?g.palette.black:g.palette.text.primary,fontFamily:Y0.rightGrotesk,fontSize:g.typography.body2.fontSize},x=d.length>0&&c.jsx(N.Box,{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",justifyContent:{xs:"flex-start",sm:"flex-end"},mt:{xs:1,sm:0},width:{xs:"100%",sm:"auto"},children:d.map((T,E)=>T.useLink?c.jsx(mo,{label:T.label,href:T.href??"#",color:T.color,rightIcon:T.rightIcon,withArrow:!0},`${T.label}-${E}`):c.jsx(Fr,{label:T.label,onClick:T.onClick,colorType:T.color,variant:T.variant??"contained",size:"small",borderRadius:16},`${T.label}-${E}`))}),C=u.length>0&&c.jsx(N.Box,{display:"flex",gap:1,ml:{xs:0,sm:2},mt:{xs:1,sm:0},children:u.map((T,E)=>c.jsx(N.Box,{children:T},E))});return c.jsxs(N.Alert,{onClose:p??void 0,slotProps:{closeButton:{id:"close-id","aria-label":"Fermer",sx:{fontSize:g.typography.caption.fontSize,color:g.palette.mediumGray}}},severity:e,icon:A,sx:{width:m,borderRadius:1,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},backgroundColor:f,color:g.palette.text.primary,boxShadow:y?"none":g.shadows[1],px:4,py:2,"& .MuiAlert-message":{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},width:"100%",justifyContent:"flex-start",gap:g.spacing(1)},"& .MuiAlert-icon":{mt:0,mr:4}},children:[c.jsxs(N.Box,{display:"flex",flexDirection:"column",flex:"1",pr:{xs:0,sm:2},width:"100%",children:[t&&c.jsx(N.AlertTitle,{sx:{...S,fontWeight:g.typography.h5.fontWeight,mb:.5},children:t}),n&&c.jsx(N.Typography,{component:"span",sx:{...S,...r},children:n})]}),x,C]})},eh={xs:24,sm:32,md:40,lg:48,xl:64},th={circle:"50%",rounded:"12px",square:0},nh="#00FF66",Yi="#111",rh=({src:e,alt:t="",icon:n,size:r="md",shape:a="circle",withBorder:i=!1,borderColor:s=Yi,borderWidth:l=2,sx:d,...u})=>{const[p,m]=R.useState(!1),h=eh[r],y=th[a];return R.useEffect(()=>m(!1),[e]),c.jsx(N.Avatar,{src:p?void 0:e,alt:t,onError:()=>m(!0),sx:{width:h,height:h,borderRadius:y,bgcolor:nh,color:Yi,display:"flex",alignItems:"center",justifyContent:"center",border:i?`${l}px solid ${s}`:void 0,...d},...u,children:(!e||p)&&n})};function id(e){const t=R.useRef({});return R.useEffect(()=>{t.current=e}),t.current}function oh(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:a=!1}=e,i=id({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!a&&(s=!0);const{badgeContent:l,max:d=r}=s?i:e,u=l&&Number(l)>d?`${d}+`:l;return{badgeContent:l,invisible:s,max:d,displayValue:u}}function ah(e){return de("MuiBadge",e)}const Nt=ce("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function Ir(e){return typeof e=="string"}function sd(e,t,n){return e===void 0||Ir(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ld(e,t,n){return typeof e=="function"?e(t,n):e}function dd(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Pi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function cd(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const y=ne(n?.className,i,a?.className,r?.className),g={...n?.style,...a?.style,...r?.style},f={...n,...a,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const s=dd({...a,...r}),l=Pi(r),d=Pi(a),u=t(s),p=ne(u?.className,n?.className,i,a?.className,r?.className),m={...u?.style,...n?.style,...a?.style,...r?.style},h={...u,...n,...d,...l};return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function he(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...d}=t,{component:u,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...h}=i,y=p[e]||r,g=ld(m[e],a),{props:{component:f,...v},internalRef:A}=cd({className:n,...d,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),S=De(A,g?.ref,t.ref),x=e==="root"?f||u:f,C=sd(y,{...e==="root"&&!u&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...v,...x&&!l&&{as:x},...x&&l&&{component:x},ref:S},a);return[y,C]}const Io=10,Uo=4,ih=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:a,variant:i,classes:s={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}${J(a)}`,`overlap${J(a)}`,t!=="default"&&`color${J(t)}`]};return ue(l,ah,s)},sh=B("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),lh=B("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}${J(n.overlap)}`],n.color!=="default"&&t[`color${J(n.color)}`],n.invisible&&t.invisible]}})(le(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Io*2,lineHeight:1,padding:"0 6px",height:Io*2,borderRadius:Io,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ue(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Uo,height:Uo*2,minWidth:Uo*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Bi(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const ud=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiBadge"}),{anchorOrigin:a,className:i,classes:s,component:l,components:d={},componentsProps:u={},children:p,overlap:m="rectangular",color:h="default",invisible:y=!1,max:g=99,badgeContent:f,slots:v,slotProps:A,showZero:S=!1,variant:x="standard",...C}=r,{badgeContent:T,invisible:E,max:z,displayValue:k}=oh({max:g,invisible:y,badgeContent:f,showZero:S}),Z=id({anchorOrigin:Bi(a),color:h,overlap:m,variant:x,badgeContent:f}),F=E||T==null&&x!=="dot",{color:I=h,overlap:b=m,anchorOrigin:V,variant:O=x}=F?Z:r,q=Bi(V),w=O!=="dot"?k:void 0,G={...r,badgeContent:T,invisible:F,max:z,displayValue:w,showZero:S,anchorOrigin:q,color:I,overlap:b,variant:O},_=ih(G),U={slots:{root:v?.root??d.Root,badge:v?.badge??d.Badge},slotProps:{root:A?.root??u.root,badge:A?.badge??u.badge}},[W,M]=he("root",{elementType:sh,externalForwardedProps:{...U,...C},ownerState:G,className:ne(_.root,i),ref:n,additionalProps:{as:l}}),[P,Y]=he("badge",{elementType:lh,externalForwardedProps:U,ownerState:G,className:_.badge});return c.jsxs(W,{...M,children:[p,c.jsx(P,{...Y,children:w})]})});process.env.NODE_ENV!=="production"&&(ud.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});const dh=Tt(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ch(e){return de("MuiAvatar",e)}ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const uh=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ue({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ch,t)},ph=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(le(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),fh=B("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),mh=B(dh,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function hh({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,i]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),a}const pd=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiAvatar"}),{alt:a,children:i,className:s,component:l="div",slots:d={},slotProps:u={},imgProps:p,sizes:m,src:h,srcSet:y,variant:g="circular",...f}=r;let v=null;const A={...r,component:l,variant:g},S=hh({...p,...typeof u.img=="function"?u.img(A):u.img,src:h,srcSet:y}),x=h||y,C=x&&S!=="error";A.colorDefault=!C,delete A.ownerState;const T=uh(A),[E,z]=he("root",{ref:n,className:ne(T.root,s),elementType:ph,externalForwardedProps:{slots:d,slotProps:u,component:l,...f},ownerState:A}),[k,Z]=he("img",{className:T.img,elementType:fh,externalForwardedProps:{slots:d,slotProps:{img:{...p,...u.img}}},additionalProps:{alt:a,src:h,srcSet:y,sizes:m},ownerState:A}),[F,I]=he("fallback",{className:T.fallback,elementType:mh,externalForwardedProps:{slots:d,slotProps:u},shouldForwardComponentProp:!0,ownerState:A});return C?v=c.jsx(k,{...Z}):i||i===0?v=i:x&&a?v=a[0]:v=c.jsx(F,{...I}),c.jsx(E,{...z,children:v})});process.env.NODE_ENV!=="production"&&(pd.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function bh({children:e,content:t,dot:n=!1,showZero:r=!1,max:a=99,color:i="primary",variant:s="standard",overlap:l="circular",anchorOrigin:d={vertical:"top",horizontal:"right"},badgeProps:u,sx:p}){return c.jsx(N.Box,{sx:p,children:c.jsx(ud,{badgeContent:n?void 0:t,variant:n?"dot":s,showZero:r,max:a,color:i,overlap:l,anchorOrigin:d,...u,children:e})})}function gh({icon:e=c.jsx(Ie.ShoppingBag,{fontSize:"small"}),label:t,size:n=32,bgcolor:r="background.paper",color:a="text.primary",...i}){return c.jsx(pd,{sx:{width:n,height:n,bgcolor:r,color:a},...i,children:t??e})}const yh={CounterBadge:bh,Placeholder:gh},za=({value:e,state:t="default",icon:n,onClick:r})=>{const a=N.useTheme(),i=()=>{const p=a.palette.counter||{};switch(t){case"selected":return{border:`1px solid ${p.selected||a.palette.success.main}`,background:p.selectedGradient||p.selected||a.palette.success.main,color:a.palette.success.main,checkIcon:Ne("check",{color:a.palette.success.main})};case"error":return{border:`1px solid ${p.errorGradient||p.error||a.palette.error.main}`,background:p.errorGradient||p.error||a.palette.error.main,color:a.palette.error.main,checkIcon:null};default:return{border:`1px solid ${a.palette.grey[200]}`,background:a.palette.background.paper,color:a.palette.text.primary,checkIcon:null}}},{border:s,background:l,color:d,checkIcon:u}=i();return c.jsx(N.Box,{sx:{width:34,height:34,borderRadius:"50%",border:s,background:l,cursor:r?"pointer":"default",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},onClick:r,children:t==="selected"&&u?c.jsx(N.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:u}):n?c.jsx(N.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:Ne(n,{size:15,color:t==="selected"?a.palette.success.main:d})}):c.jsx(N.Typography,{variant:"body2",sx:{color:d,fontSize:"14px",fontWeight:600,lineHeight:"32px",textAlign:"center",width:"100%",height:"100%",display:"block",margin:0,padding:0},children:e})})},Xt=({children:e,orientation:t="horizontal",variant:n="fullWidth",...r})=>c.jsx(N.Divider,{orientation:t,variant:n,...r,children:e}),vh={sm:2,md:3,lg:4},xh={sm:56,md:72,lg:96};function Ah({title:e,description:t,actionLabel:n,onAction:r,secondaryAction:a,icon:i,imageName:s,size:l="md",align:d="center",fullHeight:u=!1,sx:p,children:m}){const h=d==="center",y=xh[l];return c.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:u?"center":"flex-start",alignItems:h?"center":"flex-start",height:u?"100%":"auto",textAlign:d,px:2,maxWidth:360,...p},children:c.jsxs(N.Stack,{spacing:vh[l],alignItems:h?"center":"flex-start",children:[s?c.jsx(N.Box,{component:"img",src:Oa(s),alt:"",sx:{width:y,height:y}}):i&&c.jsx(N.Box,{sx:{fontSize:y},children:i}),c.jsx(N.Typography,{variant:"h1",children:e}),t&&c.jsx(N.Typography,{variant:"caption",color:"text.secondary",sx:{...un(),textAlign:d},children:t}),(n||a)&&c.jsxs(N.Stack,{direction:"row",spacing:1,children:[n&&r&&c.jsx(mo,{label:n,onClick:r,withArrow:!0,color:"success"}),a&&c.jsx(N.Box,{children:a})]}),m]})})}const Ch=K.memo(({spacing:e=2,direction:t="row",rowSpacing:n,columnSpacing:r,justifyContent:a,alignItems:i,children:s,itemProps:l={xs:12,sm:6,md:4},numItems:d,...u})=>{const p=Array.isArray(l),m=K.Children.toArray(s).slice(0,d);return c.jsx(N.Grid,{container:!0,spacing:e,direction:t,rowSpacing:n,columnSpacing:r,justifyContent:a,alignItems:i,...u,children:m.map((h,y)=>{if(!K.isValidElement(h))return null;const g=p?l[y]||{}:l;return c.jsx(N.Grid,{item:!0,component:"div",...g,children:h},y)})})}),Th=({title:e,description:t,leftElement:n,centerElement:r,status:a,counterValue:i=1,rightIcon:s,rightElement:l,showStatus:d=!0,statusIcon:u,tagElement:p,withBorderBottom:m=!1,deletable:h,onDelete:y,withCustomStyle:g=!1})=>{const f=N.useTheme(),[v,A]=K.useState(!0),S=E=>{E.stopPropagation(),A(!1),y?.()};if(!v)return null;const x=()=>{switch(a){case"obligatoire":return"error";case"facultatif":return"default";case"selectionne":return"selected";default:return"default"}},T=(()=>{if(!a||!d)return null;switch(a){case"obligatoire":return{label:"Obligatoire",color:f.palette.error.main,icon:u??c.jsx(qr,{size:16})};case"facultatif":return{label:"Facultatif",color:f.palette.text.secondary,icon:u??c.jsx(qr,{size:16})};case"selectionne":return{label:"Sélectionné",color:f.palette.success.main,icon:u??c.jsx(Yl,{size:16})};default:return null}})();return c.jsxs(c.Fragment,{children:[c.jsxs(N.Stack,{direction:{xs:"column",sm:"row"},spacing:{xs:1.5,sm:2},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",px:{xs:1.5,sm:2},py:{xs:1,sm:1.5},sx:{backgroundColor:"transparent",flexWrap:"wrap",rowGap:1},children:[c.jsxs(N.Stack,{direction:"row",spacing:1,alignItems:"center",flexShrink:1,children:[n??(a&&c.jsx(za,{value:i,state:x()})),e&&c.jsx(N.ListItemText,{primary:c.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(N.Typography,{variant:"h4",color:"text.primary",sx:{lineHeight:1.2},children:e}),p]}),secondary:t&&c.jsx(N.Typography,{variant:"caption",sx:{lineHeight:1.6},children:t}),sx:{display:"flex",flexDirection:"column",justifyContent:"center",m:0,pl:4}})]}),r&&c.jsx(N.Box,{sx:{width:{xs:"100%",sm:"auto"},my:{xs:1,sm:0}},children:r}),c.jsxs(N.Stack,{direction:"row",spacing:1,alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",sx:{width:{xs:"100%",sm:"auto"}},children:[T&&c.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:.5,color:T.color,minWidth:"fit-content"},children:[T.icon,c.jsx(N.Typography,{variant:"body2",sx:{fontSize:{xs:"0.85rem",sm:"0.9rem"}},children:T.label})]}),s&&c.jsx(N.Box,{children:s}),l&&c.jsx(N.Stack,{direction:"row",spacing:1,alignItems:"center",children:l}),h&&c.jsx(N.IconButton,{size:"small",onClick:S,sx:{"&:hover":{backgroundColor:"secondaryColor.main",borderRadius:16}},children:Ne("close")})]})]}),m&&c.jsx(Xt,{sx:{borderColor:f.palette.divider,mt:g?"-2%":1}})]})};var br={exports:{}},gr={exports:{}};function mt(e){return getComputedStyle(e)}function Je(e,t){for(var n in t){var r=t[n];typeof r=="number"&&(r=r+"px"),e.style[n]=r}return e}function yr(e){var t=document.createElement("div");return t.className=e,t}var Gi=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Et(e,t){if(!Gi)throw new Error("No element matching method supported");return Gi.call(e,t)}function pn(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Li(e,t){return Array.prototype.filter.call(e.children,function(n){return Et(n,t)})}var ze={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},fd={x:null,y:null};function md(e,t){var n=e.element.classList,r=ze.state.scrolling(t);n.contains(r)?clearTimeout(fd[t]):n.add(r)}function hd(e,t){fd[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(ze.state.scrolling(t))},e.settings.scrollingThreshold)}function Sh(e,t){md(e,t),hd(e,t)}var rr=function(t){this.element=t,this.handlers={}},bd={isEmpty:{configurable:!0}};rr.prototype.bind=function(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)};rr.prototype.unbind=function(t,n){var r=this;this.handlers[t]=this.handlers[t].filter(function(a){return n&&a!==n?!0:(r.element.removeEventListener(t,a,!1),!1)})};rr.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)};bd.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})};Object.defineProperties(rr.prototype,bd);var Sn=function(){this.eventElements=[]};Sn.prototype.eventElement=function(t){var n=this.eventElements.filter(function(r){return r.element===t})[0];return n||(n=new rr(t),this.eventElements.push(n)),n};Sn.prototype.bind=function(t,n,r){this.eventElement(t).bind(n,r)};Sn.prototype.unbind=function(t,n,r){var a=this.eventElement(t);a.unbind(n,r),a.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(a),1)};Sn.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]};Sn.prototype.once=function(t,n,r){var a=this.eventElement(t),i=function(s){a.unbind(n,i),r(s)};a.bind(n,i)};function vr(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Ur(e,t,n,r,a){r===void 0&&(r=!0),a===void 0&&(a=!1);var i;if(t==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Nh(e,n,i,r,a)}function Nh(e,t,n,r,a){var i=n[0],s=n[1],l=n[2],d=n[3],u=n[4],p=n[5];r===void 0&&(r=!0),a===void 0&&(a=!1);var m=e.element;e.reach[d]=null,m[l]<1&&(e.reach[d]="start"),m[l]>e[i]-e[s]-1&&(e.reach[d]="end"),t&&(m.dispatchEvent(vr("ps-scroll-"+d)),t<0?m.dispatchEvent(vr("ps-scroll-"+u)):t>0&&m.dispatchEvent(vr("ps-scroll-"+p)),r&&Sh(e,d)),e.reach[d]&&(t||a)&&m.dispatchEvent(vr("ps-"+d+"-reach-"+e.reach[d]))}function Ee(e){return parseInt(e,10)||0}function Rh(e){return Et(e,"input,[contenteditable]")||Et(e,"select,[contenteditable]")||Et(e,"textarea,[contenteditable]")||Et(e,"button,[contenteditable]")}function Eh(e){var t=mt(e);return Ee(t.width)+Ee(t.paddingLeft)+Ee(t.paddingRight)+Ee(t.borderLeftWidth)+Ee(t.borderRightWidth)}var ln={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function At(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.floor(r.width),e.containerHeight=Math.floor(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Li(t,ze.element.rail("x")).forEach(function(a){return pn(a)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(Li(t,ze.element.rail("y")).forEach(function(a){return pn(a)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=Ki(e,Ee(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=Ee((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=Ki(e,Ee(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=Ee(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),Mh(t,e),e.scrollbarXActive?t.classList.add(ze.state.active("x")):(t.classList.remove(ze.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(ze.state.active("y")):(t.classList.remove(ze.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Ki(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Mh(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,Je(t.scrollbarXRail,n);var a={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?a.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:a.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?a.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:a.left=t.scrollbarYLeft+e.scrollLeft,Je(t.scrollbarYRail,a),Je(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Je(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Oh(e){e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,r=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=r*e.containerHeight,At(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,r=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=r*e.containerWidth,At(e),t.stopPropagation()})}var xr=null;function Vh(e){Xi(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Xi(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function Xi(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],s=t[4],l=t[5],d=t[6],u=t[7],p=t[8],m=e.element,h=null,y=null,g=null;function f(S){S.touches&&S.touches[0]&&(S[a]=S.touches[0]["page"+u.toUpperCase()]),xr===s&&(m[d]=h+g*(S[a]-y),md(e,u),At(e),S.stopPropagation(),S.preventDefault())}function v(){hd(e,u),e[p].classList.remove(ze.state.clicking),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",f),document.removeEventListener("touchend",v),xr=null}function A(S){xr===null&&(xr=s,h=m[d],S.touches&&(S[a]=S.touches[0]["page"+u.toUpperCase()]),y=S[a],g=(e[r]-e[n])/(e[i]-e[l]),S.touches?(document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",v)):(document.addEventListener("mousemove",f),document.addEventListener("mouseup",v)),e[p].classList.add(ze.state.clicking)),S.stopPropagation(),S.cancelable&&S.preventDefault()}e[s].addEventListener("mousedown",A),e[s].addEventListener("touchstart",A)}function kh(e){var t=e.element,n=function(){return Et(t,":hover")},r=function(){return Et(e.scrollbarX,":focus")||Et(e.scrollbarY,":focus")};function a(i,s){var l=Math.floor(t.scrollTop);if(i===0){if(!e.scrollbarYActive)return!1;if(l===0&&s>0||l>=e.contentHeight-e.containerHeight&&s<0)return!e.settings.wheelPropagation}var d=t.scrollLeft;if(s===0){if(!e.scrollbarXActive)return!1;if(d===0&&i<0||d>=e.contentWidth-e.containerWidth&&i>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&!(!n()&&!r())){var s=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(s){if(s.tagName==="IFRAME")s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(Rh(s))return}var l=0,d=0;switch(i.which){case 37:i.metaKey?l=-e.contentWidth:i.altKey?l=-e.containerWidth:l=-30;break;case 38:i.metaKey?d=e.contentHeight:i.altKey?d=e.containerHeight:d=30;break;case 39:i.metaKey?l=e.contentWidth:i.altKey?l=e.containerWidth:l=30;break;case 40:i.metaKey?d=-e.contentHeight:i.altKey?d=-e.containerHeight:d=-30;break;case 32:i.shiftKey?d=e.containerHeight:d=-e.containerHeight;break;case 33:d=e.containerHeight;break;case 34:d=-e.containerHeight;break;case 36:d=e.contentHeight;break;case 35:d=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&l!==0||e.settings.suppressScrollY&&d!==0||(t.scrollTop-=d,t.scrollLeft+=l,At(e),a(l,d)&&i.preventDefault())}})}function qh(e){var t=e.element;function n(s,l){var d=Math.floor(t.scrollTop),u=t.scrollTop===0,p=d+t.offsetHeight===t.scrollHeight,m=t.scrollLeft===0,h=t.scrollLeft+t.offsetWidth===t.scrollWidth,y;return Math.abs(l)>Math.abs(s)?y=u||p:y=m||h,y?!e.settings.wheelPropagation:!0}function r(s){var l=s.deltaX,d=-1*s.deltaY;return(typeof l>"u"||typeof d>"u")&&(l=-1*s.wheelDeltaX/6,d=s.wheelDeltaY/6),s.deltaMode&&s.deltaMode===1&&(l*=10,d*=10),l!==l&&d!==d&&(l=0,d=s.wheelDelta),s.shiftKey?[-d,-l]:[l,d]}function a(s,l,d){if(!ln.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(s))return!1;for(var u=s;u&&u!==t;){if(u.classList.contains(ze.element.consuming))return!0;var p=mt(u);if(d&&p.overflowY.match(/(scroll|auto)/)){var m=u.scrollHeight-u.clientHeight;if(m>0&&(u.scrollTop>0&&d<0||u.scrollTop<m&&d>0))return!0}if(l&&p.overflowX.match(/(scroll|auto)/)){var h=u.scrollWidth-u.clientWidth;if(h>0&&(u.scrollLeft>0&&l<0||u.scrollLeft<h&&l>0))return!0}u=u.parentNode}return!1}function i(s){var l=r(s),d=l[0],u=l[1];if(!a(s.target,d,u)){var p=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(u?t.scrollTop-=u*e.settings.wheelSpeed:t.scrollTop+=d*e.settings.wheelSpeed,p=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(d?t.scrollLeft+=d*e.settings.wheelSpeed:t.scrollLeft-=u*e.settings.wheelSpeed,p=!0):(t.scrollTop-=u*e.settings.wheelSpeed,t.scrollLeft+=d*e.settings.wheelSpeed),At(e),p=p||n(d,u),p&&!s.ctrlKey&&(s.stopPropagation(),s.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",i):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",i)}function zh(e){if(!ln.supportsTouch&&!ln.supportsIePointer)return;var t=e.element,n={startOffset:{},startTime:0,speed:{},easingLoop:null};function r(m,h){var y=Math.floor(t.scrollTop),g=t.scrollLeft,f=Math.abs(m),v=Math.abs(h);if(v>f){if(h<0&&y===e.contentHeight-e.containerHeight||h>0&&y===0)return window.scrollY===0&&h>0&&ln.isChrome}else if(f>v&&(m<0&&g===e.contentWidth-e.containerWidth||m>0&&g===0))return!0;return!0}function a(m,h){t.scrollTop-=h,t.scrollLeft-=m,At(e)}function i(m){return m.targetTouches?m.targetTouches[0]:m}function s(m){return m.target===e.scrollbarX||m.target===e.scrollbarY||m.pointerType&&m.pointerType==="pen"&&m.buttons===0?!1:!!(m.targetTouches&&m.targetTouches.length===1||m.pointerType&&m.pointerType!=="mouse"&&m.pointerType!==m.MSPOINTER_TYPE_MOUSE)}function l(m){if(s(m)){var h=i(m);n.startOffset.pageX=h.pageX,n.startOffset.pageY=h.pageY,n.startTime=new Date().getTime(),n.easingLoop!==null&&clearInterval(n.easingLoop)}}function d(m,h,y){if(!t.contains(m))return!1;for(var g=m;g&&g!==t;){if(g.classList.contains(ze.element.consuming))return!0;var f=mt(g);if(y&&f.overflowY.match(/(scroll|auto)/)){var v=g.scrollHeight-g.clientHeight;if(v>0&&(g.scrollTop>0&&y<0||g.scrollTop<v&&y>0))return!0}if(h&&f.overflowX.match(/(scroll|auto)/)){var A=g.scrollWidth-g.clientWidth;if(A>0&&(g.scrollLeft>0&&h<0||g.scrollLeft<A&&h>0))return!0}g=g.parentNode}return!1}function u(m){if(s(m)){var h=i(m),y={pageX:h.pageX,pageY:h.pageY},g=y.pageX-n.startOffset.pageX,f=y.pageY-n.startOffset.pageY;if(d(m.target,g,f))return;a(g,f),n.startOffset=y;var v=new Date().getTime(),A=v-n.startTime;A>0&&(n.speed.x=g/A,n.speed.y=f/A,n.startTime=v),r(g,f)&&m.cancelable&&m.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(n.easingLoop),n.easingLoop=setInterval(function(){if(e.isInitialized){clearInterval(n.easingLoop);return}if(!n.speed.x&&!n.speed.y){clearInterval(n.easingLoop);return}if(Math.abs(n.speed.x)<.01&&Math.abs(n.speed.y)<.01){clearInterval(n.easingLoop);return}a(n.speed.x*30,n.speed.y*30),n.speed.x*=.8,n.speed.y*=.8},10))}ln.supportsTouch?(e.event.bind(t,"touchstart",l),e.event.bind(t,"touchmove",u),e.event.bind(t,"touchend",p)):ln.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",l),e.event.bind(t,"pointermove",u),e.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",l),e.event.bind(t,"MSPointerMove",u),e.event.bind(t,"MSPointerUp",p)))}var wh=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},Wh={"click-rail":Oh,"drag-thumb":Vh,keyboard:kh,wheel:qh,touch:zh},or=function(t,n){var r=this;if(n===void 0&&(n={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(ze.main),this.settings=wh();for(var a in n)this.settings[a]=n[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return t.classList.add(ze.state.focus)},s=function(){return t.classList.remove(ze.state.focus)};this.isRtl=mt(t).direction==="rtl",this.isRtl===!0&&t.classList.add(ze.rtl),this.isNegativeScroll=(function(){var u=t.scrollLeft,p=null;return t.scrollLeft=-1,p=t.scrollLeft<0,t.scrollLeft=u,p})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Sn,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=yr(ze.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=yr(ze.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=mt(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ee(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ee(l.borderLeftWidth)+Ee(l.borderRightWidth),Je(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ee(l.marginLeft)+Ee(l.marginRight),Je(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=yr(ze.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=yr(ze.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=mt(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ee(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Eh(this.scrollbarY):null,this.railBorderYWidth=Ee(d.borderTopWidth)+Ee(d.borderBottomWidth),Je(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ee(d.marginTop)+Ee(d.marginBottom),Je(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(u){return Wh[u](r)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(u){return r.onScroll(u)}),At(this)};or.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Je(this.scrollbarXRail,{display:"block"}),Je(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ee(mt(this.scrollbarXRail).marginLeft)+Ee(mt(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ee(mt(this.scrollbarYRail).marginTop)+Ee(mt(this.scrollbarYRail).marginBottom),Je(this.scrollbarXRail,{display:"none"}),Je(this.scrollbarYRail,{display:"none"}),At(this),Ur(this,"top",0,!1,!0),Ur(this,"left",0,!1,!0),Je(this.scrollbarXRail,{display:""}),Je(this.scrollbarYRail,{display:""}))};or.prototype.onScroll=function(t){this.isAlive&&(At(this),Ur(this,"top",this.element.scrollTop-this.lastScrollTop),Ur(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};or.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),pn(this.scrollbarX),pn(this.scrollbarY),pn(this.scrollbarXRail),pn(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};or.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const jh=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),Zh=Vc(jh);var Di;function Fh(){return Di||(Di=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(v){for(var A=1;A<arguments.length;A++){var S=arguments[A];for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(v[x]=S[x])}return v},r=(function(){function v(A,S){for(var x=0;x<S.length;x++){var C=S[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,S,x){return S&&v(A.prototype,S),x&&v(A,x),A}})(),a=K,i=u(a),s=ml(),l=Zh,d=u(l);function u(v){return v&&v.__esModule?v:{default:v}}function p(v,A){var S={};for(var x in v)A.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(v,x)&&(S[x]=v[x]);return S}function m(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}function h(v,A){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:v}function y(v,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);v.prototype=Object.create(A&&A.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(v,A):v.__proto__=A)}var g={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(g);var f=(function(v){y(A,v);function A(S){m(this,A);var x=h(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S));return x.handleRef=x.handleRef.bind(x),x._handlerByEvent={},x}return r(A,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new d.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(x){this._updateEventHook(x),this.updateScroll(),x.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var x=this;Object.keys(this._handlerByEvent).forEach(function(C){var T=x._handlerByEvent[C];T&&x._container.removeEventListener(C,T,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var x=this,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(g).forEach(function(T){var E=x.props[g[T]],z=C[g[T]];if(E!==z){if(z){var k=x._handlerByEvent[T];x._container.removeEventListener(T,k,!1),x._handlerByEvent[T]=null}if(E){var Z=function(){return E(x._container)};x._container.addEventListener(T,Z,!1),x._handlerByEvent[T]=Z}}})}},{key:"_updateClassName",value:function(){var x=this.props.className,C=this._container.className.split(" ").filter(function(T){return T.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container"+(x?" "+x:"")+(C?" "+C:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(x){this._container=x,this.props.containerRef(x)}},{key:"render",value:function(){var x=this.props;x.className;var C=x.style;x.option,x.options,x.containerRef,x.onScrollY,x.onScrollX,x.onScrollUp,x.onScrollDown,x.onScrollLeft,x.onScrollRight,x.onYReachStart,x.onYReachEnd,x.onXReachStart,x.onXReachEnd;var T=x.component;x.onSync;var E=x.children,z=p(x,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),k=T;return i.default.createElement(k,n({style:C,ref:this.handleRef},z),E)}}]),A})(a.Component);t.default=f,f.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(A){return A.update()},component:"div"},f.propTypes={children:s.PropTypes.node.isRequired,className:s.PropTypes.string,style:s.PropTypes.object,option:s.PropTypes.object,options:s.PropTypes.object,containerRef:s.PropTypes.func,onScrollY:s.PropTypes.func,onScrollX:s.PropTypes.func,onScrollUp:s.PropTypes.func,onScrollDown:s.PropTypes.func,onScrollLeft:s.PropTypes.func,onScrollRight:s.PropTypes.func,onYReachStart:s.PropTypes.func,onYReachEnd:s.PropTypes.func,onXReachStart:s.PropTypes.func,onXReachEnd:s.PropTypes.func,onSync:s.PropTypes.func,component:s.PropTypes.string},e.exports=t.default})(gr,gr.exports)),gr.exports}var Ji;function Ih(){return Ji||(Ji=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Fh(),r=a(n);function a(i){return i&&i.__esModule?i:{default:i}}t.default=r.default,e.exports=t.default})(br,br.exports)),br.exports}var Uh=Ih();const Yh=cl(Uh),Ph=N.styled(N.Tabs)(({orientation:e,theme:t})=>({minHeight:"auto",backgroundColor:"transparent",...e==="horizontal"&&{"& .MuiTabs-scrollButtons":{display:"flex",color:t.palette.text.primary,"&.Mui-disabled":{opacity:.3}}},"& .MuiTabs-indicator":{display:"none"},...e==="vertical"&&{"& .MuiTabs-flexContainerVertical":{alignItems:"flex-start",gap:t.spacing(2)},"& .MuiTabs-scrollButtons":{display:"none"}}})),Bh=N.styled(N.Tab)(({theme:e})=>({minHeight:e.spacing(5),minWidth:"auto",padding:`${e.spacing(1)} ${e.spacing(2)}`,borderRadius:e.borderRadius.xxxl,transition:"all 0.2s ease-in-out",textTransform:"none",width:"auto",justifyContent:"flex-start",border:"1px solid transparent",backgroundColor:"transparent","&:hover":{backgroundColor:e.palette.grey[100],transform:"none"},"&.Mui-selected":{backgroundColor:"transparent",color:e.palette.text.primary,fontWeight:e.typography.h4.fontWeight,borderColor:"transparent",boxShadow:"none","&:hover":{backgroundColor:e.palette.grey[100]}},"&.Mui-disabled":{opacity:.3,pointerEvents:"none"},"& .MuiTab-icon":{marginRight:e.spacing(1)}})),Gh=({items:e=[],orientation:t="horizontal",value:n,onChange:r,selectedSection:a=0,onSectionSelect:i,onSectionClick:s,scrollToIndex:l,topOffset:d=50,variant:u="scrollable",scrollButtons:p=!1,allowScrollButtonsMobile:m=!1,centered:h=!1,tabSx:y,tabsSx:g,showScrollbar:f=!1,className:v="hide-scroll",sx:A})=>{const S=N.useTheme(),x=b=>b.image,C=b=>!!b.hidden,T=b=>!!b.disabled,[E,z]=K.useState(n||e[0]?.key||"0"),k=K.useRef(null),Z=K.useRef({});K.useEffect(()=>{e.forEach(b=>{const V=b.key;Z.current[V]||(Z.current[V]=K.createRef())})},[e]);const F=K.useCallback((b,V)=>{if(z(b),r?.(b),i?.(b.toString(),V),s?.(b.toString()),t==="vertical"){const O=Z.current[b];k.current&&O?.current&&(k.current.scrollTop=O.current.offsetTop-d)}},[r,i,s,t,d]);K.useEffect(()=>{if(l!==void 0&&e[l]){const b=e[l]?.key;F(b,l)}},[l,e,F]),K.useEffect(()=>{if(e[a]){const b=e[a].key;z(b)}},[a,e]),K.useEffect(()=>{n!==void 0&&z(n)},[n]);const I=(b,V)=>{const O=b.key,q=b.name,w=x(b),G=E===O,_=T(b);return c.jsxs(N.Box,{ref:Z.current[O],onClick:()=>!_&&F(O,V),sx:{display:"flex",alignItems:"center",gap:S.spacing(3),borderRadius:S.borderRadius.xxxl,cursor:_?"default":"pointer",transition:"all 0.2s ease-in-out",border:"1px solid transparent",backgroundColor:"transparent",opacity:_?.3:1,width:"max-content",alignSelf:"flex-start",marginLeft:0,"&:hover":_?{}:{backgroundColor:S.palette.grey[100],borderRadius:S.borderRadius.xxxl},...y},children:[w&&c.jsx(N.Box,{sx:{width:S.spacing(6),height:S.spacing(6),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,fontSize:S.typography.caption.fontSize},children:typeof w=="string"?w.startsWith("http")?c.jsx(N.Box,{component:"img",src:w,alt:q,sx:{width:"100%",height:"100%",objectFit:"cover"},onError:U=>{const W=U.target;W.style.display="none"}}):c.jsx(N.Box,{sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:S.typography.caption.fontSize},children:w}):w}),c.jsx(N.Typography,{variant:"h4",sx:{whiteSpace:"nowrap",fontWeight:G?S.typography.h4.fontWeight:S.typography.h5.fontWeight},children:q})]},O)};if(t==="horizontal"){const b=e.filter(V=>!C(V));return c.jsx(N.Box,{sx:{backgroundColor:"transparent",...A},children:c.jsx(Ph,{value:E,onChange:(V,O)=>{const q=b.findIndex(w=>w.key===O);q!==-1&&F(O,q)},orientation:"horizontal",variant:u,scrollButtons:p,allowScrollButtonsMobile:m,centered:h,sx:{gap:S.spacing(2),padding:S.spacing(1.5),"& .MuiTabs-scroller":{...!f&&{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}},...g},children:b.map(V=>c.jsx(Bh,{value:V.key,label:I(V,b.indexOf(V)),disabled:T(V),sx:{flex:"0 0 auto",minWidth:"auto",...y}},V.key))})})}if(t==="vertical"){const b=e.filter(V=>V&&!C(V));return c.jsx(Yh,{options:{wheelPropagation:!1},containerRef:V=>{V&&(k.current=V)},className:v,style:A,children:c.jsx(N.Box,{sx:{padding:S.spacing(2)},children:b.map(I)})})}return null},ar=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(ar.displayName="FormControlContext");function bt(){return R.useContext(ar)}function Lh(e){return de("PrivateSwitchBase",e)}ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kh=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&`edge${J(a)}`],input:["input"]};return ue(i,Lh,t)},Xh=B(tr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Dh=B("input",{name:"MuiSwitchBase",shouldForwardProp:Pe})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ho=R.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:m,inputProps:h,inputRef:y,name:g,onBlur:f,onChange:v,onFocus:A,readOnly:S,required:x=!1,tabIndex:C,type:T,value:E,slots:z={},slotProps:k={},...Z}=t,[F,I]=oa({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),b=bt(),V=D=>{A&&A(D),b&&b.onFocus&&b.onFocus(D)},O=D=>{f&&f(D),b&&b.onBlur&&b.onBlur(D)},q=D=>{if(D.nativeEvent.defaultPrevented)return;const $=D.target.checked;I($),v&&v(D,$)};let w=l;b&&typeof w>"u"&&(w=b.disabled);const G=T==="checkbox"||T==="radio",_={...t,checked:F,disabled:w,disableFocusRipple:d,edge:u},U=Kh(_),W={slots:z,slotProps:{input:h,...k}},[M,P]=he("root",{ref:n,elementType:Xh,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...W,component:"span",...Z},getSlotProps:D=>({...D,onFocus:$=>{D.onFocus?.($),V($)},onBlur:$=>{D.onBlur?.($),O($)}}),ownerState:_,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:w,role:void 0,tabIndex:null}}),[Y,X]=he("input",{ref:y,elementType:Dh,className:U.input,externalForwardedProps:W,getSlotProps:D=>({...D,onChange:$=>{D.onChange?.($),q($)}}),ownerState:_,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:w,id:G?m:void 0,name:g,readOnly:S,required:x,tabIndex:C,type:T,...T==="checkbox"&&E===void 0?{}:{value:E}}});return c.jsxs(M,{...P,children:[c.jsx(Y,{...X}),F?i:p]})});process.env.NODE_ENV!=="production"&&(ho.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:$e,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const Jh=Tt(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Qh=Tt(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Hh=Tt(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $h(e){return de("MuiCheckbox",e)}const Yo=ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_h=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${J(r)}`,`size${J(a)}`]},s=ue(i,$h,t);return{...t,...s}},e2=B(ho,{shouldForwardProp:e=>Pe(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${J(n.size)}`],n.color!=="default"&&t[`color${J(n.color)}`]]}})(le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t},style:{[`&.${Yo.checked}, &.${Yo.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Yo.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),t2=c.jsx(Qh,{}),n2=c.jsx(Jh,{}),r2=c.jsx(Hh,{}),ua=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCheckbox"}),{checkedIcon:a=t2,color:i="primary",icon:s=n2,indeterminate:l=!1,indeterminateIcon:d=r2,inputProps:u,size:p="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...f}=r,v=l?d:s,A=l?d:a,S={...r,disableRipple:m,color:i,indeterminate:l,size:p},x=_h(S),C=g.input??u,[T,E]=he("root",{ref:n,elementType:e2,className:ne(x.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:S,additionalProps:{type:"checkbox",icon:R.cloneElement(v,{fontSize:v.props.fontSize??p}),checkedIcon:R.cloneElement(A,{fontSize:A.props.fontSize??p}),disableRipple:m,slots:y,slotProps:{input:Xl(typeof C=="function"?C(S):C,{"data-indeterminate":l})}}});return c.jsx(T,{...E,classes:x})});process.env.NODE_ENV!=="production"&&(ua.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const o2=Tt(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),a2=Tt(c.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),i2=B("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Pe})({position:"relative",display:"flex"}),s2=B(o2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),l2=B(a2,{name:"MuiRadioButtonIcon"})(le(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function wa(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a={...e,checked:t};return c.jsxs(i2,{className:n.root,ownerState:a,children:[c.jsx(s2,{fontSize:r,className:n.background,ownerState:a}),c.jsx(l2,{fontSize:r,className:n.dot,ownerState:a})]})}process.env.NODE_ENV!=="production"&&(wa.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const gd=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(gd.displayName="RadioGroupContext");function d2(){return R.useContext(gd)}function c2(e){return de("MuiRadio",e)}const Qi=ce("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),u2=e=>{const{classes:t,color:n,size:r}=e,a={root:["root",`color${J(n)}`,r!=="medium"&&`size${J(r)}`]};return{...t,...ue(a,c2,t)}},p2=B(ho,{shouldForwardProp:e=>Pe(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${J(n.size)}`],t[`color${J(n.color)}`]]}})(le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ue()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Qi.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function f2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const m2=c.jsx(wa,{checked:!0}),h2=c.jsx(wa,{}),pa=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:i=m2,color:s="primary",icon:l=h2,name:d,onChange:u,size:p="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:v,...A}=r,S=bt();let x=h;S&&typeof x>"u"&&(x=S.disabled),x??=!1;const C={...r,disabled:x,disableRipple:y,color:s,size:p},T=u2(C),E=d2();let z=a;const k=ra(u,E&&E.onChange);let Z=d;E&&(typeof z>"u"&&(z=f2(E.value,r.value)),typeof Z>"u"&&(Z=E.name));const F=f.input??v,[I,b]=he("root",{ref:n,elementType:p2,className:ne(T.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...A},getSlotProps:V=>({...V,onChange:(O,...q)=>{V.onChange?.(O,...q),k(O,...q)}}),ownerState:C,additionalProps:{type:"radio",icon:R.cloneElement(l,{fontSize:l.props.fontSize??p}),checkedIcon:R.cloneElement(i,{fontSize:i.props.fontSize??p}),disabled:x,name:Z,checked:z,slots:g,slotProps:{input:typeof F=="function"?F(C):F}}});return c.jsx(I,{...b,classes:T})});process.env.NODE_ENV!=="production"&&(pa.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:$e,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Hi(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Yr(e,t=!1){return e&&(Hi(e.value)&&e.value!==""||t&&Hi(e.defaultValue)&&e.defaultValue!=="")}function b2(e){return e.startAdornment}function g2(e){return de("MuiFormControl",e)}ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const y2=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${J(n)}`,r&&"fullWidth"]};return ue(a,g2,t)},v2=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${J(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),yd=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormControl"}),{children:a,className:i,color:s="primary",component:l="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:f="medium",variant:v="outlined",...A}=r,S={...r,color:s,component:l,disabled:d,error:u,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:f,variant:v},x=y2(S),[C,T]=R.useState(()=>{let w=!1;return a&&R.Children.forEach(a,G=>{if(!Zo(G,["Input","Select"]))return;const _=Zo(G,["Select"])?G.props.input:G;_&&b2(_.props)&&(w=!0)}),w}),[E,z]=R.useState(()=>{let w=!1;return a&&R.Children.forEach(a,G=>{Zo(G,["Input","Select"])&&(Yr(G.props,!0)||Yr(G.props.inputProps,!0))&&(w=!0)}),w}),[k,Z]=R.useState(!1);d&&k&&Z(!1);const F=p!==void 0&&!d?p:k;let I;const b=R.useRef(!1);process.env.NODE_ENV!=="production"&&(I=()=>(b.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
144
144
  `)),b.current=!0,()=>{b.current=!1}));const V=R.useCallback(()=>{z(!0)},[]),O=R.useCallback(()=>{z(!1)},[]),q=R.useMemo(()=>({adornedStart:C,setAdornedStart:T,color:s,disabled:d,error:u,filled:E,focused:F,fullWidth:m,hiddenLabel:h,size:f,onBlur:()=>{Z(!1)},onFocus:()=>{Z(!0)},onEmpty:O,onFilled:V,registerEffect:I,required:g,variant:v}),[C,s,d,u,E,F,m,h,I,O,V,g,f,v]);return c.jsx(ar.Provider,{value:q,children:c.jsx(v2,{as:l,ownerState:S,className:ne(x.root,i),ref:n,...A,children:a})})});process.env.NODE_ENV!=="production"&&(yd.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function x2(e){return de("MuiFormControlLabel",e)}const Pn=ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function Jt({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const A2=e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${J(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return ue(s,x2,t)},C2=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pn.label}`]:t.label},t.root,t[`labelPlacement${J(n.labelPlacement)}`]]}})(le(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pn.disabled}`]:{cursor:"default"},[`& .${Pn.label}`]:{[`&.${Pn.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),T2=B("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(le(({theme:e})=>({[`&.${Pn.error}`]:{color:(e.vars||e).palette.error.main}}))),vd=R.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:s={},control:l,disabled:d,disableTypography:u,inputRef:p,label:m,labelPlacement:h="end",name:y,onChange:g,required:f,slots:v={},slotProps:A={},value:S,...x}=r,C=bt(),T=d??l.props.disabled??C?.disabled,E=f??l.props.required,z={disabled:T,required:E};["checked","name","onChange","value","inputRef"].forEach(q=>{typeof l.props[q]>"u"&&typeof r[q]<"u"&&(z[q]=r[q])});const k=Jt({props:r,muiFormControl:C,states:["error"]}),Z={...r,disabled:T,labelPlacement:h,required:E,error:k.error},F=A2(Z),I={slots:v,slotProps:{...s,...A}},[b,V]=he("typography",{elementType:tt,externalForwardedProps:I,ownerState:Z});let O=m;return O!=null&&O.type!==tt&&!u&&(O=c.jsx(b,{component:"span",...V,className:ne(F.label,V?.className),children:O})),c.jsxs(C2,{className:ne(F.root,i),ownerState:Z,ref:n,...x,children:[R.cloneElement(l,z),E?c.jsxs("div",{children:[O,c.jsxs(T2,{ownerState:Z,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):O]})});process.env.NODE_ENV!=="production"&&(vd.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:$e,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const S2=e=>{if(!e)return{StyledCheckbox:ua,StyledRadio:pa};const t=B(ua)({padding:0,"& .MuiButtonBase-root":{padding:0}}),n=B(pa)({padding:0,"& .MuiButtonBase-root":{padding:0}});return{StyledCheckbox:t,StyledRadio:n}},xd=B("span")(({bg:e,border:t,hoverColor:n,type:r})=>({display:"flex",alignItems:"center",justifyContent:"center",width:18,height:18,borderRadius:r==="checkbox"?"6px":"50%",backgroundColor:e,boxShadow:`inset 0 0 0 1.5px ${t}`,transition:"background-color 0.2s, box-shadow 0.2s","input:hover ~ &":{backgroundColor:n}})),$i=B(xd)(({checkColor:e})=>({"& svg, & span":{fill:e,width:14,height:14}})),yn=({type:e,label:t,checked:n=!1,disabled:r=!1,colorType:a=pe.Default,customIcon:i,onChange:s,name:l,value:d,isCustomInput:u=!1})=>{const p=rt(),m=Il(p),h=r?m[pe.Disabled]:n?m[pe.SecondaryColor]:a===pe.Error?m[pe.Error]:m[pe.Default],y=r?p.palette.action.disabled:p.palette.common.white,{StyledCheckbox:g,StyledRadio:f}=S2(u),v=e==="checkbox"?g:f,A=c.jsx(v,{disableRipple:!0,checked:n,disabled:r,name:l,value:d,icon:c.jsx(xd,{type:e,bg:h.bg,border:h.border,hoverColor:h.hover}),checkedIcon:e==="radio"&&i?c.jsx($i,{type:e,bg:h.bg,border:h.border,checkColor:y,hoverColor:h.hover,children:c.jsx("svg",{viewBox:"0 0 24 24",children:c.jsx("path",{d:"M20.29 5.71a1 1 0 0 0-1.42 0L10 14.59l-4.88-4.88a1 1 0 0 0-1.42 1.42l5.59 5.59a1 1 0 0 0 1.42 0l9.59-9.59a1 1 0 0 0 0-1.42z"})})}):c.jsx($i,{type:e,bg:h.bg,border:h.border,checkColor:y,hoverColor:h.hover,children:e==="checkbox"?c.jsx("svg",{viewBox:"0 0 24 24",children:c.jsx("path",{d:"M20.29 5.71a1 1 0 0 0-1.42 0L10 14.59l-4.88-4.88a1 1 0 0 0-1.42 1.42l5.59 5.59a1 1 0 0 0 1.42 0l9.59-9.59a1 1 0 0 0 0-1.42z"})}):c.jsx("span",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:y,display:"block"}})}),onChange:S=>s?.(S.target.checked)});return t?c.jsx(vd,{control:A,label:t,sx:{margin:0,"& .MuiFormControlLabel-label":{fontSize:16},"& .MuiFormControlLabel-root":{marginRight:0}}}):A},Ad=({type:e,checked:t=!1,onChange:n,label:r,description:a,image:i,disabled:s=!1,leftIcon:l,text:d,rightIcon:u,reverse:p=!1,withoutDivider:m=!1,imageSize:h,isFavorite:y=!1,textSx:g,descriptionSx:f})=>{const v=N.useTheme(),A=E=>{!s&&n&&n(E)},S=()=>{!s&&e&&n&&n(e==="checkbox"?!t:!0)},x=()=>{if(p&&i)return c.jsx(N.ListItemIcon,{children:gn(i,{size:h,sx:{borderRadius:"8px"}})});if(!p){if(l)return c.jsx(N.ListItemIcon,{children:Ne(l,{sx:g})});if(e)return c.jsx(N.ListItemIcon,{children:c.jsx(yn,{checked:t,type:e,onChange:A,disabled:s,isCustomInput:!0})})}return null},C=()=>{if(p){if(u)return c.jsx(N.ListItemIcon,{children:u});if(e)return c.jsx(N.ListItemIcon,{children:c.jsx(yn,{checked:t,type:e,onChange:A,disabled:s,isCustomInput:!0})})}else{if(i)return c.jsx(N.ListItemIcon,{children:gn(i,{size:h,sx:{borderRadius:"8px"}})});if(u)return c.jsx(N.ListItemIcon,{children:u})}return null},T=()=>y||d?c.jsx(N.Box,{sx:{display:"flex",alignItems:"center",px:4},children:d?c.jsx(N.Typography,{variant:"caption",color:v.palette.mediumGray,sx:{...un(3)},children:d}):c.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:.5,lineHeight:1},children:[c.jsx(N.Box,{sx:{display:"flex",alignItems:"center",height:16},children:Ne("Star",{size:14})}),c.jsx(N.Typography,{variant:"caption",color:"text.secondary",sx:[{lineHeight:1,display:"flex",alignItems:"center"},un(3)],children:"Favoris"})]})}):null;return c.jsxs(c.Fragment,{children:[c.jsx(N.ListItem,{disablePadding:!0,children:c.jsxs(N.ListItemButton,{disabled:s,onClick:S,sx:{width:320,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[x(),c.jsx(N.ListItemText,{primary:c.jsx(N.Typography,{variant:"h5",color:s?"text.disabled":"text.primary",sx:{lineHeight:1.2,...g,...un(3)},children:r}),secondary:a&&c.jsx(N.Typography,{variant:"caption",sx:{lineHeight:1.6,...f,...un(3)},children:a}),sx:{display:"flex",flexDirection:"column",justifyContent:"center",m:0,pl:4}}),T(),C()]})}),!m&&c.jsx(Xt,{orientation:"horizontal"})]})},Nn=({label:e="—",color:t="default",outlined:n=!1,deletable:r=!1,icon:a,onDelete:i,borderRadius:s=16,opacity:l=1,options:d,minHeight:u,style:p,shape:m})=>{const h=rt(),y=Il(h),{bg:g,text:f,border:v}=d||y[t],[A,S]=R.useState(!0);R.useEffect(()=>{S(!0)},[e,t,n,r,a]);const x=E=>{E.stopPropagation(),S(!1),setTimeout(()=>{i?.()},0)};if(!A)return null;const C=()=>c.jsx(Pl,{size:14,style:{color:"inherit",cursor:"pointer",marginRight:4},onClick:x});let T={label:e,variant:n?"outlined":"filled",onDelete:r?x:void 0,deleteIcon:r?c.jsx(C,{}):void 0};if(m==="linear")T={...T,icon:c.jsx("div",{style:{width:6,height:6,borderRadius:"50%",backgroundColor:n?"#2D2E2C":"#039F43",flexShrink:0}}),sx:{borderRadius:`${s}px`,background:n?"#F5F5F5":"linear-gradient(135deg, #E6FFA9, #82E282)",color:"#2D2E2C",border:n?"1px solid #E0E0E0":"none",fontSize:"12px",fontWeight:600,height:"24px",minWidth:"auto","&.MuiChip-root":{padding:"2px 0px"},"& .MuiChip-icon":{marginLeft:"8px",marginRight:"4px"},"& .MuiChip-label":{padding:"0px",margin:"0px",paddingLeft:"0px",paddingRight:r?"4px":"8px",fontSize:"12px",fontWeight:600},"& .MuiChip-deleteIcon":{marginRight:"4px",marginLeft:"4px",fontSize:"14px",color:"inherit",cursor:"pointer","&:hover":{opacity:.7}},opacity:l,...p}};else{const E=a?Ne(a,{size:14}):void 0;T={...T,icon:E,sx:{borderRadius:`${s}px`,backgroundColor:n?"transparent":g,color:n?v:f,border:n?`1px solid ${v}`:"none",height:u||"28px",minWidth:"auto","&.MuiChip-root":{height:"23px"},"& .MuiChip-icon":{marginLeft:"4px",marginRight:"6px",fontSize:"14px",color:"inherit"},"& .MuiChip-label":{padding:"0px",margin:"0px",paddingLeft:a?"0px":"10px",paddingRight:r?"6px":"10px",fontSize:"13px",fontWeight:500},"& .MuiChip-deleteIcon":{marginRight:"4px",marginLeft:"4px",fontSize:"14px",color:"inherit",cursor:"pointer","&:hover":{opacity:.7}},opacity:l,...p}}}return c.jsx(N.Chip,{...T})},N2={mastercard:Ln.masterCard,visa:Ln.visa,swile:Ln.swile},R2=({brand:e,srcOverride:t})=>{const n=N.useTheme(),r=t||N2[e.toLowerCase()];return r?c.jsx("img",{src:r,alt:e,style:{width:28,height:18,objectFit:"contain",marginRight:8}}):c.jsx(N.Box,{sx:{px:1,py:.25,borderRadius:1,bgcolor:n.palette.grey[100],fontWeight:700,fontSize:12,border:`1px solid ${n.palette.grey[300]}`,mr:1,textTransform:"uppercase"},children:e||"CARD"})},_i=({color:e,title:t,onClick:n,children:r})=>c.jsx(N.Tooltip,{title:t,arrow:!0,children:c.jsx(N.IconButton,{size:"small",onClick:n,sx:{color:e,p:.75,borderRadius:1.25},children:r})}),E2=({last4:e})=>c.jsxs(N.Typography,{component:"span",variant:"h5",sx:{letterSpacing:.2},children:["•••• ",e]}),Cd=({method:e,selected:t,onSelect:n,onEdit:r,onDelete:a,sx:i})=>{const s=N.useTheme(),{id:l,brand:d,last4:u,expiresText:p,creditText:m,isDefault:h,logoSrc:y,disabled:g}=e;return c.jsxs(N.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{px:{xs:2,sm:3},py:2,bgcolor:s.palette.background.paper,transition:"background-color .2s",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,flexWrap:"wrap",...i},onClick:()=>!g&&n?.(l),children:[c.jsx(yn,{checked:t,onChange:()=>!g&&n?.(l),type:"radio",disabled:g}),c.jsx(R2,{brand:d,srcOverride:y}),c.jsxs(N.Box,{sx:{flex:1,minWidth:160,ml:1},children:[c.jsxs(N.Typography,{variant:"h5",sx:{textTransform:"uppercase",display:"inline"},children:[d," ",c.jsx(E2,{last4:u})]}),p&&c.jsx(N.Typography,{variant:"caption",color:"text.secondary",display:"block",children:p}),m&&c.jsx(N.Typography,{variant:"caption",color:"text.secondary",display:"block",children:m})]}),h&&c.jsx(Nn,{label:"Default",color:"successLight",icon:"Heart",borderRadius:5}),c.jsx(_i,{title:"Modifier",onClick:f=>{f.stopPropagation(),g||r?.(l)},children:c.jsx(Ie.Pencil,{size:16})}),c.jsx(_i,{color:"error.main",title:"Supprimer",onClick:f=>{f.stopPropagation(),g||a?.(l)},children:c.jsx(Ie.Trash,{size:16})})]})},M2=({methods:e,selectedId:t,onSelect:n,onEdit:r,onDelete:a})=>{const i=N.useTheme();return c.jsx(N.Box,{sx:{border:`1px solid ${i.palette.grey[300]}`,borderRadius:1,overflow:"hidden"},children:e.map((s,l)=>c.jsx(Cd,{method:s,selected:t===s.id,onSelect:n,onEdit:r,onDelete:a,sx:{borderBottom:l<e.length-1?`1px solid ${i.palette.grey[300]}`:"none"}},s.id))})},es=({value:e,strike:t})=>{const n=N.useTheme();return c.jsx(N.Typography,{variant:"body1",sx:{textDecoration:t?"line-through":"none",color:t?n.palette.error.main:n.palette.text.primary,fontWeight:t?600:900,mr:t?1:0,whiteSpace:"nowrap"},children:e})},O2=({quantity:e=1,onQuantityChange:t,title:n="Product Name",badgeText:r="50% Offert",details:a={size:"Medium (+2,80€)",ingredients:"Saumon, Avocat, Mangue, Edamame, Concombre.",sauce:"Citron Yuzu",supplement:"Poulet (+3,00€)"},originalPrice:i="20,00 €",finalPrice:s="10,00 €",headers:l=["Quantité","Produits","Prix"],sx:d})=>{const u=N.useTheme(),p=()=>t?.(e+1),m=()=>t?.(Math.max(0,e-1));return c.jsx(N.Paper,{variant:"outlined",sx:{overflow:"hidden",bgcolor:"background.paper",pb:0,px:0,...d},children:c.jsx(N.TableContainer,{sx:{overflowX:"auto"},children:c.jsx(N.Table,{size:"small",sx:{minWidth:300,"& td":{border:0,py:1,verticalAlign:"top"}},children:c.jsxs(N.TableBody,{children:[c.jsxs(N.TableRow,{sx:{display:{xs:"block",sm:"table-row"},mb:{xs:2,sm:0}},children:[c.jsx(N.TableCell,{sx:{display:{xs:"flex",sm:"table-cell"},justifyContent:"flex-start",mb:{xs:1,sm:0},width:{sm:120}},children:c.jsxs(N.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{border:`1px solid ${u.palette.grey[300]}`,borderRadius:2,px:1,py:.5,width:"fit-content"},children:[c.jsx(N.IconButton,{size:"small",onClick:m,sx:{width:28,height:28},disabled:e<=1,children:e>1?c.jsx(Ie.Minus,{size:16}):c.jsx(Ie.Trash,{size:16})}),c.jsx(N.Typography,{variant:"h3",sx:{minWidth:28,textAlign:"center"},children:e}),c.jsx(N.IconButton,{size:"small",onClick:p,sx:{width:28,height:28},children:c.jsx(Ie.Plus,{size:16})})]})}),c.jsxs(N.TableCell,{sx:{display:{xs:"block",sm:"table-cell"},mb:{xs:1,sm:0},minWidth:{xs:180,sm:"auto"}},children:[c.jsxs(N.Stack,{direction:"row",alignItems:"center",spacing:1,flexWrap:"wrap",children:[c.jsx(N.Typography,{variant:"subtitle1",fontWeight:900,children:n}),r&&c.jsx(Nn,{label:r,color:pe.SecondaryColor,borderRadius:5})]}),a&&Object.entries(a).map(([h,y])=>c.jsxs(N.Typography,{variant:"caption",color:"text.secondary",display:"block",children:[h.charAt(0).toUpperCase()+h.slice(1),": ",y]},h))]}),c.jsx(N.TableCell,{sx:{display:{xs:"flex",sm:"table-cell"},justifyContent:"flex-end",mb:{xs:1,sm:0},width:{sm:140}},children:c.jsxs(N.Stack,{direction:"row",spacing:1,alignItems:"baseline",justifyContent:"flex-end",children:[c.jsx(es,{value:i,strike:!0}),c.jsx(es,{value:s})]})})]}),c.jsx(N.TableRow,{children:c.jsx(N.TableCell,{colSpan:3,sx:{p:0},children:c.jsx(N.Divider,{sx:{borderColor:u.palette.grey[300]}})})}),c.jsx(N.TableRow,{sx:{display:{xs:"none",sm:"table-row"},bgcolor:u.palette.grey[100]},children:l.map((h,y)=>c.jsx(N.TableCell,{align:y===2?"right":"left",sx:{bgcolor:u.palette.background.default,py:1,minWidth:y===2?80:60},children:c.jsx(N.Typography,{variant:"caption",color:"text.secondaryGray",sx:{fontWeight:"bold"},children:h})},y))})]})})})})},V2={PaymentMethodRow:Cd,PaymentMethodsList:M2,CartItemCard:O2},k2=Tt(c.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),q2=({open:e,title:t,titleSubtitle:n,subtitle:r,subtitleLinkText:a,children:i,illustration:s,primaryAction:l,secondaryAction:d,onClose:u,maxWidth:p=400})=>{const m=!!(l||d),h=()=>s&&c.jsx(N.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",mb:n?2:3},children:s});return c.jsx(N.Modal,{open:e,onClose:u,children:c.jsxs(N.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:p,bgcolor:"background.paper",boxShadow:24,borderRadius:2,overflow:"hidden",border:"none",outline:"none"},children:[u&&c.jsx(N.IconButton,{onClick:u,sx:{position:"absolute",top:8,right:8},children:c.jsx(k2,{})}),!n&&h(),c.jsxs(N.Box,{sx:{px:3,pt:3,pb:m?0:3},children:[t&&c.jsx(N.Typography,{variant:"h2",gutterBottom:!0,children:t}),n&&c.jsxs(N.Box,{sx:{mt:10},children:[h(),c.jsx(N.Typography,{variant:"h4",gutterBottom:!0,sx:{textAlign:"center"},children:n})]}),r&&c.jsxs(N.Typography,{variant:"subtitle2",sx:{fontSize:12},gutterBottom:!0,children:[r,a&&c.jsx(N.Box,{component:"span",sx:{color:"success.main",fontWeight:"bold",cursor:"pointer",ml:1,mb:3,display:"inline-block"},children:a})]}),i]}),m&&c.jsxs(c.Fragment,{children:[c.jsx(Xt,{sx:{my:4}}),c.jsxs(N.Stack,{direction:"row",spacing:2,justifyContent:"space-between",sx:{px:5,pb:3},children:[d&&c.jsx(Fr,{colorType:pe.Secondary,label:d.label,onClick:d.onClick}),l&&c.jsx(Fr,{colorType:pe.SecondaryColor,label:l.label,onClick:l.onClick})]})]})]})})},z2=({value:e,size:t=80,thickness:n=4,label:r,bgColor:a,progressColor:i="secondaryColor.main"})=>{const s=N.useTheme();return c.jsxs(N.Box,{position:"relative",display:"inline-flex",children:[c.jsx(N.CircularProgress,{variant:"determinate",value:100,size:t,thickness:n,sx:{color:a??s.palette.grey[100]}}),c.jsx(N.CircularProgress,{variant:"determinate",value:e,size:t,thickness:n,sx:{position:"absolute",left:0,color:i}}),c.jsx(N.Box,{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",children:c.jsx(N.Typography,{variant:"caption",component:"div",color:"textSecondary",fontWeight:"bold",children:r??`${Math.round(e)}%`})})]})},w2=({value:e,height:t=10,label:n,bgColor:r,progressColor:a})=>{const i=N.useTheme();return c.jsxs(N.Box,{width:"100%",children:[c.jsx(N.Box,{mb:.5,children:c.jsx(N.Typography,{variant:"caption",color:"textSecondary",align:"left",fontWeight:"bold",children:n??`${Math.round(e)} points`})}),c.jsx(N.LinearProgress,{variant:"determinate",value:e,sx:{height:t,borderRadius:t/2,backgroundColor:r??i.palette.grey[100],"& .MuiLinearProgress-bar":{backgroundColor:a??i.palette.primary.main,borderRadius:t/2}}})]})},W2=({steps:e,activeStep:t,label:n,color:r="secondaryColor.main"})=>c.jsxs(N.Box,{width:"100%",children:[c.jsx(N.Stepper,{activeStep:t,alternativeLabel:!0,sx:{"& .MuiStep-root":{"& .MuiStepLabel-label":{color:r},"& .MuiStepLabel-iconContainer":{color:r}},"& .MuiStepConnector-line":{borderColor:r}},children:e.map((a,i)=>c.jsx(N.Step,{children:c.jsx(N.StepLabel,{children:a})},i))}),n&&c.jsx(N.Box,{mt:1,textAlign:"center",children:c.jsx(N.Typography,{variant:"body2",color:"textSecondary",children:n})})]}),j2={CircularProgressWithLabel:z2,LinearProgressWithLabel:w2,StepperWithLabel:W2},Td=Tt(c.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Z2=B(N.StepConnector)(({theme:e})=>({[`&.${N.stepConnectorClasses.alternativeLabel}`]:{top:14},[`& .${N.stepConnectorClasses.line}`]:{borderColor:e.palette.grey[300],borderTopWidth:3,borderRadius:1},[`&.${N.stepConnectorClasses.active} .${N.stepConnectorClasses.line},
145
145
  &.${N.stepConnectorClasses.completed} .${N.stepConnectorClasses.line}`]:{borderColor:e.palette.secondaryColor.main}})),F2=e=>{const{active:t,completed:n,colorHex:r}=e,a=rt(),i=r||a.palette.secondaryColor.main,s=a.palette.grey[300];return c.jsx(N.Box,{sx:{width:26,height:26,borderRadius:"50%",border:"2px solid",borderColor:n||t?i:s,bgcolor:n?i:"#fff",display:"flex",alignItems:"center",justifyContent:"center"},children:n?c.jsx(Td,{sx:{fontSize:16,color:"#fff"}}):null})},I2=({steps:e,activeStep:t,label:n,color:r="secondaryColor.main"})=>{const a=Math.min(t-1,e.length-1);return c.jsxs(N.Box,{width:"100%",children:[c.jsx(N.Stepper,{activeStep:a,alternativeLabel:!0,connector:c.jsx(Z2,{}),sx:{"& .MuiStepLabel-label":{mt:1,textTransform:"uppercase",textAlign:"center",whiteSpace:"pre-line",fontWeight:600,fontSize:14}},children:e.map((i,s)=>c.jsx(N.Step,{completed:s<t,children:c.jsx(N.StepLabel,{slots:{stepIcon:l=>c.jsx(F2,{...l,colorHex:r})},children:i})},s))}),n&&c.jsx(N.Box,{mt:1,textAlign:"center",children:c.jsx(N.Typography,{variant:"body2",color:"text.secondary",children:n})})]})},U2={StepperWithLabel:I2},Y2=3,ts=2,ns=24,Sd=({label:e,placeholder:t="Sélectionner...",placeholderIcon:n="person",value:r,onChange:a,options:i,disabled:s=!1,status:l="default",hint:d,text:u,sxButton:p={},menuItemSx:m={},withoutBorder:h=!1,reverse:y=!1,textSx:g,descriptionSx:f,withDesecription:v=!1})=>{const[A,S]=K.useState(!1),x=N.useTheme(),C=A?"secondaryColor.main":l==="error"?"error.main":l==="success"?"success.main":"#E1E1E1",T=i.find(z=>z.value===r),E=({children:z,position:k})=>c.jsx(N.Box,{sx:{width:ns,height:ns,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...k==="left"?{mr:ts}:{ml:ts}},children:z});return c.jsxs(N.Box,{sx:{width:"100%",position:"relative"},children:[e&&c.jsxs(N.Box,{sx:{display:"flex",justifyContent:"space-between",mb:2,gap:1},children:[c.jsx(N.Typography,{variant:"subtitle2",children:e}),u&&c.jsx(N.Typography,{variant:"caption",color:"text.disabled",children:u})]}),c.jsxs(N.Box,{onClick:()=>!s&&S(z=>!z),sx:{border:h?"none":1.5,borderColor:C,borderRadius:1,px:Y2,py:2,minHeight:44,cursor:s?"not-allowed":"pointer",bgcolor:s?x.palette.action.disabledBackground:x.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:1,...p},children:[c.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[T?c.jsxs(c.Fragment,{children:[T?.image&&c.jsx(E,{position:"left",children:gn(T.image,{size:20})}),T?.leftIcon&&c.jsx(E,{position:"left",children:Ne(T.leftIcon,{size:18})})]}):c.jsx(E,{position:"left",children:Ne(n,{color:"gray",size:16})}),c.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:1,minWidth:0},children:[T?c.jsx(N.Typography,{variant:"h6",sx:{lineHeight:1.2,...g},children:T.label}):c.jsx(N.Typography,{variant:"body2",sx:{color:"gray.600",lineHeight:1.2,...g},children:t}),v&&c.jsx(N.Typography,{variant:"caption",sx:{color:"gray.600",lineHeight:1.6,...f},children:T?.description})]})]}),c.jsx(E,{position:"right",children:A?Ne("ChevronUp",{size:16}):Ne("ChevronDown",{size:16})})]}),A&&c.jsx(N.Paper,{sx:{...m,position:"absolute",mt:1,borderRadius:1,border:1,borderColor:"gray.300",boxShadow:3,zIndex:2,width:"100%",p:0,overflow:"hidden"},children:i.map(z=>c.jsx(N.MenuItem,{onClick:()=>{a(z.value??null),S(!1)},sx:{px:0,py:0,"&:hover":{backgroundColor:"transparent"}},children:c.jsx(Ad,{label:z.label,description:z.description,image:z.image,leftIcon:z.leftIcon??void 0,text:z.text,reverse:y,disabled:!1,isFavorite:z.isFavorite,textSx:g,descriptionSx:f,withoutDivider:z.value!==i[i.length-1]?.value})},z.value))}),d&&c.jsxs(N.Typography,{variant:"caption",sx:{mt:2,display:"flex",alignItems:"center",gap:1,lineHeight:1},color:l==="error"?"error":l==="success"?"success":"text.secondary",children:[Ne("info",{size:16}),d]})]})},P2={facebook:c.jsx(Ie.Facebook,{size:18}),instagram:c.jsx(Ie.Instagram,{size:18}),x:c.jsx(Ie.Twitter,{size:18}),tiktok:c.jsx(Ie.Music,{size:18})},qn={direction:"row",flexWrap:"wrap",spacing:2,sx:{width:{xs:"100%",sm:"auto"}}},rs=({links:e})=>{const t=rt(),n={mx:1.5,display:{xs:"none",sm:"block"},borderColor:t.palette.divider,alignSelf:"stretch",height:"auto"};return c.jsx(N.Stack,{direction:"row",spacing:1.5,alignItems:"center",flexWrap:"wrap",children:e.map((r,a)=>c.jsxs(R.Fragment,{children:[c.jsx(mo,{label:r.label,href:r.href,underline:"hover",variant:"body2",sx:{fontSize:14,color:"text.primary",px:0}}),a<e.length-1&&c.jsx(Xt,{orientation:"vertical",sx:n})]},r.label))})},os=({brand:e,year:t})=>c.jsxs(N.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[gn("logo",{size:18}),c.jsxs(N.Typography,{variant:"body2",sx:{fontSize:14,lineHeight:1.2},children:["Copyright ",e," © ",t]})]}),as=({lang:e,languages:t,onChange:n})=>c.jsxs(N.Stack,{direction:"row",spacing:1,alignItems:"center",children:[c.jsx(Ie.Globe,{size:18,"aria-hidden":!0}),c.jsx(Sd,{label:"",value:e,onChange:r=>n(String(r)),options:t.map(r=>({value:r,label:r})),sxButton:{background:"transparent",border:"none",fontSize:14,color:"text.primary"}})]}),B2=({brand:e="DiShop",year:t=new Date().getFullYear(),linksLeft:n=[{label:"Conditions Générales",href:"#"},{label:"Mentions Légales",href:"#"}],socials:r=["facebook","instagram","x","tiktok"],languages:a=["FRANÇAIS","ENGLISH","ESPAÑOL"],currentLanguage:i="FRANÇAIS",onLanguageChange:s})=>{const l=rt(),[d,u]=R.useState(i),p=h=>{u(h),s?.(h)},m=c.jsx(N.Stack,{direction:"row",spacing:1.5,alignItems:"center",children:r.map(h=>c.jsx(N.IconButton,{size:"small","aria-label":h,disableRipple:!0,sx:{color:"text.primary",px:3,"&:hover":{backgroundColor:"transparent"}},children:P2[h]},h))});return c.jsx(N.Box,{component:"footer",sx:{...Sf(),bgcolor:"background.paper",color:"text.primary",p:{xs:2,md:3}},children:c.jsxs(N.Container,{maxWidth:"lg",disableGutters:!0,children:[c.jsxs(N.Stack,{direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",spacing:{xs:2,md:3},py:{xs:2,md:2.5},flexWrap:"wrap",children:[c.jsxs(N.Stack,{direction:"row",spacing:2,alignItems:"center",flexWrap:"wrap",children:[c.jsx(os,{brand:e,year:t}),c.jsx(Xt,{orientation:"vertical",sx:{mx:1.5,display:{xs:"none",sm:"block"},borderColor:l.palette.divider,alignSelf:"stretch",height:"auto"}}),c.jsx(rs,{links:n})]}),c.jsxs(N.Stack,{direction:"row",spacing:2.5,alignItems:"center",flexWrap:"wrap",children:[c.jsx(as,{lang:d,languages:a,onChange:p}),m]})]}),c.jsx(Xt,{sx:{my:1.5,borderColor:l.palette.divider}}),c.jsxs(N.Stack,{alignItems:"center",justifySelf:"flex-start",spacing:{xs:2,sm:3},py:{xs:1.5,md:2},flexWrap:"wrap",sx:{rowGap:{xs:1.5,sm:0},columnGap:{xs:0,sm:2}},children:[c.jsxs(N.Stack,{...qn,spacing:2,children:[c.jsx(as,{lang:d,languages:a,onChange:p}),m]}),c.jsx(N.Stack,{...qn,spacing:1.5,justifyContent:{xs:"flex-start",sm:"center"},sx:{...qn.sx,order:{xs:3,sm:2}},children:c.jsx(rs,{links:n})}),c.jsx(N.Stack,{...qn,spacing:1,justifyContent:{xs:"flex-start",sm:"flex-end"},sx:{...qn.sx,order:{xs:2,sm:3}},children:c.jsx(os,{brand:e,year:t})})]})]})})};function Ar(e){return parseInt(e,10)||0}const G2={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L2(e){for(const t in e)return!1;return!0}function is(e){return L2(e)||e.outerHeightStyle===0&&!e.overflowing}const Nd=R.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:i=1,style:s,value:l,...d}=t,{current:u}=R.useRef(l!=null),p=R.useRef(null),m=De(n,p),h=R.useRef(null),y=R.useRef(null),g=R.useCallback(()=>{const x=p.current,C=y.current;if(!x||!C)return;const E=xt(x).getComputedStyle(x);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=E.width,C.value=x.value||t.placeholder||"x",C.value.slice(-1)===`
146
146
  `&&(C.value+=" ");const z=E.boxSizing,k=Ar(E.paddingBottom)+Ar(E.paddingTop),Z=Ar(E.borderBottomWidth)+Ar(E.borderTopWidth),F=C.scrollHeight;C.value="x";const I=C.scrollHeight;let b=F;i&&(b=Math.max(Number(i)*I,b)),a&&(b=Math.min(Number(a)*I,b)),b=Math.max(b,I);const V=b+(z==="border-box"?k+Z:0),O=Math.abs(b-F)<=1;return{outerHeightStyle:V,overflowing:O}},[a,i,t.placeholder]),f=Gt(()=>{const x=p.current,C=g();if(!x||!C||is(C))return!1;const T=C.outerHeightStyle;return h.current!=null&&h.current!==T}),v=R.useCallback(()=>{const x=p.current,C=g();if(!x||!C||is(C))return;const T=C.outerHeightStyle;h.current!==T&&(h.current=T,x.style.height=`${T}px`),x.style.overflow=C.overflowing?"hidden":""},[g]),A=R.useRef(-1);Vt(()=>{const x=Kl(v),C=p?.current;if(!C)return;const T=xt(C);T.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{f()&&(E.unobserve(C),cancelAnimationFrame(A.current),v(),A.current=requestAnimationFrame(()=>{E.observe(C)}))}),E.observe(C)),()=>{x.clear(),cancelAnimationFrame(A.current),T.removeEventListener("resize",x),E&&E.disconnect()}},[g,v,f]),Vt(()=>{v()});const S=x=>{u||v();const C=x.target,T=C.value.length,E=C.value.endsWith(`