slick-table 1.1.25 → 1.1.26
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.js +11 -11
- package/dist/index.es.js +13 -12
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -264,7 +264,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
264
264
|
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:dD||{"&::after":{animation:`${ru} 2s linear 0.5s infinite`}}}]}})),Ly=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:l,style:d,variant:u="text",width:f,...p}=o,y={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},w=lD(y);return E.jsx(uD,{as:a,ref:n,className:Se(w.root,i),ownerState:y,...p,style:{width:f,height:l,...d}})});process.env.NODE_ENV!=="production"&&(Ly.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function hD(e){return Me("MuiTooltip",e)}const Xt=Pe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fD(e){return Math.round(e*1e5)/1e5}const pD=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${we(i.split("-")[0])}`],arrow:["arrow"]};return Ie(a,hD,t)},mD=ie(ac,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ot(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Xt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Xt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),gD=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${we(n.placement.split("-")[0])}`]]}})(ot(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Xt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Xt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Xt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${fD(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),yD=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ot(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ka=!1;const pm=new nc;let ui={x:0,y:0};function Xa(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const $y=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:a,components:l={},componentsProps:d={},describeChild:u=!1,disableFocusListener:f=!1,disableHoverListener:p=!1,disableInteractive:y=!1,disableTouchListener:w=!1,enterDelay:b=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:D=!1,id:k,leaveDelay:x=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:I,placement:F="bottom",PopperComponent:z,PopperProps:R={},slotProps:$={},slots:K={},title:G,TransitionComponent:q=zr,TransitionProps:Y,...H}=o,ae=T.isValidElement(i)?i:E.jsx("span",{children:i}),A=qr(),M=to(),[L,B]=T.useState(),[ne,oe]=T.useState(null),se=T.useRef(!1),j=y||D,ee=vs(),J=vs(),te=vs(),ce=vs(),[le,he]=uo({controlled:I,default:!1,name:"Tooltip",state:"open"});let W=le;if(process.env.NODE_ENV!=="production"){const{current:He}=T.useRef(I!==void 0);T.useEffect(()=>{L&&L.disabled&&!He&&G!==""&&L.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
265
265
|
`))},[G,L,He])}const re=sr(k),Z=T.useRef(),fe=Te(()=>{Z.current!==void 0&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),ce.clear()});T.useEffect(()=>fe,[fe]);const pe=He=>{pm.clear(),Ka=!0,he(!0),O&&!W&&O(He)},be=Te(He=>{pm.start(800+x,()=>{Ka=!1}),he(!1),C&&W&&C(He),ee.start(A.transitions.duration.shortest,()=>{se.current=!1})}),ge=He=>{se.current&&He.type!=="touchstart"||(L&&L.removeAttribute("title"),J.clear(),te.clear(),b||Ka&&m?J.start(Ka?m:b,()=>{pe(He)}):pe(He))},Re=He=>{J.clear(),te.start(x,()=>{be(He)})},[,Ve]=T.useState(!1),Ne=He=>{Cl(He.target)||(Ve(!1),Re(He))},Je=He=>{L||B(He.currentTarget),Cl(He.target)&&(Ve(!0),ge(He))},ke=He=>{se.current=!0;const _e=ae.props;_e.onTouchStart&&_e.onTouchStart(He)},ut=He=>{ke(He),te.clear(),ee.clear(),fe(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=Z.current,ge(He)})},Yt=He=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(He),fe(),te.start(S,()=>{be(He)})};T.useEffect(()=>{if(!W)return;function He(_e){_e.key==="Escape"&&be(_e)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[be,W]);const rt=ct(zs(ae),B,n);!G&&G!==0&&(W=!1);const Ot=T.useRef(),Ut=He=>{const _e=ae.props;_e.onMouseMove&&_e.onMouseMove(He),ui={x:He.clientX,y:He.clientY},Ot.current&&Ot.current.update()},Lt={},Ue=typeof G=="string";u?(Lt.title=!W&&Ue&&!p?G:null,Lt["aria-describedby"]=W?re:null):(Lt["aria-label"]=Ue?G:null,Lt["aria-labelledby"]=W&&!Ue?re:null);const Be={...Lt,...H,...ae.props,className:Se(H.className,ae.props.className),onTouchStart:ke,ref:rt,...D?{onMouseMove:Ut}:{}};process.env.NODE_ENV!=="production"&&(Be["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{L&&!L.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
266
266
|
`))},[L]));const rn={};w||(Be.onTouchStart=ut,Be.onTouchEnd=Yt),p||(Be.onMouseOver=Xa(ge,Be.onMouseOver),Be.onMouseLeave=Xa(Re,Be.onMouseLeave),j||(rn.onMouseOver=ge,rn.onMouseLeave=Re)),f||(Be.onFocus=Xa(Je,Be.onFocus),Be.onBlur=Xa(Ne,Be.onBlur),j||(rn.onFocus=Je,rn.onBlur=Ne)),process.env.NODE_ENV!=="production"&&ae.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ae.props.title}\` or the Tooltip component.`].join(`
|
|
267
|
-
`));const dn=T.useMemo(()=>{let He=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return R.popperOptions?.modifiers&&(He=He.concat(R.popperOptions.modifiers)),{...R.popperOptions,modifiers:He}},[ne,R]),Oe={...o,isRtl:M,arrow:r,disableInteractive:j,placement:F,PopperComponentProp:z,touch:se.current},We=pD(Oe),ht=K.popper??l.Popper??mD,nn=K.transition??l.Transition??q??zr,An=K.tooltip??l.Tooltip??gD,at=K.arrow??l.Arrow??yD,Zt=bs(ht,{...R,...$.popper??d.popper,className:Se(We.popper,R?.className,($.popper??d.popper)?.className)},Oe),pn=bs(nn,{...Y,...$.transition??d.transition},Oe),Qt=bs(An,{...$.tooltip??d.tooltip,className:Se(We.tooltip,($.tooltip??d.tooltip)?.className)},Oe),cr=bs(at,{...$.arrow??d.arrow,className:Se(We.arrow,($.arrow??d.arrow)?.className)},Oe);return E.jsxs(T.Fragment,{children:[T.cloneElement(ae,Be),E.jsx(ht,{as:z??ac,placement:F,anchorEl:D?{getBoundingClientRect:()=>({top:ui.y,left:ui.x,right:ui.x,bottom:ui.y,width:0,height:0})}:L,popperRef:Ot,open:L?W:!1,id:re,transition:!0,...rn,...Zt,popperOptions:dn,children:({TransitionProps:He})=>E.jsx(nn,{timeout:A.transitions.duration.shorter,...He,...pn,children:E.jsxs(An,{...Qt,children:[G,r?E.jsx(at,{...cr,ref:oe}):null]})})})]})});process.env.NODE_ENV!=="production"&&($y.propTypes={arrow:s.bool,children:Hs.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function vD(e){return Me("MuiTextField",e)}Pe("MuiTextField",["root"]);const bD={standard:Zi,filled:Xi,outlined:$s},wD=e=>{const{classes:t}=e;return Ie({root:["root"]},vD,t)},CD=ie(pa,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vs=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:D,InputProps:k,inputRef:x,label:S,maxRows:C,minRows:O,multiline:I=!1,name:F,onBlur:z,onChange:R,onFocus:$,placeholder:K,required:G=!1,rows:q,select:Y=!1,SelectProps:H,slots:ae={},slotProps:A={},type:M,value:L,variant:B="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:I,required:G,select:Y,variant:B},se=wD(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=sr(m),ee=b&&j?`${j}-helper-text`:void 0,J=S&&j?`${j}-label`:void 0,te=bD[B],ce={slots:ae,slotProps:{input:k,inputLabel:v,htmlInput:D,formHelperText:y,select:H,...A}},le={},he=ce.slotProps.inputLabel;B==="outlined"&&(he&&typeof he.shrink<"u"&&(le.notched=he.shrink),le.label=S),Y&&((!H||!H.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[W,re]=Dn("input",{elementType:te,externalForwardedProps:ce,additionalProps:le,ownerState:oe}),[Z,fe]=Dn("inputLabel",{elementType:ma,externalForwardedProps:ce,ownerState:oe}),[pe,be]=Dn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ge,Re]=Dn("formHelperText",{elementType:Xu,externalForwardedProps:ce,ownerState:oe}),[Ve,Ne]=Dn("select",{elementType:ga,externalForwardedProps:ce,ownerState:oe}),Je=E.jsx(W,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:I,name:F,rows:q,maxRows:C,minRows:O,type:M,value:L,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:be,slots:{input:ae.htmlInput?pe:void 0},...re});return E.jsxs(CD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:G,color:d,variant:B,ownerState:oe,...ne,children:[S!=null&&S!==""&&E.jsx(Z,{htmlFor:j,id:J,...fe,children:S}),Y?E.jsx(Ve,{"aria-describedby":ee,id:j,labelId:J,value:L,input:Je,...Ne,children:a}):Je,b&&E.jsx(ge,{id:ee,...Re,children:b})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const SD=ie(Ly)({width:"100%",borderRadius:"10px"}),_D={Skeleton:SD},xD=({height:e="calc(100% - 1em)"})=>E.jsx(_D.Skeleton,{variant:"rectangular",height:e});var je=(e=>(e[e.Boolean=1]="Boolean",e[e.DateBetween=2]="DateBetween",e[e.DateEqual=3]="DateEqual",e[e.DateFrom=4]="DateFrom",e[e.DateTo=5]="DateTo",e[e.MultipleSelect=6]="MultipleSelect",e[e.NumberBetween=7]="NumberBetween",e[e.NumberEqual=8]="NumberEqual",e[e.NumberFrom=9]="NumberFrom",e[e.NumberTo=10]="NumberTo",e[e.TextContain=11]="TextContain",e[e.TextEqual=12]="TextEqual",e[e.TextNotContain=13]="TextNotContain",e[e.TextNotEqual=14]="TextNotEqual",e))(je||{}),hn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(hn||{}),Yr=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Yr||{}),Ar=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Ar||{}),Kr=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Kr||{}),Co=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT_NUMERIC=4]="TEXT_NUMERIC",e[e.TEXT=5]="TEXT",e))(Co||{});const mm=e=>t=>{t.keyCode===Kr.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},RD=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},TD=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},kD=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())};class ED{constructor(){this._initialColumns=[],this._visibleColumnIds=[]}get visibleColumnIds(){return this._visibleColumnIds}set visibleColumnIds(t){this._visibleColumnIds=t}get initialColumns(){return this._initialColumns}set initialColumns(t){this.visibleColumnIds.length||(this.visibleColumnIds=t.map(({id:n})=>n)),this._initialColumns=t}}const bd=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function Vy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const PD=["FormatterStatus","FormatterNumber"];class DD{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=bd(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return
|
|
267
|
+
`));const dn=T.useMemo(()=>{let He=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return R.popperOptions?.modifiers&&(He=He.concat(R.popperOptions.modifiers)),{...R.popperOptions,modifiers:He}},[ne,R]),Oe={...o,isRtl:M,arrow:r,disableInteractive:j,placement:F,PopperComponentProp:z,touch:se.current},We=pD(Oe),ht=K.popper??l.Popper??mD,nn=K.transition??l.Transition??q??zr,An=K.tooltip??l.Tooltip??gD,at=K.arrow??l.Arrow??yD,Zt=bs(ht,{...R,...$.popper??d.popper,className:Se(We.popper,R?.className,($.popper??d.popper)?.className)},Oe),pn=bs(nn,{...Y,...$.transition??d.transition},Oe),Qt=bs(An,{...$.tooltip??d.tooltip,className:Se(We.tooltip,($.tooltip??d.tooltip)?.className)},Oe),cr=bs(at,{...$.arrow??d.arrow,className:Se(We.arrow,($.arrow??d.arrow)?.className)},Oe);return E.jsxs(T.Fragment,{children:[T.cloneElement(ae,Be),E.jsx(ht,{as:z??ac,placement:F,anchorEl:D?{getBoundingClientRect:()=>({top:ui.y,left:ui.x,right:ui.x,bottom:ui.y,width:0,height:0})}:L,popperRef:Ot,open:L?W:!1,id:re,transition:!0,...rn,...Zt,popperOptions:dn,children:({TransitionProps:He})=>E.jsx(nn,{timeout:A.transitions.duration.shorter,...He,...pn,children:E.jsxs(An,{...Qt,children:[G,r?E.jsx(at,{...cr,ref:oe}):null]})})})]})});process.env.NODE_ENV!=="production"&&($y.propTypes={arrow:s.bool,children:Hs.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function vD(e){return Me("MuiTextField",e)}Pe("MuiTextField",["root"]);const bD={standard:Zi,filled:Xi,outlined:$s},wD=e=>{const{classes:t}=e;return Ie({root:["root"]},vD,t)},CD=ie(pa,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vs=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:D,InputProps:k,inputRef:x,label:S,maxRows:C,minRows:O,multiline:I=!1,name:F,onBlur:z,onChange:R,onFocus:$,placeholder:K,required:G=!1,rows:q,select:Y=!1,SelectProps:H,slots:ae={},slotProps:A={},type:M,value:L,variant:B="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:I,required:G,select:Y,variant:B},se=wD(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=sr(m),ee=b&&j?`${j}-helper-text`:void 0,J=S&&j?`${j}-label`:void 0,te=bD[B],ce={slots:ae,slotProps:{input:k,inputLabel:v,htmlInput:D,formHelperText:y,select:H,...A}},le={},he=ce.slotProps.inputLabel;B==="outlined"&&(he&&typeof he.shrink<"u"&&(le.notched=he.shrink),le.label=S),Y&&((!H||!H.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[W,re]=Dn("input",{elementType:te,externalForwardedProps:ce,additionalProps:le,ownerState:oe}),[Z,fe]=Dn("inputLabel",{elementType:ma,externalForwardedProps:ce,ownerState:oe}),[pe,be]=Dn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ge,Re]=Dn("formHelperText",{elementType:Xu,externalForwardedProps:ce,ownerState:oe}),[Ve,Ne]=Dn("select",{elementType:ga,externalForwardedProps:ce,ownerState:oe}),Je=E.jsx(W,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:I,name:F,rows:q,maxRows:C,minRows:O,type:M,value:L,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:be,slots:{input:ae.htmlInput?pe:void 0},...re});return E.jsxs(CD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:G,color:d,variant:B,ownerState:oe,...ne,children:[S!=null&&S!==""&&E.jsx(Z,{htmlFor:j,id:J,...fe,children:S}),Y?E.jsx(Ve,{"aria-describedby":ee,id:j,labelId:J,value:L,input:Je,...Ne,children:a}):Je,b&&E.jsx(ge,{id:ee,...Re,children:b})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const SD=ie(Ly)({width:"100%",borderRadius:"10px"}),_D={Skeleton:SD},xD=({height:e="calc(100% - 1em)"})=>E.jsx(_D.Skeleton,{variant:"rectangular",height:e});var je=(e=>(e[e.Boolean=1]="Boolean",e[e.DateBetween=2]="DateBetween",e[e.DateEqual=3]="DateEqual",e[e.DateFrom=4]="DateFrom",e[e.DateTo=5]="DateTo",e[e.MultipleSelect=6]="MultipleSelect",e[e.NumberBetween=7]="NumberBetween",e[e.NumberEqual=8]="NumberEqual",e[e.NumberFrom=9]="NumberFrom",e[e.NumberTo=10]="NumberTo",e[e.TextContain=11]="TextContain",e[e.TextEqual=12]="TextEqual",e[e.TextNotContain=13]="TextNotContain",e[e.TextNotEqual=14]="TextNotEqual",e))(je||{}),hn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(hn||{}),Yr=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Yr||{}),Ar=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Ar||{}),Kr=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Kr||{}),Co=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT_NUMERIC=4]="TEXT_NUMERIC",e[e.TEXT=5]="TEXT",e))(Co||{});const mm=e=>t=>{t.keyCode===Kr.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},RD=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},TD=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},kD=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())};class ED{constructor(){this._initialColumns=[],this._visibleColumnIds=[]}get visibleColumnIds(){return this._visibleColumnIds}set visibleColumnIds(t){this._visibleColumnIds=t}get initialColumns(){return this._initialColumns}set initialColumns(t){this.visibleColumnIds.length||(this.visibleColumnIds=t.map(({id:n})=>n)),this._initialColumns=t}}const bd=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function Vy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const PD=["FormatterStatus","FormatterNumber"];class DD{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=bd(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return RF(t).reduce((i,a)=>{const l=n.getItemMetadata(a),d=n.getItem(a),u=d.__group,f=d.__groupTotals;let p="";if(u){const y=bd(Vy(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,m=l?.columns?.[b]?.formatter,v=w.printer||m||w.formatter;let D=d[b];if(f){const x=w.groupTotalsFormatter;D=x?x(d,w,t):""}else v&&!PD.includes(v.name)&&(D=v(0,0,D,w,d,t));const k=bd(D);p+=`"${k}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
|
|
268
268
|
`}}class OD{constructor(){this.externalVariables={},this.commandQueue=[],this.queueIndex=-1}getQueueIndex(){return this.queueIndex}setQueueIndex(t){this.queueIndex=t}handleKeyboardEvent(t,n){const o=n.grid;if(!n.isActive||!o)return;const r=o.getData();if(kh(t)){if(t.preventDefault(),t.stopImmediatePropagation(),rF(o)||this.externalVariables.editingAllowed===!1)return;Hv(o),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(Wv(t)){t.preventDefault(),t.stopImmediatePropagation();const i=o.getSelectedRows();if(!i.length)return;i.forEach(a=>{const l=r.getItem(a);l.isDeleted=!0}),o.setSelectedRows([]),r.refresh(),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(Ph(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i<1)return;const a=i-1;this.setQueueIndex(a),r.setItems(wd(this.commandQueue[a])),o.invalidate(),n.isEdited=a!==0}else if(Eh(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i===this.commandQueue.length-1)return;const a=i+1;this.setQueueIndex(a),r.setItems(wd(this.commandQueue[a])),o.invalidate(),n.isEdited=!0}}pushToCommandQueue(t){if(!t)return;const o=t.getData().getItems(),i=this.getQueueIndex()+1;this.commandQueue.length=i,this.commandQueue.push(wd(o)),this.setQueueIndex(i)}resetQueue(){this.commandQueue.length=0,this.queueIndex=-1}setExternalVariables(t){this.externalVariables={...this.externalVariables,...t}}getExternalVariables(){return this.externalVariables}}function wd(e){return e.map(t=>({...t}))}class jy{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}class mc{constructor(t){this.hotKeysBehaviour=t}handleKeyboardEvent(t,n){this.hotKeysBehaviour.handleKeyboardEvent(t,n)}pushToCommandQueue(t){this.hotKeysBehaviour.pushToCommandQueue(t)}resetQueue(){this.hotKeysBehaviour.resetQueue()}setExternalVariables(t){this.hotKeysBehaviour.setExternalVariables(t)}getExternalVariables(){return this.hotKeysBehaviour.getExternalVariables()}}class MD extends mc{handleKeyboardEvent(t,n){n.isActive&&(kh(t)||super.handleKeyboardEvent.call(this,t,n))}}class ID extends mc{handleKeyboardEvent(t,n){n.isActive&&(Eh(t)||Ph(t))&&super.handleKeyboardEvent.call(this,t,n)}}const su="checkboxSelector";//! moment.js
|
|
269
269
|
//! version : 2.30.1
|
|
270
270
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -290,7 +290,7 @@ xe.version="2.30.1";ND(It);xe.fn=ve;xe.min=SM;xe.max=_M;xe.now=xM;xe.utc=No;xe.u
|
|
|
290
290
|
* This increases the speed dramatically, but can only be done safely because there are no event handlers
|
|
291
291
|
* or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
|
|
292
292
|
* and do proper cleanup.
|
|
293
|
-
*/const AA={asyncEditorLoading:!1,autosizeColsMode:$v.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function FA({SlickDataView:e=PA,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=
|
|
293
|
+
*/const AA={asyncEditorLoading:!1,autosizeColsMode:$v.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function FA({SlickDataView:e=PA,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=PF,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m=kD,onSelectedRowsChanged:v,options:D={},table:k}){Fe.useEffect(()=>{const x=new jv,S=new mA({}),C=new vA({}),O=new e({groupItemMetadataProvider:a?x:void 0}),I=k.createGrid(O,[],D);I.setSelectionModel(new RA({selectActiveRow:!1})),I.registerPlugin(S),I.registerPlugin(x),i&&(O.getItemMetadata=i(O)),O.setItems(n?d.map((z,R)=>({...z,[l]:++R})):d.map(z=>({...z})),l),I.invalidate(),O.onRowCountChanged.subscribe(m(k)),O.onRowsChanged.subscribe(TD(I)),I.onAddNewRow.subscribe(u),I.onCellChange.subscribe(p),v&&I.onSelectedRowsChanged.subscribe(v),f&&I.onBeforeEditCell.subscribe(f),y&&I.onClick.subscribe(y),w&&I.onDblClick.subscribe(w),I.onSort.subscribe(o.getSortFunction(k.id)),I.onContextMenu.subscribe(zv(k)),k.columnPicker&&I.onHeaderContextMenu.subscribe(aF(k));const F=Nv(k);return S.onCommand.subscribe(F),b&&(C.onCommand.subscribe(b),I.registerPlugin(C)),a&&(k.grouping={groups:a,isGrouped:k.grouping.isGrouped??!0}),t?.(I),k.hotKeysBehavior.pushToCommandQueue(I),()=>{S.onCommand.unsubscribe(F),b&&C.onCommand.unsubscribe(b),I.onAddNewRow.unsubscribe(u),I.onCellChange.unsubscribe(p),v&&I.onSelectedRowsChanged.subscribe(v),f&&I.onBeforeEditCell.unsubscribe(f),y&&I.onClick.unsubscribe(y),w&&I.onDblClick.unsubscribe(w),k.reset()}},[d]),Fe.useEffect(()=>{const x=k.grid;!x||!D||setTimeout(()=>{x.setOptions({...AA,...D}),x.render(),k.totalCalculator?.calculate(x),k.notifyObservers()},0)},[D,d]),Fe.useEffect(()=>{const x=k.grid;if(x&&r.length){if(r[0].id===su){const S=new uA;x.setColumns([{...S.getColumnDefinition(),focusable:!1},...r.slice(1)]),x.registerPlugin(S)}else x.setColumns(r);k.columnPicker&&(k.columnPicker.initialColumns=x.getColumns(),k.columnPicker.visibleColumnIds.length||(k.columnPicker.visibleColumnIds=x.getColumns().map(({id:S})=>S)),x.setColumns(x.getColumns().filter(({id:S})=>!k.columnPicker||!k.columnPicker.visibleColumnIds.length?!0:k.columnPicker.visibleColumnIds.includes(S)))),or.highlightAllColumns(k.filter.args,k.id),k.filter.register(x,k.id),x.invalidate(),k.totalCalculator?.calculate(x),k.notifyObservers(),o.restoreSorting(k)}},[r,d])}const LA=e=>(t,{grid:n,item:o})=>{$A(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},$A=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...nF(n),...t,[o]:Fl(e),isEdited:!0,isNew:!0};n.addItem(i)},VA=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m,onSelectedRowsChanged:v,options:D,table:k})=>(FA({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||LA(k),onBeforeEditCell:f,onCellChange:p||RD(k),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m,onSelectedRowsChanged:v,options:D,table:k}),cF(k),fF(k),hF(k),E.jsx("div",{id:k.id,className:"slick-container"})),Pm=Ws`
|
|
294
294
|
50% {
|
|
295
295
|
background-color: #ffb1b1;
|
|
296
296
|
}
|
|
@@ -352,15 +352,15 @@ Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error
|
|
|
352
352
|
* Pikaday
|
|
353
353
|
*
|
|
354
354
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
355
|
-
*/var vF=yl.exports,Om;function bF(){return Om||(Om=1,function(e,t){(function(n,o){var r;{try{r=yF}catch{}e.exports=o(r)}})(vF,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(A,M,L,B){r?A.addEventListener(M,L,!!B):A.attachEvent("on"+M,L)},d=function(A,M,L,B){r?A.removeEventListener(M,L,!!B):A.detachEvent("on"+M,L)},u=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")},f=function(A,M){return(" "+A.className+" ").indexOf(" "+M+" ")!==-1},p=function(A,M){f(A,M)||(A.className=A.className===""?M:A.className+" "+M)},y=function(A,M){A.className=u((" "+A.className+" ").replace(" "+M+" "," "))},w=function(A){return/Array/.test(Object.prototype.toString.call(A))},b=function(A){return/Date/.test(Object.prototype.toString.call(A))&&!isNaN(A.getTime())},m=function(A){var M=A.getDay();return M===0||M===6},v=function(A){return A%4===0&&A%100!==0||A%400===0},D=function(A,M){return[31,v(A)?29:28,31,30,31,30,31,31,30,31,30,31][M]},k=function(A){b(A)&&A.setHours(0,0,0,0)},x=function(A,M){return A.getTime()===M.getTime()},S=function(A,M,L){var B,ne;for(B in M)ne=A[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(A[B]=new Date(M[B].getTime())):w(M[B])?L&&(A[B]=M[B].slice(0)):A[B]=S({},M[B],L):(L||!ne)&&(A[B]=M[B]);return A},C=function(A,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),A.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),A.fireEvent("on"+M,B))},O=function(A){return A.month<0&&(A.year-=Math.ceil(Math.abs(A.month)/12),A.month+=12),A.month>11&&(A.year+=Math.floor(Math.abs(A.month)/12),A.month-=12),A},I={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(A,M,L){for(M+=A.firstDay;M>=7;)M-=7;return L?A.i18n.weekdaysShort[M]:A.i18n.weekdays[M]},z=function(A){var M=[],L="false";if(A.isEmpty)if(A.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),A.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return A.isDisabled&&M.push("is-disabled"),A.isToday&&M.push("is-today"),A.isSelected&&(M.push("is-selected"),L="true"),A.hasEvent&&M.push("has-event"),A.isInRange&&M.push("is-inrange"),A.isStartRange&&M.push("is-startrange"),A.isEndRange&&M.push("is-endrange"),'<td data-day="'+A.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+A.year+'" data-pika-month="'+A.month+'" data-pika-day="'+A.day+'">'+A.day+"</button></td>"},R=function(A,M){A.setHours(0,0,0,0);var L=A.getDate(),B=A.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};A.setDate(L+oe-j(B));var ee=new Date(A.getFullYear(),0,ne),J=24*60*60*1e3,te=(A.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(A,M,L,B){var ne=new Date(L,M,A),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(A,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?A.reverse():A).join("")+"</tr>"},G=function(A){return"<tbody>"+A.join("")+"</tbody>"},q=function(A){var M,L=[];for(A.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(A,M)+'">'+F(A,M,!0)+"</abbr></th>");return"<thead><tr>"+(A.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(A,M,L,B,ne,oe){var se,j,ee,J=A._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=W+he:le+=he+W,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===A._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},H=function(A,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(A)+G(M)+"</table>"},ae=function(A){var M=this,L=M.config(A);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(A){this._o||(this._o=S({},I,!0));var M=S(this._o,A,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||I.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(A){return A=A||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,A):o?n(this._d).format(A):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(A,M){o&&n.isMoment(A)&&this.setDate(A.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(A,M){if(!A)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof A=="string"&&(A=new Date(Date.parse(A))),!!b(A)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&A<L?A=L:b(B)&&A>B&&(A=B),this._d=new Date(A.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(A){var M=!0;if(b(A)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=A.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:A.getMonth(),year:A.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(A,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;A==="add"?ne=new Date(L.valueOf()+B):A==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var A=1;A<this._o.numberOfMonths;A++)this.calendars[A]=O({month:this.calendars[0].month+A,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(A){isNaN(A)||(this.calendars[0].month=parseInt(A,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(A){isNaN(A)||(this.calendars[0].year=parseInt(A,10),this.adjustCalendars())},setMinDate:function(A){A instanceof Date?(k(A),this._o.minDate=A,this._o.minYear=A.getFullYear(),this._o.minMonth=A.getMonth()):(this._o.minDate=I.minDate,this._o.minYear=I.minYear,this._o.minMonth=I.minMonth,this._o.startRange=I.startRange),this.draw()},setMaxDate:function(A){A instanceof Date?(k(A),this._o.maxDate=A,this._o.maxYear=A.getFullYear(),this._o.maxMonth=A.getMonth()):(this._o.maxDate=I.maxDate,this._o.maxYear=I.maxYear,this._o.maxMonth=I.maxMonth,this._o.endRange=I.endRange),this.draw()},setStartRange:function(A){this._o.startRange=A},setEndRange:function(A){this._o.endRange=A},draw:function(A){if(!(!this._v&&!A)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var A,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",A=this._o.trigger,M=A,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof A.getBoundingClientRect=="function")J=A.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+A.offsetWidth>0)&&(j=j-L+A.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-A.offsetHeight>0)&&(ee=ee-B-A.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(A,M,L){var B=this._o,ne=new Date,oe=D(A,M),se=new Date(A,M,1).getDay(),j=[],ee=[];k(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?A-1:A,le=M===11?A+1:A,he=D(ce,J),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Z=!1,fe=0,pe=0;fe<W;fe++){var be=new Date(A,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),ke=M,ut=A,Yt=B.startRange&&x(B.startRange,be),rt=B.endRange&&x(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,Ut=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,ke=J,ut=ce):(Je=Je-oe,ke=te,ut=le));var Lt={day:Je,month:ke,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(z(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,A,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return H(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var A=this._v;A!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,A!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var A=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),A.keyboardInput&&d(i,"keydown",this._onKeyChange),A.field&&(d(A.field,"change",this._onInputChange),A.bound&&(d(A.trigger,"click",this._onInputClick),d(A.trigger,"focus",this._onInputFocus),d(A.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(yl)),yl.exports}bF();function wF(e){return`(${CF(e)})`}function CF(e){return e.replace("-","")}function Dh(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),D=`${n}${v}`,k=p?`-${D}`:D,x=p&&a?wF(k):k;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function SF(e){return function(n,o,r){return Dh(r,e)}}const _F=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Dh(n)}`:""};function xF(e){if(!e.getSelectionModel())return Mm(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Mm(e)),t}function Mm(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var Pc=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(Pc||{});function Ad(){return JSON.parse(localStorage.getItem(Pc.slickTable)||"{}")}function Fd(e){return e[Pc.sorting]||{}}function Im(e,t){localStorage.setItem(Pc.slickTable,JSON.stringify({...e,sorting:t}))}class RF{getTableSorting(t){const n=Ad();return Fd(n)[t]}resetTableSorting(t){const n=Ad(),o=Fd(n);delete o[t],Im(n,o)}setTableSorting(t,n,o){const r=Ad(),i=Fd(r);i[t]={columnId:n,isAscending:o},Im(r,i)}}const Ld=new RF;class TF{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ss(t||this.emptyValue),r=Ss(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const kF=new TF;class qv{constructor(){this.sort=kF,this.withFormatter=[Co.TEXT,Co.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,Ld.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Ld.setTableSorting(t,u,d));const m=d?-1:1,v=b.getGrouping(),D=v.find(({getter:k})=>k===f.id);if(D){if(r||(r=v.map(({comparer:k})=>k)),o){const k=b.getGrouping(),x=k.findIndex(({getter:S})=>S===f.id);k[x].comparer=r[x],b.refresh();return}D.comparer=(k,x)=>{let S=k.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(k,x)||this.compare(S,C,m,y)}}else{const k=b.getItems(),x=b.getIdPropertyName();k.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],I=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),I=w(0,0,I,f,C,l)),this.priority(S,C)||this.compare(O,I,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Ld.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case Co.DATE:return this.sort.dates(t,n)*o;case Co.NUMBER:case Co.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Co.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Co.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const EF=new qv;class PF{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function DF(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${t[u].total}`})}),t}const Gv=ie(Sy)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),OF=ie("span")({display:"flex",alignItems:"center"}),MF=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),$d={Icon:MF,Total:OF},IF=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(Gv,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs($d.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx($d.Icon,{className:"sgi sgi-check"}):E.jsx($y,{title:"Copy to clipboard",children:E.jsx($d.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},NF=ie(qu)({"& .MuiPaper-root":{minWidth:"25em"}}),AF=ie(_y)({color:"#1E456F"}),FF=ie(pc)({padding:0}),LF=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),el={Button:LF,Dialog:NF,DialogTitle:AF,List:FF},$F=()=>{const[e,t]=Fe.useState(0),[n,o]=Fe.useState(!1),[r,i]=Fe.useState({});function a(){Uo.open=!1}return Fe.useEffect(()=>{function l(){const d=Uo.open;if(d){const u=Uo.table,f=u?.grid;t(f?.getSelectedRows().length||0),i(DF(u))}o(d)}return Uo.subscribe(l),()=>{Uo.unsubscribe(l)}},[]),n?E.jsxs(el.Dialog,{open:n,onClose:a,children:[E.jsx(el.DialogTitle,{children:"Selected rows summary"}),E.jsx(Ku,{children:E.jsxs(el.List,{children:[E.jsx(Gv,{children:`Number of selected rows: ${e}`}),Object.entries(r).map(([l,{label:d,total:u,totalFormatted:f}])=>E.jsx(po,{children:E.jsx(IF,{label:d,total:u,totalFormatted:f})},l))]})}),E.jsx(Gu,{children:E.jsx(el.Button,{variant:"outlined",onClick:a,children:"Close"})})]}):null};function Oh(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const VF=ie(po)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),jF={Wrapper:VF},Mh=({setIsOpened:e})=>E.jsx(jF.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),BF=ie(po)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),WF={Wrapper:BF},Ih=({children:e,id:t})=>E.jsx(WF.Wrapper,{id:t,children:e});function HF(e){const{columnId:t,table:n}=Rn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?or.highlightColumn(n,t):or.resetColumn(n,t))}const rr=Yv(HF),js={1:"",2:""},Kv="column_filters",ao={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function zF(e){switch(e){case hn.Boolean:return je.Boolean;case hn.Date:return je.DateEqual;case hn.MultipleSelect:return je.MultipleSelect;case hn.Number:case hn.NumberFormatted:return je.NumberEqual;case hn.Text:return je.TextContain}}function YF(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Kv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Rn;if(!a?.grid)return;const f=a.filter.args;Oh(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||zF(i),b=y||js;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function UF(e){Fe.useEffect(()=>{function t(){e(!0)}return Rn.subscribe(t),()=>{Rn.unsubscribe(t)}},[])}function gu(e){return{format:Yr.ui,value:e?xe(e,AN):null}}const qF=ie(ko)({width:"5em",alignSelf:"flex-end"}),GF={Button:qF},KF=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Rn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,or.resetColumn(i,r),t(js),e(!1)}return E.jsx(GF.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},XF=ie(fc)({padding:0}),ZF=ie(xy)({margin:"0.5em 0 0 1em"}),tl={Checkbox:XF,FormGroup:ZF},QF=({setValue:e,value:t})=>{function n(o){e(o),rr(o)}return E.jsxs(tl.FormGroup,{children:[E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},JF={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},eL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Nm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
356
|
-
`);class Xv{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=
|
|
357
|
-
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},
|
|
355
|
+
*/var vF=yl.exports,Om;function bF(){return Om||(Om=1,function(e,t){(function(n,o){var r;{try{r=yF}catch{}e.exports=o(r)}})(vF,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(A,M,L,B){r?A.addEventListener(M,L,!!B):A.attachEvent("on"+M,L)},d=function(A,M,L,B){r?A.removeEventListener(M,L,!!B):A.detachEvent("on"+M,L)},u=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")},f=function(A,M){return(" "+A.className+" ").indexOf(" "+M+" ")!==-1},p=function(A,M){f(A,M)||(A.className=A.className===""?M:A.className+" "+M)},y=function(A,M){A.className=u((" "+A.className+" ").replace(" "+M+" "," "))},w=function(A){return/Array/.test(Object.prototype.toString.call(A))},b=function(A){return/Date/.test(Object.prototype.toString.call(A))&&!isNaN(A.getTime())},m=function(A){var M=A.getDay();return M===0||M===6},v=function(A){return A%4===0&&A%100!==0||A%400===0},D=function(A,M){return[31,v(A)?29:28,31,30,31,30,31,31,30,31,30,31][M]},k=function(A){b(A)&&A.setHours(0,0,0,0)},x=function(A,M){return A.getTime()===M.getTime()},S=function(A,M,L){var B,ne;for(B in M)ne=A[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(A[B]=new Date(M[B].getTime())):w(M[B])?L&&(A[B]=M[B].slice(0)):A[B]=S({},M[B],L):(L||!ne)&&(A[B]=M[B]);return A},C=function(A,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),A.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),A.fireEvent("on"+M,B))},O=function(A){return A.month<0&&(A.year-=Math.ceil(Math.abs(A.month)/12),A.month+=12),A.month>11&&(A.year+=Math.floor(Math.abs(A.month)/12),A.month-=12),A},I={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(A,M,L){for(M+=A.firstDay;M>=7;)M-=7;return L?A.i18n.weekdaysShort[M]:A.i18n.weekdays[M]},z=function(A){var M=[],L="false";if(A.isEmpty)if(A.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),A.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return A.isDisabled&&M.push("is-disabled"),A.isToday&&M.push("is-today"),A.isSelected&&(M.push("is-selected"),L="true"),A.hasEvent&&M.push("has-event"),A.isInRange&&M.push("is-inrange"),A.isStartRange&&M.push("is-startrange"),A.isEndRange&&M.push("is-endrange"),'<td data-day="'+A.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+A.year+'" data-pika-month="'+A.month+'" data-pika-day="'+A.day+'">'+A.day+"</button></td>"},R=function(A,M){A.setHours(0,0,0,0);var L=A.getDate(),B=A.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};A.setDate(L+oe-j(B));var ee=new Date(A.getFullYear(),0,ne),J=24*60*60*1e3,te=(A.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(A,M,L,B){var ne=new Date(L,M,A),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(A,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?A.reverse():A).join("")+"</tr>"},G=function(A){return"<tbody>"+A.join("")+"</tbody>"},q=function(A){var M,L=[];for(A.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(A,M)+'">'+F(A,M,!0)+"</abbr></th>");return"<thead><tr>"+(A.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(A,M,L,B,ne,oe){var se,j,ee,J=A._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=W+he:le+=he+W,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===A._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},H=function(A,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(A)+G(M)+"</table>"},ae=function(A){var M=this,L=M.config(A);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(A){this._o||(this._o=S({},I,!0));var M=S(this._o,A,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||I.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(A){return A=A||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,A):o?n(this._d).format(A):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(A,M){o&&n.isMoment(A)&&this.setDate(A.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(A,M){if(!A)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof A=="string"&&(A=new Date(Date.parse(A))),!!b(A)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&A<L?A=L:b(B)&&A>B&&(A=B),this._d=new Date(A.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(A){var M=!0;if(b(A)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=A.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:A.getMonth(),year:A.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(A,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;A==="add"?ne=new Date(L.valueOf()+B):A==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var A=1;A<this._o.numberOfMonths;A++)this.calendars[A]=O({month:this.calendars[0].month+A,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(A){isNaN(A)||(this.calendars[0].month=parseInt(A,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(A){isNaN(A)||(this.calendars[0].year=parseInt(A,10),this.adjustCalendars())},setMinDate:function(A){A instanceof Date?(k(A),this._o.minDate=A,this._o.minYear=A.getFullYear(),this._o.minMonth=A.getMonth()):(this._o.minDate=I.minDate,this._o.minYear=I.minYear,this._o.minMonth=I.minMonth,this._o.startRange=I.startRange),this.draw()},setMaxDate:function(A){A instanceof Date?(k(A),this._o.maxDate=A,this._o.maxYear=A.getFullYear(),this._o.maxMonth=A.getMonth()):(this._o.maxDate=I.maxDate,this._o.maxYear=I.maxYear,this._o.maxMonth=I.maxMonth,this._o.endRange=I.endRange),this.draw()},setStartRange:function(A){this._o.startRange=A},setEndRange:function(A){this._o.endRange=A},draw:function(A){if(!(!this._v&&!A)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var A,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",A=this._o.trigger,M=A,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof A.getBoundingClientRect=="function")J=A.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+A.offsetWidth>0)&&(j=j-L+A.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-A.offsetHeight>0)&&(ee=ee-B-A.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(A,M,L){var B=this._o,ne=new Date,oe=D(A,M),se=new Date(A,M,1).getDay(),j=[],ee=[];k(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?A-1:A,le=M===11?A+1:A,he=D(ce,J),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Z=!1,fe=0,pe=0;fe<W;fe++){var be=new Date(A,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),ke=M,ut=A,Yt=B.startRange&&x(B.startRange,be),rt=B.endRange&&x(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,Ut=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,ke=J,ut=ce):(Je=Je-oe,ke=te,ut=le));var Lt={day:Je,month:ke,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(z(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,A,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return H(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var A=this._v;A!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,A!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var A=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),A.keyboardInput&&d(i,"keydown",this._onKeyChange),A.field&&(d(A.field,"change",this._onInputChange),A.bound&&(d(A.trigger,"click",this._onInputClick),d(A.trigger,"focus",this._onInputFocus),d(A.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(yl)),yl.exports}bF();function wF(e){return`(${CF(e)})`}function CF(e){return e.replace("-","")}function Dh(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),D=`${n}${v}`,k=p?`-${D}`:D,x=p&&a?wF(k):k;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function SF(e){return function(n,o,r){return Dh(r,e)}}const _F="FormatterNumber",xF=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Dh(n)}`:""};function RF(e){if(!e.getSelectionModel())return Mm(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Mm(e)),t}function Mm(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var Pc=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(Pc||{});function Ad(){return JSON.parse(localStorage.getItem(Pc.slickTable)||"{}")}function Fd(e){return e[Pc.sorting]||{}}function Im(e,t){localStorage.setItem(Pc.slickTable,JSON.stringify({...e,sorting:t}))}class TF{getTableSorting(t){const n=Ad();return Fd(n)[t]}resetTableSorting(t){const n=Ad(),o=Fd(n);delete o[t],Im(n,o)}setTableSorting(t,n,o){const r=Ad(),i=Fd(r);i[t]={columnId:n,isAscending:o},Im(r,i)}}const Ld=new TF;class kF{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ss(t||this.emptyValue),r=Ss(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const EF=new kF;class qv{constructor(){this.sort=EF,this.withFormatter=[Co.TEXT,Co.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,Ld.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Ld.setTableSorting(t,u,d));const m=d?-1:1,v=b.getGrouping(),D=v.find(({getter:k})=>k===f.id);if(D){if(r||(r=v.map(({comparer:k})=>k)),o){const k=b.getGrouping(),x=k.findIndex(({getter:S})=>S===f.id);k[x].comparer=r[x],b.refresh();return}D.comparer=(k,x)=>{let S=k.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(k,x)||this.compare(S,C,m,y)}}else{const k=b.getItems(),x=b.getIdPropertyName();k.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],I=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),I=w(0,0,I,f,C,l)),this.priority(S,C)||this.compare(O,I,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Ld.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case Co.DATE:return this.sort.dates(t,n)*o;case Co.NUMBER:case Co.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Co.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Co.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const PF=new qv;class DF{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function OF(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${t[u].total}`})}),t}const Gv=ie(Sy)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),MF=ie("span")({display:"flex",alignItems:"center"}),IF=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),$d={Icon:IF,Total:MF},NF=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(Gv,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs($d.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx($d.Icon,{className:"sgi sgi-check"}):E.jsx($y,{title:"Copy to clipboard",children:E.jsx($d.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},AF=ie(qu)({"& .MuiPaper-root":{minWidth:"25em"}}),FF=ie(_y)({color:"#1E456F"}),LF=ie(pc)({padding:0}),$F=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),el={Button:$F,Dialog:AF,DialogTitle:FF,List:LF},VF=()=>{const[e,t]=Fe.useState(0),[n,o]=Fe.useState(!1),[r,i]=Fe.useState({});function a(){Uo.open=!1}return Fe.useEffect(()=>{function l(){const d=Uo.open;if(d){const u=Uo.table,f=u?.grid;t(f?.getSelectedRows().length||0),i(OF(u))}o(d)}return Uo.subscribe(l),()=>{Uo.unsubscribe(l)}},[]),n?E.jsxs(el.Dialog,{open:n,onClose:a,children:[E.jsx(el.DialogTitle,{children:"Selected rows summary"}),E.jsx(Ku,{children:E.jsxs(el.List,{children:[E.jsx(Gv,{children:`Number of selected rows: ${e}`}),Object.entries(r).map(([l,{label:d,total:u,totalFormatted:f}])=>E.jsx(po,{children:E.jsx(NF,{label:d,total:u,totalFormatted:f})},l))]})}),E.jsx(Gu,{children:E.jsx(el.Button,{variant:"outlined",onClick:a,children:"Close"})})]}):null};function Oh(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const jF=ie(po)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),BF={Wrapper:jF},Mh=({setIsOpened:e})=>E.jsx(BF.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),WF=ie(po)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),HF={Wrapper:WF},Ih=({children:e,id:t})=>E.jsx(HF.Wrapper,{id:t,children:e});function zF(e){const{columnId:t,table:n}=Rn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?or.highlightColumn(n,t):or.resetColumn(n,t))}const rr=Yv(zF),js={1:"",2:""},Kv="column_filters",ao={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function YF(e){switch(e){case hn.Boolean:return je.Boolean;case hn.Date:return je.DateEqual;case hn.MultipleSelect:return je.MultipleSelect;case hn.Number:case hn.NumberFormatted:return je.NumberEqual;case hn.Text:return je.TextContain}}function UF(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Kv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Rn;if(!a?.grid)return;const f=a.filter.args;Oh(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||YF(i),b=y||js;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function qF(e){Fe.useEffect(()=>{function t(){e(!0)}return Rn.subscribe(t),()=>{Rn.unsubscribe(t)}},[])}function gu(e){return{format:Yr.ui,value:e?xe(e,AN):null}}const GF=ie(ko)({width:"5em",alignSelf:"flex-end"}),KF={Button:GF},XF=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Rn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,or.resetColumn(i,r),t(js),e(!1)}return E.jsx(KF.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},ZF=ie(fc)({padding:0}),QF=ie(xy)({margin:"0.5em 0 0 1em"}),tl={Checkbox:ZF,FormGroup:QF},JF=({setValue:e,value:t})=>{function n(o){e(o),rr(o)}return E.jsxs(tl.FormGroup,{children:[E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},eL={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},tL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Nm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
356
|
+
`);class Xv{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=eL,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(Nm);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(Nm);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||xe.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(xe.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?xe.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Q({},tL,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const vi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),nL=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Ll=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Fi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Ll(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},oL=(e,t)=>t==null||!e.isValid(t)?null:t,Jn=(e,t,n)=>t==null||!e.isValid(t)?n:t,rL=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Nh=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},Zv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),sL=["year","month","day"],Am=e=>sL.includes(e),Ah=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return vi(n,["year"])?r.year:vi(n,["month"])?r.month:vi(n,["day"])?r.dayOfMonth:vi(n,["month","year"])?`${r.month} ${r.year}`:vi(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},iL=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},aL=["hours","minutes","seconds"],lL=e=>aL.includes(e),Fm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),cL=(e,t)=>(n,o)=>e?t.isAfter(n,o):Fm(n,t)>Fm(o,t),xo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},dL=e=>Math.max(...e.map(t=>xo[t.type]??1)),bi=(e,t,n)=>{if(t===xo.year)return e.startOfYear(n);if(t===xo.month)return e.startOfMonth(n);if(t===xo.day)return e.startOfDay(n);let o=n;return t<xo.minutes&&(o=e.setMinutes(o,0)),t<xo.seconds&&(o=e.setSeconds(o,0)),t<xo.milliseconds&&(o=e.setMilliseconds(o,0)),o},uL=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():bi(t,n,Zv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=bi(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=bi(t,n,e.maxDate));const a=cL(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=bi(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ll(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=bi(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ll(t,i,e.maxTime))),i},Fh=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
357
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},hL=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Dc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Qv=(e,t,n,o)=>{switch(n){case"month":return Nh(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return Dc(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},Lm="s",fL=["0","1","2","3","4","5","6","7","8","9"],pL=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Lm)==="0"?fL:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Lm))},Ur=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Lh=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),$m=(e,t)=>{const n=Ur(e,t);return n!==" "&&!Number.isNaN(Number(n))},Jv=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},eb=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
|
|
358
358
|
This type of format is only supported for 'day' sections`].join(`
|
|
359
|
-
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Jv(i,r.maxLength)),Lh(i,o)},
|
|
360
|
-
`));return D},[d,p,u,f,r]),m=T.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),v=T.useMemo(()=>({utils:b,defaultDates:m,localeText:w}),[m,b,w]);return E.jsx($l.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(Oc.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const
|
|
359
|
+
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Jv(i,r.maxLength)),Lh(i,o)},mL=(e,t,n,o,r,i,a,l)=>{const d=hL(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=x=>eb(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let k=parseInt(Ur(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?k=b.minimum:k=b.maximum}return k%v!==0&&((d<0||u)&&(k+=v-(v+k)%v),(d>0||f)&&(k-=k%v)),k>b.maximum?m(b.minimum+(k-b.maximum-1)%(b.maximum-b.minimum+1)):k<b.minimum?m(b.maximum-(b.minimum-k-1)%(b.maximum-b.minimum+1)):m(k)},w=()=>{const b=Qv(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const D=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[D]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},$h=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Ur(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},Vm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Fh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},tb=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,nb=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return tb(e,o)?e.formatByString(e.setYear(r,1),o)==="0001":e.formatByString(e.setYear(r,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},gL=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push($h(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},yL=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),vL=(e,t,n)=>{const r=e.map(i=>{const a=$h(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},bL=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Nh(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:tb(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=Dc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return Ur(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(Ur(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let jm=!1;const Bm=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!jm){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),jm=!0)}},wL=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const r=Dc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Wm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Hm=(e,t,n,o,r)=>[...n].sort((i,a)=>Wm[i.type]-Wm[a.type]).reduce((i,a)=>!r||a.modified?wL(e,a,t,i):i,o),CL=()=>navigator.userAgent.toLowerCase().includes("android"),SL=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},yu=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,_L=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},xL=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},RL=["value","referenceDate"],Io={emptyValue:null,getTodayValue:Zv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ye(e,RL);return t!=null&&o.utils.isValid(t)?t:n??uL(o)},cleanValue:oL,areValuesEqual:rL,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},TL={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:yL,getV6InputValueFromSections:vL,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},kL=["localeText"],$l=T.createContext(null);process.env.NODE_ENV!=="production"&&($l.displayName="MuiPickersAdapterContext");const Oc=function(t){const{localeText:n}=t,o=Ye(t,kL),{utils:r,localeText:i}=T.useContext($l)??{utils:void 0,localeText:void 0},a=Nt({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:d,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:y}=a,w=T.useMemo(()=>Q({},y,i,n),[y,i,n]),b=T.useMemo(()=>{if(!d)return r||null;const D=new d({locale:p,formats:u,instance:f});if(!D.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
360
|
+
`));return D},[d,p,u,f,r]),m=T.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),v=T.useMemo(()=>({utils:b,defaultDates:m,localeText:w}),[m,b,w]);return E.jsx($l.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(Oc.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const EL=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Q({},e)}}}}),ob=e=>{const{utils:t,formatKey:n,contextTranslation:o,propsTranslation:r}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(r??o)(i,t,a)}},rb={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,o)=>`Select ${e}. ${!o&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${o??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},PL=rb;EL(rb);const Qr=()=>{const e=T.useContext($l);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
361
361
|
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
362
|
-
`));const t=T.useMemo(()=>Q({},
|
|
363
|
-
`):e;Um.has(n)||(Um.add(n),t==="error"?console.error(n):console.warn(n))}const
|
|
362
|
+
`));const t=T.useMemo(()=>Q({},PL,e.localeText),[e.localeText]);return T.useMemo(()=>Q({},e,{localeText:t}),[e,t])},Ft=()=>Qr().utils,_a=()=>Qr().defaultDates,Mc=e=>{const t=Ft(),n=T.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function DL(e){return Me("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const OL=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],ML=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},DL,t)},IL=ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),NL=ie("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),AL=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=Ye(o,OL),f=o,p=ML(f);return l?null:E.jsxs(IL,Q({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[E.jsx(bn,{color:"text.secondary",variant:"overline",id:d,children:a}),E.jsx(NL,{className:p.content,ownerState:f,children:r})]}))}),lr=()=>Qr().localeText;function FL(e){return Me("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const LL=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],$L=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},FL,t)},VL=ie(AL,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jL=ie(bn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),sb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:d,className:u}=o,f=Ye(o,LL),p=Ft(),y=lr(),w=$L(o),b=T.useMemo(()=>{if(!r)return l;const v=Ah(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),m=o;return E.jsx(VL,Q({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,u)},f,{children:E.jsx(jL,{variant:"h4",align:i?"left":"center",ownerState:m,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(sb.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function ib(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t}),i=T.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Q({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Q({},r,{localeText:i},nL({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate),slots:Q({toolbar:sb},r.slots)})}const xa=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:d}=e,u=o.utils.date(void 0,n),f=Jn(o.utils,e.minDate,o.defaultDates.minDate),p=Jn(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(d&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};xa.valueManager=Io;const ab=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],BL=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],WL=["minDateTime","maxDateTime"],HL=[...ab,...BL,...WL],lb=e=>HL.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function cb(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Qr(),l=T.useRef(n.valueManager.defaultErrorState),d=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(d);T.useEffect(()=>{i&&!n.valueManager.isSameError(d,l.current)&&i(d,o),l.current=d},[n,i,d,o]);const f=Te(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:d,hasValidationError:u,getValidationErrorForNewValue:f}}function zL(e){return Me("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);function YL(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const UL=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Ln=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ln(t.shadowRoot):t:null},qL="@media (pointer: fine)",GL="@media (prefers-reduced-motion: reduce)",Ps=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),zm=Ps&&Ps[1]?parseInt(Ps[1],10):null,Ym=Ps&&Ps[2]?parseInt(Ps[2],10):null,KL=zm&&zm<10||Ym&&Ym<13||!1,db=()=>Ag(GL,{defaultMatches:!1})||KL,XL=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ZL=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},zL,t)},QL=ie(ac,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),JL=ie(Ys,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function e$(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function t$(e,t){const n=T.useRef(!1),o=T.useRef(!1),r=T.useRef(null),i=T.useRef(!1);T.useEffect(()=>{if(!e)return;function d(){i.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),i.current=!1}},[e]);const a=Te(d=>{if(!i.current)return;const u=o.current;o.current=!1;const f=Sn(r.current);if(!r.current||"clientX"in d&&e$(d,f))return;if(n.current){n.current=!1;return}let p;d.composedPath?p=d.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(d.target)||r.current.contains(d.target),!p&&!u&&t(d)}),l=()=>{o.current=!0};return T.useEffect(()=>{if(e){const d=Sn(r.current),u=()=>{n.current=!0};return d.addEventListener("touchstart",a),d.addEventListener("touchmove",u),()=>{d.removeEventListener("touchstart",a),d.removeEventListener("touchmove",u)}}},[e,a]),T.useEffect(()=>{if(e){const d=Sn(r.current);return d.addEventListener("click",a),()=>{d.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const n$=T.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:d,onPaperTouchStart:u}=e,f=Ye(e,XL),p=Q({},r,{placement:o}),y=pt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return E.jsx(n,Q({},f,y,{onClick:w=>{d(w),y.onClick?.(w)},onTouchStart:w=>{u(w),y.onTouchStart?.(w)},ownerState:p,children:i}))});function o$(e){const t=Nt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:r=null,shouldRestoreFocus:i,onBlur:a,onDismiss:l,open:d,role:u,placement:f,slots:p,slotProps:y,reduceAnimations:w}=t;T.useEffect(()=>{function Y(H){d&&H.key==="Escape"&&l()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[l,d]);const b=T.useRef(null);T.useEffect(()=>{u==="tooltip"||i&&!i()||(d?b.current=Ln(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[d,u,i]);const[m,v,D]=t$(d,a??l),k=T.useRef(null),x=ct(k,r),S=ct(x,m),C=t,O=ZL(C),I=db(),F=w??I,z=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),l())},R=p?.desktopTransition??F?Gr:zr,$=p?.desktopTrapFocus??Ki,K=p?.desktopPaper??JL,G=p?.popper??QL,q=pt({elementType:G,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:u,open:d,anchorEl:n,placement:f,onKeyDown:z},className:O.root,ownerState:t});return E.jsx(G,Q({},q,{children:({TransitionProps:Y,placement:H})=>E.jsx($,Q({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:E.jsx(R,Q({},Y,y?.desktopTransition,{children:E.jsx(n$,{PaperComponent:K,ownerState:C,popperPlacement:H,ref:S,onPaperClick:v,onPaperTouchStart:D,paperClasses:O.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const Um=new Set;function r$(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
363
|
+
`):e;Um.has(n)||(Um.add(n),t==="error"?console.error(n):console.warn(n))}const s$=({open:e,onOpen:t,onClose:n})=>{const o=T.useRef(typeof e=="boolean").current,[r,i]=T.useState(!1);T.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[o,e]);const a=T.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},Vh=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Ft(),a=T.useRef(n),l=t??a.current??r.emptyValue,d=T.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Te(w=>d==null?w:r.setTimezone(i,d,w)),f=e??d??"default",p=T.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Te((w,...b)=>{const m=u(w);o?.(m,...b)});return{value:p,handleValueChange:y,timezone:f}},jh=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,l]=uo({name:e,state:"value",controlled:n,default:o??i.emptyValue}),d=Te((u,...f)=>{l(u),r?.(u,...f)});return Vh({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},i$=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r}=e,i=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(o.lastPublishedValue):!1},a$=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r,closeOnSelect:i}=e,a=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},l$=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},c$=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=T.useRef(d),{current:y}=T.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(T.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
364
364
|
`))},[l]),T.useEffect(()=>{!y&&p!==d&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
365
|
-
`))},[JSON.stringify(p)]));const w=Ft(),b=Qr(),{isOpen:m,setIsOpen:v}=r$(e),{timezone:D,value:k,handleValueChange:x}=Vh({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=T.useState(()=>{let j;return k!==void 0?j=k:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:k,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=cb({props:e,validator:r,timezone:D,value:S.draft,onError:e.onError}),I=Te(j=>{const ee={action:j,dateState:S,hasChanged:W=>!t.areValuesEqual(w,j.value,W),isControlled:y,closeOnSelect:u},J=s$(ee),te=i$(ee),ce=a$(ee);C(W=>Q({},W,{draft:j.value,lastPublishedValue:J?j.value:W.lastPublishedValue,lastCommittedValue:te?j.value:W.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(le.shortcut=j.shortcut)),le);J&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(k!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,k))){const j=t.areValuesEqual(w,S.draft,k);C(ee=>Q({},ee,{lastControlledValue:k},j?{}:{lastCommittedValue:k,lastPublishedValue:k,draft:k,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{I({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{I({value:t.getTodayValue(w,D,n),name:"setValueFromAction",pickerAction:"today"})}),G=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,ee="partial")=>I({name:"setValueFromView",value:j,selectionState:ee})),H=Te((j,ee,J)=>I({name:"setValueFromShortcut",value:j,changeImportance:ee,shortcut:J})),ae=Te((j,ee)=>I({name:"setValueFromField",value:j,context:ee})),A={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:G,onClose:q},M={value:S.draft,onChange:ae},L=T.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),B={value:L,onChange:Y,onClose:q,open:m},oe=Q({},A,{value:L,onChange:Y,onSelectShortcut:H,isValid:j=>{const ee=r({adapter:b,value:j,timezone:D,props:e});return!t.hasError(ee)}}),se=T.useMemo(()=>({onOpen:G,onClose:q,open:m}),[m,q,G]);return{open:m,fieldProps:M,viewProps:B,layoutProps:oe,actions:A,contextValue:se}};let Vd=!1;function ub({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Vd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Vd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Vd=!0)));const d=T.useRef(n),u=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=uo({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,m]=uo({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(I=>!r.includes(I)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),D=r[v-1]??null,k=r[v+1]??null,x=Te((I,F)=>{m(F?I:z=>I===z?null:z),l?.(I,F)}),S=Te(I=>{x(I,!0),I!==p&&(y(I),t&&t(I))}),C=Te(()=>{k&&S(k)}),O=Te((I,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!k;if(e(I,R&&$?"partial":F,z),z&&z!==p){const G=r[r.indexOf(z)+1];G&&S(G)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:k,previousView:D,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const c$=["className","sx"],d$=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,m=Ye(e,c$),{view:v,setView:D,defaultView:k,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=ub({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:I}=T.useMemo(()=>f.reduce((q,Y)=>{let H;return w[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&aL(Y)?q+1:q,0),[w,f]),z=I[v],R=Te(()=>z==="UI"),[$,K]=T.useState(z==="UI"?v:null);return $!==v&&I[v]==="UI"&&K(v),ln(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),ln(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==k&&I[q]==="UI"&&I[k]==="UI"&&(q=k),q!==v&&D(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:D},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Q({},m,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:D,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function qm(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const u$=(e,t)=>{const[n,o]=T.useState(qm);return ln(()=>{const i=()=>{o(qm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),zL(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},h$=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=u$(n.views,r),a=to();return{layoutProps:Q({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function f$(e){const{props:t,pickerValueResponse:n}=e;return T.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const hb=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&o$(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=l$({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=d$({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=h$({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=f$({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function fb(e){return Me("MuiPickersLayout",e)}const Dr=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),p$=["onAccept","onClear","onCancel","onSetToday","actions"];function pb(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=Ye(e,p$),l=lr();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return E.jsx(ko,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return E.jsx(ko,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return E.jsx(ko,{onClick:t,children:l.okButtonLabel},u);case"today":return E.jsx(ko,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return E.jsx(Gu,Q({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(pb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oa=36,Ic=2,Nc=320,m$=280,Bh=336,g$=["items","changeImportance","isLandscape","onChange","isValid"],y$=["getValue"];function mb(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=Ye(e,g$);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=Ye(l,y$);const f=d({isValid:r});return Q({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return E.jsx(pc,Q({dense:!0,sx:[{maxHeight:Bh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>E.jsx(Ty,{children:E.jsx(gy,Q({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(mb.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function v$(e){return e.view!==null}const b$=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},fb,t)},w$=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:m,children:v,slots:D,slotProps:k}=e,x=b$(e),S=D?.actionBar??pb,C=pt({elementType:S,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Q({},e,{wrapperVariant:t})}),O=E.jsx(S,Q({},C)),I=D?.toolbar,F=pt({elementType:I,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:m},className:x.toolbar,ownerState:Q({},e,{wrapperVariant:t})}),z=v$(F)&&I?E.jsx(I,Q({},F)):null,R=v,$=D?.tabs,K=a&&$?E.jsx($,Q({view:a,onViewChange:d,className:x.tabs},k?.tabs)):null,G=D?.shortcuts??mb,q=pt({elementType:G,externalSlotProps:k?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&G?E.jsx(G,Q({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:O,shortcuts:Y}},C$=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},fb,n)},S$=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Dr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Dr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Dr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Dr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Dr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Dr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Dr.shortcuts}`]:{gridColumn:3}}}]}),_$=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Wh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=w$(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=C$(o);return E.jsxs(S$,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,E.jsx(_$,{className:w.contentWrapper,children:y==="desktop"?E.jsxs(T.Fragment,{children:[i,a]}):E.jsxs(T.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Wh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const x$=T.createContext(null);function gb(e){const{contextValue:t,localeText:n,children:o}=e;return E.jsx(x$.Provider,{value:t,children:E.jsx(Oc,{localeText:n,children:o})})}const R$=["props","getOpenDialogAriaText"],T$=["ownerState"],k$=["ownerState"],E$=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,R$);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=T.useRef(null),I=T.useRef(null),F=sr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:G,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:A}=hb(Q({},o,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Zu,L=pt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),B=Ye(L,T$),ne=r.openPickerButton??Us,oe=pt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:k||D,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:B.position},ownerState:t}),se=Ye(oe,k$),j=r.openPickerIcon,ee=pt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:A}),J=r.field,te=pt({elementType:J,externalSlotProps:i?.field,additionalProps:Q({},H,z&&{id:F},{readOnly:D,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Q({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${B.position}Adornment`]:E.jsx(M,Q({},B,{children:E.jsx(ne,Q({},se,{children:E.jsx(j,Q({},ee))}))}))}));const ce=Q({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),le=r.layout??Wh;let he=F;z&&(m?he=`${F}-label`:he=void 0);const W=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:F}),popper:Q({"aria-labelledby":he},i?.popper)}),re=ct(I,te.unstableFieldRef);return{renderPicker:()=>E.jsxs(gb,{contextValue:ae,localeText:S,children:[E.jsx(J,Q({},te,{slots:ce,slotProps:W,unstableFieldRef:re})),E.jsx(n$,Q({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:W,shouldRestoreFocus:Y,reduceAnimations:C,children:E.jsx(le,Q({},G,W?.layout,{slots:r,slotProps:W,children:q()}))}))]})}},P$=fn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),D$=fn(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),O$=fn(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),M$=fn(E.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");fn(E.jsxs(T.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");fn(E.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");fn(E.jsxs(T.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const I$=fn(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),N$=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return r},A$=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},F$=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},L$=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=Fh(e,a),u=nb(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=Lh(Jv(Ur(y,r),w),r))}return Q({},d,{format:a,maxLength:w,value:y,placeholder:F$(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},$$=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,m=d.exec(n.slice(y))?.[1];if(!b&&m!=null&&u.test(m)){let v=m;for(;v.length>0;){const D=f.exec(v)[1];v=v.slice(D.length),i.push(L$(Q({},e,{now:r,token:D,startSeparator:a}))),a=""}y+=m.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},V$=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Gm=e=>{let t=N$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=A$(Q({},e,{expandedFormat:t})),o=$$(Q({},e,{expandedFormat:t,escapedParts:n}));return V$(Q({},e,{sections:o}))},j$=e=>{const t=Ft(),n=lr(),o=Qr(),r=to(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:D,shouldRespectLeadingZeros:k=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:I}=Vh({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=T.useMemo(()=>fL(t),[t]),z=T.useMemo(()=>vL(t,F,C),[t,F,C]),R=T.useCallback((j,ee=null)=>a.getSectionsFromValue(t,j,ee,J=>Gm({utils:t,localeText:n,localizedDigits:F,format:b,date:J,formatDensity:m,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,k,t,m,S]),[$,K]=T.useState(()=>{const j=R(O);Bm(j,l);const ee={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=cL(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:J,timezone:C});return Q({},ee,{referenceValue:te})}),[G,q]=uo({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),D?.(j)},H=T.useMemo(()=>yu(G,$.sections),[G,$.sections]),ae=H==="all"?0:H,A=({value:j,referenceValue:ee,sections:J})=>{if(K(ce=>Q({},ce,{sections:J,value:j,referenceValue:ee,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};I(j,te)},M=(j,ee)=>{const J=[...$.sections];return J[j]=Q({},J[j],{value:ee,modified:!0}),J},L=()=>{A({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},B=()=>{if(ae==null)return;const j=$.sections[ae],ee=a.getActiveDateManager(t,$,j),te=ee.getSections($.sections).filter(W=>W.value!=="").length===(j.value===""?0:1),ce=M(ae,""),le=te?null:t.getInvalidDate(),he=ee.getNewValuesFromNewActiveDate(le);A(Q({},he,{sections:ce}))},ne=j=>{const ee=(ce,le)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const W=Gm({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:m,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:S,isRtl:r});return Hm(t,he,W,le,!1)},J=a.parseValueStr(j,$.referenceValue,ee),te=a.updateReferenceValue(t,J,$.referenceValue);A({value:J,referenceValue:te,sections:R(J,$.sections)})},oe=({activeSection:j,newSectionValue:ee,shouldGoToNextSection:J})=>{J&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,ee),le=te.getSections(ce),he=mL(t,le,F);let W,re;if(he!=null&&t.isValid(he)){const Z=Hm(t,he,le,te.referenceDate,!0);W=te.getNewValuesFromNewActiveDate(Z),re=!0}else W=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?A(Q({},W,{sections:ce})):K(Z=>Q({},Z,W,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(ee=>Q({},ee,{tempValueStrAndroid:j}));return T.useEffect(()=>{const j=R($.value);Bm(j,l),K(ee=>Q({},ee,{sections:j}))},[b,t.locale,r]),T.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(ee=>Q({},ee,{value:O,referenceValue:a.updateReferenceValue(t,O,ee.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:L,clearActiveSection:B,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},B$=5e3,ms=e=>e.saveQuery!=null,W$=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Ft(),[l,d]=T.useState(null),u=Te(()=>d(null));T.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),T.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),B$);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:m},v,D)=>{const k=b.toLowerCase(),x=e[m];if(l!=null&&(!D||D(l.value))&&l.sectionIndex===m){const C=`${l.value}${k}`,O=v(C,x);if(!ms(O))return d({sectionIndex:m,value:C,sectionType:x.type}),O}const S=v(k,x);return ms(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:m,value:k,sectionType:x.type}),ms(S)?null:S)},p=b=>{const m=(k,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(k,x,S,C)=>{const O=I=>Qv(a,i,x.type,I);if(x.contentType==="letter")return m(x.format,O(x.format),k);if(S&&C!=null&&Fh(a,S).contentType==="letter"){const I=O(S),F=m(S,I,k);return ms(F)?{saveQuery:!1}:Q({},F,{sectionValue:C(F.sectionValue,I)})}return{saveQuery:!1}};return f(b,(k,x)=>{switch(x.type){case"month":{const S=C=>Vm(a,C,a.formats.month,x.format);return v(k,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(k,x,a.formats.weekday,S)}case"meridiem":return v(k,x);default:return{saveQuery:!1}}})},y=b=>{const m=(D,k)=>{const x=Ur(D,o),S=Number(x),C=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:eb(a,S,C,o,k),shouldGoToNextSection:O}};return f(b,(D,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return m(D,k);if(k.type==="month"){nb(a,"digit","month","MM");const x=m(D,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ms(x))return x;const S=Vm(a,x.sectionValue,"MM",k.format);return Q({},x,{sectionValue:S})}if(k.type==="weekDay"){const x=m(D,k);if(ms(x))return x;const S=Dc(a,k.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:S})}return{saveQuery:!1}},D=>$m(D,o))};return{applyCharacterEditing:Te(b=>{const m=e[b.sectionIndex],D=$m(b.keyPressed,o)?y(Q({},b,{keyPressed:Lh(b.keyPressed,o)})):p(b);if(D==null){r(null);return}t({activeSection:m,newSectionValue:D.sectionValue,shouldGoToNextSection:D.shouldGoToNextSection})}),resetCharacterQuery:u}},H$=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:m,state:v,clearActiveSection:D,clearValue:k,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:I}=e,F=T.useRef(null),z=ct(o,F),R=lr(),$=Ft(),K=sr(),[G,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(m==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),G&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Ln(document)))return;const Z=new window.Range;let fe;m==="all"?fe=F.current.getRoot():v.sections[m].type==="empty"?fe=F.current.getSectionContainer(m):fe=F.current.getSectionContent(m),Z.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const re=Ln(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Z=yu(re,v.sections);q(!0),F.current.getSectionContent(Z).focus()},setSelectedSections:re=>{if(!F.current)return;const Z=yu(re,v.sections);q((Z==="all"?0:Z)!==null),b(re)},isFieldFocused:()=>{const re=Ln(document);return!!F.current&&F.current.getRoot().contains(re)}}),[m,b,v.sections,G]),H=Te(re=>{if(!F.current)return;const Z=v.sections[re];F.current.getSectionContent(re).innerHTML=Z.value||Z.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Z)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Z),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let pe=0,be=0;for(;be<fe&&pe<v.sections.length;){const ge=v.sections[pe];pe+=1,be+=`${ge.startSeparator}${ge.value||ge.placeholder}${ge.endSeparator}`.length}b(pe-1)}):G?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),A=Te(re=>{if(l?.(re),!F.current||m!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(pe=>`${pe.startSeparator}${pe.value||pe.placeholder}${pe.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),k(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||m!=="all"){re.preventDefault();return}const Z=re.clipboardData.getData("text");re.preventDefault(),w(),S(Z)}),L=Te((...re)=>{if(a?.(...re),G||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Ln(document))!=null||b(C.startIndex)}),B=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Z=Ln(document);!F.current.getRoot().contains(Z)&&(q(!1),b(null))})}),ne=Te(re=>Z=>{Z.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof m!="number")return;const Z=v.sections[m],fe=re.clipboardData.getData("text"),pe=/^[a-zA-Z]+$/.test(fe),be=/^[0-9]+$/.test(fe),ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Z.contentType==="letter"&&pe||Z.contentType==="digit"&&be||Z.contentType==="digit-with-letter"&&ge?(w(),x({activeSection:Z,newSectionValue:fe,shouldGoToNextSection:!0})):!pe&&!be&&(w(),S(fe))}),ee=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),J=Te(re=>{if(!F.current)return;const Z=re.target,fe=Z.textContent??"",pe=F.current.getSectionIndexFromDOMElement(Z),be=v.sections[pe];if(n||!F.current){H(pe);return}if(fe.length===0){if(be.value===""){H(pe);return}const ge=re.nativeEvent.inputType;if(ge==="insertParagraph"||ge==="insertLineBreak"){H(pe);return}w(),D();return}y({keyPressed:fe,sectionIndex:pe}),H(pe)});ln(()=>{if(!(!G||!F.current)){if(m==="all")F.current.getRoot().focus();else if(typeof m=="number"){const re=F.current.getSectionContent(m);re&&re.focus()}}},[m,G]);const te=T.useMemo(()=>v.sections.reduce((re,Z)=>(re[Z.type]=I[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),re),{}),[I,v.sections]),ce=m==="all",le=T.useMemo(()=>v.sections.map((re,Z)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:ne(Z)},content:{tabIndex:ce||Z>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":_L(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?SL(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:J,onPaste:j,onFocus:se(Z),onDragOver:ee,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,ee,J,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),W=T.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return T.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
366
|
-
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??G,sectionListRef:z,onBlur:B,onClick:ae,onFocus:L,onInput:A,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:m===0?-1:0,contentEditable:ce,value:W,onChange:he,areAllSectionsEmpty:O}}},_s=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),z$=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=$h(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=_s(u).length,p=u.length,y=_s(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Q({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},Y$=e=>{const t=to(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:D,resetCharacterQuery:k,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:I,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),G=ct(d,K),q=T.useMemo(()=>z$(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Ln(document))return;const J=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,le=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||le!==K.current.selectionEnd)&&K.current===Ln(document)&&K.current.setSelectionRange(ce,le),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Ln(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==le)&&Y.syncSelectionToDOM()})}K.current.scrollTop=J},getActiveSectionIndexFromDOM:()=>{const J=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(J===0&&te===0)return null;const ce=J<=q[0].startInInput?1:q.findIndex(le=>le.startInInput-le.startSeparator.length>J);return ce===-1?q.length-1:ce-1},focusField:(J=0)=>{K.current?.focus(),F(J)},setSelectedSections:J=>F(J),isFieldFocused:()=>K.current===Ln(document)}),[K,y,q,F]),H=()=>{const J=K.current.selectionStart??0;let te;J<=q[0].startInInput||J>=q[q.length-1].endInInput?te=1:te=q.findIndex(le=>le.startInInput-le.startSeparator.length>J);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...J)=>{r?.(...J);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),A=Te((J,...te)=>{J.isDefaultPrevented()||(i?.(J,...te),H())}),M=Te(J=>{if(a?.(J),J.preventDefault(),f||p)return;const te=J.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],le=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&le||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&W){k(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(le||he)return}k(),S(te)}),L=Te((...J)=>{l?.(...J),F(null)}),B=Te(J=>{if(f)return;const te=J.target.value;if(te===""){k(),O();return}const ce=J.nativeEvent.data,le=ce&&ce.length>1,he=le?ce:te,W=_s(he);if(w==null||le){S(le?ce:W);return}let re;if(y==="all"&&W.length===1)re=W;else{const Z=_s(m.getV6InputValueFromSections(q,$,t));let fe=-1,pe=-1;for(let Ve=0;Ve<Z.length;Ve+=1)fe===-1&&Z[Ve]!==W[Ve]&&(fe=Ve),pe===-1&&Z[Z.length-Ve-1]!==W[W.length-Ve-1]&&(pe=Ve);const be=q[w];if(fe<be.start||Z.length-pe-1>be.end)return;const Re=W.length-Z.length+be.end-_s(be.endSeparator||"").length;re=W.slice(be.start+_s(be.startSeparator||"").length,Re)}if(re.length===0){wL()&&I(he),k(),C();return}D({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,m,z,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===Ln(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),ee=!(K.current&&K.current===Ln(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:L,onClick:A,onFocus:ae,onPaste:M,inputRef:G,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:ee?"":oe,onChange:B}}},U$=e=>{const t=Ft(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,m=to(),v=j$(e),{state:D,activeSectionIndex:k,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:I,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=W$({sections:D.sections,updateSectionValue:I,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:G}=K,q=w.areValuesEqual(t,D.value,w.emptyValue),Y=i?H$:Y$,H=T.useMemo(()=>CL(D.sections,m&&!i),[D.sections,m,i]),{returnedValue:ae,interactions:A}=Y(Q({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const ee=H.neighbors[x].rightIndex;ee!==null&&S(ee)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const ee=H.neighbors[x].leftIndex;ee!==null&&S(ee)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),G();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||k==null)break;const ee=D.sections[k],J=y.getActiveDateManager(t,D,ee),te=pL(t,$,ee,j.key,z,R,J.date,{minutesStep:r});I({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!1});break}}});ln(()=>{A.syncSelectionToDOM()});const{hasValidationError:L}=cb({props:n,validator:b,timezone:$,value:D.value,onError:n.onError}),B=T.useMemo(()=>u!==void 0?u:L,[L,u]);T.useEffect(()=>{!B&&k==null&&G()},[D.referenceValue,k,B]),T.useEffect(()=>{D.tempValueStrAndroid!=null&&k!=null&&(G(),O())},[D.sections]),T.useImperativeHandle(o,()=>({getSections:()=>D.sections,getActiveSectionIndex:A.getActiveSectionIndexFromDOM,setSelectedSections:A.setSelectedSections,focusField:A.focusField,isFieldFocused:A.isFieldFocused}));const ne=Te((j,...ee)=>{j.preventDefault(),p?.(j,...ee),C(),A.isFieldFocused()?S(H.startIndex):A.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:B,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Q({},e.forwardedProps,oe,se,ae)},q$=["clearable","onClear","InputProps","sx","slots","slotProps"],G$=["ownerState"],K$=e=>{const t=lr(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Ye(e,q$),u=a?.clearButton??Us,f=pt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Ye(f,G$),y=a?.clearIcon??I$,w=pt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Q({},d,{InputProps:Q({},r,{endAdornment:E.jsxs(T.Fragment,{children:[n&&E.jsx(Zu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:E.jsx(u,Q({},p,{onClick:o,children:E.jsx(y,Q({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},X$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Z$=(e,t)=>T.useMemo(()=>{const n=Q({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return X$.forEach(r),ab.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),Q$=e=>{const t=Ft(),n=_a();return Q({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Jn(t,e.minDate,n.minDate),maxDate:Jn(t,e.maxDate,n.maxDate)})},J$=e=>{const t=Q$(e),{forwardedProps:n,internalProps:o}=Z$(t,"date");return U$({forwardedProps:n,internalProps:o,valueManager:Io,fieldValueManager:RL,validator:xa,valueType:"date"})};function eV(e){return Me("MuiPickersTextField",e)}Pe("MuiPickersTextField",["root","focused","disabled","error","required"]);function tV(e){return Me("MuiPickersInputBase",e)}const Ds=Pe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function nV(e){return Me("MuiPickersSectionList",e)}const wi=Pe("MuiPickersSectionList",["root","section","sectionContent"]),oV=["slots","slotProps","elements","sectionListRef"],yb=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),vb=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),bb=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wb=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),rV=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},nV,t)};function Cb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??vb,a=pt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??wb,d=pt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??bb,f=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return E.jsxs(i,Q({},a,{children:[E.jsx(u,Q({},f)),E.jsx(l,Q({},d)),E.jsx(u,Q({},p))]}))}process.env.NODE_ENV!=="production"&&(Cb.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const Sb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Ye(o,oV),u=rV(o),f=T.useRef(null),p=ct(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${wi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${wi.section}[data-sectionindex="${m}"] .${wi.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let D=null;return m.classList.contains(wi.section)?D=m:m.classList.contains(wi.sectionContent)&&(D=m.parentElement),D==null?null:Number(D.dataset.sectionindex)}}));const w=r?.root??yb,b=pt({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return E.jsx(w,Q({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:D})=>`${v.children}${m.children}${D.children}`).join(""):E.jsx(T.Fragment,{children:a.map((m,v)=>E.jsx(Cb,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(Sb.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const sV=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],iV=e=>Math.round(e*1e5)/1e5,Ac=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${iV(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Hh=ie(yb,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),aV=ie(vb,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),lV=ie(wb,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),cV=ie(bb,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),dV=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Q({},nR)),uV=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${we(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,tV,r)},Fc=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:D,onKeyDown:k,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:I}=o,F=Ye(o,sV),z=T.useRef(null),R=ct(n,z),$=ct(C?.ref,O),K=to(),G=Nn();if(!G)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=L=>{if(G.disabled){L.stopPropagation();return}G.onFocus?.(L)};T.useEffect(()=>{G&&G.setAdornedStart(!!f)},[G,f]),T.useEffect(()=>{G&&(i?G.onEmpty():G.onFilled())},[G,i]);const Y=Q({},o,G,{isRtl:K}),H=uV(Y),ae=y?.root||Ac,A=pt({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":G.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||Hh;return E.jsxs(ae,Q({},A,{children:[f,E.jsx(Sb,{sectionListRef:I,elements:r,contentEditable:b,tabIndex:m,className:H.sectionsContainer,onFocus:q,onBlur:G.onBlur,onInput:v,onPaste:D,onKeyDown:k,slots:{root:M,section:aV,sectionContent:lV,sectionSeparator:cV},slotProps:{root:{ownerState:Y},sectionContent:{className:Ds.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?Ds.sectionBefore:Ds.sectionAfter})}}),u,p?p(Q({},G)):null,E.jsx(dV,Q({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:G.required,disabled:G.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(Fc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function hV(e){return Me("MuiPickersOutlinedInput",e)}const io=Q({},Ds,Pe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),fV=["children","className","label","notched","shrink"],pV=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Km=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),mV=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function gV(e){const{className:t,label:n}=e,o=Ye(e,fV),r=n!=null&&n!=="",i=Q({},e,{withLabel:r});return E.jsx(pV,Q({"aria-hidden":!0,className:t},o,{ownerState:i,children:E.jsx(mV,{ownerState:i,children:r?E.jsx(Km,{children:n}):E.jsx(Km,{className:"notranslate",children:""})})}))}const yV=["label","autoFocus","ownerState","notched"],vV=ie(Ac,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${io.focused} .${io.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${io.disabled}`]:{[`& .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${io.error} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${io.focused}:not(.${io.error}) .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),bV=ie(Hh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),wV=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},hV,t);return Q({},t,o)},zh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Ye(o,yV),d=Nn(),u=Q({},o,i,d,{color:d?.color||"primary"}),f=wV(u);return E.jsx(Fc,Q({slots:{root:vV,input:bV},renderSuffix:p=>E.jsx(gV,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?E.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(zh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});zh.muiName="Input";function CV(e){return Me("MuiPickersFilledInput",e)}const Or=Q({},Ds,Pe("MuiPickersFilledInput",["root","underline","input"])),SV=["label","autoFocus","disableUnderline","ownerState"],_V=ie(Ac,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ll(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),xV=ie(Hh,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),RV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},CV,t);return Q({},t,r)},Yh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,SV),d=Nn(),u=Q({},o,a,d,{color:d?.color||"primary"}),f=RV(u);return E.jsx(Fc,Q({slots:{root:_V,input:xV},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Yh.muiName="Input";function TV(e){return Me("MuiPickersFilledInput",e)}const Ci=Q({},Ds,Pe("MuiPickersInput",["root","input"])),kV=["label","autoFocus","disableUnderline","ownerState"],EV=ie(Ac,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ci.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ci.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ci.disabled}, .${Ci.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ci.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),PV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},TV,t);return Q({},t,r)},Uh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,kV),d=Nn(),u=Q({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=PV(u);return E.jsx(Fc,Q({slots:{root:EV}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Uh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Uh.muiName="Input";const DV=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],OV={standard:Uh,filled:Yh,outlined:zh},MV=ie(pa,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IV=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},eV,o)},_b=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:G,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:A,label:M,InputLabelProps:L}=o,B=Ye(o,DV),ne=T.useRef(null),oe=ct(n,ne),se=sr(Y),j=ae&&se?`${se}-helper-text`:void 0,ee=M&&se?`${se}-label`:void 0,J=Q({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=IV(J),ce=OV[f];return E.jsxs(MV,Q({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:J},B,{children:[E.jsx(ma,Q({htmlFor:se,id:ee},L,{children:M})),E.jsx(ce,Q({elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:G,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:M,name:H,role:"group","aria-labelledby":ee},y)),ae&&E.jsx(Xu,Q({id:j},A,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(_b.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const NV=["enableAccessibleFieldDOMStructure"],AV=["InputProps","readOnly"],FV=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],LV=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ye(e,NV);if(t){const{InputProps:p,readOnly:y}=n,w=Ye(n,AV);return Q({},w,{InputProps:Q({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Ye(n,FV);return Q({},f,{InputProps:Q({},l??{},{readOnly:a}),inputProps:Q({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},$V=["slots","slotProps","InputProps","inputProps"],qh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Ye(o,$V),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?_b:Vs),p=pt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Q({},l,p.inputProps),p.InputProps=Q({},a,p.InputProps);const y=J$(p),w=LV(y),b=K$(Q({},w,{slots:r,slotProps:i}));return E.jsx(f,Q({},b))});process.env.NODE_ENV!=="production"&&(qh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const xb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Qr();return T.useCallback(u=>xa({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},VV=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Q({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Q({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Q({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Q({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},jV=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Ft(),w=T.useRef(VV(!!u,i,y)).current,b=T.useMemo(()=>Io.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:xo.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const D=T.useCallback(O=>{v(Q({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),k=T.useCallback(O=>{const I=O;y.isSameMonth(I,m.currentMonth)||D({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,D,y]),x=xb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,I)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:I})});return{referenceDate:b,calendarState:m,changeMonth:k,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:D}},BV=e=>Me("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const WV=e=>{const{classes:t}=e;return Ie({root:["root"]},BV,t)},HV=ie(da,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Rb(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=WV(t),l=qr();return r?n:E.jsx(HV,{className:Se(a.root,o),children:E.jsx(Gr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function zV(e){return Me("MuiPickersDay",e)}const Mr=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),YV=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],UV=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},zV,d)},Tb=({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Mr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.disabled}:not(.${Mr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mr.disabled}&.${Mr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ic}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Mr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),kb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},qV=ie(br,{name:"MuiPickersDay",slot:"Root",overridesResolver:kb})(Tb),GV=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:kb})(({theme:e})=>Q({},Tb({theme:e}),{opacity:0,pointerEvents:"none"})),Si=()=>{},Eb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=Si,onBlur:b=Si,onKeyDown:m=Si,onMouseDown:v=Si,onMouseEnter:D=Si,outsideCurrentMonth:k,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,I=Ye(o,YV),F=Q({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),z=UV(F),R=Ft(),$=T.useRef(null),K=ct($,n);ln(()=>{r&&!l&&!f&&!k&&$.current.focus()},[r,l,f,k]);const G=Y=>{v(Y),k&&Y.preventDefault()},q=Y=>{l||y(a),k&&Y.currentTarget.focus(),p&&p(Y)};return k&&!S?E.jsx(GV,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:I.role}):E.jsx(qV,Q({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>D(Y,a),onClick:q,onMouseDown:G},I,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Eb.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const KV=T.memo(Eb),XV=e=>Me("MuiPickersSlideTransition",e),Yn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ZV=["children","className","reduceAnimations","slideDirection","transKey","classes"],QV=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,XV,t)},JV=ie(da,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function ej(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Ye(t,ZV),l=QV(t),d=qr();if(r)return E.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return E.jsx(JV,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:E.jsx(Au,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const tj=e=>Me("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const nj=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],oj=["ownerState"],rj=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},tj,t)},Pb=(oa+Ic*2)*6,sj=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ij=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),aj=ie(bn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),lj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),cj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,padding:0,margin:`0 ${Ic}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),dj=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Pb}),uj=ie(ej,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Pb}),hj=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),fj=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ic}px 0`,display:"flex",justifyContent:"center"});function pj(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Ye(e,nj);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Ft(),D=Mc(m),k=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,D),C=w?.day??KV,O=pt({elementType:C,externalSlotProps:b?.day,additionalProps:Q({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Q({},t,{day:n,selected:x})}),I=Ye(O,oj),F=T.useMemo(()=>u||i(n),[u,i,n]),z=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return E.jsx(C,Q({},I,{day:n,disabled:F,autoFocus:l&&k,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:k?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function mj(e){const t=Nt({props:e,name:"MuiDayCalendar"}),n=Ft(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>E.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:D,minDate:k,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:I=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:G,timezone:q}=t,Y=Mc(q),H=rj(t),ae=to(),A=xb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:k,maxDate:x,disablePast:v,disableFuture:D,timezone:q}),M=lr(),[L,B]=uo({name:"DayCalendar",state:"hasFocus",controlled:F,default:G??!1}),[ne,oe]=T.useState(()=>l||Y),se=Te(pe=>{p||u(pe)}),j=pe=>{A(pe)||(o(pe),oe(pe),z?.(!0),B(!0))},ee=Te((pe,be)=>{switch(pe.key){case"ArrowUp":j(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":j(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const ge=n.addDays(be,ae?1:-1),Re=n.addMonths(be,ae?1:-1),Ve=Fi({utils:n,date:ge,minDate:ae?ge:n.startOfMonth(Re),maxDate:ae?n.endOfMonth(Re):ge,isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"ArrowRight":{const ge=n.addDays(be,ae?-1:1),Re=n.addMonths(be,ae?-1:1),Ve=Fi({utils:n,date:ge,minDate:ae?n.startOfMonth(Re):ge,maxDate:ae?ge:n.endOfMonth(Re),isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"Home":j(n.startOfWeek(be)),pe.preventDefault();break;case"End":j(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":j(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":j(n.addMonths(be,-1)),pe.preventDefault();break}}),J=Te((pe,be)=>j(be)),te=Te((pe,be)=>{L&&n.isSameDay(ne,be)&&z?.(!1)}),ce=n.getMonth(i),le=n.getYear(i),he=T.useMemo(()=>a.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,a]),W=`${le}-${ce}`,re=T.useMemo(()=>T.createRef(),[W]),Z=T.useMemo(()=>{const pe=n.startOfMonth(i),be=n.endOfMonth(i);return A(ne)||n.isAfterDay(ne,be)||n.isBeforeDay(ne,pe)?Fi({utils:n,date:ne,minDate:pe,maxDate:be,disablePast:v,disableFuture:D,isDateDisabled:A,timezone:q}):ne},[i,D,v,ne,A,n,q]),fe=T.useMemo(()=>{const pe=n.getWeekArray(i);let be=n.addMonths(i,1);for(;K&&pe.length<K;){const ge=n.getWeekArray(be),Re=n.isSameDay(pe[pe.length-1][0],ge[0][0]);ge.slice(Re?1:0).forEach(Ve=>{pe.length<K&&pe.push(Ve)}),be=n.addMonths(be,1)}return pe},[i,K,n]);return E.jsxs(sj,{role:"grid","aria-labelledby":R,className:H.root,children:[E.jsxs(ij,{role:"row",className:H.header,children:[$&&E.jsx(lj,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),sL(n,Y).map((pe,be)=>E.jsx(aj,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:H.weekDayLabel,children:I(pe)},be.toString()))]}),d?E.jsx(dj,{className:H.loadingContainer,children:w()}):E.jsx(uj,Q({transKey:W,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},m,{nodeRef:re,children:E.jsx(hj,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((pe,be)=>E.jsxs(fj,{role:"row",className:H.weekContainer,"aria-rowindex":be+1,children:[$&&E.jsx(cj,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:M.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((ge,Re)=>E.jsx(pj,{parentProps:t,day:ge,selectedDays:he,focusableDay:Z,onKeyDown:ee,onFocus:J,onBlur:te,onDaySelect:se,isDateDisabled:A,currentMonthNumber:ce,isViewFocused:L,"aria-colindex":Re+1},ge.toString()))]},`week-${pe[0]}`))})}))]})}function gj(e){return Me("MuiPickersMonth",e)}const nl=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),yj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],vj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},gj,o)},bj=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),wj=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${nl.disabled}`]:t.disabled},{[`&.${nl.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${nl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Cj=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":m,slots:v,slotProps:D}=n,k=Ye(n,yj),x=T.useRef(null),S=vj(n);ln(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??wj,O=pt({elementType:C,externalSlotProps:D?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:I=>f(I,d),onKeyDown:I=>p(I,d),onFocus:I=>y(I,d),onBlur:I=>w(I,d)},ownerState:n,className:S.monthButton});return E.jsx(bj,Q({className:Se(S.root,r),ownerState:n},k,{children:E.jsx(C,Q({},O))}))});function Sj(e){return Me("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const _j=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],xj=e=>{const{classes:t}=e;return Ie({root:["root"]},Sj,t)};function Rj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},r,{minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const Tj=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Nc,boxSizing:"border-box"}),Db=T.forwardRef(function(t,n){const o=Rj(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:D,hasFocus:k,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:I,slotProps:F}=o,z=Ye(o,_j),{value:R,handleValueChange:$,timezone:K}=jh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:Io}),G=Mc(K),q=to(),Y=Ft(),H=T.useMemo(()=>Io.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:xo.month}),[]),ae=o,A=xj(ae),M=T.useMemo(()=>Y.getMonth(G),[Y,G]),L=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[B,ne]=T.useState(()=>L||Y.getMonth(H)),[oe,se]=uo({name:"MonthCalendar",state:"hasFocus",controlled:k,default:v??!1}),j=Te(W=>{se(W),x&&x(W)}),ee=T.useCallback(W=>{const re=Y.startOfMonth(f&&Y.isAfter(G,y)?G:y),Z=Y.startOfMonth(u&&Y.isBefore(G,p)?G:p),fe=Y.startOfMonth(W);return Y.isBefore(fe,re)||Y.isAfter(fe,Z)?!0:b?b(fe):!1},[u,f,p,y,G,b,Y]),J=Te((W,re)=>{if(m)return;const Z=Y.setMonth(R??H,re);$(Z)}),te=Te(W=>{ee(Y.setMonth(R??H,W))||(ne(W),j(!0),D&&D(W))});T.useEffect(()=>{ne(W=>L!==null&&W!==L?L:W)},[L]);const ce=Te((W,re)=>{switch(W.key){case"ArrowUp":te((12+re-3)%12),W.preventDefault();break;case"ArrowDown":te((12+re+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),W.preventDefault();break}}),le=Te((W,re)=>{te(re)}),he=Te((W,re)=>{B===re&&j(!1)});return E.jsx(Tj,Q({ref:n,className:Se(A.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},z,{children:Nh(Y,R??H).map(W=>{const re=Y.getMonth(W),Z=Y.format(W,"monthShort"),fe=Y.format(W,"month"),pe=re===L,be=d||ee(W);return E.jsx(Cj,{selected:pe,value:re,onClick:J,onKeyDown:ce,autoFocus:oe&&re===B,disabled:be,tabIndex:re===B&&!be?0:-1,onFocus:le,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:I,slotProps:F,children:Z},Z)})}))});process.env.NODE_ENV!=="production"&&(Db.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function kj(e){return Me("MuiPickersYear",e)}const ol=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Ej=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Pj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},kj,o)},Dj=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Oj=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ol.disabled}`]:t.disabled},{[`&.${ol.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ol.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Mj=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:m,slotProps:v}=n,D=Ye(n,Ej),k=T.useRef(null),x=Pj(n);ln(()=>{o&&k.current?.focus()},[o]);const S=m?.yearButton??Oj,C=pt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>w(O,d)},ownerState:n,className:x.yearButton});return E.jsx(Dj,Q({className:Se(x.root,r),ownerState:n},D,{children:E.jsx(S,Q({},C))}))});function Ij(e){return Me("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const Nj=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Aj=e=>{const{classes:t}=e;return Ie({root:["root"]},Ij,t)};function Fj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const Lj=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Nc,maxHeight:m$,boxSizing:"border-box",position:"relative"}),Ob=T.forwardRef(function(t,n){const o=Fj(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:D,hasFocus:k,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:I,slots:F,slotProps:z}=o,R=Ye(o,Nj),{value:$,handleValueChange:K,timezone:G}=jh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:b,valueManager:Io}),q=Mc(G),Y=to(),H=Ft(),ae=T.useMemo(()=>Io.getInitialReferenceValue({value:$,utils:H,props:o,timezone:G,referenceDate:d,granularity:xo.year}),[]),A=o,M=Aj(A),L=T.useMemo(()=>H.getYear(q),[H,q]),B=T.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=T.useState(()=>B||H.getYear(ae)),[se,j]=uo({name:"YearCalendar",state:"hasFocus",controlled:k,default:r??!1}),ee=Te(ge=>{j(ge),x&&x(ge)}),J=T.useCallback(ge=>{if(p&&H.isBeforeYear(ge,q)||f&&H.isAfterYear(ge,q)||w&&H.isBeforeYear(ge,w)||y&&H.isAfterYear(ge,y))return!0;if(!v)return!1;const Re=H.startOfYear(ge);return v(Re)},[f,p,y,w,q,v,H]),te=Te((ge,Re)=>{if(m)return;const Ve=H.setYear($??ae,Re);K(Ve)}),ce=Te(ge=>{J(H.setYear($??ae,ge))||(oe(ge),ee(!0),D?.(ge))});T.useEffect(()=>{oe(ge=>B!==null&&ge!==B?B:ge)},[B]);const le=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,W=Te((ge,Re)=>{switch(ge.key){case"ArrowUp":ce(Re-le),ge.preventDefault();break;case"ArrowDown":ce(Re+le),ge.preventDefault();break;case"ArrowLeft":ce(Re-he),ge.preventDefault();break;case"ArrowRight":ce(Re+he),ge.preventDefault();break}}),re=Te((ge,Re)=>{ce(Re)}),Z=Te((ge,Re)=>{ne===Re&&ee(!1)}),fe=T.useRef(null),pe=ct(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ge=fe.current.querySelector('[tabindex="0"]');if(!ge)return;const Re=ge.offsetHeight,Ve=ge.offsetTop,Ne=fe.current.clientHeight,Je=fe.current.scrollTop,ke=Ve+Re;Re>Ne||Ve<Je||(fe.current.scrollTop=ke-Ne/2-Re/2)},[r]);const be=H.getYearRange([w,y]);return S==="desc"&&be.reverse(),E.jsx(Lj,Q({ref:pe,className:Se(M.root,i),ownerState:A,role:"radiogroup","aria-labelledby":I},R,{children:be.map(ge=>{const Re=H.getYear(ge),Ve=Re===B,Ne=u||J(ge);return E.jsx(Mj,{selected:Ve,value:Re,onClick:te,onKeyDown:W,autoFocus:se&&Re===ne,disabled:Ne,tabIndex:Re===ne&&!Ne?0:-1,onFocus:re,onBlur:Z,"aria-current":L===Re?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ge,"year")},H.format(ge,"year"))})}))});process.env.NODE_ENV!=="production"&&(Ob.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const $j=e=>Me("MuiPickersCalendarHeader",e),Vj=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function jj(e){return Me("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Bj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Wj=["ownerState"],Hj=["ownerState"],zj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Yj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Xm=ie(Us,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Uj=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},jj,t)},qj=T.forwardRef(function(t,n){const o=to(),r=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:D}=r,k=Ye(r,Bj),x=r,S=Uj(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:m,label:v},I=l?.previousIconButton??Xm,F=pt({elementType:I,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??Xm,R=pt({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Q({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??D$,K=pt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),G=Ye(K,Wj),q=l?.rightArrowIcon??O$,Y=pt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=Ye(Y,Hj);return E.jsxs(zj,Q({ref:n,className:Se(S.root,a),ownerState:x},k,{children:[E.jsx(I,Q({},F,{children:o?E.jsx(q,Q({},H)):E.jsx($,Q({},G))})),i?E.jsx(bn,{variant:"subtitle1",component:"span",id:D,children:i}):E.jsx(Yj,{className:S.spacer,ownerState:x}),E.jsx(z,Q({},R,{children:o?E.jsx($,Q({},G)):E.jsx(q,Q({},H))}))]}))});function Gj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function Kj(e,{disablePast:t,minDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const Xj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Zj=["ownerState"],Qj=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$j,t)},Jj=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),eB=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),tB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),nB=ie(Us,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Vj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),oB=ie(P$,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Mb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:D,views:k,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,I=Ye(i,Xj),F=i,z=Qj(i),R=a?.switchViewButton??nB,$=pt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??oB,G=pt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=Ye(G,Zj),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=Gj(d,{disableFuture:f,maxDate:y,timezone:C}),A=Kj(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(k.length===1||!m||u))if(k.length===2)m(k.find(B=>B!==v)||k[0]);else{const B=k.indexOf(v)!==0?0:1;m(k[B])}};if(k.length===1&&k[0]==="year")return null;const L=r.formatByString(d,O);return E.jsxs(Jj,Q({},I,{ownerState:F,className:Se(z.root,S),ref:n,children:[E.jsxs(eB,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[E.jsx(Rb,{reduceAnimations:D,transKey:L,children:E.jsx(tB,{id:x,ownerState:F,className:z.label,children:L})}),k.length>1&&!u&&E.jsx(R,Q({},$,{children:E.jsx(K,Q({},q))}))]}),E.jsx(Gr,{in:v==="day",children:E.jsx(qj,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:A,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Mb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const rB=ie("div")({overflow:"hidden",width:Nc,maxHeight:Bh,display:"flex",flexDirection:"column",margin:"0 auto"}),sB=e=>Me("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const iB=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],aB=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},sB,t)};function lB(e,t){const n=Ft(),o=_a(),r=db(),i=Nt({props:e,name:t});return Q({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:Jn(n,i.minDate,o.minDate),maxDate:Jn(n,i.maxDate,o.maxDate)})}const cB=ie(rB,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Bh}),dB=ie(Rb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ib=T.forwardRef(function(t,n){const o=Ft(),r=sr(),i=lB(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,view:S,views:C,openTo:O,className:I,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:G,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:A,slotProps:M,loading:L,renderLoading:B,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:ee}=i,J=Ye(i,iB),{value:te,handleValueChange:ce,timezone:le}=jh({name:"DateCalendar",timezone:ee,value:d,defaultValue:u,onChange:w,valueManager:Io}),{view:he,setView:W,focusedView:re,setFocusedView:Z,goToNextView:fe,setValueAndGoToNextView:pe}=ub({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:G,onFocusedViewChange:q}),{referenceDate:be,calendarState:ge,changeFocusedDay:Re,changeMonth:Ve,handleChangeMonth:Ne,isDateDisabled:Je,onMonthSwitchingAnimationEnd:ke}=jV({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:D,disablePast:y,disableFuture:p,timezone:le}),ut=F&&te||R,Yt=F&&te||$,rt=`${r}-grid-label`,Ot=re!==null,Ut=A?.calendarHeader??Mb,Lt=pt({elementType:Ut,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ge.currentMonth,onViewChange:W,onMonthChange:(at,Zt)=>Ne({newMonth:at,direction:Zt}),minDate:ut,maxDate:Yt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:le,labelId:rt},ownerState:i}),Ue=Te(at=>{const Zt=o.startOfMonth(at),pn=o.endOfMonth(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),m?.(Zt)):(fe(),Ve(Zt)),Re(Qt,!0)}),Be=Te(at=>{const Zt=o.startOfYear(at),pn=o.endOfYear(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),b?.(Qt)):(fe(),Ve(Zt)),Re(Qt,!0)}),rn=Te(at=>ce(at&&Ll(o,at,te??be),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&Ve(te)},[te]);const dn=i,Oe=aB(dn),We={disablePast:y,disableFuture:p,maxDate:$,minDate:R},ht={disableHighlightToday:K,readOnly:z,disabled:F,timezone:le,gridLabelId:rt,slots:A,slotProps:M},nn=T.useRef(he);T.useEffect(()=>{nn.current!==he&&(re===nn.current&&Z(he,!0),nn.current=he)},[re,Z,he]);const An=T.useMemo(()=>[te],[te]);return E.jsxs(cB,Q({ref:n,className:Se(Oe.root,I),ownerState:dn},J,{children:[E.jsx(Ut,Q({},Lt,{slots:A,slotProps:M})),E.jsx(dB,{reduceAnimations:v,className:Oe.viewTransitionContainer,transKey:he,ownerState:dn,children:E.jsxs("div",{children:[he==="year"&&E.jsx(Ob,Q({},We,ht,{value:te,onChange:Be,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("year",at),yearsOrder:oe,yearsPerRow:se,referenceDate:be})),he==="month"&&E.jsx(Db,Q({},We,ht,{hasFocus:Ot,className:I,value:te,onChange:Ue,shouldDisableMonth:k,onFocusedViewChange:at=>Z("month",at),monthsPerRow:j,referenceDate:be})),he==="day"&&E.jsx(mj,Q({},ge,We,ht,{onMonthSwitchingAnimationEnd:ke,onFocusedDayChange:Re,reduceAnimations:v,selectedDays:An,onSelectedDaysChange:rn,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("day",at),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:L,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(Ib.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Os=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B})=>E.jsx(Ib,{view:e,onViewChange:t,views:n.filter(Am),focusedView:o&&Am(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B}),Nb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=ib(t,"MuiDesktopDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Ah(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Q({openPickerIcon:M$,field:qh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},oc(i.slotProps?.field,u),lb(i),{ref:n}),toolbar:Q({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=E$({props:l,valueManager:Io,valueType:"date",getOpenDialogAriaText:ob({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Nb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const uB=ie(qu)({[`& .${Ii.container}`]:{outline:0},[`& .${Ii.paper}`]:{outline:0,minWidth:Nc}}),hB=ie(Ku)({"&:first-of-type":{padding:0}});function fB(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??uB,l=r?.mobileTransition??Gr;return E.jsx(a,Q({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:E.jsx(hB,{children:t})}))}const pB=["props","getOpenDialogAriaText"],mB=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,pB);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,localeText:x}=t,S=T.useRef(null),C=sr(),O=i?.toolbar?.hidden??!1,{open:I,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=hb(Q({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=r.field,q=pt({elementType:G,externalSlotProps:i?.field,additionalProps:Q({},$,O&&{id:C},!(k||D)&&{onClick:F.onOpen,onKeyDown:YL(F.onOpen)},{readOnly:D??!0,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Q({},q.inputProps,{"aria-label":n($.value)});const Y=Q({textField:r.textField},q.slots),H=r.layout??Wh;let ae=C;O&&(m?ae=`${C}-label`:ae=void 0);const A=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:C}),mobilePaper:Q({"aria-labelledby":ae},i?.mobilePaper)}),M=ct(S,q.unstableFieldRef);return{renderPicker:()=>E.jsxs(gb,{contextValue:K,localeText:x,children:[E.jsx(G,Q({},q,{slots:Y,slotProps:A,unstableFieldRef:M})),E.jsx(fB,Q({},F,{open:I,slots:r,slotProps:A,children:E.jsx(H,Q({},z,A?.layout,{slots:r,slotProps:A,children:R()}))}))]})}},Ab=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=ib(t,"MuiMobileDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Ah(r,i,!1),slots:Q({field:qh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},oc(i.slotProps?.field,u),lb(i),{ref:n}),toolbar:Q({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=mB({props:l,valueManager:Io,valueType:"date",getOpenDialogAriaText:ob({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Ab.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const gB=["desktopModeMediaQuery"],Vl=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=UL}=o,i=Ye(o,gB);return Ag(r,{defaultMatches:!0})?E.jsx(Nb,Q({ref:n},i)):E.jsx(Ab,Q({ref:n},i))});process.env.NODE_ENV!=="production"&&(Vl.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const vu=ie(po)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),yB=({setValue:e,value:t})=>{function n(r){const i=r?.format(Yr.db)||"",a={...t,1:i===fu?js[1]:i};e(a),rr(a)}function o(r){const i=r?.format(Yr.db)||"",a={...t,2:i===fu?js[2]:i};e(a),rr(a)}return E.jsxs(Oc,{dateAdapter:Xv,children:[E.jsx(vu,{children:E.jsx(Vl,{label:ao.from,onChange:n,...gu(t[1])})}),E.jsx(vu,{children:E.jsx(Vl,{label:ao.to,onChange:o,...gu(t[2])})})]})},jd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Yr.db)||"",a={...n,1:i===fu?js[1]:i};t(a),rr(a)}return E.jsx(Oc,{dateAdapter:Xv,children:E.jsx(vu,{children:E.jsx(Vl,{label:e,onChange:o,...gu(n[1])})})})},Zm={label:"",options:[]};function vB(){const{columnId:e,table:t}=Rn,n=t?.grid;if(!n)return Zm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Zm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function bB(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const wB=ie(fc)({padding:0}),Qm={Checkbox:wB},CB=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=vB(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),rr(d)};return E.jsxs(pa,{size:"small",children:[E.jsx(ma,{id:"column-filter-multiple-select-label",children:o}),E.jsxs(ga,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:E.jsx($s,{label:o}),renderValue:a=>a.join(", "),children:[E.jsxs(Pl,{value:"All",children:[E.jsx(Qm.Checkbox,{checked:n.indexOf("All")>-1}),E.jsx(nu,{primary:"All"})]},0),r.sort(bB).map(a=>E.jsxs(Pl,{value:a,children:[E.jsx(Qm.Checkbox,{checked:n.indexOf(a)>-1}),E.jsx(nu,{primary:a})]},a))]})]})},SB=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),rr(i)}function o(r){const i={...t,2:r.target.value};e(i),rr(i)}return E.jsxs(Fe.Fragment,{children:[E.jsx(Vs,{label:ao.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),E.jsx(Vs,{label:ao.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Bd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),rr(i)}return E.jsx(Vs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},rl=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),rr(r)}return E.jsx(Vs,{label:ao.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},_B=({filterId:e,setValue:t,value:n})=>E.jsxs(Fe.Fragment,{children:[e===je.Boolean&&E.jsx(QF,{setValue:t,value:n}),e===je.TextEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextContain&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotContain&&E.jsx(rl,{setValue:t,value:n}),e===je.MultipleSelect&&E.jsx(CB,{setValue:t,value:n}),e===je.NumberEqual&&E.jsx(Bd,{label:ao.filter,setValue:t,value:n}),e===je.NumberFrom&&E.jsx(Bd,{label:ao.from,setValue:t,value:n}),e===je.NumberTo&&E.jsx(Bd,{label:ao.to,setValue:t,value:n}),e===je.NumberBetween&&E.jsx(SB,{setValue:t,value:n}),e===je.DateEqual&&E.jsx(jd,{label:ao.filter,setValue:t,value:n}),e===je.DateFrom&&E.jsx(jd,{label:ao.from,setValue:t,value:n}),e===je.DateTo&&E.jsx(jd,{label:ao.to,setValue:t,value:n}),e===je.DateBetween&&E.jsx(yB,{setValue:t,value:n})]}),xB=ie(Pl)({fontSize:"12px"}),Jm={MenuItem:xB},RB=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>E.jsxs(pa,{variant:"outlined",size:"small",children:[E.jsx(ma,{id:"reportType",children:e}),E.jsxs(ga,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&E.jsx(Jm.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>E.jsx(Jm.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),TB={id:je.DateBetween,name:"Between"},kB={id:je.DateEqual,name:"Equal"},EB={id:je.DateFrom,name:"From"},PB={id:je.DateTo,name:"To"},DB={id:je.NumberBetween,name:"Between"},OB={id:je.NumberEqual,name:"Equal"},MB={id:je.NumberFrom,name:"From"},IB={id:je.NumberTo,name:"To"},NB={id:je.TextContain,name:"Contains"},AB={id:je.TextEqual,name:"Equal"},FB={id:je.TextNotContain,name:"Does not contain"},LB={id:je.TextNotEqual,name:"Not equal"},eg=[OB,MB,IB,DB],$B={[hn.Boolean]:[],[hn.Date]:[kB,EB,PB,TB],[hn.MultipleSelect]:[],[hn.Number]:eg,[hn.NumberFormatted]:eg,[hn.Text]:[NB,FB,AB,LB]},VB=({filterId:e,setFilterId:t})=>{const n=$B[Rn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=Rn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?E.jsx(RB,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},jB=ie(po)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),BB={Wrapper:jB},WB=()=>{const[e,t]=Fe.useState(js),[n,o]=Fe.useState(je.TextContain),[r,i]=Fe.useState(!1);return UF(i),YF(r,o,t),r?E.jsxs(Fe.Fragment,{children:[E.jsx(Mh,{setIsOpened:i}),E.jsx(Ih,{id:Kv,children:E.jsxs(BB.Wrapper,{children:[E.jsx(VB,{filterId:n,setFilterId:o}),E.jsx(_B,{filterId:n,setValue:t,value:e}),E.jsx(KF,{setIsOpened:i,setValue:t,value:e})]})})]}):null},Fb="context_menu";function HB(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Fb);if(!n)return;const{x:o,y:r}=wn;Oh(n,o,r)},0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}const zB=ie("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),YB=ie("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),UB=ie("span")({backgroundColor:"#1E456F"}),cn={Ul:zB,Li:YB,Icon:UB},qB=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=wn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},GB=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link"}),"Group"]})};function KB(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const XB=({setIsOpened:e})=>{const t=wn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,or.highlightAllColumns(o,t.id),e(!1)}return KB(t)?E.jsxs(Fe.Fragment,{children:[E.jsx(El,{}),E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},ZB=({setIsOpened:e})=>{const t=wn.table,o=t?.grid?.getSelectedRows();function r(){t&&(e(!1),Uo.table=t,Uo.open=!0)}return!t?.summaryColumnIds.length||Number(o?.length)<2?null:E.jsxs(cn.Li,{onClick:r,children:[E.jsx(cn.Icon,{className:"sgi sgi-checkbox-multiple-outline"}),"Summary"]})},QB=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},JB=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},eW=({setIsOpened:e})=>{function t(){const n=wn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return E.jsxs(cn.Li,{onClick:t,children:[E.jsx(cn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},tW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},nW=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=wn.table;r?.printer.print(r,e,t),n(!1)}return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-printer"}),"Print"]})},oW=({clientId:e,clientName:t})=>{const[n,o]=Fe.useState(!1);return HB(o),n?E.jsxs(Fe.Fragment,{children:[E.jsx(Mh,{setIsOpened:o}),E.jsx(Ih,{id:Fb,children:E.jsxs(cn.Ul,{children:[E.jsx(nW,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(eW,{setIsOpened:o}),E.jsx(qB,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(XB,{setIsOpened:o}),E.jsx(QB,{setIsOpened:o}),E.jsx(GB,{setIsOpened:o}),E.jsx(tW,{setIsOpened:o}),E.jsx(JB,{setIsOpened:o}),E.jsx(ZB,{setIsOpened:o})]})})]}):null},Lb="header-context-menu";function rW(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Lb);if(!n)return;const{x:o,y:r}=co;Oh(n,o,r)},0)}return co.subscribe(t),()=>{co.unsubscribe(t)}},[])}function Gh(e){const t=co.table;if(!t?.columnPicker)return;t.columnPicker.visibleColumnIds=[...e];const n=t.grid;if(!n)return;n.setColumns(t.columnPicker.initialColumns.filter(({id:r})=>e.includes(r)));const o=t.filter.args;t.filter.register(n,t.id),or.highlightAllColumns(o,t.id),t.totalCalculator?.calculate(n)}const sW=({setChecked:e})=>{function t(){const n=co.table;if(!n?.columnPicker)return;const o=n.columnPicker.initialColumns.map(({id:r})=>r);e(o),Gh(o)}return E.jsx(ko,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Check all"})},iW=({checked:e,setChecked:t})=>{function n(){const o=e.filter(r=>r==="_checkbox_selector"||r==="isEdited");t(o),Gh(o)}return E.jsx(ko,{onClick:n,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Uncheck all"})},aW=ie(ko)({display:"flex",alignItems:"center",justifyContent:"flex-start",columnGap:"0.5em",textTransform:"none",color:"#1E456F",padding:"0"}),lW=ie(fc)({padding:0}),tg={Checkbox:lW,Button:aW},cW=({checked:e,columnId:t,columnName:n,setChecked:o})=>{function r(){const i=e.indexOf(t),a=[...e];~i?a.splice(i,1):a.push(t),o(a),Gh(a)}return E.jsxs(tg.Button,{onClick:r,children:[E.jsx(tg.Checkbox,{checked:e.includes(t),size:"small"}),E.jsx(po,{children:n})]})},dW=ie(po)({color:"#1e456f",marginBottom:"0.6em",fontSize:"1rem"}),uW={Wrapper:dW},hW=()=>E.jsx(uW.Wrapper,{className:"header-context-menu-header",children:"Columns"}),fW=ie(po)({columnGap:"0.5em",display:"flex",justifyContent:"flex-end",marginTop:"0.5em"}),pW=ie(po)({maxHeight:"35em",overflowY:"auto"}),ng={ButtonsGroup:fW,ItemsGroup:pW},mW=()=>{const[e,t]=Fe.useState([]),[n,o]=Fe.useState(!1);if(rW(o),Fe.useEffect(()=>{if(!n)return;const i=co.table;i?.columnPicker&&t([...i.columnPicker.visibleColumnIds])},[n]),!n)return null;const r=co.table;return r?.columnPicker?E.jsxs(Fe.Fragment,{children:[E.jsx(Mh,{setIsOpened:o}),E.jsxs(Ih,{id:Lb,children:[E.jsx(hW,{}),E.jsx(ng.ItemsGroup,{children:r.columnPicker.initialColumns.filter(({id:i})=>i!=="_checkbox_selector"&&i!=="isEdited").map(({id:i,name:a})=>E.jsx(Fe.Fragment,{children:E.jsx(cW,{checked:e,columnId:i,columnName:a,setChecked:t})},i))}),E.jsxs(ng.ButtonsGroup,{className:"header-context-menu-footer",children:[E.jsx(sW,{setChecked:t}),E.jsx(iW,{checked:e,setChecked:t})]})]})]}):null};exports.Autocomplete=gF;exports.ColumnFilters=WB;exports.ColumnPicker=ED;exports.ColumnSorter=qv;exports.ContextMenu=oW;exports.DecoratorColumnFilter=UA;exports.DecoratorFilter=Iv;exports.DefaultHotKeys=OD;exports.DefaultPrinter=Bv;exports.DeletedRowsFilter=LN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=hn;exports.ESortType=Co;exports.Filter=Mv;exports.HeaderContextMenu=mW;exports.HotKeysDecorator=mc;exports.PopupSummary=$F;exports.PreventCopying=MD;exports.RedoUndoOnly=ID;exports.Skeleton=xD;exports.SlickTable=QA;exports.SlickgridTable=VA;exports.TotalCalculator=PF;exports.WithSummary=FN;exports.WithoutHotKeys=jy;exports.columnCheckboxSelector=jA;exports.columnIsEdited=WA;exports.commitCurrentEdit=Rh;exports.copySelectedRows=Hv;exports.formatNumber=Dh;exports.formatterGroupTotals=_F;exports.getDisplayedRows=Ec;exports.getFormatterNumber=SF;exports.getNextId=Fl;exports.handleHeaderButtons=Nv;exports.headerButtons=or;exports.hotKeysCopy=kh;exports.hotKeysDelete=Wv;exports.hotKeysRedo=Eh;exports.hotKeysUndo=Ph;exports.openColumnFilter=VN;exports.openContextMenu=zv;exports.useListenIfTablesWereEdited=dF;
|
|
365
|
+
`))},[JSON.stringify(p)]));const w=Ft(),b=Qr(),{isOpen:m,setIsOpen:v}=s$(e),{timezone:D,value:k,handleValueChange:x}=Vh({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=T.useState(()=>{let j;return k!==void 0?j=k:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:k,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=cb({props:e,validator:r,timezone:D,value:S.draft,onError:e.onError}),I=Te(j=>{const ee={action:j,dateState:S,hasChanged:W=>!t.areValuesEqual(w,j.value,W),isControlled:y,closeOnSelect:u},J=i$(ee),te=a$(ee),ce=l$(ee);C(W=>Q({},W,{draft:j.value,lastPublishedValue:J?j.value:W.lastPublishedValue,lastCommittedValue:te?j.value:W.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(le.shortcut=j.shortcut)),le);J&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(k!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,k))){const j=t.areValuesEqual(w,S.draft,k);C(ee=>Q({},ee,{lastControlledValue:k},j?{}:{lastCommittedValue:k,lastPublishedValue:k,draft:k,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{I({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{I({value:t.getTodayValue(w,D,n),name:"setValueFromAction",pickerAction:"today"})}),G=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,ee="partial")=>I({name:"setValueFromView",value:j,selectionState:ee})),H=Te((j,ee,J)=>I({name:"setValueFromShortcut",value:j,changeImportance:ee,shortcut:J})),ae=Te((j,ee)=>I({name:"setValueFromField",value:j,context:ee})),A={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:G,onClose:q},M={value:S.draft,onChange:ae},L=T.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),B={value:L,onChange:Y,onClose:q,open:m},oe=Q({},A,{value:L,onChange:Y,onSelectShortcut:H,isValid:j=>{const ee=r({adapter:b,value:j,timezone:D,props:e});return!t.hasError(ee)}}),se=T.useMemo(()=>({onOpen:G,onClose:q,open:m}),[m,q,G]);return{open:m,fieldProps:M,viewProps:B,layoutProps:oe,actions:A,contextValue:se}};let Vd=!1;function ub({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Vd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Vd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Vd=!0)));const d=T.useRef(n),u=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=uo({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,m]=uo({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(I=>!r.includes(I)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),D=r[v-1]??null,k=r[v+1]??null,x=Te((I,F)=>{m(F?I:z=>I===z?null:z),l?.(I,F)}),S=Te(I=>{x(I,!0),I!==p&&(y(I),t&&t(I))}),C=Te(()=>{k&&S(k)}),O=Te((I,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!k;if(e(I,R&&$?"partial":F,z),z&&z!==p){const G=r[r.indexOf(z)+1];G&&S(G)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:k,previousView:D,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const d$=["className","sx"],u$=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,m=Ye(e,d$),{view:v,setView:D,defaultView:k,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=ub({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:I}=T.useMemo(()=>f.reduce((q,Y)=>{let H;return w[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&lL(Y)?q+1:q,0),[w,f]),z=I[v],R=Te(()=>z==="UI"),[$,K]=T.useState(z==="UI"?v:null);return $!==v&&I[v]==="UI"&&K(v),ln(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),ln(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==k&&I[q]==="UI"&&I[k]==="UI"&&(q=k),q!==v&&D(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:D},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Q({},m,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:D,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function qm(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const h$=(e,t)=>{const[n,o]=T.useState(qm);return ln(()=>{const i=()=>{o(qm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),YL(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},f$=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=h$(n.views,r),a=to();return{layoutProps:Q({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function p$(e){const{props:t,pickerValueResponse:n}=e;return T.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const hb=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&r$(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=c$({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=u$({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=f$({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=p$({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function fb(e){return Me("MuiPickersLayout",e)}const Dr=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),m$=["onAccept","onClear","onCancel","onSetToday","actions"];function pb(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=Ye(e,m$),l=lr();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return E.jsx(ko,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return E.jsx(ko,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return E.jsx(ko,{onClick:t,children:l.okButtonLabel},u);case"today":return E.jsx(ko,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return E.jsx(Gu,Q({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(pb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oa=36,Ic=2,Nc=320,g$=280,Bh=336,y$=["items","changeImportance","isLandscape","onChange","isValid"],v$=["getValue"];function mb(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=Ye(e,y$);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=Ye(l,v$);const f=d({isValid:r});return Q({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return E.jsx(pc,Q({dense:!0,sx:[{maxHeight:Bh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>E.jsx(Ty,{children:E.jsx(gy,Q({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(mb.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function b$(e){return e.view!==null}const w$=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},fb,t)},C$=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:m,children:v,slots:D,slotProps:k}=e,x=w$(e),S=D?.actionBar??pb,C=pt({elementType:S,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Q({},e,{wrapperVariant:t})}),O=E.jsx(S,Q({},C)),I=D?.toolbar,F=pt({elementType:I,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:m},className:x.toolbar,ownerState:Q({},e,{wrapperVariant:t})}),z=b$(F)&&I?E.jsx(I,Q({},F)):null,R=v,$=D?.tabs,K=a&&$?E.jsx($,Q({view:a,onViewChange:d,className:x.tabs},k?.tabs)):null,G=D?.shortcuts??mb,q=pt({elementType:G,externalSlotProps:k?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&G?E.jsx(G,Q({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:O,shortcuts:Y}},S$=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},fb,n)},_$=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Dr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Dr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Dr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Dr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Dr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Dr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Dr.shortcuts}`]:{gridColumn:3}}}]}),x$=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Wh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=C$(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=S$(o);return E.jsxs(_$,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,E.jsx(x$,{className:w.contentWrapper,children:y==="desktop"?E.jsxs(T.Fragment,{children:[i,a]}):E.jsxs(T.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Wh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const R$=T.createContext(null);function gb(e){const{contextValue:t,localeText:n,children:o}=e;return E.jsx(R$.Provider,{value:t,children:E.jsx(Oc,{localeText:n,children:o})})}const T$=["props","getOpenDialogAriaText"],k$=["ownerState"],E$=["ownerState"],P$=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,T$);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=T.useRef(null),I=T.useRef(null),F=sr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:G,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:A}=hb(Q({},o,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Zu,L=pt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),B=Ye(L,k$),ne=r.openPickerButton??Us,oe=pt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:k||D,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:B.position},ownerState:t}),se=Ye(oe,E$),j=r.openPickerIcon,ee=pt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:A}),J=r.field,te=pt({elementType:J,externalSlotProps:i?.field,additionalProps:Q({},H,z&&{id:F},{readOnly:D,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Q({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${B.position}Adornment`]:E.jsx(M,Q({},B,{children:E.jsx(ne,Q({},se,{children:E.jsx(j,Q({},ee))}))}))}));const ce=Q({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),le=r.layout??Wh;let he=F;z&&(m?he=`${F}-label`:he=void 0);const W=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:F}),popper:Q({"aria-labelledby":he},i?.popper)}),re=ct(I,te.unstableFieldRef);return{renderPicker:()=>E.jsxs(gb,{contextValue:ae,localeText:S,children:[E.jsx(J,Q({},te,{slots:ce,slotProps:W,unstableFieldRef:re})),E.jsx(o$,Q({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:W,shouldRestoreFocus:Y,reduceAnimations:C,children:E.jsx(le,Q({},G,W?.layout,{slots:r,slotProps:W,children:q()}))}))]})}},D$=fn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),O$=fn(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),M$=fn(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),I$=fn(E.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");fn(E.jsxs(T.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");fn(E.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");fn(E.jsxs(T.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const N$=fn(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),A$=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return r},F$=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},L$=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},$$=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=Fh(e,a),u=nb(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=Lh(Jv(Ur(y,r),w),r))}return Q({},d,{format:a,maxLength:w,value:y,placeholder:L$(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},V$=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,m=d.exec(n.slice(y))?.[1];if(!b&&m!=null&&u.test(m)){let v=m;for(;v.length>0;){const D=f.exec(v)[1];v=v.slice(D.length),i.push($$(Q({},e,{now:r,token:D,startSeparator:a}))),a=""}y+=m.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},j$=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Gm=e=>{let t=A$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=F$(Q({},e,{expandedFormat:t})),o=V$(Q({},e,{expandedFormat:t,escapedParts:n}));return j$(Q({},e,{sections:o}))},B$=e=>{const t=Ft(),n=lr(),o=Qr(),r=to(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:D,shouldRespectLeadingZeros:k=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:I}=Vh({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=T.useMemo(()=>pL(t),[t]),z=T.useMemo(()=>bL(t,F,C),[t,F,C]),R=T.useCallback((j,ee=null)=>a.getSectionsFromValue(t,j,ee,J=>Gm({utils:t,localeText:n,localizedDigits:F,format:b,date:J,formatDensity:m,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,k,t,m,S]),[$,K]=T.useState(()=>{const j=R(O);Bm(j,l);const ee={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=dL(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:J,timezone:C});return Q({},ee,{referenceValue:te})}),[G,q]=uo({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),D?.(j)},H=T.useMemo(()=>yu(G,$.sections),[G,$.sections]),ae=H==="all"?0:H,A=({value:j,referenceValue:ee,sections:J})=>{if(K(ce=>Q({},ce,{sections:J,value:j,referenceValue:ee,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};I(j,te)},M=(j,ee)=>{const J=[...$.sections];return J[j]=Q({},J[j],{value:ee,modified:!0}),J},L=()=>{A({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},B=()=>{if(ae==null)return;const j=$.sections[ae],ee=a.getActiveDateManager(t,$,j),te=ee.getSections($.sections).filter(W=>W.value!=="").length===(j.value===""?0:1),ce=M(ae,""),le=te?null:t.getInvalidDate(),he=ee.getNewValuesFromNewActiveDate(le);A(Q({},he,{sections:ce}))},ne=j=>{const ee=(ce,le)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const W=Gm({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:m,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:S,isRtl:r});return Hm(t,he,W,le,!1)},J=a.parseValueStr(j,$.referenceValue,ee),te=a.updateReferenceValue(t,J,$.referenceValue);A({value:J,referenceValue:te,sections:R(J,$.sections)})},oe=({activeSection:j,newSectionValue:ee,shouldGoToNextSection:J})=>{J&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,ee),le=te.getSections(ce),he=gL(t,le,F);let W,re;if(he!=null&&t.isValid(he)){const Z=Hm(t,he,le,te.referenceDate,!0);W=te.getNewValuesFromNewActiveDate(Z),re=!0}else W=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?A(Q({},W,{sections:ce})):K(Z=>Q({},Z,W,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(ee=>Q({},ee,{tempValueStrAndroid:j}));return T.useEffect(()=>{const j=R($.value);Bm(j,l),K(ee=>Q({},ee,{sections:j}))},[b,t.locale,r]),T.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(ee=>Q({},ee,{value:O,referenceValue:a.updateReferenceValue(t,O,ee.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:L,clearActiveSection:B,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},W$=5e3,ms=e=>e.saveQuery!=null,H$=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Ft(),[l,d]=T.useState(null),u=Te(()=>d(null));T.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),T.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),W$);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:m},v,D)=>{const k=b.toLowerCase(),x=e[m];if(l!=null&&(!D||D(l.value))&&l.sectionIndex===m){const C=`${l.value}${k}`,O=v(C,x);if(!ms(O))return d({sectionIndex:m,value:C,sectionType:x.type}),O}const S=v(k,x);return ms(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:m,value:k,sectionType:x.type}),ms(S)?null:S)},p=b=>{const m=(k,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(k,x,S,C)=>{const O=I=>Qv(a,i,x.type,I);if(x.contentType==="letter")return m(x.format,O(x.format),k);if(S&&C!=null&&Fh(a,S).contentType==="letter"){const I=O(S),F=m(S,I,k);return ms(F)?{saveQuery:!1}:Q({},F,{sectionValue:C(F.sectionValue,I)})}return{saveQuery:!1}};return f(b,(k,x)=>{switch(x.type){case"month":{const S=C=>Vm(a,C,a.formats.month,x.format);return v(k,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(k,x,a.formats.weekday,S)}case"meridiem":return v(k,x);default:return{saveQuery:!1}}})},y=b=>{const m=(D,k)=>{const x=Ur(D,o),S=Number(x),C=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:eb(a,S,C,o,k),shouldGoToNextSection:O}};return f(b,(D,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return m(D,k);if(k.type==="month"){nb(a,"digit","month","MM");const x=m(D,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ms(x))return x;const S=Vm(a,x.sectionValue,"MM",k.format);return Q({},x,{sectionValue:S})}if(k.type==="weekDay"){const x=m(D,k);if(ms(x))return x;const S=Dc(a,k.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:S})}return{saveQuery:!1}},D=>$m(D,o))};return{applyCharacterEditing:Te(b=>{const m=e[b.sectionIndex],D=$m(b.keyPressed,o)?y(Q({},b,{keyPressed:Lh(b.keyPressed,o)})):p(b);if(D==null){r(null);return}t({activeSection:m,newSectionValue:D.sectionValue,shouldGoToNextSection:D.shouldGoToNextSection})}),resetCharacterQuery:u}},z$=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:m,state:v,clearActiveSection:D,clearValue:k,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:I}=e,F=T.useRef(null),z=ct(o,F),R=lr(),$=Ft(),K=sr(),[G,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(m==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),G&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Ln(document)))return;const Z=new window.Range;let fe;m==="all"?fe=F.current.getRoot():v.sections[m].type==="empty"?fe=F.current.getSectionContainer(m):fe=F.current.getSectionContent(m),Z.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const re=Ln(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Z=yu(re,v.sections);q(!0),F.current.getSectionContent(Z).focus()},setSelectedSections:re=>{if(!F.current)return;const Z=yu(re,v.sections);q((Z==="all"?0:Z)!==null),b(re)},isFieldFocused:()=>{const re=Ln(document);return!!F.current&&F.current.getRoot().contains(re)}}),[m,b,v.sections,G]),H=Te(re=>{if(!F.current)return;const Z=v.sections[re];F.current.getSectionContent(re).innerHTML=Z.value||Z.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Z)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Z),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let pe=0,be=0;for(;be<fe&&pe<v.sections.length;){const ge=v.sections[pe];pe+=1,be+=`${ge.startSeparator}${ge.value||ge.placeholder}${ge.endSeparator}`.length}b(pe-1)}):G?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),A=Te(re=>{if(l?.(re),!F.current||m!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(pe=>`${pe.startSeparator}${pe.value||pe.placeholder}${pe.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),k(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||m!=="all"){re.preventDefault();return}const Z=re.clipboardData.getData("text");re.preventDefault(),w(),S(Z)}),L=Te((...re)=>{if(a?.(...re),G||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Ln(document))!=null||b(C.startIndex)}),B=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Z=Ln(document);!F.current.getRoot().contains(Z)&&(q(!1),b(null))})}),ne=Te(re=>Z=>{Z.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof m!="number")return;const Z=v.sections[m],fe=re.clipboardData.getData("text"),pe=/^[a-zA-Z]+$/.test(fe),be=/^[0-9]+$/.test(fe),ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Z.contentType==="letter"&&pe||Z.contentType==="digit"&&be||Z.contentType==="digit-with-letter"&&ge?(w(),x({activeSection:Z,newSectionValue:fe,shouldGoToNextSection:!0})):!pe&&!be&&(w(),S(fe))}),ee=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),J=Te(re=>{if(!F.current)return;const Z=re.target,fe=Z.textContent??"",pe=F.current.getSectionIndexFromDOMElement(Z),be=v.sections[pe];if(n||!F.current){H(pe);return}if(fe.length===0){if(be.value===""){H(pe);return}const ge=re.nativeEvent.inputType;if(ge==="insertParagraph"||ge==="insertLineBreak"){H(pe);return}w(),D();return}y({keyPressed:fe,sectionIndex:pe}),H(pe)});ln(()=>{if(!(!G||!F.current)){if(m==="all")F.current.getRoot().focus();else if(typeof m=="number"){const re=F.current.getSectionContent(m);re&&re.focus()}}},[m,G]);const te=T.useMemo(()=>v.sections.reduce((re,Z)=>(re[Z.type]=I[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),re),{}),[I,v.sections]),ce=m==="all",le=T.useMemo(()=>v.sections.map((re,Z)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:ne(Z)},content:{tabIndex:ce||Z>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":xL(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?_L(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:J,onPaste:j,onFocus:se(Z),onDragOver:ee,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,ee,J,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),W=T.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return T.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
366
|
+
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??G,sectionListRef:z,onBlur:B,onClick:ae,onFocus:L,onInput:A,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:m===0?-1:0,contentEditable:ce,value:W,onChange:he,areAllSectionsEmpty:O}}},_s=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Y$=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=$h(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=_s(u).length,p=u.length,y=_s(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Q({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},U$=e=>{const t=to(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:D,resetCharacterQuery:k,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:I,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),G=ct(d,K),q=T.useMemo(()=>Y$(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Ln(document))return;const J=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,le=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||le!==K.current.selectionEnd)&&K.current===Ln(document)&&K.current.setSelectionRange(ce,le),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Ln(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==le)&&Y.syncSelectionToDOM()})}K.current.scrollTop=J},getActiveSectionIndexFromDOM:()=>{const J=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(J===0&&te===0)return null;const ce=J<=q[0].startInInput?1:q.findIndex(le=>le.startInInput-le.startSeparator.length>J);return ce===-1?q.length-1:ce-1},focusField:(J=0)=>{K.current?.focus(),F(J)},setSelectedSections:J=>F(J),isFieldFocused:()=>K.current===Ln(document)}),[K,y,q,F]),H=()=>{const J=K.current.selectionStart??0;let te;J<=q[0].startInInput||J>=q[q.length-1].endInInput?te=1:te=q.findIndex(le=>le.startInInput-le.startSeparator.length>J);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...J)=>{r?.(...J);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),A=Te((J,...te)=>{J.isDefaultPrevented()||(i?.(J,...te),H())}),M=Te(J=>{if(a?.(J),J.preventDefault(),f||p)return;const te=J.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],le=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&le||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&W){k(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(le||he)return}k(),S(te)}),L=Te((...J)=>{l?.(...J),F(null)}),B=Te(J=>{if(f)return;const te=J.target.value;if(te===""){k(),O();return}const ce=J.nativeEvent.data,le=ce&&ce.length>1,he=le?ce:te,W=_s(he);if(w==null||le){S(le?ce:W);return}let re;if(y==="all"&&W.length===1)re=W;else{const Z=_s(m.getV6InputValueFromSections(q,$,t));let fe=-1,pe=-1;for(let Ve=0;Ve<Z.length;Ve+=1)fe===-1&&Z[Ve]!==W[Ve]&&(fe=Ve),pe===-1&&Z[Z.length-Ve-1]!==W[W.length-Ve-1]&&(pe=Ve);const be=q[w];if(fe<be.start||Z.length-pe-1>be.end)return;const Re=W.length-Z.length+be.end-_s(be.endSeparator||"").length;re=W.slice(be.start+_s(be.startSeparator||"").length,Re)}if(re.length===0){CL()&&I(he),k(),C();return}D({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,m,z,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===Ln(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),ee=!(K.current&&K.current===Ln(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:L,onClick:A,onFocus:ae,onPaste:M,inputRef:G,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:ee?"":oe,onChange:B}}},q$=e=>{const t=Ft(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,m=to(),v=B$(e),{state:D,activeSectionIndex:k,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:I,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=H$({sections:D.sections,updateSectionValue:I,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:G}=K,q=w.areValuesEqual(t,D.value,w.emptyValue),Y=i?z$:U$,H=T.useMemo(()=>SL(D.sections,m&&!i),[D.sections,m,i]),{returnedValue:ae,interactions:A}=Y(Q({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const ee=H.neighbors[x].rightIndex;ee!==null&&S(ee)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const ee=H.neighbors[x].leftIndex;ee!==null&&S(ee)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),G();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||k==null)break;const ee=D.sections[k],J=y.getActiveDateManager(t,D,ee),te=mL(t,$,ee,j.key,z,R,J.date,{minutesStep:r});I({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!1});break}}});ln(()=>{A.syncSelectionToDOM()});const{hasValidationError:L}=cb({props:n,validator:b,timezone:$,value:D.value,onError:n.onError}),B=T.useMemo(()=>u!==void 0?u:L,[L,u]);T.useEffect(()=>{!B&&k==null&&G()},[D.referenceValue,k,B]),T.useEffect(()=>{D.tempValueStrAndroid!=null&&k!=null&&(G(),O())},[D.sections]),T.useImperativeHandle(o,()=>({getSections:()=>D.sections,getActiveSectionIndex:A.getActiveSectionIndexFromDOM,setSelectedSections:A.setSelectedSections,focusField:A.focusField,isFieldFocused:A.isFieldFocused}));const ne=Te((j,...ee)=>{j.preventDefault(),p?.(j,...ee),C(),A.isFieldFocused()?S(H.startIndex):A.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:B,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Q({},e.forwardedProps,oe,se,ae)},G$=["clearable","onClear","InputProps","sx","slots","slotProps"],K$=["ownerState"],X$=e=>{const t=lr(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Ye(e,G$),u=a?.clearButton??Us,f=pt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Ye(f,K$),y=a?.clearIcon??N$,w=pt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Q({},d,{InputProps:Q({},r,{endAdornment:E.jsxs(T.Fragment,{children:[n&&E.jsx(Zu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:E.jsx(u,Q({},p,{onClick:o,children:E.jsx(y,Q({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},Z$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Q$=(e,t)=>T.useMemo(()=>{const n=Q({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return Z$.forEach(r),ab.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),J$=e=>{const t=Ft(),n=_a();return Q({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Jn(t,e.minDate,n.minDate),maxDate:Jn(t,e.maxDate,n.maxDate)})},eV=e=>{const t=J$(e),{forwardedProps:n,internalProps:o}=Q$(t,"date");return q$({forwardedProps:n,internalProps:o,valueManager:Io,fieldValueManager:TL,validator:xa,valueType:"date"})};function tV(e){return Me("MuiPickersTextField",e)}Pe("MuiPickersTextField",["root","focused","disabled","error","required"]);function nV(e){return Me("MuiPickersInputBase",e)}const Ds=Pe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function oV(e){return Me("MuiPickersSectionList",e)}const wi=Pe("MuiPickersSectionList",["root","section","sectionContent"]),rV=["slots","slotProps","elements","sectionListRef"],yb=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),vb=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),bb=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wb=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),sV=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},oV,t)};function Cb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??vb,a=pt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??wb,d=pt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??bb,f=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return E.jsxs(i,Q({},a,{children:[E.jsx(u,Q({},f)),E.jsx(l,Q({},d)),E.jsx(u,Q({},p))]}))}process.env.NODE_ENV!=="production"&&(Cb.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const Sb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Ye(o,rV),u=sV(o),f=T.useRef(null),p=ct(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${wi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${wi.section}[data-sectionindex="${m}"] .${wi.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let D=null;return m.classList.contains(wi.section)?D=m:m.classList.contains(wi.sectionContent)&&(D=m.parentElement),D==null?null:Number(D.dataset.sectionindex)}}));const w=r?.root??yb,b=pt({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return E.jsx(w,Q({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:D})=>`${v.children}${m.children}${D.children}`).join(""):E.jsx(T.Fragment,{children:a.map((m,v)=>E.jsx(Cb,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(Sb.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const iV=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],aV=e=>Math.round(e*1e5)/1e5,Ac=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${aV(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Hh=ie(yb,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),lV=ie(vb,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),cV=ie(wb,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),dV=ie(bb,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),uV=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Q({},nR)),hV=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${we(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,nV,r)},Fc=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:D,onKeyDown:k,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:I}=o,F=Ye(o,iV),z=T.useRef(null),R=ct(n,z),$=ct(C?.ref,O),K=to(),G=Nn();if(!G)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=L=>{if(G.disabled){L.stopPropagation();return}G.onFocus?.(L)};T.useEffect(()=>{G&&G.setAdornedStart(!!f)},[G,f]),T.useEffect(()=>{G&&(i?G.onEmpty():G.onFilled())},[G,i]);const Y=Q({},o,G,{isRtl:K}),H=hV(Y),ae=y?.root||Ac,A=pt({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":G.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||Hh;return E.jsxs(ae,Q({},A,{children:[f,E.jsx(Sb,{sectionListRef:I,elements:r,contentEditable:b,tabIndex:m,className:H.sectionsContainer,onFocus:q,onBlur:G.onBlur,onInput:v,onPaste:D,onKeyDown:k,slots:{root:M,section:lV,sectionContent:cV,sectionSeparator:dV},slotProps:{root:{ownerState:Y},sectionContent:{className:Ds.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?Ds.sectionBefore:Ds.sectionAfter})}}),u,p?p(Q({},G)):null,E.jsx(uV,Q({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:G.required,disabled:G.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(Fc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function fV(e){return Me("MuiPickersOutlinedInput",e)}const io=Q({},Ds,Pe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),pV=["children","className","label","notched","shrink"],mV=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Km=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),gV=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function yV(e){const{className:t,label:n}=e,o=Ye(e,pV),r=n!=null&&n!=="",i=Q({},e,{withLabel:r});return E.jsx(mV,Q({"aria-hidden":!0,className:t},o,{ownerState:i,children:E.jsx(gV,{ownerState:i,children:r?E.jsx(Km,{children:n}):E.jsx(Km,{className:"notranslate",children:""})})}))}const vV=["label","autoFocus","ownerState","notched"],bV=ie(Ac,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${io.focused} .${io.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${io.disabled}`]:{[`& .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${io.error} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${io.focused}:not(.${io.error}) .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),wV=ie(Hh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),CV=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},fV,t);return Q({},t,o)},zh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Ye(o,vV),d=Nn(),u=Q({},o,i,d,{color:d?.color||"primary"}),f=CV(u);return E.jsx(Fc,Q({slots:{root:bV,input:wV},renderSuffix:p=>E.jsx(yV,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?E.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(zh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});zh.muiName="Input";function SV(e){return Me("MuiPickersFilledInput",e)}const Or=Q({},Ds,Pe("MuiPickersFilledInput",["root","underline","input"])),_V=["label","autoFocus","disableUnderline","ownerState"],xV=ie(Ac,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ll(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),RV=ie(Hh,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),TV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},SV,t);return Q({},t,r)},Yh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,_V),d=Nn(),u=Q({},o,a,d,{color:d?.color||"primary"}),f=TV(u);return E.jsx(Fc,Q({slots:{root:xV,input:RV},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Yh.muiName="Input";function kV(e){return Me("MuiPickersFilledInput",e)}const Ci=Q({},Ds,Pe("MuiPickersInput",["root","input"])),EV=["label","autoFocus","disableUnderline","ownerState"],PV=ie(Ac,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ci.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ci.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ci.disabled}, .${Ci.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ci.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),DV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},kV,t);return Q({},t,r)},Uh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,EV),d=Nn(),u=Q({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=DV(u);return E.jsx(Fc,Q({slots:{root:PV}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Uh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Uh.muiName="Input";const OV=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],MV={standard:Uh,filled:Yh,outlined:zh},IV=ie(pa,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NV=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},tV,o)},_b=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:G,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:A,label:M,InputLabelProps:L}=o,B=Ye(o,OV),ne=T.useRef(null),oe=ct(n,ne),se=sr(Y),j=ae&&se?`${se}-helper-text`:void 0,ee=M&&se?`${se}-label`:void 0,J=Q({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=NV(J),ce=MV[f];return E.jsxs(IV,Q({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:J},B,{children:[E.jsx(ma,Q({htmlFor:se,id:ee},L,{children:M})),E.jsx(ce,Q({elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:G,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:M,name:H,role:"group","aria-labelledby":ee},y)),ae&&E.jsx(Xu,Q({id:j},A,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(_b.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const AV=["enableAccessibleFieldDOMStructure"],FV=["InputProps","readOnly"],LV=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],$V=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ye(e,AV);if(t){const{InputProps:p,readOnly:y}=n,w=Ye(n,FV);return Q({},w,{InputProps:Q({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Ye(n,LV);return Q({},f,{InputProps:Q({},l??{},{readOnly:a}),inputProps:Q({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},VV=["slots","slotProps","InputProps","inputProps"],qh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Ye(o,VV),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?_b:Vs),p=pt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Q({},l,p.inputProps),p.InputProps=Q({},a,p.InputProps);const y=eV(p),w=$V(y),b=X$(Q({},w,{slots:r,slotProps:i}));return E.jsx(f,Q({},b))});process.env.NODE_ENV!=="production"&&(qh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const xb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Qr();return T.useCallback(u=>xa({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},jV=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Q({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Q({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Q({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Q({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},BV=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Ft(),w=T.useRef(jV(!!u,i,y)).current,b=T.useMemo(()=>Io.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:xo.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const D=T.useCallback(O=>{v(Q({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),k=T.useCallback(O=>{const I=O;y.isSameMonth(I,m.currentMonth)||D({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,D,y]),x=xb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,I)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:I})});return{referenceDate:b,calendarState:m,changeMonth:k,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:D}},WV=e=>Me("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const HV=e=>{const{classes:t}=e;return Ie({root:["root"]},WV,t)},zV=ie(da,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Rb(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=HV(t),l=qr();return r?n:E.jsx(zV,{className:Se(a.root,o),children:E.jsx(Gr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function YV(e){return Me("MuiPickersDay",e)}const Mr=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),UV=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],qV=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},YV,d)},Tb=({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Mr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.disabled}:not(.${Mr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mr.disabled}&.${Mr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ic}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Mr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),kb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},GV=ie(br,{name:"MuiPickersDay",slot:"Root",overridesResolver:kb})(Tb),KV=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:kb})(({theme:e})=>Q({},Tb({theme:e}),{opacity:0,pointerEvents:"none"})),Si=()=>{},Eb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=Si,onBlur:b=Si,onKeyDown:m=Si,onMouseDown:v=Si,onMouseEnter:D=Si,outsideCurrentMonth:k,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,I=Ye(o,UV),F=Q({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),z=qV(F),R=Ft(),$=T.useRef(null),K=ct($,n);ln(()=>{r&&!l&&!f&&!k&&$.current.focus()},[r,l,f,k]);const G=Y=>{v(Y),k&&Y.preventDefault()},q=Y=>{l||y(a),k&&Y.currentTarget.focus(),p&&p(Y)};return k&&!S?E.jsx(KV,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:I.role}):E.jsx(GV,Q({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>D(Y,a),onClick:q,onMouseDown:G},I,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Eb.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const XV=T.memo(Eb),ZV=e=>Me("MuiPickersSlideTransition",e),Yn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),QV=["children","className","reduceAnimations","slideDirection","transKey","classes"],JV=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,ZV,t)},ej=ie(da,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function tj(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Ye(t,QV),l=JV(t),d=qr();if(r)return E.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return E.jsx(ej,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:E.jsx(Au,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const nj=e=>Me("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const oj=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],rj=["ownerState"],sj=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},nj,t)},Pb=(oa+Ic*2)*6,ij=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aj=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),lj=ie(bn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),cj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),dj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,padding:0,margin:`0 ${Ic}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),uj=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Pb}),hj=ie(tj,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Pb}),fj=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),pj=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ic}px 0`,display:"flex",justifyContent:"center"});function mj(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Ye(e,oj);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Ft(),D=Mc(m),k=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,D),C=w?.day??XV,O=pt({elementType:C,externalSlotProps:b?.day,additionalProps:Q({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Q({},t,{day:n,selected:x})}),I=Ye(O,rj),F=T.useMemo(()=>u||i(n),[u,i,n]),z=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return E.jsx(C,Q({},I,{day:n,disabled:F,autoFocus:l&&k,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:k?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function gj(e){const t=Nt({props:e,name:"MuiDayCalendar"}),n=Ft(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>E.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:D,minDate:k,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:I=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:G,timezone:q}=t,Y=Mc(q),H=sj(t),ae=to(),A=xb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:k,maxDate:x,disablePast:v,disableFuture:D,timezone:q}),M=lr(),[L,B]=uo({name:"DayCalendar",state:"hasFocus",controlled:F,default:G??!1}),[ne,oe]=T.useState(()=>l||Y),se=Te(pe=>{p||u(pe)}),j=pe=>{A(pe)||(o(pe),oe(pe),z?.(!0),B(!0))},ee=Te((pe,be)=>{switch(pe.key){case"ArrowUp":j(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":j(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const ge=n.addDays(be,ae?1:-1),Re=n.addMonths(be,ae?1:-1),Ve=Fi({utils:n,date:ge,minDate:ae?ge:n.startOfMonth(Re),maxDate:ae?n.endOfMonth(Re):ge,isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"ArrowRight":{const ge=n.addDays(be,ae?-1:1),Re=n.addMonths(be,ae?-1:1),Ve=Fi({utils:n,date:ge,minDate:ae?n.startOfMonth(Re):ge,maxDate:ae?ge:n.endOfMonth(Re),isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"Home":j(n.startOfWeek(be)),pe.preventDefault();break;case"End":j(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":j(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":j(n.addMonths(be,-1)),pe.preventDefault();break}}),J=Te((pe,be)=>j(be)),te=Te((pe,be)=>{L&&n.isSameDay(ne,be)&&z?.(!1)}),ce=n.getMonth(i),le=n.getYear(i),he=T.useMemo(()=>a.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,a]),W=`${le}-${ce}`,re=T.useMemo(()=>T.createRef(),[W]),Z=T.useMemo(()=>{const pe=n.startOfMonth(i),be=n.endOfMonth(i);return A(ne)||n.isAfterDay(ne,be)||n.isBeforeDay(ne,pe)?Fi({utils:n,date:ne,minDate:pe,maxDate:be,disablePast:v,disableFuture:D,isDateDisabled:A,timezone:q}):ne},[i,D,v,ne,A,n,q]),fe=T.useMemo(()=>{const pe=n.getWeekArray(i);let be=n.addMonths(i,1);for(;K&&pe.length<K;){const ge=n.getWeekArray(be),Re=n.isSameDay(pe[pe.length-1][0],ge[0][0]);ge.slice(Re?1:0).forEach(Ve=>{pe.length<K&&pe.push(Ve)}),be=n.addMonths(be,1)}return pe},[i,K,n]);return E.jsxs(ij,{role:"grid","aria-labelledby":R,className:H.root,children:[E.jsxs(aj,{role:"row",className:H.header,children:[$&&E.jsx(cj,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),iL(n,Y).map((pe,be)=>E.jsx(lj,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:H.weekDayLabel,children:I(pe)},be.toString()))]}),d?E.jsx(uj,{className:H.loadingContainer,children:w()}):E.jsx(hj,Q({transKey:W,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},m,{nodeRef:re,children:E.jsx(fj,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((pe,be)=>E.jsxs(pj,{role:"row",className:H.weekContainer,"aria-rowindex":be+1,children:[$&&E.jsx(dj,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:M.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((ge,Re)=>E.jsx(mj,{parentProps:t,day:ge,selectedDays:he,focusableDay:Z,onKeyDown:ee,onFocus:J,onBlur:te,onDaySelect:se,isDateDisabled:A,currentMonthNumber:ce,isViewFocused:L,"aria-colindex":Re+1},ge.toString()))]},`week-${pe[0]}`))})}))]})}function yj(e){return Me("MuiPickersMonth",e)}const nl=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),vj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],bj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},yj,o)},wj=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),Cj=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${nl.disabled}`]:t.disabled},{[`&.${nl.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${nl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Sj=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":m,slots:v,slotProps:D}=n,k=Ye(n,vj),x=T.useRef(null),S=bj(n);ln(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??Cj,O=pt({elementType:C,externalSlotProps:D?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:I=>f(I,d),onKeyDown:I=>p(I,d),onFocus:I=>y(I,d),onBlur:I=>w(I,d)},ownerState:n,className:S.monthButton});return E.jsx(wj,Q({className:Se(S.root,r),ownerState:n},k,{children:E.jsx(C,Q({},O))}))});function _j(e){return Me("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const xj=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Rj=e=>{const{classes:t}=e;return Ie({root:["root"]},_j,t)};function Tj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},r,{minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const kj=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Nc,boxSizing:"border-box"}),Db=T.forwardRef(function(t,n){const o=Tj(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:D,hasFocus:k,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:I,slotProps:F}=o,z=Ye(o,xj),{value:R,handleValueChange:$,timezone:K}=jh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:Io}),G=Mc(K),q=to(),Y=Ft(),H=T.useMemo(()=>Io.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:xo.month}),[]),ae=o,A=Rj(ae),M=T.useMemo(()=>Y.getMonth(G),[Y,G]),L=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[B,ne]=T.useState(()=>L||Y.getMonth(H)),[oe,se]=uo({name:"MonthCalendar",state:"hasFocus",controlled:k,default:v??!1}),j=Te(W=>{se(W),x&&x(W)}),ee=T.useCallback(W=>{const re=Y.startOfMonth(f&&Y.isAfter(G,y)?G:y),Z=Y.startOfMonth(u&&Y.isBefore(G,p)?G:p),fe=Y.startOfMonth(W);return Y.isBefore(fe,re)||Y.isAfter(fe,Z)?!0:b?b(fe):!1},[u,f,p,y,G,b,Y]),J=Te((W,re)=>{if(m)return;const Z=Y.setMonth(R??H,re);$(Z)}),te=Te(W=>{ee(Y.setMonth(R??H,W))||(ne(W),j(!0),D&&D(W))});T.useEffect(()=>{ne(W=>L!==null&&W!==L?L:W)},[L]);const ce=Te((W,re)=>{switch(W.key){case"ArrowUp":te((12+re-3)%12),W.preventDefault();break;case"ArrowDown":te((12+re+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),W.preventDefault();break}}),le=Te((W,re)=>{te(re)}),he=Te((W,re)=>{B===re&&j(!1)});return E.jsx(kj,Q({ref:n,className:Se(A.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},z,{children:Nh(Y,R??H).map(W=>{const re=Y.getMonth(W),Z=Y.format(W,"monthShort"),fe=Y.format(W,"month"),pe=re===L,be=d||ee(W);return E.jsx(Sj,{selected:pe,value:re,onClick:J,onKeyDown:ce,autoFocus:oe&&re===B,disabled:be,tabIndex:re===B&&!be?0:-1,onFocus:le,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:I,slotProps:F,children:Z},Z)})}))});process.env.NODE_ENV!=="production"&&(Db.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function Ej(e){return Me("MuiPickersYear",e)}const ol=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Pj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Dj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Ej,o)},Oj=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Mj=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ol.disabled}`]:t.disabled},{[`&.${ol.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ol.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ij=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:m,slotProps:v}=n,D=Ye(n,Pj),k=T.useRef(null),x=Dj(n);ln(()=>{o&&k.current?.focus()},[o]);const S=m?.yearButton??Mj,C=pt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>w(O,d)},ownerState:n,className:x.yearButton});return E.jsx(Oj,Q({className:Se(x.root,r),ownerState:n},D,{children:E.jsx(S,Q({},C))}))});function Nj(e){return Me("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const Aj=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Fj=e=>{const{classes:t}=e;return Ie({root:["root"]},Nj,t)};function Lj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const $j=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Nc,maxHeight:g$,boxSizing:"border-box",position:"relative"}),Ob=T.forwardRef(function(t,n){const o=Lj(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:D,hasFocus:k,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:I,slots:F,slotProps:z}=o,R=Ye(o,Aj),{value:$,handleValueChange:K,timezone:G}=jh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:b,valueManager:Io}),q=Mc(G),Y=to(),H=Ft(),ae=T.useMemo(()=>Io.getInitialReferenceValue({value:$,utils:H,props:o,timezone:G,referenceDate:d,granularity:xo.year}),[]),A=o,M=Fj(A),L=T.useMemo(()=>H.getYear(q),[H,q]),B=T.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=T.useState(()=>B||H.getYear(ae)),[se,j]=uo({name:"YearCalendar",state:"hasFocus",controlled:k,default:r??!1}),ee=Te(ge=>{j(ge),x&&x(ge)}),J=T.useCallback(ge=>{if(p&&H.isBeforeYear(ge,q)||f&&H.isAfterYear(ge,q)||w&&H.isBeforeYear(ge,w)||y&&H.isAfterYear(ge,y))return!0;if(!v)return!1;const Re=H.startOfYear(ge);return v(Re)},[f,p,y,w,q,v,H]),te=Te((ge,Re)=>{if(m)return;const Ve=H.setYear($??ae,Re);K(Ve)}),ce=Te(ge=>{J(H.setYear($??ae,ge))||(oe(ge),ee(!0),D?.(ge))});T.useEffect(()=>{oe(ge=>B!==null&&ge!==B?B:ge)},[B]);const le=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,W=Te((ge,Re)=>{switch(ge.key){case"ArrowUp":ce(Re-le),ge.preventDefault();break;case"ArrowDown":ce(Re+le),ge.preventDefault();break;case"ArrowLeft":ce(Re-he),ge.preventDefault();break;case"ArrowRight":ce(Re+he),ge.preventDefault();break}}),re=Te((ge,Re)=>{ce(Re)}),Z=Te((ge,Re)=>{ne===Re&&ee(!1)}),fe=T.useRef(null),pe=ct(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ge=fe.current.querySelector('[tabindex="0"]');if(!ge)return;const Re=ge.offsetHeight,Ve=ge.offsetTop,Ne=fe.current.clientHeight,Je=fe.current.scrollTop,ke=Ve+Re;Re>Ne||Ve<Je||(fe.current.scrollTop=ke-Ne/2-Re/2)},[r]);const be=H.getYearRange([w,y]);return S==="desc"&&be.reverse(),E.jsx($j,Q({ref:pe,className:Se(M.root,i),ownerState:A,role:"radiogroup","aria-labelledby":I},R,{children:be.map(ge=>{const Re=H.getYear(ge),Ve=Re===B,Ne=u||J(ge);return E.jsx(Ij,{selected:Ve,value:Re,onClick:te,onKeyDown:W,autoFocus:se&&Re===ne,disabled:Ne,tabIndex:Re===ne&&!Ne?0:-1,onFocus:re,onBlur:Z,"aria-current":L===Re?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ge,"year")},H.format(ge,"year"))})}))});process.env.NODE_ENV!=="production"&&(Ob.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Vj=e=>Me("MuiPickersCalendarHeader",e),jj=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Bj(e){return Me("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Wj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Hj=["ownerState"],zj=["ownerState"],Yj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Uj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Xm=ie(Us,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),qj=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Bj,t)},Gj=T.forwardRef(function(t,n){const o=to(),r=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:D}=r,k=Ye(r,Wj),x=r,S=qj(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:m,label:v},I=l?.previousIconButton??Xm,F=pt({elementType:I,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??Xm,R=pt({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Q({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??O$,K=pt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),G=Ye(K,Hj),q=l?.rightArrowIcon??M$,Y=pt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=Ye(Y,zj);return E.jsxs(Yj,Q({ref:n,className:Se(S.root,a),ownerState:x},k,{children:[E.jsx(I,Q({},F,{children:o?E.jsx(q,Q({},H)):E.jsx($,Q({},G))})),i?E.jsx(bn,{variant:"subtitle1",component:"span",id:D,children:i}):E.jsx(Uj,{className:S.spacer,ownerState:x}),E.jsx(z,Q({},R,{children:o?E.jsx($,Q({},G)):E.jsx(q,Q({},H))}))]}))});function Kj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function Xj(e,{disablePast:t,minDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const Zj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Qj=["ownerState"],Jj=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Vj,t)},eB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),tB=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),nB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),oB=ie(Us,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${jj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),rB=ie(D$,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Mb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:D,views:k,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,I=Ye(i,Zj),F=i,z=Jj(i),R=a?.switchViewButton??oB,$=pt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??rB,G=pt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=Ye(G,Qj),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=Kj(d,{disableFuture:f,maxDate:y,timezone:C}),A=Xj(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(k.length===1||!m||u))if(k.length===2)m(k.find(B=>B!==v)||k[0]);else{const B=k.indexOf(v)!==0?0:1;m(k[B])}};if(k.length===1&&k[0]==="year")return null;const L=r.formatByString(d,O);return E.jsxs(eB,Q({},I,{ownerState:F,className:Se(z.root,S),ref:n,children:[E.jsxs(tB,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[E.jsx(Rb,{reduceAnimations:D,transKey:L,children:E.jsx(nB,{id:x,ownerState:F,className:z.label,children:L})}),k.length>1&&!u&&E.jsx(R,Q({},$,{children:E.jsx(K,Q({},q))}))]}),E.jsx(Gr,{in:v==="day",children:E.jsx(Gj,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:A,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Mb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const sB=ie("div")({overflow:"hidden",width:Nc,maxHeight:Bh,display:"flex",flexDirection:"column",margin:"0 auto"}),iB=e=>Me("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const aB=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],lB=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},iB,t)};function cB(e,t){const n=Ft(),o=_a(),r=db(),i=Nt({props:e,name:t});return Q({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:Jn(n,i.minDate,o.minDate),maxDate:Jn(n,i.maxDate,o.maxDate)})}const dB=ie(sB,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Bh}),uB=ie(Rb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ib=T.forwardRef(function(t,n){const o=Ft(),r=sr(),i=cB(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,view:S,views:C,openTo:O,className:I,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:G,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:A,slotProps:M,loading:L,renderLoading:B,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:ee}=i,J=Ye(i,aB),{value:te,handleValueChange:ce,timezone:le}=jh({name:"DateCalendar",timezone:ee,value:d,defaultValue:u,onChange:w,valueManager:Io}),{view:he,setView:W,focusedView:re,setFocusedView:Z,goToNextView:fe,setValueAndGoToNextView:pe}=ub({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:G,onFocusedViewChange:q}),{referenceDate:be,calendarState:ge,changeFocusedDay:Re,changeMonth:Ve,handleChangeMonth:Ne,isDateDisabled:Je,onMonthSwitchingAnimationEnd:ke}=BV({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:D,disablePast:y,disableFuture:p,timezone:le}),ut=F&&te||R,Yt=F&&te||$,rt=`${r}-grid-label`,Ot=re!==null,Ut=A?.calendarHeader??Mb,Lt=pt({elementType:Ut,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ge.currentMonth,onViewChange:W,onMonthChange:(at,Zt)=>Ne({newMonth:at,direction:Zt}),minDate:ut,maxDate:Yt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:le,labelId:rt},ownerState:i}),Ue=Te(at=>{const Zt=o.startOfMonth(at),pn=o.endOfMonth(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),m?.(Zt)):(fe(),Ve(Zt)),Re(Qt,!0)}),Be=Te(at=>{const Zt=o.startOfYear(at),pn=o.endOfYear(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),b?.(Qt)):(fe(),Ve(Zt)),Re(Qt,!0)}),rn=Te(at=>ce(at&&Ll(o,at,te??be),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&Ve(te)},[te]);const dn=i,Oe=lB(dn),We={disablePast:y,disableFuture:p,maxDate:$,minDate:R},ht={disableHighlightToday:K,readOnly:z,disabled:F,timezone:le,gridLabelId:rt,slots:A,slotProps:M},nn=T.useRef(he);T.useEffect(()=>{nn.current!==he&&(re===nn.current&&Z(he,!0),nn.current=he)},[re,Z,he]);const An=T.useMemo(()=>[te],[te]);return E.jsxs(dB,Q({ref:n,className:Se(Oe.root,I),ownerState:dn},J,{children:[E.jsx(Ut,Q({},Lt,{slots:A,slotProps:M})),E.jsx(uB,{reduceAnimations:v,className:Oe.viewTransitionContainer,transKey:he,ownerState:dn,children:E.jsxs("div",{children:[he==="year"&&E.jsx(Ob,Q({},We,ht,{value:te,onChange:Be,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("year",at),yearsOrder:oe,yearsPerRow:se,referenceDate:be})),he==="month"&&E.jsx(Db,Q({},We,ht,{hasFocus:Ot,className:I,value:te,onChange:Ue,shouldDisableMonth:k,onFocusedViewChange:at=>Z("month",at),monthsPerRow:j,referenceDate:be})),he==="day"&&E.jsx(gj,Q({},ge,We,ht,{onMonthSwitchingAnimationEnd:ke,onFocusedDayChange:Re,reduceAnimations:v,selectedDays:An,onSelectedDaysChange:rn,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("day",at),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:L,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(Ib.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Os=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B})=>E.jsx(Ib,{view:e,onViewChange:t,views:n.filter(Am),focusedView:o&&Am(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B}),Nb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=ib(t,"MuiDesktopDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Ah(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Q({openPickerIcon:I$,field:qh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},oc(i.slotProps?.field,u),lb(i),{ref:n}),toolbar:Q({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=P$({props:l,valueManager:Io,valueType:"date",getOpenDialogAriaText:ob({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Nb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const hB=ie(qu)({[`& .${Ii.container}`]:{outline:0},[`& .${Ii.paper}`]:{outline:0,minWidth:Nc}}),fB=ie(Ku)({"&:first-of-type":{padding:0}});function pB(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??hB,l=r?.mobileTransition??Gr;return E.jsx(a,Q({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:E.jsx(fB,{children:t})}))}const mB=["props","getOpenDialogAriaText"],gB=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,mB);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,localeText:x}=t,S=T.useRef(null),C=sr(),O=i?.toolbar?.hidden??!1,{open:I,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=hb(Q({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=r.field,q=pt({elementType:G,externalSlotProps:i?.field,additionalProps:Q({},$,O&&{id:C},!(k||D)&&{onClick:F.onOpen,onKeyDown:UL(F.onOpen)},{readOnly:D??!0,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Q({},q.inputProps,{"aria-label":n($.value)});const Y=Q({textField:r.textField},q.slots),H=r.layout??Wh;let ae=C;O&&(m?ae=`${C}-label`:ae=void 0);const A=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:C}),mobilePaper:Q({"aria-labelledby":ae},i?.mobilePaper)}),M=ct(S,q.unstableFieldRef);return{renderPicker:()=>E.jsxs(gb,{contextValue:K,localeText:x,children:[E.jsx(G,Q({},q,{slots:Y,slotProps:A,unstableFieldRef:M})),E.jsx(pB,Q({},F,{open:I,slots:r,slotProps:A,children:E.jsx(H,Q({},z,A?.layout,{slots:r,slotProps:A,children:R()}))}))]})}},Ab=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=ib(t,"MuiMobileDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Ah(r,i,!1),slots:Q({field:qh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},oc(i.slotProps?.field,u),lb(i),{ref:n}),toolbar:Q({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=gB({props:l,valueManager:Io,valueType:"date",getOpenDialogAriaText:ob({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Ab.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const yB=["desktopModeMediaQuery"],Vl=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=qL}=o,i=Ye(o,yB);return Ag(r,{defaultMatches:!0})?E.jsx(Nb,Q({ref:n},i)):E.jsx(Ab,Q({ref:n},i))});process.env.NODE_ENV!=="production"&&(Vl.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const vu=ie(po)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),vB=({setValue:e,value:t})=>{function n(r){const i=r?.format(Yr.db)||"",a={...t,1:i===fu?js[1]:i};e(a),rr(a)}function o(r){const i=r?.format(Yr.db)||"",a={...t,2:i===fu?js[2]:i};e(a),rr(a)}return E.jsxs(Oc,{dateAdapter:Xv,children:[E.jsx(vu,{children:E.jsx(Vl,{label:ao.from,onChange:n,...gu(t[1])})}),E.jsx(vu,{children:E.jsx(Vl,{label:ao.to,onChange:o,...gu(t[2])})})]})},jd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Yr.db)||"",a={...n,1:i===fu?js[1]:i};t(a),rr(a)}return E.jsx(Oc,{dateAdapter:Xv,children:E.jsx(vu,{children:E.jsx(Vl,{label:e,onChange:o,...gu(n[1])})})})},Zm={label:"",options:[]};function bB(){const{columnId:e,table:t}=Rn,n=t?.grid;if(!n)return Zm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Zm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function wB(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const CB=ie(fc)({padding:0}),Qm={Checkbox:CB},SB=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=bB(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),rr(d)};return E.jsxs(pa,{size:"small",children:[E.jsx(ma,{id:"column-filter-multiple-select-label",children:o}),E.jsxs(ga,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:E.jsx($s,{label:o}),renderValue:a=>a.join(", "),children:[E.jsxs(Pl,{value:"All",children:[E.jsx(Qm.Checkbox,{checked:n.indexOf("All")>-1}),E.jsx(nu,{primary:"All"})]},0),r.sort(wB).map(a=>E.jsxs(Pl,{value:a,children:[E.jsx(Qm.Checkbox,{checked:n.indexOf(a)>-1}),E.jsx(nu,{primary:a})]},a))]})]})},_B=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),rr(i)}function o(r){const i={...t,2:r.target.value};e(i),rr(i)}return E.jsxs(Fe.Fragment,{children:[E.jsx(Vs,{label:ao.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),E.jsx(Vs,{label:ao.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Bd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),rr(i)}return E.jsx(Vs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},rl=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),rr(r)}return E.jsx(Vs,{label:ao.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},xB=({filterId:e,setValue:t,value:n})=>E.jsxs(Fe.Fragment,{children:[e===je.Boolean&&E.jsx(JF,{setValue:t,value:n}),e===je.TextEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextContain&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotContain&&E.jsx(rl,{setValue:t,value:n}),e===je.MultipleSelect&&E.jsx(SB,{setValue:t,value:n}),e===je.NumberEqual&&E.jsx(Bd,{label:ao.filter,setValue:t,value:n}),e===je.NumberFrom&&E.jsx(Bd,{label:ao.from,setValue:t,value:n}),e===je.NumberTo&&E.jsx(Bd,{label:ao.to,setValue:t,value:n}),e===je.NumberBetween&&E.jsx(_B,{setValue:t,value:n}),e===je.DateEqual&&E.jsx(jd,{label:ao.filter,setValue:t,value:n}),e===je.DateFrom&&E.jsx(jd,{label:ao.from,setValue:t,value:n}),e===je.DateTo&&E.jsx(jd,{label:ao.to,setValue:t,value:n}),e===je.DateBetween&&E.jsx(vB,{setValue:t,value:n})]}),RB=ie(Pl)({fontSize:"12px"}),Jm={MenuItem:RB},TB=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>E.jsxs(pa,{variant:"outlined",size:"small",children:[E.jsx(ma,{id:"reportType",children:e}),E.jsxs(ga,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&E.jsx(Jm.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>E.jsx(Jm.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),kB={id:je.DateBetween,name:"Between"},EB={id:je.DateEqual,name:"Equal"},PB={id:je.DateFrom,name:"From"},DB={id:je.DateTo,name:"To"},OB={id:je.NumberBetween,name:"Between"},MB={id:je.NumberEqual,name:"Equal"},IB={id:je.NumberFrom,name:"From"},NB={id:je.NumberTo,name:"To"},AB={id:je.TextContain,name:"Contains"},FB={id:je.TextEqual,name:"Equal"},LB={id:je.TextNotContain,name:"Does not contain"},$B={id:je.TextNotEqual,name:"Not equal"},eg=[MB,IB,NB,OB],VB={[hn.Boolean]:[],[hn.Date]:[EB,PB,DB,kB],[hn.MultipleSelect]:[],[hn.Number]:eg,[hn.NumberFormatted]:eg,[hn.Text]:[AB,LB,FB,$B]},jB=({filterId:e,setFilterId:t})=>{const n=VB[Rn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=Rn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?E.jsx(TB,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},BB=ie(po)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),WB={Wrapper:BB},HB=()=>{const[e,t]=Fe.useState(js),[n,o]=Fe.useState(je.TextContain),[r,i]=Fe.useState(!1);return qF(i),UF(r,o,t),r?E.jsxs(Fe.Fragment,{children:[E.jsx(Mh,{setIsOpened:i}),E.jsx(Ih,{id:Kv,children:E.jsxs(WB.Wrapper,{children:[E.jsx(jB,{filterId:n,setFilterId:o}),E.jsx(xB,{filterId:n,setValue:t,value:e}),E.jsx(XF,{setIsOpened:i,setValue:t,value:e})]})})]}):null},Fb="context_menu";function zB(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Fb);if(!n)return;const{x:o,y:r}=wn;Oh(n,o,r)},0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}const YB=ie("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),UB=ie("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),qB=ie("span")({backgroundColor:"#1E456F"}),cn={Ul:YB,Li:UB,Icon:qB},GB=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=wn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},KB=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link"}),"Group"]})};function XB(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const ZB=({setIsOpened:e})=>{const t=wn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,or.highlightAllColumns(o,t.id),e(!1)}return XB(t)?E.jsxs(Fe.Fragment,{children:[E.jsx(El,{}),E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},QB=({setIsOpened:e})=>{const t=wn.table,o=t?.grid?.getSelectedRows();function r(){t&&(e(!1),Uo.table=t,Uo.open=!0)}return!t?.summaryColumnIds.length||Number(o?.length)<2?null:E.jsxs(cn.Li,{onClick:r,children:[E.jsx(cn.Icon,{className:"sgi sgi-checkbox-multiple-outline"}),"Summary"]})},JB=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},eW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},tW=({setIsOpened:e})=>{function t(){const n=wn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return E.jsxs(cn.Li,{onClick:t,children:[E.jsx(cn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},nW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},oW=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=wn.table;r?.printer.print(r,e,t),n(!1)}return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-printer"}),"Print"]})},rW=({clientId:e,clientName:t})=>{const[n,o]=Fe.useState(!1);return zB(o),n?E.jsxs(Fe.Fragment,{children:[E.jsx(Mh,{setIsOpened:o}),E.jsx(Ih,{id:Fb,children:E.jsxs(cn.Ul,{children:[E.jsx(oW,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(tW,{setIsOpened:o}),E.jsx(GB,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(ZB,{setIsOpened:o}),E.jsx(JB,{setIsOpened:o}),E.jsx(KB,{setIsOpened:o}),E.jsx(nW,{setIsOpened:o}),E.jsx(eW,{setIsOpened:o}),E.jsx(QB,{setIsOpened:o})]})})]}):null},Lb="header-context-menu";function sW(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Lb);if(!n)return;const{x:o,y:r}=co;Oh(n,o,r)},0)}return co.subscribe(t),()=>{co.unsubscribe(t)}},[])}function Gh(e){const t=co.table;if(!t?.columnPicker)return;t.columnPicker.visibleColumnIds=[...e];const n=t.grid;if(!n)return;n.setColumns(t.columnPicker.initialColumns.filter(({id:r})=>e.includes(r)));const o=t.filter.args;t.filter.register(n,t.id),or.highlightAllColumns(o,t.id),t.totalCalculator?.calculate(n)}const iW=({setChecked:e})=>{function t(){const n=co.table;if(!n?.columnPicker)return;const o=n.columnPicker.initialColumns.map(({id:r})=>r);e(o),Gh(o)}return E.jsx(ko,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Check all"})},aW=({checked:e,setChecked:t})=>{function n(){const o=e.filter(r=>r==="_checkbox_selector"||r==="isEdited");t(o),Gh(o)}return E.jsx(ko,{onClick:n,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Uncheck all"})},lW=ie(ko)({display:"flex",alignItems:"center",justifyContent:"flex-start",columnGap:"0.5em",textTransform:"none",color:"#1E456F",padding:"0"}),cW=ie(fc)({padding:0}),tg={Checkbox:cW,Button:lW},dW=({checked:e,columnId:t,columnName:n,setChecked:o})=>{function r(){const i=e.indexOf(t),a=[...e];~i?a.splice(i,1):a.push(t),o(a),Gh(a)}return E.jsxs(tg.Button,{onClick:r,children:[E.jsx(tg.Checkbox,{checked:e.includes(t),size:"small"}),E.jsx(po,{children:n})]})},uW=ie(po)({color:"#1e456f",marginBottom:"0.6em",fontSize:"1rem"}),hW={Wrapper:uW},fW=()=>E.jsx(hW.Wrapper,{className:"header-context-menu-header",children:"Columns"}),pW=ie(po)({columnGap:"0.5em",display:"flex",justifyContent:"flex-end",marginTop:"0.5em"}),mW=ie(po)({maxHeight:"35em",overflowY:"auto"}),ng={ButtonsGroup:pW,ItemsGroup:mW},gW=()=>{const[e,t]=Fe.useState([]),[n,o]=Fe.useState(!1);if(sW(o),Fe.useEffect(()=>{if(!n)return;const i=co.table;i?.columnPicker&&t([...i.columnPicker.visibleColumnIds])},[n]),!n)return null;const r=co.table;return r?.columnPicker?E.jsxs(Fe.Fragment,{children:[E.jsx(Mh,{setIsOpened:o}),E.jsxs(Ih,{id:Lb,children:[E.jsx(fW,{}),E.jsx(ng.ItemsGroup,{children:r.columnPicker.initialColumns.filter(({id:i})=>i!=="_checkbox_selector"&&i!=="isEdited").map(({id:i,name:a})=>E.jsx(Fe.Fragment,{children:E.jsx(dW,{checked:e,columnId:i,columnName:a,setChecked:t})},i))}),E.jsxs(ng.ButtonsGroup,{className:"header-context-menu-footer",children:[E.jsx(iW,{setChecked:t}),E.jsx(aW,{checked:e,setChecked:t})]})]})]}):null};exports.Autocomplete=gF;exports.ColumnFilters=HB;exports.ColumnPicker=ED;exports.ColumnSorter=qv;exports.ContextMenu=rW;exports.DecoratorColumnFilter=UA;exports.DecoratorFilter=Iv;exports.DefaultHotKeys=OD;exports.DefaultPrinter=Bv;exports.DeletedRowsFilter=LN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=hn;exports.ESortType=Co;exports.FORMATTER_NUMBER=_F;exports.Filter=Mv;exports.HeaderContextMenu=gW;exports.HotKeysDecorator=mc;exports.PopupSummary=VF;exports.PreventCopying=MD;exports.RedoUndoOnly=ID;exports.Skeleton=xD;exports.SlickTable=QA;exports.SlickgridTable=VA;exports.TotalCalculator=DF;exports.WithSummary=FN;exports.WithoutHotKeys=jy;exports.columnCheckboxSelector=jA;exports.columnIsEdited=WA;exports.commitCurrentEdit=Rh;exports.copySelectedRows=Hv;exports.formatNumber=Dh;exports.formatterGroupTotals=xF;exports.getDisplayedRows=Ec;exports.getFormatterNumber=SF;exports.getNextId=Fl;exports.handleHeaderButtons=Nv;exports.headerButtons=or;exports.hotKeysCopy=kh;exports.hotKeysDelete=Wv;exports.hotKeysRedo=Eh;exports.hotKeysUndo=Ph;exports.openColumnFilter=VN;exports.openContextMenu=zv;exports.useListenIfTablesWereEdited=dF;
|