UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

11 lines 210 kB
"use strict";var Ds=Object.defineProperty;var Ss=(e,t,o)=>t in e?Ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var G=(e,t,o)=>Ss(e,typeof t!="symbol"?t+"":t,o);const v=require("react/jsx-runtime"),h=require("./ButtonBase-DSJojbNE.cjs"),se=require("./TransitionGroupContext-Zt4NoR0u.cjs"),an=require("react"),n=require("./index-kjfz41UI.cjs"),ge=require("./useThemeProps-BWsN0TEk.cjs"),bo=require("./warning-DMUNDgRg.cjs"),J=require("./generateUtilityClasses-CENS22bI.cjs"),ws=require("./useTheme-BT6SDKkk.cjs"),vs=require("./useThemeProps-JozrkyA_.cjs"),mt=require("./ownerDocument-4MViGo3k.cjs"),Ye=require("./index-D_kvDIOz.cjs"),B=require("./DefaultPropsProvider-C1g4BXET.cjs"),lt=require("./Typography-DHjq4GzQ.cjs"),z=require("./useEventCallback-BxpcFap0.cjs"),go=require("./useTheme-BrGF2Vm0.cjs"),Lt=require("./Backdrop-qOBrabpf.cjs"),Vt=require("./utils-XujN9ndp.cjs"),Fe=require("./useForkRef-CFhhTu-Q.cjs"),me=require("./useSlotProps-BVVfeURp.cjs"),it=require("./useControlled-QrrYcKxm.cjs"),$t=require("./useId-DNXtOFeX.cjs"),He=require("./createSvgIcon-CcWpa9Le.cjs"),_t=require("./IconButton-BTN16gZi.cjs"),jt=require("./useSlot-C-aMxEm0.cjs"),st=require("./useTimeout-COCrDKz-.cjs"),Cs=require("./Select-CSQfbogA.cjs"),To=require("./useFormControl-haP0iPhl.cjs"),ks=require("./capitalize-3OjkeP9i.cjs"),qe=require("./refType-DJyA--UV.cjs"),xo=require("./TextField-C9AnzUpZ.cjs"),Ms=require("./FormLabel-ByYWZh7M.cjs"),Os=require("./InputAdornment-C1r1YutO.cjs"),Es=require("./Grow-6zwoqUfO.cjs"),Is=require("./Modal-DB9K8sJI.cjs"),Rs=require("./Paper-DcVuAxq3.cjs"),Fs=require("./Popper-D5Cs38W_.cjs"),Ge=require("./Button-BP-QmmUu.cjs"),Do=require("./DialogContent-lup2v_ab.cjs"),Vs=require("./ListItem-CgWgbZ_g.cjs"),_s=require("./Chip-n1kY-Dsh.cjs"),js=require("./List-eQ4D0MvJ.cjs"),nn=require("./Dialog-C2HYr67H.cjs");function As(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const y=As(an),So=typeof window<"u"?y.useLayoutEffect:y.useEffect;function Ns(e,t,o,s,r){const[a,i]=y.useState(()=>r&&o?o(e).matches:s?s(e).matches:t);return So(()=>{if(!o)return;const c=o(e),l=()=>{i(c.matches)};return l(),c.addEventListener("change",l),()=>{c.removeEventListener("change",l)}},[e,o]),a}const Ls={...y},wo=Ls.useSyncExternalStore;function $s(e,t,o,s,r){const a=y.useCallback(()=>t,[t]),i=y.useMemo(()=>{if(r&&o)return()=>o(e).matches;if(s!==null){const{matches:d}=s(e);return()=>d}return a},[a,e,s,r,o]),[c,l]=y.useMemo(()=>{if(o===null)return[a,()=>()=>{}];const d=o(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[a,o,e]);return wo(l,c,i)}function vo(e={}){const{themeId:t}=e;return function(s,r={}){let a=ws.useTheme$1();a&&t&&(a=a[t]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=vs.getThemeProps({name:"MuiUseMediaQuery",props:r,theme:a});process.env.NODE_ENV!=="production"&&typeof s=="function"&&a===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(` `));let f=typeof s=="function"?s(a):s;f=f.replace(/^@media( ?)/m,""),f.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` `));const g=(wo!==void 0?$s:Ns)(f,c,l,u,d);return process.env.NODE_ENV!=="production"&&y.useDebugValue({query:f,match:g}),g}}vo();function Bs(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Ws(e,t){e.classList?e.classList.add(t):Bs(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Bn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ys(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Bn(e.className,t):e.setAttribute("class",Bn(e.className&&e.className.baseVal||"",t))}var qs=function(t,o){return t&&o&&o.split(" ").forEach(function(s){return Ws(t,s)})},on=function(t,o){return t&&o&&o.split(" ").forEach(function(s){return Ys(t,s)})},dn=(function(e){se._inheritsLoose(t,e);function t(){for(var s,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return s=e.call.apply(e,[this].concat(a))||this,s.appliedClasses={appear:{},enter:{},exit:{}},s.onEnter=function(c,l){var u=s.resolveArguments(c,l),d=u[0],f=u[1];s.removeClasses(d,"exit"),s.addClass(d,f?"appear":"enter","base"),s.props.onEnter&&s.props.onEnter(c,l)},s.onEntering=function(c,l){var u=s.resolveArguments(c,l),d=u[0],f=u[1],P=f?"appear":"enter";s.addClass(d,P,"active"),s.props.onEntering&&s.props.onEntering(c,l)},s.onEntered=function(c,l){var u=s.resolveArguments(c,l),d=u[0],f=u[1],P=f?"appear":"enter";s.removeClasses(d,P),s.addClass(d,P,"done"),s.props.onEntered&&s.props.onEntered(c,l)},s.onExit=function(c){var l=s.resolveArguments(c),u=l[0];s.removeClasses(u,"appear"),s.removeClasses(u,"enter"),s.addClass(u,"exit","base"),s.props.onExit&&s.props.onExit(c)},s.onExiting=function(c){var l=s.resolveArguments(c),u=l[0];s.addClass(u,"exit","active"),s.props.onExiting&&s.props.onExiting(c)},s.onExited=function(c){var l=s.resolveArguments(c),u=l[0];s.removeClasses(u,"exit"),s.addClass(u,"exit","done"),s.props.onExited&&s.props.onExited(c)},s.resolveArguments=function(c,l){return s.props.nodeRef?[s.props.nodeRef.current,c]:[c,l]},s.getClassNames=function(c){var l=s.props.classNames,u=typeof l=="string",d=u&&l?l+"-":"",f=u?""+d+c:l[c],P=u?f+"-active":l[c+"Active"],g=u?f+"-done":l[c+"Done"];return{baseClassName:f,activeClassName:P,doneClassName:g}},s}var o=t.prototype;return o.addClass=function(r,a,i){var c=this.getClassNames(a)[i+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;a==="appear"&&i==="done"&&u&&(c+=" "+u),i==="active"&&r&&Vt.forceReflow(r),c&&(this.appliedClasses[a][i]=c,qs(r,c))},o.removeClasses=function(r,a){var i=this.appliedClasses[a],c=i.base,l=i.active,u=i.done;this.appliedClasses[a]={},c&&on(r,c),l&&on(r,l),u&&on(r,u)},o.render=function(){var r=this.props;r.classNames;var a=se._objectWithoutPropertiesLoose(r,["classNames"]);return an.createElement(Vt.Transition,h._extends({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(an.Component);dn.defaultProps={classNames:""};dn.propTypes=process.env.NODE_ENV!=="production"?h._extends({},Vt.Transition.propTypes,{classNames:Vt.classNamesShape,onEnter:n.PropTypes.func,onEntering:n.PropTypes.func,onEntered:n.PropTypes.func,onExit:n.PropTypes.func,onExiting:n.PropTypes.func,onExited:n.PropTypes.func}):{};const pn=vo({themeId:J.THEME_ID});var vt={exports:{}},Us=vt.exports,Wn;function Co(){return Wn||(Wn=1,(function(e,t){(function(o,s){e.exports=s()})(Us,(function(){var o=1e3,s=6e4,r=36e5,a="millisecond",i="second",c="minute",l="hour",u="day",d="week",f="month",P="quarter",g="year",m="date",k="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var w=["th","st","nd","rd"],x=S%100;return"["+S+(w[(x-20)%10]||w[x]||w[0])+"]"}},C=function(S,w,x){var M=String(S);return!M||M.length>=w?S:""+Array(w+1-M.length).join(x)+S},E={s:C,z:function(S){var w=-S.utcOffset(),x=Math.abs(w),M=Math.floor(x/60),R=x%60;return(w<=0?"+":"-")+C(M,2,"0")+":"+C(R,2,"0")},m:function S(w,x){if(w.date()<x.date())return-S(x,w);var M=12*(x.year()-w.year())+(x.month()-w.month()),R=w.clone().add(M,f),I=x-R<0,N=w.clone().add(M+(I?-1:1),f);return+(-(M+(x-R)/(I?R-N:N-R))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:f,y:g,w:d,d:u,D:m,h:l,m:c,s:i,ms:a,Q:P}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},O="en",A={};A[O]=T;var L="$isDayjsObject",Y=function(S){return S instanceof D||!(!S||!S[L])},j=function S(w,x,M){var R;if(!w)return O;if(typeof w=="string"){var I=w.toLowerCase();A[I]&&(R=I),x&&(A[I]=x,R=I);var N=w.split("-");if(!R&&N.length>1)return S(N[0])}else{var V=w.name;A[V]=w,R=V}return!M&&R&&(O=R),R||!M&&O},_=function(S,w){if(Y(S))return S.clone();var x=typeof w=="object"?w:{};return x.date=S,x.args=arguments,new D(x)},F=E;F.l=j,F.i=Y,F.w=function(S,w){return _(S,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var D=(function(){function S(x){this.$L=j(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[L]=!0}var w=S.prototype;return w.parse=function(x){this.$d=(function(M){var R=M.date,I=M.utc;if(R===null)return new Date(NaN);if(F.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var N=R.match(p);if(N){var V=N[2]-1||0,Z=(N[7]||"0").substring(0,3);return I?new Date(Date.UTC(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Z)):new Date(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Z)}}return new Date(R)})(x),this.init()},w.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},w.$utils=function(){return F},w.isValid=function(){return this.$d.toString()!==k},w.isSame=function(x,M){var R=_(x);return this.startOf(M)<=R&&R<=this.endOf(M)},w.isAfter=function(x,M){return _(x)<this.startOf(M)},w.isBefore=function(x,M){return this.endOf(M)<_(x)},w.$g=function(x,M,R){return F.u(x)?this[M]:this.set(R,x)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(x,M){var R=this,I=!!F.u(M)||M,N=F.p(x),V=function(ne,Q){var W=F.w(R.$u?Date.UTC(R.$y,Q,ne):new Date(R.$y,Q,ne),R);return I?W:W.endOf(u)},Z=function(ne,Q){return F.w(R.toDate()[ne].apply(R.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(Q)),R)},ee=this.$W,re=this.$M,ae=this.$D,ie="set"+(this.$u?"UTC":"");switch(N){case g:return I?V(1,0):V(31,11);case f:return I?V(1,re):V(0,re+1);case d:var le=this.$locale().weekStart||0,ye=(ee<le?ee+7:ee)-le;return V(I?ae-ye:ae+(6-ye),re);case u:case m:return Z(ie+"Hours",0);case l:return Z(ie+"Minutes",1);case c:return Z(ie+"Seconds",2);case i:return Z(ie+"Milliseconds",3);default:return this.clone()}},w.endOf=function(x){return this.startOf(x,!1)},w.$set=function(x,M){var R,I=F.p(x),N="set"+(this.$u?"UTC":""),V=(R={},R[u]=N+"Date",R[m]=N+"Date",R[f]=N+"Month",R[g]=N+"FullYear",R[l]=N+"Hours",R[c]=N+"Minutes",R[i]=N+"Seconds",R[a]=N+"Milliseconds",R)[I],Z=I===u?this.$D+(M-this.$W):M;if(I===f||I===g){var ee=this.clone().set(m,1);ee.$d[V](Z),ee.init(),this.$d=ee.set(m,Math.min(this.$D,ee.daysInMonth())).$d}else V&&this.$d[V](Z);return this.init(),this},w.set=function(x,M){return this.clone().$set(x,M)},w.get=function(x){return this[F.p(x)]()},w.add=function(x,M){var R,I=this;x=Number(x);var N=F.p(M),V=function(re){var ae=_(I);return F.w(ae.date(ae.date()+Math.round(re*x)),I)};if(N===f)return this.set(f,this.$M+x);if(N===g)return this.set(g,this.$y+x);if(N===u)return V(1);if(N===d)return V(7);var Z=(R={},R[c]=s,R[l]=r,R[i]=o,R)[N]||1,ee=this.$d.getTime()+x*Z;return F.w(ee,this)},w.subtract=function(x,M){return this.add(-1*x,M)},w.format=function(x){var M=this,R=this.$locale();if(!this.isValid())return R.invalidDate||k;var I=x||"YYYY-MM-DDTHH:mm:ssZ",N=F.z(this),V=this.$H,Z=this.$m,ee=this.$M,re=R.weekdays,ae=R.months,ie=R.meridiem,le=function(Q,W,K,q){return Q&&(Q[W]||Q(M,I))||K[W].slice(0,q)},ye=function(Q){return F.s(V%12||12,Q,"0")},ne=ie||function(Q,W,K){var q=Q<12?"AM":"PM";return K?q.toLowerCase():q};return I.replace(b,(function(Q,W){return W||(function(K){switch(K){case"YY":return String(M.$y).slice(-2);case"YYYY":return F.s(M.$y,4,"0");case"M":return ee+1;case"MM":return F.s(ee+1,2,"0");case"MMM":return le(R.monthsShort,ee,ae,3);case"MMMM":return le(ae,ee);case"D":return M.$D;case"DD":return F.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return le(R.weekdaysMin,M.$W,re,2);case"ddd":return le(R.weekdaysShort,M.$W,re,3);case"dddd":return re[M.$W];case"H":return String(V);case"HH":return F.s(V,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return ne(V,Z,!0);case"A":return ne(V,Z,!1);case"m":return String(Z);case"mm":return F.s(Z,2,"0");case"s":return String(M.$s);case"ss":return F.s(M.$s,2,"0");case"SSS":return F.s(M.$ms,3,"0");case"Z":return N}return null})(Q)||N.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(x,M,R){var I,N=this,V=F.p(M),Z=_(x),ee=(Z.utcOffset()-this.utcOffset())*s,re=this-Z,ae=function(){return F.m(N,Z)};switch(V){case g:I=ae()/12;break;case f:I=ae();break;case P:I=ae()/3;break;case d:I=(re-ee)/6048e5;break;case u:I=(re-ee)/864e5;break;case l:I=re/r;break;case c:I=re/s;break;case i:I=re/o;break;default:I=re}return R?I:F.a(I)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return A[this.$L]},w.locale=function(x,M){if(!x)return this.$L;var R=this.clone(),I=j(x,M,!0);return I&&(R.$L=I),R},w.clone=function(){return F.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},S})(),$=D.prototype;return _.prototype=$,[["$ms",a],["$s",i],["$m",c],["$H",l],["$W",u],["$M",f],["$y",g],["$D",m]].forEach((function(S){$[S[1]]=function(w){return this.$g(w,S[0],S[1])}})),_.extend=function(S,w){return S.$i||(S(w,D,_),S.$i=!0),_},_.locale=j,_.isDayjs=Y,_.unix=function(S){return _(1e3*S)},_.en=A[O],_.Ls=A,_.p={},_}))})(vt)),vt.exports}var Hs=Co();const Ce=n.getDefaultExportFromCjs(Hs);var Ct={exports:{}},zs=Ct.exports,Yn;function Gs(){return Yn||(Yn=1,(function(e,t){(function(o,s){e.exports=s()})(zs,(function(){var o="week",s="year";return function(r,a,i){var c=a.prototype;c.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(s).add(1,s).date(u),f=i(this).endOf(o);if(d.isBefore(f))return 1}var P=i(this).startOf(s).date(u).startOf(o).subtract(1,"millisecond"),g=this.diff(P,o,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},c.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(Ct)),Ct.exports}var Qs=Gs();const Ks=n.getDefaultExportFromCjs(Qs);var kt={exports:{}},Zs=kt.exports,qn;function Xs(){return qn||(qn=1,(function(e,t){(function(o,s){e.exports=s()})(Zs,(function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,l={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(b){this[p]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var T=b.match(/([+-]|\d\d)/g),C=60*T[1]+(+T[2]||0);return C===0?0:T[0]==="+"?-C:C})(p)}],P=function(p){var b=l[p];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(p,b){var T,C=l.meridiem;if(C){for(var E=1;E<=24;E+=1)if(p.indexOf(C(E,0,b))>-1){T=E>12;break}}else T=p===(b?"pm":"PM");return T},m={A:[c,function(p){this.afternoon=g(p,!1)}],a:[c,function(p){this.afternoon=g(p,!0)}],Q:[r,function(p){this.month=3*(p-1)+1}],S:[r,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[c,function(p){var b=l.ordinal,T=p.match(/\d+/);if(this.day=T[0],b)for(var C=1;C<=31;C+=1)b(C).replace(/\[|\]/g,"")===p&&(this.day=C)}],w:[i,d("week")],ww:[a,d("week")],M:[i,d("month")],MM:[a,d("month")],MMM:[c,function(p){var b=P("months"),T=(P("monthsShort")||b.map((function(C){return C.slice(0,3)}))).indexOf(p)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[c,function(p){var b=P("months").indexOf(p)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function k(p){var b,T;b=p,T=l&&l.formats;for(var C=(p=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,F,D){var $=D&&D.toUpperCase();return F||T[D]||o[D]||T[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,w,x){return w||x.slice(1)}))}))).match(s),E=C.length,O=0;O<E;O+=1){var A=C[O],L=m[A],Y=L&&L[0],j=L&&L[1];C[O]=j?{regex:Y,parser:j}:A.replace(/^\[|\]$/g,"")}return function(_){for(var F={},D=0,$=0;D<E;D+=1){var S=C[D];if(typeof S=="string")$+=S.length;else{var w=S.regex,x=S.parser,M=_.slice($),R=w.exec(M)[0];x.call(F,R),_=_.replace(R,"")}}return(function(I){var N=I.afternoon;if(N!==void 0){var V=I.hours;N?V<12&&(I.hours+=12):V===12&&(I.hours=0),delete I.afternoon}})(F),F}}return function(p,b,T){T.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var C=b.prototype,E=C.parse;C.parse=function(O){var A=O.date,L=O.utc,Y=O.args;this.$u=L;var j=Y[1];if(typeof j=="string"){var _=Y[2]===!0,F=Y[3]===!0,D=_||F,$=Y[2];F&&($=Y[2]),l=this.$locale(),!_&&$&&(l=T.Ls[$]),this.$d=(function(M,R,I,N){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*M);var V=k(R)(M),Z=V.year,ee=V.month,re=V.day,ae=V.hours,ie=V.minutes,le=V.seconds,ye=V.milliseconds,ne=V.zone,Q=V.week,W=new Date,K=re||(Z||ee?1:W.getDate()),q=Z||W.getFullYear(),X=0;Z&&!ee||(X=ee>0?ee-1:W.getMonth());var pe,U=ae||0,H=ie||0,oe=le||0,be=ye||0;return ne?new Date(Date.UTC(q,X,K,U,H,oe,be+60*ne.offset*1e3)):I?new Date(Date.UTC(q,X,K,U,H,oe,be)):(pe=new Date(q,X,K,U,H,oe,be),Q&&(pe=N(pe).week(Q).toDate()),pe)}catch{return new Date("")}})(A,j,L,T),this.init(),$&&$!==!0&&(this.$L=this.locale($).$L),D&&A!=this.format(j)&&(this.$d=new Date("")),l={}}else if(j instanceof Array)for(var S=j.length,w=1;w<=S;w+=1){Y[1]=j[w-1];var x=T.apply(this,Y);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}w===S&&(this.$d=new Date(""))}else E.call(this,O)}}}))})(kt)),kt.exports}var Js=Xs();const er=n.getDefaultExportFromCjs(Js);var Mt={exports:{}},tr=Mt.exports,Un;function nr(){return Un||(Un=1,(function(e,t){(function(o,s){e.exports=s()})(tr,(function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,r,a){var i=r.prototype,c=i.format;a.en.formats=o,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,P){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(g,m,k){var p=k&&k.toUpperCase();return m||P[k]||o[k]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,T,C){return T||C.slice(1)}))}))})(l,u===void 0?{}:u);return c.call(this,d)}}}))})(Mt)),Mt.exports}var or=nr();const sr=n.getDefaultExportFromCjs(or);var Ot={exports:{}},rr=Ot.exports,Hn;function ar(){return Hn||(Hn=1,(function(e,t){(function(o,s){e.exports=s()})(rr,(function(){return function(o,s,r){s.prototype.isBetween=function(a,i,c,l){var u=r(a),d=r(i),f=(l=l||"()")[0]==="(",P=l[1]===")";return(f?this.isAfter(u,c):!this.isBefore(u,c))&&(P?this.isBefore(d,c):!this.isAfter(d,c))||(f?this.isBefore(u,c):!this.isAfter(u,c))&&(P?this.isAfter(d,c):!this.isBefore(d,c))}}}))})(Ot)),Ot.exports}var ir=ar();const lr=n.getDefaultExportFromCjs(ir);var Et={exports:{}},cr=Et.exports,zn;function ur(){return zn||(zn=1,(function(e,t){(function(o,s){e.exports=s()})(cr,(function(){return function(o,s){var r=s.prototype,a=r.format;r.format=function(i){var c=this,l=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return l.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return l.ordinal(c.week(),"W");case"w":case"ww":return u.s(c.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(c.$H===0?24:c.$H),f==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return f}}));return a.bind(this)(d)}}}))})(Et)),Et.exports}var dr=ur();const pr=n.getDefaultExportFromCjs(dr);Ce.extend(sr);Ce.extend(Ks);Ce.extend(lr);Ce.extend(pr);const fr={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},yr={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},sn=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` `),Gn=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` `);class hr{constructor({locale:t,formats:o}={}){G(this,"isMUIAdapter",!0);G(this,"isTimezoneCompatible",!0);G(this,"lib","dayjs");G(this,"escapedCharacters",{start:"[",end:"]"});G(this,"formatTokenMap",fr);G(this,"setLocaleToValue",t=>{const o=this.getCurrentLocaleCode();return o===t.locale()?t:t.locale(o)});G(this,"hasUTCPlugin",()=>typeof Ce.utc<"u");G(this,"hasTimezonePlugin",()=>typeof Ce.tz<"u");G(this,"isSame",(t,o,s)=>{const r=this.setTimezone(o,this.getTimezone(t));return t.format(s)===r.format(s)});G(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return Ce.tz.guess();default:return t}});G(this,"createSystemDate",t=>{let o;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const s=Ce.tz.guess();s==="UTC"?o=Ce(t):o=Ce.tz(t,s)}else o=Ce(t);return this.setLocaleToValue(o)});G(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(sn);return this.setLocaleToValue(Ce.utc(t))});G(this,"createTZDate",(t,o)=>{if(!this.hasUTCPlugin())throw new Error(sn);if(!this.hasTimezonePlugin())throw new Error(Gn);const s=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(Ce(t).tz(this.cleanTimezone(o),s))});G(this,"getLocaleFormats",()=>{const t=Ce.Ls,o=this.locale||"en";let s=t[o];return s===void 0&&(process.env.NODE_ENV!=="production"&&bo.warnOnce(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),s=t.en),s.formats});G(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const o=this.getTimezone(t);if(o!=="UTC"){const s=t.tz(this.cleanTimezone(o),!0);if(s.$offset===(t.$offset??0))return t;t.$offset=s.$offset}return t});G(this,"date",(t,o="default")=>t===null?null:o==="UTC"?this.createUTCDate(t):o==="system"||o==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,o));G(this,"getInvalidDate",()=>Ce(new Date("Invalid date")));G(this,"getTimezone",t=>{var o;if(this.hasTimezonePlugin()){const s=(o=t.$x)==null?void 0:o.$timezone;if(s)return s}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});G(this,"setTimezone",(t,o)=>{if(this.getTimezone(t)===o)return t;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(sn);return t.utc()}if(o==="system")return t.local();if(!this.hasTimezonePlugin()){if(o==="default")return t;throw new Error(Gn)}return this.setLocaleToValue(Ce.tz(t,this.cleanTimezone(o)))});G(this,"toJsDate",t=>t.toDate());G(this,"parse",(t,o)=>t===""?null:Ce(t,o,this.locale,!0));G(this,"getCurrentLocaleCode",()=>this.locale||"en");G(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));G(this,"expandFormat",t=>{const o=this.getLocaleFormats(),s=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,i,c)=>i||c.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,a,i)=>{const c=i&&i.toUpperCase();return a||o[i]||s(o[c])})});G(this,"isValid",t=>t==null?!1:t.isValid());G(this,"format",(t,o)=>this.formatByString(t,this.formats[o]));G(this,"formatByString",(t,o)=>this.setLocaleToValue(t).format(o));G(this,"formatNumber",t=>t);G(this,"isEqual",(t,o)=>t===null&&o===null?!0:t===null||o===null?!1:t.toDate().getTime()===o.toDate().getTime());G(this,"isSameYear",(t,o)=>this.isSame(t,o,"YYYY"));G(this,"isSameMonth",(t,o)=>this.isSame(t,o,"YYYY-MM"));G(this,"isSameDay",(t,o)=>this.isSame(t,o,"YYYY-MM-DD"));G(this,"isSameHour",(t,o)=>t.isSame(o,"hour"));G(this,"isAfter",(t,o)=>t>o);G(this,"isAfterYear",(t,o)=>this.hasUTCPlugin()?!this.isSameYear(t,o)&&t.utc()>o.utc():t.isAfter(o,"year"));G(this,"isAfterDay",(t,o)=>this.hasUTCPlugin()?!this.isSameDay(t,o)&&t.utc()>o.utc():t.isAfter(o,"day"));G(this,"isBefore",(t,o)=>t<o);G(this,"isBeforeYear",(t,o)=>this.hasUTCPlugin()?!this.isSameYear(t,o)&&t.utc()<o.utc():t.isBefore(o,"year"));G(this,"isBeforeDay",(t,o)=>this.hasUTCPlugin()?!this.isSameDay(t,o)&&t.utc()<o.utc():t.isBefore(o,"day"));G(this,"isWithinRange",(t,[o,s])=>t>=o&&t<=s);G(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));G(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));G(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));G(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));G(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));G(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));G(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));G(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));G(this,"addYears",(t,o)=>this.adjustOffset(t.add(o,"year")));G(this,"addMonths",(t,o)=>this.adjustOffset(t.add(o,"month")));G(this,"addWeeks",(t,o)=>this.adjustOffset(t.add(o,"week")));G(this,"addDays",(t,o)=>this.adjustOffset(t.add(o,"day")));G(this,"addHours",(t,o)=>this.adjustOffset(t.add(o,"hour")));G(this,"addMinutes",(t,o)=>this.adjustOffset(t.add(o,"minute")));G(this,"addSeconds",(t,o)=>this.adjustOffset(t.add(o,"second")));G(this,"getYear",t=>t.year());G(this,"getMonth",t=>t.month());G(this,"getDate",t=>t.date());G(this,"getHours",t=>t.hour());G(this,"getMinutes",t=>t.minute());G(this,"getSeconds",t=>t.second());G(this,"getMilliseconds",t=>t.millisecond());G(this,"setYear",(t,o)=>this.adjustOffset(t.set("year",o)));G(this,"setMonth",(t,o)=>this.adjustOffset(t.set("month",o)));G(this,"setDate",(t,o)=>this.adjustOffset(t.set("date",o)));G(this,"setHours",(t,o)=>this.adjustOffset(t.set("hour",o)));G(this,"setMinutes",(t,o)=>this.adjustOffset(t.set("minute",o)));G(this,"setSeconds",(t,o)=>this.adjustOffset(t.set("second",o)));G(this,"setMilliseconds",(t,o)=>this.adjustOffset(t.set("millisecond",o)));G(this,"getDaysInMonth",t=>t.daysInMonth());G(this,"getWeekArray",t=>{const o=this.startOfWeek(this.startOfMonth(t)),s=this.endOfWeek(this.endOfMonth(t));let r=0,a=o;const i=[];for(;a<s;){const c=Math.floor(r/7);i[c]=i[c]||[],i[c].push(a),a=this.addDays(a,1),r+=1}return i});G(this,"getWeekNumber",t=>t.week());G(this,"getYearRange",([t,o])=>{const s=this.startOfYear(t),r=this.endOfYear(o),a=[];let i=s;for(;this.isBefore(i,r);)a.push(i),i=this.addYears(i,1);return a});this.locale=t,this.formats=h._extends({},yr,o),Ce.extend(er)}getDayOfWeek(t){return t.day()+1}}const dt=(e,t)=>e.length!==t.length?!1:t.every(o=>e.includes(o)),mr=({openTo:e,defaultOpenTo:t,views:o,defaultViews:s})=>{const r=o??s;let a;if(e!=null)a=e;else if(r.includes(t))a=t;else if(r.length>0)a=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:a}},At=(e,t,o)=>{let s=t;return s=e.setHours(s,e.getHours(o)),s=e.setMinutes(s,e.getMinutes(o)),s=e.setSeconds(s,e.getSeconds(o)),s=e.setMilliseconds(s,e.getMilliseconds(o)),s},Pt=({date:e,disableFuture:t,disablePast:o,maxDate:s,minDate:r,isDateDisabled:a,adapter:i,timezone:c})=>{const l=At(i,i.date(void 0,c),e);o&&i.isBefore(r,l)&&(r=l),t&&i.isAfter(s,l)&&(s=l);let u=e,d=e;for(i.isBefore(e,r)&&(u=r,d=null),i.isAfter(e,s)&&(d&&(d=s),u=null);u||d;){if(u&&i.isAfter(u,s)&&(u=null),d&&i.isBefore(d,r)&&(d=null),u){if(!a(u))return u;u=i.addDays(u,1)}if(d){if(!a(d))return d;d=i.addDays(d,-1)}}return null},Pr=(e,t)=>e.isValid(t)?t:null,Qn=(e,t,o)=>t==null||!e.isValid(t)?o:t,br=(e,t,o)=>!e.isValid(t)&&t!=null&&!e.isValid(o)&&o!=null?!0:e.isEqual(t,o),fn=(e,t)=>{const s=[e.startOfYear(t)];for(;s.length<12;){const r=s[s.length-1];s.push(e.addMonths(r,1))}return s},ko=(e,t,o)=>o==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),gr=["year","month","day"],Kn=e=>gr.includes(e),yn=(e,{format:t,views:o},s)=>{if(t!=null)return t;const r=e.formats;return dt(o,["year"])?r.year:dt(o,["month"])?r.month:dt(o,["day"])?r.dayOfMonth:dt(o,["month","year"])?`${r.month} ${r.year}`:dt(o,["day","month"])?`${r.month} ${r.dayOfMonth}`:s?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},Tr=(e,t)=>{const o=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(s=>e.addDays(o,s))},xr=["hours","minutes","seconds"],Dr=e=>xr.includes(e),Zn=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Sr=(e,t)=>(o,s)=>e?t.isAfter(o,s):Zn(o,t)>Zn(s,t),Be={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},wr=e=>Math.max(...e.map(t=>Be[t.type]??1)),pt=(e,t,o)=>{if(t===Be.year)return e.startOfYear(o);if(t===Be.month)return e.startOfMonth(o);if(t===Be.day)return e.startOfDay(o);let s=o;return t<Be.minutes&&(s=e.setMinutes(s,0)),t<Be.seconds&&(s=e.setSeconds(s,0)),t<Be.milliseconds&&(s=e.setMilliseconds(s,0)),s},vr=({props:e,adapter:t,granularity:o,timezone:s,getTodayDate:r})=>{let a=r?r():pt(t,o,ko(t,s));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=pt(t,o,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=pt(t,o,e.maxDate));const i=Sr(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,a)&&(a=pt(t,o,e.disableIgnoringDatePartForTimeValidation?e.minTime:At(t,a,e.minTime))),e.maxTime!=null&&i(a,e.maxTime)&&(a=pt(t,o,e.disableIgnoringDatePartForTimeValidation?e.maxTime:At(t,a,e.maxTime))),a},hn=(e,t)=>{const o=e.formatTokenMap[t];if(o==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(` `));return typeof o=="string"?{type:o,contentType:o==="meridiem"?"letter":"digit",maxLength:void 0}:{type:o.sectionType,contentType:o.contentType,maxLength:o.maxLength}},Bt=(e,t)=>{const o=[],s=e.date(void 0,"default"),r=e.startOfWeek(s),a=e.endOfWeek(s);let i=r;for(;e.isBefore(i,a);)o.push(i),i=e.addDays(i,1);return o.map(c=>e.formatByString(c,t))},Mo=(e,t,o,s)=>{switch(o){case"month":return fn(e,e.date(void 0,t)).map(r=>e.formatByString(r,s));case"weekDay":return Bt(e,s);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(a=>e.formatByString(a,s))}default:return[]}},Xn="s",Cr=["0","1","2","3","4","5","6","7","8","9"],kr=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Xn)==="0"?Cr:Array.from({length:10}).map((s,r)=>e.formatByString(e.setSeconds(t,r),Xn))},Je=(e,t)=>{if(t[0]==="0")return e;const o=[];let s="";for(let r=0;r<e.length;r+=1){s+=e[r];const a=t.indexOf(s);a>-1&&(o.push(a.toString()),s="")}return o.join("")},mn=(e,t)=>t[0]==="0"?e:e.split("").map(o=>t[Number(o)]).join(""),Jn=(e,t)=>{const o=Je(e,t);return o!==" "&&!Number.isNaN(Number(o))},Pn=(e,t)=>Number(e).toString().padStart(t,"0"),Oo=(e,t,o,s,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.' This type of format is only supported for 'day' sections`].join(` `));if(r.type==="day"&&r.contentType==="digit-with-letter"){const i=e.setDate(o.longestMonth,t);return e.formatByString(i,r.format)}let a=t.toString();return r.hasLeadingZerosInInput&&(a=Pn(a,r.maxLength)),mn(a,s)},bn=(e,t,o)=>{let s=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(s=Number(Je(s,o)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&s.length===1&&(s=`${s}‎`),t==="input-rtl"&&(s=`⁨${s}⁩`),s},eo=(e,t,o,s)=>{if(process.env.NODE_ENV!=="production"&&hn(e,o).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,o),s)},Mr=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Eo=(e,t,o,s)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(o){case"year":return e.lib==="dayjs"&&s==="YY"?!0:e.formatByString(e.setYear(r,1),s).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),s).length>1;case"day":return e.formatByString(e.startOfMonth(r),s).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),s).length>1;case"hours":return e.formatByString(e.setHours(r,1),s).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),s).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),s).length>1;default:throw new Error("Invalid section type")}},Or=(e,t,o)=>{const s=t.some(l=>l.type==="day"),r=[],a=[];for(let l=0;l<t.length;l+=1){const u=t[l];s&&u.type==="weekDay"||(r.push(u.format),a.push(bn(u,"non-input",o)))}const i=r.join(" "),c=a.join(" ");return e.parse(c,i)},Er=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Ir=(e,t,o)=>{const r=e.map(a=>{const i=bn(a,o?"input-rtl":"input-ltr",t);return`${a.startSeparator}${i}${a.endSeparator}`}).join("");return o?`⁦${r}⁩`:r},Rr=(e,t,o)=>{const s=e.date(void 0,o),r=e.endOfYear(s),a=e.endOfDay(s),{maxDaysInMonth:i,longestMonth:c}=fn(e,s).reduce((l,u)=>{const d=e.getDaysInMonth(u);return d>l.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Mr(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:e.isValid(l)?e.getDaysInMonth(l):i,longestMonth:c}),weekDay:({format:l,contentType:u})=>{if(u==="digit"){const d=Bt(e,l).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const u=e.getHours(a);return Je(e.formatByString(e.endOfDay(s),l),t)!==u.toString()?{minimum:1,maximum:Number(Je(e.formatByString(e.startOfDay(s),l),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let to=!1;const no=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!to){const o=["empty"];["date","date-time"].includes(t)&&o.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&o.push("hours","minutes","seconds","meridiem");const s=e.find(r=>!o.includes(r.type));s&&(console.warn(`MUI X: The field component you are using is not compatible with the "${s.type}" date section.`,`The supported date sections are ["${o.join('", "')}"]\`.`),to=!0)}},Fr=(e,t,o,s)=>{switch(t.type){case"year":return e.setYear(s,e.getYear(o));case"month":return e.setMonth(s,e.getMonth(o));case"weekDay":{let r=e.formatByString(o,t.format);t.hasLeadingZerosInInput&&(r=Pn(r,t.maxLength));const a=Bt(e,t.format),i=a.indexOf(r),l=a.indexOf(t.value)-i;return e.addDays(o,l)}case"day":return e.setDate(s,e.getDate(o));case"meridiem":{const r=e.getHours(o)<12,a=e.getHours(s);return r&&a>=12?e.addHours(s,-12):!r&&a<12?e.addHours(s,12):s}case"hours":return e.setHours(s,e.getHours(o));case"minutes":return e.setMinutes(s,e.getMinutes(o));case"seconds":return e.setSeconds(s,e.getSeconds(o));default:return s}},oo={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},so=(e,t,o,s,r)=>[...o].sort((a,i)=>oo[a.type]-oo[i.type]).reduce((a,i)=>!r||i.modified?Fr(e,i,t,a):a,s),Vr=()=>navigator.userAgent.toLowerCase().includes("android"),_r=(e,t)=>{const o={};if(!t)return e.forEach((l,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;o[u]={leftIndex:d,rightIndex:f}}),{neighbors:o,startIndex:0,endIndex:e.length-1};const s={},r={};let a=0,i=0,c=e.length-1;for(;c>=0;){i=e.findIndex((l,u)=>{var d;return u>=a&&((d=l.endSeparator)==null?void 0:d.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)r[l]=c,s[c]=l,c-=1;a=i+1}return e.forEach((l,u)=>{const d=r[u],f=d===0?null:s[d-1],P=d===e.length-1?null:s[d+1];o[u]={leftIndex:f,rightIndex:P}}),{neighbors:o,startIndex:s[0],endIndex:s[e.length-1]}},ln=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const o=t.findIndex(s=>s.type===e);return o===-1?null:o}return e},jr=["value","referenceDate"],We={emptyValue:null,getTodayValue:ko,getInitialReferenceValue:e=>{let{value:t,referenceDate:o}=e,s=se._objectWithoutPropertiesLoose(e,jr);return s.adapter.isValid(t)?t:o??vr(s)},cleanValue:Pr,areValuesEqual:br,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,o)=>o==null?null:e.setTimezone(o,t)},Ar={updateReferenceValue:(e,t,o)=>e.isValid(t)?t:o,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:Er,getV6InputValueFromSections:Ir,parseValueStr:(e,t,o)=>o(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,o)=>o,clearDateSections:e=>e.map(t=>h._extends({},t,{value:""}))};function Nr(e){return J.generateUtilityClass("MuiPickersToolbar",e)}J.generateUtilityClasses("MuiPickersToolbar",["root","title","content"]);const Lr=["localeText"],Nt=y.createContext(null);process.env.NODE_ENV!=="production"&&(Nt.displayName="PickerAdapterContext");const Wt=function(t){const{localeText:o}=t,s=se._objectWithoutPropertiesLoose(t,Lr),{adapter:r,localeText:a}=y.useContext(Nt)??{adapter:void 0,localeText:void 0},i=ge.useThemeProps({props:s,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:P}=i,g=y.useMemo(()=>h._extends({},P,a,o),[P,a,o]),m=y.useMemo(()=>{if(!l)return r||null;const b=new l({locale:f,formats:u,instance:d});if(!b.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/quickstart/#installation"].join(` `));return b},[l,f,u,d,r]),k=y.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),p=y.useMemo(()=>({utils:m,adapter:m,defaultDates:k,localeText:g}),[k,m,g]);return v.jsx(Nt.Provider,{value:p,children:c})};process.env.NODE_ENV!=="production"&&(Wt.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(Wt.propTypes={adapterLocale:n.PropTypes.any,children:n.PropTypes.node,dateAdapter:n.PropTypes.func,dateFormats:n.PropTypes.shape({dayOfMonth:n.PropTypes.string,dayOfMonthFull:n.PropTypes.string,fullDate:n.PropTypes.string,fullTime12h:n.PropTypes.string,fullTime24h:n.PropTypes.string,hours12h:n.PropTypes.string,hours24h:n.PropTypes.string,keyboardDate:n.PropTypes.string,keyboardDateTime12h:n.PropTypes.string,keyboardDateTime24h:n.PropTypes.string,meridiem:n.PropTypes.string,minutes:n.PropTypes.string,month:n.PropTypes.string,monthShort:n.PropTypes.string,normalDate:n.PropTypes.string,normalDateWithWeekday:n.PropTypes.string,seconds:n.PropTypes.string,shortDate:n.PropTypes.string,weekday:n.PropTypes.string,weekdayShort:n.PropTypes.string,year:n.PropTypes.string}),dateLibInstance:n.PropTypes.any,localeText:n.PropTypes.object});const gn=y.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(gn.displayName="IsValidValueContext");function $r(){return y.useContext(gn)}const Tn=y.createContext(null);process.env.NODE_ENV!=="production"&&(Tn.displayName="PickerFieldPrivateContext");function Io(){return y.useContext(Tn)}const Yt=y.createContext(null);process.env.NODE_ENV!=="production"&&(Yt.displayName="PickerContext");const ct=()=>{const e=y.useContext(Yt);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},xn=y.createContext(null);process.env.NODE_ENV!=="production"&&(xn.displayName="PickerActionsContext");const Dn=y.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Dn.displayName="PickerPrivateContext");function Ro(e){const{contextValue:t,actionsContextValue:o,privateContextValue:s,fieldPrivateContextValue:r,isValidContextValue:a,localeText:i,children:c}=e;return v.jsx(Yt.Provider,{value:t,children:v.jsx(xn.Provider,{value:o,children:v.jsx(Dn.Provider,{value:s,children:v.jsx(Tn.Provider,{value:r,children:v.jsx(gn.Provider,{value:a,children:v.jsx(Wt,{localeText:i,children:c})})})})})})}const Oe=()=>y.useContext(Dn);function Fo(){const{ownerState:e}=Oe(),t=Ye.useRtl();return y.useMemo(()=>h._extends({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const Br=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],Wr=e=>{const t={root:["root"],title:["title"],content:["content"]};return B.composeClasses(t,Nr,e)},Yr=B.styled("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),qr=B.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>B.shouldForwardProp(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Vo=y.forwardRef(function(t,o){const s=ge.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:a,classes:i,toolbarTitle:c,hidden:l,titleId:u,landscapeDirection:d}=s,f=se._objectWithoutPropertiesLoose(s,Br),P=Fo(),g=Wr(i);return l?null:v.jsxs(Yr,h._extends({ref:o,className:J.clsx(g.root,a),ownerState:P},f,{children:[v.jsx(lt.Typography,{color:"text.secondary",variant:"overline",id:u,className:g.title,children:c}),v.jsx(qr,{className:g.content,ownerState:P,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(Vo.displayName="PickersToolbar");const Ur=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:h._extends({},e)}}}}),_o={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Hr=_o;Ur(_o);const Sn=()=>{const e=y.useContext(Nt);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(` `));if(e.adapter===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(` `));const t=y.useMemo(()=>h._extends({},Hr,e.localeText),[e.localeText]);return y.useMemo(()=>h._extends({},e,{localeText:t}),[e,t])},Pe=()=>Sn().adapter,ze=()=>Sn().localeText,cn=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],un=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],jo=["minDateTime","maxDateTime"],zr=[...cn,...un,...jo],Ao=e=>zr.reduce((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t),{}),Gr=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],No=(e,t)=>y.useMemo(()=>{const o=h._extends({},e),s={},r=a=>{o.hasOwnProperty(a)&&(s[a]=o[a],delete o[a])};return Gr.forEach(r),t==="date"?cn.forEach(r):t==="time"?un.forEach(r):t==="date-time"&&(cn.forEach(r),un.forEach(r),jo.forEach(r)),{forwardedProps:o,internalProps:s}},[e,t]),Qr=({adapter:e,format:t})=>{let o=10,s=t,r=e.expandFormat(t);for(;r!==s;)if(s=r,r=e.expandFormat(s),o-=1,o<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 component.");return r},Kr=({adapter:e,expandedFormat:t})=>{const o=[],{start:s,end:r}=e.escapedCharacters,a=new RegExp(`(\\${s}[^\\${r}]*\\${r})+`,"g");let i=null;for(;i=a.exec(t);)o.push({start:i.index,end:a.lastIndex-1});return o},Zr=(e,t,o,s)=>{switch(o.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),s).length,format:s});case"month":return t.fieldMonthPlaceholder({contentType:o.contentType,format:s});case"day":return t.fieldDayPlaceholder({format:s});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:o.contentType,format:s});case"hours":return t.fieldHoursPlaceholder({format:s});case"minutes":return t.fieldMin