@malloy-publisher/sdk 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +14 -65
  2. package/dist/{DocumentStorage-CigwNjz4.es.js → Dashboard-DnqWRijB.es.js} +23660 -23575
  3. package/dist/Dashboard-FD3-Af-_.cjs.js +136 -0
  4. package/dist/{RenderedResult-BfayOSk1.es.js → RenderedResult-6UKAHaAj.es.js} +18 -18
  5. package/dist/{RenderedResult-DpHdrFtp.cjs.js → RenderedResult-CetSzFgW.cjs.js} +1 -1
  6. package/dist/ServerProvider-BsjJvkML.cjs.js +1 -0
  7. package/dist/{ServerProvider-CfUFleYe.es.js → ServerProvider-DgRFJ43L.es.js} +983 -957
  8. package/dist/builder/index.cjs.js +50 -50
  9. package/dist/builder/index.es.js +2587 -2511
  10. package/dist/client/api.d.ts +141 -40
  11. package/dist/client/configuration.d.ts +1 -1
  12. package/dist/client/index.cjs.js +1 -1
  13. package/dist/client/index.d.ts +1 -1
  14. package/dist/client/index.es.js +62 -59
  15. package/dist/components/DashboardBuilder/malloyText.d.ts +49 -0
  16. package/dist/components/DashboardBuilder/malloyTree.d.ts +2 -18
  17. package/dist/components/DashboardBuilder/readDocument.d.ts +2 -0
  18. package/dist/components/Notebook/NotebookCell.d.ts +3 -2
  19. package/dist/components/Notebook/cellKind.d.ts +20 -0
  20. package/dist/index.cjs.js +15 -12
  21. package/dist/index.es.js +4528 -4435
  22. package/package.json +1 -1
  23. package/src/components/DashboardBuilder/malloyText.spec.ts +70 -1
  24. package/src/components/DashboardBuilder/malloyText.ts +171 -3
  25. package/src/components/DashboardBuilder/malloyTree.spec.ts +35 -0
  26. package/src/components/DashboardBuilder/malloyTree.ts +28 -4
  27. package/src/components/DashboardBuilder/readDocument.spec.ts +180 -1
  28. package/src/components/DashboardBuilder/readDocument.ts +52 -14
  29. package/src/components/DashboardBuilder/spliceDocument.spec.ts +396 -2
  30. package/src/components/DashboardBuilder/spliceDocument.ts +121 -18
  31. package/src/components/Notebook/Notebook.served.spec.tsx +175 -0
  32. package/src/components/Notebook/Notebook.spec.tsx +33 -2
  33. package/src/components/Notebook/Notebook.tsx +13 -7
  34. package/src/components/Notebook/NotebookCell.tsx +124 -63
  35. package/src/components/Notebook/cellKind.spec.ts +191 -0
  36. package/src/components/Notebook/cellKind.ts +74 -0
  37. package/src/components/Package/Package.notebooks.spec.tsx +90 -0
  38. package/src/components/Package/Package.tsx +18 -4
  39. package/dist/DocumentStorage-DvUNSOiN.cjs.js +0 -134
  40. package/dist/ServerProvider-CuYLH_Yi.cjs.js +0 -1
@@ -0,0 +1,136 @@
1
+ "use strict";var Td=Object.create;var ca=Object.defineProperty;var Id=Object.getOwnPropertyDescriptor;var Rd=Object.getOwnPropertyNames;var Od=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var Ed=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rd(t))!$d.call(e,o)&&o!==n&&ca(e,o,{get:()=>t[o],enumerable:!(r=Id(t,o))||r.enumerable});return e};var ua=(e,t,n)=>(n=e!=null?Td(Od(e)):{},Ed(t||!e||!e.__esModule?ca(n,"default",{value:e,enumerable:!0}):n,e));const m=require("react/jsx-runtime"),re=require("@mui/material"),ie=require("react"),Ge=require("./ServerProvider-BsjJvkML.cjs.js"),Tt=require("@malloydata/malloy-filter"),oi=require("@tanstack/react-query"),Ad=require("markdown-to-jsx"),Qe=require("@mui/system"),Fd=require("@emotion/styled"),Ld=require("@emotion/react"),Nd=require("@mui/icons-material"),Mr=require("react-dom");function tc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=tc(ie),jd=tc(Mr);function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var yo={exports:{}},Vd=yo.exports,da;function zd(){return da||(da=1,(function(e,t){(function(n,r){e.exports=r()})(Vd,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",b="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,P={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(D){var k=["th","st","nd","rd"],w=D%100;return"["+D+(k[(w-20)%10]||k[w]||k[0])+"]"}},S=function(D,k,w){var A=String(D);return!A||A.length>=k?D:""+Array(k+1-A.length).join(w)+D},x={s:S,z:function(D){var k=-D.utcOffset(),w=Math.abs(k),A=Math.floor(w/60),N=w%60;return(k<=0?"+":"-")+S(A,2,"0")+":"+S(N,2,"0")},m:function D(k,w){if(k.date()<w.date())return-D(w,k);var A=12*(w.year()-k.year())+(w.month()-k.month()),N=k.clone().add(A,d),L=w-N<0,_=k.clone().add(A+(L?-1:1),d);return+(-(A+(w-N)/(L?N-_:_-N))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:b,w:u,d:c,D:p,h:l,m:a,s:i,ms:s,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},T="en",M={};M[T]=P;var $="$isDayjsObject",R=function(D){return D instanceof f||!(!D||!D[$])},F=function D(k,w,A){var N;if(!k)return T;if(typeof k=="string"){var L=k.toLowerCase();M[L]&&(N=L),w&&(M[L]=w,N=L);var _=k.split("-");if(!N&&_.length>1)return D(_[0])}else{var K=k.name;M[K]=k,N=K}return!A&&N&&(T=N),N||!A&&T},E=function(D,k){if(R(D))return D.clone();var w=typeof k=="object"?k:{};return w.date=D,w.args=arguments,new f(w)},I=x;I.l=F,I.i=R,I.w=function(D,k){return E(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var f=(function(){function D(w){this.$L=F(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[$]=!0}var k=D.prototype;return k.parse=function(w){this.$d=(function(A){var N=A.date,L=A.utc;if(N===null)return new Date(NaN);if(I.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var _=N.match(y);if(_){var K=_[2]-1||0,Y=(_[7]||"0").substring(0,3);return L?new Date(Date.UTC(_[1],K,_[3]||1,_[4]||0,_[5]||0,_[6]||0,Y)):new Date(_[1],K,_[3]||1,_[4]||0,_[5]||0,_[6]||0,Y)}}return new Date(N)})(w),this.init()},k.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},k.$utils=function(){return I},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(w,A){var N=E(w);return this.startOf(A)<=N&&N<=this.endOf(A)},k.isAfter=function(w,A){return E(w)<this.startOf(A)},k.isBefore=function(w,A){return this.endOf(A)<E(w)},k.$g=function(w,A,N){return I.u(w)?this[A]:this.set(N,w)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(w,A){var N=this,L=!!I.u(A)||A,_=I.p(w),K=function(z,G){var se=I.w(N.$u?Date.UTC(N.$y,G,z):new Date(N.$y,G,z),N);return L?se:se.endOf(c)},Y=function(z,G){return I.w(N.toDate()[z].apply(N.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(G)),N)},ae=this.$W,le=this.$M,V=this.$D,q="set"+(this.$u?"UTC":"");switch(_){case b:return L?K(1,0):K(31,11);case d:return L?K(1,le):K(0,le+1);case u:var ne=this.$locale().weekStart||0,Q=(ae<ne?ae+7:ae)-ne;return K(L?V-Q:V+(6-Q),le);case c:case p:return Y(q+"Hours",0);case l:return Y(q+"Minutes",1);case a:return Y(q+"Seconds",2);case i:return Y(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(w){return this.startOf(w,!1)},k.$set=function(w,A){var N,L=I.p(w),_="set"+(this.$u?"UTC":""),K=(N={},N[c]=_+"Date",N[p]=_+"Date",N[d]=_+"Month",N[b]=_+"FullYear",N[l]=_+"Hours",N[a]=_+"Minutes",N[i]=_+"Seconds",N[s]=_+"Milliseconds",N)[L],Y=L===c?this.$D+(A-this.$W):A;if(L===d||L===b){var ae=this.clone().set(p,1);ae.$d[K](Y),ae.init(),this.$d=ae.set(p,Math.min(this.$D,ae.daysInMonth())).$d}else K&&this.$d[K](Y);return this.init(),this},k.set=function(w,A){return this.clone().$set(w,A)},k.get=function(w){return this[I.p(w)]()},k.add=function(w,A){var N,L=this;w=Number(w);var _=I.p(A),K=function(le){var V=E(L);return I.w(V.date(V.date()+Math.round(le*w)),L)};if(_===d)return this.set(d,this.$M+w);if(_===b)return this.set(b,this.$y+w);if(_===c)return K(1);if(_===u)return K(7);var Y=(N={},N[a]=r,N[l]=o,N[i]=n,N)[_]||1,ae=this.$d.getTime()+w*Y;return I.w(ae,this)},k.subtract=function(w,A){return this.add(-1*w,A)},k.format=function(w){var A=this,N=this.$locale();if(!this.isValid())return N.invalidDate||g;var L=w||"YYYY-MM-DDTHH:mm:ssZ",_=I.z(this),K=this.$H,Y=this.$m,ae=this.$M,le=N.weekdays,V=N.months,q=N.meridiem,ne=function(G,se,oe,B){return G&&(G[se]||G(A,L))||oe[se].slice(0,B)},Q=function(G){return I.s(K%12||12,G,"0")},z=q||function(G,se,oe){var B=G<12?"AM":"PM";return oe?B.toLowerCase():B};return L.replace(C,(function(G,se){return se||(function(oe){switch(oe){case"YY":return String(A.$y).slice(-2);case"YYYY":return I.s(A.$y,4,"0");case"M":return ae+1;case"MM":return I.s(ae+1,2,"0");case"MMM":return ne(N.monthsShort,ae,V,3);case"MMMM":return ne(V,ae);case"D":return A.$D;case"DD":return I.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return ne(N.weekdaysMin,A.$W,le,2);case"ddd":return ne(N.weekdaysShort,A.$W,le,3);case"dddd":return le[A.$W];case"H":return String(K);case"HH":return I.s(K,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return z(K,Y,!0);case"A":return z(K,Y,!1);case"m":return String(Y);case"mm":return I.s(Y,2,"0");case"s":return String(A.$s);case"ss":return I.s(A.$s,2,"0");case"SSS":return I.s(A.$ms,3,"0");case"Z":return _}return null})(G)||_.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(w,A,N){var L,_=this,K=I.p(A),Y=E(w),ae=(Y.utcOffset()-this.utcOffset())*r,le=this-Y,V=function(){return I.m(_,Y)};switch(K){case b:L=V()/12;break;case d:L=V();break;case h:L=V()/3;break;case u:L=(le-ae)/6048e5;break;case c:L=(le-ae)/864e5;break;case l:L=le/o;break;case a:L=le/r;break;case i:L=le/n;break;default:L=le}return N?L:I.a(L)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(w,A){if(!w)return this.$L;var N=this.clone(),L=F(w,A,!0);return L&&(N.$L=L),N},k.clone=function(){return I.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D})(),O=f.prototype;return E.prototype=O,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",d],["$y",b],["$D",p]].forEach((function(D){O[D[1]]=function(k){return this.$g(k,D[0],D[1])}})),E.extend=function(D,k){return D.$i||(D(k,f,E),D.$i=!0),E},E.locale=F,E.isDayjs=R,E.unix=function(D){return E(1e3*D)},E.en=M[T],E.Ls=M,E.p={},E}))})(yo)),yo.exports}var Wd=zd();const Ve=sn(Wd);var bo={exports:{}},_d=bo.exports,pa;function Hd(){return pa||(pa=1,(function(e,t){(function(n,r){e.exports=r()})(_d,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(s,i,a){var l=i.prototype;a.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},l.utc=function(g){var y=a(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var u=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else u.call(this)};var d=l.utcOffset;l.utcOffset=function(g,y){var C=this.$utils().u;if(C(g))return this.$u?0:C(this.$offset)?d.call(this):this.$offset;if(typeof g=="string"&&(g=(function(T){T===void 0&&(T="");var M=T.match(r);if(!M)return null;var $=(""+M[0]).match(o)||["-",0,0],R=$[0],F=60*+$[1]+ +$[2];return F===0?0:R==="+"?F:-F})(g),g===null))return this;var P=Math.abs(g)<=16?60*g:g;if(P===0)return this.utc(y);var S=this.clone();if(y)return S.$offset=P,S.$u=!1,S;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(P+x,n)).$offset=P,S.$x.$localOffset=x,S};var h=l.format;l.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,y)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var b=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var p=l.diff;l.diff=function(g,y,C){if(g&&this.$u===g.$u)return p.call(this,g,y,C);var P=this.local(),S=a(g).local();return p.call(P,S,y,C)}}}))})(bo)),bo.exports}var Ud=Hd();const si=sn(Ud);Ve.extend(si);function Dn(e){return(e??"").startsWith("filter<")}function Yd(e){const{parsed:t}=Tt.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function Qn(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function ii(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":Tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function Gd(e){if(e.trim()==="")return[];const{parsed:t}=Tt.StringFilterExpression.parse(e);return nc(t)?t.values:[e]}function qd(e){return e===void 0||e.trim()===""?!0:nc(Tt.StringFilterExpression.parse(e).parsed)}function nc(e){return e!==null&&Tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function Kd(e){return Tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function Qd(e){const t=e.trim();if(t==="")return;const{parsed:n}=Tt.NumberFilterExpression.parse(t);if(n===null||n.operator!==">="||n.not===!0||n.values?.length!==1)return;const r=Number(n.values[0]);return Number.isFinite(r)?r:void 0}function Xd(e,t){return Tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function Zd(e){const t=e.trim();if(t==="")return;const{parsed:n}=Tt.NumberFilterExpression.parse(t);if(n===null||n.operator!=="range"||n.not===!0||n.startOperator!==">="||n.endOperator!=="<=")return;const r=Number(n.startValue),o=Number(n.endValue);return Number.isFinite(r)&&Number.isFinite(o)&&r<=o?[r,o]:void 0}const To=[{key:"today",label:"Today",clause:{operator:"in",in:{moment:"today"}}},{key:"7d",label:"Last 7 days",clause:{operator:"in_last",units:"day",n:"7"}},{key:"30d",label:"Last 30 days",clause:{operator:"in_last",units:"day",n:"30"}},{key:"90d",label:"Last 90 days",clause:{operator:"in_last",units:"day",n:"90"}},{key:"12m",label:"Last 12 months",clause:{operator:"in_last",units:"month",n:"12"}}];function Jd(e){const t=To.find(n=>n.key===e);return t?Tt.TemporalFilterExpression.unparse(t.clause):void 0}function ep(e){const t=e.trim();if(t==="")return;const{parsed:n}=Tt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of To){const o=r.clause;if(o.operator===n.operator&&(o.operator==="in"&&n.operator==="in"&&n.not!==!0&&n.in.moment===o.in.moment||o.operator==="in_last"&&n.operator==="in_last"&&n.not!==!0&&n.units===o.units&&Number(n.n)===Number(o.n)))return r.key}}const tp=/^\d{4}-\d{2}-\d{2}$/;function np(e,t){const n=Ve.utc(t,"YYYY-MM-DD").add(1,"day");return Tt.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function rp(e){const t=e.trim();if(t==="")return;const{parsed:n}=Tt.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=fa(n.fromMoment),o=fa(n.toMoment);if(r===void 0||o===void 0)return;const s=Ve.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!s.isValid()||s.isBefore(Ve.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:s.format("YYYY-MM-DD")}}function fa(e){return e.moment==="literal"&&tp.test(e.literal)?e.literal:void 0}const vo="self";function ai(e){if(!e)return[];if(e.wasDimension&&!e.wasDimension())return[];const t=e.tag?.tag("drill");return t?(t.textArray("to")??[t.text("to")].filter(ma)).filter(ma):[]}function li(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function rc(e){return e.tag?.tag("drill")?.text("given")??e.name}function Gr(e){if(typeof e=="string"){const t=ii([e]);return t===""?void 0:t}if(typeof e=="boolean")return String(e);if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(e instanceof Date){const t=e.toISOString();return t.slice(0,t.indexOf("T"))}}function oc(e){return e instanceof Date?Gr(e)??"":String(e)}function sc(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=ai(t);if(n.length===0)return;const r=Gr(e.value);if(r!==void 0)return{to:n,given:rc(t),value:r,rawValue:e.value,label:oc(e.value)}}function ma(e){return typeof e=="string"&&e!==""}function ic(e,t){if(t!==void 0&&!Dn(t)){if(t==="number"){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string"||e.trim()==="")return;const n=Number(e);return Number.isFinite(n)?n:void 0}if(t==="date"||t==="timestamp"||t==="timestamptz")return e instanceof Date?e:void 0;if(t==="boolean")return typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0;if(typeof e=="string")return e.trim()===""?void 0:e;if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(typeof e=="boolean")return String(e)}return Qn(t)==="string"&&typeof e=="number"?Number.isFinite(e)?ii([String(e)]):void 0:Qn(t)==="number"?typeof e=="number"?Number.isFinite(e)?String(e):void 0:typeof e!="string"||e.trim()===""?void 0:Number.isFinite(Number(e))?e.trim():void 0:Gr(e)}function ac({declaredTypes:e,setGiven:t,documentName:n}){const r=ie.useMemo(()=>{const a=new Map;for(const l of e.keys())a.has(l.toLowerCase())||a.set(l.toLowerCase(),l);return a},[e]),o=ie.useCallback(a=>e.has(a)?a:r.get(a.toLowerCase()),[e,r]),s=ie.useCallback(a=>o(a)!==void 0,[o]),i=ie.useCallback((a,l)=>{const c=o(a);if(c===void 0){console.warn(`# drill { to=self } tried to set '${a}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const u=e.get(c),d=ic(l,u);if(d===void 0){console.warn(`Drill declined: ${JSON.stringify(l)} cannot be a value for given "${c}"`+(u?` of type ${u}`:""));return}t(c,d)},[e,n,o,t]);return{resolveGiven:o,canSelf:s,onSelf:i}}function op(e,t){if(e!=null){if(e instanceof Date)return uc(e,t);if(!Array.isArray(e))return String(e)}}function sp(e,t){return new Date(Date.UTC(e.year(),e.month(),e.date(),t?.getUTCHours()??0,t?.getUTCMinutes()??0,t?.getUTCSeconds()??0,t?.getUTCMilliseconds()??0))}const ip=/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s]+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?)?\s*(Z|[+-]\d{2}:?\d{2}|[+-]\d{2}|UTC|GMT)?$/i;function lc(e){const t=e.trim();return t===""?e:t.replace(/^(\d{4}-\d{1,2}-\d{1,2}[T\s]+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d{1,9})?)\s+(\d{2}:?\d{2}|\d{2})$/,"$1+$2")}function ap(e,t=!1){const n=lc(e);if(n==="")return;const r=ip.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,d]=r,h={year:Number(o),month:Number(s),day:Number(i),hour:Number(a??0),minute:Number(l??0),second:Number(c??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},b=Date.UTC(h.year,h.month-1,h.day,h.hour,h.minute,h.second,h.milli),p=new Date(b);if(!(p.getUTCFullYear()===h.year&&p.getUTCMonth()===h.month-1&&p.getUTCDate()===h.day&&p.getUTCHours()===h.hour&&p.getUTCMinutes()===h.minute&&p.getUTCSeconds()===h.second)||d!==void 0&&a===void 0)return;const y=lp(d);if(y===void 0)return;const C=new Date(b-y*6e4);if(!(t&&d!==void 0&&C.getUTCDate()!==h.day))return C}function lp(e){if(e===void 0)return 0;const t=e.toUpperCase();if(t==="Z"||t==="UTC"||t==="GMT")return 0;const n=/^([+-])(\d{2}):?(\d{2})?$/.exec(t);if(!n)return;const r=Number(n[3]??0);if(r>59)return;const o=Number(n[2])*60+r,s=n[1]!=="-";if(!(o>(s?840:720)))return s?o:-o}function cp(e){return!up.has(e??"")}const up=new Set(["boolean","number","date","timestamp","timestamptz"]);function cc(e,t){if(t===""&&!cp(e))return null;if(Dn(e))return t;switch(e){case"number":{const n=t.trim()===""?NaN:Number(t);return Number.isFinite(n)?n:t}case"boolean":return t==="true"?!0:t==="false"?!1:t;case"date":case"timestamp":case"timestamptz":{const n=lc(t);return ap(n,e==="date")??n}default:return t}}function ci(e,t){const n={};for(const[r,o]of e){const s=op(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function uc(e,t){const n=e.toISOString();switch(t){case"timestamptz":return n;case"timestamp":return n.slice(0,-1);default:return n.slice(0,10)}}function qr(e,t,n){const r=n?new Set(n):void 0,o={};for(const[s,i]of e)r&&!r.has(s)||i!=null&&(Array.isArray(i)||(o[s]=i instanceof Date?uc(i,t.get(s)):i));return o}function ha(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,cc(t.get(r),o));return n}function ga(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function ya(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function dp(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function ba(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function dc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=ie.useMemo(()=>ha(t??{},e),[e,JSON.stringify(t)]),a=ie.useRef(null),l=ie.useRef(null),c=ie.useRef({documentKey:o,params:n}),u=I=>I!==null&&dp(n??{},I,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!ba(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const d=c.current.params,h=JSON.stringify(t),b=JSON.stringify(d),p=ie.useMemo(()=>ha({...t??{},...d??{}},e),[e,h,b]),g=ie.useMemo(()=>JSON.stringify([o??null,ya(t),ya(d)]),[o,h,b]),[y,C]=ie.useState(null),P=y?.key===g?y:null;ie.useEffect(()=>{y!==null&&y.key!==g&&C(null)},[y,g]);const S=ie.useMemo(()=>ga(P?.draft??p,e),[P,p,e]),x=ie.useMemo(()=>ga(P?.applied??p,e),[P,p,e]),T=ie.useCallback(I=>I?.key===g?I:{key:g,draft:p,applied:p},[g,p]),M=ie.useMemo(()=>ci(x,e),[x,e]);a.current===null&&(a.current=M),ie.useEffect(()=>{r&&(ba(a.current??{},M)||(l.current=a.current,a.current=M,r(M)))},[M,r]);const $=ie.useCallback((I,f)=>{C(O=>{const D=T(O),k=new Map(D.draft);return f===null?k.delete(I):k.set(I,f),{key:D.key,draft:k,applied:s?k:D.applied}})},[s,T]),R=ie.useCallback(()=>{C(I=>({key:T(I).key,draft:i,applied:i}))},[T,i]),F=ie.useCallback(()=>{C(I=>{const f=T(I);return{key:f.key,draft:f.draft,applied:f.draft}})},[T]),E=ie.useMemo(()=>{if(s)return!1;if(S.size!==x.size)return!0;for(const[I,f]of S){const O=x.get(I);if(f instanceof Date&&O instanceof Date){if(f.getTime()!==O.getTime())return!0}else if(Array.isArray(f)&&Array.isArray(O)){if(String(f)!==String(O))return!0}else if(f!==O)return!0}return!1},[s,S,x]);return{draft:S,applied:x,setGiven:$,reset:R,apply:F,pending:E}}const pp=1e3;function pc(e){const t=e.split(".");return t[t.length-1]}function fp(e,t){return`run: ${e} -> {
2
+ group_by: ${t}
3
+ order_by: ${pc(t)} asc
4
+ limit: ${pp}
5
+ }`}function mp(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=qr(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function fc(e,t,n,r,o,s){const{apiClients:i}=Ge.useServer(),a=ie.useMemo(()=>r.filter(d=>d.name!==void 0&&(d.control==="select"||d.control==="multiselect")&&(d.suggest?.query!==void 0||d.suggest?.source!==void 0&&d.suggest?.dimension!==void 0)),[r]),l=oi.useQueries({queries:a.map(d=>{const h=mp(d,s);return{queryKey:["givenSuggest",e,t,o,n,d.name,d.suggest?.query,d.suggest?.source,d.suggest?.dimension,h===void 0?null:JSON.stringify(h)],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async()=>{const b=d.suggest??{},p=await i.models.executeQueryModel(e,t,n,b.query!==void 0?{queryName:b.query,compactJson:!0,versionId:o,givens:h}:{query:fp(b.source,b.dimension),compactJson:!0,versionId:o,givens:h});return hp(p.data.result,b.dimension===void 0?void 0:pc(b.dimension))}}})}),c=ie.useMemo(()=>{const d=new Map;return a.forEach((h,b)=>{const p=l[b]?.data;h.name&&p&&d.set(h.name,p)}),d},[a,JSON.stringify(l.map(d=>d.data))]),u=ie.useMemo(()=>{const d=new Set;return a.forEach((h,b)=>{h.name&&l[b]?.isError&&d.add(h.name)}),d},[a,l.map(d=>d.isError).join("|")]);return{options:c,isLoading:l.some(d=>d.isLoading),failed:u}}function hp(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const s of n){if(s===null||typeof s!="object")continue;const i=s,a=Object.keys(i),l=t!==void 0&&Object.prototype.hasOwnProperty.call(i,t)?t:a[0],c=l===void 0?void 0:i[l];if(c==null)continue;const u=String(c);o.has(u)||(o.add(u),r.push(u))}return r}function ui({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:d}){const h=ie.useMemo(()=>new Map(e.filter(x=>x.name!==void 0).map(x=>[x.name,x.type])),[e]),b=ie.useCallback(x=>{t&&o?.(x,Array.from(h.keys()))},[t,o,h]),p=dc({declaredTypes:h,startingValues:n,params:r,onParamsChange:t?b:void 0,documentKey:s,autorun:i}),{options:g,isLoading:y,failed:C}=fc(a,l,c,e,u,{values:p.applied,declaredTypes:h}),{canSelf:P,onSelf:S}=ac({declaredTypes:h,setGiven:p.setGiven,documentName:d});return{...p,declaredTypes:h,options:g,optionsLoading:y,optionsFailed:C,canSelf:P,onSelf:S,panel:{givens:e,values:p.draft,onChange:p.setGiven,onReset:p.reset,options:g,optionsLoading:y,optionsFailed:C,apply:i?void 0:{onApply:p.apply,pending:p.pending}}}}function Vo({error:e,context:t}){const n=e.data?.message||"Unknown Error";return m.jsxs(m.Fragment,{children:[t&&m.jsx(re.Typography,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),m.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}const va=e=>e,gp=()=>{let e=va;return{configure(t){e=t},generate(t){return e(t)},reset(){e=va}}},mc=gp();function tn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ue(e){if(typeof e!="string")throw new Error(tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xa(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var xs={exports:{}},Ss,Sa;function yp(){if(Sa)return Ss;Sa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ss=e,Ss}var Cs,Ca;function bp(){if(Ca)return Cs;Ca=1;var e=yp();function t(){}function n(){}return n.resetWarningCache=t,Cs=function(){function r(i,a,l,c,u,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Cs}var wa;function vp(){return wa||(wa=1,xs.exports=bp()()),xs.exports}var xp=vp();const U=sn(xp);function hc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hc(e))&&(r&&(r+=" "),r+=t);return r}function ve(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;l<s.length;l+=1){const c=s[l];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}var ws={exports:{}},ze={};/**
6
+ * @license React
7
+ * react-is.production.js
8
+ *
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */var Pa;function Sp(){if(Pa)return ze;Pa=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function p(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case o:case r:case l:case c:case h:return g;default:switch(g=g&&g.$$typeof,g){case i:case a:case d:case u:return g;case s:return g;default:return y}}case t:return y}}}return ze.ContextConsumer=s,ze.ContextProvider=i,ze.Element=e,ze.ForwardRef=a,ze.Fragment=n,ze.Lazy=d,ze.Memo=u,ze.Portal=t,ze.Profiler=o,ze.StrictMode=r,ze.Suspense=l,ze.SuspenseList=c,ze.isContextConsumer=function(g){return p(g)===s},ze.isContextProvider=function(g){return p(g)===i},ze.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ze.isForwardRef=function(g){return p(g)===a},ze.isFragment=function(g){return p(g)===n},ze.isLazy=function(g){return p(g)===d},ze.isMemo=function(g){return p(g)===u},ze.isPortal=function(g){return p(g)===t},ze.isProfiler=function(g){return p(g)===o},ze.isStrictMode=function(g){return p(g)===r},ze.isSuspense=function(g){return p(g)===l},ze.isSuspenseList=function(g){return p(g)===c},ze.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===l||g===c||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===i||g.$$typeof===s||g.$$typeof===a||g.$$typeof===b||g.getModuleId!==void 0)},ze.typeOf=p,ze}var ka;function Cp(){return ka||(ka=1,ws.exports=Sp()),ws.exports}var gc=Cp();function Gt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yc(e){if(v.isValidElement(e)||gc.isValidElementType(e)||!Gt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yc(e[n])}),t}function ft(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Gt(e)&&Gt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||gc.isValidElementType(t[o])?r[o]=t[o]:Gt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gt(e[o])?r[o]=ft(e[o],t[o],n):n.clone?r[o]=Gt(t[o])?yc(t[o]):t[o]:r[o]=t[o]}),r}function Or(e,t){return t?ft(e,t,{clone:!1}):e}function Ma(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function wp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Pp(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function kp(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const zo={xs:0,sm:600,md:900,lg:1200,xl:1536},Da={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zo[e]}px)`},Mp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:zo[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Da;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Da;return Object.keys(t).reduce((i,a)=>{if(wp(s.keys,a)){const l=Pp(r.containerQueries?r:Mp,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||zo).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function Dp(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function Ta(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Wo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Io(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wo(e,n)||r,t&&(o=t(o,r,e)),o}function Je(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=Wo(l,r)||{};return nn(i,a,d=>{let h=Io(c,o,d);return d===h&&typeof d=="string"&&(h=Io(c,o,`${t}${d==="default"?"":ue(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function Tp(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ip={m:"margin",p:"padding"},Rp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ia={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Op=Tp(e=>{if(e.length>2)if(Ia[e])e=Ia[e];else return[e];const[t,n]=e.split(""),r=Ip[t],o=Rp[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...di,...pi];function Kr(e,t,n,r){const o=Wo(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:()=>{}}function fi(e){return Kr(e,"spacing",8)}function Qr(e,t){return typeof t=="string"||t==null?t:e(t)}function $p(e,t){return n=>e.reduce((r,o)=>(r[o]=Qr(t,n),r),{})}function Ep(e,t,n,r){if(!t.includes(n))return null;const o=Op(n),s=$p(o,r),i=e[n];return nn(e,i,s)}function bc(e,t){const n=fi(e.theme);return Object.keys(e).map(r=>Ep(e,t,r,n)).reduce(Or,{})}function qe(e){return bc(e,di)}qe.propTypes={};qe.filterProps=di;function Ke(e){return bc(e,pi)}Ke.propTypes={};Ke.filterProps=pi;function _o(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Or(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function $t(e){return typeof e!="number"?e:`${e}px solid`}function Nt(e,t){return Je({prop:e,themeKey:"borders",transform:t})}const Ap=Nt("border",$t),Fp=Nt("borderTop",$t),Lp=Nt("borderRight",$t),Np=Nt("borderBottom",$t),jp=Nt("borderLeft",$t),Bp=Nt("borderColor"),Vp=Nt("borderTopColor"),zp=Nt("borderRightColor"),Wp=Nt("borderBottomColor"),_p=Nt("borderLeftColor"),Hp=Nt("outline",$t),Up=Nt("outlineColor"),Ho=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Kr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qr(t,r)});return nn(e,e.borderRadius,n)}return null};Ho.propTypes={};Ho.filterProps=["borderRadius"];_o(Ap,Fp,Lp,Np,jp,Bp,Vp,zp,Wp,_p,Ho,Hp,Up);const Uo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Kr(e.theme,"spacing",8),n=r=>({gap:Qr(t,r)});return nn(e,e.gap,n)}return null};Uo.propTypes={};Uo.filterProps=["gap"];const Yo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Kr(e.theme,"spacing",8),n=r=>({columnGap:Qr(t,r)});return nn(e,e.columnGap,n)}return null};Yo.propTypes={};Yo.filterProps=["columnGap"];const Go=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Kr(e.theme,"spacing",8),n=r=>({rowGap:Qr(t,r)});return nn(e,e.rowGap,n)}return null};Go.propTypes={};Go.filterProps=["rowGap"];const Yp=Je({prop:"gridColumn"}),Gp=Je({prop:"gridRow"}),qp=Je({prop:"gridAutoFlow"}),Kp=Je({prop:"gridAutoColumns"}),Qp=Je({prop:"gridAutoRows"}),Xp=Je({prop:"gridTemplateColumns"}),Zp=Je({prop:"gridTemplateRows"}),Jp=Je({prop:"gridTemplateAreas"}),ef=Je({prop:"gridArea"});_o(Uo,Yo,Go,Yp,Gp,qp,Kp,Qp,Xp,Zp,Jp,ef);function Zn(e,t){return t==="grey"?t:e}const tf=Je({prop:"color",themeKey:"palette",transform:Zn}),nf=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zn}),rf=Je({prop:"backgroundColor",themeKey:"palette",transform:Zn});_o(tf,nf,rf);function kt(e){return e<=1&&e!==0?`${e*100}%`:e}const of=Je({prop:"width",transform:kt}),mi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||zo[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:kt(n)}};return nn(e,e.maxWidth,t)}return null};mi.filterProps=["maxWidth"];const sf=Je({prop:"minWidth",transform:kt}),af=Je({prop:"height",transform:kt}),lf=Je({prop:"maxHeight",transform:kt}),cf=Je({prop:"minHeight",transform:kt});Je({prop:"size",cssProperty:"width",transform:kt});Je({prop:"size",cssProperty:"height",transform:kt});const uf=Je({prop:"boxSizing"});_o(of,mi,sf,af,lf,cf,uf);const Xr={border:{themeKey:"borders",transform:$t},borderTop:{themeKey:"borders",transform:$t},borderRight:{themeKey:"borders",transform:$t},borderBottom:{themeKey:"borders",transform:$t},borderLeft:{themeKey:"borders",transform:$t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$t},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ho},color:{themeKey:"palette",transform:Zn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zn},backgroundColor:{themeKey:"palette",transform:Zn},p:{style:Ke},pt:{style:Ke},pr:{style:Ke},pb:{style:Ke},pl:{style:Ke},px:{style:Ke},py:{style:Ke},padding:{style:Ke},paddingTop:{style:Ke},paddingRight:{style:Ke},paddingBottom:{style:Ke},paddingLeft:{style:Ke},paddingX:{style:Ke},paddingY:{style:Ke},paddingInline:{style:Ke},paddingInlineStart:{style:Ke},paddingInlineEnd:{style:Ke},paddingBlock:{style:Ke},paddingBlockStart:{style:Ke},paddingBlockEnd:{style:Ke},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Uo},rowGap:{style:Go},columnGap:{style:Yo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kt},maxWidth:{style:mi},minWidth:{transform:kt},height:{transform:kt},maxHeight:{transform:kt},minHeight:{transform:kt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function df(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pf(e,t){return typeof e=="function"?e(t):e}function ff(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Wo(o,c)||{};return d?d(i):nn(i,r,p=>{let g=Io(h,u,p);return p===g&&typeof p=="string"&&(g=Io(h,u,`${n}${p==="default"?"":ue(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Xr;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=Dp(o.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(b=>{const p=pf(c[b],o);if(p!=null)if(typeof p=="object")if(i[b])h=Or(h,e(b,p,o,i));else{const g=nn({theme:o},p,y=>({[b]:y}));df(g,p)?h[b]=t({sx:p,theme:o,nested:!0}):h=Or(h,g)}else h=Or(h,e(b,p,o,i))}),!s&&o.modularCssLayers?{"@layer sx":Ma(o,Ta(d,h))}:Ma(o,Ta(d,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const rr=ff();rr.filterProps=["sx"];const mf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Xr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function hf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=mf(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return Gt(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function gf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function hi(e,t=0,n=1){return gf(e,t,n)}function yf(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function hn(e){if(e.type)return e;if(e.charAt(0)==="#")return hn(yf(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(tn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(tn(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const bf=e=>{const t=hn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Dr=(e,t)=>{try{return bf(e)}catch{return e}};function qo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vc(e){e=hn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),qo({type:a,values:l})}function Ls(e){e=hn(e);let t=e.type==="hsl"||e.type==="hsla"?hn(vc(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vf(e,t){const n=Ls(e),r=Ls(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ro(e,t){return e=hn(e),t=hi(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qo(e)}function xn(e,t,n){try{return Ro(e,t)}catch{return e}}function Ko(e,t){if(e=hn(e),t=hi(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return qo(e)}function je(e,t,n){try{return Ko(e,t)}catch{return e}}function Qo(e,t){if(e=hn(e),t=hi(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return qo(e)}function Be(e,t,n){try{return Qo(e,t)}catch{return e}}function xc(e,t=.15){return Ls(e)>.5?Ko(e,t):Qo(e,t)}function ao(e,t,n){try{return xc(e,t)}catch{return e}}const jr={black:"#000",white:"#fff"},xf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Wn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},_n={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Hn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Un={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Sc(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:jr.white,default:jr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Cc=Sc();function wc(){return{text:{primary:jr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:jr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ns=wc();function Ra(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Qo(e.main,o):t==="dark"&&(e.dark=Ko(e.main,s)))}function Oa(e,t,n,r,o){const s=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Sf(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[700],light:Hn[400],dark:Hn[800]}}function Cf(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[500],light:Wn[300],dark:Wn[700]}}function wf(e="light"){return e==="dark"?{main:_n[500],light:_n[300],dark:_n[700]}:{main:_n[700],light:_n[400],dark:_n[800]}}function Pf(e="light"){return e==="dark"?{main:Un[400],light:Un[300],dark:Un[700]}:{main:Un[700],light:Un[500],dark:Un[900]}}function kf(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[800],light:Yn[500],dark:Yn[900]}}function Mf(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function Df(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function gi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Sf(t),a=e.secondary||Cf(t),l=e.error||wf(t),c=e.info||Pf(t),u=e.success||kf(t),d=e.warning||Mf(t);function h(y){return o?Df(y):vf(y,Ns.text.primary)>=n?Ns.text.primary:Cc.text.primary}const b=({color:y,name:C,mainShade:P=500,lightShade:S=300,darkShade:x=700})=>{if(y={...y},!y.main&&y[P]&&(y.main=y[P]),!y.hasOwnProperty("main"))throw new Error(tn(11,C?` (${C})`:"",P));if(typeof y.main!="string")throw new Error(tn(12,C?` (${C})`:"",JSON.stringify(y.main)));return o?(Oa(o,y,"light",S,r),Oa(o,y,"dark",x,r)):(Ra(y,"light",S,r),Ra(y,"dark",x,r)),y.contrastText||(y.contrastText=h(y.main)),y};let p;return t==="light"?p=Sc():t==="dark"&&(p=wc()),ft({common:{...jr},mode:t,primary:b({color:i,name:"primary"}),secondary:b({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:l,name:"error"}),warning:b({color:d,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:u,name:"success"}),grey:xf,contrastThreshold:n,getContrastText:h,augmentColor:b,tonalOffset:r,...p},s)}function Tf(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var If={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Rf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Of=/[A-Z]|^ms/g,$f=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pc=function(t){return t.charCodeAt(1)===45},$a=function(t){return t!=null&&typeof t!="boolean"},Ps=Rf(function(e){return Pc(e)?e:e.replace(Of,"-$&").toLowerCase()}),Ea=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace($f,function(r,o,s){return mn={name:o,styles:s,next:mn},o})}return If[t]!==1&&!Pc(t)&&typeof n=="number"&&n!==0?n+"px":n};function Oo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return mn={name:o.name,styles:o.styles,next:mn},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)mn={name:i.name,styles:i.styles,next:mn},i=i.next;var a=s.styles+";";return a}return Ef(e,t,n)}}var l=n;return l}function Ef(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Oo(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;$a(a)&&(r+=Ps(s)+":"+Ea(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)$a(i[l])&&(r+=Ps(s)+":"+Ea(s,i[l])+";");else{var c=Oo(e,t,i);switch(s){case"animation":case"animationName":{r+=Ps(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var Aa=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function Af(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Oo(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=Oo(n,t,e[a]),r){var l=s;o+=l[a]}Aa.lastIndex=0;for(var c="",u;(u=Aa.exec(o))!==null;)c+="-"+u[1];var d=Tf(o)+c;return{name:d,styles:o,next:mn}}function Ff(e,t){return Fd(e,t)}function Lf(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Fa=[];function Rn(e){return Fa[0]=e,Af(Fa)}const st=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Nf(e){return Object.keys(e).length===0}function kc(e=null){const t=v.useContext(Ld.ThemeContext);return!t||Nf(t)?e:t}const jf=v.createContext(),Wt=()=>v.useContext(jf)??!1;function Br(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)r[s]=i||{};else if(!i)r[s]=a;else{r[s]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;r[s][c]=Br(i[c],a[c],n)}}}else s==="className"&&n&&t.className?r.className=me(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}const Bf=v.createContext(void 0);function Vf(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Br(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Br(o,r,t.components.mergeClassNameAndStyle):r}function zf({props:e,name:t}){const n=v.useContext(Bf);return Vf({props:e,name:t,theme:{components:n}})}let La=0;function Wf(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(La+=1,n(`mui-${La}`))},[t]),r}const _f={...v},Na=_f.useId;function _t(e){if(Na!==void 0){const t=Na();return e??t}return Wf(e)}const Hf=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Uf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Hf(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,b){const p=i.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:b)-r/100}${n})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function d(h){const b=i.indexOf(h);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:d,unit:n,...o}}const Yf={borderRadius:4};function Gf(e=8,t=fi({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function qf(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function yi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Uf(n),l=Gf(o);let c=ft({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Yf,...s}},i);return c=kp(c),c.applyStyles=qf,c=t.reduce((u,d)=>ft(u,d),c),c.unstable_sxConfig={...Xr,...i?.unstable_sxConfig},c.unstable_sx=function(d){return rr({sx:d,theme:this})},c}const Kf=yi();function Qf(e=Kf){return kc(e)}const ja=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},Xf=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},Zf=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ks(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Xf(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=Zf(a,l);Object.assign(o,{[u]:d}),ja(s,a,`var(${u})`,c),ja(i,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Jf(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:h}=ks(c,t);let b=h;const p={},{[l]:g,...y}=i;if(Object.entries(y||{}).forEach(([x,T])=>{const{vars:M,css:$,varsWithDefaults:R}=ks(T,t);b=ft(b,R),p[x]={css:$,vars:M}}),g){const{css:x,vars:T,varsWithDefaults:M}=ks(g,t);b=ft(b,M),p[l]={css:x,vars:T}}function C(x,T){let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),x){if(M==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":T}};if(M)return e.defaultColorScheme===x?`:root, ${M.replace("%s",String(x))}`:M.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...u};return Object.entries(p).forEach(([,{vars:T}])=>{x=ft(x,T)}),x},generateStyleSheets:()=>{const x=[],T=e.defaultColorScheme||"light";function M(F,E){Object.keys(E).length&&x.push(typeof F=="string"?{[F]:{...E}}:F)}M(n(void 0,{...d}),d);const{[T]:$,...R}=p;if($){const{css:F}=$,E=i[T]?.palette?.mode,I=!r&&E?{colorScheme:E,...F}:{...F};M(n(T,{...I}),I)}return Object.entries(R).forEach(([F,{css:E}])=>{const I=i[F]?.palette?.mode,f=!r&&I?{colorScheme:I,...E}:{...E};M(n(F,{...f}),f)}),s&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function em(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function tm(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const nm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Se(e,t,n="Mui"){const r=nm[t];return r?`${n}-${r}`:`${mc.generate(e)}-${t}`}function rm(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function om(e){return Math.round(e*1e5)/1e5}const Ba={textTransform:"uppercase"},Va='"Roboto", "Helvetica", "Arial", sans-serif';function sm(e,t){const{fontFamily:n=Va,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,h=r/14,b=u||(y=>`${y/l*h}rem`),p=(y,C,P,S,x)=>({fontFamily:n,fontWeight:y,fontSize:b(C),lineHeight:P,...n===Va?{letterSpacing:`${om(S/C)}em`}:{},...x,...c}),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(s,48,1.167,0),h4:p(s,34,1.235,.25),h5:p(s,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(s,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(s,16,1.5,.15),body2:p(s,14,1.43,.15),button:p(i,14,1.75,.4,Ba),caption:p(s,12,1.66,.4),overline:p(s,12,2.66,1,Ba),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ft({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...g},d,{clone:!1})}const im=.2,am=.14,lm=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${im})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${am})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lm})`].join(",")}const cm=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],um={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},dm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function za(e){return`${Math.round(e)}ms`}function pm(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fm(e){const t={...um,...e.easing},n={...dm,...e.duration};return{getAutoHeightDuration:pm,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:za(i)} ${a} ${typeof l=="string"?l:za(l)}`).join(",")},...e,easing:t,duration:n}}const mm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hm(e){return Gt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Mc(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!hm(a)||i.startsWith("unstable_")?delete r[i]:Gt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
14
+
15
+ const theme = ${JSON.stringify(t,null,2)};
16
+
17
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
18
+ theme.transitions = createTransitions(theme.transitions || {});
19
+
20
+ export default theme;`}function Wa(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const gm=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function ym(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ro(t,gm(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Wa(n)})`:Qo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Wa(n)})`:Ko(t,n)}})}function js(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:i={},typography:a={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(tn(20));const d=gi({...s,colorSpace:c}),h=yi(e);let b=ft(h,{mixins:rm(h.breakpoints,r),palette:d,shadows:cm.slice(),typography:sm(d,a),transitions:fm(i),zIndex:{...mm}});return b=ft(b,u),b=t.reduce((p,g)=>ft(p,g),b),b.unstable_sxConfig={...Xr,...u?.unstable_sxConfig},b.unstable_sx=function(g){return rr({sx:g,theme:this})},b.toRuntimeSource=Mc,ym(b),b}function Bs(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const bm=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Bs(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Dc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Tc(e){return e==="dark"?bm:[]}function vm(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=gi({...t,colorSpace:o});return{palette:i,opacity:{...Dc(i.mode),...n},overlays:r||Tc(i.mode),...s}}function xm(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Sm=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Cm=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Sm(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function wm(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function Tr(e){return typeof e!="string"||!e.startsWith("hsl")?e:vc(e)}function Jt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Dr(Tr(e[t])))}function Pm(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ut=e=>{try{return e()}catch{}},km=(e="mui")=>Qe.unstable_createGetCssVar(e);function Ms(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=vm({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=js({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Dc(s),...n?.opacity},overlays:n?.overlays||Tc(s)},a}function Mm(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=xm,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),b=km(s),{[h]:p,light:g,dark:y,...C}=n,P={...C};let S=p;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(tn(21,h));let x;i&&(x="oklch");const T=Ms(x,P,S,u,h);g&&!P.light&&Ms(x,P,g,void 0,"light"),y&&!P.dark&&Ms(x,P,y,void 0,"dark");let M={defaultColorScheme:h,...T,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:P,font:{...em(T.typography),...T.font},spacing:Pm(u.spacing)};Object.keys(M.colorSchemes).forEach(I=>{const f=M.colorSchemes[I].palette,O=k=>{const w=k.split("-"),A=w[1],N=w[2];return b(k,f[A][N])};f.mode==="light"&&(X(f.common,"background","#fff"),X(f.common,"onBackground","#000")),f.mode==="dark"&&(X(f.common,"background","#000"),X(f.common,"onBackground","#fff"));function D(k,w,A){if(x){let N;return k===xn&&(N=`transparent ${((1-A)*100).toFixed(0)}%`),k===je&&(N=`#000 ${(A*100).toFixed(0)}%`),k===Be&&(N=`#fff ${(A*100).toFixed(0)}%`),`color-mix(in ${x}, ${w}, ${N})`}return k(w,A)}if(wm(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){X(f.Alert,"errorColor",D(je,f.error.light,.6)),X(f.Alert,"infoColor",D(je,f.info.light,.6)),X(f.Alert,"successColor",D(je,f.success.light,.6)),X(f.Alert,"warningColor",D(je,f.warning.light,.6)),X(f.Alert,"errorFilledBg",O("palette-error-main")),X(f.Alert,"infoFilledBg",O("palette-info-main")),X(f.Alert,"successFilledBg",O("palette-success-main")),X(f.Alert,"warningFilledBg",O("palette-warning-main")),X(f.Alert,"errorFilledColor",Ut(()=>f.getContrastText(f.error.main))),X(f.Alert,"infoFilledColor",Ut(()=>f.getContrastText(f.info.main))),X(f.Alert,"successFilledColor",Ut(()=>f.getContrastText(f.success.main))),X(f.Alert,"warningFilledColor",Ut(()=>f.getContrastText(f.warning.main))),X(f.Alert,"errorStandardBg",D(Be,f.error.light,.9)),X(f.Alert,"infoStandardBg",D(Be,f.info.light,.9)),X(f.Alert,"successStandardBg",D(Be,f.success.light,.9)),X(f.Alert,"warningStandardBg",D(Be,f.warning.light,.9)),X(f.Alert,"errorIconColor",O("palette-error-main")),X(f.Alert,"infoIconColor",O("palette-info-main")),X(f.Alert,"successIconColor",O("palette-success-main")),X(f.Alert,"warningIconColor",O("palette-warning-main")),X(f.AppBar,"defaultBg",O("palette-grey-100")),X(f.Avatar,"defaultBg",O("palette-grey-400")),X(f.Button,"inheritContainedBg",O("palette-grey-300")),X(f.Button,"inheritContainedHoverBg",O("palette-grey-A100")),X(f.Chip,"defaultBorder",O("palette-grey-400")),X(f.Chip,"defaultAvatarColor",O("palette-grey-700")),X(f.Chip,"defaultIconColor",O("palette-grey-700")),X(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),X(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),X(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),X(f.LinearProgress,"primaryBg",D(Be,f.primary.main,.62)),X(f.LinearProgress,"secondaryBg",D(Be,f.secondary.main,.62)),X(f.LinearProgress,"errorBg",D(Be,f.error.main,.62)),X(f.LinearProgress,"infoBg",D(Be,f.info.main,.62)),X(f.LinearProgress,"successBg",D(Be,f.success.main,.62)),X(f.LinearProgress,"warningBg",D(Be,f.warning.main,.62)),X(f.Skeleton,"bg",x?D(xn,f.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),X(f.Slider,"primaryTrack",D(Be,f.primary.main,.62)),X(f.Slider,"secondaryTrack",D(Be,f.secondary.main,.62)),X(f.Slider,"errorTrack",D(Be,f.error.main,.62)),X(f.Slider,"infoTrack",D(Be,f.info.main,.62)),X(f.Slider,"successTrack",D(Be,f.success.main,.62)),X(f.Slider,"warningTrack",D(Be,f.warning.main,.62));const k=x?D(je,f.background.default,.6825):ao(f.background.default,.8);X(f.SnackbarContent,"bg",k),X(f.SnackbarContent,"color",Ut(()=>x?Ns.text.primary:f.getContrastText(k))),X(f.SpeedDialAction,"fabHoverBg",ao(f.background.paper,.15)),X(f.StepConnector,"border",O("palette-grey-400")),X(f.StepContent,"border",O("palette-grey-400")),X(f.Switch,"defaultColor",O("palette-common-white")),X(f.Switch,"defaultDisabledColor",O("palette-grey-100")),X(f.Switch,"primaryDisabledColor",D(Be,f.primary.main,.62)),X(f.Switch,"secondaryDisabledColor",D(Be,f.secondary.main,.62)),X(f.Switch,"errorDisabledColor",D(Be,f.error.main,.62)),X(f.Switch,"infoDisabledColor",D(Be,f.info.main,.62)),X(f.Switch,"successDisabledColor",D(Be,f.success.main,.62)),X(f.Switch,"warningDisabledColor",D(Be,f.warning.main,.62)),X(f.TableCell,"border",D(Be,D(xn,f.divider,1),.88)),X(f.Tooltip,"bg",D(xn,f.grey[700],.92))}if(f.mode==="dark"){X(f.Alert,"errorColor",D(Be,f.error.light,.6)),X(f.Alert,"infoColor",D(Be,f.info.light,.6)),X(f.Alert,"successColor",D(Be,f.success.light,.6)),X(f.Alert,"warningColor",D(Be,f.warning.light,.6)),X(f.Alert,"errorFilledBg",O("palette-error-dark")),X(f.Alert,"infoFilledBg",O("palette-info-dark")),X(f.Alert,"successFilledBg",O("palette-success-dark")),X(f.Alert,"warningFilledBg",O("palette-warning-dark")),X(f.Alert,"errorFilledColor",Ut(()=>f.getContrastText(f.error.dark))),X(f.Alert,"infoFilledColor",Ut(()=>f.getContrastText(f.info.dark))),X(f.Alert,"successFilledColor",Ut(()=>f.getContrastText(f.success.dark))),X(f.Alert,"warningFilledColor",Ut(()=>f.getContrastText(f.warning.dark))),X(f.Alert,"errorStandardBg",D(je,f.error.light,.9)),X(f.Alert,"infoStandardBg",D(je,f.info.light,.9)),X(f.Alert,"successStandardBg",D(je,f.success.light,.9)),X(f.Alert,"warningStandardBg",D(je,f.warning.light,.9)),X(f.Alert,"errorIconColor",O("palette-error-main")),X(f.Alert,"infoIconColor",O("palette-info-main")),X(f.Alert,"successIconColor",O("palette-success-main")),X(f.Alert,"warningIconColor",O("palette-warning-main")),X(f.AppBar,"defaultBg",O("palette-grey-900")),X(f.AppBar,"darkBg",O("palette-background-paper")),X(f.AppBar,"darkColor",O("palette-text-primary")),X(f.Avatar,"defaultBg",O("palette-grey-600")),X(f.Button,"inheritContainedBg",O("palette-grey-800")),X(f.Button,"inheritContainedHoverBg",O("palette-grey-700")),X(f.Chip,"defaultBorder",O("palette-grey-700")),X(f.Chip,"defaultAvatarColor",O("palette-grey-300")),X(f.Chip,"defaultIconColor",O("palette-grey-300")),X(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),X(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),X(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),X(f.LinearProgress,"primaryBg",D(je,f.primary.main,.5)),X(f.LinearProgress,"secondaryBg",D(je,f.secondary.main,.5)),X(f.LinearProgress,"errorBg",D(je,f.error.main,.5)),X(f.LinearProgress,"infoBg",D(je,f.info.main,.5)),X(f.LinearProgress,"successBg",D(je,f.success.main,.5)),X(f.LinearProgress,"warningBg",D(je,f.warning.main,.5)),X(f.Skeleton,"bg",x?D(xn,f.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),X(f.Slider,"primaryTrack",D(je,f.primary.main,.5)),X(f.Slider,"secondaryTrack",D(je,f.secondary.main,.5)),X(f.Slider,"errorTrack",D(je,f.error.main,.5)),X(f.Slider,"infoTrack",D(je,f.info.main,.5)),X(f.Slider,"successTrack",D(je,f.success.main,.5)),X(f.Slider,"warningTrack",D(je,f.warning.main,.5));const k=x?D(Be,f.background.default,.985):ao(f.background.default,.98);X(f.SnackbarContent,"bg",k),X(f.SnackbarContent,"color",Ut(()=>x?Cc.text.primary:f.getContrastText(k))),X(f.SpeedDialAction,"fabHoverBg",ao(f.background.paper,.15)),X(f.StepConnector,"border",O("palette-grey-600")),X(f.StepContent,"border",O("palette-grey-600")),X(f.Switch,"defaultColor",O("palette-grey-300")),X(f.Switch,"defaultDisabledColor",O("palette-grey-600")),X(f.Switch,"primaryDisabledColor",D(je,f.primary.main,.55)),X(f.Switch,"secondaryDisabledColor",D(je,f.secondary.main,.55)),X(f.Switch,"errorDisabledColor",D(je,f.error.main,.55)),X(f.Switch,"infoDisabledColor",D(je,f.info.main,.55)),X(f.Switch,"successDisabledColor",D(je,f.success.main,.55)),X(f.Switch,"warningDisabledColor",D(je,f.warning.main,.55)),X(f.TableCell,"border",D(je,D(xn,f.divider,1),.68)),X(f.Tooltip,"bg",D(xn,f.grey[700],.92))}Jt(f.background,"default"),Jt(f.background,"paper"),Jt(f.common,"background"),Jt(f.common,"onBackground"),Jt(f,"divider"),Object.keys(f).forEach(k=>{const w=f[k];k!=="tonalOffset"&&w&&typeof w=="object"&&(w.main&&X(f[k],"mainChannel",Dr(Tr(w.main))),w.light&&X(f[k],"lightChannel",Dr(Tr(w.light))),w.dark&&X(f[k],"darkChannel",Dr(Tr(w.dark))),w.contrastText&&X(f[k],"contrastTextChannel",Dr(Tr(w.contrastText))),k==="text"&&(Jt(f[k],"primary"),Jt(f[k],"secondary")),k==="action"&&(w.active&&Jt(f[k],"active"),w.selected&&Jt(f[k],"selected")))})}),M=t.reduce((I,f)=>ft(I,f),M);const $={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Cm(M),enableContrastVars:i},{vars:R,generateThemeVars:F,generateStyleSheets:E}=Jf(M,$);return M.vars=R,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([I,f])=>{M[I]=f}),M.generateThemeVars=F,M.generateStyleSheets=E,M.generateSpacing=function(){return Qe.createSpacing(u.spacing,fi(this))},M.getColorSchemeSelector=tm(l),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=a,M.unstable_sxConfig={...Xr,...u?.unstable_sxConfig},M.unstable_sx=function(f){return rr({sx:f,theme:this})},M.toRuntimeSource=Mc,M}function _a(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gi({...n===!0?{}:n.palette,mode:t})})}function Ic(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...i}=e,a=s||"light",l=o?.[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return js(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=js({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},_a(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},_a(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Mm({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Xo=Ic(),dr="$$material";function Fn(){const e=Qe.useTheme(Xo);return e[dr]||e}function Dm(e){return m.jsx(Qe.GlobalStyles,{...e,defaultTheme:Xo,themeId:dr})}function Tm(e){const{variants:t,...n}=e,r={variants:t,style:Rn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Rn(o.style))}),r}const Im=yi();function Ds(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Tn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Rm(e){return e?(t,n)=>n[e]:null}function Om(e,t,n){e.theme=Am(e.theme)?n:e.theme[t]||e.theme}function xo(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>xo(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Tn(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?Tn(Rn(i),n):i}return Rc(e,r.variants,[o],n)}return r?.isProcessed?n?Tn(Rn(r.style),n):r.style:n?Tn(Rn(r),n):r}function Rc(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const i=t[s];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Tn(Rn(i.style(o)),r):i.style(o))):n.push(r?Tn(Rn(i.style),r):i.style)}return n}function $m(e={}){const{themeId:t,defaultTheme:n=Im,rootShouldForwardProp:r=Ds,slotShouldForwardProp:o=Ds}=e;function s(a){Om(a,t,n)}return(a,l={})=>{Lf(a,M=>M.filter($=>$!==rr));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:b=Rm(Lm(u)),...p}=l,g=c&&c.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=h||!1;let P=Ds;u==="Root"||u==="root"?P=r:u?P=o:Fm(a)&&(P=void 0);const S=Ff(a,{shouldForwardProp:P,label:Em(),...p}),x=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(R){return xo(R,M,R.theme.modularCssLayers?g:void 0)};if(Gt(M)){const $=Tm(M);return function(F){return $.variants?xo(F,$,F.theme.modularCssLayers?g:void 0):F.theme.modularCssLayers?Tn($.style,g):$.style}}return M},T=(...M)=>{const $=[],R=M.map(x),F=[];if($.push(s),c&&b&&F.push(function(O){const k=O.theme.components?.[c]?.styleOverrides;if(!k)return null;const w={};for(const A in k)w[A]=xo(O,k[A],O.theme.modularCssLayers?"theme":void 0);return b(O,w)}),c&&!y&&F.push(function(O){const k=O.theme?.components?.[c]?.variants;return k?Rc(O,k,[],O.theme.modularCssLayers?"theme":void 0):null}),C||F.push(rr),Array.isArray(R[0])){const f=R.shift(),O=new Array($.length).fill(""),D=new Array(F.length).fill("");let k;k=[...O,...f,...D],k.raw=[...O,...f.raw,...D],$.unshift(k)}const E=[...$,...R,...F],I=S(...E);return a.muiName&&(I.muiName=a.muiName),I};return S.withConfig&&(T.withConfig=S.withConfig),T}}function Em(e,t){return void 0}function Am(e){for(const t in e)return!1;return!0}function Fm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Oc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jt=e=>Oc(e)&&e!=="classes",W=$m({themeId:dr,defaultTheme:Xo,rootShouldForwardProp:jt});function Nm(e){return function(n){return m.jsx(Dm,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function jm(){return hf}const Re=Qe.unstable_memoTheme;function Oe(e){return zf(e)}function be(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Se(e,o,n)}),r}function Bm(e){return Se("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return ve(o,Bm,r)},zm=W("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(Re(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),$o=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...b}=r,p=v.isValidElement(o)&&o.type==="svg",g={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},y={};u||(y.viewBox=h);const C=Vm(g);return m.jsxs(zm,{as:a,className:me(C.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...y,...b,...p&&o.props,ownerState:g,children:[p?o.props.children:o,d?m.jsx("title",{children:d}):null]})});$o.muiName="SvgIcon";function ct(e,t){function n(r,o){return m.jsx($o,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=$o.muiName,v.memo(v.forwardRef(n))}function $c(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function So(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function dt(e){return e&&e.ownerDocument||document}function rn(e){return dt(e).defaultView||window}function Vs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Mt(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=v.useRef(t!==void 0),[i,a]=v.useState(n),l=s?t:i,c=v.useCallback(u=>{s||a(u)},[]);return[l,c]}function fe(e){const t=v.useRef(e);return st(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Fe(...e){const t=v.useRef(void 0),n=v.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(r);return typeof a=="function"?a:()=>{i(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Wm(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ec(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{Wm(c,a[c])&&typeof i[c]=="function"&&(l[c]=(...u)=>{i[c](...u),a[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...a}):e,c=me(i?.className,a?.className,l?.className),u=n(l,a);return{...a,...l,...u,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),s=me(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Ac=ct(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function _m({label:e,onClick:t,disabled:n}){return m.jsx(re.Button,{variant:"contained",color:"primary",startIcon:m.jsx(Ac,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Hm({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=m.jsx("span",{children:m.jsx(re.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?m.jsx(re.Tooltip,{title:o,children:a}):a}const Zo=ct(m.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"}));function Um({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,children:a}){const l=ie.useId();return m.jsxs(re.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":l,children:[m.jsxs(re.DialogTitle,{id:l,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&m.jsx(re.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:m.jsx(Zo,{fontSize:"small"})})]}),m.jsxs(re.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&m.jsx(re.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),m.jsx(re.Stack,{sx:{gap:2,pt:r?0:1},children:a})]}),i&&m.jsx(re.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function Ym({left:e,children:t}){const{theme:n}=Ge.usePublisherTheme();return m.jsxs(re.Stack,{direction:"row",sx:{position:"sticky",top:0,zIndex:5,alignItems:"center",justifyContent:"space-between",gap:1,minHeight:48,py:.5,mb:3,bgcolor:n.background,borderBottom:n.border},children:[m.jsx(re.Stack,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0,overflow:"hidden"},children:e}),m.jsx(re.Stack,{direction:"row",sx:{alignItems:"center",gap:.5,flexShrink:0,"& .MuiButton-root":{whiteSpace:"nowrap"}},children:t})]})}const Gm=ct(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"}));function Fc(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function bi(e,{enabled:t=!0}={}){const{apiClients:n}=Ge.useServer();return ds({queryKey:Fc(e),queryFn:()=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId}),enabled:t,...Ge.CHART_RESULT_QUERY_OPTIONS})}function Lc({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[s,i]=ie.useState(null),a=ie.useCallback((p,g)=>p.filter(y=>y===vo?t!==void 0&&(r?.(g)??!0):e!==void 0),[e,t,r]),l=ie.useCallback((p,g,y)=>{if(g===vo){t?.(p.given,p.rawValue);return}e?.({dashboard:g,givens:{[p.given]:p.value}},y)},[e,t]),c=ie.useCallback(p=>{if(!(!o||p.isHeader||!p.field)&&(p.field.wasDimension?.()??!1)&&Gr(p.value)!==void 0)return{field:p.field.name,rawValue:p.value,label:oc(p.value),...p.context===void 0?{}:{context:p.context}}},[o]),u=ie.useCallback(p=>{const g=sc(p),y=c(p),C=g?a(g.to,g.given):[];if(C.length===0){y&&o?.(y);return}if(C.length===1&&g){l(g,C[0],p.event);return}i({...g?{intent:g}:{},destinations:C,event:p.event,top:p.event?.clientY??0,left:p.event?.clientX??0,label:g?.label??y?.label??""})},[l,a,o,c]),d=ie.useCallback(p=>a(ai(p),rc(p)).length>0||o!==void 0&&(p.wasDimension?.()??!1),[a,o]),h=ie.useMemo(()=>({onClick:u,canDrill:d}),[u,d]),b=ie.useCallback(()=>i(null),[]);return{drill:h,drillMenu:m.jsxs(re.Menu,{open:s!==null,onClose:b,anchorReference:"anchorPosition",anchorPosition:{top:s?.top??0,left:s?.left??0},children:[m.jsx(re.ListSubheader,{sx:{lineHeight:"32px"},children:s?`${s.label} →`:""}),Array.from(new Set(s?.destinations??[])).map(p=>m.jsx(re.MenuItem,{onClick:()=>{b(),s?.intent&&l(s.intent,p,s.event)},children:p===vo?n:li(p)},p))]})}}function or({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=m.jsxs(re.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[m.jsx(re.CircularProgress,{size:t,color:n,thickness:r}),e&&m.jsx(re.Typography,{variant:i,color:"text.secondary",children:e})]});return o?m.jsx(re.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}const Nc=ct(m.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));function jc({sx:e,...t}){const{theme:n}=Ge.usePublisherTheme();return m.jsx(re.IconButton,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const qm=new Set(["warn","error"]);function Km(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!qm.has(r.severity??"")||(r.severity==="error"&&(n=!0),t.includes(r.message)||t.push(r.message));if(t.length)return{severity:n?"error":"warn",title:t.join(`
21
+ `)}}const Qm=new Set(["bar","line","chart","scatter_chart"]),Xm=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function Zm(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":Qm.has(e)?"container":"content"}function Jm(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&Xm.has(e)}function eh(e){return e==="dashboard"?3:2}function Bc(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function th(e,t){const n=Bc(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const Vc=400,nh=700,rh=600,oh=800,zc=400,zs=2e3;function Wc(e){return e===void 0?zs:Math.min(e,zs)}function _c({sizing:e,contentHeight:t,maxHeight:n}){return e==="container"?n??zc:t===void 0||t<=0?Wc(n):n===void 0?t:Math.min(n,t)}const sh=ie.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-CetSzFgW.cjs.js")).then(e=>e.RenderedResult$1));function Hc({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o}){const s=ie.useRef(null),[i,a]=ie.useState(void 0),[l,c]=ie.useState(void 0),[u,d]=ie.useState(!1),h=Km(r);if(!e)return null;if(n>0&&e.length>n&&!u)return m.jsxs(re.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[m.jsx(Nd.Warning,{sx:{fontSize:48,color:"#757575"}}),m.jsx(re.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),m.jsx(re.Button,{variant:"contained",color:"primary",onClick:()=>d(!0),children:"Proceed"})]});const p=m.jsx(or,{text:"Loading...",centered:!0,size:32}),g=_c({sizing:i,contentHeight:l,maxHeight:t});return m.jsxs(re.Box,{ref:s,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden"},children:[e&&m.jsx(ie.Suspense,{fallback:p,children:m.jsx(sh,{result:e,height:g,onSizeChange:c,onSizing:a,drill:o})}),h&&m.jsx(re.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:m.jsx(re.Tooltip,{title:h.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:m.jsx(jc,{"aria-label":"Render tag warnings",children:m.jsx(Nc,{fontSize:"small",color:h.severity==="error"?"error":"warning"})})})})]})}function vi({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:s,transform:i}){const{data:a,isSuccess:l,isError:c,error:u}=e,d=a?.data.result,h=ie.useMemo(()=>d!==void 0&&i?i(d):d,[d,i]);return c?m.jsx(re.Box,{sx:{p:2},children:m.jsx(Vo,{context:t,error:u})}):l?m.jsx(Hc,{result:h,maxHeight:r,maxResultSize:o,renderLogs:a.data.renderLogs,drill:s}):m.jsx(or,{text:n})}const ih=new Set(["bar_chart","line_chart","scatter_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),ah={value:`# big_value
22
+ `},lh=/^#\(malloy\)[\s\S]*\bcalculation\b/;function ch(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&lh.test(t.value.trim())):!1}function uh(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(ch))return!1;const n=e.data;return n?n.kind==="record_cell"?!0:n.kind==="array_cell"&&Array.isArray(n.array_value)&&n.array_value.length===1:!1}function dh(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=n.slice(1).replace(/"(?:[^"\\]|\\.)*"/g,'""');for(const o of r.split(/[\s{}=.,[\]]+/))if(ih.has(o))return!0}return!1}function ph(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!uh(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return dh(r)?e:JSON.stringify({...t,annotations:[ah,...n]})}const xi=20,fh={radius:"8px",padding:`${xi}px`};function mh(e,t=fh){return{"--malloy-render--font-family":e.font.family,"--malloy-render--table-font-size":`${e.font.size}px`,"--malloy-render--table-header-color":e.tableHeader,"--malloy-render--table-body-color":e.tableBody,"--malloy-render--table-border":e.border,"--malloy-render--table-pinned-border":e.pinnedBorder,"--malloy-render--tile-background":e.tile,"--publisher-dashboard-root":e.dashboardRoot,"--malloy-render--label-color":e.tileTitle,"--malloy-render--value-color":e.valueColor,"--publisher-drill-link":e.drillLink,"--publisher-dashboard-card-radius":t.radius,"--publisher-dashboard-card-padding":t.padding,"--publisher-dashboard-card-border":e.cardBorder}}function Uc({borderless:e=!1,sx:t,children:n}){const{theme:r}=Ge.usePublisherTheme();return m.jsx(re.Paper,{elevation:0,sx:[{border:e?"none":r.cardBorder,borderRadius:e?0:1,background:e?"none":r.tile,overflow:"hidden",minWidth:0,minHeight:120,p:e?"12px 0":`${xi}px`},...Array.isArray(t)?t:[t]],children:n})}function Yc({title:e,subtitle:t,tooltip:n,action:r}){const{theme:o}=Ge.usePublisherTheme();return m.jsxs(re.Box,{sx:{pb:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[m.jsxs(re.Box,{sx:{minWidth:0,flex:1},children:[m.jsx(re.Typography,{variant:"subtitle2",sx:{fontWeight:500,color:o.tileTitle,fontFamily:o.font.family},title:n,children:e}),t!==void 0&&m.jsx(re.Typography,{variant:"caption",sx:{display:"block",color:o.tileTitle,fontFamily:o.font.family,opacity:.8},children:t})]}),r]})}function Ws(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?li(t):e}function _s({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,label:i,subtitle:a,borderless:l,givens:c,declaredTypes:u,givenNames:d,height:h,maxResultSize:b,drill:p,onExplore:g}){const{theme:y}=Ge.usePublisherTheme(),C=bi({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?`run: ${s}`:void 0,givens:qr(c,u,d)});return m.jsxs(Uc,{borderless:l,sx:{"& .publisher-tile-explore":{opacity:0,transition:"opacity 120ms"},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&m.jsx(Yc,{title:i??Ws(s),subtitle:a,tooltip:s,action:g&&m.jsx(re.Tooltip,{title:"Explore from here",children:m.jsx(re.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${i??Ws(s)}`,onClick:g,sx:{mt:-.5,mr:-.5,color:y.tileTitle},children:m.jsx(Gm,{fontSize:"small"})})})}),m.jsx(vi,{state:C,context:s??o??r,maxHeight:h,maxResultSize:b,drill:p,transform:s!==void 0?ph:void 0})]})}const Zr=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const s=r[o];s==="environments"?n.environmentName=decodeURI(r[o+1])||void 0:s==="packages"?n.packageName=decodeURI(r[o+1])||void 0:s==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:s==="models"&&(n.modelPath=decodeURI(r.slice(o+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.environmentName)throw new Error(`Failed to parse resource URI: ${e}`);return n},Gc=e=>{if(!e.environmentName)throw new Error(`Failed to encode resource URI, missing environment name: ${e}`);let t=`publisher://environments/${e.environmentName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t},hh=/^(https?|mailto|tel):/i,gh=/^[a-z][a-z0-9+.-]*:/i;function yh({href:e,title:t,children:n,context:r}){const o=!!e&&gh.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const d=o&&!hh.test(e??"");return m.jsx("a",{href:d?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const i=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",a=new URL(e,`https://malloy.invalid/${i}`),l=a.pathname.slice(1)+a.search+a.hash,c=`/${r.environmentName}/${r.packageName}/${l}`,{onNavigate:u}=r;return m.jsx("a",{href:c,title:t,onClick:u?d=>{d.preventDefault(),u(c,d)}:void 0,children:n})}const bh={document:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:600,color:"text.primary",mb:1,mt:2},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p, & ul, & ol":{color:"text.primary",lineHeight:1.7,mb:1,fontSize:"16px"},"& li":{mb:.5}},caption:{color:"text.secondary",typography:"body2","& > :first-of-type":{mt:0},"& > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontSize:"inherit",fontWeight:600,m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:"monospace",fontSize:"0.9em"}}};function qc({children:e,variant:t="caption",links:n,sx:r}){return m.jsx(re.Box,{sx:[bh[t],...Array.isArray(r)?r:[r]],children:m.jsx(Ad,{options:{overrides:{a:{component:yh,props:{context:n}}}},children:e})})}const Ha={};function Kc(e,t){const n=v.useRef(Ha);return n.current===Ha&&(n.current=e(t)),n}const vh=[];function xh(e){v.useEffect(e,vh)}class Si{static create(){return new Si}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ci(){const e=Kc(Si.create).current;return xh(e.disposeEffect),e}function wi(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function pr(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}function ke(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Hs(e,t){return Hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hs(e,t)}function Pi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hs(e,t)}function Sh(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Ch(e,t){e.classList?e.classList.add(t):Sh(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ua(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wh(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ua(e.className,t):e.setAttribute("class",Ua(e.className&&e.className.baseVal||"",t))}const Ya={disabled:!1},Eo=ie.createContext(null);var Qc=function(t){return t.scrollTop},Ir="unmounted",kn="exited",Mn="entering",Kn="entered",Us="exiting",Ht=(function(e){Pi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=kn,s.appearStatus=Mn):l=Kn:r.unmountOnExit||r.mountOnEnter?l=Ir:l=kn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===Ir?{status:kn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Mn&&i!==Kn&&(s=Mn):(i===Mn||i===Kn)&&(s=Us)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Mn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Mr.findDOMNode(this);i&&Qc(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kn&&this.setState({status:Ir})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Mr.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!o&&!i||Ya.disabled){this.safeSetState({status:Kn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Mn},function(){s.props.onEntering(c,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Kn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Mr.findDOMNode(this);if(!s||Ya.disabled){this.safeSetState({status:kn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Us},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:kn},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Mr.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ir)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=ke(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(Eo.Provider,{value:null},typeof i=="function"?i(o,a):ie.cloneElement(ie.Children.only(i),a))},t})(ie.Component);Ht.contextType=Eo;Ht.propTypes={};function Gn(){}Ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gn,onEntering:Gn,onEntered:Gn,onExit:Gn,onExiting:Gn,onExited:Gn};Ht.UNMOUNTED=Ir;Ht.EXITED=kn;Ht.ENTERING=Mn;Ht.ENTERED=Kn;Ht.EXITING=Us;var Ph=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Ch(t,r)})},Ts=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return wh(t,r)})},ki=(function(e){Pi(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";r.addClass(u,h,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],h=d?"appear":"enter";r.removeClasses(u,h),r.addClass(u,h,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],h=c?d+"-active":l[a+"Active"],b=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:b}},r}var n=t.prototype;return n.addClass=function(o,s,i){var a=this.getClassNames(s)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&i==="done"&&c&&(a+=" "+c),i==="active"&&o&&Qc(o),a&&(this.appliedClasses[s][i]=a,Ph(o,a))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],a=i.base,l=i.active,c=i.done;this.appliedClasses[s]={},a&&Ts(o,a),l&&Ts(o,l),c&&Ts(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ke(o,["classNames"]);return ie.createElement(Ht,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ie.Component);ki.defaultProps={classNames:""};ki.propTypes={};function kh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mi(e,t){var n=function(s){return t&&ie.isValidElement(s)?t(s):s},r=Object.create(null);return e&&ie.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Mh(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}function In(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Dh(e,t){return Mi(e.children,function(n){return ie.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:In(n,"appear",e),enter:In(n,"enter",e),exit:In(n,"exit",e)})})}function Th(e,t,n){var r=Mi(e.children),o=Mh(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(ie.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=ie.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=ie.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:In(i,"exit",e),enter:In(i,"enter",e)}):!l&&a&&!u?o[s]=ie.cloneElement(i,{in:!1}):l&&a&&ie.isValidElement(c)&&(o[s]=ie.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:In(i,"exit",e),enter:In(i,"enter",e)}))}}),o}var Ih=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Rh={component:"div",childFactory:function(t){return t}},Jr=(function(e){Pi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(kh(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?Dh(o,a):Th(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=Mi(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ke(o,["component","childFactory"]),l=this.state.contextValue,c=Ih(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?ie.createElement(Eo.Provider,{value:l},c):ie.createElement(Eo.Provider,{value:l},ie.createElement(s,a,c))},t})(ie.Component);Jr.propTypes={};Jr.defaultProps=Rh;const Xc=e=>e.scrollTop;function Ao(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ys(e){return`scale(${e}, ${e**2})`}const Oh={entering:{opacity:1,transform:Ys(1)},entered:{opacity:1,transform:"none"}},Is=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:h,onExiting:b,style:p,timeout:g="auto",TransitionComponent:y=Ht,...C}=t,P=Ci(),S=v.useRef(),x=Fn(),T=v.useRef(null),M=Fe(T,pr(s),n),$=k=>w=>{if(k){const A=T.current;w===void 0?k(A):k(A,w)}},R=$(u),F=$((k,w)=>{Xc(k);const{duration:A,delay:N,easing:L}=Ao({style:p,timeout:g,easing:i},{mode:"enter"});let _;g==="auto"?(_=x.transitions.getAutoHeightDuration(k.clientHeight),S.current=_):_=A,k.style.transition=[x.transitions.create("opacity",{duration:_,delay:N}),x.transitions.create("transform",{duration:Is?_:_*.666,delay:N,easing:L})].join(","),l&&l(k,w)}),E=$(c),I=$(b),f=$(k=>{const{duration:w,delay:A,easing:N}=Ao({style:p,timeout:g,easing:i},{mode:"exit"});let L;g==="auto"?(L=x.transitions.getAutoHeightDuration(k.clientHeight),S.current=L):L=w,k.style.transition=[x.transitions.create("opacity",{duration:L,delay:A}),x.transitions.create("transform",{duration:Is?L:L*.666,delay:Is?A:A||L*.333,easing:N})].join(","),k.style.opacity=0,k.style.transform=Ys(.75),d&&d(k)}),O=$(h),D=k=>{g==="auto"&&P.start(S.current||0,k),r&&r(T.current,k)};return m.jsx(y,{appear:o,in:a,nodeRef:T,onEnter:F,onEntered:E,onEntering:R,onExit:f,onExited:O,onExiting:I,addEndListener:D,timeout:g==="auto"?null:g,...C,children:(k,{ownerState:w,...A})=>v.cloneElement(s,{style:{opacity:0,transform:Ys(.75),visibility:k==="exited"&&!a?"hidden":void 0,...Oh[k],...p,...s.props.style},ref:M,...A})})});Vr&&(Vr.muiSupportAuto=!0);function $h(e){return Se("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Eh=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(s,$h,o)},Ah=W("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Re(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ln=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPaper"}),o=Fn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:i,elevation:a,square:l,variant:c},h=Eh(d);return m.jsx(Ah,{as:i,ownerState:d,className:me(h.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ro("#fff",Bs(a))}, ${Ro("#fff",Bs(a))})`}},...u.style}})});function sr(e){return typeof e=="string"}function Zc(e,t,n){return e===void 0||sr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Jo(e,t,n){return typeof e=="function"?e(t,n):e}function Ga(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Jc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=me(n?.className,s,o?.className,r?.className),p={...n?.style,...o?.style,...r?.style},g={...n,...o,...r};return b.length>0&&(g.className=b),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const i=wi({...o,...r}),a=Ga(r),l=Ga(o),c=t(i),u=me(c?.className,n?.className,s,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...a};return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}function We(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...h}=s,b=u[e]||r,p=Jo(d[e],o),{props:{component:g,...y},internalRef:C}=Jc({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:p}),P=Fe(C,p?.ref,t.ref),S=e==="root"?g||c:g,x=Zc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...y,...S&&!a&&{as:S},...S&&a&&{component:S},ref:P},o);return[b,x]}function eu(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Br(t.components[n].defaultProps,r)}function Fh({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qf(n);return o=o[r]||o,eu({theme:o,name:t,props:e})}function He({props:e,name:t}){return Fh({props:e,name:t,defaultTheme:Xo,themeId:dr})}const tu=U.oneOfType([U.func,U.object]);function qa(e){try{return e.matches(":focus-visible")}catch{}return!1}class Fo{static create(){return new Fo}static use(){const t=Kc(Fo.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Nh(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Lh(){return Fo.use()}function Nh(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function jh(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,d]=v.useState(!1),h=me(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},p=me(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),v.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),m.jsx("span",{className:h,style:b,children:m.jsx("span",{className:p})})}const Ot=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gs=550,Bh=80,Vh=Qe.keyframes`
23
+ 0% {
24
+ transform: scale(0);
25
+ opacity: 0.1;
26
+ }
27
+
28
+ 100% {
29
+ transform: scale(1);
30
+ opacity: 0.3;
31
+ }
32
+ `,zh=Qe.keyframes`
33
+ 0% {
34
+ opacity: 1;
35
+ }
36
+
37
+ 100% {
38
+ opacity: 0;
39
+ }
40
+ `,Wh=Qe.keyframes`
41
+ 0% {
42
+ transform: scale(1);
43
+ }
44
+
45
+ 50% {
46
+ transform: scale(0.92);
47
+ }
48
+
49
+ 100% {
50
+ transform: scale(1);
51
+ }
52
+ `,_h=W("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Hh=W(jh,{name:"MuiTouchRipple",slot:"Ripple"})`
53
+ opacity: 0;
54
+ position: absolute;
55
+
56
+ &.${Ot.rippleVisible} {
57
+ opacity: 0.3;
58
+ transform: scale(1);
59
+ animation-name: ${Vh};
60
+ animation-duration: ${Gs}ms;
61
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
62
+ }
63
+
64
+ &.${Ot.ripplePulsate} {
65
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
66
+ }
67
+
68
+ & .${Ot.child} {
69
+ opacity: 1;
70
+ display: block;
71
+ width: 100%;
72
+ height: 100%;
73
+ border-radius: 50%;
74
+ background-color: currentColor;
75
+ }
76
+
77
+ & .${Ot.childLeaving} {
78
+ opacity: 0;
79
+ animation-name: ${zh};
80
+ animation-duration: ${Gs}ms;
81
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
82
+ }
83
+
84
+ & .${Ot.childPulsate} {
85
+ position: absolute;
86
+ /* @noflip */
87
+ left: 0px;
88
+ top: 0;
89
+ animation-name: ${Wh};
90
+ animation-duration: 2500ms;
91
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
92
+ animation-iteration-count: infinite;
93
+ animation-delay: 200ms;
94
+ }
95
+ `,Uh=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=v.useState([]),u=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=v.useRef(!1),b=Ci(),p=v.useRef(null),g=v.useRef(null),y=v.useCallback(x=>{const{pulsate:T,rippleX:M,rippleY:$,rippleSize:R,cb:F}=x;c(E=>[...E,m.jsx(Hh,{classes:{ripple:me(s.ripple,Ot.ripple),rippleVisible:me(s.rippleVisible,Ot.rippleVisible),ripplePulsate:me(s.ripplePulsate,Ot.ripplePulsate),child:me(s.child,Ot.child),childLeaving:me(s.childLeaving,Ot.childLeaving),childPulsate:me(s.childPulsate,Ot.childPulsate)},timeout:Gs,pulsate:T,rippleX:M,rippleY:$,rippleSize:R},u.current)]),u.current+=1,d.current=F},[s]),C=v.useCallback((x={},T={},M=()=>{})=>{const{pulsate:$=!1,center:R=o||T.pulsate,fakeElement:F=!1}=T;if(x?.type==="mousedown"&&h.current){h.current=!1;return}x?.type==="touchstart"&&(h.current=!0);const E=F?null:g.current,I=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let f,O,D;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)f=Math.round(I.width/2),O=Math.round(I.height/2);else{const{clientX:k,clientY:w}=x.touches&&x.touches.length>0?x.touches[0]:x;f=Math.round(k-I.left),O=Math.round(w-I.top)}if(R)D=Math.sqrt((2*I.width**2+I.height**2)/3),D%2===0&&(D+=1);else{const k=Math.max(Math.abs((E?E.clientWidth:0)-f),f)*2+2,w=Math.max(Math.abs((E?E.clientHeight:0)-O),O)*2+2;D=Math.sqrt(k**2+w**2)}x?.touches?p.current===null&&(p.current=()=>{y({pulsate:$,rippleX:f,rippleY:O,rippleSize:D,cb:M})},b.start(Bh,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:$,rippleX:f,rippleY:O,rippleSize:D,cb:M})},[o,y,b]),P=v.useCallback(()=>{C({},{pulsate:!0})},[C]),S=v.useCallback((x,T)=>{if(b.clear(),x?.type==="touchend"&&p.current){p.current(),p.current=null,b.start(0,()=>{S(x,T)});return}p.current=null,c(M=>M.length>0?M.slice(1):M),d.current=T},[b]);return v.useImperativeHandle(n,()=>({pulsate:P,start:C,stop:S}),[P,C,S]),m.jsx(_h,{className:me(Ot.root,s.root,i),ref:g,...a,children:m.jsx(Jr,{component:null,exit:!0,children:l})})});function Yh(e){return Se("MuiButtonBase",e)}const Gh=be("MuiButtonBase",["root","disabled","focusVisible"]),qh=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ve({root:["root",t&&"disabled",n&&"focusVisible"]},Yh,o);return n&&r&&(i.root+=` ${r}`),i},Kh=W("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Gh.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ir=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:h=!1,focusVisibleClassName:b,LinkComponent:p="a",onBlur:g,onClick:y,onContextMenu:C,onDragLeave:P,onFocus:S,onFocusVisible:x,onKeyDown:T,onKeyUp:M,onMouseDown:$,onMouseLeave:R,onMouseUp:F,onTouchEnd:E,onTouchMove:I,onTouchStart:f,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:k,type:w,...A}=r,N=v.useRef(null),L=Lh(),_=Fe(L.ref,k),[K,Y]=v.useState(!1);c&&K&&Y(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),N.current.focus()}}),[]);const ae=L.shouldMount&&!u&&!c;v.useEffect(()=>{K&&h&&!u&&L.pulsate()},[u,h,K,L]);const le=en(L,"start",$,d),V=en(L,"stop",C,d),q=en(L,"stop",P,d),ne=en(L,"stop",F,d),Q=en(L,"stop",he=>{K&&he.preventDefault(),R&&R(he)},d),z=en(L,"start",f,d),G=en(L,"stop",E,d),se=en(L,"stop",I,d),oe=en(L,"stop",he=>{qa(he.target)||Y(!1),g&&g(he)},!1),B=fe(he=>{N.current||(N.current=he.currentTarget),qa(he.target)&&(Y(!0),x&&x(he)),S&&S(he)}),ee=()=>{const he=N.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},ce=fe(he=>{h&&!he.repeat&&K&&he.key===" "&&L.stop(he,()=>{L.start(he)}),he.target===he.currentTarget&&ee()&&he.key===" "&&he.preventDefault(),T&&T(he),he.target===he.currentTarget&&ee()&&he.key==="Enter"&&!c&&(he.preventDefault(),y&&y(he))}),te=fe(he=>{h&&he.key===" "&&K&&!he.defaultPrevented&&L.stop(he,()=>{L.pulsate(he)}),M&&M(he),y&&he.target===he.currentTarget&&ee()&&he.key===" "&&!he.defaultPrevented&&y(he)});let pe=l;pe==="button"&&(A.href||A.to)&&(pe=p);const H={};pe==="button"?(H.type=w===void 0?"button":w,H.disabled=c):(!A.href&&!A.to&&(H.role="button"),c&&(H["aria-disabled"]=c));const ye=Fe(n,N),de={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:h,tabIndex:O,focusVisible:K},Me=qh(de);return m.jsxs(Kh,{as:pe,className:me(Me.root,a),ownerState:de,onBlur:oe,onClick:y,onContextMenu:V,onFocus:B,onKeyDown:ce,onKeyUp:te,onMouseDown:le,onMouseLeave:Q,onMouseUp:ne,onDragLeave:q,onTouchEnd:G,onTouchMove:se,onTouchStart:z,ref:ye,tabIndex:c?-1:O,type:w,...H,...A,children:[i,ae?m.jsx(Uh,{ref:_,center:s,...D}):null]})});function en(e,t,n,r=!1){return fe(o=>(n&&n(o),r||e[t](o),!0))}function Qh(e){return typeof e.main=="string"}function Xh(e,t=[]){if(!Qh(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function yt(e=[]){return([,t])=>t&&Xh(t,e)}function Zh(e){return Se("MuiCircularProgress",e)}be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pn=44,qs=Qe.keyframes`
96
+ 0% {
97
+ transform: rotate(0deg);
98
+ }
99
+
100
+ 100% {
101
+ transform: rotate(360deg);
102
+ }
103
+ `,Ks=Qe.keyframes`
104
+ 0% {
105
+ stroke-dasharray: 1px, 200px;
106
+ stroke-dashoffset: 0;
107
+ }
108
+
109
+ 50% {
110
+ stroke-dasharray: 100px, 200px;
111
+ stroke-dashoffset: -15px;
112
+ }
113
+
114
+ 100% {
115
+ stroke-dasharray: 1px, 200px;
116
+ stroke-dashoffset: -126px;
117
+ }
118
+ `,Jh=typeof qs!="string"?Qe.css`
119
+ animation: ${qs} 1.4s linear infinite;
120
+ `:null,eg=typeof Ks!="string"?Qe.css`
121
+ animation: ${Ks} 1.4s ease-in-out infinite;
122
+ `:null,tg=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ue(r)}`],svg:["svg"],circle:["circle",`circle${ue(n)}`,o&&"circleDisableShrink"]};return ve(s,Zh,t)},ng=W("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ue(n.color)}`]]}})(Re(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Jh||{animation:`${qs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rg=W("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),og=W("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ue(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Re(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:eg||{animation:`${Ks} 1.4s ease-in-out infinite`}}]}))),Di=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...h}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d},p=tg(b),g={},y={},C={};if(d==="determinate"){const P=2*Math.PI*((pn-c)/2);g.strokeDasharray=P.toFixed(3),C["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*P).toFixed(3)}px`,y.transform="rotate(-90deg)"}return m.jsx(ng,{className:me(p.root,o),style:{width:a,height:a,...y,...l},ownerState:b,ref:n,role:"progressbar",...C,...h,children:m.jsx(rg,{className:p.svg,ownerState:b,viewBox:`${pn/2} ${pn/2} ${pn} ${pn}`,children:m.jsx(og,{className:p.circle,style:g,ownerState:b,cx:pn,cy:pn,r:(pn-c)/2,fill:"none",strokeWidth:c})})})});function sg(e){return Se("MuiButton",e)}const Sn=be("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ig=v.createContext({}),ag=v.createContext(void 0),lg=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:i,loadingPosition:a,classes:l}=e,c={root:["root",i&&"loading",s,`${s}${ue(t)}`,`size${ue(o)}`,`${s}Size${ue(o)}`,`color${ue(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ue(a)}`],startIcon:["icon","startIcon",`iconSize${ue(o)}`],endIcon:["icon","endIcon",`iconSize${ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ve(c,sg,l);return{...l,...u}},nu=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],cg=W(ir,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Re(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Sn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Sn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Sn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Sn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(yt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Sn.loading}`]:{color:"transparent"}}}]}})),ug=W("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ue(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...nu]})),dg=W("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ue(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...nu]})),pg=W("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ka=W("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Rr=v.forwardRef(function(t,n){const r=v.useContext(ig),o=v.useContext(ag),s=Br(r,t),i=Oe({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:p,focusVisibleClassName:g,fullWidth:y=!1,id:C,loading:P=null,loadingIndicator:S,loadingPosition:x="center",size:T="medium",startIcon:M,type:$,variant:R="text",...F}=i,E=_t(C),I=S??m.jsx(Di,{"aria-labelledby":E,color:"inherit",size:16}),f={...i,color:l,component:c,disabled:d,disableElevation:h,disableFocusRipple:b,fullWidth:y,loading:P,loadingIndicator:I,loadingPosition:x,size:T,type:$,variant:R},O=lg(f),D=(M||P&&x==="start")&&m.jsx(ug,{className:O.startIcon,ownerState:f,children:M||m.jsx(Ka,{className:O.loadingIconPlaceholder,ownerState:f})}),k=(p||P&&x==="end")&&m.jsx(dg,{className:O.endIcon,ownerState:f,children:p||m.jsx(Ka,{className:O.loadingIconPlaceholder,ownerState:f})}),w=o||"",A=typeof P=="boolean"?m.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:P&&m.jsx(pg,{className:O.loadingIndicator,ownerState:f,children:I})}):null;return m.jsxs(cg,{ownerState:f,className:me(r.className,O.root,u,w),component:c,disabled:d||P,focusRipple:!b,focusVisibleClassName:me(O.focusVisible,g),ref:n,type:$,id:P?E:C,...F,classes:O,children:[D,x!=="end"&&A,a,x==="end"&&A,k]})});function fg(e){return Se("MuiIconButton",e)}const Qa=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),mg=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ve(a,fg,t)},hg=W(ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(Re(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Re(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Qa.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Qa.loading}`]:{color:"transparent"}}))),gg=W("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Nn=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:h=null,loadingIndicator:b,...p}=r,g=_t(d),y=b??m.jsx(Di,{"aria-labelledby":g,color:"inherit",size:16}),C={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:u},P=mg(C);return m.jsxs(hg,{id:h?g:d,className:me(P.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...p,ownerState:C,children:[typeof h=="boolean"&&m.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:m.jsx(gg,{className:P.loadingIndicator,ownerState:C,children:h&&y})}),s]})});function lo(e){return parseInt(e,10)||0}const yg={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function bg(e){for(const t in e)return!1;return!0}function Xa(e){return bg(e)||e.outerHeightStyle===0&&!e.overflowing}const vg=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=v.useRef(a!=null),u=v.useRef(null),d=Fe(n,u),h=v.useRef(null),b=v.useRef(null),p=v.useCallback(()=>{const S=u.current,x=b.current;if(!S||!x)return;const M=rn(S).getComputedStyle(S);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=M.width,x.value=S.value||t.placeholder||"x",x.value.slice(-1)===`
123
+ `&&(x.value+=" ");const $=M.boxSizing,R=lo(M.paddingBottom)+lo(M.paddingTop),F=lo(M.borderBottomWidth)+lo(M.borderTopWidth),E=x.scrollHeight;x.value="x";const I=x.scrollHeight;let f=E;s&&(f=Math.max(Number(s)*I,f)),o&&(f=Math.min(Number(o)*I,f)),f=Math.max(f,I);const O=f+($==="border-box"?R+F:0),D=Math.abs(f-E)<=1;return{outerHeightStyle:O,overflowing:D}},[o,s,t.placeholder]),g=fe(()=>{const S=u.current,x=p();if(!S||!x||Xa(x))return!1;const T=x.outerHeightStyle;return h.current!=null&&h.current!==T}),y=v.useCallback(()=>{const S=u.current,x=p();if(!S||!x||Xa(x))return;const T=x.outerHeightStyle;h.current!==T&&(h.current=T,S.style.height=`${T}px`),S.style.overflow=x.overflowing?"hidden":""},[p]),C=v.useRef(-1);st(()=>{const S=$c(y),x=u?.current;if(!x)return;const T=rn(x);T.addEventListener("resize",S);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{g()&&(M.unobserve(x),cancelAnimationFrame(C.current),y(),C.current=requestAnimationFrame(()=>{M.observe(x)}))}),M.observe(x)),()=>{S.clear(),cancelAnimationFrame(C.current),T.removeEventListener("resize",S),M&&M.disconnect()}},[p,y,g]),st(()=>{y()});const P=S=>{c||y();const x=S.target,T=x.value.length,M=x.value.endsWith(`
124
+ `),$=x.selectionStart===T;M&&$&&x.setSelectionRange(T,T),r&&r(S)};return m.jsxs(v.Fragment,{children:[m.jsx("textarea",{value:a,onChange:P,ref:d,rows:s,style:i,...l}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...yg.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function jn({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const es=v.createContext(void 0);function Bt(){return v.useContext(es)}function Za(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Lo(e,t=!1){return e&&(Za(e.value)&&e.value!==""||t&&Za(e.defaultValue)&&e.defaultValue!=="")}function xg(e){return e.startAdornment}function Sg(e){return Se("MuiInputBase",e)}const wt=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ja;const ts=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ns=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Cg=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:b,type:p}=e,g={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",h&&h!=="medium"&&`size${ue(h)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return ve(g,Sg,t)},rs=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ts})(Re(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${wt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),os=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ns})(Re(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${wt.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${wt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),el=Nm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ti=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:b,endAdornment:p,error:g,fullWidth:y=!1,id:C,inputComponent:P="input",inputProps:S={},inputRef:x,margin:T,maxRows:M,minRows:$,multiline:R=!1,name:F,onBlur:E,onChange:I,onClick:f,onFocus:O,onKeyDown:D,onKeyUp:k,placeholder:w,readOnly:A,renderSuffix:N,rows:L,size:_,slotProps:K={},slots:Y={},startAdornment:ae,type:le="text",value:V,...q}=r,ne=S.value!=null?S.value:V,{current:Q}=v.useRef(ne!=null),z=v.useRef(),G=v.useCallback(Ce=>{},[]),se=Fe(z,x,S.ref,G),[oe,B]=v.useState(!1),ee=Bt(),ce=jn({props:r,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ce.focused=ee?ee.focused:oe,v.useEffect(()=>{!ee&&h&&oe&&(B(!1),E&&E())},[ee,h,oe,E]);const te=ee&&ee.onFilled,pe=ee&&ee.onEmpty,H=v.useCallback(Ce=>{Lo(Ce)?te&&te():pe&&pe()},[te,pe]);st(()=>{Q&&H({value:ne})},[ne,H,Q]);const ye=Ce=>{O&&O(Ce),S.onFocus&&S.onFocus(Ce),ee&&ee.onFocus?ee.onFocus(Ce):B(!0)},de=Ce=>{E&&E(Ce),S.onBlur&&S.onBlur(Ce),ee&&ee.onBlur?ee.onBlur(Ce):B(!1)},Me=(Ce,...tt)=>{if(!Q){const St=Ce.target||z.current;if(St==null)throw new Error(tn(1));H({value:St.value})}S.onChange&&S.onChange(Ce,...tt),I&&I(Ce,...tt)};v.useEffect(()=>{H(z.current)},[]);const he=Ce=>{z.current&&Ce.currentTarget===Ce.target&&z.current.focus(),f&&f(Ce)};let et=P,Le=S;R&&et==="input"&&(L?Le={type:void 0,minRows:L,maxRows:L,...Le}:Le={type:void 0,maxRows:M,minRows:$,...Le},et=vg);const Xe=Ce=>{H(Ce.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};v.useEffect(()=>{ee&&ee.setAdornedStart(!!ae)},[ee,ae]);const nt={...r,color:ce.color||"primary",disabled:ce.disabled,endAdornment:p,error:ce.error,focused:ce.focused,formControl:ee,fullWidth:y,hiddenLabel:ce.hiddenLabel,multiline:R,size:ce.size,startAdornment:ae,type:le},mt=Cg(nt),rt=Y.root||c.Root||rs,xt=K.root||u.root||{},_e=Y.input||c.Input||os;return Le={...Le,...K.input??u.input},m.jsxs(v.Fragment,{children:[!b&&typeof el=="function"&&(Ja||(Ja=m.jsx(el,{}))),m.jsxs(rt,{...xt,ref:n,onClick:he,...q,...!sr(rt)&&{ownerState:{...nt,...xt.ownerState}},className:me(mt.root,xt.className,a,A&&"MuiInputBase-readOnly"),children:[ae,m.jsx(es.Provider,{value:null,children:m.jsx(_e,{"aria-invalid":ce.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:d,disabled:ce.disabled,id:C,onAnimationStart:Xe,name:F,placeholder:w,readOnly:A,required:ce.required,rows:L,value:ne,onKeyDown:D,onKeyUp:k,type:le,...Le,...!sr(_e)&&{as:et,ownerState:{...nt,...Le.ownerState}},ref:se,className:me(mt.input,Le.className,A&&"MuiInputBase-readOnly"),onBlur:de,onChange:Me,onFocus:ye})}),p,N?N({...ce,startAdornment:ae}):null]})]})});function wg(e){return Se("MuiInput",e)}const fn={...wt,...be("MuiInput",["root","underline","input"])},Pg=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},wg,t);return{...t,...o}},kg=W(rs,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ts(e,t),!n.disableUnderline&&t.underline]}})(Re(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,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"},[`&.${fn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fn.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(.${fn.disabled}, .${fn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Mg=W(os,{name:"MuiInput",slot:"Input",overridesResolver:ns})({}),Ii=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:h="text",...b}=r,p=Pg(r),y={root:{ownerState:{disableUnderline:o}}},C=u??i?ft(u??i,y):y,P=d.root??s.Root??kg,S=d.input??s.Input??Mg;return m.jsx(Ti,{slots:{root:P,input:S},slotProps:C,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...b,classes:p})});Ii.muiName="Input";function Dg(e){return Se("MuiFilledInput",e)}const Pt={...wt,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Tg=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ue(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=ve(l,Dg,t);return{...t,...c}},Ig=W(rs,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ts(e,t),!n.disableUnderline&&t.underline]}})(Re(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Pt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Pt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:i})=>!i.disableUnderline,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"},[`&.${Pt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Pt.disabled}, .${Pt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yt()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Rg=W(os,{name:"MuiFilledInput",slot:"Input",overridesResolver:ns})(Re(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ri=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:h={},type:b="text",...p}=r,g={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},y=Tg(r),C={root:{ownerState:g},input:{ownerState:g}},P=d??i?ft(C,d??i):C,S=h.root??s.Root??Ig,x=h.input??s.Input??Rg;return m.jsx(Ti,{slots:{root:S,input:x},slotProps:P,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...p,classes:y})});Ri.muiName="Input";var tl;const Og=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:jt})({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%"}),$g=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:jt})(Re(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,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:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Eg(e){const{children:t,classes:n,className:r,label:o,notched:s,...i}=e,a=o!=null&&o!=="",l={...e,notched:s,withLabel:a};return m.jsx(Og,{"aria-hidden":!0,className:r,ownerState:l,...i,children:m.jsx($g,{ownerState:l,children:a?m.jsx("span",{children:o}):tl||(tl=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function Ag(e){return Se("MuiOutlinedInput",e)}const Rt={...wt,...be("MuiOutlinedInput",["root","notchedOutline","input"])},Fg=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ag,t);return{...t,...r}},Lg=W(rs,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ts})(Re(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Rt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Rt.focused} .${Rt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yt()).map(([n])=>({props:{color:n},style:{[`&.${Rt.focused} .${Rt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rt.error} .${Rt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rt.disabled} .${Rt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Ng=W(Eg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Re(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),jg=W(os,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ns})(Re(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Oi=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:h="text",...b}=r,p=Fg(r),g=Bt(),y=jn({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:s,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},P=u.root??o.Root??Lg,S=u.input??o.Input??jg,[x,T]=We("notchedOutline",{elementType:Ng,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:a!=null&&a!==""&&y.required?m.jsxs(v.Fragment,{children:[a," ","*"]}):a}});return m.jsx(Ti,{slots:{root:P,input:S},slotProps:d,renderSuffix:M=>m.jsx(x,{...T,notched:typeof c<"u"?c:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:h,...b,classes:{...p,notchedOutline:null}})});Oi.muiName="Input";function Bg(e){return Se("MuiFormLabel",e)}const $r=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vg=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ue(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return ve(l,Bg,t)},zg=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{[`&.${$r.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$r.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$r.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Wg=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(Re(({theme:e})=>({[`&.${$r.error}`]:{color:(e.vars||e).palette.error.main}}))),_g=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:d,required:h,...b}=r,p=Bt(),g=jn({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},C=Vg(y);return m.jsxs(zg,{as:a,ownerState:y,className:me(C.root,s),ref:n,...b,children:[o,g.required&&m.jsxs(Wg,{ownerState:y,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function Hg(e){return Se("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ug=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ue(r)}`,i],asterisk:[a&&"asterisk"]},c=ve(l,Hg,t);return{...t,...c}},Yg=W(_g,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$r.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Re(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),$i=v.forwardRef(function(t,n){const r=Oe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=Bt();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const h=jn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},p=Ug(b);return m.jsx(Yg,{"data-shrink":d,ref:n,className:me(p.root,l),...c,ownerState:b,classes:p})});function Gg(e){return Se("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qg=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return ve(o,Gg,t)},Kg=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ue(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ei=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:h=!1,margin:b="none",required:p=!1,size:g="medium",variant:y="outlined",...C}=r,P={...r,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:h,margin:b,required:p,size:g,variant:y},S=qg(P),[x,T]=v.useState(()=>{let k=!1;return o&&v.Children.forEach(o,w=>{if(!So(w,["Input","Select"]))return;const A=So(w,["Select"])?w.props.input:w;A&&xg(A.props)&&(k=!0)}),k}),[M,$]=v.useState(()=>{let k=!1;return o&&v.Children.forEach(o,w=>{So(w,["Input","Select"])&&(Lo(w.props,!0)||Lo(w.props.inputProps,!0))&&(k=!0)}),k}),[R,F]=v.useState(!1);l&&R&&F(!1);const E=u!==void 0&&!l?u:R;let I;v.useRef(!1);const f=v.useCallback(()=>{$(!0)},[]),O=v.useCallback(()=>{$(!1)},[]),D=v.useMemo(()=>({adornedStart:x,setAdornedStart:T,color:i,disabled:l,error:c,filled:M,focused:E,fullWidth:d,hiddenLabel:h,size:g,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:O,onFilled:f,registerEffect:I,required:p,variant:y}),[x,i,l,c,M,E,d,h,I,O,f,p,g,y]);return m.jsx(es.Provider,{value:D,children:m.jsx(Kg,{as:a,ownerState:P,className:me(S.root,s),ref:n,...C,children:o})})});function Qg(e){return Se("MuiFormHelperText",e)}const nl=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rl;const Xg=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${ue(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return ve(c,Qg,t)},Zg=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nl.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ru=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:h,variant:b,...p}=r,g=Bt(),y=jn({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:i,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete C.ownerState;const P=Xg(C);return m.jsx(Zg,{as:i,className:me(P.root,s),ref:n,...p,ownerState:C,children:o===" "?rl||(rl=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function Ae(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:Jo(n,r),{props:a,internalRef:l}=Jc({...s,externalSlotProps:i}),c=Fe(l,i?.ref,e.additionalProps?.ref);return Zc(t,{...a,ref:c},r)}const Jn=v.createContext({});function Jg(e){return Se("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const ey=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Jg,t)},ty=W("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ou=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=v.useMemo(()=>({dense:a}),[a]),h={...r,component:i,dense:a,disablePadding:l},b=ey(h);return m.jsx(Jn.Provider,{value:d,children:m.jsxs(ty,{as:i,className:me(b.root,s),ref:n,ownerState:h,...u,children:[c,o]})})});function su(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Rs(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ol(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function iu(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function br(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!iu(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const ny=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...h}=t,b=v.useRef(null),p=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{o&&b.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const T=!b.current.style.width;if(S.clientHeight<b.current.clientHeight&&T){const M=`${su(rn(S))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=M,b.current.style.width=`calc(100% + ${M})`}return b.current}}),[]);const g=S=>{const x=b.current,T=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const $=dt(x).activeElement;if(T==="ArrowDown")S.preventDefault(),br(x,$,c,l,Rs);else if(T==="ArrowUp")S.preventDefault(),br(x,$,c,l,ol);else if(T==="Home")S.preventDefault(),br(x,null,c,l,Rs);else if(T==="End")S.preventDefault(),br(x,null,c,l,ol);else if(T.length===1){const R=p.current,F=T.toLowerCase(),E=performance.now();R.keys.length>0&&(E-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&F!==R.keys[0]&&(R.repeating=!1)),R.lastTime=E,R.keys.push(F);const I=$&&!R.repeating&&iu($,R);R.previousKeyMatched&&(I||br(x,$,!1,l,Rs,R))?S.preventDefault():R.previousKeyMatched=!1}u&&u(S)},y=Fe(b,n);let C=-1;v.Children.forEach(i,(S,x)=>{if(!v.isValidElement(S)){C===x&&(C+=1,C>=i.length&&(C=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||C===-1)&&(C=x),C===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=i.length&&(C=-1))});const P=v.Children.map(i,(S,x)=>{if(x===C){const T={};return s&&(T.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(T.tabIndex=0),v.cloneElement(S,T)}return S});return m.jsx(ou,{role:"menu",ref:y,className:a,onKeyDown:g,tabIndex:o?0:-1,...h,children:P})});function ry(e){const t=dt(e);return t.body===e?rn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Er(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sl(e){return parseInt(rn(e).getComputedStyle(e).paddingRight,10)||0}function oy(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function il(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!oy(i);a&&l&&Er(i,o)})}function Os(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function sy(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ry(r)){const i=su(rn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${sl(r)+i}px`;const a=dt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${sl(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=dt(r).body;else{const i=r.parentElement,a=rn(r);s=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function iy(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ay{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Er(t.modalRef,!1);const o=iy(n);il(n,t.mount,t.modalRef,o,!0);const s=Os(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Os(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=sy(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Os(this.containers,i=>i.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Er(t.modalRef,n),il(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Er(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const ly=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cy(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function uy(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function dy(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||uy(e))}function py(e){const t=[],n=[];return Array.from(e.querySelectorAll(ly)).forEach((r,o)=>{const s=cy(r);s===-1||!dy(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function fy(){return!0}function au(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=py,isEnabled:i=fy,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),h=v.useRef(null),b=v.useRef(!1),p=v.useRef(null),g=Fe(pr(t),p),y=v.useRef(null);v.useEffect(()=>{!a||!p.current||(b.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!p.current)return;const S=dt(p.current);return p.current.contains(S.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),b.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),v.useEffect(()=>{if(!a||!p.current)return;const S=dt(p.current),x=$=>{y.current=$,!(r||!i()||$.key!=="Tab")&&S.activeElement===p.current&&$.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const $=p.current;if($===null)return;if(!S.hasFocus()||!i()||l.current){l.current=!1;return}if($.contains(S.activeElement)||r&&S.activeElement!==c.current&&S.activeElement!==u.current)return;if(S.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let R=[];if((S.activeElement===c.current||S.activeElement===u.current)&&(R=s(p.current)),R.length>0){const F=!!(y.current?.shiftKey&&y.current?.key==="Tab"),E=R[0],I=R[R.length-1];typeof E!="string"&&typeof I!="string"&&(F?I.focus():E.focus())}else $.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",x,!0);const M=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(M),S.removeEventListener("focusin",T),S.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const C=S=>{d.current===null&&(d.current=S.relatedTarget),b.current=!0,h.current=S.target;const x=t.props.onFocus;x&&x(S)},P=S=>{d.current===null&&(d.current=S.relatedTarget),b.current=!0};return m.jsxs(v.Fragment,{children:[m.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:g,onFocus:C}),m.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:u,"data-testid":"sentinelEnd"})]})}function my(e){return typeof e=="function"?e():e}const lu=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=v.useState(null),l=Fe(v.isValidElement(r)?pr(r):null,n);if(st(()=>{s||a(my(o)||document.body)},[o,s]),st(()=>{if(i&&!s)return Vs(n,i),()=>{Vs(n,null)}},[n,i,s]),s){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return i&&jd.createPortal(r,i)}),hy={entering:{opacity:1},entered:{opacity:1}},$n=v.forwardRef(function(t,n){const r=Fn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:b,onExited:p,onExiting:g,style:y,timeout:C=o,TransitionComponent:P=Ht,...S}=t,x=v.useRef(null),T=Fe(x,pr(a),n),M=D=>k=>{if(D){const w=x.current;k===void 0?D(w):D(w,k)}},$=M(h),R=M((D,k)=>{Xc(D);const w=Ao({style:y,timeout:C,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",w),D.style.transition=r.transitions.create("opacity",w),u&&u(D,k)}),F=M(d),E=M(g),I=M(D=>{const k=Ao({style:y,timeout:C,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",k),D.style.transition=r.transitions.create("opacity",k),b&&b(D)}),f=M(p),O=D=>{s&&s(x.current,D)};return m.jsx(P,{appear:i,in:c,nodeRef:x,onEnter:R,onEntered:F,onEntering:$,onExit:I,onExited:f,onExiting:E,addEndListener:O,timeout:C,...S,children:(D,{ownerState:k,...w})=>v.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...hy[D],...y,...a.props.style},ref:T,...w})})});function gy(e){return Se("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const yy=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},gy,t)},by=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),cu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:h={},TransitionComponent:b,transitionDuration:p,...g}=r,y={...r,component:i,invisible:a},C=yy(y),P={transition:b,root:c.Root,...h},S={...u,...d},x={component:i,slots:P,slotProps:S},[T,M]=We("root",{elementType:by,externalForwardedProps:x,className:me(C.root,s),ownerState:y}),[$,R]=We("transition",{elementType:$n,externalForwardedProps:x,ownerState:y});return m.jsx($,{in:l,timeout:p,...g,...R,children:m.jsx(T,{"aria-hidden":!0,...M,classes:C,ref:n,children:o})})});function vy(e){return typeof e=="function"?e():e}function xy(e){return e?e.props.hasOwnProperty("in"):!1}const al=()=>{},co=new ay;function Sy(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:u}=e,d=v.useRef({}),h=v.useRef(null),b=v.useRef(null),p=Fe(b,u),[g,y]=v.useState(!c),C=xy(a);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const S=()=>dt(h.current),x=()=>(d.current.modalRef=b.current,d.current.mount=h.current,d.current),T=()=>{co.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},M=fe(()=>{const k=vy(t)||S().body;co.add(x(),k),b.current&&T()}),$=()=>co.isTopModal(x()),R=fe(k=>{h.current=k,k&&(c&&$()?T():b.current&&Er(b.current,P))}),F=v.useCallback(()=>{co.remove(x(),P)},[P]);v.useEffect(()=>()=>{F()},[F]),v.useEffect(()=>{c?M():(!C||!o)&&F()},[c,F,C,o,M]);const E=k=>w=>{k.onKeyDown?.(w),!(w.key!=="Escape"||w.which===229||!$())&&(n||(w.stopPropagation(),l&&l(w,"escapeKeyDown")))},I=k=>w=>{k.onClick?.(w),w.target===w.currentTarget&&l&&l(w,"backdropClick")};return{getRootProps:(k={})=>{const w=wi(e);delete w.onTransitionEnter,delete w.onTransitionExited;const A={...w,...k};return{role:"presentation",...A,onKeyDown:E(A),ref:p}},getBackdropProps:(k={})=>{const w=k;return{"aria-hidden":!0,...w,onClick:I(w),open:c}},getTransitionProps:()=>{const k=()=>{y(!1),s&&s()},w=()=>{y(!0),i&&i(),o&&F()};return{onEnter:xa(k,a?.props.onEnter??al),onExited:xa(w,a?.props.onExited??al)}},rootRef:p,portalRef:R,isTopModal:$,exited:g,hasTransition:C}}function Cy(e){return Se("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const wy=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cy,r)},Py=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Re(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),ky=W(cu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),uu=v.forwardRef(function(t,n){const r=Oe({name:"MuiModal",props:t}),{BackdropComponent:o=ky,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:h={},componentsProps:b={},disableAutoFocus:p=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:C=!1,disableRestoreFocus:P=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:T=!1,onClose:M,onTransitionEnter:$,onTransitionExited:R,open:F,slotProps:E={},slots:I={},theme:f,...O}=r,D={...r,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:C,disableRestoreFocus:P,disableScrollLock:S,hideBackdrop:x,keepMounted:T},{getRootProps:k,getBackdropProps:w,getTransitionProps:A,portalRef:N,isTopModal:L,exited:_,hasTransition:K}=Sy({...D,rootRef:n}),Y={...D,exited:_},ae=wy(Y),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),K){const{onEnter:G,onExited:se}=A();le.onEnter=G,le.onExited=se}const V={slots:{root:h.Root,backdrop:h.Backdrop,...I},slotProps:{...b,...E}},[q,ne]=We("root",{ref:n,elementType:Py,externalForwardedProps:{...V,...O,component:d},getSlotProps:k,ownerState:Y,className:me(a,ae?.root,!Y.open&&Y.exited&&ae?.hidden)}),[Q,z]=We("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:G=>w({...G,onClick:se=>{G?.onClick&&G.onClick(se)}}),className:me(s?.className,ae?.backdrop),ownerState:Y});return!T&&!F&&(!K||_)?null:m.jsx(lu,{ref:N,container:u,disablePortal:C,children:m.jsxs(q,{...ne,children:[!x&&o?m.jsx(Q,{...z}):null,m.jsx(au,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:P,isEnabled:L,open:F,children:v.cloneElement(c,le)})]})})});function My(e){return Se("MuiPopover",e)}be("MuiPopover",["root","paper"]);function ll(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function cl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ul(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uo(e){return typeof e=="function"?e():e}const Dy=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},My,t)},Ty=W(uu,{name:"MuiPopover",slot:"Root"})({}),du=W(Ln,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Iy=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:h=8,marginThreshold:b=16,open:p,PaperProps:g={},slots:y={},slotProps:C={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:T={},disableScrollLock:M=!1,...$}=r,R=v.useRef(),F={...r,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:b,transformOrigin:P,TransitionComponent:S,transitionDuration:x,TransitionProps:T},E=Dy(F),I=v.useCallback(()=>{if(l==="anchorPosition")return a;const G=uo(s),oe=(G&&G.nodeType===1?G:dt(R.current).body).getBoundingClientRect();return{top:oe.top+ll(oe,i.vertical),left:oe.left+cl(oe,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),f=v.useCallback(G=>({vertical:ll(G,P.vertical),horizontal:cl(G,P.horizontal)}),[P.horizontal,P.vertical]),O=v.useCallback(G=>{const se={width:G.offsetWidth,height:G.offsetHeight},oe=f(se);if(l==="none")return{top:null,left:null,transformOrigin:ul(oe)};const B=I();let ee=B.top-oe.vertical,ce=B.left-oe.horizontal;const te=ee+se.height,pe=ce+se.width,H=rn(uo(s)),ye=H.innerHeight-b,de=H.innerWidth-b;if(b!==null&&ee<b){const Me=ee-b;ee-=Me,oe.vertical+=Me}else if(b!==null&&te>ye){const Me=te-ye;ee-=Me,oe.vertical+=Me}if(b!==null&&ce<b){const Me=ce-b;ce-=Me,oe.horizontal+=Me}else if(pe>de){const Me=pe-de;ce-=Me,oe.horizontal+=Me}return{top:`${Math.round(ee)}px`,left:`${Math.round(ce)}px`,transformOrigin:ul(oe)}},[s,l,I,f,b]),[D,k]=v.useState(p),w=v.useCallback(()=>{const G=R.current;if(!G)return;const se=O(G);se.top!==null&&G.style.setProperty("top",se.top),se.left!==null&&(G.style.left=se.left),G.style.transformOrigin=se.transformOrigin,k(!0)},[O]);v.useEffect(()=>(M&&window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)),[s,M,w]);const A=()=>{w()},N=()=>{k(!1)};v.useEffect(()=>{p&&w()}),v.useImperativeHandle(o,()=>p?{updatePosition:()=>{w()}}:null,[p,w]),v.useEffect(()=>{if(!p)return;const G=$c(()=>{w()}),se=rn(uo(s));return se.addEventListener("resize",G),()=>{G.clear(),se.removeEventListener("resize",G)}},[s,p,w]);let L=x;const _={slots:{transition:S,...y},slotProps:{transition:T,paper:g,...C}},[K,Y]=We("transition",{elementType:Vr,externalForwardedProps:_,ownerState:F,getSlotProps:G=>({...G,onEntering:(se,oe)=>{G.onEntering?.(se,oe),A()},onExited:se=>{G.onExited?.(se),N()}}),additionalProps:{appear:!0,in:p}});x==="auto"&&!K.muiSupportAuto&&(L=void 0);const ae=d||(s?dt(uo(s)).body:void 0),[le,{slots:V,slotProps:q,...ne}]=We("root",{ref:n,elementType:Ty,externalForwardedProps:{..._,...$},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:Ec(typeof C.backdrop=="function"?C.backdrop(F):C.backdrop,{invisible:!0})},container:ae,open:p},ownerState:F,className:me(E.root,u)}),[Q,z]=We("paper",{ref:R,className:E.paper,elementType:du,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:F});return m.jsx(le,{...ne,...!sr(le)&&{slots:V,slotProps:q,disableScrollLock:M},children:m.jsx(K,{...Y,timeout:L,children:m.jsx(Q,{...z,children:c})})})});function Ry(e){return Se("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const Oy={vertical:"top",horizontal:"right"},$y={vertical:"top",horizontal:"left"},Ey=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},Ry,t)},Ay=W(Iy,{shouldForwardProp:e=>jt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Fy=W(du,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ly=W(ny,{name:"MuiMenu",slot:"List"})({outline:0}),Ny=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:p,...g}={},variant:y="selectedMenu",slots:C={},slotProps:P={},...S}=r,x=Wt(),T={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:b,TransitionProps:g,variant:y},M=Ey(T),$=o&&!a&&u,R=v.useRef(null),F=(L,_)=>{R.current&&R.current.adjustStyleForScrollbar(L,{direction:x?"rtl":"ltr"}),p&&p(L,_)},E=L=>{L.key==="Tab"&&(L.preventDefault(),c&&c(L,"tabKeyDown"))};let I=-1;v.Children.map(s,(L,_)=>{v.isValidElement(L)&&(L.props.disabled||(y==="selectedMenu"&&L.props.selected||I===-1)&&(I=_))});const f={slots:C,slotProps:{list:l,transition:g,paper:d,...P}},O=Ae({elementType:C.root,externalSlotProps:P.root,ownerState:T,className:[M.root,i]}),[D,k]=We("paper",{className:M.paper,elementType:Fy,externalForwardedProps:f,shouldForwardComponentProp:!0,ownerState:T}),[w,A]=We("list",{className:me(M.list,l.className),elementType:Ly,shouldForwardComponentProp:!0,externalForwardedProps:f,getSlotProps:L=>({...L,onKeyDown:_=>{E(_),L.onKeyDown?.(_)}}),ownerState:T}),N=typeof f.slotProps.transition=="function"?f.slotProps.transition(T):f.slotProps.transition;return m.jsx(Ay,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Oy:$y,slots:{root:C.root,paper:D,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:O,paper:k,backdrop:typeof P.backdrop=="function"?P.backdrop(T):P.backdrop,transition:{...N,onEntering:(...L)=>{F(...L),N?.onEntering?.(...L)}}},open:u,ref:n,transitionDuration:b,ownerState:T,...S,classes:h,children:m.jsx(w,{actions:R,autoFocus:o&&(I===-1||a),autoFocusItem:$,variant:y,...A,children:s})})});function jy(e){return Se("MuiNativeSelect",e)}const Ai=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),By=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ue(n)}`,s&&"iconOpen",r&&"disabled"]};return ve(a,jy,t)},pu=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ai.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Vy=W(pu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:jt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ai.multiple}`]:t.multiple}]}})({}),fu=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),zy=W(fu,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})({}),Wy=v.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:s},d=By(u);return m.jsxs(v.Fragment,{children:[m.jsx(Vy,{ownerState:u,className:me(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:m.jsx(zy,{as:i,ownerState:u,className:d.icon})]})});function mu(e){return Se("MuiSelect",e)}const vr=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dl;const _y=W(pu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${vr.select}`]:t.select},{[`&.${vr.select}`]:t[n.variant]},{[`&.${vr.error}`]:t.error},{[`&.${vr.multiple}`]:t.multiple}]}})({[`&.${vr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hy=W(fu,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})({}),Uy=W("input",{shouldForwardProp:e=>Oc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Yy(e){return e==null||typeof e=="string"&&!e.trim()}const Gy=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ue(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(a,mu,t)},qy=v.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:h,error:b=!1,IconComponent:p,inputRef:g,labelId:y,MenuProps:C={},multiple:P,name:S,onBlur:x,onChange:T,onClose:M,onFocus:$,onOpen:R,open:F,readOnly:E,renderValue:I,required:f,SelectDisplayProps:O={},tabIndex:D,type:k,value:w,variant:A="standard",...N}=t,[L,_]=Mt({controlled:w,default:u,name:"Select"}),[K,Y]=Mt({controlled:F,default:c,name:"Select"}),ae=v.useRef(null),le=v.useRef(null),[V,q]=v.useState(null),{current:ne}=v.useRef(F!=null),[Q,z]=v.useState(),G=Fe(n,g),se=v.useCallback(xe=>{le.current=xe,xe&&q(xe)},[]),oe=V?.parentNode;v.useImperativeHandle(G,()=>({focus:()=>{le.current.focus()},node:ae.current,value:L}),[L]),v.useEffect(()=>{c&&K&&V&&!ne&&(z(i?null:oe.clientWidth),le.current.focus())},[V,i]),v.useEffect(()=>{s&&le.current.focus()},[s]),v.useEffect(()=>{if(!y)return;const xe=dt(le.current).getElementById(y);if(xe){const Te=()=>{getSelection().isCollapsed&&le.current.focus()};return xe.addEventListener("click",Te),()=>{xe.removeEventListener("click",Te)}}},[y]);const B=(xe,Te)=>{xe?R&&R(Te):M&&M(Te),ne||(z(i?null:oe.clientWidth),Y(xe))},ee=xe=>{xe.button===0&&(xe.preventDefault(),le.current.focus(),B(!0,xe))},ce=xe=>{B(!1,xe)},te=v.Children.toArray(a),pe=xe=>{const Te=te.find($e=>$e.props.value===xe.target.value);Te!==void 0&&(_(Te.props.value),T&&T(xe,Te))},H=xe=>Te=>{let $e;if(Te.currentTarget.hasAttribute("tabindex")){if(P){$e=Array.isArray(L)?L.slice():[];const Ct=L.indexOf(xe.props.value);Ct===-1?$e.push(xe.props.value):$e.splice(Ct,1)}else $e=xe.props.value;if(xe.props.onClick&&xe.props.onClick(Te),L!==$e&&(_($e),T)){const Ct=Te.nativeEvent||Te,Ne=new Ct.constructor(Ct.type,Ct);Object.defineProperty(Ne,"target",{writable:!0,value:{value:$e,name:S}}),T(Ne,xe)}P||B(!1,Te)}},ye=xe=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),B(!0,xe))},de=V!==null&&K,Me=xe=>{!de&&x&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:L,name:S}}),x(xe))};delete N["aria-invalid"];let he,et;const Le=[];let Xe=!1;(Lo({value:L})||h)&&(I?he=I(L):Xe=!0);const nt=te.map(xe=>{if(!v.isValidElement(xe))return null;let Te;if(P){if(!Array.isArray(L))throw new Error(tn(2));Te=L.some($e=>pl($e,xe.props.value)),Te&&Xe&&Le.push(xe.props.children)}else Te=pl(L,xe.props.value),Te&&Xe&&(et=xe.props.children);return v.cloneElement(xe,{"aria-selected":Te?"true":"false",onClick:H(xe),onKeyUp:$e=>{$e.key===" "&&$e.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp($e)},role:"option",selected:Te,value:void 0,"data-value":xe.props.value})});Xe&&(P?Le.length===0?he=null:he=Le.reduce((xe,Te,$e)=>(xe.push(Te),$e<Le.length-1&&xe.push(", "),xe),[]):he=et);let mt=Q;!i&&ne&&V&&(mt=oe.clientWidth);let rt;typeof D<"u"?rt=D:rt=d?null:0;const xt=O.id||(S?`mui-component-select-${S}`:void 0),_e={...t,variant:A,value:L,open:de,error:b},Ce=Gy(_e),tt={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper(_e):C.slotProps?.paper},St={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list(_e):C.slotProps?.list},ut=_t();return m.jsxs(v.Fragment,{children:[m.jsx(_y,{as:"div",ref:se,tabIndex:rt,role:"combobox","aria-controls":de?ut:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,xt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":f?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:ye,onMouseDown:d||E?null:ee,onBlur:Me,onFocus:$,...O,ownerState:_e,className:me(O.className,Ce.select,l),id:xt,children:Yy(he)?dl||(dl=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):he}),m.jsx(Uy,{"aria-invalid":b,value:Array.isArray(L)?L.join(","):L,name:S,ref:ae,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:d,className:Ce.nativeInput,autoFocus:s,required:f,...N,ownerState:_e}),m.jsx(Hy,{as:p,className:Ce.icon,ownerState:_e}),m.jsx(Ny,{id:`menu-${S||""}`,anchorEl:oe,open:de,onClose:ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:ut,...St},paper:{...tt,style:{minWidth:mt,...tt!=null?tt.style:null}}},children:nt})]})}),hu=ct(m.jsx("path",{d:"M7 10l5 5 5-5z"})),Ky=e=>{const{classes:t}=e,r=ve({root:["root"]},mu,t);return{...t,...r}},Fi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>jt(e)&&e!=="variant"},Qy=W(Ii,Fi)(""),Xy=W(Oi,Fi)(""),Zy=W(Ri,Fi)(""),Li=v.forwardRef(function(t,n){const r=Oe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=hu,id:d,input:h,inputProps:b,label:p,labelId:g,MenuProps:y,multiple:C=!1,native:P=!1,onClose:S,onOpen:x,open:T,renderValue:M,SelectDisplayProps:$,variant:R="outlined",...F}=r,E=P?Wy:qy,I=Bt(),f=jn({props:r,muiFormControl:I,states:["variant","error"]}),O=f.variant||R,D={...r,variant:O,classes:i},k=Ky(D),{root:w,...A}=k,N=h||{standard:m.jsx(Qy,{ownerState:D}),outlined:m.jsx(Xy,{label:p,ownerState:D}),filled:m.jsx(Zy,{ownerState:D})}[O],L=Fe(n,pr(N));return m.jsx(v.Fragment,{children:v.cloneElement(N,{inputComponent:E,inputProps:{children:s,error:f.error,IconComponent:u,variant:O,type:void 0,multiple:C,...P?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:y,onClose:S,onOpen:x,open:T,renderValue:M,SelectDisplayProps:{id:d,...$}},...b,classes:b?ft(A,b.classes):A,...h?h.props.inputProps:{}},...(C&&P||c)&&O==="outlined"?{notched:!0}:{},ref:L,className:me(N.props.className,a,k.root),...!h&&{variant:O},...F})})});Li.muiName="Select";function Jy(e){return Se("MuiTextField",e)}be("MuiTextField",["root"]);const eb={standard:Ii,filled:Ri,outlined:Oi},tb=e=>{const{classes:t}=e;return ve({root:["root"]},Jy,t)},nb=W(Ei,{name:"MuiTextField",slot:"Root"})({}),Ni=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:p,id:g,InputLabelProps:y,inputProps:C,InputProps:P,inputRef:S,label:x,maxRows:T,minRows:M,multiline:$=!1,name:R,onBlur:F,onChange:E,onFocus:I,placeholder:f,required:O=!1,rows:D,select:k=!1,SelectProps:w,slots:A={},slotProps:N={},type:L,value:_,variant:K="outlined",...Y}=r,ae={...r,autoFocus:s,color:l,disabled:u,error:d,fullWidth:b,multiline:$,required:O,select:k,variant:K},le=tb(ae),V=_t(g),q=p&&V?`${V}-helper-text`:void 0,ne=x&&V?`${V}-label`:void 0,Q=eb[K],z={slots:A,slotProps:{input:P,inputLabel:y,htmlInput:C,formHelperText:h,select:w,...N}},G={},se=z.slotProps.inputLabel;K==="outlined"&&(se&&typeof se.shrink<"u"&&(G.notched=se.shrink),G.label=x),k&&((!w||!w.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[oe,B]=We("root",{elementType:nb,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...Y},ownerState:ae,className:me(le.root,a),ref:n,additionalProps:{disabled:u,error:d,fullWidth:b,required:O,color:l,variant:K}}),[ee,ce]=We("input",{elementType:Q,externalForwardedProps:z,additionalProps:G,ownerState:ae}),[te,pe]=We("inputLabel",{elementType:$i,externalForwardedProps:z,ownerState:ae}),[H,ye]=We("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:ae}),[de,Me]=We("formHelperText",{elementType:ru,externalForwardedProps:z,ownerState:ae}),[he,et]=We("select",{elementType:Li,externalForwardedProps:z,ownerState:ae}),Le=m.jsx(ee,{"aria-describedby":q,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:$,name:R,rows:D,maxRows:T,minRows:M,type:L,value:_,id:V,inputRef:S,onBlur:F,onChange:E,onFocus:I,placeholder:f,inputProps:ye,slots:{input:A.htmlInput?H:void 0},...ce});return m.jsxs(oe,{...B,children:[x!=null&&x!==""&&m.jsx(te,{htmlFor:V,id:ne,...pe,children:x}),k?m.jsx(he,{"aria-describedby":q,id:V,labelId:ne,value:_,input:Le,...et,children:i}):Le,p&&m.jsx(de,{id:q,...Me,children:p})]})});function rb(e){return Se("MuiTypography",e)}const ob=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),sb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ib=jm(),ab=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(a,rb,i)},lb=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Re(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ue(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),fl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gn=v.forwardRef(function(t,n){const{color:r,...o}=Oe({props:t,name:"MuiTypography"}),s=!sb[r],i=ib({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:h=!1,variant:b="body1",variantMapping:p=fl,...g}=i,y={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:h,variant:b,variantMapping:p},C=c||(h?"p":p[b]||fl[b])||"span",P=ab(y);return m.jsx(lb,{as:C,ref:n,className:me(P.root,l),...g,ownerState:y,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})}),cb=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function ml({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function hl(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function ub(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=hl(u));const d=u?a.filter(h=>{let b=(s||c)(h);return n&&(b=b.toLowerCase()),t&&(b=hl(b)),o==="start"?b.startsWith(u):b.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const db=ub(),gl=5,pb=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),fb=[];function yl(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function mb(e){const{unstable_isActiveElementInListbox:t=pb,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?fb:null,disableClearable:d=!1,disableCloseOnSelect:h=!1,disabled:b,disabledItemsFocusable:p=!1,disableListWrap:g=!1,filterOptions:y=db,filterSelectedOptions:C=!1,freeSolo:P=!1,getOptionDisabled:S,getOptionKey:x,getOptionLabel:T=J=>J.label??J,groupBy:M,handleHomeEndKeys:$=!e.freeSolo,id:R,includeInputInList:F=!1,inputValue:E,isOptionEqualToValue:I=(J,Z)=>J===Z,multiple:f=!1,onChange:O,onClose:D,onHighlightChange:k,onInputChange:w,onOpen:A,open:N,openOnFocus:L=!1,options:_,readOnly:K=!1,renderValue:Y,selectOnFocus:ae=!e.freeSolo,value:le}=e,V=_t(R);let q=T;q=J=>{const Z=T(J);return typeof Z!="string"?String(Z):Z};const ne=v.useRef(!1),Q=v.useRef(!0),z=v.useRef(null),G=v.useRef(null),[se,oe]=v.useState(null),[B,ee]=v.useState(-1),ce=o?0:-1,te=v.useRef(ce),pe=v.useRef(yl(u??le,f,q)).current,[H,ye]=Mt({controlled:le,default:u,name:c}),[de,Me]=Mt({controlled:E,default:pe,name:c,state:"inputValue"}),[he,et]=v.useState(!1),Le=v.useCallback((J,Z,ge)=>{if(!(f?H.length<Z.length:Z!==null)&&!a)return;const Pe=yl(Z,f,q,Y);de!==Pe&&(Me(Pe),w&&w(J,Pe,ge))},[q,de,f,w,Me,a,H,Y]),[Xe,nt]=Mt({controlled:N,default:!1,name:c,state:"open"}),[mt,rt]=v.useState(!0),xt=!f&&H!=null&&de===q(H),_e=Xe&&!K,Ce=_e?y(_.filter(J=>!(C&&(f?H:[H]).some(Z=>Z!==null&&I(J,Z)))),{inputValue:xt&&mt?"":de,getOptionLabel:q}):[],tt=cb({filteredOptions:Ce,value:H,inputValue:de});v.useEffect(()=>{const J=H!==tt.value;he&&!J||P&&!J||Le(null,H,"reset")},[H,Le,he,tt.value,P]);const St=Xe&&Ce.length>0&&!K,ut=fe(J=>{if(J===-1)z.current.focus();else{const Z=Y?"data-item-index":"data-tag-index";se.querySelector(`[${Z}="${J}"]`).focus()}});v.useEffect(()=>{f&&B>H.length-1&&(ee(-1),ut(-1))},[H,f,B,ut]);function xe(J,Z){if(!G.current||J<0||J>=Ce.length)return-1;let ge=J;for(;;){const we=G.current.querySelector(`[data-option-index="${ge}"]`),Pe=p?!1:!we||we.disabled||we.getAttribute("aria-disabled")==="true";if(we&&we.hasAttribute("tabindex")&&!Pe)return ge;if(Z==="next"?ge=(ge+1)%Ce.length:ge=(ge-1+Ce.length)%Ce.length,ge===J)return-1}}const Te=fe(({event:J,index:Z,reason:ge})=>{if(te.current=Z,Z===-1?z.current.removeAttribute("aria-activedescendant"):z.current.setAttribute("aria-activedescendant",`${V}-option-${Z}`),k&&["mouse","keyboard","touch"].includes(ge)&&k(J,Z===-1?null:Ce[Z],ge),!G.current)return;const we=G.current.querySelector(`[role="option"].${n}-focused`);we&&(we.classList.remove(`${n}-focused`),we.classList.remove(`${n}-focusVisible`));let Pe=G.current;if(G.current.getAttribute("role")!=="listbox"&&(Pe=G.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(Z===-1){Pe.scrollTop=0;return}const lt=G.current.querySelector(`[data-option-index="${Z}"]`);if(lt&&(lt.classList.add(`${n}-focused`),ge==="keyboard"&&lt.classList.add(`${n}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ge!=="mouse"&&ge!=="touch")){const Ze=lt,Vt=Pe.clientHeight+Pe.scrollTop,io=Ze.offsetTop+Ze.offsetHeight;io>Vt?Pe.scrollTop=io-Pe.clientHeight:Ze.offsetTop-Ze.offsetHeight*(M?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ze.offsetTop-Ze.offsetHeight*(M?1.3:0))}}),$e=fe(({event:J,diff:Z,direction:ge="next",reason:we})=>{if(!_e)return;const lt=xe((()=>{const Ze=Ce.length-1;if(Z==="reset")return ce;if(Z==="start")return 0;if(Z==="end")return Ze;const Vt=te.current+Z;return Vt<0?Vt===-1&&F?-1:g&&te.current!==-1||Math.abs(Z)>1?0:Ze:Vt>Ze?Vt===Ze+1&&F?-1:g||Math.abs(Z)>1?Ze:0:Vt})(),ge);if(Te({index:lt,reason:we,event:J}),r&&Z!=="reset")if(lt===-1)z.current.value=de;else{const Ze=q(Ce[lt]);z.current.value=Ze,Ze.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&z.current.setSelectionRange(de.length,Ze.length)}}),Ct=!ml({array1:tt.filteredOptions,array2:Ce,parser:q}),Ne=()=>{const J=(Z,ge)=>{const we=Z?q(Z):"",Pe=ge?q(ge):"";return we===Pe};if(te.current!==-1&&!ml({array1:tt.filteredOptions,array2:Ce,parser:q})&&tt.inputValue===de&&(f?H.length===tt.value.length&&tt.value.every((Z,ge)=>q(H[ge])===q(Z)):J(tt.value,H))){const Z=tt.filteredOptions[te.current];if(Z)return Ce.findIndex(ge=>q(ge)===q(Z))}return-1},pt=v.useCallback(()=>{if(!_e)return;const J=Ne();if(J!==-1){te.current=J;return}const Z=f?H[0]:H;if(Ce.length===0||Z==null){$e({diff:"reset"});return}if(G.current){if(Z!=null){const ge=Ce[te.current];if(f&&ge&&H.findIndex(Pe=>I(ge,Pe))!==-1)return;const we=Ce.findIndex(Pe=>I(Pe,Z));we===-1?$e({diff:"reset"}):Te({index:we});return}if(te.current>=Ce.length-1){Te({index:Ce.length-1});return}Te({index:te.current})}},[Ce.length,f?!1:H,C,$e,Te,_e,de,f]),ht=fe(J=>{Vs(G,J),J&&pt()});v.useEffect(()=>{Ct&&pt()},[pt,Ct]);const it=J=>{Xe||(nt(!0),rt(!0),A&&A(J))},bn=(J,Z)=>{Xe&&(nt(!1),D&&D(J,Z))},Xt=(J,Z,ge,we)=>{if(f){if(H.length===Z.length&&H.every((Pe,lt)=>Pe===Z[lt]))return}else if(H===Z)return;O&&O(J,Z,ge,we),ye(Z)},Zt=v.useRef(!1),ln=(J,Z,ge="selectOption",we="options")=>{let Pe=ge,lt=Z;if(f){lt=Array.isArray(H)?H.slice():[];const Ze=lt.findIndex(Vt=>I(Z,Vt));Ze===-1?lt.push(Z):we!=="freeSolo"&&(lt.splice(Ze,1),Pe="removeOption")}Le(J,lt,Pe),Xt(J,lt,Pe,{option:Z}),!h&&(!J||!J.ctrlKey&&!J.metaKey)&&bn(J,Pe),(i===!0||i==="touch"&&Zt.current||i==="mouse"&&!Zt.current)&&z.current.blur()};function fs(J,Z){if(J===-1)return-1;let ge=J;for(;;){if(Z==="next"&&ge===H.length||Z==="previous"&&ge===-1)return-1;const we=Y?"data-item-index":"data-tag-index",Pe=se.querySelector(`[${we}="${ge}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ge+=Z==="next"?1:-1;else return ge}}const vn=(J,Z)=>{if(!f)return;de===""&&bn(J,"toggleInput");let ge=B;B===-1?de===""&&Z==="previous"&&(ge=H.length-1):(ge+=Z==="next"?1:-1,ge<0&&(ge=0),ge===H.length&&(ge=-1)),ge=fs(ge,Z),ee(ge),ut(ge)},oo=J=>{ne.current=!0,Me(""),w&&w(J,"","clear"),Xt(J,f?[]:null,"clear")},ms=J=>Z=>{if(J.onKeyDown&&J.onKeyDown(Z),!Z.defaultMuiPrevented&&(B!==-1&&!["ArrowLeft","ArrowRight"].includes(Z.key)&&(ee(-1),ut(-1)),Z.which!==229))switch(Z.key){case"Home":_e&&$&&(Z.preventDefault(),$e({diff:"start",direction:"next",reason:"keyboard",event:Z}));break;case"End":_e&&$&&(Z.preventDefault(),$e({diff:"end",direction:"previous",reason:"keyboard",event:Z}));break;case"PageUp":Z.preventDefault(),$e({diff:-gl,direction:"previous",reason:"keyboard",event:Z}),it(Z);break;case"PageDown":Z.preventDefault(),$e({diff:gl,direction:"next",reason:"keyboard",event:Z}),it(Z);break;case"ArrowDown":Z.preventDefault(),$e({diff:1,direction:"next",reason:"keyboard",event:Z}),it(Z);break;case"ArrowUp":Z.preventDefault(),$e({diff:-1,direction:"previous",reason:"keyboard",event:Z}),it(Z);break;case"ArrowLeft":!f&&Y?ut(0):vn(Z,"previous");break;case"ArrowRight":!f&&Y?ut(-1):vn(Z,"next");break;case"Enter":if(te.current!==-1&&_e){const ge=Ce[te.current],we=S?S(ge):!1;if(Z.preventDefault(),we)return;ln(Z,ge,"selectOption"),r&&z.current.setSelectionRange(z.current.value.length,z.current.value.length)}else P&&de!==""&&xt===!1&&(f&&Z.preventDefault(),ln(Z,de,"createOption","freeSolo"));break;case"Escape":_e?(Z.preventDefault(),Z.stopPropagation(),bn(Z,"escape")):l&&(de!==""||f&&H.length>0||Y)&&(Z.preventDefault(),Z.stopPropagation(),oo(Z));break;case"Backspace":if(f&&!K&&de===""&&H.length>0){const ge=B===-1?H.length-1:B,we=H.slice();we.splice(ge,1),Xt(Z,we,"removeOption",{option:H[ge]})}!f&&Y&&!K&&(ye(null),ut(-1));break;case"Delete":if(f&&!K&&de===""&&H.length>0&&B!==-1){const ge=B,we=H.slice();we.splice(ge,1),Xt(Z,we,"removeOption",{option:H[ge]})}!f&&Y&&!K&&(ye(null),ut(-1));break}},Vn=J=>{et(!0),L&&!ne.current&&it(J)},zn=J=>{if(t(G)){z.current.focus();return}et(!1),Q.current=!0,ne.current=!1,s&&te.current!==-1&&_e?ln(J,Ce[te.current],"blur"):s&&P&&de!==""?ln(J,de,"blur","freeSolo"):a&&Le(J,H,"blur"),bn(J,"blur")},fr=J=>{const Z=J.target.value;de!==Z&&(Me(Z),rt(!1),w&&w(J,Z,"input")),Z===""?!d&&!f&&Xt(J,null,"clear"):it(J)},hs=J=>{const Z=Number(J.currentTarget.getAttribute("data-option-index"));te.current!==Z&&Te({event:J,index:Z,reason:"mouse"})},gs=J=>{Te({event:J,index:Number(J.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Zt.current=!0},ys=J=>{const Z=Number(J.currentTarget.getAttribute("data-option-index"));ln(J,Ce[Z],"selectOption"),Zt.current=!1},bs=J=>Z=>{const ge=H.slice();ge.splice(J,1),Xt(Z,ge,"removeOption",{option:H[J]})},mr=J=>{Xt(J,null,"removeOption",{option:H})},ot=J=>{Xe?bn(J,"toggleInput"):it(J)},at=J=>{J.currentTarget.contains(J.target)&&J.target.getAttribute("id")!==V&&J.preventDefault()},cn=J=>{J.currentTarget.contains(J.target)&&(z.current.focus(),ae&&Q.current&&z.current.selectionEnd-z.current.selectionStart===0&&z.current.select(),Q.current=!1)},vs=J=>{!b&&(de===""||!Xe)&&ot(J)};let hr=P&&de.length>0;hr=hr||(f?H.length>0:H!==null);let so=Ce;return M&&(so=Ce.reduce((J,Z,ge)=>{const we=M(Z);return J.length>0&&J[J.length-1].group===we?J[J.length-1].options.push(Z):J.push({key:ge,index:ge,group:we,options:[Z]}),J},[])),b&&he&&zn(),{getRootProps:(J={})=>({...J,onKeyDown:ms(J),onMouseDown:at,onClick:cn}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:de,onBlur:zn,onFocus:Vn,onChange:fr,onMouseDown:vs,"aria-activedescendant":_e?"":null,"aria-autocomplete":r?"both":"list","aria-controls":St?`${V}-listbox`:void 0,"aria-expanded":St,autoComplete:"off",ref:z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:oo}),getItemProps:({index:J=0}={})=>({...f&&{key:J},...Y?{"data-item-index":J}:{"data-tag-index":J},tabIndex:-1,...!K&&{onDelete:f?bs(J):mr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ot}),getTagProps:({index:J})=>({key:J,"data-tag-index":J,tabIndex:-1,...!K&&{onDelete:bs(J)}}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:ht,onMouseDown:J=>{J.preventDefault()}}),getOptionProps:({index:J,option:Z})=>{const ge=(f?H:[H]).some(Pe=>Pe!=null&&I(Z,Pe)),we=S?S(Z):!1;return{key:x?.(Z)??q(Z),tabIndex:-1,role:"option",id:`${V}-option-${J}`,onMouseMove:hs,onClick:ys,onTouchStart:gs,"data-option-index":J,"aria-disabled":we,"aria-selected":ge}},id:V,inputValue:de,value:H,dirty:hr,expanded:_e&&se,popupOpen:_e,focused:he||B!==-1,anchorEl:se,setAnchorEl:oe,focusedItem:B,focusedTag:B,groupedOptions:so}}var bt="top",At="bottom",Ft="right",vt="left",ji="auto",eo=[bt,At,Ft,vt],ar="start",zr="end",hb="clippingParents",gu="viewport",xr="popper",gb="reference",bl=eo.reduce(function(e,t){return e.concat([t+"-"+ar,t+"-"+zr])},[]),yu=[].concat(eo,[ji]).reduce(function(e,t){return e.concat([t,t+"-"+ar,t+"-"+zr])},[]),yb="beforeRead",bb="read",vb="afterRead",xb="beforeMain",Sb="main",Cb="afterMain",wb="beforeWrite",Pb="write",kb="afterWrite",Mb=[yb,bb,vb,xb,Sb,Cb,wb,Pb,kb];function Kt(e){return e?(e.nodeName||"").toLowerCase():null}function Dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function En(e){var t=Dt(e).Element;return e instanceof t||e instanceof Element}function Et(e){var t=Dt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bi(e){if(typeof ShadowRoot>"u")return!1;var t=Dt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Db(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Et(s)||!Kt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function Tb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!Et(o)||!Kt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Ib={name:"applyStyles",enabled:!0,phase:"write",fn:Db,effect:Tb,requires:["computeStyles"]};function qt(e){return e.split("-")[0]}var On=Math.max,No=Math.min,lr=Math.round;function Qs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bu(){return!/^((?!chrome|android).)*safari/i.test(Qs())}function cr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Et(e)&&(o=e.offsetWidth>0&&lr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&lr(r.height)/e.offsetHeight||1);var i=En(e)?Dt(e):window,a=i.visualViewport,l=!bu()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/o,h=r.height/s;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Vi(e){var t=cr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function vu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function on(e){return Dt(e).getComputedStyle(e)}function Rb(e){return["table","td","th"].indexOf(Kt(e))>=0}function yn(e){return((En(e)?e.ownerDocument:e.document)||window.document).documentElement}function ss(e){return Kt(e)==="html"?e:e.assignedSlot||e.parentNode||(Bi(e)?e.host:null)||yn(e)}function vl(e){return!Et(e)||on(e).position==="fixed"?null:e.offsetParent}function Ob(e){var t=/firefox/i.test(Qs()),n=/Trident/i.test(Qs());if(n&&Et(e)){var r=on(e);if(r.position==="fixed")return null}var o=ss(e);for(Bi(o)&&(o=o.host);Et(o)&&["html","body"].indexOf(Kt(o))<0;){var s=on(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function to(e){for(var t=Dt(e),n=vl(e);n&&Rb(n)&&on(n).position==="static";)n=vl(n);return n&&(Kt(n)==="html"||Kt(n)==="body"&&on(n).position==="static")?t:n||Ob(e)||t}function zi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ar(e,t,n){return On(e,No(t,n))}function $b(e,t,n){var r=Ar(e,t,n);return r>n?n:r}function xu(){return{top:0,right:0,bottom:0,left:0}}function Su(e){return Object.assign({},xu(),e)}function Cu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Eb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Su(typeof t!="number"?t:Cu(t,eo))};function Ab(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=qt(n.placement),l=zi(a),c=[vt,Ft].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var d=Eb(o.padding,n),h=Vi(s),b=l==="y"?bt:vt,p=l==="y"?At:Ft,g=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],C=to(s),P=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,S=g/2-y/2,x=d[b],T=P-h[u]-d[p],M=P/2-h[u]/2+S,$=Ar(x,M,T),R=l;n.modifiersData[r]=(t={},t[R]=$,t.centerOffset=$-M,t)}}function Fb(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||vu(t.elements.popper,o)&&(t.elements.arrow=o))}const Lb={name:"arrow",enabled:!0,phase:"main",fn:Ab,effect:Fb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ur(e){return e.split("-")[1]}var Nb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:lr(n*o)/o||0,y:lr(r*o)/o||0}}function xl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=i.x,b=h===void 0?0:h,p=i.y,g=p===void 0?0:p,y=typeof u=="function"?u({x:b,y:g}):{x:b,y:g};b=y.x,g=y.y;var C=i.hasOwnProperty("x"),P=i.hasOwnProperty("y"),S=vt,x=bt,T=window;if(c){var M=to(n),$="clientHeight",R="clientWidth";if(M===Dt(n)&&(M=yn(n),on(M).position!=="static"&&a==="absolute"&&($="scrollHeight",R="scrollWidth")),M=M,o===bt||(o===vt||o===Ft)&&s===zr){x=At;var F=d&&M===T&&T.visualViewport?T.visualViewport.height:M[$];g-=F-r.height,g*=l?1:-1}if(o===vt||(o===bt||o===At)&&s===zr){S=Ft;var E=d&&M===T&&T.visualViewport?T.visualViewport.width:M[R];b-=E-r.width,b*=l?1:-1}}var I=Object.assign({position:a},c&&Nb),f=u===!0?jb({x:b,y:g},Dt(n)):{x:b,y:g};if(b=f.x,g=f.y,l){var O;return Object.assign({},I,(O={},O[x]=P?"0":"",O[S]=C?"0":"",O.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",O))}return Object.assign({},I,(t={},t[x]=P?g+"px":"",t[S]=C?b+"px":"",t.transform="",t))}function Bb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:qt(t.placement),variation:ur(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xl(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xl(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bb,data:{}};var po={passive:!0};function zb(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=Dt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,po)}),a&&l.addEventListener("resize",n.update,po),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,po)}),a&&l.removeEventListener("resize",n.update,po)}}const Wb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zb,data:{}};var _b={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,function(t){return _b[t]})}var Hb={start:"end",end:"start"};function Sl(e){return e.replace(/start|end/g,function(t){return Hb[t]})}function Wi(e){var t=Dt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _i(e){return cr(yn(e)).left+Wi(e).scrollLeft}function Ub(e,t){var n=Dt(e),r=yn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=bu();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+_i(e),y:l}}function Yb(e){var t,n=yn(e),r=Wi(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=On(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=On(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+_i(e),l=-r.scrollTop;return on(o||n).direction==="rtl"&&(a+=On(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Hi(e){var t=on(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function wu(e){return["html","body","#document"].indexOf(Kt(e))>=0?e.ownerDocument.body:Et(e)&&Hi(e)?e:wu(ss(e))}function Fr(e,t){var n;t===void 0&&(t=[]);var r=wu(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Dt(r),i=o?[s].concat(s.visualViewport||[],Hi(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(Fr(ss(i)))}function Xs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Gb(e,t){var n=cr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cl(e,t,n){return t===gu?Xs(Ub(e,n)):En(t)?Gb(t,n):Xs(Yb(yn(e)))}function qb(e){var t=Fr(ss(e)),n=["absolute","fixed"].indexOf(on(e).position)>=0,r=n&&Et(e)?to(e):e;return En(r)?t.filter(function(o){return En(o)&&vu(o,r)&&Kt(o)!=="body"}):[]}function Kb(e,t,n,r){var o=t==="clippingParents"?qb(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=Cl(e,c,r);return l.top=On(u.top,l.top),l.right=No(u.right,l.right),l.bottom=No(u.bottom,l.bottom),l.left=On(u.left,l.left),l},Cl(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Pu(e){var t=e.reference,n=e.element,r=e.placement,o=r?qt(r):null,s=r?ur(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case bt:l={x:i,y:t.y-n.height};break;case At:l={x:i,y:t.y+t.height};break;case Ft:l={x:t.x+t.width,y:a};break;case vt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?zi(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case ar:l[c]=l[c]-(t[u]/2-n[u]/2);break;case zr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Wr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?hb:a,c=n.rootBoundary,u=c===void 0?gu:c,d=n.elementContext,h=d===void 0?xr:d,b=n.altBoundary,p=b===void 0?!1:b,g=n.padding,y=g===void 0?0:g,C=Su(typeof y!="number"?y:Cu(y,eo)),P=h===xr?gb:xr,S=e.rects.popper,x=e.elements[p?P:h],T=Kb(En(x)?x:x.contextElement||yn(e.elements.popper),l,u,i),M=cr(e.elements.reference),$=Pu({reference:M,element:S,placement:o}),R=Xs(Object.assign({},S,$)),F=h===xr?R:M,E={top:T.top-F.top+C.top,bottom:F.bottom-T.bottom+C.bottom,left:T.left-F.left+C.left,right:F.right-T.right+C.right},I=e.modifiersData.offset;if(h===xr&&I){var f=I[o];Object.keys(E).forEach(function(O){var D=[Ft,At].indexOf(O)>=0?1:-1,k=[bt,At].indexOf(O)>=0?"y":"x";E[O]+=f[k]*D})}return E}function Qb(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?yu:l,u=ur(r),d=u?a?bl:bl.filter(function(p){return ur(p)===u}):eo,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d);var b=h.reduce(function(p,g){return p[g]=Wr(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[qt(g)],p},{});return Object.keys(b).sort(function(p,g){return b[p]-b[g]})}function Xb(e){if(qt(e)===ji)return[];var t=Co(e);return[Sl(e),t,Sl(t)]}function Zb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,p=b===void 0?!0:b,g=n.allowedAutoPlacements,y=t.options.placement,C=qt(y),P=C===y,S=l||(P||!p?[Co(y)]:Xb(y)),x=[y].concat(S).reduce(function(le,V){return le.concat(qt(V)===ji?Qb(t,{placement:V,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):V)},[]),T=t.rects.reference,M=t.rects.popper,$=new Map,R=!0,F=x[0],E=0;E<x.length;E++){var I=x[E],f=qt(I),O=ur(I)===ar,D=[bt,At].indexOf(f)>=0,k=D?"width":"height",w=Wr(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),A=D?O?Ft:vt:O?At:bt;T[k]>M[k]&&(A=Co(A));var N=Co(A),L=[];if(s&&L.push(w[f]<=0),a&&L.push(w[A]<=0,w[N]<=0),L.every(function(le){return le})){F=I,R=!1;break}$.set(I,L)}if(R)for(var _=p?3:1,K=function(V){var q=x.find(function(ne){var Q=$.get(ne);if(Q)return Q.slice(0,V).every(function(z){return z})});if(q)return F=q,"break"},Y=_;Y>0;Y--){var ae=K(Y);if(ae==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const Jb={name:"flip",enabled:!0,phase:"main",fn:Zb,requiresIfExists:["offset"],data:{_skip:!1}};function wl(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pl(e){return[bt,Ft,At,vt].some(function(t){return e[t]>=0})}function ev(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Wr(t,{elementContext:"reference"}),a=Wr(t,{altBoundary:!0}),l=wl(i,r),c=wl(a,o,s),u=Pl(l),d=Pl(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const tv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ev};function nv(e,t,n){var r=qt(e),o=[vt,bt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[vt,Ft].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function rv(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=yu.reduce(function(u,d){return u[d]=nv(d,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const ov={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rv};function sv(e){var t=e.state,n=e.name;t.modifiersData[n]=Pu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const iv={name:"popperOffsets",enabled:!0,phase:"read",fn:sv,data:{}};function av(e){return e==="x"?"y":"x"}function lv(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,b=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,y=Wr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),C=qt(t.placement),P=ur(t.placement),S=!P,x=zi(C),T=av(x),M=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,F=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,E=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,f={x:0,y:0};if(M){if(s){var O,D=x==="y"?bt:vt,k=x==="y"?At:Ft,w=x==="y"?"height":"width",A=M[x],N=A+y[D],L=A-y[k],_=b?-R[w]/2:0,K=P===ar?$[w]:R[w],Y=P===ar?-R[w]:-$[w],ae=t.elements.arrow,le=b&&ae?Vi(ae):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xu(),q=V[D],ne=V[k],Q=Ar(0,$[w],le[w]),z=S?$[w]/2-_-Q-q-E.mainAxis:K-Q-q-E.mainAxis,G=S?-$[w]/2+_+Q+ne+E.mainAxis:Y+Q+ne+E.mainAxis,se=t.elements.arrow&&to(t.elements.arrow),oe=se?x==="y"?se.clientTop||0:se.clientLeft||0:0,B=(O=I?.[x])!=null?O:0,ee=A+z-B-oe,ce=A+G-B,te=Ar(b?No(N,ee):N,A,b?On(L,ce):L);M[x]=te,f[x]=te-A}if(a){var pe,H=x==="x"?bt:vt,ye=x==="x"?At:Ft,de=M[T],Me=T==="y"?"height":"width",he=de+y[H],et=de-y[ye],Le=[bt,vt].indexOf(C)!==-1,Xe=(pe=I?.[T])!=null?pe:0,nt=Le?he:de-$[Me]-R[Me]-Xe+E.altAxis,mt=Le?de+$[Me]+R[Me]-Xe-E.altAxis:et,rt=b&&Le?$b(nt,de,mt):Ar(b?nt:he,de,b?mt:et);M[T]=rt,f[T]=rt-de}t.modifiersData[r]=f}}const cv={name:"preventOverflow",enabled:!0,phase:"main",fn:lv,requiresIfExists:["offset"]};function uv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dv(e){return e===Dt(e)||!Et(e)?Wi(e):uv(e)}function pv(e){var t=e.getBoundingClientRect(),n=lr(t.width)/e.offsetWidth||1,r=lr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fv(e,t,n){n===void 0&&(n=!1);var r=Et(t),o=Et(t)&&pv(t),s=yn(t),i=cr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Kt(t)!=="body"||Hi(s))&&(a=dv(t)),Et(t)?(l=cr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=_i(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function mv(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function hv(e){var t=mv(e);return Mb.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function gv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yv(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var kl={placement:"bottom",modifiers:[],strategy:"absolute"};function Ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function bv(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?kl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},kl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,b={state:u,setOptions:function(C){var P=typeof C=="function"?C(u.options):C;g(),u.options=Object.assign({},s,u.options,P),u.scrollParents={reference:En(a)?Fr(a):a.contextElement?Fr(a.contextElement):[],popper:Fr(l)};var S=hv(yv([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(x){return x.enabled}),p(),b.update()},forceUpdate:function(){if(!h){var C=u.elements,P=C.reference,S=C.popper;if(Ml(P,S)){u.rects={reference:fv(P,to(S),u.options.strategy==="fixed"),popper:Vi(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var T=u.orderedModifiers[x],M=T.fn,$=T.options,R=$===void 0?{}:$,F=T.name;typeof M=="function"&&(u=M({state:u,options:R,name:F,instance:b})||u)}}}},update:gv(function(){return new Promise(function(y){b.forceUpdate(),y(u)})}),destroy:function(){g(),h=!0}};if(!Ml(a,l))return b;b.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function p(){u.orderedModifiers.forEach(function(y){var C=y.name,P=y.options,S=P===void 0?{}:P,x=y.effect;if(typeof x=="function"){var T=x({state:u,name:C,instance:b,options:S}),M=function(){};d.push(T||M)}})}function g(){d.forEach(function(y){return y()}),d=[]}return b}}var vv=[Wb,iv,Vb,Ib,ov,Jb,cv,Lb,tv],xv=bv({defaultModifiers:vv});function Sv(e){return Se("MuiPopper",e)}be("MuiPopper",["root"]);function Cv(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Zs(e){return typeof e=="function"?e():e}function wv(e){return e.nodeType!==void 0}const Pv=e=>{const{classes:t}=e;return ve({root:["root"]},Sv,t)},kv={},Mv=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:h={},slots:b={},TransitionProps:p,ownerState:g,...y}=t,C=v.useRef(null),P=Fe(C,n),S=v.useRef(null),x=Fe(S,d),T=v.useRef(x);st(()=>{T.current=x},[x]),v.useImperativeHandle(d,()=>S.current,[]);const M=Cv(c,s),[$,R]=v.useState(M),[F,E]=v.useState(Zs(r));v.useEffect(()=>{S.current&&S.current.forceUpdate()}),v.useEffect(()=>{r&&E(Zs(r))},[r]),st(()=>{if(!F||!l)return;const k=N=>{R(N.placement)};let w=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{k(N)}}];a!=null&&(w=w.concat(a)),u&&u.modifiers!=null&&(w=w.concat(u.modifiers));const A=xv(F,C.current,{placement:M,...u,modifiers:w});return T.current(A),()=>{A.destroy(),T.current(null)}},[F,i,a,l,u,M]);const I={placement:$};p!==null&&(I.TransitionProps=p);const f=Pv(t),O=b.root??"div",D=Ae({elementType:O,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:f.root});return m.jsx(O,{...D,children:typeof o=="function"?o(I):o})}),Dv=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:h=kv,popperRef:b,style:p,transition:g=!1,slotProps:y={},slots:C={},...P}=t,[S,x]=v.useState(!0),T=()=>{x(!1)},M=()=>{x(!0)};if(!l&&!u&&(!g||S))return null;let $;if(s)$=s;else if(r){const E=Zs(r);$=E&&wv(E)?dt(E).body:dt(null).body}const R=!u&&l&&(!g||S)?"none":void 0,F=g?{in:u,onEnter:T,onExited:M}:void 0;return m.jsx(lu,{disablePortal:a,container:$,children:m.jsx(Mv,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:g?!S:u,placement:d,popperOptions:h,popperRef:b,slotProps:y,slots:C,...P,style:{position:"fixed",top:0,left:0,display:R,...p},TransitionProps:F,children:o})})}),Tv=W(Dv,{name:"MuiPopper",slot:"Root"})({}),Ui=v.forwardRef(function(t,n){const r=Wt(),o=Oe({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:b,placement:p,popperOptions:g,popperRef:y,transition:C,slots:P,slotProps:S,...x}=o,T=P?.root??a?.Root,M={anchorEl:s,container:c,disablePortal:u,keepMounted:d,modifiers:h,open:b,placement:p,popperOptions:g,popperRef:y,transition:C,...x};return m.jsx(Tv,{as:i,direction:r?"rtl":"ltr",slots:{root:T},slotProps:S??l,...M,ref:n})});function Iv(e){return Se("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Rv=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return ve(i,Iv,t)},Ov=W("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Re(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Js=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:s,component:i,disableGutters:a,disableSticky:l,inset:c},h=Rv(d);return m.jsx(Ov,{as:i,className:me(h.root,o),ref:n,ownerState:d,...u})});Js&&(Js.muiSkipListHighlight=!0);const $v=ct(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Ev(e){return Se("MuiChip",e)}const Ie=be("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Av=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,a&&"clickable",a&&`clickableColor${ue(o)}`,i&&"deletable",i&&`deletableColor${ue(o)}`,`${l}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(l)}Color${ue(o)}`]};return ve(c,Ev,t)},Fv=W("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${Ie.avatar}`]:t.avatar},{[`& .${Ie.avatar}`]:t[`avatar${ue(a)}`]},{[`& .${Ie.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${Ie.icon}`]:t.icon},{[`& .${Ie.icon}`]:t[`icon${ue(a)}`]},{[`& .${Ie.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${Ie.deleteIcon}`]:t.deleteIcon},{[`& .${Ie.deleteIcon}`]:t[`deleteIcon${ue(a)}`]},{[`& .${Ie.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${Ie.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(r)}`]},t.root,t[`size${ue(a)}`],t[`color${ue(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ue(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ue(r)}`],t[l],t[`${l}${ue(r)}`]]}})(Re(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ie.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ie.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ie.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ie.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ie.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ie.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ie.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ie.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ie.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(yt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ie.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ie.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ie.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(yt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ie.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(yt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ie.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ie.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ie.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ie.avatar}`]:{marginLeft:4},[`& .${Ie.avatarSmall}`]:{marginLeft:2},[`& .${Ie.icon}`]:{marginLeft:4},[`& .${Ie.iconSmall}`]:{marginLeft:2},[`& .${Ie.deleteIcon}`]:{marginRight:5},[`& .${Ie.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(yt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Ie.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ie.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ie.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Lv=W("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Dl(e){return e.key==="Backspace"||e.key==="Delete"}const ku=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:h,onClick:b,onDelete:p,onKeyDown:g,onKeyUp:y,size:C="medium",variant:P="filled",tabIndex:S,skipFocusWhenDisabled:x=!1,slots:T={},slotProps:M={},...$}=r,R=v.useRef(null),F=Fe(R,n),E=q=>{q.stopPropagation(),p&&p(q)},I=q=>{q.currentTarget===q.target&&Dl(q)&&q.preventDefault(),g&&g(q)},f=q=>{q.currentTarget===q.target&&p&&Dl(q)&&p(q),y&&y(q)},O=i!==!1&&b?!0:i,D=O||p?ir:l||"div",k={...r,component:D,disabled:u,size:C,color:a,iconColor:v.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:O,variant:P},w=Av(k),A=D===ir?{component:l||"div",focusVisibleClassName:w.focusVisible,...p&&{disableRipple:!0}}:{};let N=null;p&&(N=c&&v.isValidElement(c)?v.cloneElement(c,{className:me(c.props.className,w.deleteIcon),onClick:E}):m.jsx($v,{className:w.deleteIcon,onClick:E}));let L=null;o&&v.isValidElement(o)&&(L=v.cloneElement(o,{className:me(w.avatar,o.props.className)}));let _=null;d&&v.isValidElement(d)&&(_=v.cloneElement(d,{className:me(w.icon,d.props.className)}));const K={slots:T,slotProps:M},[Y,ae]=We("root",{elementType:Fv,externalForwardedProps:{...K,...$},ownerState:k,shouldForwardComponentProp:!0,ref:F,className:me(w.root,s),additionalProps:{disabled:O&&u?!0:void 0,tabIndex:x&&u?-1:S,...A},getSlotProps:q=>({...q,onClick:ne=>{q.onClick?.(ne),b?.(ne)},onKeyDown:ne=>{q.onKeyDown?.(ne),I(ne)},onKeyUp:ne=>{q.onKeyUp?.(ne),f(ne)}})}),[le,V]=We("label",{elementType:Lv,externalForwardedProps:K,ownerState:k,className:w.label});return m.jsxs(Y,{as:D,...ae,children:[L||_,m.jsx(le,{...V,children:h}),N]})}),Nv=ct(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function jv(e){return Se("MuiAutocomplete",e)}const De=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Tl,Il;const Bv=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ve(d,jv,t)},Vv=W("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:a}=n;return[{[`& .${De.tag}`]:t.tag},{[`& .${De.tag}`]:t[`tagSize${ue(a)}`]},{[`& .${De.inputRoot}`]:t.inputRoot},{[`& .${De.input}`]:t.input},{[`& .${De.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${De.focused} .${De.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${De.clearIndicator}`]:{visibility:"visible"}},[`& .${De.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${De.inputRoot}`]:{[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:30},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:56},[`& .${De.input}`]:{width:0,minWidth:30}},[`& .${fn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${fn.root}.${wt.sizeSmall}`]:{[`& .${fn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Rt.root}`]:{padding:9,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${De.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Rt.root}.${wt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${De.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Pt.root}`]:{paddingTop:19,paddingLeft:8,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${Pt.input}`]:{padding:"7px 4px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Pt.root}.${wt.sizeSmall}`]:{paddingBottom:1,[`& .${Pt.input}`]:{padding:"2.5px 4px"}},[`& .${wt.hiddenLabel}`]:{paddingTop:8},[`& .${Pt.root}.${wt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${De.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Pt.root}.${wt.hiddenLabel}.${wt.sizeSmall}`]:{[`& .${De.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${De.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${De.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${De.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${De.inputRoot}`]:{flexWrap:"wrap"}}}]}),zv=W("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Wv=W(Nn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),_v=W(Nn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Hv=W(Ui,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${De.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Re(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Uv=W(Ln,{name:"MuiAutocomplete",slot:"Paper"})(Re(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Yv=W("div",{name:"MuiAutocomplete",slot:"Loading"})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Gv=W("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),qv=W("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Re(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${De.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${De.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${De.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Kv=W(Js,{name:"MuiAutocomplete",slot:"GroupLabel"})(Re(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Qv=W("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${De.option}`]:{paddingLeft:24}}),Mu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=Tl||(Tl=m.jsx(Nv,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:h=!1,clearText:b="Clear",closeText:p="Close",componentsProps:g,defaultValue:y=r.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:P=!1,disabled:S=!1,disabledItemsFocusable:x=!1,disableListWrap:T=!1,disablePortal:M=!1,filterOptions:$,filterSelectedOptions:R=!1,forcePopupIcon:F="auto",freeSolo:E=!1,fullWidth:I=!1,getLimitTagsText:f=Ee=>`+${Ee}`,getOptionDisabled:O,getOptionKey:D,getOptionLabel:k,isOptionEqualToValue:w,groupBy:A,handleHomeEndKeys:N=!r.freeSolo,id:L,includeInputInList:_=!1,inputValue:K,limitTags:Y=-1,ListboxComponent:ae,ListboxProps:le,loading:V=!1,loadingText:q="Loading…",multiple:ne=!1,noOptionsText:Q="No options",onChange:z,onClose:G,onHighlightChange:se,onInputChange:oe,onOpen:B,open:ee,openOnFocus:ce=!1,openText:te="Open",options:pe,PaperComponent:H,PopperComponent:ye,popupIcon:de=Il||(Il=m.jsx(hu,{})),readOnly:Me=!1,renderGroup:he,renderInput:et,renderOption:Le,renderTags:Xe,renderValue:nt,selectOnFocus:mt=!r.freeSolo,size:rt="medium",slots:xt={},slotProps:_e={},value:Ce,...tt}=r,{getRootProps:St,getInputProps:ut,getInputLabelProps:xe,getPopupIndicatorProps:Te,getClearProps:$e,getItemProps:Ct,getListboxProps:Ne,getOptionProps:pt,value:ht,dirty:it,expanded:bn,id:Xt,popupOpen:Zt,focused:ln,focusedItem:fs,anchorEl:vn,setAnchorEl:oo,inputValue:ms,groupedOptions:Vn}=mb({...r,componentName:"Autocomplete"}),zn=!C&&!S&&it&&!Me,fr=(!E||F===!0)&&F!==!1,{onMouseDown:hs}=ut(),{ref:gs,...ys}=Ne(),mr=k||(Ee=>Ee.label??Ee),ot={...r,disablePortal:M,expanded:bn,focused:ln,fullWidth:I,getOptionLabel:mr,hasClearIcon:zn,hasPopupIcon:fr,inputFocused:fs===-1,popupOpen:Zt,size:rt},at=Bv(ot),cn={slots:{paper:H,popper:ye,...xt},slotProps:{chip:l,listbox:le,...g,..._e}},[vs,hr]=We("listbox",{elementType:qv,externalForwardedProps:cn,ownerState:ot,className:at.listbox,additionalProps:ys,ref:gs}),[so,J]=We("paper",{elementType:Ln,externalForwardedProps:cn,ownerState:ot,className:at.paper}),[Z,ge]=We("popper",{elementType:Ui,externalForwardedProps:cn,ownerState:ot,className:at.popper,additionalProps:{disablePortal:M,style:{width:vn?vn.clientWidth:null},role:"presentation",anchorEl:vn,open:Zt}});let we;const Pe=Ee=>({className:at.tag,disabled:S,...Ct(Ee)});if(ne?ht.length>0&&(Xe?we=Xe(ht,Pe,ot):nt?we=nt(ht,Pe,ot):we=ht.map((Ee,un)=>{const{key:dn,...gr}=Pe({index:un});return m.jsx(ku,{label:mr(Ee),size:rt,...gr,...cn.slotProps.chip},dn)})):nt&&ht!=null&&(we=nt(ht,Pe,ot)),Y>-1&&Array.isArray(we)){const Ee=we.length-Y;!ln&&Ee>0&&(we=we.splice(0,Y),we.push(m.jsx("span",{className:at.tag,children:f(Ee)},we.length)))}const Ze=he||(Ee=>m.jsxs("li",{children:[m.jsx(Kv,{className:at.groupLabel,ownerState:ot,component:"div",children:Ee.group}),m.jsx(Qv,{className:at.groupUl,ownerState:ot,children:Ee.children})]},Ee.key)),io=Le||((Ee,un)=>{const{key:dn,...gr}=Ee;return m.jsx("li",{...gr,children:mr(un)},dn)}),ia=(Ee,un)=>{const dn=pt({option:Ee,index:un});return io({...dn,className:at.option},Ee,{selected:dn["aria-selected"],index:un,inputValue:ms},ot)},aa=cn.slotProps.clearIndicator,la=cn.slotProps.popupIndicator;return m.jsxs(v.Fragment,{children:[m.jsx(Vv,{ref:n,className:me(at.root,c),ownerState:ot,...St(tt),children:et({id:Xt,disabled:S,fullWidth:!0,size:rt==="small"?"small":void 0,InputLabelProps:xe(),InputProps:{ref:oo,className:at.inputRoot,startAdornment:we,onMouseDown:Ee=>{Ee.target===Ee.currentTarget&&hs(Ee)},...(zn||fr)&&{endAdornment:m.jsxs(zv,{className:at.endAdornment,ownerState:ot,children:[zn?m.jsx(Wv,{...$e(),"aria-label":b,title:b,ownerState:ot,...aa,className:me(at.clearIndicator,aa?.className),children:u}):null,fr?m.jsx(_v,{...Te(),disabled:S,"aria-label":Zt?p:te,title:Zt?p:te,ownerState:ot,...la,className:me(at.popupIndicator,la?.className),children:de}):null]})}},inputProps:{className:at.input,disabled:S,readOnly:Me,...ut()}})}),vn?m.jsx(Hv,{as:Z,...ge,children:m.jsxs(Uv,{as:so,...J,children:[V&&Vn.length===0?m.jsx(Yv,{className:at.loading,ownerState:ot,children:q}):null,Vn.length===0&&!E&&!V?m.jsx(Gv,{className:at.noOptions,ownerState:ot,role:"presentation",onMouseDown:Ee=>{Ee.preventDefault()},children:Q}):null,Vn.length>0?m.jsx(vs,{as:ae,...hr,children:Vn.map((Ee,un)=>A?Ze({key:Ee.key,group:Ee.group,children:Ee.options.map((dn,gr)=>ia(dn,Ee.index+gr))}):ia(Ee,un))}):null]})}):null]})});var wo={exports:{}},Xv=wo.exports,Rl;function Zv(){return Rl||(Rl=1,(function(e,t){(function(n,r){e.exports=r()})(Xv,(function(){var n="week",r="year";return function(o,s,i){var a=s.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(h,n,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(wo)),wo.exports}var Jv=Zv();const ex=sn(Jv);var Po={exports:{}},tx=Po.exports,Ol;function nx(){return Ol||(Ol=1,(function(e,t){(function(n,r){e.exports=r()})(tx,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(C){this[y]=+C}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var P=C.match(/([+-]|\d\d)/g),S=60*P[1]+(+P[2]||0);return S===0?0:P[0]==="+"?-S:S})(y)}],h=function(y){var C=l[y];return C&&(C.indexOf?C:C.s.concat(C.f))},b=function(y,C){var P,S=l.meridiem;if(S){for(var x=1;x<=24;x+=1)if(y.indexOf(S(x,0,C))>-1){P=x>12;break}}else P=y===(C?"pm":"PM");return P},p={A:[a,function(y){this.afternoon=b(y,!1)}],a:[a,function(y){this.afternoon=b(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(y){var C=l.ordinal,P=y.match(/\d+/);if(this.day=P[0],C)for(var S=1;S<=31;S+=1)C(S).replace(/\[|\]/g,"")===y&&(this.day=S)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(y){var C=h("months"),P=(h("monthsShort")||C.map((function(S){return S.slice(0,3)}))).indexOf(y)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[a,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(y){var C,P;C=y,P=l&&l.formats;for(var S=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(E,I,f){var O=f&&f.toUpperCase();return I||P[f]||n[f]||P[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,k,w){return k||w.slice(1)}))}))).match(r),x=S.length,T=0;T<x;T+=1){var M=S[T],$=p[M],R=$&&$[0],F=$&&$[1];S[T]=F?{regex:R,parser:F}:M.replace(/^\[|\]$/g,"")}return function(E){for(var I={},f=0,O=0;f<x;f+=1){var D=S[f];if(typeof D=="string")O+=D.length;else{var k=D.regex,w=D.parser,A=E.slice(O),N=k.exec(A)[0];w.call(I,N),E=E.replace(N,"")}}return(function(L){var _=L.afternoon;if(_!==void 0){var K=L.hours;_?K<12&&(L.hours+=12):K===12&&(L.hours=0),delete L.afternoon}})(I),I}}return function(y,C,P){P.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var S=C.prototype,x=S.parse;S.parse=function(T){var M=T.date,$=T.utc,R=T.args;this.$u=$;var F=R[1];if(typeof F=="string"){var E=R[2]===!0,I=R[3]===!0,f=E||I,O=R[2];I&&(O=R[2]),l=this.$locale(),!E&&O&&(l=P.Ls[O]),this.$d=(function(A,N,L,_){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*A);var K=g(N)(A),Y=K.year,ae=K.month,le=K.day,V=K.hours,q=K.minutes,ne=K.seconds,Q=K.milliseconds,z=K.zone,G=K.week,se=new Date,oe=le||(Y||ae?1:se.getDate()),B=Y||se.getFullYear(),ee=0;Y&&!ae||(ee=ae>0?ae-1:se.getMonth());var ce,te=V||0,pe=q||0,H=ne||0,ye=Q||0;return z?new Date(Date.UTC(B,ee,oe,te,pe,H,ye+60*z.offset*1e3)):L?new Date(Date.UTC(B,ee,oe,te,pe,H,ye)):(ce=new Date(B,ee,oe,te,pe,H,ye),G&&(ce=_(ce).week(G).toDate()),ce)}catch{return new Date("")}})(M,F,$,P),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),f&&M!=this.format(F)&&(this.$d=new Date("")),l={}}else if(F instanceof Array)for(var D=F.length,k=1;k<=D;k+=1){R[1]=F[k-1];var w=P.apply(this,R);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}k===D&&(this.$d=new Date(""))}else x.call(this,T)}}}))})(Po)),Po.exports}var rx=nx();const ox=sn(rx);var ko={exports:{}},sx=ko.exports,$l;function ix(){return $l||($l=1,(function(e,t){(function(n,r){e.exports=r()})(sx,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=(function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,p,g){var y=g&&g.toUpperCase();return p||h[g]||n[g]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,P,S){return P||S.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(ko)),ko.exports}var ax=ix();const lx=sn(ax);var Mo={exports:{}},cx=Mo.exports,El;function ux(){return El||(El=1,(function(e,t){(function(n,r){e.exports=r()})(cx,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),d=(l=l||"()")[0]==="(",h=l[1]===")";return(d?this.isAfter(c,a):!this.isBefore(c,a))&&(h?this.isBefore(u,a):!this.isAfter(u,a))||(d?this.isBefore(c,a):!this.isAfter(c,a))&&(h?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(Mo)),Mo.exports}var dx=ux();const px=sn(dx);var Do={exports:{}},fx=Do.exports,Al;function mx(){return Al||(Al=1,(function(e,t){(function(n,r){e.exports=r()})(fx,(function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(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(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return s.bind(this)(u)}}}))})(Do)),Do.exports}var hx=mx();const gx=sn(hx);Ve.extend(lx);Ve.extend(ex);Ve.extend(px);Ve.extend(gx);const yx={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"},bx={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",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},$s=["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(`
125
+ `),Fl=["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(`
126
+ `),vx=(e,t)=>t?(...n)=>e(...n).locale(t):e;class jo{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=yx,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Ve.utc<"u",this.hasTimezonePlugin=()=>typeof Ve.tz<"u",this.isSame=(r,o,s)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.format(s)===i.format(s)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Ve.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Ve.tz.guess();return o!=="UTC"?Ve.tz(r,o):Ve(r)}return Ve(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error($s);return Ve.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error($s);if(!this.hasTimezonePlugin())throw new Error(Fl);const s=r!==void 0&&!r.endsWith("Z");return Ve(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=Ve.Ls,o=this.locale||"en";let s=r[o];return s===void 0&&(s=r.en),s.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const s=r.tz(this.cleanTimezone(o),!0);if(s.$offset===(r.$offset??0))return r;r.$offset=s.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let s;return o==="UTC"?s=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(r):s=this.createTZDate(r,o),this.locale===void 0?s:s.locale(this.locale)},this.getInvalidDate=()=>Ve(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const o=r.$x?.$timezone;if(o)return o}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error($s);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Fl)}return Ve.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),s=i=>i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(i,a,l)=>{const c=l&&l.toUpperCase();return a||o[l]||s(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,s])=>r>=o&&r<=s,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),s=this.endOfWeek(this.endOfMonth(r));let i=0,a=o;const l=[];for(;a<s;){const c=Math.floor(i/7);l[c]=l[c]||[],l[c].push(a),a=this.addDays(a,1),i+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const s=this.startOfYear(r),i=this.endOfYear(o),a=[];let l=s;for(;this.isBefore(l,i);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=vx(Ve,t),this.locale=t,this.formats=j({},bx,n),Ve.extend(ox)}getDayOfWeek(t){return t.day()+1}}function xx(e,t,n,r,o){const[s,i]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return st(()=>{if(!n)return;const a=n(e),l=()=>{i(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),s}const Sx={...v},Du=Sx.useSyncExternalStore;function Cx(e,t,n,r,o){const s=v.useCallback(()=>t,[t]),i=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[a,l]=v.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[s,n,e]);return Du(l,a,i)}function Tu(e={}){const{themeId:t}=e;return function(r,o={}){let s=kc();s&&t&&(s=s[t]||s);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=eu({name:"MuiUseMediaQuery",props:o,theme:s});let d=typeof r=="function"?r(s):r;return d=d.replace(/^@media( ?)/m,""),d.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(`
127
+ `)),(Du!==void 0?Cx:xx)(d,a,l,c,u)}}Tu();const Iu=Tu({themeId:dr}),wx={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Sr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Px=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},Bo=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Lr=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=Bo(i,i.date(void 0,a),e);n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(u){if(!s(u))return u;u=i.addDays(u,-1)}}return null},kx=(e,t)=>t==null||!e.isValid(t)?null:t,Lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,Mx=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Yi=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},Ru=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Dx=["year","month","day"],Ll=e=>Dx.includes(e),Gi=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Sr(n,["year"])?o.year:Sr(n,["month"])?o.month:Sr(n,["day"])?o.dayOfMonth:Sr(n,["month","year"])?`${o.month} ${o.year}`:Sr(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Tx=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Ix=["hours","minutes","seconds"],Rx=e=>Ix.includes(e),Nl=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Ox=(e,t)=>(n,r)=>e?t.isAfter(n,r):Nl(n,t)>Nl(r,t),Yt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},$x=e=>Math.max(...e.map(t=>Yt[t.type]??1)),Cr=(e,t,n)=>{if(t===Yt.year)return e.startOfYear(n);if(t===Yt.month)return e.startOfMonth(n);if(t===Yt.day)return e.startOfDay(n);let r=n;return t<Yt.minutes&&(r=e.setMinutes(r,0)),t<Yt.seconds&&(r=e.setSeconds(r,0)),t<Yt.milliseconds&&(r=e.setMilliseconds(r,0)),r},Ex=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Cr(t,n,Ru(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Cr(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Cr(t,n,e.maxDate));const i=Ox(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Cr(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Bo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Cr(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Bo(t,s,e.maxTime))),s},Ou=(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(`
128
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Ax=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},is=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),s=e.endOfWeek(r);let i=o;for(;e.isBefore(i,s);)n.push(i),i=e.addDays(i,1);return n.map(a=>e.formatByString(a,t))},$u=(e,t,n,r)=>{switch(n){case"month":return Yi(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return is(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},jl="s",Fx=["0","1","2","3","4","5","6","7","8","9"],Lx=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),jl)==="0"?Fx:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),jl))},An=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const s=t.indexOf(r);s>-1&&(n.push(s.toString()),r="")}return n.join("")},qi=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Bl=(e,t)=>{const n=An(e,t);return n!==" "&&!Number.isNaN(Number(n))},Eu=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Au=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,t);return e.formatByString(i,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=Eu(s,o.maxLength)),qi(s,r)},Nx=(e,t,n,r,o,s,i,a)=>{const l=Ax(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,h=()=>{const p=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),g=P=>Au(e,P,p,s,n),y=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let C;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?C=p.minimum:C=p.maximum}else C=parseInt(An(n.value,s),10)+l*y;return C%y!==0&&((l<0||c)&&(C+=y-(y+C)%y),(l>0||u)&&(C-=C%y)),C>p.maximum?g(p.minimum+(C-p.maximum-1)%(p.maximum-p.minimum+1)):C<p.minimum?g(p.maximum-(p.minimum-C-1)%(p.maximum-p.minimum+1)):g(C)},b=()=>{const p=$u(e,t,n.type,n.format);if(p.length===0)return n.value;if(d)return l>0||c?p[0]:p[p.length-1];const C=((p.indexOf(n.value)+l)%p.length+p.length)%p.length;return p[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():b()},Ki=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(An(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},Vl=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),jx=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Fu=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Bx=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],s=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),s.push(Ki(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},Vx=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),zx=(e,t,n)=>{const o=e.map(s=>{const i=Ki(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},Wx=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=Yi(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:jx(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):i,longestMonth:a}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=is(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(s);return An(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(An(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},_x=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=is(e,t.format),s=e.formatByString(n,t.format),i=o.indexOf(s),l=o.indexOf(t.value)-i;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,s=e.getHours(r);return o&&s>=12?e.addHours(r,-12):!o&&s<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},zl={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Wl=(e,t,n,r,o)=>[...n].sort((s,i)=>zl[s.type]-zl[i.type]).reduce((s,i)=>!o||i.modified?_x(e,i,t,s):s,r),Hx=()=>navigator.userAgent.toLowerCase().includes("android"),Ux=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,a=e.length-1;for(;a>=0;){i=e.findIndex((l,c)=>c>=s&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),i===-1&&(i=e.length-1);for(let l=i;l>=s;l-=1)o[l]=a,r[a]=l,a-=1;s=i+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ei=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Yx=(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}},Gx=(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}},qx=["value","referenceDate"],Qt={emptyValue:null,getTodayValue:Ru,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ke(e,qx);return t!=null&&r.utils.isValid(t)?t:n??Ex(r)},cleanValue:kx,areValuesEqual:Mx,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)},Kx={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:Vx,getV6InputValueFromSections:zx,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)},Qx=["localeText"],ti=v.createContext(null),_r=function(t){const{localeText:n}=t,r=ke(t,Qx),{utils:o,localeText:s}=v.useContext(ti)??{utils:void 0,localeText:void 0},i=He({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:h}=i,b=v.useMemo(()=>j({},h,s,n),[h,s,n]),p=v.useMemo(()=>{if(!l)return o||null;const C=new l({locale:d,formats:c,instance:u});if(!C.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(`
129
+ `));return C},[l,d,c,u,o]),g=v.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),y=v.useMemo(()=>({utils:p,defaultDates:g,localeText:b}),[g,p,b]);return m.jsx(ti.Provider,{value:y,children:a})},Xx=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),Lu=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return s=>{const i=s!==null&&t.isValid(s)?t.format(s,n):null;return(o??r)(s,t,i)}},Nu={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,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??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"},Zx=Nu;Xx(Nu);const Bn=()=>{const e=v.useContext(ti);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(`
130
+ `));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(`
131
+ `));const t=v.useMemo(()=>j({},Zx,e.localeText),[e.localeText]);return v.useMemo(()=>j({},e,{localeText:t}),[e,t])},Ue=()=>Bn().utils,no=()=>Bn().defaultDates,as=e=>{const t=Ue(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Jx(e){return Se("MuiPickersToolbar",e)}be("MuiPickersToolbar",["root","content"]);const e0=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],t0=e=>{const{classes:t}=e;return ve({root:["root"],content:["content"]},Jx,t)},n0=W("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"}}]})),r0=W("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"}}]}),o0=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ke(r,e0),u=r,d=t0(u);return a?null:m.jsxs(n0,j({ref:n,className:me(d.root,s),ownerState:u},c,{children:[m.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),m.jsx(r0,{className:d.content,ownerState:u,children:o})]}))}),an=()=>Bn().localeText;function s0(e){return Se("MuiDatePickerToolbar",e)}be("MuiDatePickerToolbar",["root","title"]);const i0=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],a0=e=>{const{classes:t}=e;return ve({root:["root"],title:["title"]},s0,t)},l0=W(o0,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),c0=W(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),u0=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ke(r,i0),d=Ue(),h=an(),b=a0(r),p=v.useMemo(()=>{if(!o)return a;const y=Gi(d,{format:i,views:l},!0);return d.formatByString(o,y)},[o,i,a,d,l]),g=r;return m.jsx(l0,j({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:s,className:me(b.root,c)},u,{children:m.jsx(c0,{variant:"h4",align:s?"left":"center",ownerState:g,className:b.title,children:p})}))});function ju(e,t){const n=Ue(),r=no(),o=He({props:e,name:t}),s=v.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:j({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return j({},o,{localeText:s},Px({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Lt(n,o.minDate,r.minDate),maxDate:Lt(n,o.maxDate,r.maxDate),slots:j({toolbar:u0},o.slots)})}const ro=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=Lt(r.utils,e.minDate,r.defaultDates.minDate),d=Lt(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};ro.valueManager=Qt;const Bu=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],d0=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],p0=["minDateTime","maxDateTime"],f0=[...Bu,...d0,...p0],Vu=e=>f0.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function zu(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=Bn(),a=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{s&&!n.valueManager.isSameError(l,a.current)&&s(l,r),a.current=l},[n,s,l,r]);const u=fe(d=>n({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}function m0(e){return Se("MuiInputAdornment",e)}const _l=be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Hl;const h0=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},g0=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,i,r&&"hiddenLabel",s&&`size${ue(s)}`]};return ve(a,m0,t)},y0=W("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:h0})(Re(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${_l.positionStart}&:not(.${_l.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Wu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,h=Bt()||{};let b=u;u&&h.variant,h&&!b&&(b=h.variant);const p={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b},g=g0(p);return m.jsx(es.Provider,{value:null,children:m.jsx(y0,{as:i,ownerState:p,className:me(g.root,s),ref:n,...d,children:typeof o=="string"&&!l?m.jsx(gn,{color:"textSecondary",children:o}):m.jsxs(v.Fragment,{children:[c==="start"?Hl||(Hl=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function b0(e){return Se("MuiPickersPopper",e)}be("MuiPickersPopper",["root","paper"]);function v0(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const x0=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},gt=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?gt(t.shadowRoot):t:null},S0="@media (pointer: fine)",C0="@media (prefers-reduced-motion: reduce)",er=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Ul=er&&er[1]?parseInt(er[1],10):null,Yl=er&&er[2]?parseInt(er[2],10):null,w0=Ul&&Ul<10||Yl&&Yl<13||!1,_u=()=>Iu(C0,{defaultMatches:!1})||w0,P0=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],k0=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},b0,t)},M0=W(Ui,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),D0=W(Ln,{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 T0(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function I0(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),s=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const i=fe(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=dt(o.current);if(!o.current||"clientX"in l&&T0(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=dt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),v.useEffect(()=>{if(e){const l=dt(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const R0=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ke(e,P0),d=j({},o,{placement:r}),h=Ae({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return m.jsx(n,j({},u,h,{onClick:b=>{l(b),h.onClick?.(b)},onTouchStart:b=>{c(b),h.onTouchStart?.(b)},ownerState:d,children:s}))});function O0(e){const t=He({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:d,slotProps:h,reduceAnimations:b}=t;v.useEffect(()=>{function k(w){l&&w.key==="Escape"&&a()}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[a,l]);const p=v.useRef(null);v.useEffect(()=>{c==="tooltip"||s&&!s()||(l?p.current=gt(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[l,c,s]);const[g,y,C]=I0(l,i??a),P=v.useRef(null),S=Fe(P,o),x=Fe(S,g),T=t,M=k0(T),$=_u(),R=b??$,F=k=>{k.key==="Escape"&&(k.stopPropagation(),a())},E=d?.desktopTransition??R?$n:Vr,I=d?.desktopTrapFocus??au,f=d?.desktopPaper??D0,O=d?.popper??M0,D=Ae({elementType:O,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:F},className:M.root,ownerState:t});return m.jsx(O,j({},D,{children:({TransitionProps:k,placement:w})=>m.jsx(I,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},h?.desktopTrapFocus,{children:m.jsx(E,j({},k,h?.desktopTransition,{children:m.jsx(R0,{PaperComponent:f,ownerState:T,popperPlacement:w,ref:x,onPaperClick:y,onPaperTouchStart:C,paperClasses:M.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}const $0=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,s]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=v.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},Qi=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Ue(),a=v.useRef(n),l=t??a.current??s.emptyValue,c=v.useMemo(()=>s.getTimezone(i,l),[i,s,l]),u=fe(p=>c==null?p:s.setTimezone(i,c,p));let d;e?d=e:c?d=c:r?d=i.getTimezone(r):d="default";const h=v.useMemo(()=>s.setTimezone(i,d,l),[s,i,d,l]),b=fe((p,...g)=>{const y=u(p);o?.(y,...g)});return{value:h,handleValueChange:b,timezone:d}},Xi=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Mt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=fe((u,...d)=>{l(u),s?.(u,...d)});return Qi({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},E0=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},A0=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},F0=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},L0=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:h}=v.useRef(l),{current:b}=v.useRef(a!==void 0),[p,g]=v.useState(u),y=Ue(),C=Bn(),{isOpen:P,setIsOpen:S}=$0(e),{timezone:x,value:T,handleValueChange:M}=Qi({timezone:u,value:a,defaultValue:h,referenceDate:d,onChange:i,valueManager:t}),[$,R]=v.useState(()=>{let z;return T!==void 0?z=T:h!==void 0?z=h:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),F=t.getTimezone(y,$.draft);p!==u&&(g(u),u&&F&&u!==F&&R(z=>j({},z,{draft:t.setTimezone(y,u,z.draft)})));const{getValidationErrorForNewValue:E}=zu({props:e,validator:o,timezone:x,value:$.draft,onError:e.onError}),I=fe(z=>{const G={action:z,dateState:$,hasChanged:te=>!t.areValuesEqual(y,z.value,te),isControlled:b,closeOnSelect:c},se=E0(G),oe=A0(G),B=F0(G);R(te=>j({},te,{draft:z.value,lastPublishedValue:se?z.value:te.lastPublishedValue,lastCommittedValue:oe?z.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ee=null;const ce=()=>(ee||(ee={validationError:z.name==="setValueFromField"?z.context.validationError:E(z.value)},z.name==="setValueFromShortcut"&&(ee.shortcut=z.shortcut)),ee);se&&M(z.value,ce()),oe&&s&&s(z.value,ce()),B&&S(!1)});if($.lastControlledValue!==a){const z=t.areValuesEqual(y,$.draft,T);R(G=>j({},G,{lastControlledValue:a},z?{}:{lastCommittedValue:T,lastPublishedValue:T,draft:T,hasBeenModifiedSinceMount:!0}))}const f=fe(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),O=fe(()=>{I({value:$.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=fe(()=>{I({value:$.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),k=fe(()=>{I({value:$.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),w=fe(()=>{I({value:t.getTodayValue(y,x,n),name:"setValueFromAction",pickerAction:"today"})}),A=fe(z=>{z.preventDefault(),S(!0)}),N=fe(z=>{z?.preventDefault(),S(!1)}),L=fe((z,G="partial")=>I({name:"setValueFromView",value:z,selectionState:G})),_=fe((z,G,se)=>I({name:"setValueFromShortcut",value:z,changeImportance:G,shortcut:se})),K=fe((z,G)=>I({name:"setValueFromField",value:z,context:G})),Y={onClear:f,onAccept:O,onDismiss:D,onCancel:k,onSetToday:w,onOpen:A,onClose:N},ae={value:$.draft,onChange:K},le=v.useMemo(()=>t.cleanValue(y,$.draft),[y,t,$.draft]),V={value:le,onChange:L,onClose:N,open:P},ne=j({},Y,{value:le,onChange:L,onSelectShortcut:_,isValid:z=>{const G=o({adapter:C,value:z,timezone:x,props:e});return!t.hasError(G)}}),Q=v.useMemo(()=>({onOpen:A,onClose:N,open:P}),[P,N,A]);return{open:P,fieldProps:ae,viewProps:V,layoutProps:ne,actions:Y,contextValue:Q}};function Hu({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=v.useRef(n),c=v.useRef(o),u=v.useRef(o.includes(n)?n:o[0]),[d,h]=Mt({name:"useViews",state:"view",controlled:r,default:u.current}),b=v.useRef(s?d:null),[p,g]=Mt({name:"useViews",state:"focusedView",controlled:i,default:b.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some($=>!o.includes($)))&&(h(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,h,d,o]);const y=o.indexOf(d),C=o[y-1]??null,P=o[y+1]??null,S=fe(($,R)=>{g(R?$:F=>$===F?null:F),a?.($,R)}),x=fe($=>{S($,!0),$!==d&&(h($),t&&t($))}),T=fe(()=>{P&&x(P)}),M=fe(($,R,F)=>{const E=R==="finish",I=F?o.indexOf(F)<o.length-1:!!P;if(e($,E&&I?"partial":R,F),F&&F!==d){const O=o[o.indexOf(F)+1];O&&x(O)}else E&&T()});return{view:d,setView:x,focusedView:p,setFocusedView:S,nextView:P,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:T,setValueAndGoToNextView:M}}const N0=["className","sx"],j0=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:i,open:a,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:h,viewRenderers:b,timezone:p}=e,g=ke(e,N0),{view:y,setView:C,defaultView:P,focusedView:S,setFocusedView:x,setValueAndGoToNextView:T}=Hu({view:c,views:u,openTo:d,onChange:i,onViewChange:h,autoFocus:r}),{hasUIView:M,viewModeLookup:$}=v.useMemo(()=>u.reduce((D,k)=>{let w;return b[k]!=null?w="UI":w="field",D.viewModeLookup[k]=w,w==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,u]),R=v.useMemo(()=>u.reduce((D,k)=>b[k]!=null&&Rx(k)?D+1:D,0),[b,u]),F=$[y],E=fe(()=>F==="UI"),[I,f]=v.useState(F==="UI"?y:null);return I!==y&&$[y]==="UI"&&f(y),st(()=>{F==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(y),s?.current?.focusField(y)}))},[y]),st(()=>{if(!a)return;let D=y;F==="field"&&I!=null&&(D=I),D!==P&&$[D]==="UI"&&$[P]==="UI"&&(D=P),D!==y&&C(D),x(D,!0)},[a]),{hasUIView:M,shouldRestoreFocus:E,layoutProps:{views:u,view:I,onViewChange:C},renderCurrentView:()=>{if(I==null)return null;const D=b[I];if(D==null)return null;const k=j({},g,n,t,{views:u,timezone:p,onChange:T,view:I,onViewChange:C,focusedView:S,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(b,I,k):D(k)}}};function Gl(){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 B0=(e,t)=>{const[n,r]=v.useState(Gl);return st(()=>{const s=()=>{r(Gl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),v0(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},V0=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=B0(n.views,o),i=Wt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function z0(e){const{props:t,pickerValueResponse:n}=e;return v.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 Uu=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=L0({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=j0({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=V0({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=z0({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:h}};function Yu(e){return Se("MuiPickersLayout",e)}const Cn=be("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function W0(e){return Se("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const _0=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},W0,t)},H0=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),U0=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=_0(a);return m.jsx(H0,{className:me(l.root,o),ownerState:a,ref:n,...i})}),Y0=["onAccept","onClear","onCancel","onSetToday","actions"];function G0(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ke(e,Y0),a=an();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return m.jsx(Rr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return m.jsx(Rr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return m.jsx(Rr,{onClick:t,children:a.okButtonLabel},c);case"today":return m.jsx(Rr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return m.jsx(U0,j({},i,{children:l}))}function q0(e){return Se("MuiListItem",e)}be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const K0=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Q0(e){return Se("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const X0=e=>{const{disableGutters:t,classes:n}=e;return ve({root:["root",t&&"disableGutters"]},Q0,n)},Z0=W("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Gu=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=v.useContext(Jn),a={...r,disableGutters:i.disableGutters},l=X0(a);return m.jsx(Z0,{className:me(l.root,o),ownerState:a,ref:n,...s})});Gu.muiName="ListItemSecondaryAction";const J0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},eS=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return ve({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},q0,n)},tS=W("div",{name:"MuiListItem",slot:"Root",overridesResolver:J0})(Re(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${K0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),nS=W("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),rS=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...h}={},dense:b=!1,disableGutters:p=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:C,slotProps:P={},slots:S={},...x}=r,T=v.useContext(Jn),M=v.useMemo(()=>({dense:b||T.dense||!1,alignItems:o,disableGutters:p}),[o,T.dense,b,p]),$=v.useRef(null),R=v.Children.toArray(s),F=R.length&&So(R[R.length-1],["ListItemSecondaryAction"]),E={...r,alignItems:o,dense:M.dense,disableGutters:p,disablePadding:g,divider:y,hasSecondaryAction:F},I=eS(E),f=Fe($,n),O=S.root||l.Root||tS,D=P.root||c.root||{},k={className:me(I.root,D.className,i),...x};let w=a||"li";return F?(w=!k.component&&!a?"div":w,u==="li"&&(w==="li"?w="div":k.component==="li"&&(k.component="div")),m.jsx(Jn.Provider,{value:M,children:m.jsxs(nS,{as:u,className:me(I.container,d),ref:f,ownerState:E,...h,children:[m.jsx(O,{...D,...!sr(O)&&{as:w,ownerState:{...E,...D.ownerState}},...k,children:R}),R.pop()]})})):m.jsx(Jn.Provider,{value:M,children:m.jsxs(O,{...D,as:w,ref:f,...!sr(O)&&{ownerState:{...E,...D.ownerState}},...k,children:[R,C&&m.jsx(Gu,{children:C})]})})}),Hr=36,ls=2,cs=320,oS=280,Zi=336,sS=["items","changeImportance","isLandscape","onChange","isValid"],iS=["getValue"];function aS(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ke(e,sS);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ke(a,iS);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return m.jsx(ou,j({dense:!0,sx:[{maxHeight:Zi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>m.jsx(rS,{children:m.jsx(ku,j({},a))},a.id??a.label))}))}function lS(e){return e.view!==null}const cS=e=>{const{classes:t,isLandscape:n}=e;return ve({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Yu,t)},uS=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:h,isLandscape:b,disabled:p,readOnly:g,children:y,slots:C,slotProps:P}=e,S=cS(e),x=C?.actionBar??G0,T=Ae({elementType:x,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:S.actionBar,ownerState:j({},e,{wrapperVariant:t})}),M=m.jsx(x,j({},T)),$=C?.toolbar,R=Ae({elementType:$,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:p,readOnly:g},className:S.toolbar,ownerState:j({},e,{wrapperVariant:t})}),F=lS(R)&&$?m.jsx($,j({},R)):null,E=y,I=C?.tabs,f=i&&I?m.jsx(I,j({view:i,onViewChange:l,className:S.tabs},P?.tabs)):null,O=C?.shortcuts??aS,D=Ae({elementType:O,externalSlotProps:P?.shortcuts,additionalProps:{isValid:h,isLandscape:b,onChange:d},className:S.shortcuts,ownerState:{isValid:h,isLandscape:b,onChange:d,wrapperVariant:t}}),k=i&&O?m.jsx(O,j({},D)):null;return{toolbar:F,content:E,tabs:f,actionBar:M,shortcuts:k}},dS=e=>{const{isLandscape:t,classes:n}=e;return ve({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Yu,n)},pS=W("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Cn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Cn.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Cn.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Cn.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Cn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Cn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Cn.shortcuts}`]:{gridColumn:3}}}]}),fS=W("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),qu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=uS(r),{sx:c,className:u,isLandscape:d,wrapperVariant:h}=r,b=dS(r);return m.jsxs(pS,{ref:n,sx:c,className:me(b.root,u),ownerState:r,children:[d?l:o,d?o:l,m.jsx(fS,{className:b.contentWrapper,children:h==="desktop"?m.jsxs(v.Fragment,{children:[s,i]}):m.jsxs(v.Fragment,{children:[i,s]})}),a]})}),mS=v.createContext(null);function Ku(e){const{contextValue:t,localeText:n,children:r}=e;return m.jsx(mS.Provider,{value:t,children:m.jsx(_r,{localeText:n,children:r})})}const hS=["props","getOpenDialogAriaText"],gS=["ownerState"],yS=["ownerState"],bS=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ke(e,hS);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,name:p,label:g,inputRef:y,readOnly:C,disabled:P,autoFocus:S,localeText:x,reduceAnimations:T}=t,M=v.useRef(null),$=v.useRef(null),R=_t(),F=s?.toolbar?.hidden??!1,{open:E,actions:I,hasUIView:f,layoutProps:O,renderCurrentView:D,shouldRestoreFocus:k,fieldProps:w,contextValue:A,ownerState:N}=Uu(j({},r,{props:t,fieldRef:$,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??Wu,_=Ae({elementType:L,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),K=ke(_,gS),Y=o.openPickerButton??Nn,ae=Ae({elementType:Y,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:P||C,onClick:E?I.onClose:I.onOpen,"aria-label":n(w.value),edge:K.position},ownerState:t}),le=ke(ae,yS),V=o.openPickerIcon,q=Ae({elementType:V,externalSlotProps:s?.openPickerIcon,ownerState:N}),ne=o.field,Q=Ae({elementType:ne,externalSlotProps:s?.field,additionalProps:j({},w,F&&{id:R},{readOnly:C,disabled:P,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,label:g,name:p,autoFocus:S&&!t.open,focused:E?!0:void 0},y?{inputRef:y}:{}),ownerState:t});f&&(Q.InputProps=j({},Q.InputProps,{ref:M},!t.disableOpenPicker&&{[`${K.position}Adornment`]:m.jsx(L,j({},K,{children:m.jsx(Y,j({},le,{children:m.jsx(V,j({},q))}))}))}));const z=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},Q.slots),G=o.layout??qu;let se=R;F&&(g?se=`${R}-label`:se=void 0);const oe=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":se},s?.popper)}),B=Fe($,Q.unstableFieldRef);return{renderPicker:()=>m.jsxs(Ku,{contextValue:A,localeText:x,children:[m.jsx(ne,j({},Q,{slots:z,slotProps:oe,unstableFieldRef:B})),m.jsx(O0,j({role:"dialog",placement:"bottom-start",anchorEl:M.current},I,{open:E,slots:o,slotProps:oe,shouldRestoreFocus:k,reduceAnimations:T,children:m.jsx(G,j({},O,oe?.layout,{slots:o,slotProps:oe,children:D()}))}))]})}},vS=ct(m.jsx("path",{d:"M7 10l5 5 5-5z"})),xS=ct(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),SS=ct(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),CS=ct(m.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"}));ct(m.jsxs(v.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));ct(m.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"}));ct(m.jsxs(v.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const wS=ct(m.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"})),PS=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),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 o},kS=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},MS=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},DS=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:s,token:i,startSeparator:a})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Ou(e,i),c=Fu(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let h=d?e.formatByString(t,i):"",b=null;if(u)if(c)b=h===""?e.formatByString(s,i).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);b=l.maxLength,d&&(h=qi(Eu(An(h,o),b),o))}return j({},l,{format:i,maxLength:b,value:h,placeholder:MS(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},TS=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((b,p)=>p.length-b.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=b=>r.find(p=>p.start<=b&&p.end>=b);let h=0;for(;h<n.length;){const b=d(h),p=b!=null,g=l.exec(n.slice(h))?.[1];if(!p&&g!=null&&c.test(g)){let y=g;for(;y.length>0;){const C=u.exec(y)[1];y=y.slice(C.length),s.push(DS(j({},e,{now:o,token:C,startSeparator:i}))),i=""}h+=g.length}else{const y=n[h];p&&b?.start===h||b?.end===h||(s.length===0?i+=y:s[s.length-1].endSeparator+=y),h+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},IS=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let i=s;return e&&i!==null&&i.includes(" ")&&(i=`⁩${i}⁦`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),ql=e=>{let t=PS(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=kS(j({},e,{expandedFormat:t})),r=TS(j({},e,{expandedFormat:t,escapedParts:n}));return IS(j({},e,{sections:r}))},RS=e=>{const t=Ue(),n=an(),r=Bn(),o=Wt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:h,onChange:b,format:p,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:C,shouldRespectLeadingZeros:P=!1,timezone:S,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:T,value:M,handleValueChange:$}=Qi({timezone:S,value:u,defaultValue:d,referenceDate:h,onChange:b,valueManager:s}),R=v.useMemo(()=>Lx(t),[t]),F=v.useMemo(()=>Wx(t,R,T),[t,R,T]),E=v.useCallback((V,q=null)=>i.getSectionsFromValue(t,V,q,ne=>ql({utils:t,localeText:n,localizedDigits:R,format:p,date:ne,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,p,n,R,o,P,t,g,x]),[I,f]=v.useState(()=>{const V=E(M),q={sections:V,value:M,referenceValue:s.emptyValue,tempValueStrAndroid:null},ne=$x(V),Q=s.getInitialReferenceValue({referenceDate:h,value:M,utils:t,props:c,granularity:ne,timezone:T});return j({},q,{referenceValue:Q})}),[O,D]=Mt({controlled:y,default:null,name:"useField",state:"selectedSections"}),k=V=>{D(V),C?.(V)},w=v.useMemo(()=>ei(O,I.sections),[O,I.sections]),A=w==="all"?0:w,N=({value:V,referenceValue:q,sections:ne})=>{if(f(z=>j({},z,{sections:ne,value:V,referenceValue:q,tempValueStrAndroid:null})),s.areValuesEqual(t,I.value,V))return;const Q={validationError:l({adapter:r,value:V,timezone:T,props:c})};$(V,Q)},L=(V,q)=>{const ne=[...I.sections];return ne[V]=j({},ne[V],{value:q,modified:!0}),ne},_=()=>{N({value:s.emptyValue,referenceValue:I.referenceValue,sections:E(s.emptyValue)})},K=()=>{if(A==null)return;const V=I.sections[A],q=i.getActiveDateManager(t,I,V),Q=q.getSections(I.sections).filter(oe=>oe.value!=="").length===(V.value===""?0:1),z=L(A,""),G=Q?null:t.getInvalidDate(),se=q.getNewValuesFromNewActiveDate(G);N(j({},se,{sections:z}))},Y=V=>{const q=(z,G)=>{const se=t.parse(z,p);if(se==null||!t.isValid(se))return null;const oe=ql({utils:t,localeText:n,localizedDigits:R,format:p,date:se,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:x,isRtl:o});return Wl(t,se,oe,G,!1)},ne=i.parseValueStr(V,I.referenceValue,q),Q=i.updateReferenceValue(t,ne,I.referenceValue);N({value:ne,referenceValue:Q,sections:E(ne,I.sections)})},ae=({activeSection:V,newSectionValue:q,shouldGoToNextSection:ne})=>{ne&&A<I.sections.length-1&&k(A+1);const Q=i.getActiveDateManager(t,I,V),z=L(A,q),G=Q.getSections(z),se=Bx(t,G,R);let oe,B;if(se!=null&&t.isValid(se)){const ee=Wl(t,se,G,Q.referenceDate,!0);oe=Q.getNewValuesFromNewActiveDate(ee),B=!0}else oe=Q.getNewValuesFromNewActiveDate(se),B=(se!=null&&!t.isValid(se))!=(Q.date!=null&&!t.isValid(Q.date));return B?N(j({},oe,{sections:z})):f(ee=>j({},ee,oe,{sections:z,tempValueStrAndroid:null}))},le=V=>f(q=>j({},q,{tempValueStrAndroid:V}));return v.useEffect(()=>{const V=E(I.value);f(q=>j({},q,{sections:V}))},[p,t.locale,o]),v.useEffect(()=>{let V;s.areValuesEqual(t,I.value,M)?V=s.getTimezone(t,I.value)!==s.getTimezone(t,M):V=!0,V&&f(q=>j({},q,{value:M,referenceValue:i.updateReferenceValue(t,M,q.referenceValue),sections:E(M)}))},[M]),{state:I,activeSectionIndex:A,parsedSelectedSections:w,setSelectedSections:k,clearValue:_,clearActiveSection:K,updateSectionValue:ae,updateValueFromValueStr:Y,setTempAndroidValueStr:le,getSectionsFromValue:E,sectionsValueBoundaries:F,localizedDigits:R,timezone:T}},OS=5e3,qn=e=>e.saveQuery!=null,$S=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Ue(),[a,l]=v.useState(null),c=fe(()=>l(null));v.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),v.useEffect(()=>{if(a!=null){const p=setTimeout(()=>c(),OS);return()=>{clearTimeout(p)}}return()=>{}},[a,c]);const u=({keyPressed:p,sectionIndex:g},y,C)=>{const P=p.toLowerCase(),S=e[g];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===g){const T=`${a.value}${P}`,M=y(T,S);if(!qn(M))return l({sectionIndex:g,value:T,sectionType:S.type}),M}const x=y(P,S);return qn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:g,value:P,sectionType:S.type}),qn(x)?null:x)},d=p=>{const g=(P,S,x)=>{const T=S.filter(M=>M.toLowerCase().startsWith(x));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},y=(P,S,x,T)=>{const M=$=>$u(i,s,S.type,$);if(S.contentType==="letter")return g(S.format,M(S.format),P);if(x&&T!=null&&Ou(i,x).contentType==="letter"){const $=M(x),R=g(x,$,P);return qn(R)?{saveQuery:!1}:j({},R,{sectionValue:T(R.sectionValue,$)})}return{saveQuery:!1}};return u(p,(P,S)=>{switch(S.type){case"month":{const x=T=>Vl(i,T,i.formats.month,S.format);return y(P,S,i.formats.month,x)}case"weekDay":{const x=(T,M)=>M.indexOf(T).toString();return y(P,S,i.formats.weekday,x)}case"meridiem":return y(P,S);default:return{saveQuery:!1}}})},h=p=>{const g=(C,P)=>{const S=An(C,r),x=Number(S),T=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(x>T.maximum)return{saveQuery:!1};if(x<T.minimum)return{saveQuery:!0};const M=x*10>T.maximum||S.length===T.maximum.toString().length;return{sectionValue:Au(i,x,T,r,P),shouldGoToNextSection:M}};return u(p,(C,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(C,P);if(P.type==="month"){Fu(i,"digit","month","MM");const S=g(C,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qn(S))return S;const x=Vl(i,S.sectionValue,"MM",P.format);return j({},S,{sectionValue:x})}if(P.type==="weekDay"){const S=g(C,P);if(qn(S))return S;const x=is(i,P.format)[Number(S.sectionValue)-1];return j({},S,{sectionValue:x})}return{saveQuery:!1}},C=>Bl(C,r))};return{applyCharacterEditing:fe(p=>{const g=e[p.sectionIndex],C=Bl(p.keyPressed,r)?h(j({},p,{keyPressed:qi(p.keyPressed,r)})):d(p);if(C==null){o(null);return}t({activeSection:g,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:c}},ES=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:h,resetCharacterQuery:b,setSelectedSections:p,parsedSelectedSections:g,state:y,clearActiveSection:C,clearValue:P,updateSectionValue:S,updateValueFromValueStr:x,sectionOrder:T,areAllSectionsEmpty:M,sectionsValueBoundaries:$}=e,R=v.useRef(null),F=Fe(r,R),E=an(),I=Ue(),f=_t(),[O,D]=v.useState(!1),k=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const B=document.getSelection();if(!B)return;if(g==null){B.rangeCount>0&&R.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),O&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(gt(document)))return;const ee=new window.Range;let ce;g==="all"?ce=R.current.getRoot():y.sections[g].type==="empty"?ce=R.current.getSectionContainer(g):ce=R.current.getSectionContent(g),ee.selectNodeContents(ce),ce.focus(),B.removeAllRanges(),B.addRange(ee)},getActiveSectionIndexFromDOM:()=>{const B=gt(document);return!B||!R.current||!R.current.getRoot().contains(B)?null:R.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!R.current||k.getActiveSectionIndexFromDOM()!=null)return;const ee=ei(B,y.sections);D(!0),R.current.getSectionContent(ee).focus()},setSelectedSections:B=>{if(!R.current)return;const ee=ei(B,y.sections);D((ee==="all"?0:ee)!==null),p(B)},isFieldFocused:()=>{const B=gt(document);return!!R.current&&R.current.getRoot().contains(B)}}),[g,p,y.sections,O]),w=fe(B=>{if(!R.current)return;const ee=y.sections[B];R.current.getSectionContent(B).innerHTML=ee.value||ee.placeholder,k.syncSelectionToDOM()}),A=fe((B,...ee)=>{B.isDefaultPrevented()||!R.current||(D(!0),s?.(B,...ee),g==="all"?setTimeout(()=>{const ce=document.getSelection().getRangeAt(0).startOffset;if(ce===0){p(T.startIndex);return}let te=0,pe=0;for(;pe<ce&&te<y.sections.length;){const H=y.sections[te];te+=1,pe+=`${H.startSeparator}${H.value||H.placeholder}${H.endSeparator}`.length}p(te-1)}):O?R.current.getRoot().contains(B.target)||p(T.startIndex):(D(!0),p(T.startIndex)))}),N=fe(B=>{if(a?.(B),!R.current||g!=="all")return;const ce=B.target.textContent??"";R.current.getRoot().innerHTML=y.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),k.syncSelectionToDOM(),ce.length===0||ce.charCodeAt(0)===10?(b(),P(),p("all")):ce.length>1?x(ce):(g==="all"&&p(0),h({keyPressed:ce,sectionIndex:0}))}),L=fe(B=>{if(l?.(B),n||g!=="all"){B.preventDefault();return}const ee=B.clipboardData.getData("text");B.preventDefault(),b(),x(ee)}),_=fe((...B)=>{if(i?.(...B),O||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(gt(document))!=null||p(T.startIndex)}),K=fe((...B)=>{o?.(...B),setTimeout(()=>{if(!R.current)return;const ee=gt(document);!R.current.getRoot().contains(ee)&&(D(!1),p(null))})}),Y=fe(B=>ee=>{ee.isDefaultPrevented()||p(B)}),ae=fe(B=>{B.preventDefault()}),le=fe(B=>()=>{p(B)}),V=fe(B=>{if(B.preventDefault(),n||t||typeof g!="number")return;const ee=y.sections[g],ce=B.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(ce),pe=/^[0-9]+$/.test(ce),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ce);ee.contentType==="letter"&&te||ee.contentType==="digit"&&pe||ee.contentType==="digit-with-letter"&&H?(b(),S({activeSection:ee,newSectionValue:ce,shouldGoToNextSection:!0})):!te&&!pe&&(b(),x(ce))}),q=fe(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),ne=fe(B=>{if(!R.current)return;const ee=B.target,ce=ee.textContent??"",te=R.current.getSectionIndexFromDOMElement(ee),pe=y.sections[te];if(n||!R.current){w(te);return}if(ce.length===0){if(pe.value===""){w(te);return}const H=B.nativeEvent.inputType;if(H==="insertParagraph"||H==="insertLineBreak"){w(te);return}b(),C();return}h({keyPressed:ce,sectionIndex:te}),w(te)});st(()=>{if(!(!O||!R.current)){if(g==="all")R.current.getRoot().focus();else if(typeof g=="number"){const B=R.current.getSectionContent(g);B&&B.focus()}}},[g,O]);const Q=v.useMemo(()=>y.sections.reduce((B,ee)=>(B[ee.type]=$[ee.type]({currentDate:null,contentType:ee.contentType,format:ee.format}),B),{}),[$,y.sections]),z=g==="all",G=v.useMemo(()=>y.sections.map((B,ee)=>{const ce=!z&&!t&&!n;return{container:{"data-sectionindex":ee,onClick:Y(ee)},content:{tabIndex:z||ee>0?-1:0,contentEditable:!z&&!t&&!n,role:"spinbutton",id:`${f}-${B.type}`,"aria-labelledby":`${f}-${B.type}`,"aria-readonly":n,"aria-valuenow":Gx(B,I),"aria-valuemin":Q[B.type].minimum,"aria-valuemax":Q[B.type].maximum,"aria-valuetext":B.value?Yx(B,I):E.empty,"aria-label":E[B.type],"aria-disabled":t,spellCheck:ce?!1:void 0,autoCapitalize:ce?"off":void 0,autoCorrect:ce?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ce?"next":void 0,children:B.value||B.placeholder,onInput:ne,onPaste:V,onFocus:le(ee),onDragOver:q,onMouseUp:ae,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[y.sections,le,V,q,ne,Y,ae,t,n,z,E,I,Q,f]),se=fe(B=>{x(B.target.value)}),oe=v.useMemo(()=>M?"":d.getV7HiddenInputValueFromSections(y.sections),[M,y.sections,d]);return v.useEffect(()=>{if(R.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(`
132
+ `));u&&R.current&&R.current.getSectionContent(T.startIndex).focus()},[]),{interactions:k,returnedValue:{autoFocus:u,readOnly:n,focused:c??O,sectionListRef:F,onBlur:K,onClick:A,onFocus:_,onInput:N,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:g===0?-1:0,contentEditable:z,value:oe,onChange:se,areAllSectionsEmpty:M}}},Xn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),AS=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let i=0;i<e.length;i+=1){const a=e[i],l=Ki(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Xn(c).length,d=c.length,h=Xn(l),b=o+(h===""?0:l.indexOf(h[0]))+a.startSeparator.length,p=b+h.length;s.push(j({},a,{start:r,end:r+u,startInInput:b,endInInput:p})),r+=u,o+=d}return s},FS=e=>{const t=Wt(),n=v.useRef(void 0),r=v.useRef(void 0),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:h,activeSectionIndex:b,state:p,fieldValueManager:g,valueManager:y,applyCharacterEditing:C,resetCharacterQuery:P,updateSectionValue:S,updateValueFromValueStr:x,clearActiveSection:T,clearValue:M,setTempAndroidValueStr:$,setSelectedSections:R,getSectionsFromValue:F,areAllSectionsEmpty:E,localizedDigits:I}=e,f=v.useRef(null),O=Fe(l,f),D=v.useMemo(()=>AS(p.sections,I,t),[p.sections,I,t]),k=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!f.current)return;if(h==null){f.current.scrollLeft&&(f.current.scrollLeft=0);return}if(f.current!==gt(document))return;const ne=f.current.scrollTop;if(h==="all")f.current.select();else{const Q=D[h],z=Q.type==="empty"?Q.startInInput-Q.startSeparator.length:Q.startInInput,G=Q.type==="empty"?Q.endInInput+Q.endSeparator.length:Q.endInInput;(z!==f.current.selectionStart||G!==f.current.selectionEnd)&&f.current===gt(document)&&f.current.setSelectionRange(z,G),clearTimeout(r.current),r.current=setTimeout(()=>{f.current&&f.current===gt(document)&&f.current.selectionStart===f.current.selectionEnd&&(f.current.selectionStart!==z||f.current.selectionEnd!==G)&&k.syncSelectionToDOM()})}f.current.scrollTop=ne},getActiveSectionIndexFromDOM:()=>{const ne=f.current.selectionStart??0,Q=f.current.selectionEnd??0;if(ne===0&&Q===0)return null;const z=ne<=D[0].startInInput?1:D.findIndex(G=>G.startInInput-G.startSeparator.length>ne);return z===-1?D.length-1:z-1},focusField:(ne=0)=>{gt(document)!==f.current&&(f.current?.focus(),R(ne))},setSelectedSections:ne=>R(ne),isFieldFocused:()=>f.current===gt(document)}),[f,h,D,R]),w=()=>{const ne=f.current.selectionStart??0;let Q;ne<=D[0].startInInput||ne>=D[D.length-1].endInInput?Q=1:Q=D.findIndex(G=>G.startInInput-G.startSeparator.length>ne);const z=Q===-1?D.length-1:Q-1;R(z)},A=fe((...ne)=>{o?.(...ne);const Q=f.current;clearTimeout(n.current),n.current=setTimeout(()=>{!Q||Q!==f.current||b==null&&(Q.value.length&&Number(Q.selectionEnd)-Number(Q.selectionStart)===Q.value.length?R("all"):w())})}),N=fe((ne,...Q)=>{ne.isDefaultPrevented()||(s?.(ne,...Q),w())}),L=fe(ne=>{if(i?.(ne),ne.preventDefault(),u||d)return;const Q=ne.clipboardData.getData("text");if(typeof h=="number"){const z=p.sections[h],G=/^[a-zA-Z]+$/.test(Q),se=/^[0-9]+$/.test(Q),oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);if(z.contentType==="letter"&&G||z.contentType==="digit"&&se||z.contentType==="digit-with-letter"&&oe){P(),S({activeSection:z,newSectionValue:Q,shouldGoToNextSection:!0});return}if(G||se)return}P(),x(Q)}),_=fe((...ne)=>{a?.(...ne),R(null)}),K=fe(ne=>{if(u)return;const Q=ne.target.value;if(Q===""){P(),M();return}const z=ne.nativeEvent.data,G=z&&z.length>1,se=G?z:Q,oe=Xn(se);if(h==="all"&&R(b),b==null||G){x(G?z:oe);return}let B;if(h==="all"&&oe.length===1)B=oe;else{const ee=Xn(g.getV6InputValueFromSections(D,I,t));let ce=-1,te=-1;for(let de=0;de<ee.length;de+=1)ce===-1&&ee[de]!==oe[de]&&(ce=de),te===-1&&ee[ee.length-de-1]!==oe[oe.length-de-1]&&(te=de);const pe=D[b];if(ce<pe.start||ee.length-te-1>pe.end)return;const ye=oe.length-ee.length+pe.end-Xn(pe.endSeparator||"").length;B=oe.slice(pe.start+Xn(pe.startSeparator||"").length,ye)}if(B.length===0){Hx()&&$(se),P(),T();return}C({keyPressed:B,sectionIndex:b})}),Y=v.useMemo(()=>c!==void 0?c:g.getV6InputValueFromSections(F(y.emptyValue),I,t),[c,g,F,y.emptyValue,I,t]),ae=v.useMemo(()=>p.tempValueStrAndroid??g.getV6InputValueFromSections(p.sections,I,t),[p.sections,g,p.tempValueStrAndroid,I,t]);v.useEffect(()=>(f.current&&f.current===gt(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const le=v.useMemo(()=>b==null||p.sections[b].contentType==="letter"?"text":"numeric",[b,p.sections]),q=!(f.current&&f.current===gt(document))&&E;return{interactions:k,returnedValue:{readOnly:u,onBlur:_,onClick:N,onFocus:A,onPaste:L,inputRef:O,enableAccessibleFieldDOMStructure:!1,placeholder:Y,inputMode:le,autoComplete:"off",value:q?"":ae,onChange:K}}},LS=e=>{const t=Ue(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:h,valueManager:b,validator:p}=e,g=Wt(),y=RS(e),{state:C,activeSectionIndex:P,parsedSelectedSections:S,setSelectedSections:x,clearValue:T,clearActiveSection:M,updateSectionValue:$,setTempAndroidValueStr:R,sectionsValueBoundaries:F,localizedDigits:E,timezone:I}=y,f=$S({sections:C.sections,updateSectionValue:$,sectionsValueBoundaries:F,localizedDigits:E,setTempAndroidValueStr:R,timezone:I}),{resetCharacterQuery:O}=f,D=b.areValuesEqual(t,C.value,b.emptyValue),k=s?ES:FS,w=v.useMemo(()=>Ux(C.sections,g&&!s),[C.sections,g,s]),{returnedValue:A,interactions:N}=k(j({},e,y,f,{areAllSectionsEmpty:D,sectionOrder:w})),L=fe(V=>{if(l?.(V),!i)switch(!0){case((V.ctrlKey||V.metaKey)&&String.fromCharCode(V.keyCode)==="A"&&!V.shiftKey&&!V.altKey):{V.preventDefault(),x("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),S==null)x(w.startIndex);else if(S==="all")x(w.endIndex);else{const q=w.neighbors[S].rightIndex;q!==null&&x(q)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),S==null)x(w.endIndex);else if(S==="all")x(w.startIndex);else{const q=w.neighbors[S].leftIndex;q!==null&&x(q)}break}case V.key==="Delete":{if(V.preventDefault(),a)break;S==null||S==="all"?T():M(),O();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),a||P==null)break;S==="all"&&x(P);const q=C.sections[P],ne=h.getActiveDateManager(t,C,q),Q=Nx(t,I,q,V.key,F,E,ne.date,{minutesStep:o});$({activeSection:q,newSectionValue:Q,shouldGoToNextSection:!1});break}}});st(()=>{N.syncSelectionToDOM()});const{hasValidationError:_}=zu({props:n,validator:p,timezone:I,value:C.value,onError:n.onError}),K=v.useMemo(()=>c!==void 0?c:_,[_,c]);v.useEffect(()=>{!K&&P==null&&O()},[C.referenceValue,P,K]),v.useEffect(()=>{C.tempValueStrAndroid!=null&&P!=null&&(O(),M())},[C.sections]),v.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const Y=fe((V,...q)=>{V.preventDefault(),d?.(V,...q),T(),N.isFieldFocused()?x(w.startIndex):N.focusField(0)}),ae={onKeyDown:L,onClear:Y,error:K,clearable:!!(u&&!D&&!a&&!i)},le={disabled:i,readOnly:a};return j({},e.forwardedProps,ae,le,A)},NS=["clearable","onClear","InputProps","sx","slots","slotProps"],jS=["ownerState"],BS=e=>{const t=an(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ke(e,NS),c=i?.clearButton??Nn,u=Ae({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ke(u,jS),h=i?.clearIcon??wS,b=Ae({elementType:h,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:m.jsxs(v.Fragment,{children:[n&&m.jsx(Wu,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:m.jsx(c,j({},d,{onClick:r,children:m.jsx(h,j({fontSize:"small"},b))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},VS=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],zS=(e,t)=>v.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return VS.forEach(o),Bu.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),WS=e=>{const t=Ue(),n=no();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Lt(t,e.minDate,n.minDate),maxDate:Lt(t,e.maxDate,n.maxDate)})},_S=e=>{const t=WS(e),{forwardedProps:n,internalProps:r}=zS(t,"date");return LS({forwardedProps:n,internalProps:r,valueManager:Qt,fieldValueManager:Kx,validator:ro,valueType:"date"})};function HS(e){return Se("MuiPickersTextField",e)}be("MuiPickersTextField",["root","focused","disabled","error","required"]);function US(e){return Se("MuiPickersInputBase",e)}const tr=be("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function YS(e){return Se("MuiPickersSectionList",e)}const wr=be("MuiPickersSectionList",["root","section","sectionContent"]),GS=["slots","slotProps","elements","sectionListRef"],Qu=W("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Xu=W("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Zu=W("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Ju=W("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),qS=e=>{const{classes:t}=e;return ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},YS,t)};function KS(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Xu,i=Ae({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Ju,l=Ae({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Zu,u=Ae({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Ae({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return m.jsxs(s,j({},i,{children:[m.jsx(c,j({},u)),m.jsx(a,j({},l)),m.jsx(c,j({},d))]}))}const QS=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ke(r,GS),c=qS(r),u=v.useRef(null),d=Fe(n,u),h=g=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return u.current};v.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(g){return h("getSectionContainer").querySelector(`.${wr.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return h("getSectionContent").querySelector(`.${wr.section}[data-sectionindex="${g}"] .${wr.sectionContent}`)},getSectionIndexFromDOMElement(g){const y=h("getSectionIndexFromDOMElement");if(g==null||!y.contains(g))return null;let C=null;return g.classList.contains(wr.section)?C=g:g.classList.contains(wr.sectionContent)&&(C=g.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const b=o?.root??Qu,p=Ae({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return m.jsx(b,j({},p,{children:p.contentEditable?i.map(({content:g,before:y,after:C})=>`${y.children}${g.children}${C.children}`).join(""):m.jsx(v.Fragment,{children:i.map((g,y)=>m.jsx(KS,{slots:o,slotProps:s,element:g,classes:c},y))})}))}),XS=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],ZS=e=>Math.round(e*1e5)/1e5,us=W("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>j({},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:`${ZS(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ji=W(Qu,{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:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),JS=W(Xu,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),eC=W(Ju,{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"})),tC=W(Zu,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),nC=W("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},wx)),rC=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${ue(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ve(d,US,o)},ea=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:h,slotProps:b,contentEditable:p,tabIndex:g,onInput:y,onPaste:C,onKeyDown:P,name:S,readOnly:x,inputProps:T,inputRef:M,sectionListRef:$}=r,R=ke(r,XS),F=v.useRef(null),E=Fe(n,F),I=Fe(T?.ref,M),f=Wt(),O=Bt();if(!O)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=_=>{if(O.disabled){_.stopPropagation();return}O.onFocus?.(_)};v.useEffect(()=>{O&&O.setAdornedStart(!!u)},[O,u]),v.useEffect(()=>{O&&(s?O.onEmpty():O.onFilled())},[O,s]);const k=j({},r,O,{isRtl:f}),w=rC(k),A=h?.root||us,N=Ae({elementType:A,externalSlotProps:b?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":O.error,ref:E},className:w.root,ownerState:k}),L=h?.input||Ji;return m.jsxs(A,j({},N,{children:[u,m.jsx(QS,{sectionListRef:$,elements:o,contentEditable:p,tabIndex:g,className:w.sectionsContainer,onFocus:D,onBlur:O.onBlur,onInput:y,onPaste:C,onKeyDown:P,slots:{root:L,section:JS,sectionContent:eC,sectionSeparator:tC},slotProps:{root:{ownerState:k},sectionContent:{className:tr.sectionContent},sectionSeparator:({position:_})=>({className:_==="before"?tr.sectionBefore:tr.sectionAfter})}}),c,d?d(j({},O)):null,m.jsx(nC,j({name:S,className:w.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:O.required,disabled:O.disabled},T,{ref:I}))]}))});function oC(e){return Se("MuiPickersOutlinedInput",e)}const zt=j({},tr,be("MuiPickersOutlinedInput",["root","notchedOutline","input"])),sC=["children","className","label","notched","shrink"],iC=W("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}}),Kl=W("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),aC=W("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 lC(e){const{className:t,label:n}=e,r=ke(e,sC),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return m.jsx(iC,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:m.jsx(aC,{ownerState:s,children:o?m.jsx(Kl,{children:n}):m.jsx(Kl,{className:"notranslate",children:"​"})})}))}const cC=["label","autoFocus","ownerState","notched"],uC=W(us,{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 .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${zt.focused} .${zt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${zt.disabled}`]:{[`& .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${zt.error} .${zt.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:{[`&.${zt.focused}:not(.${zt.error}) .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),dC=W(Ji,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),pC=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},oC,t);return j({},t,r)},ed=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ke(r,cC),l=Bt(),c=j({},r,s,l,{color:l?.color||"primary"}),u=pC(c);return m.jsx(ea,j({slots:{root:uC,input:dC},renderSuffix:d=>m.jsx(lC,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&l?.required?m.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});ed.muiName="Input";function fC(e){return Se("MuiPickersFilledInput",e)}const wn=j({},tr,be("MuiPickersFilledInput",["root","underline","input"])),mC=["label","autoFocus","disableUnderline","ownerState"],hC=W(us,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qe.shouldForwardProp(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)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${wn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${wn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`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(.${wn.disabled}, .${wn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),gC=W(Ji,{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}}]}),yC=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},fC,t);return j({},t,o)},td=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ke(r,mC),l=Bt(),c=j({},r,i,l,{color:l?.color||"primary"}),u=yC(c);return m.jsx(ea,j({slots:{root:hC,input:gC},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});td.muiName="Input";function bC(e){return Se("MuiPickersFilledInput",e)}const Pr=j({},tr,be("MuiPickersInput",["root","input"])),vC=["label","autoFocus","disableUnderline","ownerState"],xC=W(us,{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(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].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"},[`&.${Pr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pr.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(.${Pr.disabled}, .${Pr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Pr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),SC=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},bC,t);return j({},t,o)},nd=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ke(r,vC),l=Bt(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=SC(c);return m.jsx(ea,j({slots:{root:xC}},a,{label:o,classes:u,ref:n}))});nd.muiName="Input";const CC=["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"],wC={standard:nd,filled:td,outlined:ed},PC=W(Ei,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),kC=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ve({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},HS,r)},MC=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:h,inputProps:b,inputRef:p,sectionListRef:g,elements:y,areAllSectionsEmpty:C,onClick:P,onKeyDown:S,onKeyUp:x,onPaste:T,onInput:M,endAdornment:$,startAdornment:R,tabIndex:F,contentEditable:E,focused:I,value:f,onChange:O,fullWidth:D,id:k,name:w,helperText:A,FormHelperTextProps:N,label:L,InputLabelProps:_}=r,K=ke(r,CC),Y=v.useRef(null),ae=Fe(n,Y),le=_t(k),V=A&&le?`${le}-helper-text`:void 0,q=L&&le?`${le}-label`:void 0,ne=j({},r,{color:a,disabled:l,error:c,focused:I,required:d,variant:u}),Q=kC(ne),z=wC[u];return m.jsxs(PC,j({className:me(Q.root,i),ref:ae,focused:I,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:d,ownerState:ne},K,{children:[m.jsx($i,j({htmlFor:le,id:q},_,{children:L})),m.jsx(z,j({elements:y,areAllSectionsEmpty:C,onClick:P,onKeyDown:S,onKeyUp:x,onInput:M,onPaste:T,endAdornment:$,startAdornment:R,tabIndex:F,contentEditable:E,value:f,onChange:O,id:le,fullWidth:D,inputProps:b,inputRef:p,sectionListRef:g,label:L,name:w,role:"group","aria-labelledby":q,"aria-describedby":V,"aria-live":V?"polite":void 0},h)),A&&m.jsx(ru,j({id:V},N,{children:A}))]}))}),DC=["enableAccessibleFieldDOMStructure"],TC=["InputProps","readOnly"],IC=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],RC=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ke(e,DC);if(t){const{InputProps:d,readOnly:h}=n,b=ke(n,TC);return j({},b,{InputProps:j({},d??{},{readOnly:h})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ke(n,IC);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},OC=["slots","slotProps","InputProps","inputProps"],rd=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ke(r,OC),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?MC:Ni),d=Ae({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=j({},a,d.inputProps),d.InputProps=j({},i,d.InputProps);const h=_S(d),b=RC(h),p=BS(j({},b,{slots:o,slotProps:s}));return m.jsx(u,j({},p))}),od=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=Bn();return v.useCallback(c=>ro({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},$C=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},EC=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,h=Ue(),b=v.useRef($C(!!c,s,h)).current,p=v.useMemo(()=>Qt.getInitialReferenceValue({value:t,utils:h,timezone:d,props:e,referenceDate:n,granularity:Yt.day}),[n,d]),[g,y]=v.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:p,currentMonth:h.startOfMonth(p),slideDirection:"left"});v.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:h.getTimezone(p)})},[p,h]);const C=v.useCallback(M=>{y(j({type:"changeMonth"},M)),l&&l(M.newMonth)},[l]),P=v.useCallback(M=>{const $=M;h.isSameMonth($,g.currentMonth)||C({newMonth:h.startOfMonth($),direction:h.isAfterDay($,g.currentMonth)?"left":"right"})},[g.currentMonth,C,h]),S=od({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:d}),x=v.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),T=fe((M,$)=>{S(M)||y({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:$})});return{referenceDate:p,calendarState:g,changeMonth:P,changeFocusedDay:T,isDateDisabled:S,onMonthSwitchingAnimationEnd:x,handleChangeMonth:C}},AC=e=>Se("MuiPickersFadeTransitionGroup",e);be("MuiPickersFadeTransitionGroup",["root"]);const FC=e=>{const{classes:t}=e;return ve({root:["root"]},AC,t)},LC=W(Jr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function sd(e){const t=He({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=FC(t),a=Fn();return o?n:m.jsx(LC,{className:me(i.root,r),children:m.jsx($n,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function NC(e){return Se("MuiPickersDay",e)}const Pn=be("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),jC=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],BC=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return ve({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},NC,l)},id=({theme:e})=>j({},e.typography.caption,{width:Hr,height:Hr,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})`:Qe.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Pn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Pn.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}},[`&.${Pn.disabled}:not(.${Pn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pn.disabled}&.${Pn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${ls}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Pn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ad=(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]},VC=W(ir,{name:"MuiPickersDay",slot:"Root",overridesResolver:ad})(id),zC=W("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ad})(({theme:e})=>j({},id({theme:e}),{opacity:0,pointerEvents:"none"})),kr=()=>{},WC=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:h,onFocus:b=kr,onBlur:p=kr,onKeyDown:g=kr,onMouseDown:y=kr,onMouseEnter:C=kr,outsideCurrentMonth:P,selected:S=!1,showDaysOutsideCurrentMonth:x=!1,children:T,today:M=!1}=r,$=ke(r,jC),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:S,showDaysOutsideCurrentMonth:x,today:M}),F=BC(R),E=Ue(),I=v.useRef(null),f=Fe(I,n);st(()=>{o&&!a&&!u&&!P&&I.current.focus()},[o,a,u,P]);const O=k=>{y(k),P&&k.preventDefault()},D=k=>{a||h(i),P&&k.currentTarget.focus(),d&&d(k)};return P&&!x?m.jsx(zC,{className:me(F.root,F.hiddenDaySpacingFiller,s),ownerState:R,role:$.role}):m.jsx(VC,j({className:me(F.root,s),ref:f,centerRipple:!0,disabled:a,tabIndex:S?0:-1,onKeyDown:k=>g(k,i),onFocus:k=>b(k,i),onBlur:k=>p(k,i),onMouseEnter:k=>C(k,i),onClick:D,onMouseDown:O},$,{ownerState:R,children:T||E.format(i,"dayOfMonth")}))}),_C=v.memo(WC),HC=e=>Se("MuiPickersSlideTransition",e),It=be("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),UC=["children","className","reduceAnimations","slideDirection","transKey","classes"],YC=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ve(r,HC,t)},GC=W(Jr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${It["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${It["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${It.slideEnterActive}`]:t.slideEnterActive},{[`.${It.slideExit}`]:t.slideExit},{[`.${It["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${It["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},[`& .${It["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${It["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${It.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${It.slideExit}`]:{transform:"translate(0%)"},[`& .${It["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${It["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function qC(e){const t=He({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ke(t,UC),a=YC(t),l=Fn();if(o)return m.jsx("div",{className:me(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return m.jsx(GC,{className:me(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:m.jsx(ki,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const KC=e=>Se("MuiDayCalendar",e);be("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const QC=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],XC=["ownerState"],ZC=e=>{const{classes:t}=e;return ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},KC,t)},ld=(Hr+ls*2)*6,JC=W("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ew=W("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),tw=W(gn,{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})),nw=W(gn,{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})),rw=W(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Hr,height:Hr,padding:0,margin:`0 ${ls}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ow=W("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ld}),sw=W(qC,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ld}),iw=W("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),aw=W("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${ls}px 0`,display:"flex",justifyContent:"center"});function lw(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ke(e,QC);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:h,slots:b,slotProps:p,timezone:g}=t,y=Ue(),C=as(g),P=r!==null&&y.isSameDay(n,r),S=o.some(f=>y.isSameDay(f,n)),x=y.isSameDay(n,C),T=b?.day??_C,M=Ae({elementType:T,externalSlotProps:p?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:d,"data-timestamp":y.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:S})}),$=ke(M,XC),R=v.useMemo(()=>c||s(n),[c,s,n]),F=v.useMemo(()=>y.getMonth(n)!==i,[y,n,i]),E=v.useMemo(()=>{const f=y.startOfMonth(y.setMonth(n,i));return h?y.isSameDay(n,y.startOfWeek(f)):y.isSameDay(n,f)},[i,n,h,y]),I=v.useMemo(()=>{const f=y.endOfMonth(y.setMonth(n,i));return h?y.isSameDay(n,y.endOfWeek(f)):y.isSameDay(n,f)},[i,n,h,y]);return m.jsx(T,j({},$,{day:n,disabled:R,autoFocus:a&&P,today:x,outsideCurrentMonth:F,isFirstVisibleCell:E,isLastVisibleCell:I,selected:S,tabIndex:P?0:-1,"aria-selected":S,"aria-current":x?"date":void 0}))}function cw(e){const t=He({props:e,name:"MuiDayCalendar"}),n=Ue(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:h,renderLoading:b=()=>m.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:g,disablePast:y,disableFuture:C,minDate:P,maxDate:S,shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:M,dayOfWeekFormatter:$=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:F,gridLabelId:E,displayWeekNumber:I,fixedWeekNumber:f,autoFocus:O,timezone:D}=t,k=as(D),w=ZC(t),A=Wt(),N=od({shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:M,minDate:P,maxDate:S,disablePast:y,disableFuture:C,timezone:D}),L=an(),[_,K]=Mt({name:"DayCalendar",state:"hasFocus",controlled:R,default:O??!1}),[Y,ae]=v.useState(()=>a||k),le=fe(te=>{d||c(te)}),V=te=>{N(te)||(r(te),ae(te),F?.(!0),K(!0))},q=fe((te,pe)=>{switch(te.key){case"ArrowUp":V(n.addDays(pe,-7)),te.preventDefault();break;case"ArrowDown":V(n.addDays(pe,7)),te.preventDefault();break;case"ArrowLeft":{const H=n.addDays(pe,A?1:-1),ye=n.addMonths(pe,A?1:-1),de=Lr({utils:n,date:H,minDate:A?H:n.startOfMonth(ye),maxDate:A?n.endOfMonth(ye):H,isDateDisabled:N,timezone:D});V(de||H),te.preventDefault();break}case"ArrowRight":{const H=n.addDays(pe,A?-1:1),ye=n.addMonths(pe,A?-1:1),de=Lr({utils:n,date:H,minDate:A?n.startOfMonth(ye):H,maxDate:A?H:n.endOfMonth(ye),isDateDisabled:N,timezone:D});V(de||H),te.preventDefault();break}case"Home":V(n.startOfWeek(pe)),te.preventDefault();break;case"End":V(n.endOfWeek(pe)),te.preventDefault();break;case"PageUp":V(n.addMonths(pe,1)),te.preventDefault();break;case"PageDown":V(n.addMonths(pe,-1)),te.preventDefault();break}}),ne=fe((te,pe)=>V(pe)),Q=fe((te,pe)=>{_&&n.isSameDay(Y,pe)&&F?.(!1)}),z=n.getMonth(s),G=n.getYear(s),se=v.useMemo(()=>i.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,i]),oe=`${G}-${z}`,B=v.useMemo(()=>v.createRef(),[oe]),ee=v.useMemo(()=>{const te=n.startOfMonth(s),pe=n.endOfMonth(s);return N(Y)||n.isAfterDay(Y,pe)||n.isBeforeDay(Y,te)?Lr({utils:n,date:Y,minDate:te,maxDate:pe,disablePast:y,disableFuture:C,isDateDisabled:N,timezone:D}):Y},[s,C,y,Y,N,n,D]),ce=v.useMemo(()=>{const te=n.getWeekArray(s);let pe=n.addMonths(s,1);for(;f&&te.length<f;){const H=n.getWeekArray(pe),ye=n.isSameDay(te[te.length-1][0],H[0][0]);H.slice(ye?1:0).forEach(de=>{te.length<f&&te.push(de)}),pe=n.addMonths(pe,1)}return te},[s,f,n]);return m.jsxs(JC,{role:"grid","aria-labelledby":E,className:w.root,children:[m.jsxs(ew,{role:"row",className:w.header,children:[I&&m.jsx(nw,{variant:"caption",role:"columnheader","aria-label":L.calendarWeekNumberHeaderLabel,className:w.weekNumberLabel,children:L.calendarWeekNumberHeaderText}),Tx(n,k).map((te,pe)=>m.jsx(tw,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:w.weekDayLabel,children:$(te)},pe.toString()))]}),l?m.jsx(ow,{className:w.loadingContainer,children:b()}):m.jsx(sw,j({transKey:oe,onExited:u,reduceAnimations:h,slideDirection:p,className:me(o,w.slideTransition)},g,{nodeRef:B,children:m.jsx(iw,{ref:B,role:"rowgroup",className:w.monthContainer,children:ce.map((te,pe)=>m.jsxs(aw,{role:"row",className:w.weekContainer,"aria-rowindex":pe+1,children:[I&&m.jsx(rw,{className:w.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:L.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((H,ye)=>m.jsx(lw,{parentProps:t,day:H,selectedDays:se,focusableDay:ee,onKeyDown:q,onFocus:ne,onBlur:Q,onDaySelect:le,isDateDisabled:N,currentMonthNumber:z,isViewFocused:_,"aria-colindex":ye+1},H.toString()))]},`week-${te[0]}`))})}))]})}function uw(e){return Se("MuiPickersMonth",e)}const fo=be("MuiPickersMonth",["root","monthButton","disabled","selected"]),dw=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],pw=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},uw,r)},fw=W("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%"}}]}),mw=W("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${fo.disabled}`]:t.disabled},{[`&.${fo.selected}`]:t.selected}]})(({theme:e})=>j({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})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${fo.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${fo.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),hw=v.memo(function(t){const n=He({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:b,"aria-current":p,"aria-label":g,slots:y,slotProps:C}=n,P=ke(n,dw),S=v.useRef(null),x=pw(n);st(()=>{r&&S.current?.focus()},[r]);const T=y?.monthButton??mw,M=Ae({elementType:T,externalSlotProps:C?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":g,onClick:$=>u($,l),onKeyDown:$=>d($,l),onFocus:$=>h($,l),onBlur:$=>b($,l)},ownerState:n,className:x.monthButton});return m.jsx(fw,j({className:me(x.root,o),ownerState:n},P,{children:m.jsx(T,j({},M))}))});function gw(e){return Se("MuiMonthCalendar",e)}be("MuiMonthCalendar",["root"]);const yw=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],bw=e=>{const{classes:t}=e;return ve({root:["root"]},gw,t)};function vw(e,t){const n=Ue(),r=no(),o=He({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:Lt(n,o.minDate,r.minDate),maxDate:Lt(n,o.maxDate,r.maxDate)})}const xw=W("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:cs,boxSizing:"border-box"}),Sw=v.forwardRef(function(t,n){const r=vw(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:h,onChange:b,shouldDisableMonth:p,readOnly:g,autoFocus:y=!1,onMonthFocus:C,hasFocus:P,onFocusedViewChange:S,monthsPerRow:x=3,timezone:T,gridLabelId:M,slots:$,slotProps:R}=r,F=ke(r,yw),{value:E,handleValueChange:I,timezone:f}=Xi({name:"MonthCalendar",timezone:T,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Qt}),O=as(f),D=Wt(),k=Ue(),w=v.useMemo(()=>Qt.getInitialReferenceValue({value:E,utils:k,props:r,timezone:f,referenceDate:a,granularity:Yt.month}),[]),A=r,N=bw(A),L=v.useMemo(()=>k.getMonth(O),[k,O]),_=v.useMemo(()=>E!=null?k.getMonth(E):null,[E,k]),[K,Y]=v.useState(()=>_||k.getMonth(w)),[ae,le]=Mt({name:"MonthCalendar",state:"hasFocus",controlled:P,default:y??!1}),V=fe(oe=>{le(oe),S&&S(oe)}),q=v.useCallback(oe=>{const B=k.startOfMonth(u&&k.isAfter(O,h)?O:h),ee=k.startOfMonth(c&&k.isBefore(O,d)?O:d),ce=k.startOfMonth(oe);return k.isBefore(ce,B)||k.isAfter(ce,ee)?!0:p?p(ce):!1},[c,u,d,h,O,p,k]),ne=fe((oe,B)=>{if(g)return;const ee=k.setMonth(E??w,B);I(ee)}),Q=fe(oe=>{q(k.setMonth(E??w,oe))||(Y(oe),V(!0),C&&C(oe))});v.useEffect(()=>{Y(oe=>_!==null&&oe!==_?_:oe)},[_]);const z=fe((oe,B)=>{switch(oe.key){case"ArrowUp":Q((12+B-3)%12),oe.preventDefault();break;case"ArrowDown":Q((12+B+3)%12),oe.preventDefault();break;case"ArrowLeft":Q((12+B+(D?1:-1))%12),oe.preventDefault();break;case"ArrowRight":Q((12+B+(D?-1:1))%12),oe.preventDefault();break}}),G=fe((oe,B)=>{Q(B)}),se=fe((oe,B)=>{K===B&&V(!1)});return m.jsx(xw,j({ref:n,className:me(N.root,o),ownerState:A,role:"radiogroup","aria-labelledby":M},F,{children:Yi(k,E??w).map(oe=>{const B=k.getMonth(oe),ee=k.format(oe,"monthShort"),ce=k.format(oe,"month"),te=B===_,pe=l||q(oe);return m.jsx(hw,{selected:te,value:B,onClick:ne,onKeyDown:z,autoFocus:ae&&B===K,disabled:pe,tabIndex:B===K&&!pe?0:-1,onFocus:G,onBlur:se,"aria-current":L===B?"date":void 0,"aria-label":ce,monthsPerRow:x,slots:$,slotProps:R,children:ee},ee)})}))});function Cw(e){return Se("MuiPickersYear",e)}const mo=be("MuiPickersYear",["root","yearButton","selected","disabled"]),ww=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Pw=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Cw,r)},kw=W("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%"}}]}),Mw=W("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${mo.disabled}`]:t.disabled},{[`&.${mo.selected}`]:t.selected}]})(({theme:e})=>j({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})`:Qe.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${mo.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${mo.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Dw=v.memo(function(t){const n=He({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:b,"aria-current":p,slots:g,slotProps:y}=n,C=ke(n,ww),P=v.useRef(null),S=Pw(n);st(()=>{r&&P.current?.focus()},[r]);const x=g?.yearButton??Mw,T=Ae({elementType:x,externalSlotProps:y?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:P,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>h(M,l),onBlur:M=>b(M,l)},ownerState:n,className:S.yearButton});return m.jsx(kw,j({className:me(S.root,o),ownerState:n},C,{children:m.jsx(x,j({},T))}))});function Tw(e){return Se("MuiYearCalendar",e)}be("MuiYearCalendar",["root"]);const Iw=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Rw=e=>{const{classes:t}=e;return ve({root:["root"]},Tw,t)};function Ow(e,t){const n=Ue(),r=no(),o=He({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Lt(n,o.minDate,r.minDate),maxDate:Lt(n,o.maxDate,r.maxDate)})}const $w=W("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:cs,maxHeight:oS,boxSizing:"border-box",position:"relative"}),Ew=v.forwardRef(function(t,n){const r=Ow(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:b,onChange:p,readOnly:g,shouldDisableYear:y,onYearFocus:C,hasFocus:P,onFocusedViewChange:S,yearsOrder:x="asc",yearsPerRow:T,timezone:M,gridLabelId:$,slots:R,slotProps:F}=r,E=ke(r,Iw),{value:I,handleValueChange:f,timezone:O}=Xi({name:"YearCalendar",timezone:M,value:i,defaultValue:a,referenceDate:l,onChange:p,valueManager:Qt}),D=as(O),k=Wt(),w=Ue(),A=v.useMemo(()=>Qt.getInitialReferenceValue({value:I,utils:w,props:r,timezone:O,referenceDate:l,granularity:Yt.year}),[]),N=r,L=Rw(N),_=v.useMemo(()=>w.getYear(D),[w,D]),K=v.useMemo(()=>I!=null?w.getYear(I):null,[I,w]),[Y,ae]=v.useState(()=>K||w.getYear(A)),[le,V]=Mt({name:"YearCalendar",state:"hasFocus",controlled:P,default:o??!1}),q=fe(H=>{V(H),S&&S(H)}),ne=v.useCallback(H=>{if(d&&w.isBeforeYear(H,D)||u&&w.isAfterYear(H,D)||b&&w.isBeforeYear(H,b)||h&&w.isAfterYear(H,h))return!0;if(!y)return!1;const ye=w.startOfYear(H);return y(ye)},[u,d,h,b,D,y,w]),Q=fe((H,ye)=>{if(g)return;const de=w.setYear(I??A,ye);f(de)}),z=fe(H=>{ne(w.setYear(I??A,H))||(ae(H),q(!0),C?.(H))});v.useEffect(()=>{ae(H=>K!==null&&H!==K?K:H)},[K]);const G=x!=="desc"?T*1:T*-1,se=k&&x==="asc"||!k&&x==="desc"?-1:1,oe=fe((H,ye)=>{switch(H.key){case"ArrowUp":z(ye-G),H.preventDefault();break;case"ArrowDown":z(ye+G),H.preventDefault();break;case"ArrowLeft":z(ye-se),H.preventDefault();break;case"ArrowRight":z(ye+se),H.preventDefault();break}}),B=fe((H,ye)=>{z(ye)}),ee=fe((H,ye)=>{Y===ye&&q(!1)}),ce=v.useRef(null),te=Fe(n,ce);v.useEffect(()=>{if(o||ce.current===null)return;const H=ce.current.querySelector('[tabindex="0"]');if(!H)return;const ye=H.offsetHeight,de=H.offsetTop,Me=ce.current.clientHeight,he=ce.current.scrollTop,et=de+ye;ye>Me||de<he||(ce.current.scrollTop=et-Me/2-ye/2)},[o]);const pe=w.getYearRange([b,h]);return x==="desc"&&pe.reverse(),m.jsx($w,j({ref:te,className:me(L.root,s),ownerState:N,role:"radiogroup","aria-labelledby":$},E,{children:pe.map(H=>{const ye=w.getYear(H),de=ye===K,Me=c||ne(H);return m.jsx(Dw,{selected:de,value:ye,onClick:Q,onKeyDown:oe,autoFocus:le&&ye===Y,disabled:Me,tabIndex:ye===Y&&!Me?0:-1,onFocus:B,onBlur:ee,"aria-current":_===ye?"date":void 0,yearsPerRow:T,slots:R,slotProps:F,children:w.format(H,"year")},w.format(H,"year"))})}))}),Aw=e=>Se("MuiPickersCalendarHeader",e),Fw=be("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Lw(e){return Se("MuiPickersArrowSwitcher",e)}be("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Nw=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],jw=["ownerState"],Bw=["ownerState"],Vw=W("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),zw=W("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Ql=W(Nn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Ww=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Lw,t)},_w=v.forwardRef(function(t,n){const r=Wt(),o=He({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:h,isPreviousDisabled:b,isPreviousHidden:p,onGoToPrevious:g,previousLabel:y,labelId:C}=o,P=ke(o,Nw),S=o,x=Ww(S),T={isDisabled:c,isHidden:u,goTo:d,label:h},M={isDisabled:b,isHidden:p,goTo:g,label:y},$=a?.previousIconButton??Ql,R=Ae({elementType:$,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:j({},S,{hidden:M.isHidden}),className:me(x.button,x.previousIconButton)}),F=a?.nextIconButton??Ql,E=Ae({elementType:F,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:j({},S,{hidden:T.isHidden}),className:me(x.button,x.nextIconButton)}),I=a?.leftArrowIcon??xS,f=Ae({elementType:I,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:x.leftArrowIcon}),O=ke(f,jw),D=a?.rightArrowIcon??SS,k=Ae({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:x.rightArrowIcon}),w=ke(k,Bw);return m.jsxs(Vw,j({ref:n,className:me(x.root,i),ownerState:S},P,{children:[m.jsx($,j({},R,{children:r?m.jsx(D,j({},w)):m.jsx(I,j({},O))})),s?m.jsx(gn,{variant:"subtitle1",component:"span",id:C,children:s}):m.jsx(zw,{className:x.spacer,ownerState:S}),m.jsx(F,j({},E,{children:r?m.jsx(I,j({},O)):m.jsx(D,j({},w))}))]}))});function Hw(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Ue();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function Uw(e,{disablePast:t,minDate:n,timezone:r}){const o=Ue();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const Yw=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Gw=["ownerState"],qw=e=>{const{classes:t}=e;return ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Aw,t)},Kw=W("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}),Qw=W("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Xw=W("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Zw=W(Nn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Fw.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Jw=W(vS,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),eP=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=He({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:b,onMonthChange:p,onViewChange:g,view:y,reduceAnimations:C,views:P,labelId:S,className:x,timezone:T,format:M=`${o.formats.month} ${o.formats.year}`}=s,$=ke(s,Yw),R=s,F=qw(s),E=i?.switchViewButton??Zw,I=Ae({elementType:E,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:R,className:F.switchViewButton}),f=i?.switchViewIcon??Jw,O=Ae({elementType:f,externalSlotProps:a?.switchViewIcon,ownerState:R,className:F.switchViewIcon}),D=ke(O,Gw),k=()=>p(o.addMonths(l,1),"left"),w=()=>p(o.addMonths(l,-1),"right"),A=Hw(l,{disableFuture:u,maxDate:h,timezone:T}),N=Uw(l,{disablePast:d,minDate:b,timezone:T}),L=()=>{if(!(P.length===1||!g||c))if(P.length===2)g(P.find(K=>K!==y)||P[0]);else{const K=P.indexOf(y)!==0?0:1;g(P[K])}};if(P.length===1&&P[0]==="year")return null;const _=o.formatByString(l,M);return m.jsxs(Kw,j({},$,{ownerState:R,className:me(F.root,x),ref:n,children:[m.jsxs(Qw,{role:"presentation",onClick:L,ownerState:R,"aria-live":"polite",className:F.labelContainer,children:[m.jsx(sd,{reduceAnimations:C,transKey:_,children:m.jsx(Xw,{id:S,ownerState:R,className:F.label,children:_})}),P.length>1&&!c&&m.jsx(E,j({},I,{children:m.jsx(f,j({},D))}))]}),m.jsx($n,{in:y==="day",appear:!C,enter:!C,children:m.jsx(_w,{slots:i,slotProps:a,onGoToPrevious:w,isPreviousDisabled:N,previousLabel:r.previousMonth,onGoToNext:k,isNextDisabled:A,nextLabel:r.nextMonth})})]}))}),tP=W("div")({overflow:"hidden",width:cs,maxHeight:Zi,display:"flex",flexDirection:"column",margin:"0 auto"}),nP=e=>Se("MuiDateCalendar",e);be("MuiDateCalendar",["root","viewTransitionContainer"]);const rP=["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"],oP=e=>{const{classes:t}=e;return ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},nP,t)};function sP(e,t){const n=Ue(),r=no(),o=_u(),s=He({props:e,name:t});return j({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>m.jsx("span",{children:"..."})),minDate:Lt(n,s.minDate,r.minDate),maxDate:Lt(n,s.maxDate,r.maxDate)})}const iP=W(tP,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Zi}),aP=W(sd,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),lP=v.forwardRef(function(t,n){const r=Ue(),o=_t(),s=sP(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:h,onChange:b,onYearChange:p,onMonthChange:g,reduceAnimations:y,shouldDisableDate:C,shouldDisableMonth:P,shouldDisableYear:S,view:x,views:T,openTo:M,className:$,disabled:R,readOnly:F,minDate:E,maxDate:I,disableHighlightToday:f,focusedView:O,onFocusedViewChange:D,showDaysOutsideCurrentMonth:k,fixedWeekNumber:w,dayOfWeekFormatter:A,slots:N,slotProps:L,loading:_,renderLoading:K,displayWeekNumber:Y,yearsOrder:ae,yearsPerRow:le,monthsPerRow:V,timezone:q}=s,ne=ke(s,rP),{value:Q,handleValueChange:z,timezone:G}=Xi({name:"DateCalendar",timezone:q,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Qt}),{view:se,setView:oe,focusedView:B,setFocusedView:ee,goToNextView:ce,setValueAndGoToNextView:te}=Hu({view:x,views:T,openTo:M,onChange:z,onViewChange:a,autoFocus:i,focusedView:O,onFocusedViewChange:D}),{referenceDate:pe,calendarState:H,changeFocusedDay:ye,changeMonth:de,handleChangeMonth:Me,isDateDisabled:he,onMonthSwitchingAnimationEnd:et}=EC({value:Q,referenceDate:u,reduceAnimations:y,onMonthChange:g,minDate:E,maxDate:I,shouldDisableDate:C,disablePast:h,disableFuture:d,timezone:G}),Le=R&&Q||E,Xe=R&&Q||I,nt=`${o}-grid-label`,mt=B!==null,rt=N?.calendarHeader??eP,xt=Ae({elementType:rt,externalSlotProps:L?.calendarHeader,additionalProps:{views:T,view:se,currentMonth:H.currentMonth,onViewChange:oe,onMonthChange:(Ne,pt)=>Me({newMonth:Ne,direction:pt}),minDate:Le,maxDate:Xe,disabled:R,disablePast:h,disableFuture:d,reduceAnimations:y,timezone:G,labelId:nt},ownerState:s}),_e=fe(Ne=>{const pt=r.startOfMonth(Ne),ht=r.endOfMonth(Ne),it=he(Ne)?Lr({utils:r,date:Ne,minDate:r.isBefore(E,pt)?pt:E,maxDate:r.isAfter(I,ht)?ht:I,disablePast:h,disableFuture:d,isDateDisabled:he,timezone:G}):Ne;it?(te(it,"finish"),g?.(pt)):(ce(),de(pt)),ye(it,!0)}),Ce=fe(Ne=>{const pt=r.startOfYear(Ne),ht=r.endOfYear(Ne),it=he(Ne)?Lr({utils:r,date:Ne,minDate:r.isBefore(E,pt)?pt:E,maxDate:r.isAfter(I,ht)?ht:I,disablePast:h,disableFuture:d,isDateDisabled:he,timezone:G}):Ne;it?(te(it,"finish"),p?.(it)):(ce(),de(pt)),ye(it,!0)}),tt=fe(Ne=>z(Ne&&Bo(r,Ne,Q??pe),"finish",se));v.useEffect(()=>{Q!=null&&r.isValid(Q)&&de(Q)},[Q]);const St=s,ut=oP(St),xe={disablePast:h,disableFuture:d,maxDate:I,minDate:E},Te={disableHighlightToday:f,readOnly:F,disabled:R,timezone:G,gridLabelId:nt,slots:N,slotProps:L},$e=v.useRef(se);v.useEffect(()=>{$e.current!==se&&(B===$e.current&&ee(se,!0),$e.current=se)},[B,ee,se]);const Ct=v.useMemo(()=>[Q],[Q]);return m.jsxs(iP,j({ref:n,className:me(ut.root,$),ownerState:St},ne,{children:[m.jsx(rt,j({},xt,{slots:N,slotProps:L})),m.jsx(aP,{reduceAnimations:y,className:ut.viewTransitionContainer,transKey:se,ownerState:St,children:m.jsxs("div",{children:[se==="year"&&m.jsx(Ew,j({},xe,Te,{value:Q,onChange:Ce,shouldDisableYear:S,hasFocus:mt,onFocusedViewChange:Ne=>ee("year",Ne),yearsOrder:ae,yearsPerRow:le,referenceDate:pe})),se==="month"&&m.jsx(Sw,j({},xe,Te,{hasFocus:mt,className:$,value:Q,onChange:_e,shouldDisableMonth:P,onFocusedViewChange:Ne=>ee("month",Ne),monthsPerRow:V,referenceDate:pe})),se==="day"&&m.jsx(cw,j({},H,xe,Te,{onMonthSwitchingAnimationEnd:et,onFocusedDayChange:ye,reduceAnimations:y,selectedDays:Ct,onSelectedDaysChange:tt,shouldDisableDate:C,shouldDisableMonth:P,shouldDisableYear:S,hasFocus:mt,onFocusedViewChange:Ne=>ee("day",Ne),showDaysOutsideCurrentMonth:k,fixedWeekNumber:w,dayOfWeekFormatter:A,displayWeekNumber:Y,loading:_,renderLoading:K}))]})})]}))}),nr=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:b,maxDate:p,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:C,reduceAnimations:P,onMonthChange:S,monthsPerRow:x,onYearChange:T,yearsOrder:M,yearsPerRow:$,slots:R,slotProps:F,loading:E,renderLoading:I,disableHighlightToday:f,readOnly:O,disabled:D,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:w,sx:A,autoFocus:N,fixedWeekNumber:L,displayWeekNumber:_,timezone:K})=>m.jsx(lP,{view:e,onViewChange:t,views:n.filter(Ll),focusedView:r&&Ll(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:b,maxDate:p,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:C,reduceAnimations:P,onMonthChange:S,monthsPerRow:x,onYearChange:T,yearsOrder:M,yearsPerRow:$,slots:R,slotProps:F,loading:E,renderLoading:I,disableHighlightToday:f,readOnly:O,disabled:D,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:w,sx:A,autoFocus:N,fixedWeekNumber:L,displayWeekNumber:_,timezone:K}),cd=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=ju(t,"MuiDesktopDatePicker"),i=j({day:nr,month:nr,year:nr},s.viewRenderers),a=j({},s,{viewRenderers:i,format:Gi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:CS,field:rd},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Jo(s.slotProps?.field,c),Vu(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=bS({props:a,valueManager:Qt,valueType:"date",getOpenDialogAriaText:Lu({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:ro});return l()});cd.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tu,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};function cP(e){return Se("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);const uP=be("MuiDialogTitle",["root"]),dP=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},cP,t)},pP=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Re(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${uP.root} + &`]:{paddingTop:0}}}]}))),fP=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=dP(a);return m.jsx(pP,{className:me(l.root,o),ownerState:a,ref:n,...i})});function mP(e){return Se("MuiDialog",e)}const Nr=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hP=v.createContext({}),gP=W(cu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),yP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return ve(i,mP,t)},bP=W(uu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),vP=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ue(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),xP=W(Ln,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ue(n.scroll)}`],t[`paperWidth${ue(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Re(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Nr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Nr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Nr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),SP=v.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiDialog"}),o=Fn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:h,disableEscapeKeyDown:b=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:C,onClose:P,open:S,PaperComponent:x=Ln,PaperProps:T={},scroll:M="paper",slots:$={},slotProps:R={},TransitionComponent:F=$n,transitionDuration:E=s,TransitionProps:I,...f}=r,O={...r,disableEscapeKeyDown:b,fullScreen:p,fullWidth:g,maxWidth:y,scroll:M},D=yP(O),k=v.useRef(),w=B=>{k.current=B.target===B.currentTarget},A=B=>{C&&C(B),k.current&&(k.current=null,P&&P(B,"backdropClick"))},N=_t(a),L=v.useMemo(()=>({titleId:N}),[N]),_={transition:F,...$},K={transition:I,paper:T,backdrop:u,...R},Y={slots:_,slotProps:K},[ae,le]=We("root",{elementType:bP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:O,className:me(D.root,h),ref:n}),[V,q]=We("backdrop",{elementType:gP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:O}),[ne,Q]=We("paper",{elementType:xP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:O,className:me(D.paper,T.className)}),[z,G]=We("container",{elementType:vP,externalForwardedProps:Y,ownerState:O,className:D.container}),[se,oe]=We("transition",{elementType:$n,externalForwardedProps:Y,ownerState:O,additionalProps:{appear:!0,in:S,timeout:E,role:"presentation"}});return m.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:V},slotProps:{backdrop:{transitionDuration:E,as:c,...q}},disableEscapeKeyDown:b,onClose:P,open:S,onClick:A,...le,...f,children:m.jsx(se,{...oe,children:m.jsx(z,{onMouseDown:w,...G,children:m.jsx(ne,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":N,"aria-modal":l,...Q,children:m.jsx(hP.Provider,{value:L,children:d})})})})})}),CP=W(SP)({[`& .${Nr.container}`]:{outline:0},[`& .${Nr.paper}`]:{outline:0,minWidth:cs}}),wP=W(fP)({"&:first-of-type":{padding:0}});function PP(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??CP,a=o?.mobileTransition??$n;return m.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:m.jsx(wP,{children:t})}))}const kP=["props","getOpenDialogAriaText"],MP=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ke(e,kP);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,name:p,label:g,inputRef:y,readOnly:C,disabled:P,localeText:S}=t,x=v.useRef(null),T=_t(),M=s?.toolbar?.hidden??!1,{open:$,actions:R,layoutProps:F,renderCurrentView:E,fieldProps:I,contextValue:f}=Uu(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),O=o.field,D=Ae({elementType:O,externalSlotProps:s?.field,additionalProps:j({},I,M&&{id:T},!(P||C)&&{onClick:R.onOpen,onKeyDown:x0(R.onOpen)},{readOnly:C??!0,disabled:P,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:h,timezone:b,label:g,name:p},y?{inputRef:y}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(I.value)});const k=j({textField:o.textField},D.slots),w=o.layout??qu;let A=T;M&&(g?A=`${T}-label`:A=void 0);const N=j({},s,{toolbar:j({},s?.toolbar,{titleId:T}),mobilePaper:j({"aria-labelledby":A},s?.mobilePaper)}),L=Fe(x,D.unstableFieldRef);return{renderPicker:()=>m.jsxs(Ku,{contextValue:f,localeText:S,children:[m.jsx(O,j({},D,{slots:k,slotProps:N,unstableFieldRef:L})),m.jsx(PP,j({},R,{open:$,slots:o,slotProps:N,children:m.jsx(w,j({},F,N?.layout,{slots:o,slotProps:N,children:E()}))}))]})}},ud=v.forwardRef(function(t,n){const r=an(),o=Ue(),s=ju(t,"MuiMobileDatePicker"),i=j({day:nr,month:nr,year:nr},s.viewRenderers),a=j({},s,{viewRenderers:i,format:Gi(o,s,!1),slots:j({field:rd},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Jo(s.slotProps?.field,c),Vu(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=MP({props:a,valueManager:Qt,valueType:"date",getOpenDialogAriaText:Lu({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:ro});return l()});ud.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tu,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const DP=["desktopModeMediaQuery"],Ur=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=S0}=r,s=ke(r,DP);return Iu(o,{defaultMatches:!0})?m.jsx(cd,j({ref:n},s)):m.jsx(ud,j({ref:n},s))});function dd(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}const Yr=ct(m.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"}));function pd(e,t){if(!t)return;const n=t.trim();if(!n)return;const r=e??"string";if(r==="date"||r==="timestamp"||r==="timestamptz")return n.replace(/^@/,"");if(r.startsWith("filter<")){const o=n.replace(/^f/,""),s=o.match(/^'([^'\\]*)'$/)??o.match(/^"([^"\\]*)"$/);return s?s[1]:o}return r==="string"?TP(n):n}function TP(e){const t=e[0];return e.length>=2&&(t==="'"||t==='"')&&e[e.length-1]===t?e.slice(1,-1).replace(/\\(["'\\ntr])/g,(n,r)=>r==="n"?`
133
+ `:r==="t"?" ":r==="r"?"\r":r):e}Ve.extend(si);const Xl=14,IP=42;function RP(e){const t=(e.annotations??[]).filter(r=>r.trim().startsWith("#("));if(t.length===0)return;const n=[];for(const r of t){const o=r.trim(),s=o.match(/description="([^"]*)"/);if(s){n.push(s[1]);continue}const i=o.replace(/^#\(/,"").replace(/\)\s*$/,"").trim();i&&n.push(i)}return n.length>0?n.join(`
134
+ `):void 0}function fd({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s}){const i=e.label??e.name??"",a=e.type??"string",l=RP(e),c=pd(a,e.default),u=c!==void 0?`Default: ${c===""?"(empty)":c}`:void 0,d=l||u?m.jsxs(m.Fragment,{children:[l,l&&u?m.jsx("br",{}):null,u]}):void 0,h=a==="string"||Qn(a)==="string",b=!Dn(a)||typeof t!="string"||qd(t),p=w=>m.jsx(re.TextField,{label:i,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:m.jsxs(m.Fragment,{children:[`Not a ${w}. Clear it to pick one.`,d?m.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:m.jsx(Es,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),g=Dn(a),y=e.control==="multiselect"&&g,C=Dn(a),P=e.control==="select"||e.control==="multiselect",S=P?C?typeof t=="string"?Gd(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(P&&h&&b&&!(!y&&S.length>1)){const w=A=>{const N=C?ii(A):void 0;if(A.length===0||N===""){n(null);return}n(C?N:A[0])};return m.jsx(re.Autocomplete,{multiple:y,disableCloseOnSelect:y,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:s?"Options unavailable":"No matching values",value:y?S:S[0]??null,onChange:(A,N)=>w(N===null?[]:Array.isArray(N)?N:[N]),renderInput:A=>m.jsx(re.TextField,{...A,label:i,size:"small",placeholder:S.length!==0?void 0:t===""?"All":c??"All",error:s,helperText:s?m.jsxs(m.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",d?m.jsx("br",{}):null,d]}):d,slotProps:{input:{...A.InputProps,endAdornment:m.jsxs(m.Fragment,{children:[o&&m.jsx(re.CircularProgress,{size:16}),A.InputProps.endAdornment]})}}}),fullWidth:!0})}const x=Dn(a)&&Qn(a)==="number",{rangeMin:T,rangeMax:M}=e,$=x&&typeof t=="string"?Qd(t):void 0,R=x&&typeof t=="string"?Zd(t):void 0;if((x||a==="number")&&T!==void 0&&M!==void 0&&(!x||t===void 0||t===null||t===""||$!==void 0||R!==void 0)){const w=R??($!==void 0?[$,M]:void 0),A=x?w?.[0]:typeof t=="number"?t:void 0;if(A===void 0&&t!==void 0&&t!==null&&t!=="")return p("number");const N=A??T,L=w??[T,M],_=L[1]>=M?`≥ ${L[0]}`:`${L[0]} to ${L[1]}`,K=x&&t==="",Y=A!==void 0||K;return m.jsxs(re.FormControl,{fullWidth:!0,children:[m.jsxs(re.Box,{sx:{height:IP,px:`${Xl}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m.jsxs(re.Stack,{direction:"row",alignItems:"center",spacing:1,children:[m.jsx(re.Typography,{variant:"body2",color:"text.secondary",noWrap:!0,children:i}),m.jsx(re.Typography,{variant:"body2",sx:{fontWeight:600},children:Y?K?"Any":x?_:String(N):x?"Any":c??"Unset"}),Y&&m.jsx(re.IconButton,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:m.jsx(Yr,{fontSize:"small"})})]}),m.jsx(re.Slider,{size:"small",min:T,max:M,value:x?L:N,disableSwap:x,valueLabelDisplay:"auto","aria-label":x?void 0:i,getAriaLabel:x?ae=>ae===0?`${i} from`:`${i} to`:void 0,sx:{py:0,mt:.5},onChange:(ae,le)=>{if(x){const[V,q]=Array.isArray(le)?[le[0],le[1]]:[le,le];if(V<=T&&q>=M){n(null);return}n(q>=M?Kd(V):Xd(V,q));return}n(Array.isArray(le)?le[0]:le)}})]}),d&&m.jsx(re.FormHelperText,{sx:{mx:`${Xl}px`},children:d})]})}const E=Dn(a)?Qn(a):void 0,I=E==="date"||E==="timestamp"||E==="timestamptz",f=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),O=t==null||f;if(I&&!f){const w=$P(t);if(w!==void 0)return m.jsx(EP,{label:i,state:w,onChange:n,helperNode:d,defaultDisplay:c})}if(I&&O){const w=f?Ve.utc(t):null;return m.jsx(_r,{dateAdapter:jo,children:m.jsx(Ur,{label:i,value:w?.isValid()?w:null,onChange:A=>n(A?A.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}if(Qn(a)==="boolean"){const w=typeof t=="string"?Yd(t):void 0;if(t==null||t===""||w!==void 0)return m.jsx(OP,{label:i,picked:w,emptyOverride:t==="",onChange:n,helperNode:d,defaultDisplay:c})}if(a==="boolean"){const w=typeof t=="boolean";if(!w&&t!==void 0&&t!==null)return p("true or false");const A=e.default?.trim()==="true",N=w?t:A;return m.jsxs(re.FormControl,{children:[m.jsxs(re.Stack,{direction:"row",alignItems:"center",children:[m.jsx(re.FormControlLabel,{control:m.jsx(re.Checkbox,{checked:N,onChange:L=>n(L.target.checked)}),label:i}),w&&m.jsx(re.IconButton,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:m.jsx(Yr,{fontSize:"small"})})]}),d&&m.jsx(re.FormHelperText,{children:d})]})}if(a==="number"){const w=typeof t=="number"?t:"",A=t!=null;return A&&t!==""&&typeof t!="number"?p("number"):m.jsx(re.TextField,{label:i,type:"number",value:w,onChange:N=>{const L=N.target.value;n(L===""?null:Number(L))},placeholder:c,helperText:d,slotProps:{input:{endAdornment:A&&m.jsx(Es,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(a==="date"||a==="timestamp"||a==="timestamptz"){const w=t instanceof Date?t:typeof t=="string"?(L=>L instanceof Date?L:null)(cc(a,t)):null,A=w?Ve.utc(w):null;return t!=null&&t!==""&&w===null?p("date"):m.jsx(_r,{dateAdapter:jo,children:m.jsx(Ur,{label:i,value:A,onChange:L=>n(L?sp(L,w??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}const D=typeof t=="string"?t:"",k=t!=null;return m.jsx(re.TextField,{label:i,value:D,onChange:w=>n(w.target.value),placeholder:k?void 0:c??(a.startsWith("filter<")?a:void 0),helperText:d,slotProps:{input:{endAdornment:k&&m.jsx(Es,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Es({onClear:e}){return m.jsx(re.InputAdornment,{position:"end",children:m.jsx(re.IconButton,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:m.jsx(Yr,{fontSize:"small"})})})}const ho="__any__";function OP({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?ho:""),a=i!=="";return m.jsx(re.Box,{"data-testid":"boolean-filter",children:m.jsxs(re.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===ho?"Any":s||"Any"},input:{endAdornment:a?m.jsx(re.IconButton,{size:"small","aria-label":"clear value",onClick:()=>r(null),sx:{mr:2},children:m.jsx(Yr,{fontSize:"small"})}):void 0}},onChange:l=>{l.target.value!==ho&&r(l.target.value)},children:[n&&m.jsx(re.MenuItem,{value:ho,children:"Any"}),m.jsx(re.MenuItem,{value:"true",children:"true"}),m.jsx(re.MenuItem,{value:"false",children:"false"})]})})}function $P(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=ep(e);if(t!==void 0)return{kind:"preset",key:t};const n=rp(e);if(n!==void 0)return{kind:"days",...n}}const go="__custom__",As="__any__";function EP({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const s=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[i,a]=ie.useState(t.kind==="days"),[l,c]=ie.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});ie.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",d=i?go:t.kind==="preset"?t.key:t.kind==="any"?As:"",h=p=>{c(p),p.from&&p.to&&!Ve.utc(p.to).isBefore(Ve.utc(p.from))&&n(np(p.from,p.to))},b=p=>{const g=p?Ve.utc(p):null;return g?.isValid()?g:null};return m.jsxs(re.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[m.jsxs(re.TextField,{select:!0,label:e,value:d,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:p=>{if(p===go)return"Custom range";if(p===As)return"Any time";const g=To.find(y=>y.key===p);return g?g.label:o??"Any time"}},input:{endAdornment:u?m.jsx(re.IconButton,{size:"small","aria-label":"clear value",onClick:()=>{a(!1),c({}),n(null)},sx:{mr:2},children:m.jsx(Yr,{fontSize:"small"})}):void 0}},onChange:p=>{const g=p.target.value;if(g===go){a(!0);return}a(!1);const y=Jd(g);y!==void 0&&n(y)},children:[t.kind==="any"&&m.jsx(re.MenuItem,{value:As,children:"Any time"}),To.map(p=>m.jsx(re.MenuItem,{value:p.key,children:p.label},p.key)),m.jsx(re.MenuItem,{value:go,children:"Custom range"})]}),i&&m.jsxs(_r,{dateAdapter:jo,children:[m.jsx(Ur,{label:"From",value:b(l.from),onChange:p=>h({...l,from:p?p.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),m.jsx(Ur,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:p=>h({...l,to:p?p.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function ta({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:s,optionsLoading:i,optionsFailed:a,apply:l,title:c}){const{theme:u}=Ge.usePublisherTheme();if(e.length===0)return null;const d=Array.from(t.values()).some(p=>p!==null),h=e.map(p=>m.jsx(re.Box,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:m.jsx(fd,{given:p,value:p.name?t.get(p.name):void 0,onChange:g=>p.name&&n(p.name,g),options:p.name?s?.get(p.name):void 0,optionsLoading:i,optionsFailed:p.name?a?.has(p.name):void 0})},p.name)),b=m.jsxs(re.Stack,{direction:"row",alignItems:"center",spacing:1,children:[l&&m.jsx(re.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:l.onApply,disabled:!l.pending,sx:{textTransform:"none"},children:"Apply"}),d&&m.jsx(re.Button,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?m.jsx(re.Paper,{elevation:0,sx:{p:2,border:u.cardBorder,borderRadius:1,backgroundColor:"transparent"},children:m.jsxs(re.Stack,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[h,m.jsx(re.Box,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:b})]})}):m.jsxs(re.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[m.jsxs(re.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[m.jsx(re.Typography,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:c??"Parameters"}),b]}),m.jsx(re.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:h})]})}const AP=ct(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function FP(e){return e!=null}function LP(e,t){const n=[],r=[];for(const s of e){if(s.name===void 0||FP(t.get(s.name)))continue;if(s.default==null){n.push(s.name);continue}const i=pd(s.type??"string",s.default);i&&r.push(`${s.name} = ${i}`)}const o={missing:n};return r.length>0&&(o.defaultsNote=r.length===1?`Ran with the default ${r[0]}`:`Ran with defaults ${r.join(", ")}`),o}function NP(e){return e.length===1?`This source may need a value for the given ${e[0]}. Set it in the parameters above.`:`This source may need values for the givens ${e.join(", ")}. Set them in the parameters above.`}function md({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:s,givens:i,gate:a}){return ie.useEffect(()=>{o&&o(t)},[t,o]),m.jsx(Ge.StyledCardMedia,{children:m.jsxs(Qe.Stack,{spacing:2,component:"section",children:[m.jsx(BP,{sourceAndPath:e[t],existingQuery:n,onChange:l=>{r&&r(l)},resourceUri:s,givens:i,gate:a}),m.jsx(Qe.Box,{height:"5px"})]})})}function Fs(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function jP({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:s,givens:i,gate:a}){const[l,c]=ie.useState(n||Fs()),[u,d]=ie.useState(void 0);ie.useEffect(()=>{n&&c(n)},[n]);const[h,b]=ie.useState([]),{MalloyExplorerProvider:p,QueryPanel:g,ResizableCollapsiblePanel:y,ResultPanel:C,SourcePanel:P}=r;ie.useEffect(()=>{t&&t(l)},[t,l]);const{environmentName:S,packageName:x,versionId:T}=Zr(s),{apiClients:M}=Ge.useServer(),$=ie.useRef(void 0),R=bd({mutationFn:()=>{$.current=a,d({executionState:"running",query:l?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{R.reset(),d(void 0)},response:{}});const f=typeof l?.malloyQuery=="string"?l.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:l?.malloyQuery}).toMalloy();return c({...l,query:f}),M.models.executeQueryModel(S,x,e.modelPath,{query:f,sourceName:void 0,queryName:void 0,versionId:T,...i&&Object.keys(i).length>0?{givens:i}:{}})},onSuccess:f=>{if(f){const O=JSON.parse(f.data.result);c({...l,malloyResult:O});const D=$.current;d(k=>k?{...k,executionState:"finished",response:{result:O,...D?.defaultsNote?{messages:[{severity:"INFO",title:D.defaultsNote}]}:{}}}:void 0)}},onError:f=>{console.error("Query execution error:",f);const O=f?.data?.message??f?.message??"The query could not be run.",D=[{severity:"ERROR",title:O}],k=$.current?.missing??[];(f?.status===403||/Access denied for source/i.test(O))&&k.length>0&&D.push({severity:"WARN",title:NP(k)}),d(A=>A?{...A,executionState:"finished",response:{messages:D}}:void 0)}}),[F,E]=ie.useState(e.sourceInfo.name);ie.useEffect(()=>{F!==e.sourceInfo.name&&(E(e.sourceInfo.name),c(Fs()),d(void 0))},[e,F]);const I=ie.useCallback(f=>{c({...l,malloyQuery:f,malloyResult:void 0})},[l]);return F!==e.sourceInfo.name?m.jsx("div",{children:"Loading..."}):m.jsx(Ge.StyledExplorerContent,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:m.jsx(p,{source:e.sourceInfo,query:l?.malloyQuery,topValues:[],onFocusedNestViewPathChange:b,focusedNestViewPath:h,onQueryChange:I,children:m.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[m.jsx(y,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:m.jsx(P,{onRefresh:()=>c(Fs())})}),m.jsx(y,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:m.jsx(g,{runQuery:()=>{console.log(`running query with: ${l?.malloyQuery}`);try{R.mutate()}catch(f){console.error("Error running query:",f)}}})}),m.jsx(C,{source:e.sourceInfo,draftQuery:l?.malloyQuery,setDraftQuery:f=>c({...l,malloyQuery:f}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function BP(e){const[t,n]=ie.useState(null),[r,o]=ie.useState(null),[s,i]=ie.useState(!0);return ie.useEffect(()=>{let a=!0;return Promise.all([import("@malloydata/malloy-explorer"),import("@malloydata/malloy-query-builder")]).then(([l,c])=>{a&&(n(l),o(c),i(!1))}).catch(l=>{console.error("Failed to load Malloy components:",l),a&&i(!1)}),()=>{a=!1}},[]),s||!t||!r?m.jsx(Ge.StyledExplorerPage,{children:m.jsx(Ge.StyledExplorerContent,{children:m.jsx(Qe.Box,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):m.jsx(jP,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function na(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:s}=Zr(e),{apiClients:i}=Ge.useServer();return ds({queryKey:["package",r,o,n,s],queryFn:async()=>(await i.models.getModel(r,o,n,s)).data,enabled:t})}function hd({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:s,givens:i,onGivensChange:a,startingGivens:l}){const[c,u]=ie.useState(r);ie.useEffect(()=>{u(r)},[r]);const{data:d,isError:h,isLoading:b,error:p}=na(s,!e),{environmentName:g,packageName:y,modelPath:C,versionId:P}=Zr(s),S=e||d,x=ie.useMemo(()=>S?.givens??[],[S]),T=ui({specs:x,loaded:!!S,params:i,onGivensChange:a,startingValues:l,documentKey:s,autorun:!0,environmentName:g??"",packageName:y??"",modelPath:C,versionId:P,documentName:C}),M=ie.useMemo(()=>qr(T.applied,T.declaredTypes),[T.applied,T.declaredTypes]),$=ie.useMemo(()=>LP(x,T.applied),[x,T.applied]);if(b&&!e)return m.jsx(or,{text:"Fetching Model..."});if(h&&!e)return console.log("error",p),m.jsx(Vo,{error:p,context:`ModelExplorer > ${C}`});if(!S)return m.jsx(or,{text:"Loading..."});const R=(S?.sourceInfos||[]).map((E,I)=>{try{return JSON.parse(E)?.name||`Source ${I+1}`}catch{return`Source ${I+1}`}}),F=R[c]||"";return m.jsxs(Ge.StyledCard,{variant:"outlined",children:[m.jsx(Ge.StyledCardContent,{children:m.jsx(re.Stack,{sx:{flexDirection:"row"},children:m.jsx(Mu,{size:"small",id:"size-small-standard",disablePortal:!0,options:R,value:F,onChange:(E,I)=>{if(!I)return;const f=R.indexOf(I);f>=0&&(u(f),o?.(f))},renderInput:E=>m.jsx(Ni,{...E}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),m.jsx(ta,{...T.panel}),m.jsx(Ge.StyledCardMedia,{children:m.jsxs(re.Stack,{spacing:2,component:"section",children:[Array.isArray(S.sourceInfos)&&S.sourceInfos.length>0&&m.jsx(md,{sourceAndPaths:S.sourceInfos.map(E=>({sourceInfo:JSON.parse(E),modelPath:C})),selectedSourceIndex:c,existingQuery:n,onQueryChange:t,resourceUri:s,givens:M,gate:$}),m.jsx(re.Box,{height:"5px"})]})})]})}function gd({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:s=!0,existingQuery:i,initialSelectedSourceIndex:a,onChange:l,onSourceChange:c,givens:u,onGivensChange:d,startingGivens:h}){return m.jsxs(re.Dialog,{open:e,onClose:t,fullScreen:!0,children:[m.jsxs(re.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,m.jsx(re.IconButton,{onClick:t,sx:{color:"text.secondary"},children:m.jsx(Zo,{})})]}),m.jsx(re.DialogContent,{children:s?m.jsx(hd,{resourceUri:n,data:r,existingQuery:i,initialSelectedSourceIndex:a,onChange:l,onSourceChange:c,givens:u,onGivensChange:d,startingGivens:h}):m.jsx("div",{children:"No valid import statement found in cell"})})]})}const ra=ie.createContext(void 0);function VP({children:e,documentStorage:t}){const n=ie.useMemo(()=>({documentStorage:t}),[t]);return m.jsx(ra.Provider,{value:n,children:e})}function zP(){const e=ie.useContext(ra);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function WP(){return ie.useContext(ra)}class yd extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const _P=e=>e instanceof yd||e instanceof Error&&e.name==="DocumentNotFoundError";function ds(e){const{server:t}=Ge.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return oi.useQuery(n,Ge.globalQueryClient)}function bd(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return oi.useMutation(t,Ge.globalQueryClient)}const vd=2,xd=16;function HP(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function Sd({tiles:e,columns:t,keyOf:n,renderTile:r}){return m.jsx(re.Box,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${xd}px`},children:e.map((o,s)=>m.jsx(re.Box,{sx:{display:"grid",minWidth:0,gridColumn:{md:HP(o,t)}},children:r(o,s)},n(o,s)))})}function Cd(e,t){if(e==null||e==="")return;const n=o=>`'${dd(o)}'`;switch(t===void 0?UP(e):t.startsWith("filter<")?"filter":t){case"filter":return`f${n(String(e))}`;case"string":return n(String(e));case"number":{const o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?String(o):void 0}case"boolean":return e===!0||e==="true"?"true":"false";case"date":{const o=Zl(e);return o&&`@${o}`}case"timestamp":{const o=Zl(e);if(!o)return;const s=e instanceof Date?e.toISOString().slice(11,19):/[T ](\d{2}:\d{2}(?::\d{2})?)/.exec(String(e))?.[1]??"00:00:00";return`@${o} ${s}`}default:return}}function UP(e){if(typeof e=="string")return"string";if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.toISOString().slice(11,19)==="00:00:00"?"date":"timestamp"}function Zl(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const YP="[A-Za-z_][A-Za-z0-9_]*",Jl=e=>new RegExp(`^${YP}$`).test(e),wd=/^##[ \t]*artifact\b/;function ni(e){const t=e.trim().split(/[ \t\r]/,1)[0],n=/^(#{1,2})(\|?)(?:\(markdown\)|<markdown>|\[markdown\]|\{markdown\})$/.exec(t);return n?{level:n[1].length,block:n[2]==="|"}:void 0}function GP(e,t,n){const r=/^[ \t]*/.exec(e)[0].length;if(t!==void 0&&r!==t)return!1;const o=e.slice(r);return o.startsWith(n)&&(n!=="|#"||o.charAt(2)!=="#")}function ps(e,t){const n=[];for(let r=0;r<e.length;r++){if(t?.(r))continue;const o=/^([ \t]*)(#{1,2})\|/.exec(e[r]);if(!o)continue;const s=o[2]==="#"?"|#":"|##";for(let i=r+1;i<e.length;i++)if(GP(e[i],o[1].length,s)){n.push([r,i]),r=i;break}}return n}function oa(e){const t=new Set;for(const[n,r]of ps(e))for(let o=n;o<=r;o++)t.add(o);return t}function qP(e,t){const n=new Set,r=new Set;for(const[o,s]of ps(e,t)){const i=ni(e[o])?.level===1;for(let a=o;a<=s;a++)r.add(a),i&&n.add(a)}return e.forEach((o,s)=>{if(r.has(s)||t?.(s))return;const i=ni(o);i?.level===1&&!i.block&&n.add(s)}),n}const Pd=e=>{const t=oa(e);return e.findIndex((n,r)=>!t.has(r)&&wd.test(n.trim()))},KP=/^##"([ \t]|$)/;function QP(e){const t=Pd(e),n=oa(e),r=d=>t<0||d<t,o=d=>t>=0&&d>t,s=[];e.forEach((d,h)=>{!n.has(h)&&KP.test(d.trim())&&s.push({at:h,text:d.trim().slice(3).trim(),block:!1})});for(const[d,h]of ps(e)){if(!/^[ \t]*##\|"([ \t]|$)/.test(e[d]))continue;const b=[e[d].trim().slice(4),...e.slice(d+1,h)].map(p=>p.trim()).join(`
135
+ `).trim();b.length>0&&s.push({at:d,text:b,block:!0})}s.sort((d,h)=>d.at-h.at);const i=s.filter(d=>r(d.at)),a=s.filter(d=>o(d.at)),l=i.some(d=>d.text.trim())?i:a,c=l.map(d=>d.text).join(`
136
+ `),u=d=>d.filter(h=>!h.block).map(h=>h.at);return{read:u(l),blankAbove:l===a?u(i):[],below:u(a),belowBlock:a.some(d=>d.block),inBlock:l.some(d=>d.block),...c.trim()?{text:c}:{}}}function XP(e){const t=e.search(/tiles\s*=\s*\[/);if(t<0)return!1;const n=e.indexOf("[",t),r=e.indexOf("]",n);return r<0?!1:e.slice(n+1,r).replace(/"[^"]*"/g,"").replace(/[\s,]/g,"").length>0}function kd(e){const t=(e??"").split("->").map(s=>s.trim());if(t.length!==2)return;const n=t[1].indexOf("+"),r=n<0?t[1]:t[1].slice(0,n).trim(),o=n<0?void 0:t[1].slice(n).trim();return{source:t[0],view:r,...o===void 0?{}:{refinement:o}}}const ri=()=>typeof performance<"u"?performance.now():Date.now(),Md=200;function ZP(e){const t=Cd(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${Md} }`}function sa(e){const t=kd(e);if(!(!t||t.refinement!==void 0||!Jl(t.source)||!Jl(t.view)))return{source:t.source,view:t.view}}const JP=e=>sa(e)?.source;function e1({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onClose:i,onDone:a}){const{theme:l}=Ge.usePublisherTheme(),c=e?ZP(e):void 0;return m.jsxs(re.Dialog,{open:e!==void 0,onClose:i,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(re.DialogTitle,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[m.jsxs(re.Box,{children:[e?m.jsxs(m.Fragment,{children:["Rows where"," ",m.jsx(re.Box,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",m.jsx(re.Typography,{component:"div",variant:"caption",sx:{color:l.tileTitle,mt:.25},children:e?`The first ${Md} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),m.jsx(re.IconButton,{onClick:i,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:m.jsx(Zo,{fontSize:"small"})})]}),m.jsxs(re.DialogContent,{dividers:!0,sx:{p:0,minHeight:240},children:[c===void 0&&e&&m.jsx(re.Typography,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),c!==void 0&&m.jsx(t1,{query:c,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:s,...a?{onDone:a}:{}})]}),m.jsxs(re.DialogActions,{sx:{px:3,py:1.5},children:[c!==void 0&&m.jsx(re.Typography,{variant:"caption",sx:{mr:"auto",color:l.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c,children:c}),m.jsx(re.Button,{onClick:i,children:"Close"})]})]})}function t1({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onDone:i}){const a=bi({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:s}),{isSuccess:l,isError:c}=a,u=ie.useRef(void 0);return ie.useEffect(()=>{u.current=ri()},[e]),ie.useEffect(()=>{u.current===void 0||!l&&!c||(i?.(l,ri()-u.current),u.current=void 0)},[l,c,i]),m.jsx(re.Box,{sx:{p:1},children:m.jsx(vi,{state:a,context:e})})}function n1({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:s,onClose:i}){const a=Gc({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:l}=na(a,e!==void 0),c=ie.useMemo(()=>{const d=JP(e);if(!l||d===void 0)return 0;const h=(l.sourceInfos??[]).findIndex(b=>{try{return JSON.parse(b)?.name===d}catch{return!1}});return h<0?0:h},[l,e]),u=ie.useMemo(()=>{if(e===void 0)return;const d=sa(e),h=d?{definition:{kind:"arrow",source:{kind:"source_reference",name:d.source},view:{kind:"view_reference",name:d.view}}}:`run: ${e}`;return{query:`run: ${e}`,malloyQuery:h,malloyResult:void 0}},[e]);return e===void 0||!l?null:m.jsx(gd,{open:!0,onClose:i,resourceUri:a,data:l,title:`Explore: ${e}`,existingQuery:u,initialSelectedSourceIndex:c,startingGivens:s})}function r1({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:s,maxResultSize:i,onEvent:a}){const l=Zr(e),{apiClients:c}=Ge.useServer(),u=l.environmentName??"",d=l.packageName??"",h=l.versionId,b=!!l.environmentName&&!!l.packageName,{data:p,isSuccess:g,isError:y,error:C}=ds({queryKey:["dashboard",u,d,h,t],queryFn:()=>c.dashboards.getDashboard(u,d,t,h),enabled:b}),P=p?.data,S=ie.useMemo(()=>P?.givens??[],[P]),x=ui({specs:S,loaded:g,startingValues:P?.startingGivens,params:n,onGivensChange:r,documentKey:`${u}/${d}/${h??""}/${t}`,autorun:P?.autorun!==!1,environmentName:u,packageName:d,modelPath:P?.path,versionId:h,documentName:t}),{applied:T,declaredTypes:M,canSelf:$,onSelf:R}=x,[F,E]=ie.useState(void 0),[I,f]=ie.useState(void 0),O=ie.useCallback(Y=>{const ae=sa(Y.context);ae!==void 0&&E({...ae,field:Y.field,rawValue:Y.rawValue,label:Y.label})},[]),D=ie.useMemo(()=>qr(T,M),[T,M]),k=ie.useMemo(()=>ci(T,M),[T,M]),{drill:w,drillMenu:A}=Lc({onNavigate:o,onSelf:R,canSelf:$,selfLabel:"Filter this dashboard",onRows:O}),N=ie.useCallback(Y=>({canDrill:w.canDrill,onClick:ae=>w.onClick({...ae,context:Y})}),[w]);if(!b)return m.jsxs(re.Alert,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]});if(y)return m.jsx(Vo,{context:`${u} > ${d} > ${t}`,error:C});if(!g||!P)return m.jsx(or,{text:"Loading dashboard…"});if(P.error)return m.jsxs(re.Stack,{spacing:2,children:[m.jsx(ec,{manifest:P}),m.jsx(re.Alert,{severity:"error",children:P.error})]});const L=P.path,_=P.tiles??[],K=P.dashboardColumns??vd;return m.jsxs(re.Stack,{spacing:2,children:[m.jsx(ec,{manifest:P}),m.jsx(ta,{...x.panel,layout:"bar"}),L===void 0?m.jsx(re.Alert,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):P.query!==void 0?m.jsx(_s,{environmentName:u,packageName:d,versionId:h,modelPath:L,queryName:P.query,givens:T,declaredTypes:M,height:s,maxResultSize:i,drill:w}):_.length>0?m.jsx(Sd,{tiles:_,columns:K,keyOf:(Y,ae)=>`${ae}:${Y.query}`,renderTile:Y=>m.jsx(_s,{environmentName:u,packageName:d,versionId:h,modelPath:L,tile:Y.query,label:Y.label,subtitle:Y.subtitle,borderless:Y.borderless,givens:T,declaredTypes:M,givenNames:Y.givenNames,height:s??Vc,maxResultSize:i,drill:N(Y.query),onExplore:()=>{f(Y.query),a?.({type:"dashboard.explored",tile:Y.query})}})}):m.jsx(re.Alert,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),A,L!==void 0&&m.jsxs(m.Fragment,{children:[m.jsx(e1,{request:F,environmentName:u,packageName:d,...h===void 0?{}:{versionId:h},modelPath:L,givens:D,onClose:()=>E(void 0),onDone:(Y,ae)=>{F&&a?.({type:"dashboard.rows_shown",source:F.source,view:F.view,field:F.field,ok:Y,durationMs:ae})}}),m.jsx(n1,{tile:I,environmentName:u,packageName:d,...h===void 0?{}:{versionId:h},modelPath:L,givens:k,onClose:()=>f(void 0)})]})]})}function ec({manifest:e}){return m.jsx(Dd,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function Dd({title:e,description:t}){return m.jsxs(re.Box,{children:[m.jsx(re.Typography,{variant:"h5",sx:{fontWeight:600},children:e}),t&&m.jsx(qc,{variant:"caption",children:t})]})}exports.ARTIFACT_LINE=wd;exports.AdapterDayjs=jo;exports.AddButton=_m;exports.AddIcon=Ac;exports.ApiErrorDisplay=Vo;exports.AppDialog=Um;exports.Autocomplete=Mu;exports.Button=Rr;exports.ButtonBase=ir;exports.CheckIcon=AP;exports.CircularProgress=Di;exports.ClassNameGenerator=mc;exports.CloseIcon=Zo;exports.DASHBOARD_CARD_PADDING_PX=xi;exports.DEFAULT_COLUMNS=vd;exports.DRILL_SELF=vo;exports.Dashboard=r1;exports.DashboardBar=Ym;exports.DashboardGrid=Sd;exports.DashboardProse=Dd;exports.DashboardTile=_s;exports.DatePicker=Ur;exports.DocumentNotFoundError=yd;exports.DocumentStorageProvider=VP;exports.FloatingIconButton=jc;exports.FormControl=Ei;exports.GRID_GAP_PX=xd;exports.GivenInput=fd;exports.GivensPanel=ta;exports.Grow=Vr;exports.INITIAL_RENDER_HEIGHT=zs;exports.IconButton=Nn;exports.InfoOutlinedIcon=Nc;exports.InputLabel=$i;exports.ListContext=Jn;exports.Loading=or;exports.LocalizationProvider=_r;exports.MODEL_CELL_MAX_HEIGHT=rh;exports.ModelExplorer=hd;exports.ModelExplorerDialog=gd;exports.NOTEBOOK_CELL_MAX_HEIGHT=nh;exports.Paper=Ln;exports.Prose=qc;exports.RESULTS_DIALOG_MAX_HEIGHT=oh;exports.ResultContainer=Hc;exports.ResultPanel=vi;exports.SecondaryButton=Hm;exports.Select=Li;exports.SourcesExplorer=md;exports.SvgIcon=$o;exports.THEME_ID=dr;exports.TILE_MAX_HEIGHT=Vc;exports.TextField=Ni;exports.TileCard=Uc;exports.TileHeading=Yc;exports.Typography=gn;exports.UNCAPPED_CONTAINER_HEIGHT=zc;exports.artifactLine=Pd;exports.blockLines=oa;exports.blockSpans=ps;exports.buildTableCssVars=mh;exports.capitalize=ue;exports.clsx=me;exports.composeClasses=ve;exports.contentNode=Bc;exports.contentNodeDepth=eh;exports.createSimplePaletteValueFilter=yt;exports.createSvgIcon=ct;exports.createTheme=Ic;exports.dayjs=Ve;exports.descriptionNotes=QP;exports.drillDestinations=ai;exports.drillValueToFilter=Gr;exports.emphasize=xc;exports.encodeDrillValue=ic;exports.encodeResourceUri=Gc;exports.escapeMalloyString=dd;exports.extractEventHandlers=wi;exports.formControlState=jn;exports.generateUtilityClass=Se;exports.generateUtilityClasses=be;exports.getAugmentedNamespace=Bd;exports.getDefaultExportFromCjs=sn;exports.getReactElementRef=pr;exports.givensToParams=ci;exports.givensToRequest=qr;exports.hasNonQuotedTiles=XP;exports.humanizeSlug=li;exports.initialResultHeight=Wc;exports.isDocumentNotFound=_P;exports.malloyLiteral=Cd;exports.markdownLines=qP;exports.markdownNote=ni;exports.measureContentHeight=th;exports.memoTheme=Re;exports.mergeSlotProps=Ec;exports.now=ri;exports.ownerDocument=dt;exports.parseResourceUri=Zr;exports.queryResultKey=Fc;exports.remeasuresAfterReady=Jm;exports.resolveDrill=sc;exports.resolveResultHeight=_c;exports.resultSizing=Zm;exports.rootShouldForwardProp=jt;exports.styled=W;exports.tileSteps=kd;exports.tileTitle=Ws;exports.typographyClasses=ob;exports.useControlled=Mt;exports.useDefaultProps=Oe;exports.useDocumentControls=ui;exports.useDocumentStorage=zP;exports.useDrill=Lc;exports.useDrillSelf=ac;exports.useEnhancedEffect=st;exports.useEventCallback=fe;exports.useForkRef=Fe;exports.useFormControl=Bt;exports.useGivensState=dc;exports.useModelData=na;exports.useMutationWithApiError=bd;exports.useOptionalDocumentStorage=WP;exports.useQueryResult=bi;exports.useQueryWithApiError=ds;exports.useSlot=We;exports.useSuggestOptions=fc;exports.useTheme=Fn;exports.useTimeout=Ci;exports.utc=si;